/*
 * Назначение: Главный CSS публичного сайта компании «ПРОТОКОЛ».
 * Содержит: дизайн-систему (CSS-переменные), типографику, сетку, компоненты.
 *
 * Дизайн-система: тёмная тема, акцент #f5a623 (оранжевый).
 * Источник: визитка Protokol (тёмный фон, оранжевые акценты, бежевые теги).
 *
 * Секции:
 *   1. CSS-переменные (дизайн-токены)
 *   2. Reset и базовые стили
 *   3. Типографика
 *   4. Компоненты: кнопки, теги, карточки
 *   5. Header и навигация (бургер-меню)
 *   6. Hero-секция (главная)
 *   7. Footer
 *   8. Адаптив (Mobile First, брейкпоинты 480/768/1024/1280)
 */

/* ==========================================================================
   1. CSS-переменные (дизайн-токены)
   ========================================================================== */
:root {
  /* Фоны */
  --bg: #0d0d0d;
  --bg-2: #141414;
  --bg-3: #1c1c1c;

  /* Акценты */
  --accent: #f5a623;
  --accent-2: #ff8c00;

  /* Текст */
  --text: #f5f5f5;
  --text-muted: #9a9a9a;

  /* Границы */
  --border: rgba(255, 255, 255, 0.08);

  /* Теги (как на визитке) */
  --tag-beige: #cdbfa3;
  --tag-grey: #b8b8b8;

  /* Статусы */
  --success: #4caf50;
  --danger: #e05050;
  --warning: #f5a623;

  /* Типографика */
  --font-stack: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-size-base: 16px;

  /* Сетка */
  --container-max: 1280px;
  --gap: 1.5rem;
  --radius: 8px;

  /* Переходы */
  --transition: 200ms ease;
}

/* ==========================================================================
   2. Reset и базовые стили
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-stack);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-2);
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   3. Типографика
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   4. Компоненты
   ========================================================================== */

/* ── Кнопки ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  min-height: 44px; /* touch target */
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform 80ms ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

/* Основная кнопка — плоская оранжевая заливка */
.btn-primary {
  background-color: var(--accent);
  color: #0d0d0d;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-2);
  border-color: var(--accent-2);
  color: #0d0d0d;
}

/* Аутлайн-кнопка */
.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--accent);
  color: #0d0d0d;
}

/* ── Теги услуг (как на визитке) ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-beige {
  background-color: rgba(205, 191, 163, 0.15);
  color: var(--tag-beige);
  border: 1px solid rgba(205, 191, 163, 0.3);
}

.tag-grey {
  background-color: rgba(184, 184, 184, 0.12);
  color: var(--tag-grey);
  border: 1px solid rgba(184, 184, 184, 0.25);
}

/* ── Карточки ────────────────────────────────────────────────────────────── */
.card {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
  transition: background-color var(--transition), transform var(--transition);
}

.card:hover {
  background-color: var(--bg-3);
}

/* ==========================================================================
   5. Header и навигация
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

/* Логотип ПР[О]ТОКОЛ — акцентная буква О */


.logo__img {
  display: block;
  height: 40px;
  width: auto;
}

.footer .logo__img {
  height: 25px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo__accent {
  color: var(--accent);
  display: inline-block;
  /* Стилизованная О — намёк на объектив камеры */
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 1.1em;
  height: 1.1em;
  line-height: 1.05;
  text-align: center;
  vertical-align: middle;
  margin: 0 -0.02em;
}

/* Навигация */
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.875rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
  background-color: var(--bg-3);
}

/* Контакт в хедере */
.header__phone {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Бургер-кнопка (мобильная) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.burger:hover {
  background-color: var(--bg-3);
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   6. Hero-секция
   ========================================================================== */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Теги услуг в hero */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   7. Секции страниц
   ========================================================================== */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  margin-bottom: 0.75rem;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Сетка карточек */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

/* ==========================================================================
   8. Контакты в footer
   ========================================================================== */
.footer {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__brand .logo {
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer__contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__contact-value {
  font-size: 0.95rem;
  color: var(--text);
}

.footer__contact-value a {
  color: var(--text);
}

.footer__contact-value a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. Адаптив (Mobile First)
   ========================================================================== */

/* 480px: маленькие смартфоны */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 768px: планшеты */
@media (max-width: 768px) {
  /* Показываем бургер */
  .burger {
    display: flex;
  }

  /* Скрываем десктопную навигацию */
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    z-index: 99;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__link {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
  }

  /* Телефон в хедере — скрываем на мобильных */
  .header__phone {
    display: none;
  }
}

/* 1024px: небольшие ноутбуки */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* ==========================================================================
   9. Страницы Этапа 2 — Breadcrumb, Page Hero, Catalog, Blog, Track, Live,
      Contacts, Cases, Forms
   ========================================================================== */

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.breadcrumb__link {
  color: var(--text-muted);
}

.breadcrumb__link:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  color: var(--border);
}

.breadcrumb__current {
  color: var(--text-muted);
}

/* ── Page Hero (шапка внутренних страниц) ────────────────────────────────── */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Catalog Nav ─────────────────────────────────────────────────────────── */
.catalog-nav {
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
  padding: 0.625rem 0;
}

.catalog-nav__list {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  align-items: center;
}

.catalog-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition),
              background-color var(--transition);
  white-space: nowrap;
}

.catalog-nav__link:hover {
  color: var(--text);
  border-color: var(--border);
  background-color: var(--bg-3);
}

/* ── Catalog Section ─────────────────────────────────────────────────────── */
.catalog-section__header {
  margin-bottom: 2rem;
}

.catalog-section__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.catalog-section__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.catalog-section__title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
}

.catalog-section__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
}

.catalog-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Services Grid ───────────────────────────────────────────────────────── */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ── Service Card ────────────────────────────────────────────────────────── */
.service-card {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color var(--transition), transform var(--transition);
}

.service-card:hover {
  background-color: var(--bg-3);
}

.service-card__body {
  flex: 1;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.service-card__price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-card__duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-card__btn {
  flex-shrink: 0;
}

/* ── Service Detail Page ─────────────────────────────────────────────────── */
.service-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .service-detail__layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

.service-detail__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.service-detail__description {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.service-detail__includes {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.service-detail__includes h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.service-includes-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.service-includes-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.25rem;
  position: relative;
}

.service-includes-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Sidebar card */
.service-sidebar-card {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(64px + 1rem);
}

.service-sidebar-card__price-block {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.service-sidebar-card__price-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-sidebar-card__price-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.service-sidebar-card__price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.service-sidebar-card__duration {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-sidebar-card__duration-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.service-sidebar-card__duration-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.service-sidebar-card__btn {
  width: 100%;
  justify-content: center;
}

/* ── Cases Page ──────────────────────────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.case-card {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background-color var(--transition);
}

.case-card:hover {
  background-color: var(--bg-3);
}

.case-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.case-card__description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.case-card__result {
  background-color: var(--bg-3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.case-card__result-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.case-card__result-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ── Blog List ───────────────────────────────────────────────────────────── */
.blog-tags {
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.blog-tags__list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.blog-tag-btn {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: opacity var(--transition);
}

.blog-tag-btn:hover {
  opacity: 0.8;
}

.blog-tag-btn--active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.blog-card {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color var(--transition);
}

.blog-card:hover {
  background-color: var(--bg-3);
}

.blog-card__body {
  flex: 1;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card__title-link {
  color: var(--text);
  text-decoration: none;
}

.blog-card__title-link:hover {
  color: var(--accent);
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Blog Post ───────────────────────────────────────────────────────────── */
.blog-post__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-post__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.blog-post__excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 0;
}

.blog-post__content.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.prose h2, .prose h3, .prose h4 {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p { margin-bottom: 1rem; }

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li { margin-bottom: 0.375rem; }

.prose a { color: var(--accent); }

.prose strong { color: var(--text); }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.5rem 0;
}

.prose code {
  background-color: var(--bg-3);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--text);
}

.prose pre {
  background-color: var(--bg-3);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose pre code {
  background: none;
  padding: 0;
}

/* ── Contacts Page ───────────────────────────────────────────────────────── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-block__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.contact-block__value {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.contact-block__value--large {
  font-size: 1.4rem;
  color: var(--accent);
}

.contact-block__vk {
  color: var(--accent);
}

.contact-block__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.repair-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 44px;
  background-color: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), background-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(245, 166, 35, 0.05);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-select option {
  background-color: var(--bg-3);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 1rem;
  display: block;
}

.form-success {
  background-color: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--success);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-error-global {
  background-color: rgba(224, 80, 80, 0.1);
  border: 1px solid rgba(224, 80, 80, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--danger);
  font-size: 0.95rem;
}

.form-submit-btn {
  align-self: flex-start;
  min-width: 200px;
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Why Block Cards ─────────────────────────────────────────────────────── */
.why-card {
  text-align: center;
}

.why-card__mark {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.why-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ── Track Page ──────────────────────────────────────────────────────────── */
.track-page {
  min-height: 60vh;
}

.track-header {
  margin-bottom: 2rem;
}

.track-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
}

.track-status-card {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.track-status-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.track-status-badge--new {
  background-color: rgba(184, 184, 184, 0.15);
  color: var(--tag-grey);
  border: 1px solid rgba(184, 184, 184, 0.3);
}

.track-status-badge--in_progress {
  background-color: rgba(245, 166, 35, 0.15);
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.track-status-badge--done {
  background-color: rgba(76, 175, 80, 0.15);
  color: var(--success);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.track-status-badge--cancelled {
  background-color: rgba(224, 80, 80, 0.1);
  color: var(--danger);
  border: 1px solid rgba(224, 80, 80, 0.3);
}

.track-status-badge--sm {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
}

.track-status-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

.track-details {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.track-detail-row {
  display: flex;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.track-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.track-detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  min-width: 130px;
  flex-shrink: 0;
}

.track-detail-value {
  font-size: 0.95rem;
  color: var(--text);
}

.track-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.track-contact p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.track-legend {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.track-legend__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.track-legend__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-legend__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.track-legend__item[aria-current="step"] dt .track-status-badge {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.track-legend__item dd {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 0.3rem;
}

/* ── Live Page ───────────────────────────────────────────────────────────── */
.live-player-section {
  background-color: #000;
  border-bottom: 1px solid var(--border);
}

.live-player-container {
  max-width: 960px;
}

.live-player-wrapper {
  position: relative;
  background-color: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

/* 16:9 aspect ratio */
.live-player {
  position: relative;
  padding-top: 56.25%;
  background-color: #0a0a0a;
}

.live-stub,
.live-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.live-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding: 2rem;
}

.live-stub__icon {
  opacity: 0.6;
}

.live-stub__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.live-stub__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.live-video {
  object-fit: cover;
}

.live-player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding: 0 0.25rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-badge--offline {
  background-color: rgba(184, 184, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(184, 184, 184, 0.2);
}

.live-badge--live {
  background-color: rgba(224, 80, 80, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(224, 80, 80, 0.3);
}

.live-badge--live::before {
  content: "●";
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-player-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── How It Works ────────────────────────────────────────────────────────── */
.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.how-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.how-step__connector {
  width: 2px;
  height: 1.5rem;
  background: linear-gradient(to bottom, var(--border), var(--accent));
  margin-left: 2.25rem;
}

.how-step__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  min-width: 3rem;
}

.how-step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.how-step__body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── CTA Section ─────────────────────────────────────────────────────────── */
.cta-section {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   10. Адаптив для новых страниц (Mobile First продолжение)
   ========================================================================== */

@media (max-width: 480px) {
  .service-detail__layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar-card {
    position: static;
  }

  .track-detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .track-detail-label {
    min-width: unset;
  }

  .form-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .track-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .how-it-works {
    gap: 0;
  }

  .how-step__num {
    font-size: 1.5rem;
    min-width: 2.5rem;
  }
}

@media (max-width: 768px) {
  .catalog-nav {
    top: 64px;
  }

  .catalog-nav__list {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

