/* ===== Base & tokens ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --bg-soft-2: #efece3;
  --ink: #15141a;
  --ink-soft: #2b2932;
  --text: #201f26;
  --text-muted: #6d6a75;
  --line: #e7e3da;
  --gold: #ab8654;
  --gold-dark: #8a6a40;
  --gold-soft: #e7d9c1;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 14px rgba(21, 20, 26, 0.06);
  --shadow-md: 0 20px 60px rgba(21, 20, 26, 0.12);
  --container: 1180px;
  --header-h: 84px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable; /* opening the menu hides the scrollbar; keep its space so the page doesn't jump */
}
/* Scroll lock for the open menu. Lock via body only: while html stays "visible", body's
   overflow propagates to the viewport. Setting it on html as well would turn body into its
   own scroll container and detach the sticky header from the viewport (menu off-screen). */
html.menu-open body { overflow: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { font: inherit; cursor: pointer; }

h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
h3 { font-family: var(--font-body); font-weight: 700; line-height: 1.3; color: var(--ink); }

section { scroll-margin-top: var(--header-h); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-label--light { color: var(--gold-soft); }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem); }

/* ===== Buttons ===== */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }

.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease-out);
}

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease-out);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  .btn--primary:hover::after { transform: translateX(130%); }

  .btn--outline:hover { color: var(--white); transform: translateY(-2px); }
  .btn--outline:hover::before { transform: scaleY(1); }

  .btn:hover svg { transform: translateX(2px) rotate(-8deg); }
}
.btn:active { transform: scale(0.97); transition-duration: 0.12s; }

.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.4s ease;
  animation: header-in 0.9s var(--ease-out) backwards;
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 24px rgba(21, 20, 26, 0.05);
}
html.menu-open .header { background-color: rgba(255, 255, 255, 0.98); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-dark);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Burger + mobile menu (hidden on desktop, enabled in the ≤860px block) */
.burger,
.mobile-nav,
.nav-backdrop { display: none; }

.burger {
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: -11px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.burger:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.burger__bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.55s var(--ease-out), opacity 0.3s ease, width 0.45s var(--ease-out);
}
.burger__bar:nth-child(1) { top: 14px; }
.burger__bar:nth-child(2) { top: 21px; width: 15px; transform-origin: 0 50%; }
.burger__bar:nth-child(3) { top: 28px; }

@media (hover: hover) {
  .burger:hover .burger__bar:nth-child(2) { width: 22px; }
}

.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { width: 22px; opacity: 0; transform: scaleX(0.2); }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav__inner {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.mobile-nav__inner::-webkit-scrollbar { display: none; }

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  padding: 4px 24px 28px;
  border-top: 1px solid var(--line);
}
.mobile-nav__link {
  padding: 13px 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease, padding-left 0.45s var(--ease-out);
}
.mobile-nav__link:active { color: var(--gold-dark); }
@media (hover: hover) {
  .mobile-nav__link:hover { color: var(--gold-dark); padding-left: 8px; }
}
.mobile-nav__cta { margin-top: 22px; }

/* ===== Hero ===== */
.hero { padding: 88px 0 110px; background: var(--bg); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-soft);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero__title .line__inner { display: block; }

.hero__text {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat strong {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
}
.hero__stat span { font-size: 13.5px; color: var(--text-muted); }

/* Entrance choreography: pure CSS so it never depends on JS */
.hero__content > * { animation: reveal-up 1.1s var(--ease-out) backwards; }
.hero__content > :nth-child(1) { animation-delay: 0.15s; }
.hero__content > :nth-child(3) { animation-delay: 0.5s; }
.hero__content > :nth-child(4) { animation-delay: 0.65s; }
.hero__content > :nth-child(5) { animation-delay: 0.8s; }
.hero__content > .hero__title { animation: none; }
.hero__title .line__inner { animation: line-up 1.2s var(--ease-out) backwards; }
.hero__title .line:nth-child(1) .line__inner { animation-delay: 0.25s; }
.hero__title .line:nth-child(2) .line__inner { animation-delay: 0.38s; }

.hero__media { position: relative; animation: reveal-zoom 1.4s var(--ease-out) 0.2s backwards; }
.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink) 0%, #35323d 55%, var(--gold-dark) 130%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.12), transparent 55%);
}
.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: absolute;
  inset: 0;
  transition: opacity 0.9s ease, transform 1.6s var(--ease-out);
}
.js .hero__photo-img:not(.is-loaded) { opacity: 0; }
.hero__photo-img.is-loaded { animation: photo-settle 2.2s var(--ease-out) backwards; }
@media (hover: hover) {
  .hero__photo:hover .hero__photo-img { transform: scale(1.04); }
}

.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  animation: badge-in 0.9s var(--ease-spring) 1.1s backwards, float 6s ease-in-out 2.2s infinite;
}
.hero__badge .icon { color: var(--gold-dark); }

/* ===== About ===== */
.about { padding: 110px 0; background: var(--bg-soft); }

.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.about__text p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-bottom: 18px;
}

.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.advantage__icon {
  width: 30px; height: 30px;
  color: var(--gold-dark);
  margin-bottom: 16px;
  transition: transform 0.6s var(--ease-spring);
}
.advantage h3 { font-size: 17.5px; margin-bottom: 8px; }
.advantage p { font-size: 14.5px; color: var(--text-muted); }
@media (hover: hover) {
  .advantage:hover .advantage__icon { transform: translateY(-4px) scale(1.12); }
}

/* ===== Services ===== */
.services { padding: 110px 0; background: var(--bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s ease;
}
.service-card__icon {
  color: var(--white);
  background: var(--ink);
  padding: 13px;
  width: 50px; height: 50px;
  border-radius: 50%;
  margin-bottom: 20px;
  transition: background-color 0.4s ease, transform 0.7s var(--ease-spring);
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-muted); }
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
  }
  .service-card:hover .service-card__icon { background: var(--gold-dark); transform: rotate(-10deg) scale(1.1); }
}

/* ===== Request (lead form) ===== */
.request {
  padding: 110px 0;
  background: var(--ink);
  color: var(--white);
}

.request__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.request__info h2 { color: var(--white); margin-bottom: 18px; }
.request__info > p { color: rgba(255, 255, 255, 0.65); font-size: 16px; margin-bottom: 28px; max-width: 420px; }

.request__points { display: flex; flex-direction: column; gap: 14px; }
.request__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.request__points .icon { color: var(--gold); }

.request__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.form-row:focus-within label { color: var(--gold-dark); }
.required { color: #b5482f; }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.4s var(--ease-out);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(171, 134, 84, 0.16);
}
.form-row textarea { resize: vertical; min-height: 90px; }

.form-row.is-invalid input,
.form-row.is-invalid select {
  border-color: #b5482f;
  background: #fbf1ef;
}
.form-row.is-invalid input:focus { box-shadow: 0 0 0 4px rgba(181, 72, 47, 0.14); }
.form-row.shake { animation: shake 0.5s var(--ease-out); }
.form-error {
  display: block;
  min-height: 18px;
  font-size: 12.5px;
  color: #b5482f;
  margin-top: 6px;
}
.form-error:not(:empty) { animation: reveal-up 0.4s var(--ease-out) backwards; }

.request__fields { animation: reveal-fade 0.6s ease backwards; }

#requestSubmit[disabled] { pointer-events: none; opacity: 0.85; }
#requestSubmit[disabled]::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.request__privacy {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}
.request__privacy a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.request__error {
  font-size: 13.5px;
  color: #b5482f;
  text-align: center;
  margin-top: 14px;
  animation: reveal-up 0.4s var(--ease-out) backwards;
}

.request__success {
  text-align: center;
  padding: 30px 10px;
  animation: success-in 0.8s var(--ease-out) backwards;
}
.request__success-icon {
  width: 56px; height: 56px;
  color: var(--white);
  background: #3f8f5f;
  border-radius: 50%;
  padding: 15px;
  margin: 0 auto 20px;
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
  animation: pop 0.8s var(--ease-spring) 0.15s backwards, draw-check 0.7s var(--ease-out) 0.45s backwards;
}
.request__success p {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 22px;
}

/* ===== Reviews ===== */
.reviews { padding: 110px 0; background: var(--bg); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.review-card {
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), background-color 0.4s ease;
}
@media (hover: hover) {
  .review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--white); }
}
.review-card__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 18px; }
.review-card__stars .icon { width: 16px; height: 16px; }
.review-card.is-visible .review-card__stars .icon {
  animation: star-pop 0.6s var(--ease-spring) backwards;
  animation-delay: calc(var(--delay, 0ms) + 350ms + var(--s, 0) * 80ms);
}
.review-card__stars .icon:nth-child(2) { --s: 1; }
.review-card__stars .icon:nth-child(3) { --s: 2; }
.review-card__stars .icon:nth-child(4) { --s: 3; }
.review-card__stars .icon:nth-child(5) { --s: 4; }
.review-card blockquote {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 22px;
}
.review-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.review-card__name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.review-card__role { font-size: 13px; color: var(--text-muted); }

/* ===== Contacts ===== */
.contacts { padding: 110px 0; background: var(--bg-soft); }

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto 48px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 30px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.contact-card__icon {
  width: 24px; height: 24px;
  color: var(--gold-dark);
  margin-bottom: 8px;
  transition: transform 0.6s var(--ease-spring);
}
.contact-card__icon--text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  width: auto; height: auto;
}
.contact-card__label { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-card__value { font-size: 14.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
@media (hover: hover) {
  .contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .contact-card:hover .contact-card__icon { transform: translateY(-3px) scale(1.18); }
}

.contacts__cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 48px 0; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__brand span {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.footer__socials { display: flex; align-items: center; gap: 18px; }
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.5s var(--ease-spring);
}
@media (hover: hover) {
  .footer__socials a:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); transform: translateY(-3px); }
}

.footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer__copy { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.footer__credit { font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }
.footer__credit a { color: #7db3ff; font-weight: 600; text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }

/* ===== Legal pages ===== */
.legal { padding: 110px 0 100px; background: var(--bg); }
.legal .container { max-width: 720px; animation: reveal-up 1s var(--ease-out) 0.15s backwards; }
.legal h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.8rem); margin-bottom: 10px; }
.legal__updated { font-size: 13.5px; color: var(--text-muted); margin-bottom: 48px; }
.legal h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); margin: 40px 0 14px; }
.legal p { font-size: 15.5px; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal li { font-size: 15.5px; color: var(--text); line-height: 1.6; }
.legal a { color: var(--gold-dark); font-weight: 600; }

/* ===== Scroll reveal =====
   Keyframe-based (not held transform state) so hover transforms on the same
   elements keep working once the reveal has finished. The "hidden" state is
   scoped to .js so content is never lost if scripts fail to run. */
.js [data-animate]:not(.is-visible) { opacity: 0; }
.js [data-animate].is-visible { animation: reveal-up 1s var(--ease-out) var(--delay, 0ms) backwards; }
.js [data-animate="fade"].is-visible { animation-name: reveal-fade; }
.js [data-animate="zoom"].is-visible { animation-name: reveal-zoom; }
.js [data-animate="left"].is-visible { animation-name: reveal-left; }
.js [data-animate="right"].is-visible { animation-name: reveal-right; }

/* Group reveal: the wrapper stays still, its children rise one after another */
.js [data-animate="stagger"].is-visible { animation: none; }
.js [data-animate="stagger"].is-visible > * {
  animation: reveal-up 1s var(--ease-out) backwards;
  animation-delay: calc(var(--delay, 0ms) + var(--i, 0) * 110ms);
}

/* ===== Keyframes (only the "from" state: the element's own style is the end) ===== */
@keyframes reveal-up { from { opacity: 0; transform: translate3d(0, 40px, 0); } }
@keyframes reveal-fade { from { opacity: 0; } }
@keyframes reveal-zoom { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.94); } }
@keyframes reveal-left { from { opacity: 0; transform: translate3d(-56px, 0, 0); } }
@keyframes reveal-right { from { opacity: 0; transform: translate3d(56px, 0, 0); } }
@keyframes line-up { from { transform: translate3d(0, 108%, 0); } }
@keyframes photo-settle { from { transform: scale(1.16); } }
@keyframes header-in { from { opacity: 0; transform: translate3d(0, -100%, 0); } }
@keyframes badge-in { from { opacity: 0; scale: 0.6; translate: 0 18px; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes star-pop { from { opacity: 0; transform: scale(0) rotate(-40deg); } }
@keyframes nav-item-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes success-in { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.98); } }
@keyframes pop { from { opacity: 0; transform: scale(0.3) rotate(-30deg); } }
@keyframes draw-check { from { stroke-dashoffset: 26; } }
@keyframes shake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-animate]:not(.is-visible) { opacity: 1; }
  .js .hero__photo-img:not(.is-loaded) { opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .request__inner { grid-template-columns: 1fr; gap: 48px; }
  .request__info { text-align: center; }
  .request__points { align-items: center; }
  .request__info > p { margin-left: auto; margin-right: auto; }

  .js [data-animate="left"].is-visible,
  .js [data-animate="right"].is-visible { animation-name: reveal-up; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .nav, .header__actions { display: none; }
  .burger { display: block; }

  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: var(--bg);
    transition: grid-template-rows 0.6s var(--ease-out), visibility 0s linear 0.6s, box-shadow 0.6s var(--ease-out);
  }
  .mobile-nav.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    box-shadow: 0 32px 60px -24px rgba(21, 20, 26, 0.28);
    transition: grid-template-rows 0.6s var(--ease-out), visibility 0s, box-shadow 0.6s var(--ease-out);
  }
  .mobile-nav.is-open .mobile-nav__link,
  .mobile-nav.is-open .mobile-nav__cta {
    animation: nav-item-in 0.7s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 65ms + 160ms);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(21, 20, 26, 0.42);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s;
  }

  .hero { padding: 56px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { order: -1; width: 100%; max-width: 380px; margin: 0 auto; }
  .hero__stats { gap: 28px; flex-wrap: wrap; }
  .hero__actions { justify-content: center; }
  .hero__content { text-align: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -22px; }

  .about, .services, .request, .reviews, .contacts { padding: 72px 0; }
  .section-head { text-align: center; margin-left: auto; margin-right: auto; }

  .advantages { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }

  .request__card { padding: 28px 22px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .mobile-nav__list { padding-left: 18px; padding-right: 18px; }
  .hero__stats { justify-content: center; gap: 22px 30px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__cta { flex-direction: column; width: 100%; }
  .contacts__cta .btn { width: 100%; }
}
