:root {
  --lav: #f3ecf8;
  --lav-2: #e7dcf2;
  --lav-3: #efe6f6;
  --card: #ffffff;
  --plum: #6f4a9c;
  --plum-deep: #573a80;
  --lilac: #b295d6;
  --ink: #3a3243;
  --muted: #8a7f96;
  --line: rgba(111,74,156,0.18);
  --serif: 'Cormorant Garamond', serif;
  --script: 'Marck Script', cursive;
  --sans: 'Manrope', sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--lav); color: var(--ink); font-weight: 400; line-height: 1.6; overflow-x: clip; overscroll-behavior-x: none; min-height: 100vh; }
img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: 100%; }
.container { width: min(1240px, 92%); margin: 0 auto; min-width: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal--left { transform: translateX(-42px); }
.reveal--right { transform: translateX(42px); }
.reveal--scale { transform: scale(.93); }
.reveal--d1 { --reveal-delay: .08s; }
.reveal--d2 { --reveal-delay: .16s; }
.reveal--d3 { --reveal-delay: .24s; }

/* Пословное появление заголовка */
.words .line { display: block; }
.words .word { display: inline-block; opacity: 0; transform: translateY(0.6em); filter: blur(4px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out), filter .85s var(--ease-out);
  transition-delay: var(--wd, 0ms); }
.words.is-in .word { opacity: 1; transform: none; filter: none; }

/* Ботаника + «распускание» */
.deco { position: absolute; pointer-events: none; z-index: 0; object-fit: contain; height: auto; }
.deco.bloom { clip-path: inset(100% 0 0 0); scale: .92; transition: clip-path 1.15s var(--ease-out), scale 1.15s var(--ease-out); transition-delay: var(--bloom-delay, 0ms); }
.deco.bloom.is-bloomed { clip-path: inset(0 0 0 0); scale: 1; }

/* Стрелки, ссылки */
.arrow { width: 26px; height: 1px; background: currentColor; position: relative; display: inline-block; flex: none; }
.arrow::after { content: ''; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--plum); text-decoration: none; }
.link-arrow .arrow { transition: transform 220ms var(--ease-out); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; border-radius: 100px;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background 220ms ease, color 220ms ease, border-color 220ms ease; }
.btn--primary { background: var(--plum); color: #fff; padding: 15px 30px; }
.btn--pill { background: transparent; color: var(--plum); border: 1.5px solid var(--line); padding: 12px 26px; }
.btn--sm { padding: 12px 22px; font-size: 0.84rem; }
.btn__ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--plum-deep); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(111,74,156,0.3); }
  .btn--pill:hover { border-color: var(--plum); background: rgba(111,74,156,0.06); }
  .link-arrow:hover .arrow { transform: translateX(6px); }
}

/* Шапка */
.header { position: sticky; top: 0; z-index: 60; background: rgba(243,236,248,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease-out), background .3s ease; }
.header.is-scrolled { background: rgba(243,236,248,0.94); box-shadow: 0 8px 30px rgba(111,74,156,0.1); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 14px 0; transition: padding .3s var(--ease-out); }
.header.is-scrolled .header__inner { padding: 8px 0; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 48px; width: auto; mix-blend-mode: multiply; transition: height .3s var(--ease-out); }
.header.is-scrolled .logo img { height: 42px; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; transition: color 0.25s; }
.nav a:hover { color: var(--plum); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--plum); transition: transform .3s var(--ease-out), opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 56px 0 84px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero__content { position: relative; z-index: 2; }
.hero__title { font-family: var(--script); font-size: clamp(3rem, 6.6vw, 5.6rem); line-height: 1.14; color: var(--plum); font-weight: 400; }
.hero__title .word.accent { color: var(--lilac); }
.hero__text { font-size: 1.02rem; color: var(--muted); margin: 24px 0 36px; max-width: 420px; }
.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__play { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.play { width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .25s, border-color .25s; }
.play svg { width: 16px; height: 16px; fill: var(--plum); }
@media (hover: hover) { .hero__play:hover .play { background: rgba(111,74,156,0.08); border-color: var(--plum); } }
.hero__media { position: relative; aspect-ratio: 1/1.02; }
.hero__circle { position: absolute; inset: 6% 6% 0 6%; background: var(--lav-2); border-radius: 50%; z-index: 0; }
.hero__photo { position: relative; z-index: 1; width: 82%; height: 96%; margin: 0 auto; object-fit: cover; object-position: top center; border-radius: 28px 28px 0 0; -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%); mask-image: linear-gradient(to bottom, #000 85%, transparent 100%); }
.deco--hero-tl { width: 78px; top: 14px; left: 2px; z-index: 1; }
.deco--hero-l { width: 74px; bottom: 6%; left: -6px; opacity: .95; z-index: 1; }
.deco--hero-r { width: 210px; top: 26%; right: -46px; opacity: .8; z-index: 0; }
.deco--hero-sprig { width: 80px; top: 6%; right: -5%; z-index: 2; transform: rotate(14deg); }
.deco--hero-sprig2 { width: 74px; bottom: 4%; left: -6%; z-index: 2; transform: rotate(-8deg); }
.hero__emblem { position: absolute; z-index: 3; width: 128px; height: auto; bottom: 8%; right: -4%; opacity: .95; }

/* Секции */
.section { padding: 96px 0; position: relative; }
.section__title { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--plum); font-weight: 600; text-transform: uppercase; display: flex; justify-content: center; align-items: center; gap: 14px; text-align: center; margin-bottom: 56px; }
.title__sprig { width: 24px; height: auto; object-fit: contain; opacity: .9; }
.title__sprig.flip { transform: scaleX(-1); }

/* Услуги — 5 арок */
.services__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.scard { background: var(--card); border: 1px solid var(--line); border-radius: 150px 150px 24px 24px; padding: 34px 22px 30px; text-decoration: none; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.scard__num { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--plum); font-style: italic; margin-bottom: 6px; }
/* Иллюстрации услуг (значок + лаванда, белый фон убираем multiply) */
.scard__ill { width: 150px; height: 112px; object-fit: contain; margin-bottom: 14px; mix-blend-mode: multiply; }
.scard__art { width: 138px; height: 120px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 8px 12px rgba(111,74,156,.08)); transition: transform .45s var(--ease-out); }
/* Запасная иконка (5-я карточка) — значок + веточка, тот же размер */
.scard__ic { height: 112px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; }
.scard__ic svg { width: 52px; height: 52px; fill: none; stroke: var(--plum); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scard__ic-leaf { width: 38px; height: auto; object-fit: contain; }
.scard h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; text-transform: uppercase; color: var(--ink); line-height: 1.14; margin-bottom: 12px; }
.scard p { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; flex: 1; }
@media (hover: hover) and (pointer: fine) {
  .scard:hover { transform: translateY(-8px); box-shadow: 0 24px 44px rgba(111,74,156,0.14); }
  .scard:hover .scard__art { transform: translateY(-3px) scale(1.035); }
  .scard:hover .link-arrow .arrow { transform: translateX(6px); }
}
.deco--serv-r { width: 150px; bottom: 40px; right: -34px; opacity: .85; transform: scaleX(-1); }

/* Пространство салона — журнальная фотогалерея */
.salon { background: var(--card); overflow: hidden; }
.salon__head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 46px; }
.salon__eyebrow { display: block; margin-bottom: 12px; color: var(--plum); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.salon__title { font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 500; line-height: 0.94; color: var(--ink); }
.salon__title em { color: var(--plum); font-weight: 500; }
.salon__intro { max-width: 480px; padding-bottom: 5px; color: var(--muted); font-size: 0.98rem; }
.salon__gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 190px; gap: 14px; }
.salon__photo { position: relative; overflow: hidden; border-radius: 18px; background: var(--lav-2); margin: 0; }
.salon__photo::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(43,31,53,.62)); opacity: .72; transition: opacity .35s ease; }
.salon__photo img { transition: transform .8s var(--ease-out); }
.salon__photo figcaption { position: absolute; z-index: 2; left: 20px; bottom: 16px; color: #fff; font-family: var(--serif); font-size: 1rem; letter-spacing: .03em; transform: translateY(4px); opacity: .92; transition: transform .35s var(--ease-out), opacity .35s ease; }
.salon__photo--main { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.salon__photo--reception { grid-column: 8 / span 5; }
.salon__photo--cabinet { grid-column: 8 / span 5; }
.salon__photo--detail { grid-column: 1 / span 4; }
.salon__photo--nails { grid-column: 5 / span 4; }
.salon__photo--hall { grid-column: 9 / span 4; }
.salon__photo--main figcaption { font-size: 1.28rem; left: 24px; bottom: 20px; }
.deco--salon-l { width: 105px; top: 80px; left: -32px; opacity: .65; transform: rotate(-14deg); }
@media (hover: hover) and (pointer: fine) {
  .salon__photo:hover img { transform: scale(1.045); }
  .salon__photo:hover::after { opacity: 1; }
  .salon__photo:hover figcaption { transform: none; opacity: 1; }
}

/* Мастера */
.masters { background: var(--lav-3); }
.masters__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 920px; margin: 0 auto; }
.mcard { text-align: center; }
.mcard__photo { aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 16px 34px rgba(111,74,156,0.12); }
.mcard__photo img { transition: transform .6s var(--ease-out); }
@media (hover: hover) { .mcard:hover .mcard__photo img { transform: scale(1.05); } }
.mcard h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.mcard__role { font-size: 0.86rem; color: var(--plum); font-weight: 500; }
.mcard__exp { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.mcard__ig { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 50%; }
.mcard__ig svg { width: 16px; height: 16px; fill: none; stroke: var(--plum); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .mcard__ig:hover { border-color: var(--plum); } }
.deco--mast-l { width: 90px; top: 40px; left: -20px; opacity: .9; }
.deco--mast-r { width: 96px; bottom: 40px; right: -24px; opacity: .9; transform: scaleX(-1); }

/* CTA */
.cta { position: relative; background: var(--lav-2); padding: 80px 0; overflow: hidden; }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta__title { font-family: var(--script); font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--plum); font-weight: 400; line-height: 1.15; margin-bottom: 20px; }
.cta__text { color: var(--muted); font-size: 1.02rem; max-width: 400px; margin-bottom: 32px; }
.cta__media { aspect-ratio: 16/10; border-radius: 26px; overflow: hidden; box-shadow: 0 26px 54px rgba(111,74,156,0.18); }
.deco--cta-r { width: 150px; bottom: -20px; right: -30px; opacity: .9; transform: scaleX(-1); }

/* Footer */
.footer { position: relative; background: var(--lav); padding: 70px 0 30px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 34px; }
.footer__brand .logo img { height: 58px; }
.footer__brand p { font-size: 0.86rem; color: var(--muted); margin: 14px 0 20px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.socials svg { width: 17px; height: 17px; fill: none; stroke: var(--plum); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.socials a[aria-label="Telegram"] svg,
.socials a[aria-label="WhatsApp"] svg,
.socials a[aria-label="MAX"] svg { fill: var(--plum); stroke: none; }
@media (hover: hover) { .socials a:hover { border-color: var(--plum); } }
.footer__col h5 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--plum); margin-bottom: 18px; }
.footer__col a, .footer__col span { display: block; font-size: 0.88rem; color: var(--muted); text-decoration: none; margin-bottom: 11px; }
.footer__col a:hover { color: var(--plum); }
.footer__phone { color: var(--ink) !important; font-weight: 600; }
.footer__note { font-size: 0.82rem !important; color: var(--plum) !important; margin-bottom: 14px !important; }
.footer__contacts .btn { margin-top: 8px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.footer__bottom a { color: var(--muted); text-decoration: none; }
.deco--footer { width: 90px; bottom: 20px; right: 10px; opacity: .85; }

/* Адаптив */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .masters__grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0; background: var(--lav-3); border-bottom: 1px solid var(--line); padding: 8px 0; transform: translateY(-130%); transition: transform .4s var(--ease-out); z-index: 55; }
  .nav.is-open { transform: none; }
  .nav a { padding: 15px 6%; border-top: 1px solid var(--line); }
  .burger { display: flex; }
  .header__actions .btn--pill { display: none; }
  .section { overflow-x: clip; }
  [data-parallax] { translate: none !important; }
  .reveal--left, .reveal--right { transform: translateY(32px); }
  .reveal--left.is-visible, .reveal--right.is-visible { transform: none; }
  .deco--hero-r, .deco--hero-sprig, .deco--hero-sprig2, .deco--serv-r, .deco--salon-l, .deco--mast-l, .deco--mast-r, .deco--cta-r, .deco--footer { display: none; }
  /* Hero: текст → фото → кнопки */
  .hero__inner { display: flex; flex-direction: column; gap: 28px; }
  .hero__content { display: contents; }
  .hero__title { order: 1; }
  .hero__text { order: 2; margin-bottom: 0; }
  .hero__media { order: 3; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero__actions { order: 4; justify-content: center; }
  /* Услуги: сетка 2×2 + пятая карточка */
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; min-width: 0; }
  .services__grid .scard:nth-child(5) { grid-column: 1 / -1; }
  .scard { border-radius: 100px 100px 20px 20px; padding: 24px 14px 22px; min-width: 0; }
  .scard__art { width: 96px; height: 84px; }
  .scard h3 { font-size: 0.95rem; }
  .scard p { font-size: 0.72rem; margin-bottom: 14px; }
  .salon__head { grid-template-columns: 1fr; gap: 20px; }
  /* ДиЭль изнутри: горизонтальная прокрутка внутри экрана */
  .salon__gallery { display: flex; gap: 12px; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
  .salon__gallery::-webkit-scrollbar { display: none; }
  .salon__photo { flex: 0 0 clamp(240px, 72vw, 320px); scroll-snap-align: start; aspect-ratio: 4 / 3; border-radius: 16px; }
  /* Мастера: горизонтальная прокрутка внутри экрана */
  .masters__grid { display: flex; gap: 18px; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0; padding-bottom: 8px; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
  .masters__grid::-webkit-scrollbar { display: none; }
  .mcard { flex: 0 0 clamp(220px, 72vw, 280px); scroll-snap-align: start; min-width: 0; }
  body.menu-open { overflow: hidden; touch-action: none; }
  .cta__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none !important; filter: none !important; transition: opacity .4s ease; }
  .words .word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .deco.bloom { clip-path: none !important; scale: 1 !important; }
  [data-parallax] { translate: none !important; }
  .btn--primary:hover, .scard:hover, .mcard:hover .mcard__photo img, .link-arrow:hover .arrow { transform: none; }
}
