/* Калічанська LED — лендинг. Токени, типографіка, секції. */

@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded-cyr.woff2") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded-lat.woff2") format("woff2"); font-weight: 500 800; font-display: swap; 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: "Manrope"; src: url("/fonts/manrope-cyr.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-lat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; 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: "Unbounded-fb"; src: local("Arial Black"), local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: "Manrope-fb"; src: local("Arial"); size-adjust: 103%; ascent-override: 104%; descent-override: 29%; }

:root {
  --bg: #ff7a1f;
  --surface: #ff8633;
  --fg: #050f16;
  --ink: #050f16;
  --muted: #4a1d05;
  --paper: #ffffff;
  --paper-2: #f3f1ee;
  --night: #050f16;
  --night-2: #0f1d27;
  --night-fg: #ffffff;
  --night-muted: #c3ccd3;
  --accent: #050f16;
  --accent-ink: #ff7a1f;
  --line: rgba(5, 15, 22, .18);
  --radius: 0;
  --m: clamp(16px, 3.2vw, 48px);
  --gap: clamp(72px, 8.4vw, 124px);
  --display: "Unbounded", "Unbounded-fb", system-ui, sans-serif;
  --text: "Manrope", "Manrope-fb", system-ui, sans-serif;

  --t-display: clamp(1.9rem, 7.1vw, 7.4rem);
  --t-head: clamp(1.75rem, 0.9rem + 3.6vw, 4.25rem);
  --t-mid: clamp(1.25rem, 1rem + 1.2vw, 2.125rem);
  --t-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-small: 0.9375rem;

  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--t-body); line-height: 1.55; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.wrap { padding-inline: var(--m); }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.small { font-size: var(--t-small); line-height: 1.45; }
.h2 { font-family: var(--display); font-weight: 700; font-size: var(--t-head); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 600; font-size: var(--t-mid); line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-size: var(--t-lead); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; max-width: 34ch; }

/* ---------- кнопки й посилання ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; background: var(--accent); color: var(--accent-ink); font: 600 var(--t-body)/1.1 var(--text); text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer; transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--accent { background: var(--bg); color: var(--ink); }
.btn--ghost { background: var(--night-2); color: var(--night-fg); }
.btn--ghost[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.btn--wide { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-underline-offset .2s var(--ease), opacity .2s; }
.link:hover { text-underline-offset: 7px; }

/* ---------- верхня панель: бере колір розділу під собою ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--bar-bg, var(--bg)); color: var(--bar-fg, var(--ink)); transition: background-color .3s ease, color .3s ease; }
.bar[data-on="white"] { --bar-bg: var(--paper); --bar-fg: var(--ink); }
.bar[data-on="ink"] { --bar-bg: var(--night); --bar-fg: var(--night-fg); }
.bar__in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: var(--t-small); height: 68px; padding-inline: var(--m); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.0625rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand__mark { width: 28px; height: 28px; fill: currentColor; }
.bar__nav { display: flex; gap: clamp(16px, 2vw, 32px); }
.bar__nav a, .bar__tel { position: relative; text-decoration: none; font-weight: 600; font-size: var(--t-small); padding-block: 4px; }
.bar__nav a::after, .bar__tel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.bar__nav a:hover::after, .bar__tel:hover::after { transform: scaleX(1); }
.btn--bar { min-height: 44px; padding: 0 20px; background: var(--bar-fg, var(--ink)); color: var(--bar-bg, var(--bg)); }
@media (max-width: 1080px) { .bar__nav { display: none; } }
@media (max-width: 560px) { .bar__tel { display: none; } .brand { font-size: .9375rem; } .bar__in { height: 60px; } }

/* ---------- перший екран ---------- */
.hero { padding-top: clamp(104px, 13vh, 150px); background: var(--bg); }
.hero__title { font-family: var(--display); font-weight: 800; font-size: var(--t-display); line-height: .98; letter-spacing: -0.045em; }
.hero__title .line { display: block; white-space: nowrap; }
.slot { display: inline-block; vertical-align: -0.08em; width: 2.15em; height: .78em; margin-left: .12em; overflow: hidden; background: var(--ink); border-radius: .14em; }
.slot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-top: clamp(28px, 4vh, 48px); }
.hero__lead { font-size: var(--t-lead); line-height: 1.4; font-weight: 500; max-width: 36ch; letter-spacing: -0.01em; }
.hero__act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero__film { margin-top: clamp(32px, 5vh, 56px); }
.hero__video { width: 100%; aspect-ratio: 848 / 464; object-fit: cover; background: var(--ink); }
.hero__film figcaption { padding-block: 14px 0; font-size: var(--t-small); }
@media (max-width: 760px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__act .btn { width: 100%; }
  .hero__video { aspect-ratio: 4 / 5; }
}
@media (max-width: 560px) {
  .hero__title { font-size: 7.6vw; letter-spacing: -0.05em; }
  .hero__title .line:first-child { display: flex; flex-wrap: wrap; align-items: center; }
  .slot { order: 2; width: 100%; height: 30vw; margin: 12px 0 12px; border-radius: 6px; }
}

/* ---------- місце ---------- */
.place { background: var(--paper); padding-top: var(--gap); }
.place__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: clamp(16px, 2vw, 32px); }
.place__title { grid-column: 1 / 7; grid-row: 1; max-width: 11ch; }
.place__lead { grid-column: 1 / 6; grid-row: 2; margin-top: clamp(28px, 3vw, 44px); }
.place__facts { grid-column: 1 / 6; grid-row: 3; margin-top: clamp(32px, 3.5vw, 56px); align-self: start; }
.place__big { grid-column: 7 / 13; grid-row: 1 / 4; margin-right: calc(var(--m) * -1); }
.place__big img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; }
.place figcaption { font-size: var(--t-small); padding-top: 12px; }
.place__night { margin-top: clamp(80px, 9vw, 140px); background: var(--night); color: var(--night-muted); padding-bottom: 20px; }
.place__night img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 60%; }
.facts { display: grid; gap: 6px; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 18px; background: var(--paper-2); }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { font-weight: 700; }
@media (max-width: 900px) {
  .place__grid { display: flex; flex-direction: column; }
  .place__big { order: 3; margin: 40px calc(var(--m) * -1) 0 12%; }
  .place__big img { aspect-ratio: 4 / 3; }
  .place__facts { order: 4; }
  .place__night img { aspect-ratio: 16 / 10; }
  .facts div { grid-template-columns: 7.5rem 1fr; }
}

/* ---------- примірка ---------- */
.try { background: var(--night); color: var(--night-fg); padding-block: var(--gap); }
.try .lead { color: var(--night-muted); max-width: 40ch; }
.try__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; }
.try__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.stage { position: relative; }
.stage__zoom { position: relative; overflow: hidden; background: #000; }
.stage__inner { position: relative; transform-origin: 49.6% 35%; transition: transform .7s var(--ease); }
.stage[data-zoomed] .stage__inner { transform: scale(1.85); }
.stage__photo { width: 100%; transition: filter .6s ease; }
.stage[data-tod="night"] .stage__photo { filter: brightness(.26) saturate(.7) hue-rotate(8deg) contrast(1.1); }
.screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #000; }
.screen video, .screen img { width: 100%; height: 100%; max-width: none; object-fit: var(--fit, contain); }
.screen__demo { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6%; padding: 7% 8%; background: var(--bg); color: var(--ink); }
.screen__big { font: 800 128px/0.95 var(--display); letter-spacing: -0.05em; }
.screen__small { font: 600 40px/1.2 var(--text); }
.stage[data-tod="night"] .screen { filter: brightness(1.08); }
.stage__clock { position: absolute; right: 12px; bottom: 12px; background: var(--night); color: var(--paper); padding: 6px 10px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--t-small); }
.try__panel { display: grid; gap: 22px; }
.upload { display: grid; gap: 10px; justify-items: start; }
.upload__btn { width: 100%; }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; } /* taste-skill-ignore: прихований input */
.upload__input:focus-visible + .small { outline: 3px solid var(--bg); }
.upload .small { color: var(--night-muted); }
.try__note { min-height: 1.5em; color: var(--paper); font-weight: 600; }
.try__note:empty { display: none; }

/* сегментні перемикачі */
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.seg legend { width: 100%; padding: 0 0 8px; font-size: var(--t-small); color: var(--night-muted); }
.seg label { flex: 1 1 0; position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; background: var(--night-2); color: var(--night-fg); font-weight: 600; text-align: center; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.seg label:hover span { background: #1b2c38; }
.seg input:checked + span { background: var(--bg); color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--paper); outline-offset: 2px; }
.seg label:active span { transform: scale(.97); }
.seg--light legend { color: var(--muted); }
.seg--light span { background: var(--surface); color: var(--ink); }
.seg--light label:hover span { background: #ff9447; }
.seg--light input:checked + span { background: var(--ink); color: var(--bg); }
.seg--light input:focus-visible + span { outline-color: var(--ink); }
.seg--months label { flex: 1 1 0; min-width: 44px; }

@media (max-width: 900px) {
  .try__head, .try__grid { grid-template-columns: 1fr; }
  .stage { margin-inline: calc(var(--m) * -1); }
}

/* ---------- ціни ---------- */
.price { background: var(--bg); padding-block: var(--gap); }
.price__title { font-family: var(--display); font-weight: 800; font-size: var(--t-head); line-height: 1.05; letter-spacing: -0.04em; max-width: 16ch; }
.price__tag { display: inline-block; background: var(--ink); color: var(--bg); padding: 0 .18em; white-space: nowrap; }
.price__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); margin-top: clamp(56px, 6vw, 96px); align-items: start; }
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable caption { text-align: left; font-size: var(--t-small); padding-bottom: 14px; color: var(--muted); font-weight: 500; }
.ptable th, .ptable td { text-align: left; padding: clamp(14px, 1.6vw, 24px) 12px clamp(14px, 1.6vw, 24px) 0; border-bottom: 2px solid var(--ink); vertical-align: baseline; }
.ptable thead th { font-weight: 600; font-size: var(--t-small); padding-top: 0; }
.ptable tbody th { font-weight: 600; }
.ptable td { font-family: var(--display); font-size: var(--t-mid); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.ptable td strong { font-weight: 800; }
.price__tablebox .small { margin-top: 16px; }
.calc { display: grid; gap: 22px; padding: clamp(20px, 2.4vw, 36px); background: var(--surface); }
.calc__out { display: grid; gap: 4px; }
.calc__sum { font: 800 var(--t-head)/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.calc__line { font-weight: 600; }
@media (max-width: 900px) { .price__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ptable th, .ptable td { padding-right: 8px; } .ptable tbody th { font-size: .9375rem; } }

/* ---------- як це працює: дієслово на всю ширину, фото навпроти ---------- */
.steps { background: var(--night); color: var(--night-fg); padding-block: var(--gap); }
.steps__title { padding-bottom: clamp(48px, 6vw, 96px); }
.steps__list { display: grid; gap: clamp(64px, 8vw, 128px); }
.step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.step__copy { grid-column: 1 / 7; }
.step__img { grid-column: 7 / 13; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.step:nth-child(2) .step__copy { grid-column: 7 / 13; grid-row: 1; }
.step:nth-child(2) .step__img { grid-column: 1 / 7; grid-row: 1; }
.step__verb { font: 800 var(--t-display)/1 var(--display); letter-spacing: -0.055em; color: var(--bg); }
.step__text { margin-top: 20px; max-width: 34ch; font-size: var(--t-lead); line-height: 1.4; color: var(--night-fg); }
@media (max-width: 800px) {
  .step { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .step:nth-child(n) .step__copy { order: 1; }
  .step:nth-child(n) .step__img { order: 2; }
  .step__verb { font-size: 13vw; }
}

/* ---------- питання ---------- */
.faq { background: var(--paper); padding-block: var(--gap); }
.faq__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); padding-bottom: clamp(48px, 6vw, 84px); }
.faq__h { grid-column: 1 / 8; font: 700 var(--t-head)/1 var(--display); letter-spacing: -0.035em; }
.faq__q { grid-column: 1 / 7; font: 600 var(--t-mid)/1.15 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.faq__a { grid-column: 8 / 13; max-width: 42ch; padding-top: .2em; }
@media (max-width: 800px) {
  .faq__row { display: block; padding-bottom: 48px; }
  .faq__a { margin-top: 12px; }
}

/* ---------- заявка ---------- */
.lead-sec { background: var(--night); color: var(--night-fg); padding-block: var(--gap); }
.lead-sec .lead { color: var(--night-muted); margin-top: 28px; }
.lead-sec__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
.contacts { display: grid; gap: 10px; margin-top: 40px; }
.contacts a { position: relative; display: inline-block; font: 600 var(--t-mid)/1.25 var(--display); letter-spacing: -0.02em; text-decoration: none; transition: color .2s; }
.contacts a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--bg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.contacts a:hover { color: var(--bg); }
.contacts a:hover::after { transform: scaleX(1); }
.form { display: flex; flex-wrap: wrap; gap: 18px 16px; padding: clamp(20px, 2.6vw, 40px); background: var(--night-2); }
.field { flex: 1 1 100%; display: grid; gap: 8px; }
.field--half { flex: 1 1 calc(50% - 8px); min-width: 160px; }
.field label { font-weight: 600; font-size: var(--t-small); color: var(--night-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: 500 1.0625rem/1.3 var(--text); color: var(--ink); background: var(--paper); border: 2px solid var(--paper); border-radius: 0; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23050f16' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bg); }
.field [aria-invalid="true"] { border-color: #ff5a4f; }
.field__err { color: #ffb4ad; font-size: var(--t-small); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot */
.form__status { flex: 1 1 100%; min-height: 1.5em; font-weight: 600; }
.form__status:empty { display: none; }
.form--done { align-content: center; min-height: 360px; }
.form--done h3 { font: 700 var(--t-mid)/1.15 var(--display); }
@media (max-width: 900px) { .lead-sec__grid { grid-template-columns: 1fr; } }

/* ---------- підвал ---------- */
.foot { background: var(--bg); padding-block: 40px 32px; min-height: min(62svh, 640px); display: flex; flex-direction: column; }
.foot > .wrap { flex: 1; display: flex; flex-direction: column; }
.foot__top { display: flex; justify-content: space-between; gap: 24px; font-size: var(--t-small); font-weight: 600; }
.foot__tel { margin-top: auto; padding-top: 72px; font: 800 clamp(2.4rem, 10.4vw, 11rem)/1 var(--display); letter-spacing: -0.06em; text-decoration: none; white-space: nowrap; transition: color .25s; }
.foot__tel:hover { color: var(--paper); }
.foot__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; font-size: var(--t-small); font-weight: 600; }

/* ---------- поява розділів ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title .line { opacity: 0; transform: translateY(.35em); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero__title .line:nth-child(2) { transition-delay: 90ms; }
.js.is-ready .hero__title .line { opacity: 1; transform: none; }
.hero__video { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero__film { overflow: hidden; }

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

/* ---------- прості сторінки (404, подяка) ---------- */
.simple { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 28px; padding: var(--m); }
.screen__demo[hidden], [hidden] { display: none !important; }
