/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

a, button {
  user-select: none;
  -webkit-user-select: none;
}

html {
  scroll-behavior: smooth;
}

section[id], footer[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: #1A1A1A;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== Utilities ===== */
.section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #4D3B36;
  text-transform: uppercase;
}

.section-label--center {
  text-align: center;
}

.section-label--muted {
  color: #999999;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1A1A1A;
}

.section-title--center {
  text-align: center;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-header--center {
  align-items: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: #4D3B36;
  color: #FFFFFF;
  padding: 18px 36px;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn--primary:hover {
  background: #3a2b27;
}

.btn--primary:active {
  transform: scale(0.97);
}

.btn--sm {
  padding: 12px 28px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--about-cta {
  background: #4D3B36;
  color: #FFFFFF;
  width: 207px;
  height: 47px;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn--about-cta:hover {
  background: #3a2b27;
}

.btn--about-cta:active {
  transform: scale(0.97);
}

/* ===== Header ===== */
.header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.header__logo:hover {
  transform: scale(1.05);
}

.header__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  position: relative;
}
.header__logo-img-wrap {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.header__logo-img-wrap::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%);
  left: -60%;
  pointer-events: none;
  z-index: 1;
}
.header__logo-img-wrap.shine::after {
  animation: logo-shine 0.8s ease-in-out both;
}
@keyframes logo-shine {
  0% { left: -60%; }
  100% { left: 120%; }
}

.header__logo-text {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1A1A1A;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  text-shadow: 0 0 0 transparent;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.header__nav-link:hover {
  color: #4D3B36;
  text-shadow: 0 1px 8px rgba(77,59,54,0.2);
}

.header__phone {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  transition: color 0.3s ease;
}

.header__phone:hover {
  color: #4D3B36;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1A1A1A;
  border-radius: 1px;
}

/* Prevent transition flash on Safari during page load */
.preload .mobile-menu,
.preload .mobile-menu__overlay {
  transition: none !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  z-index: 200;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0.35s;
}

.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0s;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.mobile-menu__close {
  font-size: 28px;
  color: #1A1A1A;
  line-height: 1;
}

.mobile-menu__divider {
  height: 1px;
  background: #E8E4E0;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  gap: 24px;
}

.mobile-menu__link {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
}

.mobile-menu__phone {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
}

.mobile-menu__overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu__overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Hero ===== */
.hero {
  background: #F5F5F5;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 60px;
  max-width: 1440px;
  margin: 0 auto;
  height: 600px;
}

.hero__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 80px 0;
}

/* Hero entrance animations */
.hero__badge,
.hero__title,
.hero__subtitle,
.hero__ctas,
.hero__photo {
  opacity: 0;
  transform: translateY(-10px);
  animation: hero-photo-in 0.8s ease 0.3s both;
}


@keyframes hero-photo-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge   { animation-delay: 0.1s; }
.hero__title   { animation-delay: 0.25s; }
.hero__subtitle { animation-delay: 0.4s; }
.hero__ctas    { animation-delay: 0.55s; }

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #CCCCCC;
  border-radius: 100px;
  align-self: flex-start;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #4D3B36;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(77,59,54,0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(77,59,54,0);
  }
}

@keyframes simple-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__badge-label {
  font-size: 13px;
  font-weight: 500;
  color: #555555;
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  color: #1A1A1A;
}

.hero__subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #555555;
}

.hero__ctas {
  display: flex;
  gap: 16px;
}

.hero__photo {
  position: relative;
  width: 560px;
  height: 480px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.hero__compare {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  animation: simple-fade 0.8s ease both;
}
.hero__compare img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.hero__compare-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__compare-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 0 0);
  pointer-events: none;
  transition: clip-path 0.6s ease;
  z-index: 1;
}



.hero__compare-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 5;
  animation: simple-fade 0.6s ease 0.5s both;
}

.hero__compare-toggle {
  display: flex;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero__compare-tab {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.hero__compare-tab.active {
  background: #4D3B36;
  color: #FFFFFF;
}
.hero__compare-tab:hover:not(.active) {
  background: rgba(77,59,54,0.1);
}

.hero__compare-divider {
  width: 1px;
  align-self: stretch;
  margin: 8px 6px;
  background: rgba(0,0,0,0.15);
}

/* Stories progress bar */
.hero__compare-stories {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
  z-index: 6;
  animation: simple-fade 0.6s ease 0.4s both;
}
.hero__compare-story {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.hero__compare-story-fill {
  width: 0%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
}
.hero__compare-story-fill.running {
  width: 100%;
  transition: width linear;
}
.hero__compare-story-fill.done {
  width: 100%;
  transition: none;
}

/* Subtle Ken Burns zoom on compare images */
.hero__compare-after,
.hero__compare-before {
  animation: hero-ken-burns 8s ease-in-out infinite alternate;
}
@keyframes hero-ken-burns {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.hero__compare-address-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
  border-radius: 12px 12px 0 0;
  animation: simple-fade 0.6s ease 0.3s both;
}

.hero__compare-controls-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
  animation: simple-fade 0.6s ease 0.3s both;
}

.hero__compare-address {
  position: absolute;
  top: 28px;
  left: 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  white-space: nowrap;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: text-shadow 0.3s ease;
  animation: simple-fade 0.6s ease 0.4s both;
}
.hero__compare-address::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url('../images/Y_Maps.svg');
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.hero__compare-address:hover {
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* ===== About ===== */
/* Scroll reveal for individual elements */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stats special animation */
.about__stats.reveal-item .about__stat {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.about__stats.reveal-item .about__stat:nth-child(1) { transition-delay: 0.1s; }
.about__stats.reveal-item .about__stat:nth-child(2) { transition-delay: 0.3s; }
.about__stats.reveal-item .about__stat:nth-child(3) { transition-delay: 0.5s; }

.about__stats.reveal-item.visible .about__stat {
  opacity: 1;
  transform: translateY(0);
}

/* Stat pop-in animation */
.stat-pop {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about__stat:nth-child(1) .stat-pop { transition-delay: 0.2s; }
.about__stat:nth-child(3) .stat-pop { transition-delay: 0.6s; }

.about__stats.visible .stat-pop {
  opacity: 1;
  transform: translateY(0);
}

.about {
  background: #FFFFFF;
}
.about .section-header.reveal-item { transition-delay: 0s; }
.about__image.reveal-item { transition-delay: 0.25s; }
.about__text .about__desc.reveal-item:nth-child(1) { transition-delay: 0.35s; }
.about__text .about__desc.reveal-item:nth-child(2) { transition-delay: 0.45s; }
.about__text .btn.reveal-item { transition-delay: 0.55s; }

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 80px 60px;
  max-width: 1440px;
  margin: 0 auto;
}

.about__content {
  display: flex;
  gap: 48px;
}

.about__image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  height: 380px;
  position: relative;
}


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

.about__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.about__desc {
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
}

.about__desc--muted {
  color: #777777;
}

.about__stats {
  display: flex;
  background: #F0ECEA;
  border-radius: 16px;
  padding: 32px 0;
}

.about__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 32px;
}

.about__stat--border {
  border-right: 1px solid #C5BAB5;
}

.about__stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #1A1A1A;
}

.about__stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #777777;
}

/* ===== Services ===== */
.services {
  background: #F5F5F5;
}

.services__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 80px 60px;
  max-width: 1440px;
  margin: 0 auto;
}

.services__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services__row {
  display: flex;
  gap: 24px;
}

.service-card {
  flex: 1;
  height: 320px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  will-change: transform;
}
.service-card:hover .service-card__img {
  transform: scale(1.07);
}

.service-card.reveal-item {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(4px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease, box-shadow 0.4s ease;
}
.service-card.reveal-item.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.services__row:nth-child(1) .service-card:nth-child(1) { transition-delay: 0s; }
.services__row:nth-child(1) .service-card:nth-child(2) { transition-delay: 0.12s; }
.services__row:nth-child(1) .service-card:nth-child(3) { transition-delay: 0.24s; }
.services__row:nth-child(2) .service-card:nth-child(1) { transition-delay: 0.1s; }
.services__row:nth-child(2) .service-card:nth-child(2) { transition-delay: 0.22s; }
.services__row:nth-child(2) .service-card:nth-child(3) { transition-delay: 0.34s; }
.services__row:nth-child(3) .service-card:nth-child(1) { transition-delay: 0.2s; }
.services__row:nth-child(3) .service-card:nth-child(2) { transition-delay: 0.32s; }
.services__row:nth-child(3) .service-card:nth-child(3) { transition-delay: 0.44s; }

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.service-card:hover .service-card__text {
  transform: translateY(-4px);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.service-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 350px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.service-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.service-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}

.services__scroll {
  display: none;
}

/* ===== Advantages ===== */
.advantages {
  background: #FFFFFF;
}

.advantages__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 80px 60px;
  max-width: 1440px;
  margin: 0 auto;
}

.advantages__row {
  display: flex;
  align-items: stretch;
}

.advantages__divider {
  width: 1px;
  background: #E0E0E0;
  align-self: stretch;
}

.advantages__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  text-align: center;
  transition: transform 0.3s ease;
}
.advantages__item:hover {
  transform: translateY(-4px);
}
.advantages__row .advantages__item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.advantages__row .advantages__item:nth-child(1)  { transition-delay: 0s; }
.advantages__row .advantages__item:nth-child(3)  { transition-delay: 0.12s; }
.advantages__row .advantages__item:nth-child(5)  { transition-delay: 0.24s; }
.advantages__row .advantages__item:nth-child(7)  { transition-delay: 0.36s; }
.advantages__row .advantages__item:nth-child(9)  { transition-delay: 0.48s; }
.advantages__row .advantages__item:nth-child(11) { transition-delay: 0.6s; }
.advantages__row.wave .advantages__item {
  opacity: 1;
  transform: translateY(0);
}

.advantages__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: #4D3B36;
  transition: transform 0.3s ease;
}
.advantages__item:hover .advantages__num {
  transform: scale(1.15);
}

.advantages__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
}

.advantages__desc {
  font-size: 13px;
  line-height: 1.5;
  color: #666666;
}

.advantages__grid-mobile {
  display: none;
}

/* ===== Flag Banner ===== */
.flag-banner {
  background: #4D3B36;
}

.flag-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.flag-banner__left {
  display: contents;
}

.flag-banner__ornament {
  display: flex;
  align-items: center;
  gap: 4px;
}

.flag-banner__diamond {
  display: block;
  transform: rotate(45deg);
}

.flag-banner__diamond--lg {
  width: 16px;
  height: 16px;
  background: #FFFFFF;
}

.flag-banner__diamond--sm {
  width: 8px;
  height: 8px;
  background: rgba(0,0,0,0.125);
}

.flag-banner__text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  flex: 1;
}

/* Flag banner reveal */
.flag-banner__inner {
  overflow: hidden;
}
.flag-banner__ornament {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.flag-banner__text {
  opacity: 0;
  transition: opacity 0.6s ease 0.35s;
}
.flag-banner__inner.visible .flag-banner__ornament {
  transform: translateX(0) !important;
}
.flag-banner__inner.visible .flag-banner__text {
  opacity: 1;
}

.accent-line {
  height: 4px;
  background: #4D3B36;
}

/* ===== Stages ===== */
.stages {
  background: #FAFAF8;
}
.stages .section-header.reveal-item { transition-delay: 0s; }
.stages .stages__subtitle.reveal-item { transition-delay: 0.25s; }

.stages__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.stages__subtitle {
  font-size: 15px;
  color: #5A5250;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 24px;
}

.stages__funnel {
  position: relative;
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 1280 / 750;
  margin: 0 auto;
}

.stages__funnel-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stages__step {
  position: absolute;
  width: 26.5%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  height: 12%;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

.stages__step--left {
  left: 1.5%;
  align-items: flex-end;
}

.stages__step--right {
  right: 1.5%;
  align-items: flex-start;
}

.stages__step-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stages__step-header--right {
  flex-direction: row-reverse;
}

.stages__step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.stages__step-dot.dot-visible {
  opacity: 1;
  transform: scale(1);
}
.stages__step-dot.dot-blink {
  animation: pulse-dot 0.8s ease-in-out 1;
}

.stages__step-title {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #2C2520;
}

.stages__step-desc {
  font-size: 13px;
  color: #5A5250;
}

.stages__step-desc--right {
  text-align: right;
}

/* Funnel reveal animation */

/* Trapezoids — outline draws, then fills */
.stages__funnel-svg path {
  fill-opacity: 0;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  stroke-width: 2;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1), fill-opacity 0.4s ease 0.8s;
}
.stages__funnel-svg path.stage-visible {
  stroke-dashoffset: 0;
  fill-opacity: 1;
}
.stages__funnel-svg path {
  cursor: pointer;
  filter: drop-shadow(0 0 0 transparent);
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1), fill-opacity 0.4s ease 0.8s, filter 0.5s ease;
}
.stages__funnel-svg path.funnel-hover {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Icons — fade in */
.stages__funnel-svg image {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stages__funnel-svg image.stage-visible {
  opacity: 1;
}

/* Connecting lines — draw outward */
.stages__funnel-svg line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.5s ease;
}
.stages__funnel-svg line.stage-visible {
  stroke-dashoffset: 0;
}

/* Steps — slide in from sides */
.stages__step {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stages__step--left {
  transform: translateX(-30px);
}
.stages__step--right {
  transform: translateX(30px);
}
.stages__step.stage-visible {
  opacity: 1;
  transform: translateX(0);
}
.stages__step {
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
}
.stages__step.stage-highlight .stages__step-title {
  color: #4D3B36;
}
.stages__step.stage-highlight .stages__step-desc {
  color: #2C2520;
}

/* Mobile stages */
.stages__mobile {
  display: none;
}

.stages__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  border-radius: 12px;
  padding: 0 20px;
}

.stages__pill-num {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
}

.stages__pill-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.stages__pill--1 { width: 340px; background: #4D3B36; }
.stages__pill--2 { width: 316px; background: #5E4A44; }
.stages__pill--3 { width: 292px; background: #6F5C56; }
.stages__pill--4 { width: 268px; background: #806E68; }
.stages__pill--5 { width: 244px; background: #917F7A; }
.stages__pill--6 { width: 220px; background: #A3928D; }
.stages__pill--7 { width: 196px; background: #B5A49F; border-radius: 14px; }

/* ===== Office ===== */
.office {
  background: #FFFFFF;
}

.office__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.office .section-header.reveal-item { transition-delay: 0s; }
.office__body.visible .office__map-side {
  opacity: 1;
  transform: translateX(0);
}
.office__body.visible .office__photo {
  opacity: 1;
  transform: translateX(0);
}
.office__body.visible .office__info-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.office__body {
  display: flex;
  gap: 32px;
  width: 100%;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
}

.office__map-side {
  flex: 1;
  position: relative;
  background: #E8E4E0;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.office__map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.office__info-card {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 320px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.office__card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
}

.office__card-sub {
  font-size: 13px;
  color: #888888;
  margin-top: -12px;
}

.office__card-divider {
  height: 1px;
  background: #E8E8E8;
}

.office__card-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.office__card-row svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.office__card-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.office__card-label {
  font-size: 11px;
  font-weight: 600;
  color: #AAAAAA;
  text-transform: uppercase;
}

.office__card-value {
  font-size: 14px;
  color: #333333;
  line-height: 1.4;
}

.office__route-btn {
  border-radius: 8px;
}

.office__photo {
  width: 480px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.office__slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.office__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.office__slide.active {
  opacity: 1;
}

.office__carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.4);
  padding: 10px 14px;
  border-radius: 16px;
}

.office__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.office__dot--active {
  width: 8px;
  height: 8px;
  background: #FFFFFF;
}

.office__mobile-info {
  display: none;
}

/* ===== Footer ===== */
.footer {
  background: #F5F5F5;
}
.footer__top,
.footer__divider,
.footer__bottom {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.footer__top { transition-delay: 0s; }
.footer__divider { transition-delay: 0.15s; }
.footer__bottom { transition-delay: 0.3s; }
.footer.visible .footer__top,
.footer.visible .footer__divider,
.footer.visible .footer__bottom {
  opacity: 1;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 60px 120px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 400px;
  flex-shrink: 0;
}

.footer__logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer__logo-row:hover {
  opacity: 0.7;
}

.footer__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer__logo-text {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1A1A1A;
}

.footer__tagline {
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
  max-width: 380px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
}

.footer__link {
  font-size: 14px;
  color: #666666;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer__link:hover {
  color: #4D3B36;
  text-shadow: 0 1px 8px rgba(77,59,54,0.2);
}

/* Footer icon hover */
.footer__link--phone,
.footer__link--email {
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: transform 0.4s ease;
}
.footer__link--phone:hover,
.footer__link--email:hover {
  transform: translateX(20px);
}
.footer__link--phone::before,
.footer__link--email::before {
  content: '';
  position: absolute;
  left: -20px;
  height: 14px;
  width: 14px;
  opacity: 0;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: opacity 0.4s ease;
}
.footer__link--phone:hover::before,
.footer__link--email:hover::before {
  opacity: 1;
}

.footer__link--phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234D3B36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}
.footer__link--email::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234D3B36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E");
}

.footer__text {
  font-size: 14px;
  color: #666666;
}

.footer__divider {
  height: 1px;
  background: #D9D9D9;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 13px;
  color: #888888;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  transition: transform 0.3s ease;
}

.footer__social-link:hover {
  transform: scale(1.15) translateY(-2px);
}

.footer__social-link img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* ============================== */
/* ===== RESPONSIVE (Tablet) ==== */
/* ============================== */

@media (min-width: 769px) and (max-width: 1100px) {

  /* Header */
  .header__inner {
    padding: 20px 40px;
  }

  .header__nav {
    display: none;
  }

  .header__phone {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Hero */
  .hero__inner {
    padding: 0 32px;
    gap: 28px;
    height: auto;
    min-height: 500px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero__text {
    flex: 1;
    padding: 0;
    min-width: 0;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__photo {
    width: 380px;
    height: 360px;
    flex-shrink: 0;
  }

  /* About */
  .about__inner {
    padding: 64px 40px;
    gap: 36px;
  }

  .about__image {
    height: 300px;
  }

  .about__content {
    gap: 36px;
  }

  .about__desc {
    font-size: 15px;
  }

  .about__stat-num {
    font-size: 34px;
  }

  .about__stat {
    padding: 20px 24px;
  }

  /* Services */
  .services__inner {
    padding: 64px 40px;
    gap: 36px;
  }

  .service-card {
    height: 260px;
  }

  .service-card__title {
    font-size: 18px;
  }

  .service-card__overlay {
    padding: 20px;
  }

  /* Advantages */
  .advantages__inner {
    padding: 64px 40px;
    gap: 36px;
  }

  .advantages__num {
    font-size: 28px;
  }

  .advantages__title {
    font-size: 14px;
  }

  .advantages__desc {
    font-size: 12px;
  }

  .advantages__item {
    padding: 0 16px;
  }

  /* Flag Banner */
  .flag-banner__inner {
    padding: 36px 40px;
  }

  .flag-banner__text {
    font-size: 18px;
  }

  /* Stages */
  .stages__inner {
    padding: 48px 40px;
  }

  .stages__step-title {
    font-size: 13px;
  }

  .stages__step-desc {
    font-size: 11px;
  }

  .stages__step-dot {
    width: 10px;
    height: 10px;
  }

  /* Office */
  .office__inner {
    padding: 64px 40px;
    gap: 36px;
  }

  .office__body {
    height: 420px;
  }

  .office__photo {
    width: 340px;
  }

  .office__info-card {
    width: 260px;
    padding: 20px 18px;
    top: 20px;
    left: 20px;
    gap: 14px;
  }

  .office__card-title {
    font-size: 17px;
  }

  /* Footer */
  .footer__inner {
    padding: 60px 48px 40px;
  }

  .footer__top {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer__brand {
    width: 280px;
    flex-shrink: 1;
  }

  .footer__tagline {
    font-size: 13px;
  }

  .section-title {
    font-size: 30px;
  }
}

/* ============================== */
/* ===== RESPONSIVE (Mobile) ==== */
/* ============================== */

@media (max-width: 768px) {

  /* Services — swipeable horizontal scroll */
  .services__grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 12px;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }
  .services__grid::-webkit-scrollbar { display: none; }
  .services__row { display: contents; }
  .service-card {
    flex: 0 0 78vw !important;
    height: 280px;
    filter: none !important;
    box-shadow: none !important;
    touch-action: pan-x;
    border-radius: 16px !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    will-change: opacity;
  }
  .service-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .service-card:hover .service-card__img {
    transform: scale(1.07);
  }

  /* Dots */
  .services__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
  }
  .services__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #CCCCCC;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .services__dot.active {
    background: #4D3B36;
    transform: scale(1.3);
  }


  /* About section — faster reveal, no cascade delay */
  .about__image.reveal-item,
  .about__text .about__desc.reveal-item:nth-child(1),
  .about__text .about__desc.reveal-item:nth-child(2),
  .about__text .btn.reveal-item {
    transition-delay: 0s;
    transition-duration: 0.4s;
  }

  /* Bottom fade gradient */
  body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
    pointer-events: none;
    z-index: 50;
  }

  /* Header */
  section[id], footer[id] {
    scroll-margin-top: 64px;
  }

  .header__inner {
    padding: 16px 20px;
  }

  .header__logo-img {
    width: 32px;
    height: 32px;
  }

  .header__logo-img-wrap {
    width: 32px;
    height: 32px;
  }

  .header__logo-text {
    font-size: 14px;
    letter-spacing: 1.5px;
    line-height: 1;
  }

  .header__nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Hero */
  .hero__inner {
    flex-direction: column;
    height: auto;
    padding: 40px 20px 20px;
    gap: 24px;
  }

  .hero__badge   { animation-delay: 0.1s; }
  .hero__title   { animation-delay: 0.2s; }
  .hero__subtitle { animation-delay: 0.32s; }
  .hero__ctas    { animation-delay: 0.44s; }
  .hero__photo   { animation-delay: 0.62s; }

  .hero__text {
    padding: 0;
    gap: 24px;
  }

  .hero__badge-dot {
    width: 6px;
    height: 6px;
  }

  .hero__badge {
    padding: 6px 12px;
    gap: 6px;
  }

  .hero__badge-label {
    font-size: 11px;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.1;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .btn--primary {
    padding: 14px 28px;
    font-size: 13px;
  }

  .hero__photo {
    width: 100%;
    height: 300px;
  }


  /* About */
  .about__inner {
    padding: 48px 20px;
    gap: 32px;
  }

  .section-label {
    font-size: 11px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-header {
    gap: 8px;
  }

  .about__content {
    flex-direction: column;
    gap: 32px;
  }

  .about__image {
    height: 220px;
  }

  .about__text {
    gap: 20px;
    padding-top: 0;
  }

  .about__desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .about__stats {
    flex-direction: column;
    padding: 0;
    border-radius: 12px;
  }

  .about__stat {
    padding: 20px 24px;
  }

  .about__stat--border {
    border-right: none;
    border-bottom: 1px solid #C5BAB5;
  }

  .about__stat-num {
    font-size: 32px;
  }

  .about__stat-label {
    font-size: 13px;
  }

  /* Services */
  .services__inner {
    padding: 48px 20px;
    gap: 32px;
  }

  .services__grid {
    display: none;
  }

  .services__scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .services__scroll::-webkit-scrollbar {
    display: none;
  }

  .service-card--mobile {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .service-card--mobile .service-card__overlay {
    padding: 20px;
  }

  /* Advantages */
  .advantages__inner {
    padding: 48px 20px;
    gap: 32px;
  }

  .advantages__row {
    display: none;
  }

  .advantages__grid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .advantages__grid-mobile .advantages__item {
    padding: 0;
    gap: 8px;
  }

  .advantages__grid-mobile .advantages__num {
    font-size: 28px;
  }

  .advantages__grid-mobile .advantages__title {
    font-size: 14px;
  }

  .advantages__grid-mobile .advantages__desc {
    font-size: 12px;
  }

  /* Flag Banner */
  .flag-banner__inner {
    justify-content: center;
    padding: 28px 20px;
  }

  .flag-banner__left {
    gap: 0;
  }

  .flag-banner__ornament {
    display: none;
  }

  .flag-banner__text {
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
  }

  /* Stages */
  .stages__inner {
    padding: 48px 20px;
    gap: 12px;
  }

  .stages__subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .stages__funnel {
    display: none;
  }

  .stages__pill {
    opacity: 0;
    transform: scaleX(0);
    transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.25s ease;
  }
  .stages__pill.pill-visible {
    opacity: 1;
    transform: scaleX(1);
  }

  .stages__mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  /* Office */
  .office__inner {
    padding: 48px 20px;
    gap: 28px;
  }

  .office__body {
    display: none;
  }

  .office__mobile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .office__mobile-map {
    border-radius: 14px;
    overflow: hidden;
    height: 260px;
    background: #E8E4E0;
    margin-bottom: 8px;
    position: relative;
  }


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

  .office__mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .office__mobile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 14px 16px;
  }

  .office__mobile-card svg {
    flex-shrink: 0;
  }

  .office__mobile-card div {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .office__mobile-info .btn {
    margin-top: 4px;
    border-radius: 12px;
    height: 50px;
  }

  /* Footer */
  .footer__inner {
    padding: 40px 20px 32px;
    gap: 32px;
  }

  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .footer__brand {
    width: 100%;
    gap: 12px;
  }

  .footer__logo-img {
    width: 28px;
    height: 28px;
  }

  .footer__logo-text {
    font-size: 14px;
  }

  .footer__tagline {
    font-size: 12px;
  }

  .footer__col {
    gap: 12px;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__copy {
    font-size: 11px;
  }

  .footer__social {
    gap: 12px;
  }

  .footer__social-link img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modal-fade 0.25s ease both;
}

.modal__box {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  animation: modal-slide-up 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  line-height: 1;
  color: #AAAAAA;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: #1A1A1A;
}

.modal__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.modal__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1A1A1A;
}

.modal__subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: #777777;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__label {
  font-size: 13px;
  font-weight: 600;
  color: #333333;
}

.modal__input,
.modal__textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: #1A1A1A;
  background: #F5F5F5;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: none;
  width: 100%;
}

.modal__input::placeholder,
.modal__textarea::placeholder {
  color: #AAAAAA;
}

.modal__input:focus,
.modal__textarea:focus {
  border-color: #4D3B36;
  background: #FFFFFF;
}

.modal__input.error,
.modal__textarea.error {
  border-color: #e05252;
}

.modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.modal__checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #CCCCCC;
  border-radius: 5px;
  margin-top: 1px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.modal__checkbox:checked {
  background: #4D3B36;
  border-color: #4D3B36;
}

.modal__checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.modal__consent.error .modal__checkbox {
  border-color: #e05252;
}

.modal__consent-text {
  font-size: 13px;
  color: #777777;
  line-height: 1.5;
}

.modal__consent-link {
  color: #4D3B36;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal__consent-link:hover {
  color: #3a2b27;
}

.modal__submit {
  margin-top: 4px;
  border-radius: 12px;
  height: 52px;
  font-size: 15px;
}

.modal__success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 20px 0 8px;
}

.modal__success.active {
  display: flex;
}

.modal__success-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
}

.modal__success-text {
  font-size: 14px;
  color: #777777;
  line-height: 1.5;
}