/* =========================================================
   Головна AiPhoto: світлостіл зі шторкою «селфі ↔ портрет», образи-відбитки,
   контактний аркуш фотосесії, правка словами, фото на документи.
   Один сміливий елемент — великий відбиток зі шторкою, обведений олівцем; решта тиха.
   ========================================================= */

.section { padding: var(--section-y) 0; }
.section__head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }

/* Фішка плівки: чорний прямокутник з помаранчевим номером — для номерів і позначок на сірому */
.chip-film { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 3px; background: var(--film); }

/* ---------- Перший екран: текст + світлостіл ---------- */
.hero { padding-top: clamp(20px, 3.5vw, 44px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero__copy { display: grid; gap: 22px; align-content: center; }
.hero__title { font-size: clamp(2.3rem, 0.9rem + 4.2vw, 5rem); line-height: 1; letter-spacing: -0.045em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__note { font-size: 0.92rem; color: var(--ink-3); }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } .hero__title { max-width: 12ch; } }
@media (max-width: 420px) { .hero__actions .btn { width: 100%; } }

/* Чиє селфі: кругляки-обличчя */
.cast { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 6px; }
.cast__face { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 0.8rem; font-weight: 650; color: var(--ink-2); }
.cast__face img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 2px var(--studio), 0 0 0 3.5px transparent; transition: box-shadow 160ms ease; }
.cast__face[aria-pressed="true"] { color: var(--ink); }
.cast__face[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--studio), 0 0 0 5.5px var(--wax); }
@media (hover: hover) { .cast__face[aria-pressed="false"]:hover img { box-shadow: 0 0 0 3px var(--studio), 0 0 0 4.5px var(--ink); } }
.cast__face:focus-visible { outline: none; }
.cast__face:focus-visible img { outline: 2.5px solid var(--ink); outline-offset: 6px; }

/* Великий відбиток зі шторкою */
.desk { justify-self: center; width: min(100%, 470px); margin: 0; }
.desk__print { position: relative; padding: 12px 12px 14px; background: var(--print); box-shadow: var(--shadow-float); rotate: 1.2deg; }
.desk__compare { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--studio-3); }
.desk__after, .desk__before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.desk__before { object-position: 50% 30%; }
.desk__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.desk__handle { position: absolute; z-index: 2; top: 0; bottom: 0; width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22); pointer-events: none; }
.desk__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; translate: -50% -50%; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1c1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.desk__compare:has(.desk__range:focus-visible) .desk__handle::after { outline: 3px solid var(--wax); outline-offset: 2px; }
/* Підписи — над олівцевим колом і на чорній підкладці: лінія проходить під ними, а не крізь текст */
.desk__tag { position: absolute; z-index: 3; top: 13%; padding: 4px 10px; border-radius: var(--r-pill); background: var(--film); color: #fff; font-size: 0.78rem; font-weight: 650; white-space: nowrap; pointer-events: none; }
.desk__tag--before { left: 11%; }
.desk__tag--after { right: 11%; }
@media (max-width: 920px) { .desk__print { rotate: none; } }

/* Смужка таймера автопроявки й підпис із паузою */
.desk__bar { height: 3px; margin: 16px 6px 0; border-radius: 2px; background: var(--studio-2); overflow: hidden; }
.desk__bar span { display: block; width: 0; height: 100%; background: var(--wax); }
@keyframes desk-progress { from { width: 0; } to { width: 100%; } }
.desk__foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.desk__caption { font-size: 0.88rem; color: var(--ink-3); }

/* Кнопка паузи для всього, що рухається саме */
.motion-toggle { flex: none; display: inline-grid; grid-auto-flow: column; place-items: center; gap: 8px; min-width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--print); color: var(--ink); font-weight: 650; font-size: 0.86rem; }
.motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle__play { fill: currentColor !important; stroke-width: 1.5 !important; }
.motion-toggle[aria-pressed="false"] .motion-toggle__play, .motion-toggle[aria-pressed="true"] .motion-toggle__pause { display: none; }
.motion-toggle--text { justify-self: start; padding: 0 14px 0 12px; }
@media (hover: hover) { .motion-toggle:hover { border-color: var(--ink); } }
.motion-toggle:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

/* Обведення відбитка: олівець малює коло один раз, коли світлостіл з’являється */
.wax-mark--circle { left: -7%; top: -5%; width: 114%; height: 110%; }
.wax-mark--circle path { stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .desk .wax-mark--circle path { stroke-dashoffset: 1; }
  .desk.is-drawn .wax-mark--circle path { animation: wax-draw 1100ms 500ms cubic-bezier(0.55, 0.1, 0.3, 1) forwards; }
}
@keyframes wax-draw { to { stroke-dashoffset: 0; } }

/* Плівка з образами вибраної людини */
.hero__film { margin-top: clamp(28px, 4vw, 52px); padding: 12px 0 22px; }
.strip { display: flex; gap: clamp(10px, 1.2vw, 16px); padding: 24px var(--gutter) 12px calc(var(--gutter) + 12px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: #3a3c3f transparent; }
.strip__frame { position: relative; flex: none; width: clamp(118px, 11vw, 160px); scroll-snap-align: start; }
.strip__frame button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--film-2); }
.strip__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: 0.72; transition: opacity 150ms ease; }
.strip__frame.is-on img { opacity: 1; }
@media (hover: hover) { .strip__frame button:hover img { opacity: 1; } }
.strip__frame button:focus-visible { outline: 2.5px solid #fff; outline-offset: 3px; }
.strip__frame .wax-mark { left: -9%; top: -6%; width: 118%; height: 112%; }
@media (prefers-reduced-motion: no-preference) { .strip__frame.is-on .wax-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wax-draw 420ms cubic-bezier(0.55, 0.1, 0.3, 1) forwards; } }
.strip__edge { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 0.74rem; color: var(--film-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__fine { margin-top: 14px; font-size: 0.84rem; color: var(--ink-3); }

/* ---------- Образи: вкладки й відбитки зі штампом селфі ---------- */
.looks__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 clamp(22px, 3vw, 32px); }
.looks__tabs button { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--print); font-weight: 650; font-size: 0.92rem; }
.looks__tabs button span { margin-left: 4px; color: var(--ink-3); font-weight: 600; }
.looks__tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.looks__tabs button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.7); }
@media (hover: hover) { .looks__tabs button[aria-pressed="false"]:hover { border-color: var(--ink); } }
.print { padding: 8px 8px 14px; background: var(--print); box-shadow: var(--shadow-print); }
.print__img { position: relative; }
.print__img > img:first-child { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--studio-3); }
/* «З цього селфі»: маленьке фото з телефона в кутку відбитка */
.print__src { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.print__name { margin-top: 12px; font-weight: 650; line-height: 1.25; }
.print__hint { margin-top: 2px; font-size: 0.86rem; color: var(--ink-3); line-height: 1.4; }
.looks__more { margin-top: 18px; color: var(--ink-2); }

/* Карусель-коверфлоу: справжня прокрутка з прилипанням, а поворот і масштаб карток — від їхнього місця
   у вікні (scroll-driven animation). Без підтримки — звичайна стрічка відбитків. */
/* Карусель — на всю ширину вікна; секція обрізає зайве, щоб сторінка не гортались убік */
.looks { overflow-x: clip; }
.reel { --card: clamp(220px, 22vw, 320px); position: relative; margin-inline: calc(50% - 50vw); }
/* Відбитки лежать на світлостолі — тій самій підсвіченій поверхні з тонкою сіткою, що й у кабінеті.
   Фон не їде разом зі стрічкою: стіл стоїть, гортаються знімки */
.reel__viewport {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: clamp(30px, 4vw, 52px) 0 clamp(36px, 4.6vw, 60px); cursor: grab;
  background-color: #f4f5f5;
  background-image:
    linear-gradient(rgba(26, 28, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 28, 31, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse 60% 90% at 50% 45%, #ffffff 0%, #f6f7f7 55%, #e7e9ea 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-position: center top, center top, center;
  box-shadow: inset 0 1px 0 rgba(26, 28, 31, 0.1), inset 0 -1px 0 rgba(26, 28, 31, 0.1), inset 0 22px 26px -26px rgba(26, 28, 31, 0.45), inset 0 -22px 26px -26px rgba(26, 28, 31, 0.45);
}
.reel__viewport::-webkit-scrollbar { display: none; }
.reel__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.reel__viewport.is-dragging img { pointer-events: none; }
.reel__viewport:focus-visible { outline: 2.5px solid var(--ink); outline-offset: -2px; }
/* Поля треку — пів вікна каруселі мінус пів картки: крайні картки теж стають по центру */
.reel__track { display: flex; gap: clamp(10px, 1.6vw, 22px); width: max-content; padding-inline: calc(50% - var(--card) / 2); }
.reel__card { flex: none; width: var(--card); scroll-snap-align: center; transform-origin: 50% 60%; }
.reel__card img { -webkit-user-drag: none; }
.reel__card .print__name, .reel__card .print__hint { transition: opacity 200ms ease; }
@supports (animation-timeline: view()) {
  .reel__card { animation: coverflow linear both; animation-timeline: view(inline); }
}
@keyframes coverflow {
  /* Бічні картки підсуваються до центру й розвертаються до нього — стос, як у коверфлоу */
  0% { transform: perspective(1100px) translateX(-34%) rotateY(-40deg) scale(0.74); opacity: 0.5; filter: saturate(0.5); }
  38% { transform: perspective(1100px) translateX(-6%) rotateY(-12deg) scale(0.9); opacity: 0.9; filter: saturate(0.9); }
  50% { transform: none; opacity: 1; filter: none; }
  62% { transform: perspective(1100px) translateX(6%) rotateY(12deg) scale(0.9); opacity: 0.9; filter: saturate(0.9); }
  100% { transform: perspective(1100px) translateX(34%) rotateY(40deg) scale(0.74); opacity: 0.5; filter: saturate(0.5); }
}
.reel__card.is-center { box-shadow: var(--shadow-float); }
.reel__controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(16px, 2vw, 22px); padding-inline: var(--gutter); }
.reel__arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--print); color: var(--ink); }
.reel__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .reel__arrow:hover { background: var(--ink); color: #fff; } }
.reel__arrow:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }
/* Лічильник — номер кадру, як на кромці плівки: чорна смужка, помаранчева цифра */
.reel__count { min-width: 12ch; margin: 0; padding: 9px 14px; border-radius: 4px; background: var(--film); color: var(--film-ink); text-align: center; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel__count b { margin-inline: 2px; font-family: var(--font-display); font-weight: 600; color: var(--edge); }
@media (max-width: 620px) {
  /* Центральний відбиток і краї сусідів з обох боків */
  .reel { --card: min(62vw, 250px); }
  .reel__track { gap: 12px; }
  .print__src { width: 32px; height: 32px; right: 6px; bottom: 6px; }
  .reel__controls { gap: 8px; }
  .reel__count { min-width: 0; padding: 9px 12px; }
}

/* ---------- Фотосесія: контактний аркуш на плівці ---------- */
.series { padding: var(--section-y) 0 calc(var(--section-y) * 0.8); background: var(--studio-3); }
.series__head { display: grid; gap: 16px; margin-bottom: clamp(28px, 3.5vw, 40px); }
.series__head > * { max-width: 780px; }
/* Плівка їде: два ряди назустріч, кожен — дві однакові групи кадрів, зсув на одну групу дає безшовне коло */
.marquee { display: grid; gap: 6px; padding: 16px 0 24px; overflow: hidden; }
.marquee__row { overflow: hidden; padding: 22px 0 6px; }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee__row--rev .marquee__track { animation-duration: 60s; animation-direction: reverse; }
.marquee__group { display: flex; gap: clamp(12px, 1.4vw, 18px); padding-right: clamp(12px, 1.4vw, 18px); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-still .marquee__track, .marquee.is-away .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee:not(.is-forced) .marquee__track { animation: none; }
  .marquee:not(.is-forced) .marquee__row { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #3a3c3f transparent; }
}
.series__frame { position: relative; flex: none; width: clamp(140px, 13vw, 190px); }
.series__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--film-2); opacity: 0.82; }
.series__frame.is-picked img { opacity: 1; }
.series__frame p { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 0.76rem; color: var(--film-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Коло — лише навколо фото: нижній край кола закінчується над підписом кадру */
.series__frame .wax-mark { left: -9%; top: -6%; width: 118%; height: calc(106% - 16px); }
.series__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; }
.series__caption { font-size: 0.86rem; color: var(--ink-3); }

/* ---------- Правка словами: було → стало ---------- */
.edit-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 32px); }
.edits .section__head { justify-items: start; }
.edit-pair { display: grid; gap: 14px; align-content: start; }

/* Шторка «було / стало», що гойдається: позиція — властивість --split, її анімує CSS, а тягнути можна повзунком */
@property --split { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.wipe { --split: 50%; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 8px solid var(--print); background: var(--studio-3); box-shadow: var(--shadow-print); }
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe__before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.wipe__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--split); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); pointer-events: none; }
.wipe__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; translate: -50% -50%; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1c1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.wipe:has(.wipe__range:focus-visible) .wipe__handle::after { outline: 3px solid var(--wax); outline-offset: 2px; }
.wipe__tag { position: absolute; z-index: 2; top: 10px; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.74rem; font-weight: 650; pointer-events: none; }
.wipe__tag--before { left: 10px; }
.wipe__tag--after { right: 10px; }
.wipe__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
@media (prefers-reduced-motion: no-preference) {
  .wipe.is-playing:not(.is-manual) { animation: wipe 5.6s ease-in-out infinite alternate; }
  .edit-pair:nth-child(2) .wipe { animation-delay: -1.8s; }
  .edit-pair:nth-child(3) .wipe { animation-delay: -3.6s; }
}
.edit-pairs.is-forced .wipe.is-playing:not(.is-manual) { animation: wipe 5.6s ease-in-out infinite alternate; }
.edit-pairs.is-still .wipe { animation-play-state: paused; }
.wipe:hover { animation-play-state: paused; }
@keyframes wipe { 0% { --split: 86%; } 100% { --split: 14%; } }
/* Інструкція — як напис олівцем на полях відбитка */
.edit-pair__note { justify-self: start; padding-bottom: 4px; font-weight: 650; line-height: 1.35; background: linear-gradient(var(--wax), var(--wax)) left bottom / 100% 3px no-repeat; }
@media (max-width: 960px) { .edit-pairs { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Ще в кабінеті: контактний аркуш — чотири кадри на плівці ----------
   Кожен кадр — предмет, знятий на сірому папері студії; під кадром — номер на кромці й назва. */
.kit { padding-top: var(--section-y); background: var(--studio-3); }
.kit__film { padding: 46px 0 44px; }
.kit__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.kit__item { display: grid; gap: 8px; align-content: start; min-width: 0; }
.kit__item p { font-size: 0.9rem; line-height: 1.5; color: var(--film-ink-2); }
.kit__name { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font-weight: 700; font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.01em; color: #fff; }
.kit__name .frame-no { font-size: 0.74rem; }
.kit__visual { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 200px; padding: 16px; border-radius: 2px; background: var(--studio-3); overflow: hidden; }
.kit__visual--check img { height: 100%; width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 4px solid var(--film); }
.kit__badge { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--film); color: #8fe0b0; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.kit__badge::before { content: ""; width: 12px; height: 7px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; rotate: -45deg; translate: 0 -2px; }
.kit__visual--formats { align-items: center; }
.kit__shape { display: block; flex: none; overflow: hidden; background: var(--studio-2); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.kit__shape img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.kit__shape--round { width: 74px; height: 74px; border-radius: 50%; }
.kit__shape--post { width: 86px; aspect-ratio: 4 / 5; }
.kit__shape--story { width: 68px; aspect-ratio: 9 / 16; }
.kit__visual--fav { align-items: center; }
.kit__print { position: relative; z-index: 1; width: 108px; padding: 5px 5px 16px; background: var(--print); box-shadow: var(--shadow-print); rotate: -3deg; }
.kit__print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.kit__print--back { z-index: 0; margin-left: -28px; rotate: 5deg; opacity: 0.9; }
.kit__print .wax-mark { left: -10%; top: -7%; width: 120%; height: 114%; }
.kit__visual--desk { align-items: center; }

/* Пульт зйомок у мініатюрі — той самий чорний пульт, що в кабінеті */
.mini-desk { display: grid; gap: 8px; width: min(100%, 250px); padding: 11px 12px 10px; border-radius: 8px; background: var(--film); color: var(--film-ink); box-shadow: var(--shadow-print); text-align: left; }
.mini-desk__title { font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; letter-spacing: -0.01em; color: #fff; }
.mini-desk__row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, 0.16); }
.mini-desk__thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--film-2); }
.mini-desk__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.mini-desk__thumb--wait { background: radial-gradient(circle at 50% 45%, rgba(242, 165, 65, 0.45), transparent 70%) #22201d; outline: 1px dashed rgba(242, 165, 65, 0.5); outline-offset: -1px; }
.mini-desk__main { display: grid; gap: 3px; min-width: 0; font-size: 0.72rem; line-height: 1.3; }
.mini-desk__main b { font-size: 0.78rem; font-weight: 700; color: #fff; }
.mini-desk__status--busy { font-weight: 650; color: var(--edge); }
.mini-desk__status--busy span { margin-left: 4px; color: var(--film-ink); font-variant-numeric: tabular-nums; }
.mini-desk__status--done { font-weight: 650; color: #8fe0b0; }
.mini-desk__bar { height: 3px; margin-top: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.mini-desk__bar i { display: block; width: 58%; height: 100%; background: var(--edge); }
.mini-desk__btn { justify-self: start; margin-top: 3px; padding: 3px 8px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 5px; font-size: 0.7rem; font-weight: 650; color: #fff; white-space: nowrap; }
@media (max-width: 1100px) { .kit__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }

/* ---------- Як це працює: відрізок плівки на три кадри ----------
   Кадри стоять впритул — виходить одна смужка з перфорацією; текст — під кадром, на сірому.
   На телефоні смужка стає вертикальною: кадр ліворуч, текст праворуч. */
.how { background: var(--studio-3); }
.how-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1020px; }
.how-step { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.how-step__frame { position: relative; display: grid; padding: 30px 6px 42px; background: var(--film); box-shadow: 1px 0 0 var(--film); }
/* Перфорація: віконця кольору фону блоку */
.how-step__frame::before, .how-step__frame::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='12'%3E%3Crect x='9' width='12' height='12' rx='2.5' fill='%23dadcde'/%3E%3C/svg%3E") repeat-x 0 0 / 30px 12px; pointer-events: none; }
.how-step__frame::before { top: 9px; }
.how-step__frame::after { bottom: 9px; }
.how-step:first-child .how-step__frame { border-radius: 4px 0 0 4px; }
.how-step:last-child .how-step__frame { border-radius: 0 4px 4px 0; }
.how-step__img { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--film-2); }
.how-step__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.how-step__frame > .frame-no { position: absolute; left: 14px; bottom: 25px; line-height: 1; }
/* Другий кадр ще у ванночці: сепія й тепле світло (нерухомо) */
.how-step__img--dev { overflow: hidden; background: #22201d; }
.how-step__img--dev img { opacity: 0.78; filter: sepia(0.85) brightness(1.12) contrast(0.78) blur(1.5px); }
.how-step__img--dev::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(242, 165, 65, 0.34), transparent 66%); }
.how-step__tag { position: absolute; z-index: 1; left: 50%; bottom: 10px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--film); color: var(--edge); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.how-step__tag--ok { color: #8fe0b0; }
.how-step__tag--ok::before { content: ""; width: 10px; height: 6px; border-left: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor; rotate: -45deg; translate: 0 -2px; }
.how-step__img .wax-mark { left: -3%; top: -10%; width: 106%; height: 120%; }
.how-step__text { display: grid; gap: 8px; align-content: start; padding: 18px 24px 0 2px; }
.how-step__text p { color: var(--ink-2); }

/* ---------- Приватність: квитанція зберігання ---------- */
.privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.privacy__copy { display: grid; gap: 18px; }
.slip { position: relative; justify-self: end; width: min(100%, 500px); padding: 22px 26px 16px; background: var(--print); box-shadow: var(--shadow-print); }
/* Зубчастий відрив знизу — як у прейскуранта */
.slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(-45deg, transparent 6px, var(--print) 0) 0 0 / 12px 8px repeat-x, linear-gradient(45deg, transparent 6px, var(--print) 0) 0 0 / 12px 8px repeat-x; filter: drop-shadow(0 2px 1px rgba(26, 28, 31, 0.08)); }
.slip__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line-strong); font-size: 0.84rem; color: var(--ink-3); }
.slip__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--ink); }
.slip__rows { display: grid; margin: 4px 0 0; }
.slip__row { display: grid; grid-template-columns: minmax(0, auto) minmax(14px, 1fr) minmax(0, auto); align-items: end; gap: 8px; padding: 11px 0; }
.slip__row::after { content: ""; grid-column: 2; grid-row: 1; margin-bottom: 6px; border-bottom: 1.5px dotted var(--line-strong); }
.slip__row dt { grid-column: 1; grid-row: 1; color: var(--ink-2); line-height: 1.4; }
.slip__row dd { grid-column: 3; grid-row: 1; margin: 0; font-weight: 700; line-height: 1.4; text-align: right; }
.slip__foot { margin-top: 6px; padding-top: 12px; border-top: 1.5px dashed var(--line-strong); font-size: 0.88rem; color: var(--ink-3); }
.slip__foot a { color: var(--ink); font-weight: 650; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (hover: hover) { .slip__foot a:hover { text-decoration-color: var(--wax); } }
@media (max-width: 860px) { .privacy__grid { grid-template-columns: 1fr; } .slip { justify-self: start; } }

/* ---------- Ціни ---------- */
.pricing { background: var(--studio-3); }
.pricing .fbox-row { margin-top: 14px; }
/* Під коробками — прейскурант-квитанція: скільки кадрів коштує кожен знімок */
.pricing__foot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.price-sheet { position: relative; margin: 0; padding: 18px 22px 10px; background: var(--print); box-shadow: var(--shadow-print); }
/* Зубчастий відрив квитанції знизу */
.price-sheet::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(-45deg, transparent 6px, var(--print) 0) 0 0 / 12px 8px repeat-x, linear-gradient(45deg, transparent 6px, var(--print) 0) 0 0 / 12px 8px repeat-x; filter: drop-shadow(0 2px 1px rgba(26, 28, 31, 0.08)); }
.price-sheet__title { margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; }
.price-row + .price-row { border-top: 1px dashed var(--line-strong); }
.price-row dt { color: var(--ink-2); }
.price-row dd { margin: 0 0 0 auto; white-space: nowrap; font-weight: 600; }
.price-row b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.price-row--free dd { padding: 1px 8px; border-radius: 3px; background: var(--ok-tint); color: var(--ok); font-size: 0.86rem; }
.pricing__points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pricing__points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-2); line-height: 1.5; }
.pricing__points li > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--film); color: var(--edge); font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; line-height: 1; }
.pricing__points li:not(:first-child) > span:first-child { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.pricing__points b { color: var(--ink); }
@media (max-width: 860px) {
  .pricing__foot { grid-template-columns: 1fr; }
  .price-row { flex-wrap: wrap; gap: 4px 16px; }
}

/* ---------- Абонементи: «темна кімната» ----------
   Чорна смуга на всю ширину з перфорацією, згори — червоне світло фотолабораторного ліхтаря.
   Картки — фотопапір: назва плану, міні-контактка з образів, які з ним знімають, ціна й переваги.
   Популярний план підведено вище й обведено олівцем по ціні — як обраний кадр. */
.darkroom {
  position: relative; margin: clamp(52px, 6vw, 84px) 0; padding: clamp(64px, 7vw, 96px) 0 clamp(60px, 7vw, 92px);
  background:
    radial-gradient(ellipse 65% 70% at 50% -18%, rgba(224, 49, 43, 0.42), rgba(224, 49, 43, 0.1) 46%, transparent 72%),
    var(--film);
  color: var(--film-ink);
}
.darkroom::before, .darkroom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='12'%3E%3Crect x='9' width='12' height='12' rx='2.5' fill='%23dadcde'/%3E%3C/svg%3E") repeat-x 0 0 / 30px 12px;
}
.darkroom::before { top: 12px; }
.darkroom::after { bottom: 12px; }
.darkroom__head { display: grid; gap: 12px; max-width: 640px; margin-bottom: clamp(36px, 4.4vw, 52px); }
.darkroom__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.1; color: #fff; }
.darkroom__head p { color: var(--film-ink-2); line-height: 1.55; }

.subs__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); align-items: stretch; margin: 0; padding: 0; list-style: none; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px 22px 22px; border-radius: 3px; background: var(--print); color: var(--ink); box-shadow: 0 22px 44px -24px rgba(0, 0, 0, 0.9); }
/* Фотопапір у червоному світлі: ледь теплий відблиск від ліхтаря згори */
.plan::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(224, 49, 43, 0.08), transparent 32%); pointer-events: none; }
.plan > * { position: relative; }
.plan--popular { translate: 0 -12px; box-shadow: 0 0 0 1.5px rgba(242, 165, 65, 0.7), 0 30px 54px -24px rgba(0, 0, 0, 0.95); }
.plan__badge { position: absolute; top: -13px; left: 22px; padding: 4px 10px; border-radius: 3px; background: var(--wax); color: #fff; font-size: 0.78rem; font-weight: 700; }
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.15rem + 1vw, 1.9rem); letter-spacing: -0.045em; line-height: 1; }
.plan__note { margin-top: -4px; min-height: 2.8em; color: var(--ink-3); font-size: 0.9rem; line-height: 1.4; }
/* Міні-контактка: смужка плівки з трьома кадрами і назвами образів на кромці */
.plan__sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px 0; padding: 8px 8px 6px; border-radius: 2px; background: var(--film); list-style: none; }
.plan__sheet li { display: grid; gap: 5px; min-width: 0; }
.plan__sheet img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--film-2); }
.plan__sheet span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.66rem; font-weight: 600; color: var(--edge); }
.plan__price { position: relative; align-self: flex-start; margin-top: 4px; padding: 6px 12px 6px 4px; }
.plan__price p { display: flex; align-items: baseline; gap: 6px; font-weight: 650; }
.plan__price b { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.8rem + 1.2vw, 2.8rem); letter-spacing: -0.06em; line-height: 1; }
.plan__price span { color: var(--ink-3); font-size: 0.92rem; }
.plan__ring { left: -10%; top: -26%; width: 120%; height: 152%; }
.plan__ring path { stroke-width: 4; }
@media (prefers-reduced-motion: no-preference) {
  .plan__ring path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wax-draw 700ms 300ms cubic-bezier(0.55, 0.1, 0.3, 1) forwards; animation-play-state: paused; }
  .darkroom.is-seen .plan__ring path { animation-play-state: running; }
}
.plan__per { font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); }
.plan__per b { color: var(--ink); }
.plan__perks { display: grid; gap: 7px; margin: 2px 0 8px; padding: 12px 0 0; border-top: 1px dashed var(--line-strong); list-style: none; font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); }
.plan__perks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; }
/* Галочка олівцем — як позначки на квитанції входу */
.plan__perks li::before { content: ""; width: 10px; height: 6px; margin-top: 5px; border-left: 2px solid var(--wax); border-bottom: 2px solid var(--wax); rotate: -45deg; }
.plan .btn { margin-top: auto; }
/* Планшет і телефон: картки — стрічкою з прилипанням, наступну видно краєм */
@media (max-width: 900px) {
  .subs__row { display: flex; gap: 16px; margin-inline: calc(var(--gutter) * -1); padding: 18px var(--gutter) 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .subs__row::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 min(82%, 330px); scroll-snap-align: start; }
  .plan--popular { translate: none; }
}

/* ---------- Понад каталог: свій образ, за прикладом, удвох ---------- */
.beyond__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.beyond__item { display: grid; gap: 8px; align-content: start; min-width: 0; }
.beyond__item > p { color: var(--ink-2); line-height: 1.5; font-size: 0.94rem; }
.beyond__name { color: var(--ink); }
.beyond__visual { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: clamp(300px, 26vw, 360px); padding: 22px 18px; border-radius: 2px; background: var(--studio-3); overflow: hidden; }
/* Відбитки міряються висотою вікна, щоб три кадри стояли однаково */
.beyond__print { position: relative; flex: none; height: 88%; aspect-ratio: 4 / 5.4; padding: 6px 6px 16px; background: var(--print); box-shadow: var(--shadow-print); rotate: 1.5deg; }
.beyond__print > img:first-child { height: 100%; }
.beyond__print > img:first-child { width: 100%; object-fit: cover; }
.beyond__print .print__src { right: 12px; bottom: 22px; }
.beyond__print--small { height: 56%; rotate: -4deg; }
.beyond__print--wide { rotate: -1deg; }
.beyond__visual--pair { gap: 6px; }
.beyond__visual--pair .beyond__print:last-child { height: 78%; }
.beyond__arrow { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--wax); }
.beyond__quote { position: absolute; z-index: 2; left: 14px; top: 14px; max-width: 66%; padding: 9px 12px; border-radius: 3px; background: var(--film); color: #fff; font-size: 0.84rem; font-weight: 600; line-height: 1.35; rotate: -2deg; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); }
.beyond__tag { position: absolute; left: 12px; top: 12px; padding: 2px 8px; border-radius: 3px; background: var(--film); color: var(--edge); font-family: var(--font-display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.04em; }
.beyond__tag--pro { background: var(--wax); color: #fff; }
.beyond__faces { position: absolute; right: 12px; bottom: 22px; display: flex; }
.beyond__faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.beyond__faces img + img { margin-left: -10px; }

/* Pro проти стандарту: однакове наближення до обличчя */
.pro-vs { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.pro-vs__copy { display: grid; gap: 12px; }
.pro-vs__copy p { color: var(--ink-2); line-height: 1.55; }
.pro-vs__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.pro-vs__crop { position: relative; display: block; padding: 6px; background: var(--print); box-shadow: var(--shadow-print); }
.pro-vs__win { display: block; overflow: hidden; }
.pro-vs__crop img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; transform: scale(1.45); transform-origin: 50% 36%; }
.pro-vs__crop .beyond__tag { z-index: 1; left: 16px; top: 16px; }
.pro-vs__pair figcaption { grid-column: 1 / -1; font-size: 0.86rem; color: var(--ink-3); }
@media (max-width: 960px) {
  .beyond__list { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .pro-vs { grid-template-columns: minmax(0, 1fr); }
}

/* Клубні образи в каруселі */
.print__club { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 3px; background: var(--film); color: var(--edge); font-family: var(--font-display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.04em; }

/* ---------- Відгуки ---------- */
.reviews__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review { padding: 20px; background: var(--print); box-shadow: var(--shadow-print); }
.review figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--ink-3); font-weight: 600; }

/* ---------- Питання ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__aside { display: grid; gap: 16px; }
.faq__aside-note { color: var(--ink-2); }
.faq__aside-note a { color: var(--ink); font-weight: 650; }
.faq__list details { border-top: 1px solid var(--line-strong); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq__list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 650; font-size: 1.04rem; cursor: pointer; list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink) 0 0) center / 14px 2px no-repeat, linear-gradient(var(--ink) 0 0) center / 2px 14px no-repeat; transition: transform 200ms var(--ease-out); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- Фінал: смуга плівки ---------- */
/* Темна кімната, як у абонементів: червоне світло ліхтаря, знизу — перфорація, крізь яку видно світлий підвал сайту */
.final {
  position: relative; overflow: hidden; padding: clamp(72px, 8vw, 112px) 0 clamp(80px, 8vw, 116px);
  background:
    radial-gradient(ellipse 55% 80% at 78% 0%, rgba(224, 49, 43, 0.4), rgba(224, 49, 43, 0.1) 48%, transparent 74%),
    var(--film);
}
.final::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='12'%3E%3Crect x='9' width='12' height='12' rx='2.5' fill='%23dadcde'/%3E%3C/svg%3E") repeat-x 0 0 / 30px 12px;
}
.final__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.final__copy { display: grid; gap: 18px; justify-items: start; }
.final__title { color: #fff; max-width: 14ch; }
.final__lead { max-width: 40ch; color: var(--film-ink-2); font-size: 1.05rem; line-height: 1.55; }
.final__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.final__link { color: #fff; font-weight: 650; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
@media (hover: hover) { .final__link:hover { text-decoration-color: var(--edge); } }
.final__link:focus-visible { outline: 2.5px solid #fff; outline-offset: 4px; }

/* Сушарка: мотузка з провисанням і три відбитки на прищіпках; середній обведено олівцем — «цей забираю» */
.dryline { position: relative; height: clamp(270px, 25vw, 330px); }
.dryline__cord { position: absolute; left: -6%; top: 6px; width: 112%; height: 70px; overflow: visible; }
.dryline__cord path { fill: none; stroke: rgba(255, 255, 255, 0.42); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dryline__print { position: absolute; width: clamp(120px, 13vw, 176px); margin: 0; padding: 7px 7px 22px; background: var(--print); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.85); transform-origin: 50% -14px; }
.dryline__print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dryline__print--a { left: 2%; top: 24px; rotate: -5deg; }
.dryline__print--b { left: 36%; top: 52px; rotate: 1.5deg; z-index: 1; }
.dryline__print--c { left: 70%; top: 26px; rotate: 6deg; }
.dryline__print .wax-mark { left: -12%; top: -9%; width: 124%; height: 118%; }
/* Дерев’яна прищіпка */
.dryline__peg { position: absolute; left: 50%; top: -22px; width: 14px; height: 34px; translate: -50% 0; border-radius: 3px; background: linear-gradient(90deg, #b88a5a, #d9b07e 45%, #b88a5a); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45); }
.dryline__peg::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; translate: -50% 0; background: rgba(60, 38, 18, 0.55); }
/* Відбитки один раз гойднулися, коли їх повісили (блок з’явився на екрані), і завмерли */
@media (prefers-reduced-motion: no-preference) {
  .final .dryline__print { animation: hang 1100ms cubic-bezier(0.3, 1.6, 0.5, 1) both; animation-play-state: paused; }
  .final .dryline__print--b { animation-delay: 120ms; }
  .final .dryline__print--c { animation-delay: 240ms; }
  .final.is-seen .dryline__print { animation-play-state: running; }
  .final .dryline__print .wax-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wax-draw 600ms 1000ms cubic-bezier(0.55, 0.1, 0.3, 1) forwards; animation-play-state: paused; }
  .final.is-seen .dryline__print .wax-mark path { animation-play-state: running; }
}
@keyframes hang { from { transform: translateY(-40px) rotate(-14deg); opacity: 0; } 40% { opacity: 1; } }
/* Доки олівець не почав малювати, круглий кінчик штриха не видно крапкою */
@media (prefers-reduced-motion: no-preference) {
  .final:not(.is-seen) .wax-mark, .darkroom:not(.is-seen) .plan__ring { opacity: 0; }
}
@media (max-width: 860px) {
  .final__inner { grid-template-columns: minmax(0, 1fr); }
  .dryline { height: clamp(230px, 58vw, 320px); }
  .dryline__print { width: clamp(96px, 28vw, 150px); padding: 5px 5px 16px; }
  /* Нахилені відбитки не мають торкатися країв екрана */
  .dryline__print--a { left: 2%; }
  .dryline__print--b { left: 35%; }
  .dryline__print--c { left: auto; right: 4%; }
}


/* =========================================================
   Телефон: коротші блоки й головне — вище
   ========================================================= */
/* Перемикач прикладів правки — лише на телефоні (landing.js) */
.edit-tabs { display: none; }

@media (max-width: 920px) {
  /* Перший екран: заголовок, коротко, кнопки — і одразу фото зі шторкою; вибір людини — під ним */
  .hero__grid { gap: 18px; }
  .hero__copy { display: contents; }
  .hero__title { order: 1; }
  .hero__copy .lead { order: 2; }
  .hero__actions { order: 3; }
  .desk { order: 4; margin-top: 8px; }
  .cast { order: 5; justify-content: center; margin-top: 0; }
  .hero__note { order: 6; text-align: center; }
}

@media (max-width: 620px) {
  .section__head { gap: 12px; margin-bottom: 24px; }
  .lead { font-size: 1rem; line-height: 1.55; }
  .hero__copy .lead { font-size: 0.98rem; }
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .hero__actions .btn { --btn-h: 50px; width: auto; padding: 0 10px; font-size: 0.9rem; }
  /* Олівцеве коло не виходить за край екрана */
  .wax-mark--circle { left: -3%; top: -3%; width: 106%; height: 106%; }
  .desk__tag { top: 8%; font-size: 0.72rem; }
  .desk__caption { font-size: 0.82rem; }
  .cast { gap: 8px 12px; }
  .cast__face img { width: 50px; height: 50px; }

  /* Розділи образів — сітка 2×2: усі чотири видно одразу, жоден не обрізаний краєм екрана */
  .looks__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .looks__tabs button { padding: 4px 10px; font-size: 0.86rem; line-height: 1.15; }
  .looks__tabs button span { white-space: nowrap; }

  /* Правка словами: один приклад і перемикач замість трьох шторок підряд */
  .edit-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 14px; padding: 2px var(--gutter); scrollbar-width: none; }
  .edit-tabs::-webkit-scrollbar { display: none; }
  .edit-tabs button { flex: none; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--print); font-weight: 650; font-size: 0.86rem; }
  .edit-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .edit-pairs.has-tabs .edit-pair:not(.is-active) { display: none; }
  .edit-pairs { max-width: none; }

  /* Контактний аркуш — плівкою, яку гортають пальцем */
  .kit__film { padding: 40px 0 36px; }
  .kit__list { display: flex; gap: 14px; width: auto; overflow-x: auto; overscroll-behavior-x: contain; padding: 0 var(--gutter); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .kit__list::-webkit-scrollbar { display: none; }
  .kit__item { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
  .kit__visual { height: 184px; }

  /* Понад каталог: три способи — стрічкою, а не стовпчиком на три екрани */
  .beyond__list { display: flex; gap: 14px; max-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .beyond__list::-webkit-scrollbar { display: none; }
  .beyond__item { flex: 0 0 min(84%, 320px); scroll-snap-align: start; }
  .beyond__visual { height: 290px; }
  .pro-vs { margin-top: 36px; }

  /* Як це працює: вертикальна смужка — кадр ліворуч, текст праворуч */
  .how-strip { grid-template-columns: minmax(0, 1fr); }
  .how-step { grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: none; }
  .how-step__frame { align-content: start; padding: 10px 22px 14px; }
  .how-step__frame::before, .how-step__frame::after { top: 0; bottom: 0; width: 12px; height: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='30'%3E%3Crect y='9' width='12' height='12' rx='2.5' fill='%23dadcde'/%3E%3C/svg%3E") repeat-y 0 0 / 12px 30px; }
  .how-step__frame::before { left: 5px; right: auto; }
  .how-step__frame::after { right: 5px; left: auto; }
  .how-step:first-child .how-step__frame { border-radius: 4px 4px 0 0; }
  .how-step:last-child .how-step__frame { border-radius: 0 0 4px 4px; }
  .how-step__img { aspect-ratio: 4 / 5; }
  .how-step__frame > .frame-no { position: static; margin-top: 7px; }
  .how-step__tag { bottom: 6px; padding: 2px 7px; font-size: 0.68rem; }
  .how-step__img .wax-mark { left: -12%; top: -6%; width: 124%; height: 112%; }
  .how-step__text { gap: 6px; padding: 8px 0 22px 16px; }
  .how-step__text p { font-size: 0.94rem; line-height: 1.5; }

  .slip { padding: 18px 18px 14px; }
}
