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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.438rem;
  line-height: 1.5;
  color: #1A202C;
  background: #F7FAFC;
  overflow-x: hidden;
}

:root {
  --primary: #CA2F82;
  --secondary: #973033;
  --accent: #E577E9;
  --success: #48BB78;
  --warning: #ED8936;
  --error: #F56565;
  --info: #4299E1;
  --neutral: #F7FAFC;
  --text: #1A202C;
  --text-light: #718096;

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

  --type-xs: 0.688rem;
  --type-sm: 1rem;
  --type-base: 1.438rem;
  --type-lg: 2rem;
  --type-xl: 2.813rem;
  --type-xxl: 4rem;
  --type-hero: 5.625rem;

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

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

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

.rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cols {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  flex-wrap: wrap;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

h1 {
  font-size: var(--type-hero);
  font-weight: 700;
}

h2 {
  font-size: var(--type-xxl);
  font-weight: 700;
}

h3 {
  font-size: var(--type-xl);
}

h4 {
  font-size: var(--type-lg);
}

h5 {
  font-size: var(--type-base);
}

h6 {
  font-size: var(--type-sm);
}

p {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.navbar {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: var(--space-sm) 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: var(--type-lg);
  font-weight: 700;
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

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

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

.nav-link {
  color: var(--text);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(202, 47, 130, 0.1);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(202, 47, 130, 0.15);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text);
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.top {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--space-xxl) 0;
}

.top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(202, 47, 130, 0.8), rgba(151, 48, 51, 0.7));
  z-index: 1;
}

.top .container {
  position: relative;
  z-index: 2;
}

.top-content {
  max-width: 800px;
  color: white;
}

.top h1 {
  color: white;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.top p {
  font-size: var(--type-lg);
  margin-bottom: var(--space-lg);
  color: rgba(255,255,255,0.95);
}

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

.block.alt {
  background: white;
}

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

.block-title {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.block-subtitle {
  color: var(--text-light);
  font-size: var(--type-base);
  max-width: 700px;
  margin: 0 auto;
}

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

.flex.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.flex.three-col .header-item {
  grid-column: span 3;
}

.box {
  background: white;
  border-radius: 8px;
  padding: var(--space-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.box-icon {
  font-size: var(--type-xxl);
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.box-title {
  font-size: var(--type-lg);
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.box-text {
  color: var(--text-light);
  flex-grow: 1;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-weight: 600;
  font-size: var(--type-base);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(202, 47, 130, 0.3);
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
}

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

.btn.large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--type-lg);
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--text);
  font-size: var(--type-sm);
}

input,
textarea,
select {
  padding: var(--space-sm);
  border: 2px solid #E2E8F0;
  border-radius: 6px;
  font-size: var(--type-base);
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(202, 47, 130, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

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

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

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

.faq-question:hover {
  color: var(--primary);
}

.faq-question::after {
  content: '+';
  font-size: var(--type-lg);
  color: var(--primary);
  transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
  color: var(--text-light);
  line-height: 1.7;
}

.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-item {
  min-width: 100%;
  padding: var(--space-xl);
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: center;
}

.testimonial-text {
  font-size: var(--type-lg);
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  font-size: var(--type-base);
}

.testimonial-role {
  color: var(--text-light);
  font-size: var(--type-sm);
}

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

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: var(--type-base);
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.gallery-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

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

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

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

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

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-title {
  color: var(--accent);
  font-size: var(--type-lg);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

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

.parallax-area {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
}

.parallax-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(151, 48, 51, 0.7);
}

.parallax-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

.parallax-content h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.depth-layer {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.depth-layer > * {
  transition: transform 0.3s ease;
}

@media (min-width: 450px) {
  .cols.mobile-stack {
    flex-direction: row;
  }
}

@media (min-width: 720px) {
  .flex.tablet-two {
    grid-template-columns: repeat(2, 1fr);
  }

  .flex.tablet-two .header-item {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  .flex.desktop-four {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1.2rem;
  }

  h1 {
    font-size: var(--type-xxl);
  }

  h2 {
    font-size: var(--type-xl);
  }

  h3 {
    font-size: var(--type-lg);
  }

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

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: var(--space-xxl) var(--space-md);
    box-shadow: 4px 0 16px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  body.menu-open .main-nav {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: var(--space-xs);
  }

  .nav-item {
    width: 100%;
  }

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

  .top {
    min-height: 50vh;
    padding: var(--space-xl) 0;
  }

  .top h1 {
    font-size: var(--type-xl);
  }

  .top p {
    font-size: var(--type-base);
  }

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

  .flex.three-col {
    grid-template-columns: 1fr;
  }

  .flex.three-col .header-item {
    grid-column: span 1;
  }

  .gallery-wrap {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

  .testimonial-item {
    padding: var(--space-md);
  }

  .testimonial-text {
    font-size: var(--type-base);
  }
}

@media (max-width: 450px) {
  :root {
    --gutter: 1rem;
  }

  h1 {
    font-size: var(--type-lg);
  }

  .btn.large {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--type-base);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slide-up {
  transform: translateY(30px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

::selection {
  background: var(--primary);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
