/* Gribfrut — стили лендинга и правовой страницы.
   Значения перенесены из макета «Gribfrut Landing.dc.html»; правила для телефона — из «Мобильная версия». */

:root {
  --ink: #16140F;
  --paper: #F3F0E7;
  --card: #F8F6EF;
  --orange: #E8451E;
  --lime: #D7F04A;
  --muted: #6B655A;
  --text-2: #3A362D;
  --dark-card: #1E1B15;
  --dark-line: #3A362D;
  --dark-muted: #8D8778;
  --dark-text: #C6C0B1;
  --dark-text-2: #E3DFD3;
  --on-orange: #2A1409;
  --warn-bg: #FFF4C7;
  --error-bg: #FFE2DA;
  --stripes: repeating-linear-gradient(135deg, #DCD7C8 0 7px, #E9E4D7 7px 14px);
  --stripes-dark: repeating-linear-gradient(135deg, #232019 0 8px, #2C2820 8px 16px);
  --line: 1.5px solid var(--ink);
  --display: 'Unbounded', sans-serif;
  --body: 'Golos Text', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(0.2, 0.9, 0.2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
input, textarea, select, button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--lime); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible, .work-card:focus-visible { outline-color: var(--lime); }
.section-orange :focus-visible { outline-color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* overflow-x: clip, а не hidden: hidden сломал бы липкую шапку */
.page { min-height: 100vh; overflow-x: clip; }
.container { max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-pad { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(48px, 7vw, 100px); }
.anchor { scroll-margin-top: calc(var(--header-h) + 8px); }
.mono { font-family: var(--mono); }
.mono-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lime { color: var(--lime); }

.rise { animation: rise 0.7s var(--ease-out) both; }
.rise.d1 { animation-delay: 0.06s; }
.rise.d2 { animation-delay: 0.14s; }
.rise.d3 { animation-delay: 0.2s; }
.rise.d4 { animation-duration: 0.8s; animation-delay: 0.26s; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; font-family: var(--mono); font-weight: 700; letter-spacing: 0.1em;
  text-decoration: none; text-align: center; border: var(--line); cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.14s, box-shadow 0.14s;
}
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--lime); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--orange); color: var(--ink); }
.btn-dark-lime { background: var(--ink); color: var(--lime); font-size: 13px; padding: 15px 22px; align-self: flex-start; }
.btn-dark-lime:hover { background: var(--orange); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); letter-spacing: 0.06em; }
.btn-outline:hover { background: var(--lime); color: var(--ink); }
.btn-lg { font-size: 15px; padding: 18px 34px; }
.btn-outline.btn-lg { padding: 18px 28px; }
.btn-md { font-size: 14px; padding: 16px 26px; }
.btn-sm { font-size: 12px; padding: 12px 18px; }
.btn-shadow { box-shadow: 6px 6px 0 var(--ink); }
.btn-shadow:hover { background: var(--orange); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-header { font-size: 13px; padding: 14px 20px; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand-desc { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.main-nav { margin-left: auto; display: flex; gap: clamp(12px, 2vw, 28px); align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.main-nav a { text-decoration: none; }

/* ---------- первый экран ---------- */
.hero { border-bottom: var(--line); position: relative; overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-end; padding-top: clamp(36px, 6vw, 84px); }
.hero-main { flex: 1 1 min(100%, 520px); min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); animation-duration: 0.6s; }
.eyebrow-dot { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(29px, 7.6vw, 104px); line-height: 0.94; letter-spacing: -0.035em; margin: clamp(18px, 3vw, 34px) 0 0; text-wrap: balance; }
.hero-title .accent { color: var(--orange); }
.hero-lead { max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--text-2); margin: clamp(20px, 3vw, 32px) 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: clamp(22px, 3vw, 34px); }
.price-badge { background: var(--lime); border: var(--line); padding: 13px 18px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.hero-note { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 62ch; margin: clamp(22px, 3vw, 30px) 0 clamp(28px, 4vw, 44px); }

.hero-media { flex: 1 1 min(100%, 240px); max-width: 380px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: clamp(28px, 4vw, 44px); }
.frame { position: relative; display: block; border: var(--line); background: var(--stripes); padding: 0; overflow: hidden; }
.frame-tall { grid-column: 1 / -1; aspect-ratio: 9 / 13; }
.frame-sq { aspect-ratio: 1; }
.frame-dark { background: var(--ink); color: var(--lime); display: grid; place-items: center; text-decoration: none; }
.frame-dark:hover { color: var(--lime); background: #26231C; }
.frame-play { width: 44px; height: 44px; border: 1.5px solid var(--lime); border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.frame-media { cursor: pointer; }
.frame-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.frame-media:hover img { transform: scale(1.03); }

/* Ролик первого экрана: обложка под петлёй, петля проявляется, когда пошло воспроизведение */
.frame-open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.frame-open img, .frame-open video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out), opacity 0.5s ease; }
.frame-open video { opacity: 0; pointer-events: none; }
.frame-video.is-playing .frame-open video { opacity: 1; }
.frame-open:hover img, .frame-open:hover video { transform: scale(1.03); }
.frame-open:focus-visible { outline-offset: -4px; }
.frame-pause {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--lime); border: 1.5px solid var(--ink); cursor: pointer; transition: background 0.14s, color 0.14s;
}
.frame-pause:hover { background: var(--orange); color: var(--ink); }
.frame-pause:focus-visible { outline-color: var(--lime); }
/* значок паузы — две полосы; на паузе — треугольник «воспроизвести» */
.frame-pause::before { content: ''; box-sizing: border-box; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.frame-video.is-paused .frame-pause::before { width: 0; height: 0; margin-left: 3px; border-right: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

.marquee { border-top: var(--line); background: var(--ink); color: var(--paper); overflow: hidden; padding: 12px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 26s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; padding-right: 28px; white-space: nowrap; }

/* ---------- общее для секций ---------- */
.section { border-bottom: var(--line); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-orange { background: var(--orange); }
.section-head { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); align-items: flex-end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .h2 { flex: 1 1 min(100%, 380px); }
.section-lead { flex: 1 1 min(100%, 280px); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: var(--text-2); margin: 0; max-width: 46ch; }
.section-dark .section-lead { color: var(--dark-text); }
.h2 { font-family: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; margin: 0; }
.h2-xl { font-size: clamp(30px, 5.2vw, 72px); }
.h2-works { font-size: clamp(28px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.h2-cycle { font-size: clamp(28px, 4.6vw, 62px); color: var(--ink); }
.h2-about { font-size: clamp(30px, 4.8vw, 64px); }
.h2-faq { font-size: clamp(30px, 4.4vw, 58px); }
.h2-order { font-size: clamp(28px, 4.2vw, 56px); }
.h2-order:focus { outline: none; }

/* ---------- работы ---------- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: start; }
.work-card { text-align: left; background: var(--dark-card); border: 1.5px solid var(--dark-line); color: var(--paper); padding: 0; cursor: pointer; display: flex; flex-direction: column; transition: border-color 0.16s, transform 0.16s; }
.work-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.work-media { position: relative; display: grid; place-items: center; background: var(--stripes-dark); overflow: hidden; }
.work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.work-play { position: relative; width: 44px; height: 44px; border: 1.5px solid var(--paper); border-radius: 50%; display: grid; place-items: center; color: var(--paper); font-size: 13px; background: rgba(22, 20, 15, 0.45); }
.work-ratio { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink); background: var(--lime); padding: 3px 6px; }
.work-body { display: block; padding: 16px 16px 18px; }
.work-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark-muted); }
.work-sep { color: var(--dark-line); }
.work-kind.is-concept { color: var(--lime); }
.work-title { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin: 10px 0 8px; color: var(--paper); }
.work-task { display: block; font-size: 14px; line-height: 1.5; color: var(--dark-text); }
.work-more { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; }

/* ---------- услуги ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.service-card { border: var(--line); background: var(--card); padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 14px; transition: background 0.16s; }
.service-card:hover { background: #FFFFFF; }
.service-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.service-title { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
.service-text { font-size: 15px; line-height: 1.55; color: var(--text-2); margin: 0; flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: var(--line); padding-top: 16px; }
.service-price { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -0.02em; white-space: nowrap; }
.service-card-other { background: var(--lime); justify-content: space-between; }
.service-card-other:hover { background: var(--lime); }
.service-card-other .service-text { color: var(--ink); }
.service-other-title { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2vw, 28px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.services-note { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 74ch; margin: clamp(20px, 2.6vw, 30px) 0 0; }

/* ---------- полный цикл ---------- */
.cycle-inner { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-start; padding-top: clamp(44px, 6vw, 88px); padding-bottom: clamp(44px, 6vw, 88px); }
.cycle-main { flex: 1 1 min(100%, 340px); min-width: 0; }
.cycle-side { flex: 1 1 min(100%, 280px); min-width: 0; }
.cycle-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--on-orange); margin: clamp(16px, 2vw, 26px) 0 0; max-width: 52ch; }
.cycle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5px; background: var(--ink); border: var(--line); }
.cycle-list li { background: var(--orange); padding: 13px 16px; display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink); }
.cycle-n { font-weight: 700; opacity: 0.55; }
.cycle-label { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.cycle-extra { font-size: 15px; line-height: 1.55; color: var(--on-orange); margin: 20px 0 0; }
.cycle-side .btn { margin-top: 18px; }
.cycle-side .btn-dark:hover { background: var(--lime); color: var(--ink); }

/* ---------- как работаем ---------- */
.process-title { margin-bottom: clamp(28px, 4vw, 48px); max-width: 18ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(14px, 1.6vw, 20px); align-items: start; }
.step { background: var(--paper); border: var(--line); padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.step-n { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.04em; color: var(--orange); }
.step-title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.step-text { font-size: 14.5px; line-height: 1.55; color: var(--text-2); margin: 0; }

/* ---------- о студии ---------- */
.about-inner { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 72px); align-items: flex-start; }
.about-inner .h2 { flex: 1 1 min(100%, 320px); }
.about-text { flex: 1 1 min(100%, 320px); min-width: 0; }
.about-text p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--dark-text-2); margin: 0; }
.about-text p + p { color: var(--dark-text); margin-top: 20px; }

/* ---------- вопросы ---------- */
.faq-inner { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-start; }
.faq-inner .h2 { flex: 1 1 min(100%, 240px); }
.faq-list { flex: 2.4 1 min(100%, 340px); border-top: var(--line); min-width: 0; }
.faq-item { border-bottom: var(--line); }
.faq-q { list-style: none; padding: 20px 0; cursor: pointer; display: flex; gap: 18px; align-items: baseline; justify-content: space-between; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--orange); }
.faq-q-text { font-family: var(--display); font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.25; letter-spacing: -0.02em; }
.faq-sign { font-family: var(--mono); font-size: 18px; flex-shrink: 0; }
.faq-sign::before { content: '+'; }
.faq-item[open] .faq-sign::before { content: '–'; }
.faq-a { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0 0 22px; max-width: 72ch; padding-right: 36px; }

/* ---------- форма ---------- */
.order-inner { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); align-items: flex-start; }
.order-intro { flex: 1 1 min(100%, 300px); min-width: 0; }
.order-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--text-2); margin: 20px 0 0; max-width: 42ch; }
.order-card { flex: 1.35 1 min(100%, 340px); border: var(--line); background: var(--card); box-shadow: 10px 10px 0 var(--ink); min-width: 0; }
.order-form { padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; }
.order-success { padding: clamp(28px, 3.4vw, 48px); }
.order-success:focus { outline: none; }
.success-mark { width: 56px; height: 56px; border: var(--line); background: var(--lime); display: grid; place-items: center; font-size: 24px; }
.success-title { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; margin: 22px 0 0; }
.success-text { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 14px 0 26px; }
.success-text strong { color: var(--ink); }
.order-success .btn-outline { letter-spacing: 0.1em; padding: 13px 20px; }
.order-success .btn-outline:hover { background: var(--ink); color: var(--paper); }

.ref-chip { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--lime); border: var(--line); padding: 10px 12px 10px 14px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.ref-clear { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; background: transparent; border: var(--line); padding: 6px 10px; min-height: 36px; cursor: pointer; }
.ref-clear:hover { background: var(--ink); color: var(--lime); }
.alert { border: var(--line); padding: 14px 16px; }
.alert-error { background: var(--error-bg); }
.alert-warn { background: var(--warn-bg); padding: 13px 16px; font-size: 14.5px; font-weight: 600; }
.alert-title { margin: 0; font-size: 14.5px; line-height: 1.55; font-weight: 600; }
.alert-contacts { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; }

.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; border: var(--line); border-radius: 0; background: #FFFFFF;
  padding: 14px 15px; font-size: 16px; outline-offset: 2px;
}
.field textarea { resize: vertical; font-family: var(--body); line-height: 1.5; }
.field input, .field textarea, .field select, .consent-label input { scroll-margin-top: calc(var(--header-h) + 56px); scroll-margin-bottom: 24px; }
.field input::placeholder, .field textarea::placeholder { color: #8D8778; }
.field-hint { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.field-error { font-size: 13px; font-weight: 600; }
.consent { display: grid; gap: 8px; }
.consent-label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; min-height: 44px; }
.consent-label input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--orange); flex-shrink: 0; cursor: pointer; }
.submit-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-submit { min-height: 56px; }
.btn-submit:disabled { cursor: progress; }
.btn-submit:disabled:hover { background: var(--orange); }
.spinner { width: 14px; height: 14px; border: 2px solid var(--ink); border-top-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.sending-text { font-size: 14px; color: var(--text-2); }
.form-note { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- подвал ---------- */
.site-footer { background: var(--ink); color: var(--paper); border-top: var(--line); }
.footer-inner { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(24px, 3vw, 48px); }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; }
.footer-tag { font-size: 15px; line-height: 1.55; color: var(--dark-text); margin: 12px 0 0; max-width: 34ch; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer-col a { color: var(--dark-text-2); text-decoration: none; justify-self: start; }
.footer-col a:hover { color: var(--lime); }
.footer-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-muted); }
.footer-operator { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--dark-muted); }
.footer-col .footer-policy { border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; }
.footer-bottom { border-top: 1.5px solid var(--dark-line); margin-top: clamp(28px, 3vw, 44px); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--dark-muted); }

/* ---------- окно работы ---------- */
.work-dialog { padding: 0; border: var(--line); background: var(--paper); color: var(--ink); width: min(1060px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); overflow: auto; }
.work-dialog::backdrop { background: rgba(10, 9, 6, 0.82); }
.work-dialog-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.work-dialog-media { background: var(--stripes-dark); min-height: 280px; display: grid; place-items: center; }
.work-dialog-media video { display: block; width: 100%; max-height: 75vh; background: #0A0906; }
.work-dialog-body { padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.work-dialog-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.work-chips { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.chip { border: var(--line); padding: 4px 7px; }
.chip:empty { display: none; }
.chip-lime { background: var(--lime); }
.icon-btn { background: transparent; border: var(--line); width: 44px; height: 44px; cursor: pointer; flex-shrink: 0; font-size: 15px; }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.work-dialog-title { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.work-dialog-text { font-size: 15.5px; line-height: 1.55; margin: 6px 0 0; color: var(--text-2); white-space: pre-line; }
.work-dialog-order { margin-top: auto; align-self: flex-start; }
.work-dialog-order:hover { background: var(--ink); color: var(--lime); }
.work-dialog-note { font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- правовая страница и ошибки ---------- */
.legal-header-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; max-width: 1100px; padding-top: 14px; padding-bottom: 14px; }
.btn-back { margin-left: auto; font-size: 12px; letter-spacing: 0.1em; padding: 13px 18px; }
.legal-main { max-width: 1100px; padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); }
.legal-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.035em; margin: 16px 0 0; max-width: 20ch; }
.legal-layout { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); align-items: flex-start; }
.legal-toc { flex: 1 1 min(100%, 220px); display: grid; gap: 9px; align-self: flex-start; }
.legal-toc a { font-size: 14px; text-decoration: none; border-bottom: 1px solid #DAD5C6; padding: 4px 0 7px; }
.legal-article { flex: 2.6 1 min(100%, 380px); min-width: 0; }
.legal-section { scroll-margin-top: calc(var(--header-h) + 16px); border-top: var(--line); padding: clamp(20px, 2.6vw, 30px) 0; }
.legal-section-head { display: flex; gap: 16px; align-items: baseline; }
.legal-n { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--orange); flex-shrink: 0; }
.legal-section h2 { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.legal-section p { font-size: 16px; line-height: 1.65; color: #29261F; margin: 14px 0 0; max-width: 76ch; }
.legal-section ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 7px; }
.legal-section li { font-size: 15.5px; line-height: 1.6; color: #29261F; max-width: 74ch; }
.legal-version { font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--muted); border-top: var(--line); padding-top: 18px; margin: 0; }
.gap { background: var(--warn-bg); color: var(--ink); padding: 0 3px; outline: 1px dashed var(--muted); }
.legal-footer-inner { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); font-family: var(--mono); font-size: 11px; color: var(--dark-muted); }
.error-page { padding-top: clamp(48px, 10vw, 140px); padding-bottom: clamp(48px, 10vw, 140px); }
.result-page { max-width: 760px; padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(48px, 8vw, 110px); display: grid; gap: 28px; }
.result-card { flex: none; }
.result-list { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.result-page .alert + .success-text, .result-list + .success-text { margin-top: 18px; }
.error-text { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 18px 0 28px; }

/* ---------- правовые мелочи ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.footer-col .footer-link-btn { color: var(--dark-text-2); text-decoration: none; justify-self: start; }
.footer-col .footer-link-btn:hover { color: var(--lime); }
.legal-intro { font-size: 17px; line-height: 1.6; color: #29261F; max-width: 76ch; margin: 22px 0 0; }

.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 95; max-width: 520px; width: calc(100% - 32px);
  background: var(--paper); border: var(--line); box-shadow: 6px 6px 0 var(--ink); padding: 16px 18px; display: grid; gap: 12px;
}
.cookie-text { margin: 0; font-size: 14px; line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- чат ---------- */
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 18px; background: var(--orange); color: var(--ink); border: var(--line);
  box-shadow: 4px 4px 0 var(--ink); font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; cursor: pointer;
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
}
.chat-launcher:hover { background: var(--lime); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.chat-launcher svg { width: 20px; height: 20px; flex-shrink: 0; }
.chat-badge { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; background: var(--ink); color: var(--lime); font-size: 11px; }
.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 91; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: var(--paper); border: var(--line); box-shadow: 8px 8px 0 var(--ink);
}
.chat-head { background: var(--ink); color: var(--paper); padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 10px; }
.chat-head-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.chat-title { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; margin: 0; }
.chat-status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.chat-head-btn {
  min-height: 36px; padding: 6px 10px; background: transparent; color: var(--dark-text); border: 1.5px solid var(--dark-line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; cursor: pointer;
}
.chat-head-btn:hover { color: var(--paper); border-color: var(--paper); }
.chat-head-btn.icon { width: 36px; padding: 0; font-size: 14px; }
.chat-head :focus-visible { outline-color: var(--lime); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-msg { max-width: 86%; padding: 10px 13px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; border: 1.5px solid var(--ink); }
.chat-msg.from-user { align-self: flex-end; background: var(--ink); color: var(--paper); }
.chat-msg.from-assistant { align-self: flex-start; background: var(--card); }
.chat-msg.from-operator { align-self: flex-start; background: #F0F7C8; }
.chat-msg-label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; white-space: normal; }
.chat-system { align-self: center; max-width: 92%; text-align: center; font-family: var(--mono); font-size: 11px; line-height: 1.55; color: var(--muted); padding: 2px 6px; }
.chat-action { align-self: flex-start; max-width: 86%; display: grid; gap: 6px; border: 1.5px dashed var(--muted); padding: 10px 12px; }
.chat-action-note { font-family: var(--mono); font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.chat-typing { align-self: flex-start; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.chat-typing::after { content: '…'; animation: chat-dots 1.2s steps(3, end) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes chat-dots { from { width: 0; } to { width: 1.2em; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip { min-height: 36px; padding: 7px 11px; background: transparent; border: 1.5px solid var(--ink); font-size: 13px; cursor: pointer; text-align: left; }
.chat-chip:hover { background: var(--lime); }
.chat-card { border: var(--line); background: var(--card); padding: 14px; display: grid; gap: 10px; }
.chat-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.chat-card input[type='text'] { width: 100%; min-height: 44px; border: var(--line); border-radius: 0; background: #FFFFFF; padding: 10px 12px; font-size: 16px; }
.chat-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.chat-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); flex-shrink: 0; }
.chat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-foot { border-top: var(--line); padding: 10px; display: grid; gap: 6px; background: var(--paper); }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input { flex: 1; min-height: 44px; max-height: 140px; resize: none; border: var(--line); border-radius: 0; background: #FFFFFF; padding: 10px 12px; font-size: 16px; line-height: 1.4; font-family: var(--body); }
.chat-send { min-height: 44px; min-width: 44px; padding: 0 14px; background: var(--orange); border: var(--line); font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; cursor: pointer; }
.chat-send:hover { background: var(--lime); }
.chat-send:disabled { opacity: 0.55; cursor: default; }
.chat-disclaimer { font-family: var(--mono); font-size: 10px; line-height: 1.5; color: var(--muted); }

@media (max-width: 560px) {
  .chat-panel { inset: 0; width: 100%; height: 100%; max-height: none; border: 0; box-shadow: none; }
  .chat-launcher { right: 14px; bottom: 14px; padding: 12px 14px; }
  .cookie-banner { left: 8px; bottom: 8px; width: calc(100% - 16px); box-shadow: 4px 4px 0 var(--ink); }
}

/* ---------- широкие экраны: липкие заголовки в боковой колонке ---------- */
@media (min-width: 900px) {
  .faq-inner .h2 { position: sticky; top: calc(var(--header-h) + 24px); }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 18px); }
}

/* ---------- телефон (макет «Мобильная версия», 390 × 844) ---------- */
@media (max-width: 720px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-top: 10px; padding-bottom: 2px; }
  .brand { flex-direction: column; gap: 3px; align-self: center; }
  .brand-desc { font-size: 9px; }
  .btn-header { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; margin-left: 0; flex-wrap: nowrap; justify-content: space-between; gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .price-badge { align-self: flex-start; }
  .hero-media { flex-basis: 100%; max-width: none; grid-template-columns: 1.25fr 1fr; }
  .frame-tall { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .order-card { box-shadow: 6px 6px 0 var(--ink); }
  .btn-submit { width: 100%; }
  .submit-row { flex-direction: column; align-items: stretch; }
  .faq-a { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
}
