/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  line-height: 1.2;
  font-weight: 700;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ===== CSS VARIABLES ===== */
:root {
  --f-display: 'Playfair Display', serif;
  --f-body: 'Inter', sans-serif;

  --c-primary: #9673f7;
  --c-primary-light: #b9a1fa;
  --c-primary-dark: #6b45e0;
  --c-accent: #8a8af4;
  --c-accent-light: rgba(138, 138, 244, 0.1);

  --c-bg: #faf9fe;
  --c-surface: #ffffff;
  --c-surface-warm: #f3f0fb;

  --c-text: #1a1a2e;
  --c-text-soft: rgba(26, 26, 46, 0.6);
  --c-text-muted: rgba(26, 26, 46, 0.4);
  --c-border: #e5e7eb;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 6rem);
}

.container--narrow {
  max-width: 800px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.875rem;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 6rem);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-primary);
}

.nav__logo-img {
  height: 38px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-soft);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.25s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--c-primary);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.75rem;
  background: none;
  border: none;
  color: var(--c-text);
  cursor: pointer;
  z-index: 1002;
  display: none;
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav__overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.nav__overlay.is-active ~ .nav__close {
  display: block;
}

.nav__overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav__overlay-link {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-text);
  transition: color 0.25s ease;
}

.nav__overlay-link:hover,
.nav__overlay-link.is-active {
  color: var(--c-primary);
}

.nav__overlay-cta {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
  .nav__hamburger {
    display: none;
  }
  .nav__close {
    display: none !important;
  }
  .nav__overlay {
    display: none !important;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: clamp(5rem, 12vh, 8rem) clamp(1rem, 5vw, 6rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero--home {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero--page {
  min-height: 40vh;
}

.hero--small {
  min-height: 30vh;
  padding-block: clamp(3rem, 8vh, 5rem);
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(150, 115, 247, 0.88) 0%,
    rgba(138, 138, 244, 0.82) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-inline: auto;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 600px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 500px;
  margin-inline: auto;
}

.hero__metric {
  text-align: center;
}

.hero__metric-value {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.hero__metric-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .hero__metrics {
    grid-template-columns: repeat(4, 1fr);
    max-width: 700px;
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 6rem);
}

.section--light {
  background: var(--c-surface);
}

.section--dark {
  background: var(--c-text);
  color: rgba(255, 255, 255, 0.9);
}

.section--dark .section__title,
.section--dark .section__subtitle,
.section--dark .card__title,
.section--dark .card__text,
.section--dark .split__text {
  color: rgba(255, 255, 255, 0.92);
}

.section--dark .section__tag {
  background: rgba(150, 115, 247, 0.25);
  color: var(--c-primary-light);
}

.section--tinted {
  background: var(--c-surface-warm);
}

.section--cta {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(150, 115, 247, 0.92) 0%,
    rgba(138, 138, 244, 0.88) 100%
  );
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.section--cta .section__title {
  color: #ffffff;
}

.section--cta .section__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__tag {
  display: inline-block;
  background: var(--c-accent-light);
  color: var(--c-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--c-text);
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--c-text-soft);
  line-height: 1.7;
}

.section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== CARDS ===== */
.card {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section--dark .card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

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

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--c-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  z-index: 2;
}

.card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--c-accent-light);
  color: var(--c-primary);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.section--dark .card__icon {
  background: rgba(150, 115, 247, 0.2);
  color: var(--c-primary-light);
}

.card__title {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--c-text);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9rem;
  color: var(--c-text-soft);
  line-height: 1.65;
  flex: 1;
}

.card__price {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-top: 0.75rem;
}

.card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.star--filled {
  color: #f59e0b;
  font-size: 1rem;
}

/* Card variants */
.card--product {
  border-top: 3px solid var(--c-accent);
}

.card--service {
  text-align: center;
  border-top: 3px solid var(--c-accent);
}

.card--service .card__icon {
  margin-inline: auto;
}

.card--step {
  text-align: center;
  position: relative;
  border-top: 3px solid var(--c-accent);
}

.card__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #ffffff;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card--testimonial {
  padding: 1.75rem;
  border-top: 3px solid var(--c-accent);
}

.card__quote {
  font-size: 0.95rem;
  color: var(--c-text-soft);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card__author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card__author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
}

.card__author-date {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

/* Pricing cards */
.card--pricing {
  text-align: center;
  border-top: 3px solid var(--c-accent);
  padding: 2rem 1.5rem;
}

.card--pricing-accent {
  border-top-color: var(--c-primary);
  background: var(--c-primary);
  color: #ffffff;
  position: relative;
  transform: scale(1.03);
}

.card--pricing-accent .card__title,
.card--pricing-accent .card__text,
.card--pricing-accent .card__price {
  color: #ffffff;
}

.card--pricing-accent .card__features li {
  color: rgba(255, 255, 255, 0.9);
}

.card__pricing-header {
  margin-bottom: 1.5rem;
}

.card__features {
  text-align: left;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card__features li {
  font-size: 0.9rem;
  color: var(--c-text-soft);
  padding-left: 1.5rem;
  position: relative;
}

.card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}

.card--pricing-accent .card__features li::before {
  color: rgba(255, 255, 255, 0.9);
}

.card--value {
  text-align: center;
  border-top: 3px solid var(--c-accent);
}

/* ===== SPLIT LAYOUT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.split__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.split__text {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--c-text-soft);
  line-height: 1.75;
}

.split__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.split__list li {
  font-size: 0.95rem;
  color: var(--c-text-soft);
  padding-left: 1.5rem;
  position: relative;
}

.split__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}

.split__price {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-primary);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__image {
    order: 2;
  }
  .split--reverse .split__content {
    order: 1;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn--lg {
  padding: 0.95rem 2.25rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--c-primary);
  color: #ffffff !important;
  border-color: var(--c-primary);
}

.btn--primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(150, 115, 247, 0.35);
}

.btn--secondary {
  background: var(--c-accent);
  color: #ffffff !important;
  border-color: var(--c-accent);
}

.btn--secondary:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(138, 138, 244, 0.35);
}

.btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.section--light .btn--outline,
.section--tinted .btn--outline {
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.section--light .btn--outline:hover,
.section--tinted .btn--outline:hover {
  background: var(--c-primary);
  color: #ffffff !important;
}

/* ===== CTA BLOCK ===== */
.cta-block {
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
}

.cta-block__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-block__text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== FAQ ===== */
.faq {
  max-width: 750px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--c-border);
  padding-block: 1.25rem;
}

.faq__item:first-child {
  border-top: 1px solid var(--c-border);
}

.faq__question {
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 0;
  background: none;
  border: none;
  transition: color 0.25s ease;
}

.faq__question:hover {
  color: var(--c-primary);
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq__item.is-active .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.is-active .faq__answer {
  max-height: 300px;
  padding-top: 1rem;
}

.faq__answer p {
  font-size: 0.95rem;
  color: var(--c-text-soft);
  line-height: 1.7;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  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.05);
}

.gallery__item--large {
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .gallery--mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery__item--large {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .gallery--mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

/* ===== STATS ===== */
.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat__value {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.1;
}

.section--dark .stat__value {
  color: var(--c-primary-light);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--c-text-soft);
  margin-top: 0.35rem;
}

.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.65);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__intro {
  font-size: 0.95rem;
  color: var(--c-text-soft);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--c-accent-light);
  color: var(--c-primary);
  flex-shrink: 0;
  font-size: 1.15rem;
}

.contact-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-card__title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
}

.contact-card__email {
  color: var(--c-primary);
  font-size: 0.9rem;
  word-break: break-all;
}

.contact-card__email:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.contact-form__intro {
  font-size: 0.95rem;
  color: var(--c-text-soft);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ===== FORM ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--f-body);
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(150, 115, 247, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--c-text-muted);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a2e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__submit {
  align-self: flex-start;
}

/* ===== MAP ===== */
.map-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== LEGAL ===== */
.legal {
  max-width: 800px;
  margin-inline: auto;
}

.legal__block {
  margin-bottom: 2.5rem;
}

.legal__block:last-child {
  margin-bottom: 0;
}

.legal__title {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--c-text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--c-accent-light);
}

.legal__block p {
  font-size: 0.95rem;
  color: var(--c-text-soft);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--c-text);
  color: rgba(255, 255, 255, 0.9);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 5vw, 6rem);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--c-primary-light);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col--brand {
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo-img {
  height: 36px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.9rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__email {
  color: var(--c-primary-light);
}

.footer__email:hover {
  color: #ffffff;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.footer__social-link:hover {
  background: var(--c-primary);
  color: #ffffff;
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== IS-ACTIVE (generic) ===== */
.is-active {
  /* handled contextually per component */
}

/* ===== UTILITY & TYPOGRAPHY ===== */
h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

h4 {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

p {
  line-height: 1.7;
}

/* ===== SELECTION ===== */
::selection {
  background: var(--c-primary);
  color: #ffffff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--c-primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-primary);
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* ===== RESPONSIVE FINE-TUNING ===== */

/* Ensure hero doesn't hide behind sticky nav */
.hero {
  /* nav is sticky, not fixed, so hero flows naturally below */
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .hero--home {
    min-height: 90vh;
    min-height: 90dvh;
  }

  .hero--page {
    min-height: 35vh;
  }

  .hero--small {
    min-height: 25vh;
  }

  .card--pricing-accent {
    transform: none;
  }

  .split__image {
    aspect-ratio: 16 / 9;
  }

  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-card__content {
    align-items: center;
  }

  .section--cta {
    padding-block: clamp(3rem, 8vw, 5rem);
  }
}

/* Tablet adjustments */
@media (min-width: 768px) {
  .hero__metrics {
    gap: 2rem;
  }

  .card__body {
    padding: 1.5rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
  .hero--home {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero--page {
    min-height: 40vh;
  }

  .card--testimonial {
    padding: 2rem;
  }

  .faq {
    max-width: 800px;
  }

  .stat {
    padding: 2rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .nav,
  .footer,
  .section--cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .hero__overlay {
    background: none;
  }

  .hero__title,
  .hero__subtitle {
    color: var(--c-text);
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}