/* Лендинг «Приметно» по макету v1. Размеры сняты с макета (1024 px) и пересчитаны на 1440 px. */

@font-face {
  font-family: "Primetno Roboto";
  src: url("../fonts/roboto-var-cyr-lat.woff2") format("woff2-variations"),
       url("../fonts/roboto-var-cyr-lat.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --f: "Primetno Roboto", Roboto, "Helvetica Neue", Arial, sans-serif;
  --graphite: #1a1e1f;
  --graphite-2: #0b0f10;
  --footer: #1c2124;
  --ink: #101214;
  --text: #24272a;
  --muted: #5d6062;
  --paper: #f2efe9;      /* работы */
  --paper-2: #f7f4ef;    /* админка */
  --paper-3: #ece8df;    /* как работаем — полоса чуть темнее */
  --paper-4: #f6f2ec;    /* цены */
  --paper-5: #f4f1ea;    /* вопросы */
  --line: #a4a09a;
  --line-soft: #d6d3cc;
  --cream: #fffdf8;
  --orange: #f9712b;     /* кнопки */
  --orange-2: #ef6127;   /* полоса заявки */
  --orange-ink: #b8461a; /* оранжевый для текста на светлом */
  --wrap: 1320px;
  --pad: clamp(16px, 4.17vw, 60px);
  --hdr-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 8px); }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--orange); color: #111; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }

/* Типографика */
.h2 {
  font-weight: 900;
  font-stretch: 80%;
  font-size: clamp(32px, 3.55vw, 51px);
  line-height: .98;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.h3 { font-weight: 900; font-stretch: 84%; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.lead { font-size: clamp(17px, 1.32vw, 19px); line-height: 1.38; color: var(--muted); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; padding: 0 22px;
  font-family: var(--f); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .005em;
  border: 0; border-radius: 2px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--acc { background: var(--orange); color: #15181a; }
.btn--acc:hover { background: #ff8340; }
.btn--acc:active { transform: translateY(1px); }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn--dark { background: #161b1e; color: #fff; }
.btn--dark:hover { background: #262c30; }
.lnk { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--graphite); color: #ebe7e0; }
.hdr__in { height: var(--hdr-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 22px; color: var(--cream); text-decoration: none; flex: none; }
.logo__mark { width: 30px; height: 35px; fill: currentColor; flex: none; }
.logo__word { font-size: 24px; font-weight: 800; letter-spacing: -0.012em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: clamp(40px, 10.7vw, 152px); }
.nav a, .hdr__link { font-size: 15px; color: #e6e2db; text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav a:hover, .hdr__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hdr__r { display: flex; align-items: center; gap: 40px; margin-left: auto; }
.hdr__cta { width: 136px; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #f1ede6; transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu { background: var(--graphite); border-top: 1px solid rgba(255,255,255,.08); }
.menu__in { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 24px; }
.menu__in > a:not(.btn) { padding: 13px 0; font-size: 22px; font-weight: 700; font-stretch: 88%; color: #f3efe8; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.menu__contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 0 20px; font-size: 16px; color: #d9d5ce; }
.menu__contacts a { color: inherit; }
.menu__cta { height: 52px; font-size: 16px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; background: var(--graphite-2); color: var(--cream); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,11,12,.94) 0%, rgba(8,11,12,.86) 26%, rgba(8,11,12,.42) 50%, rgba(8,11,12,.06) 70%, rgba(8,11,12,.18) 100%),
    linear-gradient(0deg, rgba(8,11,12,.62) 0%, rgba(8,11,12,0) 34%),
    linear-gradient(180deg, rgba(8,11,12,.5) 0%, rgba(8,11,12,0) 22%);
}
.hero::after { /* зерно плёнки */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 650px) minmax(0, 1fr); gap: 16px; align-items: center;
  min-height: 600px; padding-top: 58px; padding-bottom: 54px;
}
.hero__title {
  font-weight: 900; font-stretch: 78%;
  font-size: clamp(40px, 5.78vw, 84px);
  line-height: .82; letter-spacing: -0.006em;
  color: var(--cream);
}
.hero__title span { display: block; }
.hero__sub { margin-top: 30px; max-width: 620px; font-size: 21px; line-height: 1.3; color: #e4dfd7; }
.hero__deal { margin-top: 10px; font-size: 21px; line-height: 1.3; font-weight: 500; color: var(--cream); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; }
.hero__more { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: #efeae2; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid rgba(255,253,248,.35); transition: border-color .2s; }
.hero__more:hover { border-color: var(--orange); }
.hero__more svg { width: 24px; height: 12px; transform: rotate(90deg); }

.hero__stage { position: relative; height: 488px; perspective: 1900px; perspective-origin: 20% 40%; }
.hero__glow {
  position: absolute; left: 4%; right: -6%; bottom: 0; height: 46%;
  background: radial-gradient(52% 58% at 56% 64%, rgba(249,113,43,.30), rgba(249,113,43,0) 70%);
  filter: blur(10px); pointer-events: none;
}
.hero__stage > .hero__laptop {
  position: absolute; left: 3%; top: 22px; width: 88%; max-width: 640px;
  transform: rotateY(10deg) rotateX(3deg);
  transform-origin: 30% 60%;
  filter: drop-shadow(0 34px 34px rgba(0,0,0,.5));
  animation: devIn 1.1s cubic-bezier(.2,.7,.2,1) .15s both;
}
.hero__stage > .hero__phone {
  position: absolute; right: 0; bottom: 6px; width: 22%; max-width: 150px;
  transform: rotateY(-14deg) rotateZ(1.5deg);
  filter: drop-shadow(0 26px 26px rgba(0,0,0,.55));
  animation: phoneIn 1.1s cubic-bezier(.2,.7,.2,1) .4s both;
}
.hero__note { position: absolute; right: 0; bottom: -4px; font-size: 13px; letter-spacing: .01em; color: rgba(241,236,228,.62); }
.hero__note a { color: #efeae2; text-decoration: underline; text-decoration-color: rgba(255,253,248,.35); text-underline-offset: 3px; }
.hero__note a:hover { text-decoration-color: var(--orange); }
.hero__niches { margin-top: 28px; max-width: 600px; font-size: 15px; line-height: 1.55; color: rgba(241,236,228,.66); }
.hero__niches a { color: #efeae2; text-decoration: underline; text-decoration-color: rgba(255,253,248,.28); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.hero__niches a:hover { text-decoration-color: var(--orange); }
.hero__niches .hero__all { white-space: nowrap; font-weight: 600; color: var(--cream); text-decoration-color: var(--orange); }
@keyframes devIn { from { opacity: 0; transform: translateY(40px) rotateY(18deg) rotateX(6deg); } to { opacity: 1; transform: rotateY(10deg) rotateX(3deg); } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotateY(-22deg) rotateZ(4deg); } to { opacity: 1; transform: rotateY(-14deg) rotateZ(1.5deg); } }
.hero__text > * { animation: txtIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .14s; }
.hero__text > :nth-child(4) { animation-delay: .2s; }
.hero__text > :nth-child(5) { animation-delay: .26s; }
@keyframes txtIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Устройства ---------- */
.dev-laptop { position: relative; }
.dev-laptop__lid {
  position: relative;
  padding: 2.4% 2.4% 3.4%;
  background: linear-gradient(180deg, #17191b, #0b0c0d);
  border-radius: 13px 13px 3px 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), inset 0 0 0 2px #050606;
}
.dev-laptop__lid::before { content: ""; position: absolute; top: 1.05%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2c3034; }
.dev-laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0e0f; border-radius: 2px; }
.dev-laptop__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.dev-laptop__screen::after, .dev-phone__screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 34%, rgba(255,255,255,0) 35%); }
.dev-laptop__base {
  position: relative; height: 0; padding-top: 3.1%; margin: 0 -6.2%;
  background: linear-gradient(180deg, #e2e3e4 0%, #b9bcbf 30%, #8b8f93 72%, #5a5e62 100%);
  border-radius: 1px 1px 50% 50% / 1px 1px 100% 100%;
}
.dev-laptop__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 15%; height: 42%; transform: translateX(-50%); background: linear-gradient(180deg, #8d9195, #b6b9bc); border-radius: 0 0 7px 7px; }

.dev-phone {
  position: relative; padding: 3.4%;
  background: #0a0b0c; border-radius: 15% / 7.2%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 2.5px #050505, 0 1px 0 rgba(255,255,255,.04);
}
.dev-phone__screen {
  position: relative; overflow: hidden; background: #0d0e0f;
  aspect-ratio: 390 / 844; border-radius: 12% / 5.6%;
  padding-top: 11%;
}
.dev-phone__screen::before { /* строка состояния + «островок» */
  content: ""; position: absolute; z-index: 1; top: 3.4%; left: 50%; width: 31%; height: 0; padding-top: 8.4%; transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.dev-phone__screen img { width: 100%; height: auto; }
.hs { position: relative; height: 100%; }
.dev-phone__screen .hs { height: auto; }
.hs img { transition: opacity .9s ease; }
.hs img + img { position: absolute; left: 0; top: 0; }
.hs img.off { opacity: 0; }

/* ---------- Работы ---------- */
.works { background: var(--paper); padding: 50px 0 60px; overflow-x: clip; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.sec-head__aside { max-width: 392px; margin-top: 6px; font-size: 16px; line-height: 1.42; color: #2c2f31; }
.works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 40px; }
.work { display: flex; flex-direction: column; }
.work__media { position: relative; display: block; padding: 0 8% 6% 2.5%; text-decoration: none; }
.work__media .dev-laptop { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work__media .dev-phone { position: absolute; right: 0; bottom: 0; width: 23%; filter: drop-shadow(0 16px 18px rgba(20,16,10,.28)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work:hover .work__media .dev-laptop { transform: translateY(-4px); }
.work:hover .work__media .dev-phone { transform: translateY(-8px); }
.work__cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 16px; }
.work__name { font-size: 26px; font-weight: 800; font-stretch: 88%; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
.work__what { margin-top: 5px; font-size: 16px; line-height: 1.3; color: #33363a; }
.work__go { display: inline-flex; align-items: center; gap: 10px; flex: none; padding-bottom: 3px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(16,18,20,.25); transition: border-color .2s, gap .2s; }
.work__go svg { width: 24px; height: 12px; }
.work__go:hover { border-color: var(--orange); gap: 14px; }

/* ---------- Ещё ниши ---------- */
.niches { background: var(--paper); padding: 0 0 64px; }
.niches__head { display: flex; align-items: center; gap: 28px; }
.niches__rule { flex: 1; height: 1px; background: var(--line); }
.niches__tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 18px; }
.niches__tabs[hidden] { display: none; }
.niches__tabs button { font: inherit; font-size: 16px; font-weight: 500; color: #45484b; background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 0 5px; cursor: pointer; transition: color .2s, border-color .2s; }
.niches__tabs button span { margin-left: 6px; font-size: 12px; font-weight: 600; color: #8a8d90; vertical-align: 2px; }
.niches__tabs button:hover { color: var(--ink); }
.niches__tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--orange); }
.niche[hidden] { display: none; }
.niches__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 32px; margin-top: 28px; }
.niche { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.niche__media { position: relative; padding: 0 9% 9.5% 3.4%; }
.niche__media .dev-phone { position: absolute; right: 0; bottom: 0; width: 26.5%; }
.niche__txt { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.niche__name { font-size: 21px; font-weight: 800; font-stretch: 88%; line-height: 1.1; }
.niche__note { margin-top: 4px; font-size: 15px; color: #45484b; }
.niche__go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 1px solid rgba(16,18,20,.25); padding-bottom: 2px; }
.niche__go svg { width: 22px; height: 12px; }
.niche--plain { justify-content: space-between; min-height: 150px; padding: 22px 22px 18px; background: var(--paper-4); border: 1px solid var(--line-soft); transition: border-color .2s; }
.niche--plain:hover { border-color: var(--ink); }
.niche--plain .niche__name { font-size: 26px; }

/* ---------- Что сайт делает без вас ---------- */
.admin { background: var(--paper-2); padding-top: 24px; overflow: clip; border-top: 1px solid rgba(16,18,20,.05); }
.admin__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px); gap: 24px; }
.admin__text { padding: 4px 0 56px; }
.admin__tabs { display: flex; flex-direction: column; align-items: flex-start; margin-top: 26px; }
.admin__tabs button {
  position: relative; padding: 1px 0 5px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: clamp(19px, 1.62vw, 23px); line-height: 1.24; color: #6a6d70; transition: color .25s;
}
.admin__tabs button:hover { color: var(--ink); }
.admin__tabs button[aria-selected="true"] { color: var(--ink); }
.admin__tabs button i { position: absolute; left: 0; bottom: 2px; height: 2px; width: 0; background: var(--orange); }
.admin__tabs button[aria-selected="true"] i { width: 100%; }
.admin__tabs.is-auto button[aria-selected="true"] i { width: 0; animation: tabRun var(--tab-ms, 4800ms) linear forwards; }
@keyframes tabRun { to { width: 100%; } }
.admin__try { max-width: 420px; margin-top: 30px; font-size: 16px; line-height: 1.45; color: #45484b; }
.admin__try b { color: var(--ink); }
.admin__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 3px; transition: gap .2s; }
.admin__go:hover { gap: 14px; }
.admin__go svg { width: 24px; height: 12px; }
.admin__frame { align-self: end; height: 420px; overflow: hidden; }
.monitor { padding: 13px 13px 0; background: linear-gradient(180deg, #2a2f32, #1f2427); border-radius: 14px 14px 0 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.monitor__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eceae4; border-radius: 3px 3px 0 0; }
.monitor__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transition: opacity .55s ease; }
.monitor__screen img.is-on { opacity: 1; }

/* ---------- Как работаем ---------- */
.how { background: var(--paper-3); padding: 34px 0 42px; border-top: 1px solid rgba(16,18,20,.05); border-bottom: 1px solid rgba(16,18,20,.05); }
.how__head { display: flex; align-items: center; gap: 28px; }
.how__rule { flex: 1; height: 1px; margin-top: 6px; background: #7c7e7e; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 96px; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -74px; width: 46px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 12'%3E%3Cpath d='M0 6h44M38.5 1l5.5 5-5.5 5' fill='none' stroke='%23303335' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.step__t { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.step p { margin-top: 9px; font-size: 17px; line-height: 1.38; color: #3d4043; }

/* ---------- Цены ---------- */
.prices { background: var(--paper-4); padding: 34px 0 48px; }
.prices__in { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; }
.prices__text .lead { margin-top: 24px; max-width: 390px; }
.prices__pay { margin-top: 16px; max-width: 390px; font-size: 15px; line-height: 1.45; color: #55585b; }
.prices__pay a { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.ptable { border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr) 190px; gap: 28px; align-items: center; min-height: 64px; padding: 13px 6px 13px 18px; border-bottom: 1px solid var(--line); }
.prow__name { font-size: 23px; font-weight: 800; font-stretch: 90%; line-height: 1.12; letter-spacing: -0.006em; color: var(--ink); }
.prow__desc { max-width: 380px; font-size: 15px; line-height: 1.38; color: #3d4043; }
.prow__days { display: block; margin-top: 7px; font-size: 13px; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: #6a6d70; }
.prow__price { font-size: 31px; font-weight: 900; font-stretch: 86%; line-height: 1; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.prow__price small { font-size: 20px; font-weight: 800; letter-spacing: 0; }
.extras { grid-column: 2; margin-top: -8px; }
.extras__head { display: flex; align-items: baseline; gap: 18px; padding: 0 6px 12px 18px; border-bottom: 2px solid var(--ink); }
.extras__title { font-size: 23px; font-weight: 800; font-stretch: 90%; line-height: 1.12; color: var(--ink); }
.extras__price { font-size: 15px; font-weight: 600; color: var(--orange-ink, #b4461b); }
.extras__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.extra { padding: 14px 6px 14px 18px; border-bottom: 1px solid var(--line); }
.extra__name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.extra__desc { margin-top: 5px; font-size: 14.5px; line-height: 1.4; color: #4a4d50; }
.extras__note { margin-top: 18px; padding-left: 18px; max-width: 640px; font-size: 15px; line-height: 1.45; color: #3d4043; }
.extras__note a { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* ---------- Заявка ---------- */
.order { position: relative; background: var(--orange-2); color: #fff; padding: 30px 0 32px; overflow: clip; }
.order::before { /* лёгкая фактура, чтобы плашка не была плоской заливкой */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,140,80,.35), rgba(255,140,80,0) 55%), radial-gradient(90% 120% at 100% 100%, rgba(170,50,10,.22), rgba(170,50,10,0) 60%);
}
.order__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 800px); gap: 56px; align-items: center; }
.order__title { color: var(--cream); font-size: clamp(36px, 3.7vw, 54px); line-height: .9; }
.order__lead { margin-top: 18px; max-width: 470px; font-size: 19px; line-height: 1.32; font-weight: 400; color: #fffaf5; }
.order__title span { display: block; }
.order__alt { margin-top: 14px; font-size: 15px; color: #ffe9dc; }
.order__alt a { color: #fff; text-underline-offset: 3px; }

.form { position: relative; display: grid; grid-template-columns: minmax(0, 344fr) minmax(0, 436fr); grid-template-areas: "name company" "contact msg" "consent msg" "err err"; gap: 10px 16px; padding-bottom: 16px; }
.fld { display: block; margin: 0; }
.fld--name { grid-area: name; }
.fld--company { grid-area: company; }
.fld--contact { grid-area: contact; }
.fld--msg { grid-area: msg; display: flex; }
.fld input, .fld textarea {
  width: 100%; margin: 0; border: 0; border-radius: 2px; background: #f5f2eb; color: #15181a;
  font-family: var(--f); font-size: 16px; line-height: 1.35; font-weight: 400;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); transition: box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.fld input { height: 44px; padding: 0 16px; }
.fld--contact input { height: 50px; }
.fld textarea { min-height: 100px; padding: 13px 16px 34px; resize: none; }
/* вырез под кнопку: кнопка «врезается» в угол комментария, как в макете */
.fld--msg textarea { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 29px), calc(100% - 254px) calc(100% - 29px), calc(100% - 254px) 100%, 0 100%); }
.fld input::placeholder, .fld textarea::placeholder { color: #75777a; opacity: 1; }
.fld input:focus, .fld textarea:focus { outline: none; box-shadow: inset 0 0 0 2px #16191b; }
.fld .is-bad, .fld input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #16191b, inset 0 0 0 4px #f5f2eb; background: #fff; }
.consent { grid-area: consent; position: relative; display: flex; align-items: center; gap: 12px; align-self: center; padding-right: 8px; font-size: 13.5px; line-height: 1.3; color: #fff4ec; cursor: pointer; }
.consent input { position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; }
.consent__box { display: grid; place-items: center; width: 24px; height: 24px; flex: none; background: #f5f2eb; border-radius: 2px; color: #16191b; }
.consent__box svg { width: 14px; height: 11px; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.consent input:checked + .consent__box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__box { outline: 2px solid #16191b; outline-offset: 2px; }
.consent.is-bad .consent__box { box-shadow: 0 0 0 2px #16191b; }
.consent a { color: #fff; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__btn { position: absolute; right: 0; bottom: 0; z-index: 2; height: 46px; width: 244px; font-size: 15px; }
.form__btn[disabled] { cursor: progress; background: #2a3034; }
.form__btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__err { grid-area: err; justify-self: start; max-width: calc(100% - 270px); padding: 10px 14px; background: #16191b; color: #fff; font-size: 14.5px; line-height: 1.35; border-radius: 2px; }
.form__err a { color: #ffb48c; }
.form-done { padding: 26px 28px 24px; background: #16191b; color: #f3efe8; border-radius: 2px; outline: none; }
.form-done__t { font-size: 30px; font-weight: 900; font-stretch: 86%; line-height: 1; color: #fff; }
.form-done p:not(.form-done__t) { margin-top: 12px; max-width: 560px; font-size: 17px; line-height: 1.4; color: #dcd7cf; }
.form-done .lnk { margin-top: 16px; font-size: 15px; color: #ffb48c; }

/* ---------- Вопросы ---------- */
.faq { background: var(--paper-5); padding: 26px 0 40px; }
.faq__in { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 0; }
.faq__text .lead { margin-top: 20px; max-width: 400px; }
.faq__text .lead a { color: var(--ink); text-underline-offset: 3px; }
.faq__list { border-top: 1px solid var(--line-soft); }
.qa { border-bottom: 1px solid var(--line-soft); }
.qa summary { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 20px; gap: 24px; align-items: center; padding: 14px 6px 14px 22px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa__q { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.qa__q { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.qa__a { font-size: 15.5px; line-height: 1.4; color: #37393c; }
.qa__i { width: 14px; height: 9px; color: #222; transition: transform .25s ease; }
.qa[open] .qa__i { transform: rotate(180deg); }
.qa__more { padding: 0 50px 16px calc(22px + 300px + 24px); font-size: 15.5px; line-height: 1.45; color: #4b4e51; }
.qa__more a { color: var(--ink); text-underline-offset: 3px; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

/* ---------- Подвал ---------- */
.ftr { background: var(--footer); color: #e8e4dd; padding: 18px 0; }
.ftr__in { display: flex; align-items: center; gap: 46px; }
.logo--ftr .logo__mark { width: 30px; height: 35px; }
.ftr__legal { font-size: 15px; line-height: 1.4; color: #dcd8d1; }
.ftr__docs { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13px; }
.ftr__docs a { color: #a8a49d; text-underline-offset: 3px; }
.ftr__docs a:hover { color: #fff; }
.ftr__contacts { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; font-size: 15px; }
.ftr__contacts a { color: #f1ede6; text-decoration: none; }
.ftr__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Появление при прокрутке ---------- */
.rv-on .rv:not(.in) { opacity: 0; transform: translateY(18px); }
.rv-on .rv { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rv-on .rv.in { transition-delay: var(--rv-d, 0ms); }
[data-par] { translate: 0 var(--py, 0px); will-change: translate; }

/* ---------- 1100–1280 ---------- */
@media (max-width: 1280px) {
  .nav { gap: 22px; margin-left: 48px; }
  .hdr__r { gap: 26px; }
  .steps { column-gap: 72px; }
  .step:not(:last-child)::after { right: -60px; width: 40px; }
  .prow { grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 170px; }
}
@media (max-width: 1140px) {
  .hdr__mail { display: none; }
  .hero__in { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); min-height: 560px; }
  .hero__sub, .hero__deal { font-size: 19px; }
  .hero__stage { height: 430px; }
  .admin__in { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 36px; }
  .admin__frame { height: 380px; }
  .prices__in { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; }
  .prow { grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 150px; gap: 20px; }
  .prow__price { font-size: 27px; }
  .order__in { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 40px; }
  .faq__in { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .qa summary { grid-template-columns: minmax(0, 230px) minmax(0, 1fr) 20px; }
  .qa__more { padding-left: calc(22px + 230px + 24px); }
}

/* ---------- Планшет ---------- */
@media (max-width: 960px) {
  .nav, .hdr__link { display: none; }
  .burger { display: block; }
  .hdr__r { gap: 14px; }
  .hero__in { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding-top: 44px; padding-bottom: 34px; }
  .hero__title { font-size: clamp(40px, 9.6vw, 84px); }
  .hero__stage { height: auto; aspect-ratio: 1.62; max-width: 640px; width: 100%; margin: 6px auto 0; }
  .hero__stage > .hero__laptop { width: 84%; left: 2%; top: 3%; }
  .hero__stage > .hero__phone { right: 0; bottom: 6%; width: 21%; }
  .hero__note { bottom: -2px; }
  .sec-head { flex-direction: column; gap: 14px; }
  .sec-head__aside { max-width: 560px; margin-top: 0; }
  .works__grid { grid-template-columns: minmax(0, 560px); justify-content: center; gap: 44px; margin-top: 32px; }
  .admin { padding-top: 36px; }
  .admin__in { grid-template-columns: 1fr; gap: 26px; }
  .admin__text { padding-bottom: 0; }
  .admin__tabs { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
  .admin__frame { height: auto; max-height: 56vw; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; row-gap: 28px; }
  .step:nth-child(2n)::after { display: none; }
  .prices__in { grid-template-columns: 1fr; gap: 26px; }
  .extras { grid-column: 1; }
  .prices__text .lead, .prices__pay { max-width: 640px; }
  .order { padding: 40px 0 44px; }
  .order__in { grid-template-columns: 1fr; gap: 26px; }
  .faq { padding-top: 36px; }
  .faq__in { grid-template-columns: 1fr; gap: 24px; }
  .ftr__in { flex-wrap: wrap; gap: 14px 30px; }
  .ftr__contacts { margin-left: 0; justify-content: flex-start; }
}

/* ---------- Телефон ---------- */
@media (max-width: 720px) {
  :root { --hdr-h: 58px; }
  body { font-size: 17px; }
  .logo { gap: 14px; }
  .logo__mark { width: 25px; height: 30px; }
  .logo__word { font-size: 22px; }
  .hdr__cta { width: auto; height: 38px; padding: 0 14px; font-size: 13.5px; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(8,11,12,.9) 0%, rgba(8,11,12,.82) 38%, rgba(8,11,12,.45) 62%, rgba(8,11,12,.35) 100%);
  }
  .hero__bg img { object-position: 50% 50%; }
  .hero__in { padding-top: 34px; padding-bottom: 26px; }
  .hero__title { font-size: clamp(38px, 12.6vw, 64px); line-height: .84; }
  .hero__sub { margin-top: 20px; font-size: 17px; }
  .hero__deal { font-size: 17px; }
  .hero__cta { margin-top: 24px; gap: 14px 22px; }
  .hero__cta .btn--lg { width: 100%; height: 54px; }
  .hero__niches { margin-top: 20px; margin-bottom: 14px; font-size: 14px; }
  .hero__stage { aspect-ratio: 1.38; margin-top: 12px; perspective: none; }
  .hero__stage > .hero__laptop { width: 86%; left: 0; top: 2%; transform: none; animation-name: devInFlat; }
  .hero__stage > .hero__phone { width: 24%; right: 0; bottom: 9%; transform: none; animation-name: phoneInFlat; }
  .hero__note { left: 0; right: auto; bottom: 0; font-size: 12.5px; max-width: 70%; }
  @keyframes devInFlat { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  @keyframes phoneInFlat { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .works { padding: 40px 0 46px; }
  .sec-head__aside { font-size: 16px; }
  .work__cap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .work__name { font-size: 24px; }
  .work__what { font-size: 16px; }
  .admin__tabs { flex-direction: column; gap: 2px; }
  .admin__tabs button { font-size: 19px; }
  .admin__frame { max-height: none; height: auto; }
  .monitor { padding: 8px 8px 0; border-radius: 10px 10px 0 0; }
  /* на телефоне показываем левый верхний угол админки крупнее, чтобы читались цифры */
  .monitor__screen { aspect-ratio: 1 / .92; }
  .monitor__screen img { width: 172%; max-width: none; height: auto; object-fit: initial; }
  .how { padding: 34px 0 38px; }
  .how__rule { display: none; }
  .steps { grid-template-columns: 1fr; row-gap: 0; margin-top: 18px; }
  .step { padding: 0 0 46px; }
  .step:last-child { padding-bottom: 0; }
  .step:not(:last-child)::after, .step:nth-child(2n):not(:last-child)::after { display: block; top: auto; bottom: 14px; left: -12px; right: auto; width: 40px; transform: rotate(90deg); }
  .step__t { font-size: 21px; }
  .step p { font-size: 16px; }
  .prices { padding: 36px 0 40px; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "desc desc"; gap: 8px 16px; align-items: baseline; padding: 16px 0; }
  .prow__name { grid-area: name; font-size: 21px; }
  .prow__desc { grid-area: desc; max-width: none; }
  .prow__price { grid-area: price; font-size: 26px; text-align: right; }
  .prow__price small { display: block; margin-top: 4px; font-size: 15px; }
  .extras__list { grid-template-columns: 1fr; }
  .extras__head, .extra, .extras__note { padding-left: 0; }
  .order__title { font-size: clamp(34px, 10.6vw, 48px); }
  .order__lead { font-size: 17px; }
  .form { grid-template-columns: 1fr; grid-template-areas: "name" "company" "contact" "msg" "consent" "btn" "err"; gap: 10px; padding-bottom: 0; }
  .fld input { height: 50px; }
  .fld textarea { min-height: 110px; padding-bottom: 13px; }
  .fld--msg textarea { clip-path: none; }
  .consent { padding: 6px 0; }
  .form__btn { grid-area: btn; position: static; width: 100%; height: 54px; min-width: 0; margin-top: 4px; box-shadow: none; font-size: 16px; }
  .form__err { max-width: none; }
  .form-done { padding: 22px 20px; }
  .qa summary { grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "q i" "a a"; gap: 6px 14px; padding: 16px 0; align-items: start; }
  .qa__q { grid-area: q; }
  .qa__a { grid-area: a; }
  .qa__i { grid-area: i; margin-top: 7px; }
  .qa__more { padding: 0 0 16px; }
  .ftr { padding: 24px 0 28px; }
  .ftr__in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ftr__docs { flex-direction: column; gap: 6px; margin-top: 10px; }
}
@media (max-width: 400px) {
  .hdr__cta { display: none; }
}

/* Без анимаций по желанию системы */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv-on .rv:not(.in) { opacity: 1; transform: none; }
  [data-par] { translate: none; }
}
