/* Вітрина «Дужче» */

:root {
  --bg: #f8f5f0;          /* папір з референсу */
  --paper: #fbf9f5;
  --ink: #3f4433;         /* темна олива — текст */
  --muted: #6f7660;
  --accent: #7f8b68;      /* шавлія */
  --sage: #7d8766;
  --sage-deep: #4a5139;
  --line: #d6d6c8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --caps: 'Forum', Georgia, serif;
  --script: 'Great Vibes', cursive;
  /* льняна текстура */
  --linen: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9 .35' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .32  0 0 0 0 .25  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg) var(--linen);
  color: var(--ink);
  font: 400 19px/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(248, 245, 240, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 42, 34, .06);
}
.logo { font: 400 34px/1 var(--script); text-decoration: none; color: var(--ink); }
.top nav { display: flex; gap: 20px; }
.top nav a { font: 500 15px/1 var(--caps); letter-spacing: .06em; text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 480px) { .top nav { gap: 14px; } .top nav a { font-size: 13px; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 17px/1 var(--caps); letter-spacing: .05em;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; flex: 1; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 56px 20px 0; max-width: 1080px; margin: 0 auto; }
.kicker { font: 500 15px/1 var(--caps); letter-spacing: .28em; color: var(--muted); }
.hero h1 {
  margin: 18px 0 20px;
  font: 400 clamp(52px, 13vw, 104px)/1 var(--caps);
  letter-spacing: .01em;
}
.hero h1 em { font: 400 1.15em/0.8 var(--script); color: var(--accent); }
.lead { max-width: 560px; margin: 0 auto; font-size: clamp(19px, 4.6vw, 22px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

.hero-phones {
  position: relative;
  height: clamp(380px, 95vw, 560px);
  margin: 48px auto 0;
  max-width: 640px;
}
.ph {
  position: absolute; bottom: 0; left: 50%;
  width: clamp(150px, 40vw, 250px);
  aspect-ratio: 375 / 760;
  object-fit: cover; object-position: top;
  border-radius: 28px;
  border: 6px solid var(--paper);
  box-shadow: 0 30px 60px rgba(58, 42, 34, .22);
}
.ph-c { translate: -50% 0; z-index: 2; animation: float 6s ease-in-out infinite; }
.ph-l { translate: -118% 30px; rotate: -8deg; }
.ph-r { translate: 18% 30px; rotate: 8deg; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Секції ---------- */
section { padding: 72px 20px; }
.h {
  text-align: center;
  font: 400 clamp(38px, 9vw, 54px)/1.05 var(--caps);
}
.sub { text-align: center; color: var(--muted); max-width: 520px; margin: 12px auto 0; }

/* ---------- Як це працює ---------- */
.how { background: var(--paper); }
.steps {
  list-style: none;
  display: grid; gap: 28px;
  max-width: 960px; margin: 40px auto 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps li { text-align: center; color: var(--muted); }
.steps b { display: block; margin: 12px 0 4px; font: 500 22px/1.2 var(--serif); color: var(--ink); }
.steps .n {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line);
  font: 400 30px/1 var(--script); color: var(--accent);
}

/* ---------- Каталог ---------- */
.cards {
  display: grid; gap: 48px 28px;
  max-width: 1080px; margin: 44px auto 0;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card { text-align: center; }
.phone {
  display: block;
  margin: 0 auto;
  width: min(100%, 260px);
  aspect-ratio: 375 / 760;
  border-radius: 30px;
  overflow: hidden;
  border: 7px solid var(--paper);
  box-shadow: 0 22px 50px rgba(63, 68, 51, .2);
  transition: transform .35s, box-shadow .35s;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 6s ease; }
.phone:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(63, 68, 51, .28); }
.phone:hover img { transform: scale(1.04); }
.card h3 { margin-top: 22px; font: 400 30px/1.1 var(--caps); }
.tags { margin: 8px auto 0; max-width: 260px; font-size: 16px; color: var(--muted); }
.row { display: flex; gap: 10px; max-width: 260px; margin: 18px auto 0; }

/* ---------- Ціни ---------- */
.price { background: var(--paper); }
.price-card {
  max-width: 520px; margin: 40px auto 0;
  padding: 40px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
}
.from { font: 400 30px/1 var(--script); color: var(--accent); }
.amount { font: 400 72px/1 var(--caps); margin: 4px 0 26px; }
.amount span { font-size: .4em; color: var(--muted); }
.incl-title { margin: 22px 0 10px; font: 500 15px/1 var(--caps); letter-spacing: .14em; color: var(--muted); }
.incl, .extra { list-style: none; text-align: left; display: grid; gap: 8px; }
.incl li, .extra li { position: relative; padding-left: 28px; }
.incl li::before { content: '✓'; position: absolute; left: 4px; color: var(--accent); }
.extra li::before { content: '+'; position: absolute; left: 6px; color: var(--accent); font-weight: 600; }
.note { margin: 26px 0 22px; color: var(--muted); font-style: italic; }

/* ---------- Контакти ---------- */
.links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }
.contact {
  display: flex; align-items: center; gap: 14px;
  min-width: 260px;
  padding: 16px 22px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--paper);
  text-decoration: none;
  transition: transform .2s, border-color .2s;
}
.contact:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact svg { width: 30px; height: 30px; fill: var(--accent); flex: none; }
.contact span { display: flex; flex-direction: column; text-align: left; color: var(--muted); font-size: 17px; line-height: 1.25; }
.contact b { color: var(--ink); font: 500 20px/1.2 var(--caps); }

/* ---------- Футер ---------- */
.foot { text-align: center; padding: 40px 20px 56px; color: var(--muted); font-size: 16px; border-top: 1px solid var(--line); }
.foot .logo { margin-bottom: 8px; }

/* ---------- Поява ---------- */
.rv { opacity: 0; translate: 0 24px; transition: opacity .9s ease, translate .9s ease; }
.rv.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; translate: none; transition: none; }
  .ph-c { animation: none; }
}

/* ---------- Живі телефони на комп'ютері ---------- */
.only-desk { display: none; }
.desk .only-desk { display: block; }
.desk .only-touch { display: none; }
.desk .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.desk .row, .desk .tags { max-width: 300px; }
.desk .card .phone { position: relative; width: 300px; }
.phone.live {
  position: relative;
  width: 300px;
  --s: calc(286 / 375); /* ширина екрана телефона 286px (300 мінус рамка) */
}
.phone.live iframe {
  position: absolute; left: 0; top: 0;
  width: 375px; height: 779px; /* = висота екрана 594px / масштаб */
  border: 0;
  transform: scale(var(--s));
  transform-origin: 0 0;
  background: transparent;
  opacity: 0;
  transition: opacity .5s;
}
.phone.live.ready iframe { opacity: 1; }
.phone.live.ready > img { visibility: hidden; transition: visibility 0s .5s; }
.phone.live:hover { transform: none; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px;
  translate: -50% 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(63, 68, 51, .78);
  color: #fbf8f3;
  font: 500 13px/1 var(--caps); letter-spacing: .08em;
  pointer-events: none;
  transition: opacity .4s;
  animation: nudge 2.4s ease-in-out infinite;
}
.phone.live .scroll-hint { animation-delay: .3s; }
.phone.live.ready .scroll-hint { opacity: 0; transition-delay: 2.5s; transition-duration: .6s; }
@keyframes nudge { 50% { translate: -50% -5px; } }


/* ================= Бренд «Дужче»: льон, шавлія, гравюрні квіти ================= */
.how, .price { background: transparent; }
.btn { font-family: var(--caps); letter-spacing: .12em; font-weight: 400; text-transform: uppercase; font-size: 14px; }
.btn.sm { font-size: 13px; }
.h { font-family: var(--caps); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.card h3 { font-family: var(--caps); text-transform: uppercase; letter-spacing: .1em; font-size: 24px; }

/* --- шапка --- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mono { width: 40px; height: 34px; color: var(--accent); --logo-bg: rgba(248, 245, 240, 1); }
.brand span { font: 400 20px/1 var(--caps); letter-spacing: .28em; text-transform: uppercase; }
.top nav a { font-family: var(--caps); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }

/* --- головний екран: логотип між квітковими краями з картинки-референсу ---
   Краї — окремі шари з маскою, щоб папір картинки плавно розчинявся у фоні сторінки. */
.hero {
  position: relative; max-width: none; overflow: hidden;
  padding: clamp(150px, 36vw, 230px) 20px clamp(180px, 40vw, 260px);
  background: var(--bg);
}
.hero::before, .hero::after {
  content: ''; position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none;
  height: min(54vw, 300px);
}
.hero::before {
  top: 0;
  background: url(/assets/brand/flora-top.jpg) left top / min(704px, 100%) auto no-repeat;
  -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent);
}
.hero::after {
  bottom: 0;
  background: url(/assets/brand/flora-bottom-r.jpg) right bottom / min(704px, 100%) auto no-repeat;
  /* розчиняємо і верхній, і нижній край — щоб не було «шва» з наступною секцією */
  -webkit-mask: linear-gradient(transparent, #000 35%, #000 52%, transparent 96%); mask: linear-gradient(transparent, #000 35%, #000 52%, transparent 96%);
}
.hero > * { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .hero { padding-top: 180px; padding-bottom: 230px; }
  .hero::before, .hero::after { height: min(23.5vw, 300px); }
  .hero::before { background: url(/assets/brand/flora-top.jpg) left top / 50% auto no-repeat, url(/assets/brand/flora-top-r.jpg) right top / 50% auto no-repeat; }
  .hero::after { background: url(/assets/brand/flora-bottom.jpg) left bottom / 50% auto no-repeat, url(/assets/brand/flora-bottom-r.jpg) right bottom / 50% auto no-repeat; }
}
.lockup { display: flex; flex-direction: column; align-items: center; }
.lockup-mono { display: flex; align-items: center; gap: clamp(16px, 5vw, 34px); color: var(--accent); }
.mono { display: block; width: clamp(150px, 42vw, 220px); aspect-ratio: 176 / 148; color: var(--accent); --logo-bg: var(--bg); }
.side { font: 400 clamp(14px, 3.6vw, 18px)/1 var(--caps); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.word {
  margin-top: 18px;
  font: 400 clamp(48px, 15vw, 100px)/1 var(--caps);
  letter-spacing: .2em; margin-right: -.2em;
  text-transform: uppercase; color: var(--ink);
}
.hero .kicker { margin-top: 14px; font: 400 clamp(13px, 3.4vw, 16px)/1 var(--caps); letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.hero .lead { margin-top: 30px; color: var(--muted); }
.hero .cta { position: relative; z-index: 2; }
.hero-phones { display: none; }

/* --- кроки --- */
.steps .n { border-color: var(--accent); color: var(--accent); }

/* --- ціни: темна шавлія з гравюрним візерунком і світлим овалом --- */
.price {
  position: relative;
  /* квіти з референсу, «перефарбовані» множенням у темну шавлію */
  background: url(/assets/brand/flora-tile.jpg) center / 620px auto repeat, var(--sage);
  background-blend-mode: multiply;
  padding: 90px 20px;
}
.price .h { color: var(--paper); }
.price-card {
  position: relative;
  background: var(--paper) var(--linen);
  border: 0;
  border-radius: 260px / 300px;
  padding: 70px 34px 64px;
  max-width: 520px;
  box-shadow: 0 0 0 7px var(--sage), 0 0 0 8.5px var(--paper), 0 30px 60px rgba(30, 34, 22, .35);
}
@media (max-width: 520px) { .price-card { border-radius: 180px / 200px; padding: 60px 24px 56px; } }
.from { color: var(--accent); }
.amount { font-family: var(--caps); color: var(--ink); }
.incl-title { font-family: var(--caps); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }

/* --- контакти і футер --- */
.contact { background: var(--paper); }
.contact svg { fill: var(--accent); }
.contact b { font-family: var(--caps); letter-spacing: .08em; }
.foot { background: var(--sage-deep); color: rgba(245, 244, 238, .7); border: 0; }
.foot-mono { width: 96px; margin: 0 auto 12px; color: var(--paper); --logo-bg: var(--sage-deep); }
.foot-word { font: 400 24px/1 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--paper); margin-bottom: 8px; }

/* --- «Як це працює»: кроки на матовому склі --- */
.how { position: relative; overflow: hidden; }
/* за склом — м'які шавлієві плями і квіти (з розчиненими краями), щоб було що розмивати */
.how {
  background:
    radial-gradient(closest-side, rgba(127, 139, 104, .36), transparent) 12% 62% / 360px 360px no-repeat,
    radial-gradient(closest-side, rgba(176, 160, 130, .3), transparent) 52% 42% / 420px 320px no-repeat,
    radial-gradient(closest-side, rgba(127, 139, 104, .28), transparent) 88% 70% / 380px 380px no-repeat;
}
.how::before, .how::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: min(704px, 62%); aspect-ratio: 704 / 300;
  -webkit-mask: radial-gradient(closest-side, #000 45%, transparent); mask: radial-gradient(closest-side, #000 45%, transparent);
  opacity: .85;
}
.how::before { left: -6%; bottom: -4%; background: url(/assets/brand/flora-bottom.jpg) center / 100% auto no-repeat; }
.how::after { display: none; }
.how > * { position: relative; z-index: 1; }
.steps { gap: 26px; max-width: 1000px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 34px 26px 32px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08));
  -webkit-backdrop-filter: blur(9px) saturate(1.25); backdrop-filter: blur(9px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 18px 40px rgba(63, 68, 51, .1), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(127, 139, 104, .12);
  font-size: 17px; line-height: 1.4; color: #5a6050;
}
/* відблиск на склі */
.steps li::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .25) 100%);
}
.steps .n { width: 46px; height: 46px; font-size: 26px; background: rgba(255, 255, 255, .25); border-color: rgba(127, 139, 104, .55); }
.steps b { margin: 12px 0 6px; font-size: 21px; }

/* --- Вартість: три картки --- */
.plans {
  display: grid; gap: 22px; align-items: stretch;
  max-width: 1080px; margin: 44px auto 0;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 28px 30px;
  background: var(--paper) var(--linen);
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 24px 50px rgba(30, 34, 22, .3);
  color: var(--ink); text-align: left;
}
.plan-best { border-radius: 150px 150px 28px 28px; padding-top: 64px; box-shadow: 0 0 0 6px var(--sage), 0 0 0 7.5px var(--paper), 0 30px 60px rgba(30, 34, 22, .38); }
@media (min-width: 960px) { .plan-best { transform: translateY(-14px); } }
.badge { position: absolute; top: 26px; left: 50%; translate: -50% 0; font: 400 26px/1 var(--script); color: var(--accent); }
.plan-name { font: 400 15px/1.2 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: center; }
.plan-price { margin-top: 12px; font: 400 54px/1 var(--caps); text-align: center; color: var(--ink); }
.plan-price .from { font: 400 26px/1 var(--script); color: var(--accent); margin-right: 4px; }
.plan-price .cur { font-size: .4em; color: var(--muted); }
.old { margin-top: 6px; text-align: center; color: var(--muted); text-decoration: line-through; font-size: 16px; }
.plan .incl { margin-top: 22px; }
.plan .incl-title { margin: 22px 0 10px; text-align: left; }
.plan-desc { margin-top: 18px; color: var(--muted); text-align: center; font-size: 17px; }
.addons, .tiers { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.tiers { margin-top: 20px; }
.addons li, .tiers li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); font-size: 16.5px; line-height: 1.3; }
.addons b, .tiers b { flex: none; font: 400 15px/1.3 var(--caps); letter-spacing: .04em; color: var(--accent); white-space: nowrap; }
.plan .note { margin: 18px 0 0; text-align: center; font-size: 16px; }
.plan .btn { margin-top: auto; align-self: center; }
.plan > ul:last-of-type, .plan .note { margin-bottom: 24px; }
.save { margin: 22px 0 24px; padding: 16px 18px; border-radius: 18px; background: rgba(127, 139, 104, .12); text-align: center; font-style: italic; font-size: 16.5px; color: #5a6150; }

/* ================= Анімації вітрини ================= */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Конверт на головному екрані */
  .env-anim { overflow: visible; }
  .env-anim .e-flap-front { transform-origin: 100px 70px; transform-box: view-box; }
  .env-anim .e-flap-back { transform-origin: 100px 70px; transform-box: view-box; transform: scaleY(0); }
  .env-anim .e-letter { transform: translateY(58px); }
  .loaded .env-anim .e-flap-front { animation: flap-close .55s .5s cubic-bezier(.5, 0, .9, .5) forwards; }
  .loaded .env-anim .e-flap-back { animation: flap-open .6s 1.05s cubic-bezier(.1, .5, .3, 1) forwards; }
  .loaded .env-anim .e-letter { animation: letter-up 1.1s 1.45s cubic-bezier(.2, .8, .25, 1) forwards; }
  @keyframes flap-close { to { transform: scaleY(0); } }
  @keyframes flap-open { to { transform: scaleY(1); } }
  @keyframes letter-up { to { transform: translateY(0); } }

  .hero .side, .hero .word, .hero .kicker, .hero .lead, .hero .cta { opacity: 0; translate: 0 18px; filter: blur(4px); }
  .loaded .hero .side, .loaded .hero .word, .loaded .hero .kicker, .loaded .hero .lead, .loaded .hero .cta {
    animation: rise 1.1s cubic-bezier(.2, .8, .25, 1) forwards;
  }
  .loaded .hero .side { animation-delay: 2.2s; }
  .loaded .hero .word { animation-delay: 2.1s; }
  .loaded .hero .kicker { animation-delay: 2.45s; }
  .loaded .hero .lead { animation-delay: 2.7s; }
  .loaded .hero .cta { animation-delay: 2.95s; }
  @keyframes rise { to { opacity: 1; translate: 0 0; filter: blur(0); } }

  /* 2. Квіти «розпускаються» від центру і рухаються при прокрутці */
  .hero::before, .hero::after { clip-path: inset(0 50% 0 50%); opacity: 0; scale: 1.05; }
  .loaded .hero::before, .loaded .hero::after { animation: bloom 2.4s cubic-bezier(.3, .7, .2, 1) forwards; }
  .loaded .hero::after { animation-delay: .35s; }
  @keyframes bloom { to { clip-path: inset(0 0 0 0); opacity: 1; scale: 1; } }
  .hero::before { translate: 0 calc(var(--sy, 0) * -0.18px); }
  .hero::after { translate: 0 calc(var(--sy, 0) * 0.12px); }

  /* 4. Кроки: картки по черзі, номер «спалахує», між ними малюється пунктир */
  .steps { position: relative; }
  .steps li { opacity: 0; translate: 0 26px; transition: opacity .8s ease, translate .9s cubic-bezier(.2, .8, .25, 1); }
  .steps .n { scale: .3; transition: scale .6s cubic-bezier(.3, 1.6, .5, 1); }
  .steps.go li { opacity: 1; translate: 0 0; }
  .steps.go .n { scale: 1; }
  .steps.go li:nth-child(1), .steps.go li:nth-child(1) .n { transition-delay: .1s; }
  .steps.go li:nth-child(2), .steps.go li:nth-child(2) .n { transition-delay: .7s; }
  .steps.go li:nth-child(3), .steps.go li:nth-child(3) .n { transition-delay: 1.3s; }

  /* 5. Прайс: картки виїжджають по черзі, стара ціна перекреслюється на очах */
  .plan { opacity: 0; translate: 0 40px; transition: opacity .9s ease, translate 1s cubic-bezier(.2, .8, .25, 1); }
  .plans.go .plan { opacity: 1; translate: 0 0; }
  .plans.go .plan:nth-child(2) { transition-delay: .25s; }
  .plans.go .plan:nth-child(3) { transition-delay: .5s; }
  .old { text-decoration: none; }
  .old span { position: relative; }
  .old span::after { content: ''; position: absolute; left: -2px; right: -2px; top: 55%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .7s 2.1s ease; }
  .plans.go .old span::after { transform: scaleX(1); }
}
/* пунктир між кроками (лише коли картки в один ряд) */
@media (min-width: 900px) {
  .steps::after {
    content: ''; position: absolute; z-index: 0; top: 57px; left: 16.6%; right: 16.6%;
    border-top: 1.5px dashed rgba(127, 139, 104, .55);
  }
  .steps li { z-index: 1; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .steps::after { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s .3s ease; }
  .steps.go::after { clip-path: inset(0 0 0 0); }
}

/* --- Хедер: скляна «пігулка» по центру зверху --- */
.top {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 0 12px; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  pointer-events: none;
}
.pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(14px, 4vw, 34px);
  padding: 9px clamp(18px, 4vw, 30px) 9px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 249, 245, .72), rgba(251, 249, 245, .46));
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 10px 30px rgba(63, 68, 51, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.pill a { text-decoration: none; color: var(--ink); font: 400 13px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; padding: 8px 2px; transition: color .25s; }
.pill a:hover { color: var(--accent); }
.pill-home { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .45); padding: 0 !important; }
.pill-home .brand-mono { width: 28px; height: 24px; --logo-bg: rgba(255, 255, 255, .7); }
@media (max-width: 420px) { .pill a { font-size: 12px; letter-spacing: .1em; } }
section[id] { scroll-margin-top: 80px; }

/* --- Кнопка «вгору» --- */
.to-top {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 50;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(251, 249, 245, .78), rgba(251, 249, 245, .5));
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 26px rgba(63, 68, 51, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
  opacity: 0; translate: 0 16px; scale: .85; pointer-events: none;
  transition: opacity .4s ease, translate .5s cubic-bezier(.2, .8, .25, 1), scale .5s cubic-bezier(.2, .8, .25, 1), color .25s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.to-top:hover { color: var(--accent); }
.to-top:hover svg { animation: nudge-up 1s ease-in-out infinite; }
@keyframes nudge-up { 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } .to-top:hover svg { animation: none; } }

/* --- Категорії каталогу --- */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; }
.cat {
  padding: 11px 26px; border-radius: 999px; cursor: pointer;
  font: 400 14px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  background: rgba(255, 255, 255, .4); border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.cat.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dots { display: none; }

/* --- Каталог на телефоні: горизонтальна карусель --- */
@media (max-width: 699px) {
  .catalog { padding-left: 0; padding-right: 0; }
  .catalog .h, .catalog .sub, .cats { padding: 0 20px; }
  .cards {
    display: flex; gap: 18px; margin-top: 30px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 6px 12vw 26px; scroll-padding: 0 12vw;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 76vw; max-width: 320px; scroll-snap-align: center; }
  .card .phone { width: 100%; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
  .dots i.on { width: 22px; border-radius: 4px; background: var(--accent); }
}
