/* Общая основа трёх вариантов /reelsmaker. Вариант подключает этот файл и переопределяет что нужно.
   Правила вкуса: чёрный, белый, серые и один красный #FF0000 (только кнопки и редкие акценты). Без рамок в рамках,
   без обводок полей, без значков Тильды, без свечения у кнопок. Размеры не растут после 1440. */
/* шрифты — /own/reelsmaker/fonts/fonts.css */

:root {
  --bg: #000;
  --ink: #F4F3F1;
  --ink2: #A6A5A3;
  --ink3: #6A6968;
  --ink4: #3A3938;
  --red: #FF0000;
  --l1: rgba(255, 255, 255, .08);
  --l2: rgba(255, 255, 255, .14);
  --e: cubic-bezier(.16, 1, .3, 1);
  --e2: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(16px, 4.45vw, 64px);
  --max: 1440px;
  --side: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  --hd: 72px;
  --fb: 'Wix Madefor Text', system-ui, -apple-system, sans-serif;
  --fd: 'Unbounded', 'Wix Madefor Text', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--fb); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }

.wrap { padding-left: var(--side); padding-right: var(--side); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Дисплейный шрифт — Unbounded светлый строчными, как на утверждённых /distribution и /clip */
.d { font-family: var(--fd); font-weight: 300; letter-spacing: -.055em; line-height: .98; }
.d b, .d strong { font-weight: 600; }
.red { color: var(--red); }

/* ---------- Кнопки: одна система ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--fb); font-weight: 600; font-size: 16px; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .5s var(--e), background-color .3s; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .55s var(--e); }
.btn:hover { color: #000; }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn .ar { width: 18px; height: 18px; transition: transform .5s var(--e); }
.btn:hover .ar { transform: translateX(3px); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--l2); }
.btn--ghost::after { background: var(--ink); }
.btn--white { background: #fff; color: #000; }
.btn--white::after { background: var(--red); }
.btn--white:hover { color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Шапка ---------- */
.hdr { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--hd); display: flex; align-items: center; gap: 28px; padding: 0 var(--side); transition: background-color .4s, backdrop-filter .4s; }
.hdr.is-solid { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.hdr__logo { flex: none; display: block; width: 96px; }
.hdr__logo img { width: 100%; height: auto; }
.hdr__tag { color: var(--ink3); font-size: 12px; line-height: 1.35; max-width: 270px; }
.hdr__sp { flex: 1; }
.hdr__ph { font-size: 14px; color: var(--ink2); transition: color .3s; white-space: nowrap; }
.hdr__ph:hover { color: var(--ink); }
@media (max-width: 1100px) { .hdr__tag { display: none; } }
@media (max-width: 720px) { .hdr { gap: 14px; --hd: 60px; } .hdr__ph { display: none; } .hdr .btn--sm { height: 38px; padding: 0 14px; font-size: 13px; } .hdr .btn .t-long { display: none; } }
@media (min-width: 721px) { .hdr .btn .t-short { display: none; } }

/* ---------- Окно записи ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .5s; }
.modal.is-open .modal__bg { opacity: 1; }
.modal__x { position: absolute; z-index: 3; top: 18px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--ink2); transition: color .3s, transform .5s var(--e); }
.modal__x:hover { color: #fff; transform: rotate(90deg); }
.modal__x svg { width: 22px; height: 22px; }
.modal__box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #000; padding: 48px 52px 40px; overscroll-behavior: contain; opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .5s var(--e), transform .7s var(--e); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.pp__t { font-family: var(--fd); font-weight: 300; letter-spacing: -.05em; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.04; max-width: 15em; }
.pp__t b { font-weight: 600; }
.pp__p { color: var(--ink2); font-size: 14px; line-height: 1.55; margin: 14px 0 26px; max-width: 54ch; }
.pp__f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.f { position: relative; display: block; padding-top: 18px; }
.f input, .f textarea, .f select { width: 100%; height: 48px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid var(--l2); border-radius: 0; color: var(--ink); font: 400 17px/1.3 var(--fb); outline: 0; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.f textarea { height: 64px; padding-top: 12px; resize: none; }
.f input:focus, .f textarea:focus { border-color: var(--ink); }
.f__l { position: absolute; left: 0; top: 31px; color: var(--ink3); font-size: 17px; pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--e), color .3s; }
.f input:focus + .f__l, .f input:not(:placeholder-shown) + .f__l, .f textarea:focus + .f__l, .f textarea:not(:placeholder-shown) + .f__l { transform: translateY(-24px) scale(.76); color: var(--ink2); }
.f.is-bad input { border-color: var(--red); }
.f--wide { grid-column: 1 / -1; }
.f--tel { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
.f--tel .f__cc { position: relative; }
.f--tel select { width: 128px; min-width: 0; text-overflow: ellipsis; padding-right: 18px; color: var(--ink); cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 7px) 22px, calc(100% - 2px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.f--tel select option { background: #111; color: #fff; }
.f--tel .f__in { position: relative; }
.f--tel .f__l { left: 0; top: 13px; }
.f--tel .f__in input:focus + .f__l, .f--tel .f__in input:not(:placeholder-shown) + .f__l { transform: translateY(-24px) scale(.76); }
.seg { grid-column: 1 / -1; border: 0; margin: 14px 0 2px; padding: 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.seg legend { float: left; color: var(--ink3); font-size: 14px; margin-right: 6px; padding: 0; }
.seg__o { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: #121212; color: var(--ink2); font-size: 14px; transition: background-color .3s, color .3s; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: #000; }
.seg.is-bad span { box-shadow: inset 0 0 0 1px rgba(255, 0, 0, .55); }
.pp__go { grid-column: 1 / -1; margin-top: 22px; width: 100%; height: 60px; font-size: 16px; }
.chk { grid-column: 1 / -1; display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--ink3); cursor: pointer; }
.chk input { position: absolute; opacity: 0; }
.chk__b { width: 18px; height: 18px; border-radius: 5px; background: #1a1a1a; display: grid; place-items: center; transition: background-color .25s; margin-top: 1px; }
.chk__b svg { width: 12px; height: 12px; color: #000; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--e); }
.chk input:checked + .chk__b { background: var(--ink); }
.chk input:checked + .chk__b svg { opacity: 1; transform: none; }
.chk a { text-decoration: underline; text-decoration-color: var(--ink4); text-underline-offset: 2px; }
.chk a:hover { color: var(--ink); }
.pp__ok { display: none; padding: 30px 0 10px; }
.pp.is-done .pp__f { display: none; }
.pp.is-done .pp__ok { display: block; }
.pp__ok p { color: var(--ink2); margin-top: 12px; max-width: 46ch; }
@media (max-width: 720px) {
  .modal { padding: 0; place-items: stretch; }
  .modal__box { max-height: 100vh; height: 100%; padding: 64px 18px 28px; }
  .pp__f { grid-template-columns: 1fr; }
}

/* ---------- Ролик со звуком ---------- */
.player { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; }
.player[hidden] { display: none; }
.player__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.player__v { position: relative; height: min(86vh, 900px); aspect-ratio: 9 / 16; max-width: 92vw; border-radius: 22px; overflow: hidden; background: #0a0a0a; }
.player__v.is-wide { height: auto; width: min(1280px, 92vw); aspect-ratio: 16 / 9; }
.player__v video { width: 100%; height: 100%; object-fit: cover; }
.player .modal__x { position: fixed; }

/* ---------- Вопросы и ответы ---------- */
.faq__i { border-top: 1px solid var(--l1); }
.faq__i:last-child { border-bottom: 1px solid var(--l1); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; text-align: left; font-size: clamp(17px, 1.35vw, 20px); font-weight: 500; letter-spacing: -.01em; transition: color .3s; }
.faq__q:hover { color: #fff; }
.faq__pm { position: relative; flex: none; width: 18px; height: 18px; }
.faq__pm::before, .faq__pm::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .5s var(--e); }
.faq__pm::after { transform: rotate(90deg); }
.faq__i.is-open .faq__pm::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--e); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 0 28px; color: var(--ink2); max-width: 62ch; white-space: pre-line; }
.faq__i.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- Подвал ---------- */
.ftr { padding: 72px var(--side) 40px; color: var(--ink2); font-size: 13px; }
.ftr__g { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; align-items: start; }
.ftr__h { color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ftr__a { margin-bottom: 22px; max-width: 34ch; }
.ftr__big { display: block; font-family: var(--fd); font-weight: 300; letter-spacing: -.04em; font-size: clamp(22px, 2vw, 30px); color: var(--ink); line-height: 1.2; transition: color .3s; }
.ftr__big:hover { color: var(--red); }
.ftr__soc { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.ftr__soc a { color: var(--ink2); transition: color .3s; }
.ftr__soc a:hover { color: var(--ink); }
.ftr__legal { text-align: right; display: grid; gap: 6px; justify-items: end; }
.ftr__legal a { text-decoration: underline; text-decoration-color: var(--ink4); text-underline-offset: 3px; }
.ftr__legal a:hover { color: var(--ink); }
@media (max-width: 900px) { .ftr__g { grid-template-columns: 1fr; } .ftr__legal { text-align: left; justify-items: start; } }

/* ---------- Появление при прокрутке ---------- */
[data-in] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--e), transform 1.2s var(--e); }
[data-in].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-in] { opacity: 1; transform: none; transition: none; } }
