* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #DA2F7C;
  --secondary: #7A294E;
  --accent: #F395C0;
  --text: #1A202C;
  --neutral: #F7FAFC;
  --success: #48BB78;
  --warning: #ED8936;
  --error: #F56565;
  --info: #4299E1;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;

  --text-xs: 11px;
  --text-sm: 16px;
  --text-base: 23px;
  --text-lg: 32px;
  --text-xl: 45px;
  --text-xxl: 64px;
  --text-hero: 90px;

  --max-width: 1200px;
  --gutter: 2rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--neutral);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

.main {
  background: hsl(0, 0%, 100%);
  padding: var(--space-xxl) 0;
}

.head {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.head-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  z-index: 2;
}

.head h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.head p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

.head .btn {
  font-size: var(--text-base);
  padding: 18px 40px;
}

.navbar {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.logo {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-item {
  display: inline-block;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--accent);
  color: white;
}

.nav-link.active {
  background: var(--primary);
  color: white;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  padding: var(--space-xs);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: var(--text-sm);
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218,47,124,0.3);
}

.btn-secondary {
  background: var(--accent);
  color: white;
}

.btn-secondary:hover {
  background: var(--secondary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.block {
  padding: var(--space-xxl) 0;
}

.block-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.block-header h2 {
  font-size: var(--text-xxl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text);
  letter-spacing: -0.01em;
}

.block-header p {
  font-size: var(--text-base);
  color: #4A5568;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.box {
  background: white;
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  flex: 1 1 calc(33.333% - var(--space-lg));
  min-width: 280px;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.box h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.box p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #4A5568;
}

.box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.circle-box {
  text-align: center;
  flex: 1 1 220px;
}

.circle-box img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
  border: 4px solid var(--accent);
}

.centered-chunk {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xxl) 0;
}

.centered-chunk-content {
  flex: 1;
  text-align: center;
}

.centered-chunk-image {
  flex: 0 0 300px;
}

.centered-chunk-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: var(--space-xl);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(218,47,124,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: var(--space-sm);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-md);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: var(--neutral);
}

.faq-question::after {
  content: '+';
  font-size: 28px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: var(--space-md);
  max-height: 500px;
}

.faq-answer p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #4A5568;
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 0 var(--space-xl);
}

.testimonial-slide {
  display: none;
  background: white;
  padding: var(--space-xl);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: center;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: #4A5568;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  font-size: var(--text-sm);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #CBD5E0;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.slider-dot.active {
  background: var(--primary);
  width: 32px;
  border-radius: 6px;
}

.gallery-rows {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.gallery-item {
  flex: 1 1 calc(25% - var(--space-sm));
  min-width: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.blog-rows {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.blog-box {
  flex: 1 1 calc(50% - var(--space-lg));
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.blog-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.blog-box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-content {
  padding: var(--space-md);
}

.blog-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.blog-content p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #4A5568;
  margin-bottom: var(--space-md);
}

.blog-meta {
  font-size: var(--text-xs);
  color: #718096;
}

.team-cols {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.team-unit {
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  background: white;
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.team-unit img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
  border: 4px solid var(--accent);
}

.team-unit h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.team-unit p {
  font-size: var(--text-sm);
  color: #718096;
}

.footer {
  background: var(--secondary);
  color: white;
  padding: var(--space-xxl) 0 var(--space-md);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-chunk {
  flex: 1 1 250px;
}

.footer-chunk h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-chunk ul {
  list-style: none;
}

.footer-chunk li {
  margin-bottom: var(--space-xs);
}

.footer-chunk a {
  color: white;
  text-decoration: none;
  font-size: var(--text-sm);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-chunk a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: var(--text-xs);
  opacity: 0.8;
}

.comparison-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.comparison-slider img {
  width: 100%;
  height: auto;
  display: block;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 100%;
  background: white;
  cursor: ew-resize;
}

.comparison-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
  :root {
    --text-hero: 45px;
    --text-xxl: 32px;
    --text-xl: 28px;
    --text-lg: 23px;
    --text-base: 16px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: var(--space-sm) 0;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-item {
    display: block;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: 0;
  }

  .head h1 {
    font-size: var(--text-xl);
  }

  .head p {
    font-size: var(--text-base);
  }

  .wrap {
    gap: var(--space-md);
  }

  .box {
    flex: 1 1 100%;
  }

  .circle-box {
    flex: 1 1 calc(50% - var(--space-md));
  }

  .centered-chunk {
    flex-direction: column;
  }

  .centered-chunk-image {
    flex: 1 1 auto;
    width: 100%;
  }

  .gallery-item {
    flex: 1 1 calc(50% - var(--space-sm));
  }

  .blog-box {
    flex: 1 1 100%;
  }

  .team-unit {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .footer-content {
    gap: var(--space-md);
  }

  .footer-chunk {
    flex: 1 1 100%;
  }

  .testimonials-slider {
    padding: 0;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .box {
    flex: 1 1 calc(50% - var(--space-lg));
  }

  .gallery-item {
    flex: 1 1 calc(33.333% - var(--space-sm));
  }

  .circle-box {
    flex: 1 1 calc(33.333% - var(--space-lg));
  }
}

@media print {
  .navbar,
  .mobile-menu-toggle,
  .btn,
  .slider-controls,
  .faq-question::after {
    display: none;
  }

  .faq-answer {
    max-height: none !important;
    padding: var(--space-md) !important;
  }

  body {
    background: white;
  }

  .box,
  .blog-box,
  .testimonial-slide {
    box-shadow: none;
    border: 1px solid #E2E8F0;
  }
}
