/* ==========================================================================
   KVITY flower studio — v2 «modern luxe»
   Палитра и шрифт — по её бренду: персиково-пудровый, светло-серый, чёрный.
   Анимации: только мягкое появление и медленный зум. Mobile-first.
   ========================================================================== */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/jost-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/jost-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/jost-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-0403, U+0405, U+0408-0453, U+0455, U+0458-045F, U+04B0-04B1, U+2116; }
/* Украинские і ї є ґ (І Ї Є Ґ): в Jost их нет — собраны из его же глифов (i, ï, зеркальная э, г + крючок), см. README */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/jost-ua.woff2) format("woff2"); unicode-range: U+0404, U+0406-0407, U+0454, U+0456-0457, U+0490-0491; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: "KvLogo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/montserrat-latin.woff2) format("woff2"); } /* буквы логотипа (Montserrat) */
@font-face { font-family: "Sacramento"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/sacramento-latin.woff2) format("woff2"); } /* подпись с карточки */

:root {
  --bg: #FBF9F7;
  --surface: #F3EEEA;
  --blush: #F6DDD1;
  --blush-2: #EECDBD;
  --accent: #A3685A;
  --ink: #1F1C1B;
  --ink-soft: #6B6461;
  --line: rgba(31, 28, 27, .12);
  --white: #FFFFFF;

  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant", "Times New Roman", serif;

  --gutter: 20px;
  --max: 1280px;
  --header-h: 64px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--blush); }
svg { flex: none; }

/* ---------- Типографика ---------- */
.display {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.15rem, 8.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: 0;
  color: var(--accent);
}
.label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
p { text-wrap: pretty; }

.section { padding: 84px var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-pad { padding-inline: var(--gutter); }
.head { margin-bottom: 36px; }
.center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #3a3533; }
.btn--line { border-color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--blush); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .7rem; }
.btn--wide { width: 100%; }

/* ---------- Логотип (по её фирменной карточке) ---------- */
/* Буквы — Montserrat 500 с разрядкой; знак (подсолнух + стебель вокруг «V») — SVG #kv-mark,
   координаты: 100 ед. = высота заглавной; .70em — высота заглавной Montserrat, .27em — от верха строки до верха заглавной. */
.logo {
  --mk-k: 1.08;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  padding-top: 12px; /* место под цветок над I */
}
.logo__word {
  font-family: "KvLogo", var(--sans);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: .14em;
  margin-right: -.14em;
}
.logo__i { position: relative; }
.logo__i svg {
  position: absolute;
  width: calc(.924em * var(--mk-k));
  height: calc(1.043em * var(--mk-k));
  left: calc(50% - .70em * var(--mk-k));
  top: calc(.27em - .448em * var(--mk-k));
  overflow: visible;
  pointer-events: none;
}
/* Внутри <use> внешние селекторы не работают — настройки знака передаём переменными */
.mk-p { fill: var(--mk-fill, var(--bg)); stroke: currentColor; stroke-width: var(--mk-sw, .8px); vector-effect: non-scaling-stroke; }
.mk-s { fill: none; stroke: currentColor; stroke-width: var(--mk-sw, .8px); vector-effect: non-scaling-stroke; }
.mk-in { display: var(--mk-in, inline); }
.logo__sub {
  font-size: .44rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin-top: 6px;
  margin-right: -.34em;
}
.logo__tag {
  font-family: "Sacramento", cursive;
  font-size: .7rem;
  line-height: 1;
  margin-top: 8px;
  white-space: nowrap;
}
.logo--light { color: var(--white); --mk-fill: var(--ink); }
.logo--light .logo__word { font-size: 2rem; }
.logo--light { --mk-sw: 1px; }
.header .logo { --mk-sw: .6px; --mk-in: none; } /* мелкий размер: тонкий контур и один ряд лепестков, иначе цветок сливается */
/* Логотип из файлов Алины (img/logo-*.png): картинка вместо букв */
.logo:has(.logo__img) { padding-top: 0; }
.logo__img { display: block; width: 126px; height: auto; }
.logo--light .logo__img { width: 190px; }
.note svg { --mk-fill: var(--surface); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-solid {
  background: rgba(251, 249, 247, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__nav { display: none; }
.header__order { display: none; }
.langs { display: flex; gap: 2px; margin-left: auto; }
.langs button {
  border: 0; background: none; cursor: pointer;
  min-width: 32px; height: 32px; padding: 0 4px;
  font-size: .7rem; font-weight: 500; letter-spacing: .1em;
  color: var(--ink-soft);
  position: relative;
}
.langs button::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 5px; height: 1px;
  background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease);
}
.langs button.is-active { color: var(--ink); }
.langs button.is-active::after { transform: scaleX(1); }

/* ---------- Первый экран ---------- */
.hero { position: relative; }
.hero__media {
  position: relative;
  height: 64vh;
  height: 64svh;
  min-height: 420px;
  overflow: hidden;
  background: var(--surface);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  animation: heroZoom 2.4s var(--ease) both;
}
.hero__media::before { /* светлая дымка под шапкой — чтобы читались логотип и языки */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 140px; z-index: 1;
  background: linear-gradient(to bottom, rgba(251,249,247,.85), rgba(251,249,247,0));
}
.hero__media::after { /* мягкий переход фото в фон страницы */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(to bottom, rgba(251,249,247,0), var(--bg));
}
@keyframes heroZoom { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
.hero__content { position: relative; padding: 0 var(--gutter) 56px; margin-top: -36px; }
.hero__line { opacity: 0; animation: rise 1.1s calc(.35s + var(--d) * .12s) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__h1 { margin: 0; font-weight: inherit; }
.hero__h1 > span { display: block; }
.hero__content .display { font-size: clamp(2.35rem, 10.2vw, 5.2rem); }
.hero__sub { color: var(--ink-soft); max-width: 36ch; margin: 0 0 24px; }
.hero__est { color: var(--accent); margin: 0 0 14px; }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.hero__actions .btn { padding: 0 12px; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { overflow: hidden; background: var(--surface); }
.reveal-img img { opacity: 0; transform: scale(1.05); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); transition-delay: var(--delay, 0s); }
.reveal-img.in img { opacity: 1; transform: none; }

/* ---------- Категории ---------- */
.cats { max-width: var(--max); margin: 0 auto; }
.cats__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 46%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 6px;
  scrollbar-width: none;
}
.cats__track::-webkit-scrollbar { display: none; }
.cat {
  scroll-snap-align: start;
  position: relative;
  display: block;
  border: 0; padding: 0; margin: 0;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  -webkit-tap-highlight-color: transparent;
}
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,28,27,.5), rgba(31,28,27,0) 50%); }
.cat span {
  position: absolute; left: 14px; right: 10px; bottom: 12px; z-index: 1;
  line-height: 1.35;
  color: var(--white);
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- Галерея ---------- */
.filters {
  position: relative;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 26px;
  padding: 0 var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter sup { font-size: .62em; margin-left: 3px; opacity: .6; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.work {
  margin: 0;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  animation: workIn .7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes workIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.work__frame { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; background: var(--surface); }
.work__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover .work__frame img { transform: scale(1.04); }
.gallery__more { margin-top: 34px; }
.gallery__more sup { font-size: .7em; margin-left: 4px; opacity: .6; }
.work figcaption { font-size: .82rem; line-height: 1.35; color: var(--ink-soft); margin-top: 8px; }
.note {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 640px;
  margin: 34px 0 0;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--ink-soft);
}
.note svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* ---------- Шары ---------- */
.balloons {
  background: var(--blush);
  padding: 84px var(--gutter);
  display: grid;
  gap: 44px;
}
.balloons__media { position: relative; padding-right: 26%; }
.balloons__img { border-radius: var(--radius); aspect-ratio: 3 / 4; }
.balloons__img img { width: 100%; height: 100%; object-fit: cover; }
.balloons__img--side { position: absolute; right: 0; bottom: -28px; width: 42%; border: 6px solid var(--blush); }
.balloons__text p:not(.label) { color: #5d4b45; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-size: .95rem; }
.ticks svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- О студии ---------- */
.about { display: grid; gap: 40px; }
.about__media { border-radius: var(--radius); aspect-ratio: 1 / 1; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.about__text p:not(.label) { color: var(--ink-soft); max-width: 50ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.stats dt { font-weight: 300; font-size: 2rem; line-height: 1; display: flex; align-items: center; gap: 6px; }
.stats dt svg { width: 16px; height: 16px; color: #C9A063; }
.stats dd { margin: 8px 0 0; font-size: .78rem; line-height: 1.35; color: var(--ink-soft); }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--accent); }
.step h3 { font-weight: 400; font-size: 1.15rem; margin: 0 0 4px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ---------- Форма ---------- */
.order { display: grid; gap: 36px; }
.order__sub { color: var(--ink-soft); max-width: 46ch; }
.order__visual { display: none; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; }
.field { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.field legend { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.field legend small { font-size: .9em; letter-spacing: .1em; color: var(--ink-soft); text-transform: none; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: .92rem;
  transition: background-color .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.is-checked { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.custom-budget { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.custom-budget input { max-width: 160px; }
.row { display: grid; gap: 12px; }
.input { display: grid; gap: 6px; font-size: .78rem; color: var(--ink-soft); }
.input input, .input select, .input textarea, .custom-budget input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .25s, background-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.input select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6461' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 40px;
}
.input textarea { resize: vertical; min-height: 76px; }
.input input:focus, .input select:focus, .input textarea:focus, .custom-budget input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.input.has-error input, .input.has-error textarea { border-color: #B3261E; }
.input .error { color: #B3261E; font-size: .78rem; }
.segment { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 12px; }
.segment button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; min-height: 42px; border-radius: 999px; font-size: .88rem; transition: color .35s; }
.segment button.is-active { color: var(--white); }
.segment__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease); }
.segment.is-pickup .segment__thumb { transform: translateX(100%); }
.collapse { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .35s; }
.collapse > * { overflow: hidden; min-height: 0; }
.collapse.is-open { grid-template-rows: 1fr; opacity: 1; }
.collapse .chips { padding: 2px; }
.ref { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; margin-bottom: 24px; border-radius: var(--radius); background: var(--blush); }
.ref img { width: 64px; height: 85px; object-fit: cover; border-radius: 2px; }
.ref__label { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.ref strong { font-weight: 400; font-size: 1rem; line-height: 1.3; }
.ref__remove { border: 0; background: rgba(255,255,255,.7); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ref__remove svg { width: 18px; height: 18px; }
.form__send { display: grid; gap: 10px; }
.form__hint { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- Студии ---------- */
.studios__lead { color: var(--ink-soft); margin: -6px 0 0; max-width: 46ch; }
.studios__grid { display: grid; gap: 16px; }
.studio { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.studio__body { padding: 24px 20px 22px; }
.studio h3 { font-weight: 300; font-size: 1.7rem; margin: 0 0 16px; line-height: 1.1; }
.studio__line { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .92rem; margin: 0 0 8px; }
.studio__line svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.studio__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.studio__actions .btn { min-height: 46px; padding: 0 10px; font-size: .7rem; }
.map { position: relative; aspect-ratio: 16 / 10; background: var(--surface); display: grid; place-items: center; border-top: 1px solid var(--line); }
.map > svg { width: 28px; height: 28px; color: var(--accent); opacity: .6; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35); opacity: 0; transition: opacity .6s var(--ease); }
.map.is-loaded iframe { opacity: 1; }

/* ---------- Рейтинги ---------- */
.ratings { display: grid; gap: 14px; margin-bottom: 30px; }
.rating { display: flex; align-items: center; gap: 18px; padding: 22px 20px; border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; transition: background-color .3s; }
.rating:hover { background: var(--blush); }
.rating__num { font-weight: 300; font-size: 2.8rem; line-height: 1; }
.rating__stars { display: flex; gap: 2px; color: #C9A063; margin-bottom: 4px; }
.rating__stars svg { width: 15px; height: 15px; }
.rating__stars .is-off { color: rgba(201,160,99,.3); }
.rating small { display: block; color: var(--ink-soft); font-size: .82rem; }
.rating strong { font-weight: 500; }

.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1) 30px;
  padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start;
  margin: 0;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex; flex-direction: column; gap: 14px;
}
.review blockquote { margin: 0; flex: 1; font-weight: 300; font-size: 1.02rem; line-height: 1.55; }
.review figcaption { display: grid; gap: 2px; font-size: .85rem; }
.review figcaption span { color: var(--ink-soft); font-size: .78rem; }

/* ---------- Финал ---------- */
.cta { position: relative; overflow: hidden; text-align: center; color: var(--white); padding: 110px var(--gutter); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(31,28,27,.5); }
.cta__inner { position: relative; max-width: 640px; margin: 0 auto; }
.cta .display em { color: var(--blush); }
.cta p { margin: 0 0 30px; opacity: .9; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 64px var(--gutter) calc(110px + env(safe-area-inset-bottom)); }
.footer__top { display: grid; gap: 36px; max-width: var(--max); margin: 0 auto; }
.footer h3 { font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--blush-2); margin: 0 0 14px; }
.footer__tagline { margin: 18px 0 0; font-weight: 300; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list a { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.footer__list a:hover { color: var(--white); }
.footer__list svg { width: 17px; height: 17px; }
.footer__list--small { font-size: .85rem; color: rgba(255,255,255,.55); }
.footer__note { font-size: .78rem; line-height: 1.5; color: rgba(255,255,255,.4); margin-top: 6px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); transition: background-color .3s, color .3s; }
.socials a:hover { background: var(--white); color: var(--ink); }
.socials svg { width: 19px; height: 19px; }
.footer__bottom { max-width: var(--max); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: rgba(255,255,255,.45); }

/* ---------- Липкая панель ---------- */
.sticky {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex; gap: 8px; padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px -14px rgba(31,28,27,.35);
  transform: translateY(150%);
  transition: transform .55s var(--ease);
}
.sticky.is-visible { transform: none; }
.sticky__order { flex: 1; min-height: 48px; }
.sticky__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.sticky__icon svg { width: 20px; height: 20px; }

/* ---------- Просмотр фото ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 16px;
  padding: 64px 16px calc(24px + env(safe-area-inset-bottom));
  background: rgba(24, 21, 20, .94);
  color: var(--white);
  opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: grid; gap: 14px; justify-items: center; min-height: 0; max-height: 100%; }
.lightbox__figure img {
  max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px);
  max-width: 100%; object-fit: contain; border-radius: 2px;
  opacity: 0; transition: opacity .45s var(--ease);
}
.lightbox__figure img.is-loaded { opacity: 1; }
.lightbox figcaption { text-align: center; display: grid; gap: 4px; font-weight: 300; }
.lightbox__count { font-size: .68rem; letter-spacing: .24em; opacity: .55; }
.lightbox__btn { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--white); cursor: pointer; }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__btn:focus { outline: none; }
.lightbox__btn:focus-visible { outline: 1px solid rgba(255,255,255,.7); outline-offset: 3px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); display: none; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__cta { min-width: 240px; }

.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 95;
  transform: translate(-50%, 16px);
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: .88rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .45s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Планшет
   ========================================================================== */
@media (min-width: 720px) {
  :root { --gutter: 40px; --header-h: 76px; }
  .section, .balloons { padding-block: 120px; }
  .cats__track { grid-auto-columns: 30%; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .row { grid-template-columns: 1fr 1fr; }
  .form { padding: 36px 34px; }
  .studios__grid, .ratings { grid-template-columns: 1fr 1fr; }
  .reviews__track { grid-auto-columns: calc((100% - 24px) / 2.2); }
  .lightbox__nav { display: grid; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer { padding-bottom: 50px; }
}

/* ==========================================================================
   Десктоп
   ========================================================================== */
@media (min-width: 1024px) {
  .logo__word { font-size: 1.6rem; }
  .header__nav { display: flex; gap: 34px; margin-left: auto; }
  .header__nav a { text-decoration: none; font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; position: relative; }
  .header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
  .header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .langs { margin-left: 28px; }
  .header__order { display: inline-flex; margin-left: 18px; }

  .header { background: rgba(251, 249, 247, .94); box-shadow: 0 1px 0 var(--line); }
  .hero { display: grid; grid-template-columns: 11fr 9fr; min-height: 100vh; padding-top: var(--header-h); }
  .hero__media { order: 2; height: auto; min-height: calc(100vh - var(--header-h)); }
  .hero__content .display { font-size: clamp(2.8rem, 4.3vw, 4.6rem); }
  .hero__media::after, .hero__media::before { display: none; }
  .about__media { aspect-ratio: 4 / 5; }
  .hero__content { order: 1; margin: 0; align-self: center; padding: 60px 56px 80px max(40px, calc((100vw - var(--max)) / 2 + 40px)); }

  .cats { padding-top: 110px; }
  /* все категории в один ряд: столбцов столько, сколько категорий (--n ставит main.js) */
  .cats__track { grid-auto-flow: row; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 10px; overflow: visible; padding: 0 var(--gutter); }
  .cats__track[style*="--n: 6"] .cat span, .cats__track[style*="--n: 7"] .cat span, .cats__track[style*="--n: 8"] .cat span { font-size: .68rem; letter-spacing: .14em; }
  .filters { margin-inline: 0; padding: 0; flex-wrap: wrap; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; }

  .balloons { grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; padding-inline: max(40px, calc((100vw - var(--max)) / 2 + 40px)); }
  .about { grid-template-columns: 5fr 6fr; gap: 100px; align-items: center; }
  .steps { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: 32px; }
  .reviews__track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
  .step { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 22px; }
  .order { grid-template-columns: 5fr 7fr; gap: 90px; align-items: start; }
  .order__head { position: sticky; top: calc(var(--header-h) + 30px); }
  .order__visual { display: block; margin-top: 34px; border-radius: var(--radius); aspect-ratio: 4 / 5; max-width: 380px; }
  .order__visual img { width: 100%; height: 100%; object-fit: cover; }
  .sticky { display: none; }
  .cta { padding-block: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .reveal-img img, .hero__line { opacity: 1 !important; transform: none !important; }
}

/* Приписка под «Доставка» */
.form__note { margin: 0 0 10px; color: var(--ink-soft); line-height: 1.4; }
#customTimeBox { margin-top: 12px; }
.form__note--after { margin: 10px 0 0; }
.form__confirm { margin-top: 6px; color: var(--ink); }

/* ==========================================================================
   Страницы «Умови» и «Політика конфіденційності» (termeni.html, confidentialitate.html)
   ========================================================================== */
.lg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 820px; margin: 0 auto; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
.lg-top .logo__img { width: 110px; height: auto; }
.lg-langs { display: flex; gap: 4px; }
.lg-langs button { border: 0; background: none; padding: 6px 8px; font-size: .74rem; font-weight: 500; letter-spacing: .18em; color: var(--ink-soft); cursor: pointer; border-bottom: 1px solid transparent; }
.lg-langs button.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.lg { max-width: 820px; margin: 0 auto; padding: 34px var(--gutter) 70px; font-size: .98rem; }
.lg h1 { font-weight: 300; font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.15; margin: 0 0 6px; }
.lg .lg-date { color: var(--ink-soft); font-size: .85rem; margin: 0 0 28px; }
.lg h2 { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 32px 0 10px; }
.lg p, .lg li { margin: 0 0 10px; }
.lg ul { padding-left: 20px; margin: 0 0 12px; }
.lg a { color: var(--accent); }
.lg .lg-box { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 12px; }
.lg .lg-box p { margin: 0 0 4px; }
.lg-foot { max-width: 820px; margin: 0 auto; padding: 20px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lg-foot a { color: inherit; }
