@charset "UTF-8";
/* ==========================================================================
   Камбио — каркас сайта. Единый файл стилей.
   Палитра и типографика — по брендбуку (разделы «Цвет» и «Шрифт»):

     Синий     PANTONE 2746C  C:100 M:90 Y:0 K:10  R:0   G:50  B:130  #003282
     Оранжевый PANTONE 1655C  C:0 M:75 Y:100 K:0    R:255 G:132 B:68   #FF8444

   Синий — основной (кнопки, ссылки, подвал), оранжевый — акцент
   (линейки, подчёркивания, номера, активные состояния).
   Белый текст на оранжевом не проходит по контрасту, поэтому оранжевые
   кнопки сделаны с синим текстом (контраст 5:1), а основные кнопки — синие.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Шрифты

   Брендбук: заголовки — FuturisC Bold, текст — Futuris.
   Заказчик передал три файла: Futuris Regular, Futuris Bold и FuturisC Regular.
   Начертание FuturisC Bold в комплекте отсутствует, поэтому заголовки набраны
   настоящим Futuris Bold — это тот же фирменный шрифт, а не подделка
   синтетическим утолщением. Как только появится FuturisC Bold, достаточно
   добавить его в assets/fonts/ и поставить первым в --font-brand.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Futuris";
  src: url("../fonts/Futuris.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futuris";
  src: url("../fonts/Futurisb.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FuturisC";
  src: url("../fonts/FuturisC.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Токены
   -------------------------------------------------------------------------- */
:root {
  /* Фирменные цвета */
  --blue: #003282;
  --blue-dark: #00255f;
  --blue-soft: #1e388c;      /* цвет самого знака в макете логотипа */
  --blue-100: #e9eff8;
  --blue-200: #c8d6ea;

  --orange: #ff8444;
  --orange-dark: #f0681c;
  --orange-100: #fff2e9;

  /* Нейтральные */
  --ink: #15181d;
  --ink-soft: #3e4550;
  --muted: #6b7280;
  --line: #e3e7ee;
  --line-strong: #c7ced9;
  --surface: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  /* Подвал */
  --footer-bg: #003282;
  --footer-ink: #dbe4f3;
  --footer-muted: #9db2d4;
  --footer-line: #1b4a92;

  /* Геометрия */
  --radius: 2px;
  --radius-lg: 4px;
  --maxw: 1160px;
  --gutter: 18px;
  --header-h: 64px;

  /* Ритм */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 88px;

  --shadow-1: 0 1px 2px rgba(0, 40, 100, 0.06);
  --shadow-2: 0 12px 32px rgba(0, 40, 100, 0.1);

  /* Типографика */
  --font-brand: "Futuris", "FuturisC", "Segoe UI", system-ui, sans-serif;
  --font-body: "Futuris", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --dur: 0.18s;
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
}

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
    --header-h: 72px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
    --header-h: 80px;
  }
}

/* --------------------------------------------------------------------------
   3. База
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
picture {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: var(--blue);
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Типографика
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-brand);
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.85rem);
  line-height: 1.18;
}

h3 {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.32;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.text-muted {
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--orange);
  flex: none;
}

/* --------------------------------------------------------------------------
   5. Раскладка
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}

.section--plain {
  border-top: 0;
}

.section--soft {
  background: var(--bg-soft);
  border-top: 0;
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--sp-6);
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

@media (min-width: 860px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-5);
    margin-bottom: var(--sp-5);
  }

  .section-head__text {
    max-width: 64ch;
  }

  .section-head__aside {
    flex: none;
    padding-bottom: 6px;
  }
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 48ch;
  margin-top: 10px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
}

.skip-link:focus {
  left: var(--gutter);
  top: 10px;
}

/* --------------------------------------------------------------------------
   6. Кнопки и ссылки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-align: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-dark);
}

.btn--secondary {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--secondary:hover {
  background: var(--blue);
  color: #fff;
}

/* Оранжевая кнопка: синий текст — так проходит по контрасту */
.btn--accent {
  background: var(--orange);
  color: var(--blue);
  font-weight: 600;
}

.btn--accent:hover {
  background: var(--orange-dark);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--sp-4);
}

@media (max-width: 419px) {
  .btn-row .btn {
    width: 100%;
  }
}

.link-underline {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue);
  border-bottom: 1px solid var(--blue-200);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link-underline:hover {
  color: var(--orange-dark);
  border-bottom-color: var(--orange);
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--blue);
  transition: color var(--dur) var(--ease);
}

.link-quiet:hover {
  color: var(--orange-dark);
}

.link-quiet::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}

.link-quiet:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   7. Шапка и логотип
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--orange);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--header-h);
}

/* Лок-ап: знак + надпись собираются из двух файлов, пропорции — в CSS */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  flex: none;
}

.brand__logo {
  height: 26px;
  width: auto;
}

.brand__tag {
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1;
}

@media (min-width: 640px) {
  .brand__logo {
    height: 30px;
  }
}

/* Бургер */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle__box {
  display: block;
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--blue);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: 5px; }
.nav-toggle__box span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav {
  display: none;
  position: fixed;
  inset: calc(var(--header-h) + 3px) 0 auto 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-2) var(--gutter) var(--sp-4);
  box-shadow: var(--shadow-2);
}

.nav.is-open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list li + li {
  border-top: 1px solid var(--line);
}

.nav-link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link[aria-current="page"] {
  color: var(--blue);
  font-weight: 500;
}

.nav-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.nav-contacts a {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.nav-contacts a:hover {
  color: var(--blue);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    align-items: center;
    gap: var(--sp-5);
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-4);
  }

  .nav-list li + li {
    border-top: 0;
  }

  .nav-link {
    padding: 6px 0;
    font-size: 0.95rem;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    border-bottom-color: var(--orange);
  }

  .nav-contacts {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .nav-contacts a {
    font-size: 0.8125rem;
    color: var(--muted);
    white-space: nowrap;
  }

  .nav-contacts .nav-phone {
    font-size: 1rem;
    color: var(--blue);
    font-weight: 600;
  }
}

/* --------------------------------------------------------------------------
   8. Первый экран
   -------------------------------------------------------------------------- */
.hero {
  padding-block: var(--sp-4) var(--sp-5);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}

.hero__grid {
  display: grid;
  gap: var(--sp-5);
}

.hero__copy h1 {
  margin-top: var(--sp-3);
  max-width: 26ch;
}

.hero__copy .lead {
  margin-top: var(--sp-3);
  max-width: 54ch;
}

.hero__note {
  margin-top: var(--sp-3);
  font-size: 0.875rem;
  color: var(--muted);
}

.hero__visual {
  position: relative;
}

.hero__frame {
  position: relative;
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--blue-200);
  z-index: 0;
}

.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--blue-100);
}

@media (min-width: 900px) {
  .hero {
    padding-block: var(--sp-6) var(--sp-7);
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-6);
    align-items: center;
  }

  .hero__copy h1 {
    max-width: 20ch;
  }

  .hero__visual {
    padding-left: 14px;
  }
}

/* --------------------------------------------------------------------------
   9. Направления
   -------------------------------------------------------------------------- */
.directions {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 760px) {
  .directions {
    grid-template-columns: 1fr 1fr;
  }
}

.direction {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.direction:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-2);
}

.direction__media {
  overflow: hidden;
}

.direction__media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.direction:hover .direction__media img {
  transform: scale(1.02);
}

.direction__body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.direction__meta {
  font-size: 0.8125rem;
  color: var(--orange-dark);
  font-weight: 500;
  margin-top: 8px;
}

.direction__desc {
  margin-top: var(--sp-2);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-3);
}

.chip {
  font-size: 0.8125rem;
  padding: 7px 12px;
  border: 1px solid transparent;
  background: var(--blue-100);
  color: var(--blue);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.chip:hover {
  background: var(--blue);
  color: #fff;
}

.direction__footer {
  margin-top: auto;
  padding-top: var(--sp-3);
}

/* --------------------------------------------------------------------------
   10. Услуги
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  gap: 0;
}

@media (min-width: 760px) {
  .services {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }
}

.service {
  padding-block: var(--sp-3);
  border-top: 1px solid var(--line);
}

.service:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (min-width: 760px) {
  .service {
    border-top: 0;
    padding-block: 0;
  }
}

.service__index {
  font-family: var(--font-brand);
  font-size: 0.875rem;
  color: var(--orange-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service h3 {
  margin-top: 10px;
}

.service p {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

.service p + p {
  margin-top: 10px;
}

.service .link-underline {
  margin-top: var(--sp-2);
}

/* --------------------------------------------------------------------------
   11. Каталог
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 560px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-2);
}

.card__media {
  overflow: hidden;
  background: var(--blue-100);
}

.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.02);
}

.card__body {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__tag {
  font-size: 0.75rem;
  color: var(--muted);
}

.card__title {
  margin-top: 8px;
}

.card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}

.card__actions .link-underline,
.card__actions .link-quiet {
  align-self: flex-start;
}

/* Плитка категории */
.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.tile:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-2);
}

.tile__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
}

.tile__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.tile__arrow {
  flex: none;
  color: var(--blue);
  transition: transform var(--dur) var(--ease);
}

.tile:hover .tile__arrow {
  transform: translateX(4px);
}

.category-block {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
  margin-top: var(--sp-5);
}

.category-block:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.category-block__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--sp-3);
}

.category-block__note {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .category-block__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-4);
  }
}

/* --------------------------------------------------------------------------
   12. Внутренние страницы
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--line-strong);
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.page-head {
  padding-block: var(--sp-3) var(--sp-4);
}

.page-head h1 {
  max-width: 26ch;
}

.page-head .lead {
  margin-top: var(--sp-2);
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   13. Коллекция
   -------------------------------------------------------------------------- */
.collection {
  display: grid;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
}

@media (min-width: 1000px) {
  .collection {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: var(--sp-6);
    align-items: start;
  }
}

.collection__desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.collection__desc p + p {
  margin-top: 12px;
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: var(--sp-4);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-100);
}

/* Заголовок «Серии» под плитками подкатегорий — отделяем от них */
.gallery-head--spaced {
  margin-top: 48px;
}

.gallery-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  background: var(--orange);
}

.gallery-head__hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  margin-top: var(--sp-3);
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
  }
}

.gallery__item {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s var(--ease), opacity var(--dur) var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.03);
  opacity: 0.94;
}

/* Боковая колонка */
.aside-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  padding: var(--sp-3);
}

@media (min-width: 1000px) {
  .aside-card {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-3));
  }
}

.aside-card__title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

.aside-card__file {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  word-break: break-word;
}

.aside-card .btn {
  margin-top: var(--sp-2);
}

.aside-card__note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.aside-sep {
  border-top: 1px solid var(--line);
  margin-block: var(--sp-3);
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9375rem;
}

.aside-list a {
  color: var(--blue);
}

.aside-list a:hover {
  color: var(--orange-dark);
}

/* --------------------------------------------------------------------------
   14. Просмотр фото
   -------------------------------------------------------------------------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(0, 24, 58, 0.88);
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  background: var(--surface);
}

.lightbox__caption {
  font-size: 0.875rem;
  color: #d5deee;
  text-align: center;
}

.lightbox__count {
  color: #93a6c6;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--blue);
  border-radius: var(--radius);
  font-size: 1.375rem;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--orange);
  color: var(--blue);
}

.lightbox__close {
  top: -52px;
  right: 0;
}

.lightbox__nav--prev {
  left: -56px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1240px) {
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (max-width: 640px) {
  .lightbox {
    max-width: 100vw;
  }

  .lightbox__close {
    top: auto;
    bottom: -56px;
    right: 50%;
    transform: translateX(50%);
  }

  .lightbox__img {
    max-height: 70vh;
  }
}

/* --------------------------------------------------------------------------
   15. Контакты
   -------------------------------------------------------------------------- */
.contacts {
  display: grid;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
}

@media (min-width: 900px) {
  .contacts {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: var(--sp-6);
    align-items: start;
  }
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contacts__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

.contacts__value {
  margin-top: 6px;
  font-size: 1.0625rem;
}

.contacts__value a {
  color: var(--blue);
}

.contacts__value a:hover {
  color: var(--orange-dark);
}

.map-embed {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */
.error-page {
  padding-block: var(--sp-6) var(--sp-7);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-brand);
  font-size: clamp(4rem, 3rem + 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-100);
}

.error-page h1 {
  margin-top: var(--sp-2);
}

.error-page p {
  margin-top: var(--sp-2);
  color: var(--muted);
}

.error-page .btn-row {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   17. Подвал
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: var(--sp-5) var(--sp-3);
  margin-top: var(--sp-5);
  border-top: 3px solid var(--orange);
}

.footer-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: var(--sp-5);
  }
}

.footer-brand .brand {
  margin-bottom: var(--sp-2);
}

.footer-brand .brand__tag {
  color: var(--footer-muted);
}

.footer-title {
  display: block;
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-2);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--footer-muted);
  max-width: 36ch;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
}

.footer-list a:hover {
  color: #fff;
}

.footer-address {
  margin-top: var(--sp-2);
  font-size: 0.875rem;
  color: var(--footer-muted);
  max-width: 30ch;
}

.footer-bottom {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--footer-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--sp-3);
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--footer-muted);
}

/* --------------------------------------------------------------------------
   18. Служебное
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.note-demo {
  margin-top: var(--sp-3);
  padding: 12px 14px;
  border: 1px dashed var(--orange);
  background: var(--orange-100);
  font-size: 0.8125rem;
  color: #8a4a1c;
}

/* --------------------------------------------------------------------------
   19. Настройки пользователя
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .direction:hover .direction__media img,
  .card:hover .card__media img,
  .gallery__item:hover img {
    transform: none;
  }
}

/* ==========================================================================
   WordPress: классы ядра, админ-бар и блоки, которых не было в статичной вёрстке
   ========================================================================== */

/* Скрытый текст для скринридеров — класс ядра WordPress */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  background: var(--blue);
  color: #fff;
}

/* Липкая шапка и панель меню не должны заезжать под админ-бар */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar .nav {
  top: calc(var(--header-h) + 3px + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .nav {
    top: calc(var(--header-h) + 3px + 46px);
  }
}

/* Логотип-заглушка, если картинка не задана */
.brand__logo-text {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
}

.footer-brand .brand__logo-text {
  color: #fff;
}

/* Первый экран без фотографии */
.hero--text-only .hero__grid {
  grid-template-columns: minmax(0, 1fr);
}

.hero--text-only .hero__copy {
  max-width: 64ch;
}

/* Карточка: превью и заголовок — ссылки */
.card__media {
  display: block;
}

.card__title a {
  color: inherit;
}

.card__title a:hover {
  color: var(--blue);
}

/* Таблица технических характеристик */
.specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-3);
  font-size: 0.9375rem;
}

.specs th,
.specs td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs th {
  width: 36%;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-soft);
}

.specs tr:first-child th,
.specs tr:first-child td {
  border-top: 1px solid var(--line);
}

/* Образцы отделок */
.finishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.finish {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finish__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.finish__name {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Постраничная навигация */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-5);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink);
}

.pagination .page-numbers:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pagination .page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pagination .dots {
  border: 0;
}

/* Содержимое обычных страниц («Услуги», «Контакты») */
.entry {
  max-width: 76ch;
  font-size: 1rem;
  color: var(--ink-soft);
}

.entry > * + * {
  margin-top: 1em;
}

.entry h2 {
  margin-top: 1.7em;
  color: var(--ink);
}

.entry h3 {
  margin-top: 1.4em;
  color: var(--ink);
}

.entry ul,
.entry ol {
  padding-left: 1.3em;
  list-style: disc;
}

.entry ol {
  list-style: decimal;
}

.entry li + li {
  margin-top: 0.4em;
}

.entry a {
  color: var(--blue);
  border-bottom: 1px solid var(--blue-200);
}

.entry a:hover {
  color: var(--orange-dark);
  border-bottom-color: var(--orange);
}

.entry blockquote {
  border-left: 3px solid var(--orange);
  padding-left: 16px;
  color: var(--muted);
  font-style: italic;
}

.entry img,
.entry iframe {
  max-width: 100%;
}

.entry iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border: 1px solid var(--line);
}

.entry table {
  width: 100%;
  border-collapse: collapse;
}

.entry th,
.entry td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.entry .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Широкие изображения блоков не должны вылезать за колонку */
.entry .alignwide,
.entry .alignfull {
  max-width: 100%;
}

/* Крошки: на телефоне второстепенные пункты скрываем, чтобы не занимали две строки */
@media (max-width: 600px) {
  .breadcrumbs__secondary {
    display: none;
  }
}

/* Длинное описание коллекции: продолжение раскрывается по нажатию */
.desc-more {
  margin-top: 12px;
}

.desc-more summary {
  display: inline-block;
  cursor: pointer;
  color: var(--color-link, #003282);
  border-bottom: 1px solid currentColor;
  line-height: 1.4;
}

.desc-more summary::-webkit-details-marker {
  display: none;
}

.desc-more[open] summary {
  margin-bottom: 12px;
}

.desc-more p {
  margin-top: 12px;
}

/* Характеристики списком: на старом сайте это пункты, а не таблица */
.specs-list {
  margin-top: 4px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft, #4a4a4a);
  line-height: 1.6;
}

.specs-list li {
  position: relative;
  padding-left: 20px;
}

.specs-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange, #FF8444);
}
