/* АЕГИС — IT-поддержка, концепция «Журнал работ». Логика — в ../DESIGN.md.
   Только #000 и #fff, серый для второстепенного текста. */

:root {
  --black: #000;
  --white: #fff;
  --grey-on-white: #5f5f5f;
  --grey-on-black: #a6a6a6;
  --line-on-white: #dcdcdc;
  --line-on-black: #3a3a3a;
  --sans: "Inter Tight", "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --page: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
button, input { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; background: var(--white); color: var(--black);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.block { padding-block: clamp(72px, 10vw, 136px); }
.dark { background: var(--black); color: var(--white); }

h2 { font: 300 clamp(2.25rem, 4.6vw, 3.75rem)/1.1 var(--sans); letter-spacing: -.02em; }

/* Шапка */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 12px var(--gutter);
  background: var(--black); color: var(--white);
  border-bottom: 1px solid var(--line-on-black);
}
.top-logo { display: block; line-height: 0; }
.top-logo img { height: 15px; width: auto; }
.top nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px clamp(14px, 2vw, 28px); font-size: .9375rem; }
.top nav a { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Первый экран: слева кто мы, справа живой журнал во всю высоту */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: calc(100svh - 64px);
  background: var(--black); color: var(--white);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  padding: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 64px) clamp(40px, 6vw, 72px) var(--gutter);
}
.hero h1 { font: 300 clamp(2.5rem, 4.9vw, 4.75rem)/1.05 var(--sans); letter-spacing: -.025em; }
.hero-text p { max-width: 29em; color: var(--grey-on-black); font-size: 1.125rem; line-height: 1.5; }

.console {
  display: flex; flex-direction: column; min-width: 0; max-height: calc(100svh - 64px);
  border-left: 1px solid var(--line-on-black);
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line-on-black);
}
.console-head p { color: var(--grey-on-black); font-size: .9375rem; }
.tabs { display: flex; gap: 4px; }
.tabs button {
  padding: 6px 12px; background: none; border: 1px solid transparent; cursor: pointer;
  font-size: .9375rem; color: var(--grey-on-black);
}
.tabs button:hover { color: var(--white); }
.tabs button[aria-pressed="true"] { border-color: var(--white); color: var(--white); }

.log {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; list-style: none;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px clamp(20px, 3vw, 40px);
  font: 400 clamp(1rem, 1.3vw, 1.1875rem)/1.5 var(--mono);
}
/* Прижимаем к низу через margin: с justify-content: flex-end длинный ответ не доскроллить вверх */
.log > :first-child { margin-top: auto; }
.log li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 12px; color: var(--grey-on-black); }
.log time { color: #7a7a7a; }
.log li span { white-space: pre-wrap; overflow-wrap: anywhere; }
.log .from { color: var(--white); }
.log .done { color: var(--white); font-weight: 500; }
.log li:not(.from):not(.done) span { color: #d6d6d6; }
.log a { color: var(--white); }
.log .actions { display: block; }
.log-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-left: calc(3.6em + 12px); }
.log-actions span { color: var(--grey-on-black); }

.ask { padding: 18px clamp(20px, 3vw, 40px) 20px; border-top: 1px solid var(--line-on-black); }
.ask label { display: block; margin-bottom: 8px; font-size: 1.125rem; font-weight: 500; }
.ask-row { display: flex; overflow: hidden; border-radius: 999px; background: var(--white); }
.ask input {
  flex: 1 1 auto; min-width: 0; padding: 14px 16px; border: 0; background: none; color: var(--black); font-size: 1.0625rem;
}
.ask input::placeholder { color: var(--grey-on-white); opacity: 1; }
.ask input:focus { outline: none; }
.ask-row:focus-within { outline: 2px solid var(--white); outline-offset: 3px; }
.ask button {
  flex: none; padding: 0 22px; border: 0; background: var(--white); color: var(--black);
  border-left: 1px solid var(--line-on-white); font-weight: 500; cursor: pointer;
}
.ask button:hover { background: #e8e8e8; }
.ask button:disabled { color: var(--grey-on-white); cursor: wait; }
.log .from:not(:first-child) { margin-top: 12px; }
.hint { margin-top: 10px; color: var(--grey-on-black); font-size: .875rem; line-height: 1.45; }

/* Кнопки */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--white); color: var(--black);
  font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none;
  transition: background-color .15s;
}
.btn:hover { background: var(--grey-on-black); }

/* Направления */
#services h2 { margin-bottom: clamp(32px, 5vw, 64px); }
.area {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 64px;
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--black);
}
.area h3 { font: 300 clamp(2rem, 4vw, 3.25rem)/1.1 var(--sans); letter-spacing: -.02em; }
.area-lead { margin-bottom: 12px; font-size: 1.1875rem; font-weight: 500; }
.area ul { padding-left: 1.1em; color: var(--grey-on-white); }
.area li + li { margin-top: 4px; }
/* Проблема словами клиента чёрным, что сделаем серым */
.pains { list-style: none; padding: 0; }
.pains li + li { margin-top: 12px; }
.pains b { display: block; color: var(--black); font-weight: 500; }
.pains li { color: var(--grey-on-white); }
.more { margin-top: 16px; }
.page-head .cta { margin-top: 24px; }
.prose .pains { padding: 0; list-style: none; }
.prose h3 { margin-top: 1.4em; font: 500 1.125rem/1.35 var(--sans); }
.prose h3 + p { margin-top: .3em; }
.next p a { color: inherit; }
.page-head .btn { background: var(--black); color: var(--white); }
.page-head .btn:hover { background: #333; }
.also { padding-top: 24px; border-top: 1px solid var(--line-on-white); color: var(--grey-on-white); }
.also + .also { padding-top: 12px; border-top: 0; }

/* Как проходит работа: настоящая последовательность, поэтому цифры */
.steps {
  list-style: none; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(32px, 5vw, 72px);
  margin-top: clamp(36px, 5vw, 64px);
}
.steps li { counter-increment: step; padding-top: 14px; border-top: 1px solid var(--line-on-black); }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; font: 400 1rem/1.5 var(--mono); color: var(--grey-on-black); }
.steps h3 { font: 400 1.5rem/1.2 var(--sans); margin-bottom: 8px; }
.steps p { color: var(--grey-on-black); }
.steps a { color: var(--white); }
.note { margin-top: clamp(32px, 4vw, 52px); max-width: 38em; color: var(--grey-on-black); }

/* Список статей */
.articles-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.article-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 88px); }
.article-list li { border-top: 1px solid var(--line-on-white); }
.article-list a { display: block; padding-block: 20px 24px; text-decoration: none; }
.article-list h3 { font: 500 clamp(1.1875rem, 1.8vw, 1.375rem)/1.25 var(--sans); }
.article-list a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.article-list p { margin-top: 6px; color: var(--grey-on-white); max-width: 34em; }

/* Контакты */
.contact p { max-width: 32em; margin-top: 16px; color: var(--grey-on-black); }
.contact .cta { margin-top: 28px; }

/* Подвал */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  padding: 24px var(--gutter);
  background: var(--black); color: var(--grey-on-black);
  border-top: 1px solid var(--line-on-black);
  font-size: .9375rem;
}
.foot span { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Страницы статей */
.page { padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px); }
.page-head { max-width: 40rem; margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.crumb { font-size: .9375rem; color: var(--grey-on-white); }
.page h1 { margin-top: 18px; font: 500 clamp(2.25rem, 4.4vw, 3.5rem)/1.08 var(--sans); letter-spacing: -.03em; }
.meta { margin-top: 18px; color: var(--grey-on-white); font-size: .9375rem; }
.prose {
  max-width: 40rem; margin: clamp(32px, 5vw, 52px) auto 0; padding-inline: var(--gutter); box-sizing: content-box;
  font-size: 1.125rem; line-height: 1.65;
}
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font: 500 clamp(1.375rem, 2.6vw, 1.625rem)/1.25 var(--sans); letter-spacing: -.005em; }
.prose h2 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose kbd, .prose code { font: 400 .92em var(--mono); white-space: nowrap; }
.prose .warn { padding: 18px 22px; border-radius: 16px; background: var(--black); color: var(--white); }
.list-page .article-list { margin-top: clamp(36px, 5vw, 60px); }

.next { background: #fff; color: #000; }
.next-in { max-width: 40rem; margin: 0 auto; padding: 8px var(--gutter) clamp(48px, 7vw, 88px); box-sizing: content-box; }
.next h2 { font: 500 clamp(1.75rem, 3vw, 2.25rem)/1.15 var(--sans); letter-spacing: -.02em; }
.next p { margin-top: 16px; max-width: 38rem; color: #3a3a3a; }
.next .cta { margin-top: 24px; }
.next .btn { background: #111; color: #fff; }
.next .btn:hover { background: #333; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-text { padding-right: var(--gutter); }
  .console { border-left: 0; border-top: 1px solid var(--line-on-black); max-height: none; }
  /* На телефоне поле вопроса выше журнала, чтобы не листать до него */
  .ask { order: -1; border-top: 0; border-bottom: 1px solid var(--line-on-black); }
  .log { max-height: 70svh; }
  .log > :first-child { margin-top: 0; }
  /* В чате поле снова под сообщениями, как в мессенджере */
  .console.chatting .ask { order: 0; border-top: 1px solid var(--line-on-black); border-bottom: 0; }
}
@media (max-width: 860px) {
  .area { grid-template-columns: minmax(0, 1fr); }
  .steps, .article-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .top nav a.opt { display: none; }
  .log { font-size: .9375rem; }
  .console-head { flex-wrap: wrap; }
  .log-actions { padding-left: 0; }
}

/* Подпись студии, как на bsnoren.ru */
.spi-credit{display:inline-flex;color:inherit;text-decoration:none;opacity:.85;transition:opacity .2s ease}
.spi-credit:hover,.spi-credit:focus-visible{opacity:1}
.spi-credit:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:4px}
.spi-credit svg{display:block;height:32px;width:auto;overflow:visible;fill:currentColor}
.spi-credit .spi-l,.spi-credit .spi-px{transform-box:fill-box;transform-origin:50% 50%}
.spi-credit:hover .spi-l,.spi-credit:focus-visible .spi-l{animation:spi-wave .45s ease-in-out}
.spi-credit .spi-l:nth-child(2){animation-delay:.04s}.spi-credit .spi-l:nth-child(3){animation-delay:.08s}
.spi-credit .spi-l:nth-child(4){animation-delay:.12s}.spi-credit .spi-l:nth-child(5){animation-delay:.16s}
.spi-credit .spi-l:nth-child(6){animation-delay:.2s}.spi-credit .spi-l:nth-child(7){animation-delay:.24s}
.spi-credit:hover .spi-px,.spi-credit:focus-visible .spi-px{animation:spi-hop .7s .3s cubic-bezier(.34,1.56,.64,1) both}
@keyframes spi-wave{45%{transform:translateY(-28%)}}
@keyframes spi-hop{35%{transform:translate(35%,-70%) rotate(-14deg)}70%{transform:translate(-6%,8%)}100%{transform:none}}
@media (prefers-reduced-motion:reduce){.spi-credit *{animation:none!important}}
.foot { align-items: center; }
.foot .spi-credit { margin-left: auto; }


/* Уведомление о cookie и Метрике */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: #000;
  color: #fff;
  border-top: 1px solid #3a3a3a;
  font-size: 0.9rem;
  line-height: 1.4;
}
.cookie-bar p { margin: 0; color: #a6a6a6; max-width: 48rem; }
.cookie-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-ok {
  flex: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  min-height: 40px;
  padding: 0 18px;
  font: 500 15px/1.2 var(--sans);
  cursor: pointer;
}
.cookie-ok:hover { background: #000; color: #fff; }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 0.75rem; }
}

/* Тарифы: сравнение как лист характеристик. На широком экране строки выровнены через subgrid,
   на телефоне каждый тариф идёт отдельным списком со своими подписями. */
.plans-wrap { max-width: var(--page); margin: clamp(40px, 6vw, 72px) auto 0; padding-inline: var(--gutter); }
.plans {
  display: grid; grid-template-columns: minmax(8rem, .7fr) repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(10, auto); column-gap: clamp(20px, 3vw, 40px);
}
.plans-labels, .plan { display: grid; grid-row: 1 / span 10; grid-template-rows: subgrid; }
.plans-labels span, .plan dl > div { padding-block: 14px 16px; border-top: 1px solid var(--line-on-white); }
.plans-labels span { color: var(--grey-on-white); font-size: .9375rem; line-height: 1.45; }
.plans-labels .plans-corner { border-top: 0; }
.plan-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 20px 0 28px; border-top: 2px solid var(--black);
}
.plan-head h2 { font: 500 1.25rem/1.2 var(--sans); letter-spacing: 0; }
.plan-price { font: 300 clamp(2rem, 3vw, 2.75rem)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price span { font-size: 1rem; letter-spacing: 0; color: var(--grey-on-white); }
.plan-head .btn { margin-top: auto; background: var(--black); color: var(--white); }
.plan-head .btn:hover { background: #333; }
.plan dl { display: contents; margin: 0; }
.plan dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plan dd { margin: 0; line-height: 1.45; }
.plan dd.no { color: var(--grey-on-white); }
.plan-ip { margin-top: clamp(28px, 4vw, 44px); padding-top: 18px; border-top: 2px solid var(--black); color: var(--grey-on-white); line-height: 1.55; max-width: 62rem; }
.plan-ip b { color: var(--black); font-weight: 500; }
.plan-ip a { color: var(--black); }

/* Бесплатная проверка: единственный тёмный блок в теле страницы, это главный крючок */
.check {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4vw, 40px); background: var(--black); color: var(--white);
}
.check h2 { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--sans); letter-spacing: -.01em; }
.check p { margin-top: 10px; max-width: 40em; color: var(--grey-on-black); line-height: 1.55; }
.check + .plans { margin-top: clamp(40px, 6vw, 72px); }

/* Что делаем по заявкам */
.requests { max-width: var(--page); margin: clamp(64px, 9vw, 112px) auto 0; padding-inline: var(--gutter); }
.requests > h2 { font: 500 clamp(1.375rem, 2.6vw, 1.625rem)/1.25 var(--sans); letter-spacing: -.005em; }
.requests-lead { margin-top: 6px; color: var(--grey-on-white); }
.requests-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: clamp(20px, 3vw, 32px); }
.requests-grid section { padding-block: 16px 24px; border-top: 1px solid var(--line-on-white); }
.requests-grid h3 { font: 500 1.0625rem/1.35 var(--sans); }
.requests-scope { margin-top: 2px; color: var(--grey-on-white); font-size: .9375rem; }
.requests-grid ul { margin-top: 8px; padding-left: 1.1em; color: var(--grey-on-white); line-height: 1.5; }
.requests-grid li + li { margin-top: 4px; }
.requests-note { max-width: 46em; color: var(--grey-on-white); line-height: 1.55; }
.plans-terms { margin-top: clamp(56px, 8vw, 96px); }

.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.prose th, .prose td { padding: 10px 16px 10px 0; border-top: 1px solid var(--line-on-white); text-align: left; vertical-align: top; }
.prose thead th { border-top: 2px solid var(--black); font-weight: 500; }
.prose tbody th { font-weight: 400; color: var(--grey-on-white); }
.oferta h2 { font-size: 1.25rem; }

/* Четыре колонки тесно уже на ноутбуке: до 1180 px тарифы идут парами со своими подписями */
@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; row-gap: 48px; }
  .plans-labels { display: none; }
  .plan { display: block; grid-row: auto; }
  .plan dl { display: block; }
  .plan dl > div { display: grid; grid-template-columns: minmax(7rem, .8fr) minmax(0, 1fr); gap: 12px; }
  .plan dt { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; color: var(--grey-on-white); font-size: .9375rem; line-height: 1.45; }
}
@media (max-width: 960px) {
  .requests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Шапка и главная: разделы на виду, без декоративного первого экрана. */
.top {
  height: auto;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 14px;
  background: #fff;
  color: #000;
  border-bottom: 1px solid var(--line-on-white);
}
.top nav a.top-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.top nav a.top-cta:hover { text-decoration: none; background: #333; }
.top-logo img { filter: invert(1); }
.home .block { padding-block: clamp(40px, 5vw, 72px); }
.home h2 { font: 500 clamp(1.75rem, 3vw, 2.25rem)/1.15 var(--sans); letter-spacing: -.02em; }
.home .hero {
  display: block;
  min-height: 0;
  padding: 56px 0 8px;
  background: #fff;
  color: #000;
}
.home .hero-text { align-items: flex-start; justify-content: flex-start; gap: 0; padding: 0; }
.home .hero h1 {
  max-width: 16em;
  margin: 0;
  font: 500 clamp(2.25rem, 4.4vw, 3.5rem)/1.08 var(--sans);
  letter-spacing: -.03em;
  text-align: left;
}
.home .hero-text p { max-width: 38rem; margin: 16px 0 0; color: #3a3a3a; font-size: 1.125rem; line-height: 1.5; text-align: left; }
.home .hero .cta { justify-content: flex-start; margin-top: 24px; }
.home .hero-plate { align-self: stretch; margin-top: 32px; overflow: hidden; background: #111; border-radius: 18px; }
.home .hero-plate video { display: block; width: 100%; height: min(42vw, 420px); object-fit: cover; object-position: center 40%; }
.home .btn, .contact .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.home .btn:hover, .contact .btn:hover { background: #333; }
.lead { max-width: 40rem; margin-top: 12px; color: var(--grey-on-white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.svc-grid article { padding: 0; border: 1px solid var(--line-on-white); overflow: hidden; border-radius: 16px; }
.svc-grid video { display: block; width: calc(100% - 24px); height: 210px; margin: 12px 12px 0; border-radius: 10px; object-fit: cover; background: #111; }
.svc-grid article:nth-child(1) video { object-position: 72% 40%; }
.svc-grid article:nth-child(2) video { object-position: center 30%; }
.svc-grid article:nth-child(3) video { object-position: 42% 62%; }
.svc-body { padding: 18px 22px 8px; }
.page-plate { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 28px 0 0; border-radius: 18px; object-fit: cover; background: #111; }
.svc-grid h3 { font: 500 1.5rem/1.2 var(--sans); letter-spacing: -.02em; }
.svc-grid h3 a { text-decoration: none; }
.svc-grid h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-grid .area-lead { margin-top: 8px; }
.svc-grid .pains { margin-top: 14px; }
.svc-grid .more { margin: 16px 0 18px; }
.price-row { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.price-row a { display: block; height: 100%; padding: 18px; border: 1px solid var(--line-on-white); border-radius: 16px; text-decoration: none; }
.price-row a:hover { border-color: #000; }
.price-row b { display: block; font-weight: 500; }
.price-row span { display: block; margin-top: 10px; font-size: 1.5rem; letter-spacing: -.02em; }
.price-row small { display: block; margin-top: 6px; color: var(--grey-on-white); font-size: .9375rem; line-height: 1.35; }
#plans .more { margin-top: 18px; }
#how .steps { gap: 12px; margin-top: 28px; }
#how .steps li {
  border: 1px solid var(--line-on-white);
  border-radius: 16px;
  padding: 18px 18px 20px;
}
#how .steps p, #how .note { color: var(--grey-on-white); }
#how .steps li::before { color: #111; font-weight: 500; content: counter(step, decimal-leading-zero); }
#how .steps a { color: inherit; }
.btn.btn-quiet { background: transparent; color: #111; box-shadow: inset 0 0 0 1px #111; }
.home .btn.btn-quiet, .contact .btn.btn-quiet, .page-head .btn.btn-quiet { background: transparent; color: #111; }
.home .btn.btn-quiet:hover, .contact .btn.btn-quiet:hover, .page-head .btn.btn-quiet:hover { background: #f2f2f2; }
.next .btn.btn-quiet { background: transparent; color: #111; box-shadow: inset 0 0 0 1px #111; }
.next .btn.btn-quiet:hover { background: #f2f2f2; }
#ask .console { margin-top: 28px; min-height: 420px; max-height: 640px; overflow: hidden; border: 1px solid var(--line-on-black); border-radius: 18px; background: #000; color: #fff; }
.ask-page h1 { margin-top: 18px; font: 500 clamp(2.25rem, 4.4vw, 3.5rem)/1.08 var(--sans); letter-spacing: -.03em; }
.reach { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.reach a { color: inherit; }
.foot {
  display: block;
  padding: 56px var(--gutter) 28px;
  background: #000;
  color: #fff;
  border-top: 0;
  font-size: 1rem;
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px 32px; max-width: var(--page); margin: 0 auto; }
.foot-grid p { margin: 0 0 12px; color: #a6a6a6; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.foot-grid a { display: block; margin: 7px 0; color: #fff; font-size: 1rem; line-height: 1.35; text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-logo { display: inline-block; margin-bottom: 14px; line-height: 0; }
.foot-logo img { height: 15px; width: auto; filter: none; }
.foot-brand p { max-width: 22rem; color: #a6a6a6; font-size: .9375rem; letter-spacing: 0; line-height: 1.45; text-transform: none; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; max-width: var(--page); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid #3a3a3a; }
.foot-bottom p { margin: 0; max-width: 46rem; color: #a6a6a6; font-size: .8125rem; line-height: 1.45; }
.foot .spi-credit { margin-left: 0; color: #fff; }
@media (max-width: 960px) {
  .svc-grid, .price-row, .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .home .hero { padding-top: 36px; }
  .plans, .requests-grid, .check, .svc-grid, .price-row, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .check { align-items: start; }
  .top nav { gap: 8px 14px; }
}

/* Тарифы в том же виде, что главная: карточки, а не лист сравнения. */
.tarify-page .page { padding-top: 36px; }
.tarify-page .page-head { max-width: var(--page); box-sizing: border-box; }
.tarify-page h1 { font: 500 clamp(2.25rem, 4.4vw, 3.5rem)/1.08 var(--sans); letter-spacing: -.03em; }
.tarify-page .check {
  background: #fff;
  color: #000;
  border: 1px solid var(--line-on-white);
  border-radius: 16px;
  align-items: center;
}
.tarify-page .check h2 { font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--sans); }
.tarify-page .check p { color: var(--grey-on-white); }
.tarify-page .check .btn { background: #111; color: #fff; }
.tarify-page .check .btn:hover { background: #333; }
.tarify-page .plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 12px;
  column-gap: 12px;
}
.tarify-page .plans-labels { display: none; }
.tarify-page .plan {
  display: flex;
  flex-direction: column;
  grid-row: auto;
  border: 1px solid var(--line-on-white);
  border-radius: 16px;
  padding: 18px 18px 8px;
}
.tarify-page .plan-head { gap: 8px; min-height: 148px; padding: 4px 0 16px; border-top: 0; }
.tarify-page .plan-head h2 { font: 500 1.35rem/1.2 var(--sans); }
.tarify-page .plan-price { font: 500 clamp(1.75rem, 2vw, 2.15rem)/1 var(--sans); }
.tarify-page .plan-head .btn { margin-top: auto; }
.tarify-page .plan dl { display: block; }
.tarify-page .plan dl > div { display: block; padding: 10px 0; }
.tarify-page .plan dt {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  color: var(--grey-on-white);
  font-size: .75rem;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.tarify-page .plan-ip {
  max-width: none;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line-on-white);
  border-top: 1px solid var(--line-on-white);
  border-radius: 16px;
}
.tarify-page .requests > h2,
.tarify-page .plans-terms h2 { font: 500 clamp(1.75rem, 3vw, 2.25rem)/1.15 var(--sans); letter-spacing: -.02em; }
.tarify-page .plans-terms { max-width: var(--page); box-sizing: border-box; }
@media (max-width: 1100px) {
  .tarify-page .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .tarify-page .plans, .tarify-page .check { grid-template-columns: minmax(0, 1fr); }
}
