/* БЕЗ-ИТ — база: reset, типографика, кнопки, шапка, футер.
   Канон vyshka.cloud: светлый дефолт, воздух, градиентные акценты, тёмный футер. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-page);
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 500; }
h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; }
h3 { font-size: var(--fs-h3); }
p { color: var(--text-2); }
strong { font-weight: 600; color: var(--text-1); }

:focus-visible { outline: 3px solid var(--accent-violet); outline-offset: 2px; border-radius: var(--r-sm); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Контейнер */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
.section { padding-block: var(--sp-10); }
.section--tight { padding-block: var(--sp-9); }

/* Метки-плашки */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--grad-accent-soft);
  border: 1px solid var(--border-1);
  border-radius: 999px; padding: 6px 14px;
  margin-bottom: var(--sp-5);
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  border-radius: var(--r-md); border: 1px solid transparent;
  padding: 14px 26px; cursor: pointer; text-align: center;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2), border-color var(--dur-2);
}
.btn:active { transform: scale(.97); }
.btn--primary {
  color: #fff; background: var(--grad-accent);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { text-decoration: none; box-shadow: 0 10px 34px rgba(47,107,255,.32); transform: translateY(-1px); }
.btn--ghost {
  color: var(--text-1); background: var(--bg-card);
  border-color: var(--border-2); box-shadow: var(--shadow-1);
}
.btn--ghost:hover { text-decoration: none; border-color: var(--accent-violet); box-shadow: var(--shadow-2); }
.btn--inverse { color: var(--text-1); background: #fff; }
.btn--inverse:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.btn--lg { padding: 18px 34px; font-size: 17px; border-radius: var(--r-lg); }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(244,247,251,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-1);
}
.header__inner { display: flex; align-items: center; gap: var(--sp-6); min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--text-1); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--grad-accent);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-glow);
}
.logo b { font-weight: 600; }
.nav { display: flex; gap: var(--sp-2); margin-inline: auto; }
.nav a {
  color: var(--text-2); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: color var(--dur-1), background-color var(--dur-1);
}
.nav a:hover { color: var(--text-1); background: var(--bg-inset); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text-1); background: var(--grad-accent-soft); }
.header__cta { margin-left: auto; }
.header__phone { font-weight: 600; color: var(--text-1); font-size: 15px; white-space: nowrap; }
.header__phone:hover { color: var(--accent-blue); text-decoration: none; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border-2); border-radius: var(--r-sm); background: var(--bg-card); cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; stroke: var(--text-1); }

/* Очень узкие экраны: телефон в шапке не должен выталкивать бургер */
@media (max-width: 420px) {
  .header__inner { gap: var(--sp-3); }
  .header__phone { font-size: 13px; }
}

@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .burger { display: grid; margin-left: auto; }
  .mobile-menu {
    display: none; flex-direction: column; gap: var(--sp-1);
    padding: var(--sp-4) var(--sp-6) var(--sp-6);
    border-top: 1px solid var(--border-1);
    background: var(--bg-page);
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a { padding: 12px 4px; font-weight: 500; color: var(--text-1); border-bottom: 1px solid var(--border-1); }
  .mobile-menu .btn { margin-top: var(--sp-4); }
}
@media (min-width: 961px) { .mobile-menu { display: none; } }

/* ===== Футер (тёмный deep-navy канона) ===== */
.footer { background: var(--bg-dark); color: var(--text-inverse); margin-top: var(--sp-11); }
.footer a { color: var(--text-inverse-2); }
.footer a:hover { color: #fff; text-decoration: none; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-7); padding-block: var(--sp-9) var(--sp-7);
}
.footer .logo { color: #fff; }
.footer__about { color: var(--text-inverse-2); font-size: var(--fs-small); margin-top: var(--sp-4); max-width: 34ch; }
.footer__title { font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: var(--sp-4); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-small); }
.footer__bottom {
  border-top: 1px solid var(--border-inverse);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: var(--fs-caption); color: var(--text-inverse-2);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* Плавающие элементы */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-sticky-cta);
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border-2); box-shadow: var(--shadow-2);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2), transform var(--dur-2);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bg-card); color: var(--text-1); padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) 0; box-shadow: var(--shadow-2);
}
.skip-link:focus { left: 0; }

/* W3 2026-09-06: мета-строка статьи (рубрика · дата · редакция) */
.art-meta { color: var(--text-2); font-size: 0.95rem; margin: 0.6rem 0 0; }
.art-meta time { color: var(--text-2); }
