@import url(/static/fonts.css);

/* Бетон, графит, строительный жёлтый: цвета стройки. Жёлтый - только заливка и разметка, текстом по светлому не используется. */
:root {
  --beton: #e6e8e9;
  --mel: #f7f8f8;
  --graphit: #14181b;
  --graphit-2: #232a2f;
  --yellow: #f5b800;
  --yellow-soft: #fbe39a;
  --line: #b3bbc0;
  --text-2: #46515a;
  --ok: #1f7a5c;
  --err: #b3261e;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--beton); color: var(--graphit); font: 400 17px/1.55 "Onest", system-ui, sans-serif; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: "Unbounded", "Onest", sans-serif; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.15rem); }
h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--graphit); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--yellow); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: var(--beton); border-bottom: 2px solid var(--graphit); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { font: 800 1.15rem/1 "Unbounded", sans-serif; letter-spacing: -0.03em; text-decoration: none; display: flex; align-items: center; gap: 2px; }
.brand b { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; background: var(--yellow); margin: 0 1px; font-weight: 800; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }
.who { font-size: 0.9rem; color: var(--text-2); display: flex; gap: 14px; align-items: center; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .nav { margin-left: auto; } }

/* кнопки: прямые углы, жёлтая заливка, графитовая рамка - как штамп */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; background: var(--yellow); color: var(--graphit); border: 2px solid var(--graphit); border-radius: 3px; font: 600 1rem/1 "Onest", sans-serif; text-decoration: none; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; box-shadow: 3px 3px 0 var(--graphit); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--graphit); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--graphit); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--text-2); cursor: not-allowed; box-shadow: none; transform: none; border-color: var(--text-2); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--mel); box-shadow: none; transform: none; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 0.9rem; box-shadow: 2px 2px 0 var(--graphit); }
.dark .btn { border-color: var(--yellow); box-shadow: 3px 3px 0 var(--yellow); }
.link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; }

/* главный экран */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 24px; max-width: 34em; font-size: 1.15rem; color: var(--text-2); }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.hero .note { margin-top: 18px; font-size: 0.95rem; color: var(--text-2); max-width: 32em; }
.reel { position: relative; justify-self: center; width: min(100%, 360px); }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--graphit); border: 2px solid var(--graphit); box-shadow: 14px 14px 0 var(--yellow); }
.reel .sound { position: absolute; left: 12px; bottom: 12px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .reel { width: min(78%, 320px); justify-self: start; margin-top: 8px; } }

/* разделы */
.sec { padding: clamp(44px, 7vw, 88px) 0; }
.sec > .wrap > h2 { max-width: 22ch; }
.sec .sub { margin-top: 14px; max-width: 40em; color: var(--text-2); }
.dark { background: var(--graphit); color: var(--mel); }
.dark .sub { color: #aeb8be; }

/* порядок работы: это последовательность, поэтому номера */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--graphit); }
.steps li { padding: 24px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.steps li + li { padding-left: 28px; border-left: 2px solid var(--graphit); }
.steps .n { font: 800 3.4rem/1 "Unbounded", sans-serif; color: var(--yellow); -webkit-text-stroke: 2px var(--graphit); letter-spacing: -0.04em; }
.steps p { color: var(--text-2); max-width: 24em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 20px 0; border-left: 0; } .steps li + li { border-top: 2px solid var(--graphit); } }

/* примеры */
.examples { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.examples video { width: 100%; background: #000; border: 2px solid var(--yellow); }
.examples .v video { aspect-ratio: 9 / 16; object-fit: cover; }
.examples .h video { aspect-ratio: 16 / 9; object-fit: cover; }
.examples figcaption { margin-top: 10px; font-size: 0.92rem; color: #aeb8be; }
.examples figure { margin: 0; }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } .examples .v { max-width: 300px; } }

/* цена: линейка, по которой двигается число слайдов */
.price { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.tape { background: var(--mel); border: 2px solid var(--graphit); padding: 22px clamp(16px, 3vw, 28px) 26px; }
.tape .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tape output { font: 800 1.1rem/1 "Unbounded", sans-serif; }
.ruler { position: relative; height: 64px; }
.ruler .scale { position: absolute; left: 14px; right: 14px; top: 8px; height: 3px; background: var(--graphit); }
.ruler .tick { position: absolute; top: 0; width: 2px; height: 24px; margin-left: -1px; background: var(--graphit); }
.ruler .labels { position: absolute; left: 14px; right: 14px; top: 36px; display: flex; justify-content: space-between; font: 500 0.8rem/1 "Onest", sans-serif; color: var(--text-2); }
.ruler .labels span { width: 0; display: flex; justify-content: center; }
.ruler input { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; height: 64px; }
.ruler .mark { position: absolute; top: 0; width: 28px; height: 52px; margin-left: -14px; background: var(--yellow); border: 2px solid var(--graphit); pointer-events: none; display: grid; place-items: end center; padding-bottom: 4px; font: 800 0.8rem/1 "Unbounded", sans-serif; }
.ruler:focus-within .mark { outline: 3px solid var(--graphit); outline-offset: 3px; }
.seg { display: inline-flex; border: 2px solid var(--graphit); margin-top: 18px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 16px; font-weight: 500; font-size: 0.95rem; }
.seg input:checked + span { background: var(--graphit); color: var(--mel); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: -5px; }
.total { margin-top: 22px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.total .sum { font: 800 clamp(2rem, 5vw, 2.8rem)/1 "Unbounded", sans-serif; letter-spacing: -0.03em; }
.total .how { color: var(--text-2); font-size: 0.95rem; }
.free { border: 2px solid var(--graphit); background: var(--yellow-soft); padding: 22px; display: grid; gap: 10px; }
.free h3 { font-weight: 800; }
.free p { color: var(--graphit); }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

.msgr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: 8px; }
.msgr video, .msgr .poster { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 2px solid var(--graphit); background: var(--graphit); }
@media (max-width: 760px) { .msgr { grid-template-columns: 1fr; } .msgr video { max-width: 260px; } }

.faq { margin-top: 28px; border-top: 2px solid var(--graphit); max-width: 52em; }
.faq details { border-bottom: 2px solid var(--graphit); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font: 500 1.05rem/1.3 "Onest", sans-serif; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 800 1.4rem/1 "Unbounded", sans-serif; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; color: var(--text-2); max-width: 42em; }

footer.foot { background: var(--graphit); color: #aeb8be; padding: 36px 0 44px; font-size: 0.92rem; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer.foot a { color: var(--mel); }

/* формы (страница заказа и вход) */
.page { padding: clamp(24px, 5vw, 56px) 0 120px; }
.page .wrap { max-width: 800px; }
.page h1 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.panel { background: var(--mel); border: 2px solid var(--graphit); padding: clamp(18px, 3vw, 28px); margin-top: 20px; }
.panel > h2 { font-size: 1.15rem; margin-bottom: 4px; }
.panel .hint { color: var(--text-2); font-size: 0.95rem; margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field > label, .field > .lab { font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; gap: 12px; }
.field .cnt { font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }
.field .cnt.over { color: var(--err); font-weight: 600; }
input[type="text"], input[type="email"], textarea, select { width: 100%; padding: 12px 14px; background: #fff; border: 2px solid var(--graphit); border-radius: 3px; font: 400 1rem/1.4 "Onest", sans-serif; color: var(--graphit); }
textarea { resize: vertical; min-height: 76px; }
input::placeholder, textarea::placeholder { color: #7b868d; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: 0.92rem; font-weight: 500; }
.ok { color: var(--ok); font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }
.choice { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 10px 16px; border: 2px solid var(--graphit); background: #fff; font-weight: 500; }
.choice input:checked + span { background: var(--graphit); color: var(--mel); }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: -5px; }

.drop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.drop .thumb { width: 64px; height: 64px; border: 2px solid var(--graphit); background: var(--beton) center / cover; flex: none; }
.slides { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.slide { border: 2px solid var(--graphit); background: #fff; padding: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.slide .pics { display: grid; gap: 8px; align-content: start; }
.slide .pic { position: relative; width: 112px; aspect-ratio: 4 / 3; background: var(--beton) center / cover; border: 2px solid var(--graphit); display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.slide .pic .tagk { position: absolute; left: 0; bottom: 0; background: var(--graphit); color: var(--mel); font-size: 0.72rem; font-weight: 600; padding: 2px 7px; }
.slide .pic.empty { background-image: none; color: var(--text-2); font-size: 0.8rem; text-align: center; padding: 4px; border-style: dashed; }
.slide .pic.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='10' fill='none' stroke='%2314181b' stroke-width='3' stroke-dasharray='40 30'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 14 14' to='360 14 14' dur='0.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center no-repeat; }
.slide .ctl { display: flex; gap: 6px; align-items: center; justify-content: space-between; margin-bottom: 4px; font-weight: 600; font-size: 0.9rem; }
.slide .ctl .btns { display: flex; gap: 4px; }
.iconbtn { width: 34px; height: 34px; border: 2px solid var(--graphit); background: var(--mel); border-radius: 3px; cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.iconbtn:hover:not([disabled]) { background: var(--yellow); }
.iconbtn[disabled] { opacity: 0.35; cursor: not-allowed; }
.slide .f { display: grid; gap: 8px; }
.slide .f input { padding: 9px 12px; }
@media (max-width: 560px) { .slide { grid-template-columns: 1fr; } .slide .pics { grid-auto-flow: column; justify-content: start; } }
.addrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.music { display: grid; gap: 8px; margin-top: 8px; }
.music .opt { display: flex; align-items: center; gap: 10px; }
audio { width: 100%; height: 40px; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--graphit); color: var(--mel); border-top: 2px solid var(--yellow); }
.bar .wrap { max-width: 800px; display: flex; align-items: center; gap: 16px; justify-content: space-between; min-height: 72px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.bar .info { display: grid; gap: 2px; }
.bar .big { font: 800 1.25rem/1.1 "Unbounded", sans-serif; }
.bar .small { font-size: 0.85rem; color: #aeb8be; }
.bar .btn { border-color: var(--yellow); box-shadow: 3px 3px 0 var(--yellow); }
.bar .btn[disabled] { background: #3a444b; color: #8d989f; border-color: #3a444b; box-shadow: none; }

.plain { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.card { background: var(--mel); border: 2px solid var(--graphit); padding: clamp(22px, 4vw, 36px); box-shadow: 10px 10px 0 var(--yellow); display: grid; gap: 16px; }
.card.narrow { max-width: 460px; width: 100%; }
.card.narrow h1 { font-size: 1.5rem; }
.legal { max-width: 720px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text-2); margin-top: 8px; }
.legal ul { padding-left: 1.2em; }

/* страница заказа */
.job-video { display: grid; gap: 28px; margin-top: 24px; }
.job-video figure { margin: 0; }
.job-video video { width: 100%; background: #000; border: 2px solid var(--graphit); }
.job-video .v video { max-width: 360px; aspect-ratio: 9 / 16; object-fit: cover; }
.job-video .h video { aspect-ratio: 16 / 9; object-fit: cover; }
.job-video figcaption { margin-top: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.progress { height: 14px; border: 2px solid var(--graphit); background: #fff; margin-top: 18px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 40%; background: var(--yellow); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress i { animation: none; width: 100%; }
  .btn { transition: none; }
}

[hidden] { display: none !important; }
