/* TMS CORE — site styles */
:root {
  --bg: #0a0d12;
  --bg-soft: #0f131a;
  --panel: #11161f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9e7e2;
  --muted: #98a2b3;
  --muted-2: #6f7887;
  --accent: #ffb454;
  --accent-2: #ff8f3f;
  --accent-soft: rgba(255, 180, 84, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(255, 180, 84, 0.10), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(90, 140, 255, 0.07), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 180, 84, 0.28); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px;
  padding: 10px 16px; background: var(--accent); color: #14100a;
  border-radius: 8px; font-weight: 600; z-index: 100;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 18, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: 0.08em; font-size: 0.95rem; }
.logo-emoji {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: 10px;
  font-size: 17px; line-height: 1;
}
.logo-text b { color: var(--accent); font-weight: 700; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 0.93rem; transition: color 0.18s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.header-cta { margin-left: 4px; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; padding: 10px;
  background: transparent; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: transform 0.16s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #17110a; box-shadow: 0 10px 30px -12px rgba(255, 160, 60, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 34px -12px rgba(255, 160, 60, 0.7); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 180, 84, 0.55); color: var(--accent); }

/* Hero */
.hero { padding: clamp(72px, 10vh, 124px) 0 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.06; letter-spacing: -0.03em; font-weight: 700;
  max-width: 20ch;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.hero-sub { margin: 0 0 34px; max-width: 62ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.13rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 64px 0 0; padding: 26px 0 0; list-style: none;
  border-top: 1px solid var(--border);
}
.stats li { padding: 4px 24px; border-left: 1px solid var(--border); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b {
  display: block; font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stats span { color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: 96px 0; }
.section-alt {
  background: rgba(255, 255, 255, 0.016);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 {
  margin: 0 0 14px; font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12; letter-spacing: -0.02em;
}
.section-sub { margin: 0; color: var(--muted); }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.card h3 { margin: 0 0 10px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.tag {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted);
}
.tag-accent { border-color: rgba(255, 180, 84, 0.5); color: var(--accent); background: var(--accent-soft); }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.92rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
  opacity: 0.75; transform: rotate(45deg);
}
.ticks-lg { gap: 14px; }
.ticks-lg li { font-size: 1rem; color: var(--text); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature h3 { margin: 16px 0 8px; font-size: 1.06rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.feature-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; background: var(--accent-soft);
  border: 1px solid rgba(255, 180, 84, 0.28);
  color: var(--accent); font-size: 1.05rem; font-family: var(--mono);
}

/* Split layout */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
.split .section-head { margin-bottom: 26px; }

.auto-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.auto-list li { position: relative; padding-left: 30px; color: var(--text); }
.auto-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; display: grid; place-items: center;
  color: #17110a; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 6px; font-size: 0.72rem; font-weight: 700;
}

.cycle { padding: 30px; }
.cycle-list { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.cycle-list li { position: relative; padding-left: 40px; counter-increment: step; }
.cycle-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid rgba(255, 180, 84, 0.45); border-radius: 50%;
  color: var(--accent); font-family: var(--mono); font-size: 0.78rem;
}
.cycle-list b { display: block; font-size: 0.98rem; }
.cycle-list span { color: var(--muted); font-size: 0.88rem; }

/* Brands */
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.brand-chip {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono); font-size: 0.88rem; color: var(--text);
}
.brand-chip-muted { color: var(--muted-2); }

.monitor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Network */
.netcard { display: grid; gap: 18px; padding: 32px; }
.netstat { display: flex; align-items: baseline; gap: 12px; }
.netstat + .netstat { border-top: 1px solid var(--border); padding-top: 18px; }
.netstat b { font-size: 2rem; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.netstat span { color: var(--muted); }

/* Vision + integrations */
.dual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dual-card { padding: 34px; }
.dual-card .tag { margin-bottom: 16px; }
.dual-card h3 { font-size: 1.4rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.dual-card p { margin: 0 0 18px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: 1fr; gap: 26px; }
.shot { margin: 0; }
.shot-frame {
  position: relative; aspect-ratio: 2.87 / 1;
  border: 1px solid var(--border-strong); border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.35s ease;
}
.shot.loaded .shot-frame { aspect-ratio: auto; }
.shot.loaded img {
  position: static; height: auto; object-fit: contain;
  opacity: 1;
}
.shot-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted-2); text-align: center; padding: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.014) 0 14px, transparent 14px 28px);
}
.shot-glyph { font-size: 1.7rem; color: var(--accent); opacity: 0.85; }
.shot-placeholder > span:not(.shot-glyph) { font-size: 0.98rem; color: var(--muted); }
.shot-placeholder small { font-family: var(--mono); font-size: 0.72rem; color: var(--muted-2); }
.shot.loaded .shot-placeholder { display: none; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.shot figcaption b { color: var(--text); font-weight: 600; }

/* Services */
.service-card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 38px; border-radius: var(--radius);
  border: 1px solid rgba(255, 180, 84, 0.30);
  background:
    radial-gradient(600px 220px at 90% 0%, rgba(255, 180, 84, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.service-main h3 { margin: 14px 0 10px; font-size: 1.5rem; letter-spacing: -0.01em; }
.service-main p { margin: 0; color: var(--muted); max-width: 58ch; }
.service-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.service-domain { font-family: var(--mono); font-size: 1.15rem; color: var(--accent); }
.service-note { color: var(--muted-2); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 720px; }
.contact { display: flex; flex-direction: column; gap: 6px; transition: border-color 0.18s ease, transform 0.16s ease; }
.contact:hover { border-color: rgba(255, 180, 84, 0.5); transform: translateY(-2px); }
.contact-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.contact-value { font-family: var(--mono); font-size: 1.05rem; color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; gap: 10px; padding: 26px 0 34px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--muted); flex-wrap: wrap;
}
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }
.footer-sep { color: var(--muted-2); }

/* Reveal (only when JS enabled) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .contact, .shot img { transition: none; }
}

/* Focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Responsive */
@media (max-width: 1040px) {
  .nav { gap: 16px; }
  .header-cta { display: none; }
}

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .monitor-grid { grid-template-columns: 1fr; }
  .dual { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stats li { padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    padding: 10px 20px 18px;
    background: rgba(10, 13, 18, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--border); }
  .nav a:first-child { border-top: 0; }
  .nav-toggle { display: block; }
  .service-card { flex-direction: column; align-items: flex-start; }
  .service-side { align-items: flex-start; }
  .contacts { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats { margin-top: 48px; }
  .dual-card { padding: 26px; }
}

/* Stack gallery */
.stack { position: relative; height: 380px; }
.stack .shot {
  position: absolute; left: 50%; top: 50%;
  width: min(620px, 66%);
  margin: 0;
  transform:
    translate(-50%, -50%)
    translateX(calc((var(--i) - var(--c)) * (16px + var(--spread, 0) * min(92px, 7vw))))
    translateY(calc((var(--i) - var(--c)) * (var(--spread, 0) * 16px - 2px)))
    rotate(calc((var(--i) - var(--c)) * (1.3deg + var(--spread, 0) * 2.4deg)))
    scale(calc(1 - max(var(--i) - var(--c), var(--c) - var(--i)) * (0.018 - var(--spread, 0) * 0.008)));
  transition: transform 0.22s ease-out;
  will-change: transform;
}
.stack .shot-frame { aspect-ratio: 2.87 / 1; }
.stack .shot.loaded .shot-frame { aspect-ratio: 2.87 / 1; }
.stack .shot img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.stack .shot.loaded img { position: absolute; height: 100%; object-fit: cover; }
.stack .shot.hovered { z-index: 99; transform: translate(-50%, -58%) rotate(0deg) scale(1.04); }
.stack figcaption {
  position: absolute; left: 10px; bottom: 8px; margin: 0;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(10, 13, 18, 0.82);
  border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
  backdrop-filter: blur(6px);
}
.stack figcaption b { color: var(--text); }
.stack .shot.hovered figcaption { opacity: 1; }
.stack-hint {
  margin: 10px 0 0; text-align: center; color: var(--muted-2);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .stack { height: auto; display: grid; gap: 18px; }
  .stack .shot { position: static; width: 100%; transform: none !important; }
  .stack figcaption {
    position: static; opacity: 1; margin-top: 8px;
    background: none; border: 0; padding: 0; backdrop-filter: none;
  }
  .stack-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stack { height: auto; display: grid; gap: 18px; }
  .stack .shot { position: static; width: 100%; transform: none !important; }
  .stack figcaption {
    position: static; opacity: 1; margin-top: 8px;
    background: none; border: 0; padding: 0; backdrop-filter: none;
  }
  .stack-hint { display: none; }
}

/* Колода: раздвинута всегда, наведение — крупно */
.stack { --spread: 0.7; height: 440px; }
.stack .shot { transition: transform 0.22s ease-out, opacity 0.2s ease; }
.stack .shot.hovered {
  z-index: 99;
  transform: translate(-50%, -62%) rotate(0deg) scale(1.16);
}
.stack.focus .shot:not(.hovered) { opacity: 0.5; }
.stack .shot.hovered .shot-frame {
  border-color: rgba(255, 180, 84, 0.5);
  box-shadow: 0 34px 90px -24px rgba(0, 0, 0, 0.95);
}

/* Фокус на карточке: соседние не мешают */
.stack.focus { --spread: 1; }
.stack.focus .shot:not(.hovered) {
  opacity: 0.25;
  filter: saturate(0.6) brightness(0.65);
}
.stack .shot { transition: transform 0.22s ease-out, opacity 0.2s ease, filter 0.2s ease; }
.stack .shot.hovered {
  transform: translate(-50%, -62%) rotate(0deg) scale(1.2);
}

/* Ховер: увеличиваем на месте, без «убегания» из-под курсора */
.stack .shot.hovered {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.2) !important;
  opacity: 1 !important;
  filter: none !important;
  z-index: 99;
}

/* На фокусе остальные убираем совсем — никакой «прозрачности» */
.stack.focus .shot:not(.hovered) { opacity: 0; filter: none; }

/* Полный разлёт без перекрытий: каждая карточка доступна, ховер — в центр и крупно */
.stack { --spread: 1; --step: min(184px, 16.6%); height: 330px; }
.stack .shot {
  width: min(172px, 15.4%);
  left: calc(50% + (var(--i) - var(--c)) * var(--step));
  transform:
    translate(-50%, -50%)
    translateY(calc(max(var(--i) - var(--c), var(--c) - var(--i)) * 8px))
    rotate(calc((var(--i) - var(--c)) * 2deg));
}
.stack .shot.hovered {
  transform: translate(calc(-50% - (var(--i) - var(--c)) * var(--step)), -50%) rotate(0deg) scale(3) !important;
  opacity: 1 !important;
  filter: none !important;
  z-index: 99;
}
.stack.focus .shot:not(.hovered) {
  opacity: 0.35;
  filter: saturate(0.5) brightness(0.7);
}

/* Колода: подписи не масштабируются, шаг в vw для чёткого центрирования */
.stack { --step: min(184px, 16.6vw); }
.stack figcaption { display: none; }

/* Чёткое увеличение через ширину + крупнее карточки (5 шт.) */
.stack { --spread: 1; --step: min(222px, 20vw); height: 340px; }
.stack .shot {
  width: min(210px, 19%);
  left: calc(50% + (var(--i) - var(--c)) * var(--step));
  will-change: auto;
  transition: width 0.25s ease-out, transform 0.25s ease-out, opacity 0.2s ease, filter 0.2s ease;
  transform:
    translate(-50%, -50%)
    translateY(calc(max(var(--i) - var(--c), var(--c) - var(--i)) * 8px))
    rotate(calc((var(--i) - var(--c)) * 2deg));
}
.stack .shot.hovered {
  width: min(630px, 56%);
  transform: translate(calc(-50% - (var(--i) - var(--c)) * var(--step)), -50%) rotate(0deg) !important;
  opacity: 1 !important;
  filter: none !important;
  z-index: 99;
}

/* Итоговая колода: наложение, выбор по видимой полосе, резкое увеличение */
.stack { --step: min(150px, 13.5vw); height: 480px; }
.stack .shot {
  width: min(300px, 27%);
  left: calc(50% + (var(--i) - var(--c)) * var(--step));
  transform:
    translate(-50%, -50%)
    translateY(calc(max(var(--i) - var(--c), var(--c) - var(--i)) * 6px))
    rotate(calc((var(--i) - var(--c)) * 2.2deg));
}
.stack .shot.hovered {
  width: min(1240px, 94vw);
  transform: translate(calc(-50% - (var(--i) - var(--c)) * var(--step)), -50%) rotate(0deg) !important;
}

/* Полный список возможностей — таблица */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
}
.cap-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.cap-table th {
  text-align: left; padding: 14px 18px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); border-bottom: 1px solid var(--border);
}
.cap-table td {
  padding: 13px 18px; border-top: 1px solid var(--border);
  vertical-align: top; color: var(--muted); font-size: 0.92rem;
}
.cap-table td:first-child { color: var(--text); font-weight: 600; width: 27%; min-width: 190px; }
.cap-table tr.group td {
  padding: 11px 18px;
  background: rgba(255, 180, 84, 0.06);
  border-top: 1px solid rgba(255, 180, 84, 0.2);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cap-table tbody tr:not(.group):hover td { background: rgba(255, 255, 255, 0.02); }

/* Ссылки «назад» и «полный список» */
.back-link { margin: 0 0 26px; }
.back-link a { font-family: var(--mono); font-size: 0.82rem; color: var(--muted-2); }
.back-link a:hover { color: var(--accent); }
.more-link { margin: 26px 0 0; }
.more-link a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.85rem; color: var(--accent);
  border-bottom: 1px solid rgba(255, 180, 84, 0.35); padding-bottom: 2px;
}
.more-link a:hover { border-color: var(--accent); }
.nav a.active { color: var(--accent); }

/* Форма заявки */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: start; }
.contact-side { display: grid; gap: 18px; }
.contact-form h3 { margin: 0 0 6px; font-size: 1.25rem; }
.form-sub { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: rgba(255, 180, 84, 0.6);
  background: rgba(255, 180, 84, 0.04);
}
.field textarea { resize: vertical; min-height: 80px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; color: var(--muted); font-size: 0.85rem; }
.consent input { margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted-2); min-height: 1.2em; }
.form-status.ok { color: #7dd3a0; }
.form-status.err { color: #ff8b8b; }
.contact-form .btn { width: 100%; justify-content: center; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Только заявка: форма по центру */
.contact-grid { grid-template-columns: 1fr; max-width: 680px; }
