:root {
  --bg: #111317;
  --panel: rgba(26, 29, 36, 0.75);
  --panel-solid: #191C22;
  --accent: #D4AF7A;
  --accent-light: #E6C796;
  --accent-bg: rgba(212, 175, 122, 0.14);
  --text: #F4F5F7;
  --muted: #9AA0AC;
  --line: rgba(255, 255, 255, 0.08);
  --line-accent: rgba(212, 175, 122, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.glow-cursor {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 122, 0.08) 0%, rgba(17, 19, 23, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 32px;
}

.top-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 19, 23, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-bar__row {
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.logo__title {
  display: block; font-weight: 700; font-size: 15px;
  letter-spacing: 0.13em; color: var(--text);
}
.logo__sub {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--accent); letter-spacing: 0.09em;
}
.menu { display: flex; gap: 28px; }
.menu a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: color 0.2s;
}
.menu a:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  font-size: 13.5px; font-weight: 600;
  text-decoration: none; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s, box-shadow 0.25s;
}
.btn--big { padding: 16px 30px; font-size: 14.5px; }
.btn--full { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #B88F56 100%);
  color: #111317;
  box-shadow: 0 10px 28px rgba(212, 175, 122, 0.2);
}
.btn--primary:hover {
  background: var(--accent-light);
  box-shadow: 0 14px 34px rgba(212, 175, 122, 0.32);
}
.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border-color: var(--line-accent);
  color: var(--text);
}
.btn--outline:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
}

.intro {
  position: relative;
  padding: 28px 0 48px;
  overflow: hidden;
}
.marquee-bg {
  position: absolute;
  top: 10%; left: -10%; right: -10%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.marquee-row {
  font-size: clamp(60px, 10.5vw, 158px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.022);
  will-change: transform;
}
.marquee-row--stroke {
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 122, 0.08);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.tag-line {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: rgba(212, 175, 122, 0.08);
  border: 1px solid var(--line-accent);
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent);
  margin-bottom: 22px;
}
.tag-line__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.intro__h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.intro__h1 em {
  font-style: normal;
  color: var(--accent);
}
.intro__desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.intro__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.intro__stats {
  display: flex; gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat__val {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 600; color: var(--text);
}
.stat__val em { font-style: normal; color: var(--accent); font-size: 19px; }
.stat__lbl { font-size: 13px; color: var(--muted); }

.intro__media { position: relative; display: flex; justify-content: center; }
.hero-box {
  position: relative;
  width: 100%; max-width: 470px;
  min-height: 540px;
  display: flex; align-items: flex-end; justify-content: center;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(212, 175, 122, 0.2);
  pointer-events: none;
}
.ring--out {
  width: 430px; height: 430px; top: 36px;
  border-style: dashed;
  animation: rot 48s linear infinite;
}
.ring--in {
  width: 330px; height: 330px; top: 86px;
  border-color: rgba(255, 255, 255, 0.07);
}
@keyframes rot { to { transform: rotate(360deg); } }

.back-light {
  position: absolute;
  width: 350px; height: 350px; top: 76px;
  background: radial-gradient(circle, rgba(212, 175, 122, 0.25) 0%, rgba(17, 19, 23, 0) 70%);
  filter: blur(20px);
  z-index: 1;
}
.hero-photo {
  position: relative; z-index: 2;
  max-height: 540px; width: auto; max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.65));
}
.photo-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(to top, var(--bg) 15%, rgba(17, 19, 23, 0) 100%);
  z-index: 3; pointer-events: none;
}
.name-plate {
  position: absolute; bottom: 24px; left: -10px; z-index: 4;
  background: rgba(25, 28, 34, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-accent);
  padding: 14px 20px; border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.name-plate__role {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--accent); margin-bottom: 3px;
}
.name-plate strong { display: block; font-size: 15px; }
.name-plate span { font-size: 12px; color: var(--muted); }

.sec { padding: 68px 0; position: relative; }
.sec__head { margin-bottom: 36px; }
.sec__head--row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.sec__idx {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.13em; color: var(--accent);
  margin-bottom: 8px;
}
.sec__title {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  max-width: 720px;
}

.glow-box {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.3s ease;
}
.glow-box::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(
    480px circle at var(--px, 50%) var(--py, 50%),
    rgba(212, 175, 122, 0.13),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.glow-box:hover::before { opacity: 1; }
.glow-box:hover { border-color: var(--line-accent); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.card--wide { grid-column: span 2; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pill {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  padding: 4px 10px; background: var(--accent-bg); color: var(--accent); border-radius: 3px;
}
.card__num { margin-bottom: 14px; }
.big-val {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: clamp(40px, 4.8vw, 58px); font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}
.big-val em { font-style: normal; font-size: 30px; }
.big-sub { font-size: 18.5px; font-weight: 600; color: var(--text); }
.card__p { font-size: 14.5px; color: var(--muted); max-width: 540px; }

.mode-toggle {
  display: inline-flex;
  background: var(--panel-solid);
  border: 1px solid var(--line-accent);
  padding: 5px; border-radius: 6px;
}
.mode-toggle__btn {
  padding: 10px 18px; border: none; background: transparent;
  color: var(--muted); font-family: inherit; font-size: 13.5px; font-weight: 600;
  border-radius: 4px; cursor: pointer; transition: all 0.25s;
}
.mode-toggle__btn.active {
  background: var(--accent); color: #111317;
}

.audit-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}
.audit-steps { display: flex; flex-direction: column; gap: 12px; }
.step-btn {
  display: flex; align-items: center; gap: 18px;
  padding: 19px 22px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left; color: var(--text);
  cursor: pointer; font-family: inherit;
  transition: all 0.25s;
}
.step-btn:hover { border-color: var(--line-accent); transform: translateX(4px); }
.step-btn.active {
  background: rgba(212, 175, 122, 0.12);
  border-color: var(--accent);
}
.step-btn__num {
  font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700;
  color: var(--accent);
}
.step-btn strong { display: block; font-size: 16px; margin-bottom: 2px; }
.step-btn span { font-size: 13px; color: var(--muted); }

.report-sheet {
  background: #F8F8F6;
  color: #14161B;
  padding: 40px 44px;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all 0.3s ease;
}
.report-sheet.is-before {
  background: #1C1E24;
  color: #F4F5F7;
  border: 1px dashed rgba(239, 68, 68, 0.45);
  clip-path: none;
  border-radius: 6px;
}
.report-sheet__top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.report-sheet__tag {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  color: #8A6A3E;
}
.report-sheet.is-before .report-sheet__tag { color: #F87171; }
.report-sheet__state {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  padding: 4px 10px; background: rgba(0,0,0,0.06); border-radius: 3px;
}
.report-sheet.is-before .report-sheet__state { background: rgba(239, 68, 68, 0.14); color: #FCA5A5; }
.report-sheet__h3 { font-size: 25px; font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
.report-sheet__p { font-size: 16px; opacity: 0.85; margin-bottom: 26px; }
.report-sheet__foot {
  padding-top: 18px; border-top: 1px solid rgba(128,128,128,0.25);
}
.report-sheet__foot span {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: 0.65; margin-bottom: 6px;
}
.report-sheet__foot strong { font-size: 16px; }

.ticker {
  margin-top: 36px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.ticker__track {
  display: flex; gap: 38px; width: max-content;
  animation: slide 30s linear infinite;
}
.ticker__track span {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--accent); letter-spacing: 0.1em;
}
@keyframes slide { to { transform: translateX(-50%); } }

.calc-box {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px;
  padding: 44px;
}
.calc-box__left p { font-size: 16px; color: var(--muted); margin: 16px 0 22px; }
.calc-note {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  padding: 13px 16px; background: rgba(0,0,0,0.3);
  border-left: 2px solid var(--accent); color: var(--accent);
}
.range-item { margin-bottom: 22px; }
.range-item__head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14.5px; }
.range-item__head strong { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 18px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; background: rgba(255,255,255,0.12);
  border-radius: 3px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.calc-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.total-tile {
  padding: 18px; background: rgba(17, 19, 23, 0.78);
  border: 1px solid var(--line); border-radius: 4px;
}
.total-tile--accent { border-color: var(--line-accent); }
.total-tile span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.total-tile strong { font-family: 'JetBrains Mono', monospace; font-size: 19px; }
.total-tile--accent strong { color: var(--accent); }

.srv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.srv-card { padding: 30px 26px; display: flex; flex-direction: column; justify-content: space-between; }
.srv-card--hit { border-color: var(--accent); background: rgba(212, 175, 122, 0.08); }
.srv-card__badge {
  display: inline-block; align-self: flex-start;
  background: var(--accent); color: #111317;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 2px; margin-bottom: 12px;
}
.srv-card__time {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--accent); margin-bottom: 10px;
}
.srv-card h3 { font-size: 20px; margin-bottom: 12px; }
.srv-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.srv-card__link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }

.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 48px; align-items: center;
}
.contact-card__info p { color: var(--muted); margin: 14px 0 24px; }
.phone-link {
  font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700;
  color: var(--accent); text-decoration: none;
}
.select-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.select-wrap span { font-size: 13px; color: var(--muted); }
.select-wrap select {
  padding: 15px; background: var(--bg); border: 1px solid var(--line-accent);
  color: var(--text); font-family: inherit; font-size: 16px; border-radius: 4px;
}
.contact-card__btns { display: flex; flex-direction: column; gap: 10px; }
.privacy-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

.bottom-bar {
  position: relative; z-index: 2;
  padding: 40px 0; border-top: 1px solid var(--line);
  background: rgba(17, 19, 23, 0.92);
}
.bottom-bar__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.bottom-bar__row strong { display: block; letter-spacing: 0.12em; margin-bottom: 6px; }
.bottom-bar__row span { display: block; font-size: 13px; color: var(--muted); }
.bottom-bar__copy { text-align: right; }
.bottom-bar__copy a { color: var(--accent); text-decoration: none; }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.shown {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .intro__grid, .audit-layout, .calc-box, .contact-card { grid-template-columns: 1fr; }
  .bento, .srv-grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .sec__head--row { flex-direction: column; align-items: flex-start; }
  .hero-box { min-height: 430px; }
  .hero-photo { max-height: 430px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .menu, .glow-cursor { display: none; }
  .calc-box, .contact-card, .report-sheet { padding: 28px 22px; }
  .calc-totals { grid-template-columns: 1fr; }
  .bottom-bar__row { flex-direction: column; align-items: flex-start; }
  .bottom-bar__copy { text-align: left; }
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ (ФИКС ШАПКИ, ЦИФР, КОНТАКТОВ И АУДИТА) === */
@media (max-width: 680px) {
  /* 1. Компактная шапка и аккуратная кнопка */
  .top-bar__row {
    height: 64px;
    gap: 10px;
  }
  .logo__title {
    font-size: 13px;
    letter-spacing: 0.08em;
  }
  .logo__sub {
    font-size: 9px;
    letter-spacing: 0.04em;
  }
  .top-bar .btn {
    padding: 9px 13px;
    font-size: 11.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 2. Цифры статистики в одну строку без разрыва 1 200+ */
  .intro__stats {
    gap: 18px;
    justify-content: space-between;
  }
  .stat {
    min-width: 0;
  }
  .stat__val {
    font-size: 21px;
    white-space: nowrap;
  }
  .stat__val em {
    font-size: 15px;
  }
  .stat__lbl {
    font-size: 12px;
    line-height: 1.35;
  }

  /* 3. Центровка блока контактов и фиксация ширины select */
  .contact-card {
    padding: 28px 20px;
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }
  .contact-card__info,
  .contact-card__form,
  .select-wrap {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .phone-link {
    font-size: 22px;
    display: inline-block;
    white-space: nowrap;
  }
  .select-wrap select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 14px;
    padding: 13px 12px;
    text-overflow: ellipsis;
  }

  /* 4. Удобный вид блока "До / После" на телефоне */
  .mode-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .mode-toggle__btn {
    padding: 10px 8px;
    font-size: 12.5px;
    text-align: center;
  }
  .audit-layout {
    display: block;
  }
  .audit-steps {
    display: none;
  }
  .mobile-audit-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .m-audit-card {
    background: #F8F8F6;
    color: #14161B;
    padding: 22px 20px;
    border-radius: 6px;
    transition: all 0.25s ease;
  }
  .m-audit-card.is-before {
    background: #1C1E24;
    color: #F4F5F7;
    border: 1px dashed rgba(239, 68, 68, 0.45);
  }
  .m-audit-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .m-audit-card__tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    color: #8A6A3E;
  }
  .m-audit-card.is-before .m-audit-card__tag {
    color: #F87171;
  }
  .m-audit-card__state {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
  }
  .m-audit-card.is-before .m-audit-card__state {
    background: rgba(239, 68, 68, 0.14);
    color: #FCA5A5;
  }
  .m-audit-card h3 {
    font-size: 17.5px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .m-audit-card p {
    font-size: 13.5px;
    opacity: 0.85;
    margin-bottom: 12px;
  }
  .m-audit-card__foot {
    padding-top: 10px;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
    font-size: 13px;
    font-weight: 600;
  }
}

@media (min-width: 681px) {
  .mobile-audit-cards {
    display: none;
  }
}
