/* =========================================================
   Лендинг
   ========================================================= */

.section { padding-block: var(--section-y); }
.section__head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head .lead, .section__lead { margin-top: 16px; }

/* Список переваг: проста синя галочка, без кружечків */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232347d5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =========================================================
   Перший екран: ліворуч текст на білому, праворуч синій студійний фон до краю екрана
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, calc(var(--wrap) / 2))
    [middle] minmax(0, calc(var(--wrap) / 2))
    [content-end] minmax(var(--gutter), 1fr) [full-end];
  min-height: min(780px, calc(100dvh - var(--header-h)));
}
.hero__copy { grid-column: content-start / middle; align-self: center; padding: 56px clamp(24px, 4vw, 56px) 64px 0; }
.hero__copy .lead { margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.hero__note { margin-top: 20px; font-size: 0.92rem; color: var(--ink-3); max-width: 30em; }

.hero__studio {
  grid-column: middle / full-end;
  display: grid; align-content: center; justify-items: center; gap: 28px;
  padding: 56px var(--gutter) 40px clamp(32px, 5vw, 72px);
  background: var(--blue);
  color: #fff;
}

/* «Було / стало» як два відбитки: велика готова картка й маленьке фото з телефона поверх */
.showcase { position: relative; width: min(64%, 380px); margin-left: 18%; }
.print { margin: 0; }
.print img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-s);
  background: var(--blue-deep);
  box-shadow: 0 2px 4px rgba(8, 16, 60, 0.25), 0 26px 50px -22px rgba(8, 16, 60, 0.7);
  transition: opacity 250ms ease;
}
.print figcaption { margin-top: 10px; font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.print--before { position: absolute; z-index: 1; left: -44%; bottom: 13%; width: 50%; }
.print--before img { border-radius: var(--r-xs); }
.print__file { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.62); }
[data-swapping] .print img { opacity: 0; }

.hero__thumbs { display: flex; gap: 8px; }
.hero__thumb {
  width: 48px; aspect-ratio: 3 / 4; padding: 0;
  border: 0; border-radius: var(--r-xs);
  background: var(--blue-deep); overflow: hidden;
  opacity: 0.55;
  transition: opacity 150ms ease;
}
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__thumb[aria-pressed="true"] { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.hero__thumb:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) { .hero__thumb:hover { opacity: 0.9; } }

/* =========================================================
   Як це працює: нейтральний студійний сірий, три кроки без карток
   ========================================================= */
.how { background: var(--studio); }
.how .section__lead { margin-bottom: clamp(36px, 4vw, 56px); }
/* Колонки однакової ширини, тож кадри й заголовки кроків стоять на одній лінії; роздільник — посередині проміжку */
.steps { --gap: clamp(32px, 4.8vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.step { position: relative; display: flex; flex-direction: column; }
.step:not(:first-child)::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gap) / -2); border-left: 1px solid var(--line-strong); }
.step .h3 { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.step__num {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: var(--r-xs);
  background: var(--blue); color: #fff;
  font-size: 0.85rem; font-weight: 800;
}
.step__text { margin-top: 8px; color: var(--ink-2); font-size: 0.97rem; max-width: 32ch; }

/* Одна й та сама річ проходить усі кроки: колонка мініатюр + головний кадр 3:4 */
.step-media { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 8px; }
/* contain: size — висоту рядка задає головний кадр, мініатюри ділять її на три */
.step-media__side { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0; contain: size; }
.step-media figure { position: relative; margin: 0; min-height: 0; border-radius: var(--r-xs); overflow: hidden; }
.step-media__side > img { min-height: 0; border-radius: var(--r-xs); }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-media__side--cards img { object-position: top; }
.step-media__main { aspect-ratio: 3 / 4; border-radius: var(--r-s) !important; box-shadow: var(--shadow-print); }
.step-media__main--active { outline: 2px solid var(--blue); outline-offset: 3px; }
.step-media figcaption {
  position: absolute; left: 6px; bottom: 6px;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(21, 28, 44, 0.75); color: #fff;
  font-size: 0.68rem; font-weight: 700;
}
.step-media__main figcaption { left: 8px; bottom: 8px; padding: 3px 8px; font-size: 0.75rem; }
.step-media__main--active figcaption { background: var(--blue); }
.step-media__file { font-family: var(--font-mono); font-weight: 500 !important; }

/* =========================================================
   Примірка на моделі
   ========================================================= */
.tryon__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.tryon__copy .lead { margin-top: 18px; }
.tryon__copy .ticks { margin: 26px 0 32px; }
.tryon__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tryon__row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-s); background: var(--studio); }
.tryon__row--looks img { aspect-ratio: 3 / 4; box-shadow: var(--shadow-print); }
.tryon__row--looks img:nth-child(2) { outline: 2px solid var(--blue); outline-offset: 3px; }
.tryon__prompt {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--blue);
  background: var(--blue-tint);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  color: var(--blue-deep); font-size: 0.92rem; font-weight: 600;
}

/* =========================================================
   Приклади: як сторінка каталогу магазину
   ========================================================= */
.examples { background: var(--studio); }
.catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.cat-card { min-width: 0; }
.cat-card__frame { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-s); overflow: hidden; background: var(--studio-2); box-shadow: var(--shadow-print); container-type: inline-size; }
.cat-card__frame img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__label { margin-top: 10px; font-weight: 700; font-size: 0.95rem; }

/* ---------- Накладка-інфографіка на картках каталогу ----------
   Як у готових картках першого екрана: легка назва з жирним останнім словом,
   підзаголовок капітеллю з рискою, тонкі галочки в колі. Розміри в cqw — частки ширини картки. */
.card-overlay {
  --fg: #f4f6fb;
  --accent: #9fb2ff;
  --line: rgba(244, 246, 251, 0.5);
  --chip: rgba(10, 16, 40, 0.32);
  --shadow: 0 0.3cqw 3cqw rgba(0, 0, 0, 0.4);
  --scrim: rgba(8, 12, 32, 0.55);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f6fb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4 4L18.5 7.5'/%3E%3C/svg%3E");
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 7.5cqw 7cqw;
  color: var(--fg);
}
.card-overlay--dark {
  --fg: #151c2c;
  --accent: #2347d5;
  --line: rgba(21, 28, 44, 0.2);
  --chip: rgba(255, 255, 255, 0.66);
  --shadow: 0 0 3cqw rgba(255, 255, 255, 0.7);
  --scrim: rgba(250, 251, 253, 0.62);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232347d5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4 4L18.5 7.5'/%3E%3C/svg%3E");
}
.card-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--scrim), transparent 42%); }

.card-overlay__title {
  max-width: 82%;
  font-weight: 300; font-size: 8.6cqw; line-height: 0.98; letter-spacing: -0.045em;
  text-shadow: var(--shadow);
  text-wrap: balance;
}
.card-overlay__title b { font-weight: 750; letter-spacing: -0.05em; }
.card-overlay__sub {
  position: relative;
  margin-top: 3.2cqw; padding-top: 3cqw; max-width: 82%;
  font-weight: 650; font-size: 3.4cqw; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.9; text-shadow: var(--shadow);
}
.card-overlay__sub::before { content: ""; position: absolute; left: 0; top: 0; width: 6.5cqw; height: 0.45cqw; border-radius: 1cqw; background: var(--accent); }

.card-overlay__chips { margin-top: auto; display: grid; gap: 2.4cqw; }
.card-overlay__chips li {
  display: flex; align-items: center; gap: 2.6cqw;
  font-weight: 650; font-size: 4cqw; line-height: 1.2; letter-spacing: -0.01em;
  text-shadow: var(--shadow);
}
.card-overlay__chips li::before {
  content: ""; flex: none; width: 7.8cqw; height: 7.8cqw; border-radius: 50%;
  border: 0.25cqw solid var(--line);
  background: var(--chip) var(--check) center / 52% no-repeat;
}

.card-overlay__badge {
  position: absolute; top: 7.5cqw; right: 7cqw;
  padding: 1.5cqw 3cqw 1.6cqw; border-radius: 99px;
  background: var(--accent); color: #fff;
  font-weight: 750; font-size: 3.3cqw; letter-spacing: 0.1em; text-transform: uppercase;
}
.card-overlay:not(.card-overlay--dark) .card-overlay__badge { color: #151c2c; }

.card-overlay--callouts::before { background: linear-gradient(180deg, var(--scrim), transparent 34%); }
.card-overlay__plate { display: contents; }
.card-overlay__callouts li {
  position: absolute; top: var(--y, 50%);
  padding: 1.5cqw 3cqw 1.6cqw;
  border-radius: 99px;
  border: 0.25cqw solid var(--line);
  background: var(--chip);
  backdrop-filter: blur(6px);
  font-weight: 650; font-size: 4cqw; line-height: 1.2; white-space: nowrap;
}
.card-overlay__callouts li::after { content: ""; position: absolute; top: 50%; width: 8cqw; border-top: 0.25cqw solid var(--line); }
.card-overlay__callouts li::before {
  content: ""; position: absolute; top: 50%; width: 2cqw; height: 2cqw; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0.6cqw var(--chip); translate: 0 -50%;
}
.card-overlay__callouts li:nth-child(odd) { left: 6cqw; }
.card-overlay__callouts li:nth-child(odd)::after { left: 100%; }
.card-overlay__callouts li:nth-child(odd)::before { left: calc(100% + 8cqw); translate: -50% -50%; }
.card-overlay__callouts li:nth-child(even) { right: 6cqw; }
.card-overlay__callouts li:nth-child(even)::after { right: 100%; }
.card-overlay__callouts li:nth-child(even)::before { right: calc(100% + 8cqw); translate: 50% -50%; }
.card-overlay__callouts li:nth-child(1) { --y: 46%; }
.card-overlay__callouts li:nth-child(2) { --y: 62%; }
.card-overlay__callouts li:nth-child(3) { --y: 78%; }
.card-overlay--callouts .card-overlay__badge { top: auto; bottom: 7cqw; right: 7cqw; }

.card-overlay__stat { display: flex; align-items: flex-start; gap: 1.4cqw; line-height: 0.82; text-shadow: var(--shadow); }
.card-overlay__stat strong { font-weight: 200; font-size: 25cqw; letter-spacing: -0.07em; color: var(--accent); }
.card-overlay__stat span { margin-top: 2.4cqw; font-weight: 650; font-size: 6cqw; letter-spacing: -0.03em; }
.card-overlay__stat-label { margin-top: 2.6cqw; max-width: 52%; font-weight: 650; font-size: 3.4cqw; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: var(--shadow); }
.card-overlay--stat .card-overlay__title { margin-top: auto; margin-bottom: 3.4cqw; font-size: 7cqw; }
.card-overlay--stat .card-overlay__chips { margin-top: 0; }
.card-overlay--stat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--scrim), transparent 38%); }

.card-overlay--chips-right .card-overlay__chips { align-self: flex-end; justify-items: end; }
.card-overlay--chips-right .card-overlay__chips li { flex-direction: row-reverse; text-align: right; }
.card-overlay--stack .card-overlay__chips { margin-top: 5cqw; }

.card-overlay--minimal { justify-content: flex-end; }
.card-overlay--minimal::before { display: none; }
.card-overlay__panel {
  align-self: stretch;
  padding: 4.6cqw 5cqw 5cqw;
  border-radius: 4cqw;
  background: rgba(255, 255, 255, 0.82); color: #151c2c;
  backdrop-filter: blur(10px);
  box-shadow: 0 4cqw 9cqw -5cqw rgba(21, 28, 44, 0.45);
}
.card-overlay__panel .card-overlay__title { max-width: none; font-size: 7cqw; text-shadow: none; }
.card-overlay__panel .card-overlay__sub { max-width: none; text-shadow: none; }
.card-overlay__panel .card-overlay__sub::before { background: #2347d5; }
.card-overlay__tags { display: flex; flex-wrap: wrap; gap: 1.4cqw 3.2cqw; margin-top: 3.4cqw; }
.card-overlay__tags li { display: flex; align-items: center; gap: 1.4cqw; font-size: 3.7cqw; font-weight: 650; }
.card-overlay__tags li::before { content: ""; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #2347d5; }

/* =========================================================
   Порівняння: таблиця, бо це і є порівняння за рядками
   ========================================================= */
.compare-wrap { margin-top: clamp(28px, 4vw, 44px); overflow-x: auto; }
.versus { padding-bottom: 0; } /* далі тарифи на тому ж білому тлі — не подвоюємо відступ */
.compare { width: 100%; min-width: 620px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.compare thead td { width: 24%; }
.compare thead th { width: 38%; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 1.05rem; font-weight: 800; border-bottom-color: var(--line-strong); }
.compare tbody th { width: 24%; font-weight: 650; color: var(--ink-2); }
.compare td { width: 38%; }
.compare .compare__us { background: var(--blue-tint); color: var(--blue-deep); font-weight: 650; border-bottom-color: var(--blue-line); }
.compare thead .compare__us { background: var(--blue); color: #fff; border-radius: var(--r-s) var(--r-s) 0 0; border-bottom-color: var(--blue); }
.compare tbody tr:last-child .compare__us { border-radius: 0 0 var(--r-s) var(--r-s); border-bottom: 0; }

/* =========================================================
   Тарифи: одна таблиця з чотирьох колонок, популярна — синя
   ========================================================= */
.plans {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden;
}
.plan { display: flex; flex-direction: column; gap: 4px; padding: 26px clamp(18px, 2vw, 26px) 24px; }
.plan:not(:first-child) { border-left: 1px solid var(--line); }
.plan--popular { background: var(--blue); color: #fff; border-left-color: var(--blue) !important; }
.plan--popular + .plan { border-left-color: var(--blue); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 28px; }
.plan__name { font-size: 1.05rem; font-weight: 800; }
.plan__badge { padding: 3px 8px; border-radius: var(--r-xs); background: rgba(255, 255, 255, 0.16); font-size: 0.78rem; font-weight: 700; }
.plan__price { margin-top: 18px; font-size: 1.3rem; font-weight: 700; }
.plan__amount { font-family: var(--font-display); font-weight: 500; font-size: 2.3rem; letter-spacing: -0.045em; line-height: 1; }
.plan__credits { font-weight: 650; }
.plan__note { margin-bottom: 22px; font-size: 0.9rem; color: var(--ink-3); }
.plan--popular .plan__note { color: rgba(255, 255, 255, 0.78); }
.plan .btn { margin-top: auto; }
.pricing__more { margin-top: 20px; max-width: 62em; color: var(--ink-2); }
.pricing__gift { margin-top: 20px; color: var(--ink-2); }
.pricing__more + .pricing__gift { margin-top: 8px; }
.pricing__gift .link { margin-left: 4px; }

/* =========================================================
   Відгуки
   ========================================================= */
.reviews__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.review {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 22px; border-radius: var(--r-m);
  border: 1px solid var(--line);
  scroll-snap-align: start;
}
.review figcaption { font-weight: 700; font-size: 0.9rem; }
.review figcaption span { color: var(--ink-3); font-weight: 600; }

/* =========================================================
   Питання
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__aside-note { margin-top: 18px; color: var(--ink-2); max-width: 30ch; }
.faq__aside-note a { color: var(--blue); font-weight: 700; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 2px;
  list-style: none; cursor: pointer;
  font-weight: 750; font-size: 1.05rem; line-height: 1.4;
  border-radius: var(--r-xs);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232347d5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) { .faq__list summary:hover { color: var(--blue); } }
.faq__answer { padding: 0 44px 22px 2px; color: var(--ink-2); max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__list details::details-content { height: 0; overflow: clip; transition: height 250ms var(--ease-out), content-visibility 250ms allow-discrete; }
  .faq__list details[open]::details-content { height: auto; }
}

/* =========================================================
   Заклик: знову синій студійний фон на всю ширину
   ========================================================= */
.final { padding-block: clamp(56px, 7vw, 96px); background: var(--blue); color: #fff; }
.final__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.final .lead { margin-top: 12px; color: rgba(255, 255, 255, 0.85); }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1080px) {
  .hero { grid-template-columns: [full-start] var(--gutter) [content-start] minmax(0, 1fr) [content-end] var(--gutter) [full-end]; min-height: 0; }
  .hero__copy { grid-column: content-start / content-end; padding: 48px 0 44px; }
  .hero__studio { grid-column: full-start / full-end; padding: 44px var(--gutter) 32px; }
  .showcase { width: min(58%, 340px); margin-left: 22%; }
  .tryon__grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 40px; max-width: 520px; }
  .step:not(:first-child)::before { display: none; }
  .step:not(:first-child) { border-top: 1px solid var(--line-strong); padding-top: 40px; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
}
@media (max-width: 700px) {
  /* Каталог гортається пальцем */
  .catalog {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px;
  }
  .cat-card { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .hero__actions .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .showcase { width: 62%; margin-left: 30%; }
  .print--before { left: -48%; width: 52%; }
  .plans { grid-template-columns: 1fr; }
  .plan:not(:first-child) { border-left: 0; border-top: 1px solid var(--line); }
  .plan--popular + .plan { border-top-color: var(--blue); }
  .faq__answer { padding-right: 2px; }
  .final__inner .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .print img { transition: none; }
  .faq__list summary::after { transition: none; }
}
