/* Проектор — строгая гамма: белый, графит и красный.
   Красным выделено то, что делает ядро: опора, действия, акценты. */

:root {
  /* Брендбук 0.2, с. 07–08: красный, белый, тёмный графит; нейтрали */
  --bg: #ffffff;
  --gray: #f3f4f5;
  --gray-2: #e8e9eb;
  --line: #d8dadd;
  --line-strong: #b9bcc1;
  --ink: #34373d;
  --muted: #63666d;
  --graphite: #34373d;
  --dark: #34373d;
  --dark-2: #3e4148;
  --red: #c62832;
  --red-hover: #a51f28;
  --red-soft: #f9e5e6;
  --on-red: #ffffff;
  /* Цвета статусов не заменяются брендовым красным (с. 14) */
  --ok: #2e8b57;
  --ok-soft: #e3f3ea;
  --danger: #b42318;

  /* Брендбук, с. 09: для веба — системный стек с Segoe UI */
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);

  /* Брендбук, с. 10: отступы кратны 8 px */
  --space: clamp(16px, 8px + 2vw, 40px);
  --section: clamp(64px, 40px + 6vw, 128px);
  --wrap: 76rem;
  --measure: 40rem;

  --r: 4px;
  --r-card: 8px;
  --shadow: 0 1px 2px rgba(52, 55, 61, 0.06), 0 16px 32px -16px rgba(52, 55, 61, 0.3);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
/* Класс ставит site.js после загрузки: иначе открытие по якорю «пролетает» всю страницу сверху. */
@media (prefers-reduced-motion: no-preference) { html.smooth-scroll { scroll-behavior: smooth; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.5;
  font-kerning: normal; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
main:focus { outline: none; }

h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--step-3); letter-spacing: -0.035em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 3px solid rgba(198, 40, 50, 0.45); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--space); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--red); color: var(--on-red); padding: 0.5rem 1rem; z-index: 30; }
.skip:focus { top: 1rem; }

/* Короткая красная черта над заголовками секций */
.section__title::before, .idea__title::before, .demo__intro h2::before, .faq h2::before, .about h2::before, .contact__intro h2::before, .page-head h1::before {
  content: ""; display: block; width: 2.5rem; height: 4px; background: var(--red); margin-bottom: 1.1rem;
}

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

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.1rem; padding: 0.75rem 1.6rem; border-radius: var(--r);
  border: 1.5px solid var(--red); background: var(--red); color: var(--on-red);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.button:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--on-red); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(198, 40, 50, 0.7); }
.button:active { transform: none; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.button--small { min-height: 2.5rem; padding: 0.4rem 1.1rem; font-size: var(--step--1); }

.link { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.note { color: var(--muted); font-size: var(--step--1); max-width: var(--measure); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 38rem; }

/* --- Шапка ------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px 40px; min-height: 88px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
/* Логотип — готовая композиция «знак над названием» (с. 05), охранное поле не меньше x (с. 06) */
.brand__logo { display: block; height: 60px; width: auto; }
.brand__symbol { display: block; height: 40px; width: auto; }
.brand__latin { font-weight: 600; font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 40rem) { .brand__logo { height: 48px; } }

.logo-mark, .product-mark { display: block; width: 100%; height: 100%; }
.lm-g { fill: var(--graphite); }
.lm-r { fill: var(--red); }

.nav { display: flex; gap: 1.9rem; margin-right: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 0.35rem; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a { flex-shrink: 0; white-space: nowrap; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--red); }

.site-header__end { display: flex; align-items: center; gap: 1rem; }
.langs { display: flex; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.langs li + li { border-left: 1px solid var(--line); }
.langs a { display: block; padding: 0.3rem 0.65rem; font-size: var(--step--1); color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: #ffffff; background: var(--graphite); font-weight: 600; }

@media (max-width: 56rem) {
  .site-header__inner { gap: 0.5rem 1rem; }
  .brand { margin-right: auto; }
  .nav { order: 3; width: 100%; gap: 1.25rem; margin: 0; overflow-x: auto; padding-bottom: 0.25rem; }
  .site-header__end .button { display: none; }
}

/* На телефоне кнопка заявки вынесена вниз экрана: в шапке ей нет места. Показывает её site.js. */
.mobile-cta { display: none; }
@media (max-width: 56rem) {
  .mobile-cta.is-ready {
    display: flex; position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 12px;
    box-shadow: 0 12px 28px -10px rgba(52, 55, 61, 0.55);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .mobile-cta.is-hidden { transform: translateY(160%); opacity: 0; pointer-events: none; }
}

/* --- Первый экран: тёмный, уверенный ----------------------------------- */

.hero {
  position: relative; overflow: hidden; color: #ffffff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, #3e4148 0%, #34373d 55%, #2e3136 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem); }
@media (min-width: 64rem) { .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; } }
.hero h1 { max-width: 19ch; color: #ffffff; }
.hero .lead { max-width: 48ch; margin-top: 16px; color: #d8dadd; }
.hero .button--ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }
.hero .button--ghost:hover { border-color: #ffffff; }

.badge { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.75rem; padding: 0.35rem 0.9rem 0.35rem 0.75rem; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); font-size: var(--step--1); color: #d4d7da; }
.badge__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ok); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 154, 90, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* --- Блок знакомства с продуктом (брендбук, с. 03 и 14) ---------------- */

.product { border-bottom: 1px solid var(--line); background: #ffffff; }
.product__inner { display: grid; gap: 24px 48px; align-items: center; padding-block: 48px; }
@media (min-width: 52rem) { .product__inner { grid-template-columns: auto minmax(0, 1fr); } }
.product__logo { display: block; height: 96px; width: auto; }
.product__title { font-size: var(--step-1); margin-bottom: 8px; }
.product__text p:last-child { color: var(--muted); max-width: 36rem; }
.label { margin: 0 0 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }

/* --- Анимированная схема ----------------------------------------------- */

.drawing { margin: 0; }
.drawing__sheet { position: relative; background: #ffffff; border-radius: var(--r-card); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); padding: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem); }
.drawing__svg { display: block; width: 100%; height: auto; }

.drawing .hatch-line { stroke: var(--line-strong); stroke-width: 1; }
.drawing .hatch-line--fine { stroke: var(--gray-2); }
.drawing .slab { stroke: none; }
.drawing .edge { stroke: var(--graphite); stroke-width: 1.5; }
.drawing .ins { stroke: #8a9096; stroke-width: 1.1; stroke-dasharray: 4 3; transition: stroke .4s; }
.drawing .pipe { fill: #ffffff; stroke: var(--graphite); stroke-width: 2.4; transition: stroke .4s; }
.drawing .label { fill: var(--ink); font-family: var(--font); font-size: 16px; font-variant-numeric: tabular-nums; }
.drawing .label--pipe { text-anchor: middle; font-weight: 500; }
.drawing .label--dim { fill: var(--graphite); font-weight: 600; }
.drawing .label--center { text-anchor: middle; }
.drawing .dim { stroke: var(--muted); stroke-width: 1; marker-start: url(#tick); marker-end: url(#tick); }
.drawing .tick { stroke: var(--muted); stroke-width: 1.5; fill: none; }

.drawing .part-rod { stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; }
.drawing .part-strut { fill: var(--red); }
.drawing .part-clamp { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }

.drawing .part-rod, .drawing .part-clamp { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.3,.7,.2,1); }
.drawing .part-strut { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease) .55s; }
.drawing .part-clamp { transition-delay: 1.05s; }
.drawing .part-dims { transition: opacity .6s ease 1.6s; }
.drawing[data-built="false"] .part-rod,
.drawing[data-built="false"] .part-clamp { stroke-dashoffset: 1; transition: none; }
.drawing[data-built="false"] .part-strut { transform: scaleX(0); transition: none; }
.drawing[data-built="false"] .part-dims { opacity: 0; transition: none; }
.drawing .layer-solution, .drawing .layer-dims { transition: opacity .5s ease; }
.drawing[data-hidden="true"] .layer-solution,
.drawing[data-hidden="true"] .layer-dims { opacity: 0; transition: opacity .5s ease; }

.drawing .scan { opacity: 0; }
.drawing .scan__line { stroke: var(--red); stroke-width: 2; }
.drawing .scan__glow { fill: var(--red); opacity: 0.07; }
.drawing[data-scanning="true"] .scan { opacity: 1; animation: drawing-scan 1.7s cubic-bezier(.45,0,.55,1) forwards; }
.drawing[data-scanning="true"] .pipe,
.drawing[data-scanning="true"] .ins { stroke: var(--red); }
@keyframes drawing-scan { from { transform: translateX(0); } to { transform: translateX(520px); } }

.drawing__pause { position: absolute; right: 1rem; bottom: 1rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; cursor: pointer; background: #ffffff; border: 1px solid var(--line-strong); color: var(--ink); }
.drawing__pause:hover { border-color: var(--red); color: var(--red); }
.drawing__pause svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.drawing__pause .icon-play { fill: currentColor; stroke-width: 1.5; }
.drawing__pause[aria-pressed="false"] .icon-play,
.drawing__pause[aria-pressed="true"] .icon-pause { display: none; }

.drawing__bar { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; margin-top: 1.1rem; }
.drawing__phase { margin: 0; font-size: var(--step--1); font-weight: 500; color: #ffffff; }
.segmented { display: inline-flex; align-items: center; gap: 0.4rem; border: 0; margin: 0; padding: 0; }
.segmented legend { float: left; margin-right: 0.6rem; font-size: var(--step--1); color: #a9aeb3; padding: 0; }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span { display: inline-block; padding: 0.3rem 0.9rem; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, 0.3); color: #ffffff; font-variant-numeric: tabular-nums; font-size: var(--step--1); transition: background-color .2s, border-color .2s; }
.segmented input:checked + span { background: var(--red); border-color: var(--red); }
.segmented input:focus-visible + span { outline: 3px solid rgba(198, 40, 50, 0.5); outline-offset: 2px; }
.drawing figcaption { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-top: 0.75rem; font-size: var(--step--1); color: #a9aeb3; }
.drawing__note { flex-basis: 100%; }

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

.section { padding-block: var(--section); }
.section--tight { padding-block: 0 var(--section); }
.section--tint { background: var(--gray); }
.section__title { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }

.idea { display: grid; gap: 1.5rem 4rem; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 56rem) { .idea { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.idea__title { font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3.1rem); letter-spacing: -0.03em; max-width: 14ch; }
#services .idea__title { max-width: none; }
@media (min-width: 56rem) { #services .idea { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.idea__text { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: var(--measure); }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 52rem) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { background: #ffffff; padding: 2rem 1.75rem; position: relative; }
.pillar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red); transition: width .45s var(--ease); }
.pillar:hover::after { width: 100%; }
.pillar h3 { margin: 1.25rem 0 0.6rem; }
.pillar__number { display: block; color: var(--red); font-size: 2.5rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.pillar p { color: var(--muted); }

.icon { width: 3rem; height: 3rem; }
.icon__line { fill: none; stroke: var(--graphite); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon__line--accent { stroke: var(--red); stroke-width: 3; }
.icon__line--on-accent { stroke: #ffffff; stroke-width: 2.5; }
.icon__fill-soft { fill: var(--gray-2); }
.icon__fill-accent { fill: var(--red); }
.icon__fill-white { fill: #ffffff; }
.pillar .icon { transition: transform .5s var(--ease); }
.pillar:hover .icon { transform: translateY(-3px); }

@media (min-width: 52rem) { .pillars--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .pillars--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Опыт и инструменты */

/* Сравнение «обычный подход / с Проектором» */
.compare { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare__col { border-radius: var(--r-card); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.compare__col h3 { margin-bottom: 1.5rem; }
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.compare__col li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; }
.compare__col li::before { content: ""; width: 1.5rem; height: 1.5rem; border-radius: 50%; margin-top: 0.05rem; background-repeat: no-repeat; background-position: center; }
.compare__col--manual { background: #ffffff; border: 1px solid var(--line); color: var(--muted); }
.compare__col--manual h3 { color: var(--ink); }
.compare__col--manual li::before { background-color: var(--gray-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' stroke='%235d6166' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 1rem; }
.compare__col--auto { background: var(--graphite); color: #ffffff; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.compare__col--auto li::before { background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 1.05rem; }

/* --- «Живое» окно плагина ---------------------------------------------- */

.demo { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .demo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; } }
.demo__intro h2 { margin-bottom: 1rem; }
.demo__intro > p:not(.note) { font-size: var(--step-1); color: var(--muted); max-width: 30rem; }

.plugin { background: #ffffff; border-radius: var(--r-card); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; font-size: 0.92rem; }
.plugin__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.9rem; background: var(--dark-2); color: #ffffff; font-size: 0.85rem; font-weight: 500; border-bottom: 1px solid var(--dark-2); }
.plugin__app { display: inline-flex; align-items: center; gap: 8px; }
/* На тёмном носителе знак — на белом поле (с. 08) */
.plugin__plate { display: grid; place-items: center; width: 24px; height: 24px; padding: 3px; background: #ffffff; border-radius: 2px; }

.plugin__controls { display: inline-flex; gap: 0.9rem; }
.plugin__controls i { display: block; width: 0.65rem; height: 0.65rem; border: 1.5px solid rgba(255,255,255,.7); border-radius: 1px; }
.plugin__controls i:first-child { height: 0; border-width: 1.5px 0 0; margin-top: 0.5rem; }
.plugin__controls i:last-child { border: 0; position: relative; }
.plugin__controls i:last-child::before, .plugin__controls i:last-child::after { content: ""; position: absolute; left: 50%; top: -0.1rem; height: 0.85rem; border-left: 1.5px solid rgba(255,255,255,.7); }
.plugin__controls i:last-child::before { transform: rotate(45deg); }
.plugin__controls i:last-child::after { transform: rotate(-45deg); }
.plugin__log { list-style: none; margin: 0; padding: 1rem 1.1rem 0.5rem; display: grid; gap: 0.15rem; min-height: 19rem; font-family: var(--mono); font-size: 0.82rem; }
.plugin__line { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.5rem; align-items: center; padding: 0.4rem 0.5rem; border-radius: var(--r); color: var(--ink); transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .35s; }
.plugin__line--done { background: var(--ok-soft); color: #1f6b41; font-weight: 600; }
.plugin__status { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--graphite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat; }
.plugin__line--done .plugin__status, .plugin__line.is-ok .plugin__status { background-color: var(--ok); }
.plugin--armed .plugin__line { opacity: 0; transform: translateY(6px); }
.plugin--armed .plugin__line.is-shown { opacity: 1; transform: none; }
.plugin--armed .plugin__line.is-running .plugin__status { background: none; border: 2px solid var(--gray-2); border-top-color: var(--red); animation: spin .8s linear infinite; }
.plugin--armed .plugin__line--done:not(.is-ok) { background: transparent; }
.plugin--armed.is-resetting .plugin__line { opacity: 0; transition-duration: .5s; }
.plugin__progress { height: 4px; margin: 0.5rem 1.1rem 1.1rem; background: var(--gray-2); overflow: hidden; }
.plugin__progress span { display: block; height: 100%; width: 100%; background: var(--graphite); transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform .5s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Факты ------------------------------------------------------------- */

.facts { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .facts { grid-template-columns: 1.15fr 1fr; } }
.facts__item { border-radius: var(--r-card); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: #ffffff; border: 1px solid var(--line); }
.facts__item h2 { font-size: var(--step-1); margin-bottom: 0.9rem; }
.facts__item p { color: var(--muted); max-width: 36rem; }
.facts__item--status { background: var(--dark); border-color: var(--dark); color: #ffffff; }
.facts__item--status p { color: #d8dadd; }
.facts__item--status h2::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.6rem; border-radius: 50%; background: var(--ok); vertical-align: 0.15em; animation: pulse 2.4s ease-out infinite; }
.chips { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.35rem 0.85rem; border-radius: var(--r); background: var(--gray); border: 1px solid var(--line); font-size: var(--step--1); }

.about { display: grid; gap: 1rem 4rem; }
@media (min-width: 56rem) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.about p { font-size: var(--step-1); color: var(--muted); max-width: var(--measure); }

/* --- Вопросы и ответы -------------------------------------------------- */

.faq { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 56rem) { .faq { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: start; } }
.faq__list { border-top: 2px solid var(--graphite); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0.25rem; font-weight: 500; transition: color .2s; }
.faq__item summary:hover { color: var(--red); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.faq__item[open] summary { color: var(--red); }
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p { margin: 0; padding: 0 0.25rem 1.3rem; color: var(--muted); max-width: 44rem; }
.faq__item[open] p { animation: rise .45s var(--ease) both; }

/* --- Блок связи -------------------------------------------------------- */

.contact { padding-bottom: var(--section); }
.contact__panel {
  display: grid; gap: 2.5rem; border-radius: var(--r-card); color: #ffffff; padding: clamp(1.5rem, 0.75rem + 3.5vw, 4rem);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--dark);
}
@media (min-width: 60rem) { .contact__panel { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; } }
.contact__intro h2 { margin-bottom: 1rem; }
.contact__intro > p { color: #d8dadd; font-size: var(--step-1); max-width: 30rem; }
.contact__intro a { color: #ffffff; }
.contact__facts { margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact__facts dt { font-size: var(--step--1); color: #a9aeb3; }
.contact__facts dd { margin: 0.15rem 0 0; font-weight: 500; }
.contact__card { background: #ffffff; color: var(--ink); border-radius: var(--r-card); padding: clamp(1.25rem, 0.75rem + 2vw, 2.25rem); box-shadow: var(--shadow); }

.form__title { margin-bottom: 1.5rem; }
.form__alert { border-left: 4px solid var(--danger); padding: 0.75rem 1rem; background: var(--red-soft); color: var(--danger); margin-bottom: 1.5rem; }
.form__row { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 500; font-size: var(--step--1); margin-bottom: 0.4rem; }
.field__optional { color: var(--muted); font-weight: 400; }
.field__hint { color: var(--muted); font-size: 0.85rem; margin: -0.1rem 0 0.45rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--gray);
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0.7rem 0.9rem; min-height: 3rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 8.5rem; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #ffffff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.12); }
.field.field--error input, .field.field--error select, .field.field--error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.85rem; margin: 0.35rem 0 0; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.7rem; align-items: start; margin-bottom: 1.75rem; }
.field--check input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--red); }
.field--check label { font-weight: 400; margin: 0; color: var(--muted); }
.field--check .field__error { grid-column: 2; }
.form .button { width: 100%; }
@media (min-width: 40rem) { .form .button { width: auto; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success__icon { width: 4rem; height: 4rem; margin-bottom: 1.25rem; }
.form-success__icon circle { fill: rgba(43, 154, 90, 0.12); }
.form-success__icon path { fill: none; stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); }
.form-success p:last-child { margin-top: 1.5rem; }

/* Кружка с паром */
.mug { margin: 2.5rem 0 0; display: flex; align-items: flex-end; gap: 1rem; }
.mug svg { width: 10rem; height: auto; flex: none; overflow: visible; }
.mug figcaption { color: #d8dadd; font-size: var(--step--1); max-width: 12rem; padding-bottom: 1rem; }
.mug__body { fill: url(#mug-ceramic); }
.mug__rim { fill: #eeeeee; }
.mug__coffee { fill: #5b3a24; }
.mug__handle { fill: none; stroke: #ffffff; stroke-width: 9; stroke-linecap: round; }
.mug__shadow { fill: rgba(0, 0, 0, 0.35); }
.mug__steam { filter: blur(1.2px); }
.mug__wisp { fill: none; stroke: rgba(255, 255, 255, 0.8); stroke-width: 6; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: steam 4.5s ease-in-out infinite; }
.mug__wisp--2 { animation-delay: 1.5s; }
.mug__wisp--3 { animation-delay: 3s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(12px) scaleY(0.8) skewX(0deg); }
  20% { opacity: 0.9; }
  50% { transform: translateY(-4px) scaleY(1) skewX(7deg); }
  75% { opacity: 0.45; }
  100% { opacity: 0; transform: translateY(-24px) scaleY(1.12) skewX(-7deg); }
}

/* --- Внутренние страницы (политика, 404) ------------------------------- */

.page-head { background: var(--gray); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.page-head--message { min-height: 55vh; margin-bottom: 0; }
.page-head--message .lead { margin-top: 1rem; }
.prose-doc { max-width: var(--measure); padding-bottom: var(--section); }
.prose-doc h2 { font-size: var(--step-1); margin: 2rem 0 0.5rem; }
.prose-doc h2:first-child { margin-top: 0; }

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

.site-footer { background: var(--dark); color: #d8dadd; font-size: var(--step--1); }
.site-footer a { color: #e6e8ea; }
.site-footer a:hover { color: #ffffff; }
.site-footer p { margin: 0 0 0.3rem; }
.site-footer__inner { display: grid; align-items: start; gap: 2rem 3rem; padding-block: 2.5rem; }
@media (min-width: 52rem) { .site-footer__inner { grid-template-columns: 1.2fr 1fr; } }
.site-footer__about { display: flex; align-items: center; gap: 1.5rem; }
.site-footer__brand { flex: 0 0 auto; margin: 0 !important; }
@media (max-width: 30rem) { .site-footer__about { flex-direction: column; align-items: flex-start; } }
.site-footer__logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-footer__logo img { display: block; max-width: 100%; height: auto; }
.site-footer__logo span { font-weight: 600; letter-spacing: 0.08em; }
.site-footer__details { max-width: 23rem; }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin: 0; }
.site-footer__contact a { display: inline-block; font-weight: 400; text-decoration: none; overflow-wrap: anywhere; }
.site-footer__contact .site-footer__email { font-weight: 500; }
.site-footer__about p:last-child { max-width: 24rem; line-height: 1.6; }
.site-footer__name { color: #ffffff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 2rem; border-top: 1px solid rgba(255,255,255,.12); padding-block: 1rem; color: #b9bcc1; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: inherit; text-underline-offset: 0.25em; }

/* --- Анимации ---------------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__text > *, .page-head--animated .wrap > * { animation: rise .8s var(--ease) both; }
.hero__text > :nth-child(2), .page-head--animated .wrap > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3), .page-head--animated .wrap > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__figure { animation: rise 1s var(--ease) .2s both; }

[data-reveal].reveal-pending { opacity: 0; transform: translateY(28px); }
[data-reveal].reveal-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].reveal-in.pillar:nth-child(2), [data-reveal].reveal-in.compare__col--auto, [data-reveal].reveal-in.facts__item--status { transition-delay: .12s; }
[data-reveal].reveal-in.pillar:nth-child(3) { transition-delay: .24s; }
[data-reveal][data-stagger].reveal-in { transition-delay: calc(var(--i, 0) * 70ms); }


.facts__item, .compare__col--manual { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.facts__item:hover, .compare__col--manual:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

#services, #benefits, #product, #faq, #contact, #contact-form { scroll-margin-top: 104px; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
  .mug__wisp { opacity: 0.6; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
