/* Dimpin — общий стиль сайта. Палитра: графит, светлый текст, один оранжевый акцент логотипа. */

@font-face {
  font-family: "Dimpin Display";
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-cyrillic-wdth-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Dimpin Display";
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Dimpin Display";
  font-style: italic;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-cyrillic-wdth-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Dimpin Display";
  font-style: italic;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-wdth-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Dimpin Text";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Dimpin Text";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #141518;
  --bg-raise: #1b1c20;
  --line: rgba(236, 235, 231, 0.14);
  --line-strong: rgba(236, 235, 231, 0.34);
  --text: #ecebe7;
  --muted: #a8a6a0;
  --accent: #fda300;
  --accent-ink: #141518;
  --danger: #ff9a8a;
  --font-display: "Dimpin Display", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Dimpin Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 148px);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Типографика ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin: 0;
  hyphens: manual;
}
h1, .display-xl { font-size: clamp(2.6rem, 8.2vw, 7.25rem); }
h2 { font-size: clamp(2.1rem, 5.4vw, 4.5rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.08; }
h1 em, h2 em, h3 em, .accent-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 40ch;
}
.muted { color: var(--muted); }

.eyebrow {
  display: flex;
  gap: 0.75em;
  align-items: baseline;
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.num {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* ---------- Кнопки ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.85em 1.6em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem/1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: #ffb733; }
.button:active { transform: translateY(1px); }
.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.button-ghost:hover { background: transparent; border-color: var(--text); }
.button-small { min-height: 42px; padding: 0.55em 1.2em; font-size: 0.9375rem; }
.button[disabled], .button[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка и навигация ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* Размытие на псевдоэлементе: backdrop-filter на самой шапке сделал бы её
   контейнером для fixed-меню на телефоне. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 21, 24, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 104px; height: auto; }
.brand-name {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  list-style: none;
}
.nav-direction, .nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-direction::before {
  content: attr(data-num);
  font-family: var(--font-display);
  font-stretch: 85%;
  font-size: 0.8em;
  color: var(--accent);
}
.nav-direction:hover, .nav-link:hover { color: var(--accent); }
.nav-direction[aria-current="page"], .nav-link[aria-current="page"] { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 18px; height: 1.5px;
  margin: auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .brand-name { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-direction, .nav-link {
    display: flex;
    padding: 18px 0;
    font-family: var(--font-display);
    font-stretch: 85%;
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    font-weight: 600;
    white-space: normal;
    border-bottom: 0;
  }
  .nav-direction[aria-current="page"], .nav-link[aria-current="page"] { color: var(--accent); }
  .nav-cta { align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Секции ---------- */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .lead { color: var(--muted); }
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 48px;
  }
}

.page-hero {
  padding-block: clamp(56px, 9vw, 128px) clamp(56px, 8vw, 112px);
}
.page-hero h1 { max-width: 15ch; margin-bottom: clamp(24px, 3vw, 40px); }
.page-hero .lead { margin-bottom: 36px; }

/* ---------- Подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); }
}
.footer-about img { width: 96px; margin-bottom: 16px; }
.footer-about p { max-width: 36ch; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--muted); text-decoration: underline; }

/* ---------- Появление при прокрутке (только при разрешённом движении) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Главная: первый экран ---------- */

.hero { padding-block: clamp(40px, 5.5vw, 80px) 0; }
.hero-eyebrow span:first-child { color: var(--text); }
.hero-title {
  max-width: 14ch;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  line-height: 0.94;
}
.hero-title em { display: inline-block; }
.hero-bottom {
  display: grid;
  gap: 28px;
  margin-top: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) {
  .hero-bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.hero-bottom .lead { margin: 0; color: var(--muted); }

.directions {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(40px, 4.5vw, 64px);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .directions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directions li + li { border-left: 1px solid var(--line); }
}
.directions li { border-bottom: 1px solid var(--line); }
.direction-entry {
  position: relative;
  display: grid;
  gap: 12px;
  height: 100%;
  padding: 28px 48px 32px 0;
  text-decoration: none;
}
@media (min-width: 900px) {
  .direction-entry { padding: 32px 56px 40px 28px; }
  .directions li:first-child .direction-entry { padding-left: 0; }
}
.direction-title {
  font-size: clamp(1.6rem, 2.1vw, 2rem);
  line-height: 1.02;
  transition: color 0.2s ease;
}
.direction-short { color: var(--muted); font-size: 0.975rem; }
.direction-arrow {
  position: absolute;
  right: 16px;
  top: 28px;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.direction-entry:hover .direction-title { color: var(--accent); }
.direction-entry:hover .direction-arrow { transform: translateX(6px); }

/* ---------- Строки услуг ---------- */

.service-rows { list-style: none; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.service-row > :not(.num) { grid-column: 2; }
.service-row h3 a { text-decoration: none; }
.service-row h3 a:hover { color: var(--accent); }
.service-row p { margin: 0; }
.service-what { color: var(--text); }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 72px minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); align-items: baseline; padding: 36px 0; }
  .service-row > :not(.num) { grid-column: auto; }
}

/* ---------- Шаги ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step + .step { border-left: 1px solid var(--line); padding-left: 28px; }
}
.step { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.step h3 { margin: 16px 0 12px; }
.step p { color: var(--muted); margin: 0; }
.note { margin-top: 32px; color: var(--muted); max-width: 60ch; }

/* ---------- Партнёрство и сертификаты ---------- */

.partner-body {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .partner-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 48px; }
}
.partner-body .lead { color: var(--muted); }
.certificates {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.certificate { display: grid; gap: 8px; text-decoration: none; }
.certificate img { border: 1px solid var(--line); background: #fff; }
.certificate-title { font-weight: 500; }
.certificate-owner { font-size: 0.875rem; }

/* ---------- Кейсы ---------- */

.cases {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.case-placeholder, .case {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
}
.case { border-style: solid; }
.case-placeholder p { margin: 0; }
.case-direction { font-size: 0.875rem; color: var(--muted); }
.case-label {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.1;
}
.case-facts { display: grid; gap: 4px; margin: 0; }
.case-facts dt { color: var(--muted); font-size: 0.875rem; margin-top: 8px; }
.case-facts dd { margin: 0; }

/* ---------- Вопросы ---------- */

.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 20px;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin: 0 0 24px; max-width: 70ch; color: var(--muted); }

/* ---------- Обращение: карточка формы с жёсткой тенью в палитре сайта ---------- */

.contact {
  --ink: var(--text);
  --card: var(--bg-raise);
  --ink-muted: var(--muted);
  --error: var(--danger);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; } }
.contact .eyebrow { font-weight: 600; letter-spacing: 0.12em; }
.contact-intro h2 { margin-bottom: 24px; font-size: clamp(2.6rem, 6vw, 5rem); }
.contact-intro .lead { color: var(--muted); }
.contact-direct { list-style: none; display: grid; margin: 32px 0 24px; border-top: 1px solid var(--line); }
.contact-direct li { border-bottom: 1px solid var(--line); }
.contact-direct a { display: flex; justify-content: space-between; padding: 14px 0; text-decoration: none; font-weight: 500; }
.contact-direct a:hover { color: var(--accent); }
.contact-intro .small { color: var(--muted); }
.contact-main { font-size: 1.2rem; }
.small { font-size: 0.875rem; }

.contact-card {
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
}
@media (max-width: 600px) { .contact-card { box-shadow: 6px 6px 0 var(--accent); } }

/* ---------- Предложения с ценами ---------- */

.offers { border-top: 1px solid var(--line); }
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 32px;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .offer { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); padding: 44px 0; }
}
.offer-head { display: grid; gap: 10px; align-content: start; }
.offer-head h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.offer-purpose { margin: 0; font-size: 1.0625rem; }
.offer-includes { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.offer-includes li::marker { color: var(--accent); }
.offer-price { display: grid; gap: 10px; align-content: start; justify-items: start; }
.price {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--accent);
}
.price-scope { margin: 0 0 6px; font-size: 0.9375rem; }
.price-note {
  margin: 32px 0 0;
  max-width: 78ch;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Этапы и списки ---------- */

.stage-list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .stage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1000px) { .stage-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stage-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.stage-list li > :not(.num) { grid-column: 2; }
.stage-list h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.stage-list p { margin: 0; color: var(--muted); font-size: 0.975rem; }

.split-body { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .split-body { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: end; gap: 48px; }
}
.split-body .lead { margin-bottom: 0.8em; }

/* ---------- Битрикс24: задачи, возможности, лицензии ---------- */

.task-grid {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1100px) { .task-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.task-entry { border-bottom: 1px solid var(--line); }
.task-entry a {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 24px 0 28px;
  text-decoration: none;
}
.task-entry strong {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  line-height: 1.1;
  transition: color 0.2s ease;
}
.task-entry .muted { font-size: 0.9375rem; }
.task-entry a:hover strong { color: var(--accent); }

.capabilities {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.capabilities li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.capabilities h3 { margin-bottom: 10px; }
.capabilities p { margin: 0; color: var(--muted); }

.link-list { list-style: none; margin: 0 0 20px; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; font-weight: 500; }
.link-list a:hover { color: var(--accent); }

.offer-task, .offer-outcome { margin: 12px 0 0; }

/* ---------- Сценарии автоматизации ---------- */

.scenarios {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) { .scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scenario {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.scenario > :not(.num) { grid-column: 2; }
.scenario h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.scenario p { margin: 0; color: var(--muted); }

/* ---------- Контакты ---------- */

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
@media (min-width: 900px) { .contact-page { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.contact-methods { list-style: none; border-top: 1px solid var(--line); }
.contact-methods li { border-bottom: 1px solid var(--line); }
.contact-method { display: grid; gap: 4px; padding: 22px 0; text-decoration: none; }
.contact-method-label {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  transition: color 0.2s ease;
}
.contact-method-main .contact-method-label { color: var(--accent); }
.contact-method:hover .contact-method-label { color: var(--accent); }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; }

/* ---------- Правовые документы ---------- */

.doc { max-width: calc(820px + 2 * var(--gutter)); padding-block: clamp(48px, 7vw, 96px); }
.doc-head { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); margin-bottom: 20px; }
.doc h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; margin: 40px 0 14px; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.doc li::marker { color: var(--accent); }
.doc p, .doc li { color: #d6d4cf; }
.doc a { color: var(--accent); }
.section-tight { padding-top: 0; border-top: 0; }

/* ---------- Форма обращения (внутри светлой карточки) ---------- */

.lead-form { display: grid; gap: 24px; }
.form-fields { display: grid; gap: 28px; }
.lead-form.is-sent .form-fields { display: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 0.875rem; font-weight: 700; }
.field input[type="text"], .field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}
.field textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
/* Системный выпадающий список: тёмный фон и светлый текст, как у сайта */
.field select option {
  background-color: var(--bg-raise);
  color: var(--text);
}
.field select option:checked {
  background-color: var(--accent);
  color: var(--accent-ink);
}
.field ::placeholder { color: #75767b; opacity: 1; }
.field select {
  appearance: none;
  padding-right: 32px;
  cursor: pointer;
  color-scheme: dark;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-hint { margin: 0; font-size: 0.8125rem; color: var(--ink-muted); }
.field-error { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--error); }
.field-topic { margin: 0; color: var(--ink-muted); }
.field-topic span { color: var(--ink); font-weight: 600; }
.field-check { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 6px 12px; }
.field-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.field-check label { font-size: 0.875rem; font-weight: 400; }
.field-check label { color: var(--muted); }
.field-check label a { color: var(--text); }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 14px; }
.form-submit {
  width: 100%;
  min-height: 60px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
}
.form-submit::after { content: "→"; transition: transform 0.2s ease; }
.form-submit:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.form-submit:hover::after { transform: translateX(4px); }
.form-submit[disabled]::after { content: none; }
.form-fallback { margin: 0; font-size: 0.875rem; color: var(--ink-muted); }
.form-fallback a { color: var(--ink); font-weight: 600; }
.form-status:empty { display: none; }
.form-status { padding: 16px 18px; border: 2px solid var(--ink); }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 2px solid var(--accent); }
.form-status p { margin: 0 0 8px; }
.form-status p:last-child { margin: 0; }
.form-status.is-error { border-color: var(--error); }
.form-status.is-error a { color: var(--accent); font-weight: 700; }
.form-status.is-success { border: 0; padding: 0; }
.form-success {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
}
.result-title { font-size: clamp(2.4rem, 6vw, 4.5rem); margin: 48px 0 24px; }

/* ---------- Тарифы Битрикс24 ---------- */

.tariffs { border-top: 1px solid var(--line); }
.tariff {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 32px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .tariff { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .tariff { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 4fr) minmax(0, 3fr); padding: 36px 0; align-items: start; }
}
.tariff-head { display: grid; gap: 8px; }
.tariff-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.tariff-head p { margin: 0; }
.tariff-limits { display: grid; gap: 10px; margin: 0; }
.tariff-limits dt { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tariff-limits dd { margin: 2px 0 0; font-weight: 500; }
.tariff-adds { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); font-size: 0.975rem; }
.tariff-adds li::marker { color: var(--accent); }
.tariff-adds li:first-child { color: var(--text); }
.tariff-price { display: grid; gap: 4px; align-content: start; }
.tariff-price p { margin: 0; }
.tariff-period { font-size: 0.9375rem; color: var(--muted); }
.tariff-was { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--muted); }
.tariff-was s { text-decoration-thickness: 1px; }
.tariffs[data-period="year"] [data-when="month"],
.tariffs[data-period="month"] [data-when="year"] { display: none; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Переключатель периода, как на bitrix24.ru; без JS скрыт — показан годовой вариант */
.period-switch {
  display: none;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 32px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.js .period-switch { display: inline-flex; }
.period-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 500 1rem/1.2 var(--font-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.period-switch button:hover { color: var(--accent); }
.period-switch button[aria-checked="true"] { background: var(--text); color: var(--accent-ink); }
.period-switch button[aria-checked="true"] .badge { background: var(--accent); }
.tariffs-footer { display: grid; gap: 20px; justify-items: start; margin-top: 32px; max-width: 78ch; }
.tariffs-footer .price-note { margin: 0; }
.tariffs-footer .link-list { width: 100%; margin: 0; }
