/* Struktor — визуальный язык «чертёж»: тонкие линии, моно-метки, нумерованные
   секции. Намеренно холодный графит + сигнальный оранжевый — это B2B-бренд,
   он не должен перекликаться с золотом астро-продуктов.

   Тема: три состояния. Системная (без data-theme) читается через
   prefers-color-scheme; явный выбор пользователя ставит data-theme на <html>
   и обязан побеждать в обе стороны. Поэтому светлая палитра определена на
   голом :root, тёмная — дважды: в media-запросе под guard :not([data-theme=light])
   и в [data-theme=dark]. */
:root {
  --bg:        #f7f8fa;
  --surface:   #ffffff;
  --surface-2: #f0f2f5;
  --ink:       #14171c;
  --muted:     #58606e;
  --line:      #e3e6eb;
  --accent:    #c2410c;
  --accent-ink:#ffffff;
  --accent-bg: #fff1ea;
  --focus:     #14171c;
  --shadow:    0 1px 2px rgba(20, 23, 28, .05), 0 8px 24px rgba(20, 23, 28, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0d0f12;
    --surface:   #14171c;
    --surface-2: #191d24;
    --ink:       #e9ecf1;
    --muted:     #9aa3b2;
    --line:      #242932;
    --accent:    #ff7a45;
    --accent-ink:#14171c;
    --accent-bg: #241610;
    --focus:     #ff7a45;
    --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg:        #0d0f12;
  --surface:   #14171c;
  --surface-2: #191d24;
  --ink:       #e9ecf1;
  --muted:     #9aa3b2;
  --line:      #242932;
  --accent:    #ff7a45;
  --accent-ink:#14171c;
  --accent-bg: #241610;
  --focus:     #ff7a45;
  --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern" 1;
}

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: .75rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- Моно-метка. Несёт нумерацию секций: «01 / Услуги». --- */
.label {
  font: 600 .72rem/1.2 ui-monospace, SFMono-Regular, "SF Mono", Menlo,
        Consolas, "Liberation Mono", monospace;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: .7rem; margin: 0 0 1.25rem;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.label b { color: var(--accent); font-weight: 600; }

/* --- Шапка --- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(2px)) { .site-head { background: var(--bg); } }
.head-in { display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; letter-spacing: -.01em; font-size: 1.1rem;
  color: var(--ink); text-decoration: none; margin-right: auto;
  min-height: 44px;
}
.brand .mark { display: block; width: 22px; height: 22px; }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: .35rem; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem;
  padding: .7rem .7rem; border-radius: 8px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 62rem) { .nav { display: none; } }

.theme-toggle {
  min-width: 44px; min-height: 44px; display: inline-flex;
  align-items: center; justify-content: center; gap: .4rem;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  color: var(--muted); cursor: pointer; font: inherit; font-size: .85rem;
  padding: 0 .7rem;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Без JS кнопка бесполезна — она и не показывается: тема тогда системная. */
.no-js .theme-toggle { display: none; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* --- Первый экран --- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.7rem); line-height: 1.08;
  letter-spacing: -.025em; margin: 0 0 1.25rem; max-width: 20ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  border-top: 1px solid var(--line); gap: 0;
}
.hero-facts div { padding: 1.25rem 1.25rem 1.25rem 0; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 0; }
@media (max-width: 48rem) { .hero-facts div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; } }
.hero-facts dt, .hero-facts b {
  display: block; font: 600 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem;
}
.hero-facts dd { margin: 0; font-size: .98rem; }

/* --- Секции --- */
section { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
section > .wrap > h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 .85rem; max-width: 24ch;
}
.section-lead { color: var(--muted); max-width: 62ch; margin: 0 0 2.5rem; font-size: 1.05rem; }

/* --- Карточки услуг --- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); padding: 1.6rem 1.5rem; }
.card h3 { margin: 0 0 .6rem; font-size: 1.12rem; letter-spacing: -.01em; }
.card p { margin: 0 0 .8rem; color: var(--muted); font-size: .97rem; }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }
.card li { margin: .3rem 0; }
.card .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tag {
  font: 600 .7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em; padding: .4rem .55rem; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}

/* --- Шаги --- */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--accent); }
.step:nth-child(n+2) { border-top-color: var(--line); }
.step h3 { margin: .3rem 0 .5rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.step .num {
  font: 600 .72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent); letter-spacing: .1em;
}

/* --- Стоимость --- */
.price-grid { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem; box-shadow: var(--shadow);
}
.price h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.price .unit {
  font: 600 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem;
}
.price p { margin: 0 0 .7rem; color: var(--muted); font-size: .95rem; }
.price ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }
.pay-note {
  margin-top: 1.75rem; background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 1.1rem 1.25rem;
}
.pay-note p { margin: .4rem 0; font-size: .95rem; }
.pay-note p:first-child { margin-top: 0; }
.pay-note p:last-child { margin-bottom: 0; }

/* --- Продукты --- */
.products { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .products { grid-template-columns: repeat(3, 1fr); } }
.product {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem;
}
.product h3 { margin: 0 0 .2rem; font-size: 1.2rem; letter-spacing: -.01em; }
.product .host {
  font: 500 .8rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--muted); margin: 0 0 .9rem;
}
.product > p { color: var(--muted); font-size: .96rem; margin: 0 0 1rem; }
.product ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.product li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.product li b { color: var(--ink); font-weight: 600; display: block; }
.product .go { margin-top: auto; }

/* --- Контакты --- */
.contacts { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .contacts { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list span {
  display: flex; align-items: baseline; gap: .9rem; min-height: 56px;
  padding: 1rem 0; text-decoration: none; color: var(--ink);
}
.contact-list a:hover { color: var(--accent); }
.contact-list .k {
  flex: 0 0 8.5rem;
  font: 600 .72rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow);
}
.contact-card h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.contact-card p { color: var(--muted); font-size: .95rem; margin: 0 0 1.1rem; }

/* --- Подвал --- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface-2); padding: 3rem 0 2.5rem; }
.foot-cols { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 52rem) { .foot-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-cols h4 {
  margin: 0 0 .9rem;
  font: 600 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin: 0; }
.foot-cols li a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.foot-cols li a:hover { color: var(--accent); text-decoration: underline; }
.req {
  color: var(--muted); font-size: .88rem; line-height: 1.7; margin: 0;
}
.req b { color: var(--ink); font-weight: 600; }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  color: var(--muted); font-size: .85rem;
}
