/* ==========================================================================
   ООО «МСК-Хостинг» — единая таблица стилей сайта mskhosting.com.
   Только системные шрифты, ни одного внешнего запроса.
   Светлая и тёмная схема, mobile-first.
   ========================================================================== */

:root {
  --ink:           #12202F;
  --ink-2:         #0A121B;
  --slate:         #2E4459;
  --accent:        #0F62C4;
  --accent-hover:  #0B4E9E;
  --accent-soft:   rgba(15, 98, 196, .10);

  --bg:            #FFFFFF;
  --surface:       #F3F6FA;
  --surface-2:     #E8EEF5;
  --border:        #D8E1EB;
  --heading:       #12202F;
  --body:          #3A4A5C;
  --muted:         #6A7B8C;
  --on-accent:     #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PT Sans", "Liberation Sans", "DejaVu Sans", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", "DejaVu Sans Mono", monospace;

  --container: 1120px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 47, .07);
  --shadow: 0 8px 22px rgba(18, 32, 47, .11);
  --ring: 0 0 0 3px rgba(15, 98, 196, .30);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0F171F;
    --surface:      #16202B;
    --surface-2:    #1C2833;
    --border:       #283644;
    --heading:      #E8EFF6;
    --body:         #B4C2CE;
    --muted:        #8798A6;
    --accent:       #5A9DF0;
    --accent-hover: #7FB4F5;
    --accent-soft:  rgba(90, 157, 240, .14);
    --on-accent:    #08121C;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow:    0 10px 26px rgba(0, 0, 0, .45);
    --ring:      0 0 0 3px rgba(90, 157, 240, .35);
  }
}

/* --------------------------------------------------------------------------
   База
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.85rem, 4.6vw, 2.75rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.05rem); letter-spacing: -.01em; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: .35rem; }
strong { color: var(--heading); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* --------------------------------------------------------------------------
   Раскладка
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding: clamp(2.75rem, 6vw, 4.75rem) 0; }
.section--alt { background: var(--surface); }
.section--tight { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .7rem;
}
.lead { font-size: 1.1rem; color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.grid { display: grid; gap: 1.35rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .68rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.03rem; }
.btn-block { width: 100%; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }

/* --------------------------------------------------------------------------
   Шапка и навигация
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding-block: .35rem;
}
.topbar a { color: #fff; }
.topbar-hours { color: rgba(255, 255, 255, .62); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 66px;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--heading);
  border-radius: 2px;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  color: var(--body);
  font-weight: 500;
  font-size: .95rem;
  padding: .3rem 0;
  position: relative;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.is-active { color: var(--heading); font-weight: 700; }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: .25rem 20px 1.15rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a { display: block; padding: .8rem .1rem; }
  .site-nav a.is-active::after { display: none; }
  .site-nav .nav-cta { margin-top: 1rem; }
  .site-nav .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Первый экран
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: clamp(2.75rem, 7vw, 5.25rem) 0;
}
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 700px; }
.hero h1 { color: #fff; }
/* Первый экран всегда тёмный, поэтому надзаголовок не берёт --accent:
   в светлой схеме синий #0F62C4 на тёмно-синем фоне почти не читается. */
.hero .eyebrow, .page-hero .eyebrow { color: #7FB4F5; }
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, .82);
  margin: 1rem 0 1.9rem;
  max-width: 600px;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.6rem; font-size: .9rem; color: rgba(255, 255, 255, .6); }

.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--slate) 130%);
  color: #fff;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 660px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Числовая полоса
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-num {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stat-label { color: var(--muted); font-size: .92rem; margin-top: .25rem; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Карточки
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.section--alt .card { background: var(--bg); }
.card--link { transition: border-color .15s ease, box-shadow .15s ease; }
.card--link:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin-bottom: .9rem; }
.card .card-more { margin-top: auto; font-weight: 600; color: var(--accent); font-size: .94rem; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.icon svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Этапы работы
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.35rem; }
.step { border-top: 3px solid var(--accent); padding-top: 1rem; }
.step-num {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  display: block;
  margin-bottom: .4rem;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Таблицы (прайс, реквизиты, характеристики)
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 1.5rem;
}
.table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .96rem; }
.table caption {
  text-align: left;
  padding: .9rem 1rem .2rem;
  color: var(--muted);
  font-size: .88rem;
}
.table th, .table td {
  text-align: left;
  padding: .72rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table thead th {
  color: var(--heading);
  font-weight: 700;
  background: var(--surface-2);
  font-size: .88rem;
  letter-spacing: .01em;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td.num { color: var(--heading); font-weight: 600; }
.table .unit { color: var(--muted); font-weight: 400; font-size: .88rem; }

/* --------------------------------------------------------------------------
   Определения (реквизиты, характеристики)
   -------------------------------------------------------------------------- */
.deflist { margin: 0; }
.deflist div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.deflist dt { color: var(--muted); font-size: .93rem; }
.deflist dd { margin: 0; color: var(--heading); }
@media (max-width: 620px) {
  .deflist div { grid-template-columns: 1fr; gap: .1rem; }
}

/* --------------------------------------------------------------------------
   Текстовые страницы и статьи
   -------------------------------------------------------------------------- */
.prose { max-width: 740px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { color: var(--body); }
.prose ol { counter-reset: none; }
.prose blockquote {
  margin: 1.6rem 0;
  padding: .35rem 0 .35rem 1.35rem;
  border-left: 3px solid var(--accent);
  color: var(--heading);
  font-size: 1.08rem;
}
.prose .table-wrap { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Новости
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: .22rem .7rem;
  align-self: flex-start;
}
.page-hero .badge { background: rgba(255, 255, 255, .14); color: #fff; }
.post-meta { color: var(--muted); font-size: .89rem; }
.page-hero .post-meta { color: rgba(255, 255, 255, .72); }
.post-card h3 { margin: .7rem 0 .45rem; font-size: 1.13rem; }
.post-card h3 a { color: var(--heading); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list > li {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  margin: 0;
}
.post-list > li:first-child { padding-top: 0; }
.post-list h3 { margin: .4rem 0 .4rem; }
.post-list h3 a { color: var(--heading); }
.post-list h3 a:hover { color: var(--accent); text-decoration: none; }
.post-list p { color: var(--muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Команда
   -------------------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.team-member {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--bg);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .85rem;
  letter-spacing: .02em;
}
.team-member h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.team-member .role { color: var(--accent); font-weight: 600; font-size: .9rem; display: block; margin-bottom: .55rem; }
.team-member p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Формы
   -------------------------------------------------------------------------- */
.form { max-width: 620px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--heading); margin-bottom: .35rem; font-size: .94rem; }
.field .hint { color: var(--muted); font-size: .84rem; margin-top: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--heading);
  background: var(--bg);
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--muted); }
.form-check input { width: auto; margin-top: .3rem; }

.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  background: var(--surface);
  color: var(--body);
  font-size: .95rem;
}
.form-result { margin-top: 1.1rem; }

/* --------------------------------------------------------------------------
   Хлебные крошки
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: .86rem; color: var(--muted); padding-top: 1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li::after { content: "/"; margin-left: .35rem; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--body); }

/* --------------------------------------------------------------------------
   Полоса призыва
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.9rem, 4.5vw, 3rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 620px; margin-bottom: 1.5rem; }
.cta-band p a { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Страница 404
   -------------------------------------------------------------------------- */
.error-page { text-align: center; padding: clamp(3.5rem, 10vw, 6.5rem) 0; }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 13vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .70);
  padding: 3rem 0 1.75rem;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-wordmark {
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .09em;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.footer-wordmark::before {
  content: "";
  width: 26px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}
.footer-brand p { color: rgba(255, 255, 255, .58); max-width: 34ch; }
.site-footer h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .70); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer address { font-style: normal; color: rgba(255, 255, 255, .58); line-height: 1.7; }
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  color: rgba(255, 255, 255, .5);
  font-size: .84rem;
}
.footer-bottom a { color: rgba(255, 255, 255, .5); }
.footer-req { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Мелочи
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media print {
  .site-header, .topbar, .site-footer, .nav-toggle, .cta-band { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
