:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-alt: #e6e9ef;
  --dark: #14171c;
  --dark-elev: #1d222b;
  --ink: #14171c;
  --muted: #4b5262;
  --accent: #1d4ed8;
  --accent-hover: #173da6;
  --accent-ink: #ffffff;
  --line: #cfd5e0;
  --line-strong: #9ca5b5;
  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-text: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@view-transition {
  navigation: auto;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html:not(.lenis) {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow, .mono-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

section[id] {
  scroll-margin-top: 84px;
}

/* ШАПКА */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 244, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(20, 23, 28, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  padding: 0.45rem 0.6rem;
  background: var(--dark);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  border-left: 4px solid var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.header-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.header-phone:hover {
  color: var(--accent);
}

.header-hours {
  font-size: 0.76rem;
  color: var(--muted);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* КНОПКИ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85em 1.55em;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--accent-ink);
}

.btn-full {
  width: 100%;
}

/* ПЕРВЫЙ ЭКРАН: РАЗВОРОТ ДО КРАЯ */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(to right, rgba(207, 213, 224, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(207, 213, 224, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: calc(100svh - 76px);
  align-items: stretch;
}

.hero-text-col {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.25rem) clamp(2.5rem, 5vw, 4.5rem) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(243, 244, 246, 0.92);
  border-right: 1px solid var(--line-strong);
}

.dim-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.dim-line {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  position: relative;
}

.hero h1 {
  font-size: clamp(2.35rem, 1.3rem + 2.8vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.hero-trust {
  margin-top: 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
}

.trust-stamp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 1.1rem;
  border-right: 1px solid var(--line);
}

.stamp-num {
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.stamp-label {
  font-size: 0.82rem;
  line-height: 1.25;
  max-width: 19ch;
  color: var(--ink);
}

.trust-meta p {
  font-size: 0.88rem;
  color: var(--muted);
}

.trust-meta strong {
  color: var(--ink);
  font-family: var(--font-mono);
}

.hero-media-col {
  position: relative;
  min-height: 100%;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-blueprint-tag {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  max-width: 390px;
  background: var(--dark);
  color: var(--accent-ink);
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-blueprint-tag .mono-code {
  color: #93c5fd;
}

.hero-blueprint-tag strong {
  font-size: 1.05rem;
}

.hero-blueprint-tag span:last-child {
  font-size: 0.84rem;
  color: #cbd5e1;
}

/* ЗАГОЛОВКИ СЕКЦИЙ */
.section-head-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.section-head-split h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 3.1rem);
  margin-top: 0.45rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.02rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.15rem;
}

/* СЕКЦИЯ 2: КАТАЛОГ С ГЕРОЕМ 2x2 */
.section-catalog {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.catalog-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cat-card-hero {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--dark);
  color: var(--accent-ink);
  border-color: var(--dark);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.cat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.cat-card-hero .cat-card-top {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.cat-code {
  color: var(--accent);
  font-weight: 600;
}

.cat-card-hero .cat-code {
  color: #93c5fd;
}

.cat-spec {
  color: var(--muted);
}

.cat-card-hero .cat-spec {
  color: #cbd5e1;
}

.cat-drawing {
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  padding: 0.85rem;
  color: var(--ink);
}

.cat-card-hero .cat-drawing {
  background: #1d222b;
  border-color: rgba(255, 255, 255, 0.2);
  color: #f3f4f6;
  padding: 1.25rem;
}

.cat-drawing svg {
  width: 100%;
  height: auto;
}

.cat-card h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.cat-card-hero h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  margin-bottom: 0.65rem;
}

.cat-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.cat-card-hero p {
  color: #d1d5db;
  font-size: 1.02rem;
}

.cat-features {
  margin-block: 1rem;
  display: grid;
  gap: 0.45rem;
}

.cat-features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.93rem;
  color: #e5e7eb;
}

.cat-features li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-size: 0.7rem;
  top: 0.22rem;
}

.cat-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cat-card-hero .cat-footer {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.cat-price {
  display: flex;
  flex-direction: column;
}

.cat-price small {
  font-size: 0.75rem;
  color: var(--muted);
}

.cat-card-hero .cat-price small {
  color: #9ca3af;
}

.cat-price strong {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--line-strong);
}

.cat-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.cat-card-hero .cat-link {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.cat-card-hero .cat-link:hover {
  background: #ffffff;
  color: var(--dark);
}

/* СЕКЦИЯ 3: ГОРИЗОНТАЛЬНАЯ ЛЕНТА НА ВЕРТИКАЛЬНОМ СКРОЛЛЕ */
.works-pin-section {
  background: var(--dark);
  color: var(--accent-ink);
  border-block: 1px solid var(--line-strong);
}

.works-pin-stage {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
}

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.works-head .eyebrow {
  color: #93c5fd;
}

.works-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  max-width: 24ch;
  margin-top: 0.35rem;
}

.works-progress-hint .mono-code {
  color: #93c5fd;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.works-track-viewport {
  width: 100%;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.works-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  transform: translate3d(calc(var(--nb-p, 0) * -54%), 0, 0);
  will-change: transform;
}

.work-slide {
  width: clamp(320px, 44vw, 560px);
  background: var(--dark-elev);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
}

.work-img-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.work-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.work-slide:hover .work-img-box img {
  transform: scale(1.03);
}

.work-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

.work-info {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #93c5fd;
}

.work-info h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.work-info p {
  font-size: 0.92rem;
  color: #cbd5e1;
}

.work-specs-row {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.work-specs-row small {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
}

.work-specs-row strong {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

/* СЕКЦИЯ 4: БЕНТО ИЗ 5 ЯЧЕЕК */
.section-bento {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-cell {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.bento-big-stat {
  grid-column: span 7;
  background: var(--surface-alt);
}

.bento-stat-number {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 5vw, 4.75rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.bento-flex-client {
  grid-column: span 5;
  background: var(--dark);
  color: var(--accent-ink);
}

.bento-flex-client .bento-tag {
  color: #93c5fd;
}

.bento-flex-client p {
  color: #d1d5db;
}

.sketch-demo {
  margin-top: auto;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(147, 197, 253, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.sketch-arrow {
  color: #60a5fa;
}

.bento-weld {
  grid-column: span 4;
}

.bento-icon {
  width: 48px;
  height: 48px;
}

.bento-paint {
  grid-column: span 4;
}

.bento-quote {
  grid-column: span 4;
  background: #edf2ff;
  border-color: #93c5fd;
  justify-content: space-between;
}

.bento-quote blockquote {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.quote-author {
  padding-top: 0.85rem;
  border-top: 1px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  font-size: 0.84rem;
}

.quote-author span {
  color: var(--muted);
}

/* СЕКЦИЯ 5: НАСТОЯЩАЯ ТАБЛИЦА ЦЕН И МЕТАЛЛА */
.section-table {
  padding-block: clamp(3.5rem, 6vw, 6rem);
  background: var(--surface);
  border-block: 1px solid var(--line-strong);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  background: var(--surface);
}

.spec-table th,
.spec-table td {
  padding: 1.1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table thead th {
  background: var(--dark);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.spec-table tbody tr:hover {
  background: #f8fafc;
}

.td-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.mono-cell {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.price-cell {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* СЕКЦИЯ 6: СТОПКА КАРТОЧЕК (STICKY) */
.section-process {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.process-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.process-intro {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.process-intro h2 {
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.85rem);
}

.process-intro p {
  color: var(--muted);
}

.process-callout {
  margin-top: 0.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.process-callout span {
  font-size: 0.9rem;
  color: var(--muted);
}

.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stack-card {
  position: sticky;
  top: calc(92px + var(--step-idx, 1) * 20px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 -8px 24px rgba(20, 23, 28, 0.05);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.stack-card h3 {
  font-size: 1.4rem;
}

.stack-card p {
  color: var(--muted);
}

/* СЕКЦИЯ 7: ВОПРОСЫ-ОТВЕТЫ В ДВЕ КОЛОНКИ */
.section-faq {
  padding-block: clamp(4rem, 7vw, 6.5rem);
  background: var(--surface-alt);
  border-top: 1px solid var(--line-strong);
}

.faq-two-col {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.faq-left h2 {
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem);
  margin-bottom: 1rem;
}

.faq-left p {
  color: var(--muted);
}

.faq-left a {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.faq-right {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 1.35rem;
  color: var(--muted);
  max-width: 66ch;
}

/* СЕКЦИЯ 8: ЗАЯВКА И КАЛЬКУЛЯТОР */
.section-order {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  background: var(--dark);
  color: var(--accent-ink);
}

.order-box {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.order-info h2 {
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem);
}

.order-lead {
  color: #cbd5e1;
}

.calc-preview {
  padding: 1.25rem;
  background: var(--dark-elev);
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calc-preview .mono-code {
  color: #93c5fd;
}

.calc-preview strong {
  font-size: 1.05rem;
}

.calc-preview span:last-child {
  font-size: 0.86rem;
  color: #9ca3af;
}

.direct-contacts {
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.direct-item small {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
}

.direct-phone {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.direct-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.msg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.88rem;
  font-weight: 600;
}

.msg-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.msg-chip img {
  filter: brightness(0) invert(1);
}

.order-form-wrap {
  background: var(--surface);
  color: var(--ink);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line-strong);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-pills {
  border: none;
}

.product-pills legend {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-option {
  cursor: pointer;
}

.pill-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-option span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.pill-option input:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.pill-option input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field span {
  font-size: 0.88rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: var(--muted);
  cursor: pointer;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.consent-check a {
  text-decoration: underline;
  color: var(--ink);
}

.form-error {
  padding: 0.75rem 1rem;
  background: #fee2e2;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.form-success {
  padding: 1.25rem;
  background: #dcfce7;
  border-left: 4px solid #16a34a;
  color: #14532d;
}

/* ФУТЕР */
.site-footer {
  background: #0f1217;
  color: #cbd5e1;
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-text strong {
  color: #ffffff;
}

.footer-desc {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 44ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.footer-col strong {
  color: #ffffff;
  font-size: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a:hover {
  color: #93c5fd;
}

.footer-phone {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-pay {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
  padding: 0.35rem 0.75rem;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 600;
}

.privacy-block {
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #9ca3af;
}

.privacy-block summary {
  cursor: pointer;
  font-weight: 600;
  color: #cbd5e1;
}

.privacy-block p {
  margin-top: 0.6rem;
}

.footer-bottom {
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ЛИПКАЯ ПАНЕЛЬ НА ТЕЛЕФОНЕ */
.mobile-sticky-bar {
  display: none;
}

/* АДАПТИВ: 1024px / 900px */
@media (max-width: 960px) {
  .burger {
    display: inline-flex;
  }

  .header-contacts {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--accent);
    padding: 1.5rem var(--gutter);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.25s var(--ease), visibility 0.25s;
  }

  .main-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-grid,
  .section-head-split,
  .process-layout,
  .faq-two-col,
  .order-box,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-text-col {
    padding: 2rem var(--gutter);
    border-right: none;
  }

  .hero-photo-wrap {
    min-height: 44svh;
    max-height: 52svh;
  }

  .catalog-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .cat-card-hero {
    grid-column: span 2;
  }

  .bento-big-stat,
  .bento-flex-client,
  .bento-weld,
  .bento-paint,
  .bento-quote {
    grid-column: span 12;
  }

  .process-intro {
    position: static;
  }

  . works-pin-stage {
    min-height: auto;
  }

  .works-track {
    transform: none !important;
    flex-direction: column;
    width: 100%;
  }

  .work-slide {
    width: 100%;
  }
}

/* АДАПТИВ: 640px */
@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 8.5vw, 2.65rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .trust-stamp {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
  }

  .hero-blueprint-tag {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .catalog-showcase,
  .form-row {
    grid-template-columns: 1fr;
  }

  .cat-card-hero {
    grid-column: span 1;
  }

  .work-specs-row {
    grid-template-columns: 1fr;
  }

  .stack-card {
    position: static;
  }

  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(20, 23, 28, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mobile-sticky-bar[hidden] {
    display: none;
  }

  .sticky-call,
  .sticky-order {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
  }

  .sticky-call {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .sticky-order {
    background: var(--accent);
    color: #ffffff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .works-track {
    transform: none !important;
  }
}
</style>