/* =========================================================
   neme5web — base styles
   ========================================================= */
:root {
  --bg: #070707;
  --bg-2: #0e0e0f;
  --panel: #121214;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f0ee;
  --muted: #8d8a87;
  --red: #ff2a1f;
  --red-deep: #c20d06;
  --red-glow: rgba(255, 42, 31, 0.45);
  --logo: #941111;  /* цвет знака из логотипа */

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

/* В Unbounded и Manrope нет кыргызских ң/ө/ү — на /ky/ свои шрифты (подключаются в base.html) */
html[lang="ky"] {
  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "Onest", system-ui, sans-serif;
  --f-mono: "Fira Code", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.1; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--red); }

/* film grain */
.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  padding: 15px 28px; border-radius: 999px; border: 1px solid var(--red);
  background: var(--red); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px var(--red-glow); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--red); box-shadow: none; }
.btn--small { padding: 10px 20px; font-size: 14px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-weight: 600; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.nav .logo-mark { height: 38px; }
.logo-mark { height: 26px; width: auto; flex: none; color: var(--logo); filter: drop-shadow(0 0 10px rgba(255, 42, 31, .35)); transition: filter .3s; }
.logo:hover .logo-mark { filter: drop-shadow(0 0 14px rgba(255, 42, 31, .6)); }
.logo--small .logo-mark { height: 18px; }
.logo__five { color: var(--red); }
.logo--small { font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 7, 7, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line); padding-top: 12px; padding-bottom: 12px;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; }
.nav__links a { color: var(--muted); transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; }

/* ---------- переключатель языков ---------- */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--f-mono); font-size: 12px; }
.lang__item { padding: 5px 9px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; line-height: 1; }
.lang__item:hover { color: var(--text); }
.lang__item.is-active { background: var(--red); color: #fff; }

/* ---------- section heads ---------- */
.section-head { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; margin-bottom: 48px; }
.section-head__num { font-family: var(--f-mono); color: var(--red); font-size: 14px; }
.section-head__title { font-size: clamp(32px, 5vw, 56px); letter-spacing: -.02em; }
.section-head__text { grid-column: 2; color: var(--muted); margin-top: 12px; max-width: 460px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 120px 0 40px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 15% 50%, rgba(7,7,7,.92) 0%, rgba(7,7,7,.4) 55%, transparent 80%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__content > * { max-width: 640px; }
html[lang="ky"] .hero__title { letter-spacing: -.02em; }
.hero__title { font-size: clamp(36px, 4.6vw, 68px); letter-spacing: -.035em; margin: 24px 0 28px; font-weight: 800; }
.caret { color: var(--red); animation: blink 1s steps(1) infinite; font-weight: 500; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { max-width: 480px; color: #b8b4b0; font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats { position: relative; z-index: 2; display: flex; gap: clamp(24px, 6vw, 72px); margin-top: auto; padding-top: 64px; }
.hero__stats div { display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); padding-left: 16px; }
.hero__stats b { font-family: var(--f-display); font-size: 28px; }
.hero__stats span { color: var(--muted); font-size: 13px; }

.scroll-hint { position: absolute; z-index: 2; right: var(--gutter); bottom: 40px; width: 26px; height: 42px; border: 1px solid var(--line-strong); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--red); border-radius: 2px; animation: scroll 1.8s var(--ease) infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   WORKS / PORTAL
   ========================================================= */
.works { position: relative; padding: 140px 0 120px; }
.works__layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; }

.portal { position: relative; aspect-ratio: 16 / 11; }
.portal__canvas { position: absolute; inset: -6%; width: 112%; height: 112%; }
.portal__controls { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.portal__counter b { color: var(--text); }
.portal__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(7,7,7,.6); transition: border-color .2s, color .2s; }
.portal__arrow:hover { border-color: var(--red); color: var(--red); }

.works__list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.works__item { border-bottom: 1px solid var(--line); }
.works__item button {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 4px;
  background: none; border: 0; text-align: left; color: var(--muted); transition: color .25s, padding .3s var(--ease);
}
.works__item button:hover { color: var(--text); }
.works__item-num { font-family: var(--f-mono); font-size: 12px; }
.works__item-name { font-family: var(--f-display); font-size: 18px; font-weight: 500; flex: 1; }
.works__item-arrow { opacity: 0; transform: translateX(-8px); transition: .3s var(--ease); color: var(--red); }
.works__item.is-active button { color: var(--text); padding-left: 12px; }
.works__item.is-active .works__item-num { color: var(--red); }
.works__item.is-active .works__item-arrow { opacity: 1; transform: none; }

.project-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,42,31,.06), transparent 40%), var(--panel); }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { font-family: var(--f-mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.tag--live { border-color: rgba(255,42,31,.5); color: var(--red); }
.project-card__title { font-size: 24px; margin-bottom: 10px; }
.project-card__desc { color: #b8b4b0; font-size: 15px; min-height: 4.8em; }
.project-card__meta { display: grid; gap: 8px; margin: 20px 0 24px; font-size: 14px; }
.project-card__meta div { display: grid; grid-template-columns: 64px 1fr; }
.project-card__meta dt { color: var(--muted); font-family: var(--f-mono); font-size: 12px; padding-top: 2px; }
.project-card__meta dd { margin: 0; }
.project-card__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.project-card__soon { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.project-card.is-switching { opacity: 0; transform: translateY(8px); }
.project-card { transition: opacity .3s, transform .3s var(--ease); }

/* =========================================================
   PROCESS / LAYERS
   ========================================================= */
.process { position: relative; height: 420vh; }
.process__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.process__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.process__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.process__inner .section-head { margin-bottom: 32px; }

.steps { list-style: none; margin: 0; padding: 0; max-width: 400px; display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 0 12px 16px; border-left: 2px solid var(--line); transition: border-color .4s, opacity .4s; opacity: .38; }
.step h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.step__num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.step.is-active { opacity: 1; border-color: var(--red); }
.step.is-active .step__num { color: var(--red); }
.step.is-active p { max-height: 120px; }

/* =========================================================
   CONTACTS
   ========================================================= */
.contacts { position: relative; padding: 160px 0 120px; overflow: hidden; }
.contacts__glow {
  position: absolute; left: 50%; top: 58%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,42,31,.22) 0%, rgba(194,13,6,.08) 35%, transparent 65%);
  filter: blur(20px); pointer-events: none; animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .8; } }
.contacts__inner { position: relative; }
.contacts__title { font-size: clamp(28px, 4vw, 52px); letter-spacing: -.03em; margin-bottom: 20px; }
.contacts__lead { color: #b8b4b0; max-width: 520px; margin-bottom: 40px; }
.contacts__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; min-height: 112px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,18,20,.7); backdrop-filter: blur(6px);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.contact:hover { border-color: rgba(255,42,31,.6); transform: translateY(-4px); box-shadow: 0 20px 60px -20px var(--red-glow), inset 0 0 30px -12px var(--red-glow); }
.contact__label { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact__value { font-weight: 700; font-size: 17px; margin-top: auto; word-break: break-all; }
.contact__arrow { position: absolute; top: 20px; right: 22px; color: var(--red); transition: transform .3s var(--ease); }
.contact:hover .contact__arrow { transform: translate(3px, -3px); }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); }

.empty { color: var(--muted); }

/* =========================================================
   PROJECT CARD · rating
   ========================================================= */
.project-card__rating { font-family: var(--f-mono); font-size: 13px; color: var(--text); border-bottom: 1px dashed rgba(255,42,31,.6); padding-bottom: 1px; transition: color .2s; }
.project-card__rating:hover { color: var(--red); }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { position: relative; padding: 140px 0 40px; }
.reviews__grid { columns: 3 320px; column-gap: 18px; }
.review {
  break-inside: avoid; margin: 0 0 18px; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255,42,31,.05), transparent 45%), var(--panel);
  transition: border-color .4s, box-shadow .4s;
}
.review.is-highlight { border-color: rgba(255,42,31,.6); box-shadow: 0 0 40px -14px var(--red-glow); }
.review__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.review__stars { color: var(--red); letter-spacing: 2px; font-size: 15px; }
.review__project { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-align: right; }
.review__text { margin: 0 0 20px; color: #d9d5d1; font-size: 15px; line-height: 1.65; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__author b { display: block; font-size: 14px; }
.review__author small { display: block; color: var(--muted); font-size: 12px; }
.review__avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 15px; background: rgba(255,42,31,.12); color: var(--red); border: 1px solid rgba(255,42,31,.35);
}
.reviews__empty {
  position: relative; padding: 48px 32px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted); text-align: center; overflow: hidden;
}
.reviews__empty-quote { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font-family: var(--f-display); font-size: 160px; line-height: 1; color: rgba(255,42,31,.12); }
.reviews__empty p { position: relative; }

/* =========================================================
   FORMS
   ========================================================= */
.contacts__layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.form {
  display: grid; gap: 18px; padding: 32px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: rgba(14,14,16,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.form__title { font-family: var(--f-display); font-size: 20px; margin: 0 0 4px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field__label i { text-transform: none; font-style: normal; opacity: .7; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: #0a0a0b; color: var(--text); font: inherit; font-size: 15px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #55514e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,42,31,.15); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field__error { color: var(--red); font-size: 13px; min-height: 0; }
.field__error:empty { display: none; }
.form__submit { justify-content: center; margin-top: 4px; }
.form__submit:disabled { opacity: .6; cursor: wait; }
.form__status { font-size: 14px; min-height: 0; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #7be08f; }
.form__status.is-error { color: var(--red); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

/* звёзды-рейтинг: в DOM 5→1, визуально 1→5 */
.rating__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating__stars input { position: absolute; opacity: 0; pointer-events: none; }
.rating__stars label { font-size: 34px; line-height: 1; color: #3a3735; cursor: pointer; transition: color .15s, transform .15s; }
.rating__stars label:hover, .rating__stars label:hover ~ label,
.rating__stars input:checked ~ label { color: var(--red); }
.rating__stars label:hover { transform: scale(1.12); }
.rating__stars input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* =========================================================
   REVIEW PAGE
   ========================================================= */
.review-page { position: relative; min-height: 100vh; min-height: 100svh; padding: 140px 0 80px; overflow: hidden; }
.review-page__glow {
  position: absolute; left: 50%; top: 20%; width: min(1000px, 160vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,42,31,.18) 0%, transparent 60%); pointer-events: none; filter: blur(20px);
}
.review-page__inner { position: relative; max-width: 680px; }
.review-page__intro { margin-bottom: 32px; }
.review-page__title { font-size: clamp(32px, 6vw, 56px); letter-spacing: -.03em; margin: 18px 0 10px; }
.review-page__meta { color: var(--muted); }
.review-page__meta a { color: var(--text); border-bottom: 1px solid rgba(255,42,31,.5); }
.review-form__lead { color: #b8b4b0; font-size: 15px; }
.review-state { display: grid; justify-items: start; gap: 14px; padding: 40px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(14,14,16,.82); }
.review-state h2 { font-size: 28px; }
.review-state p { color: #b8b4b0; margin-bottom: 8px; }
.review-state__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--red); color: #fff; box-shadow: 0 0 40px -6px var(--red-glow); }
.review-state__icon--off { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); box-shadow: none; }
.review-state__code { font-family: var(--f-display); font-size: 72px; font-weight: 800; color: var(--red); line-height: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .works__layout { grid-template-columns: 1fr; }
  .portal { aspect-ratio: 16 / 11.5; margin: 0 -8px; }
  .process__inner { justify-content: flex-end; padding-bottom: 48px; }
  .steps { max-width: none; background: linear-gradient(to top, rgba(7,7,7,.95) 60%, transparent); padding-top: 24px; }
  .process__inner .section-head { margin-bottom: auto; padding-top: 96px; }
  .contacts__layout { grid-template-columns: 1fr; gap: 40px; }
  .nav__links { gap: 20px; }
}

@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav .logo-mark { height: 32px; }
  .nav__cta { display: none; }
  .lang { margin-left: auto; }
  .lang__item { padding: 5px 7px; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px; flex: none; width: 42px; height: 42px;
    border: 1px solid var(--line-strong); border-radius: 50%; background: transparent;
  }
  .nav__burger span { width: 16px; height: 1.5px; background: var(--text); transition: transform .3s; }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: rgba(7,7,7,.97); font-family: var(--f-display); font-size: 26px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links a { color: var(--text); }

  /* на телефоне окно-макет сверху, текст снизу */
  .hero { justify-content: flex-end; padding-bottom: 56px; }
  .hero__vignette { background: linear-gradient(to bottom, transparent 30%, rgba(7,7,7,.9) 48%, var(--bg)); }
  .hero__stats { display: none; }
  .scroll-hint { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__text { grid-column: 1; }
  .works { padding-top: 100px; }
  .project-card { padding: 22px; }
  .contacts__grid { grid-template-columns: 1fr; }
  .contact { min-height: 0; }
  .contact__value { margin-top: 6px; }
  .form { padding: 22px; }
  .reviews { padding-top: 100px; }
  .review { padding: 22px; }
  .review-page { padding-top: 110px; }
  .review-state { padding: 28px; }
  .process { height: 380vh; }
  .step p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* узкие ноутбуки: 4 пункта меню + языки + кнопка не помещаются */
@media (max-width: 1180px) and (min-width: 721px) {
  .nav { gap: 20px; }
  .nav__cta { display: none; }
}

/* ---------- согласие на обработку данных ---------- */
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__foot .form__submit { margin-top: 0; margin-left: auto; }
.form__submit:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.4); }
.consent { position: relative; display: flex; align-items: flex-start; gap: 10px; flex: 1 1 220px; cursor: pointer; font-size: 13px; line-height: 1.45; color: #b8b4b0; }
.consent input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.consent__box { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1px solid var(--line-strong); background: #0a0a0b; transition: background .2s, border-color .2s, box-shadow .2s; position: relative; }
.consent__box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .15s; }
.consent input:checked + .consent__box { background: var(--red); border-color: var(--red); }
.consent input:checked + .consent__box::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 3px rgba(255,42,31,.3); }
.consent a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,42,31,.6); text-underline-offset: 3px; }
.consent a:hover { color: var(--red); }
.consent.has-error .consent__box { border-color: var(--red); }

/* ---------- страница условий ---------- */
.legal-page { max-width: 780px; }
.legal { margin: 8px 0 40px; color: #c9c5c1; font-size: 15px; line-height: 1.7; }
.legal__date { color: var(--muted); font-family: var(--f-mono); font-size: 12px; margin-bottom: 24px; }
.legal h2 { font-size: 18px; margin: 32px 0 10px; color: var(--text); letter-spacing: -.01em; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--red); }
.legal a { color: var(--text); text-decoration-color: rgba(255,42,31,.6); text-underline-offset: 3px; }
.legal b { color: var(--text); }
@media (max-width: 720px) {
  .form__foot .form__submit { width: 100%; margin-left: 0; }
}

/* ---------- этапы hero: код → сайт → neme5web ---------- */
.hero__stages {
  position: absolute; z-index: 2; right: calc(var(--gutter) + 64px); bottom: 44px;
  display: flex; gap: 22px; margin: 0; padding: 0; list-style: none;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.hero__stages li { display: flex; align-items: center; gap: 8px; color: var(--muted); opacity: .45; transition: opacity .5s, color .5s; }
.hero__stages li span { color: var(--red); }
.hero__stages li::after { content: '→'; margin-left: 14px; color: var(--muted); opacity: .6; }
.hero__stages li:last-child::after { content: none; }
.hero__stages li.is-active { opacity: 1; color: var(--text); }
.hero__stages li.is-done { opacity: .7; }
@media (max-width: 720px) {
  .hero__stages { right: 0; left: 0; bottom: auto; top: 37svh; justify-content: center; gap: 14px; font-size: 11px; }
  .hero__stages li::after { margin-left: 8px; }
}

/* ---------- отзыв клиента в карточке работы ---------- */
.project-card__review { margin: 0; min-height: 4.8em; }
.project-card__review[hidden], .project-card__desc[hidden] { display: none; }
.project-card__review-label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.project-card__review-label .stars { color: var(--red); letter-spacing: 2px; font-size: 13px; font-family: var(--f-body); }
.project-card__review blockquote {
  position: relative; margin: 0 0 10px; padding-left: 16px; border-left: 2px solid var(--red);
  color: #e2ddd8; font-size: 15px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card__review figcaption { font-size: 13px; color: var(--muted); padding-left: 18px; }
.project-card__review figcaption b { color: var(--text); font-weight: 600; }
