/* ═══════════════════════════════════════════════════════════════════════════
   АРМАДА · Облицовочный кирпич — главный CSS
   Стиль: светлый premium building materials, тёплый бежевый фон,
   глубокий графит, фирменный красный rgb(196,0,0).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Брендовые цвета */
  --c-red:           rgb(196, 0, 0);
  --c-red-dark:      rgb(165, 0, 0);
  --c-red-soft:      rgba(196, 0, 0, .08);
  --c-wa:            #25D366;
  --c-wa-dark:       #128C7E;

  /* Базовая палитра */
  --c-bg:            #f6f1ea;             /* тёплый фасадный фон */
  --c-bg-deep:       #ede4d4;
  --c-card:          #ffffff;
  --c-card-warm:     #fbf6ef;             /* молочно-бежевые карточки */
  --c-ink:           #1a1a1a;             /* глубокий графит */
  --c-ink-soft:      #3a3a3a;
  --c-muted:         #6e6e6e;
  --c-line:          #e7ddcb;
  --c-line-soft:     #f1e8d8;

  /* Радиусы и тени */
  --r-sm:            8px;
  --r-md:            14px;
  --r-lg:            22px;
  --r-xl:            32px;
  --shadow-sm:       0 2px 8px rgba(50, 30, 0, .06);
  --shadow-md:       0 12px 32px rgba(50, 30, 0, .08);
  --shadow-lg:       0 24px 60px rgba(50, 30, 0, .12);

  /* Сетка */
  --container:       1240px;
  --gutter:          24px;

  /* Типографика */
  --font:            'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-h1:           clamp(2.2rem, 4.5vw, 4rem);
  --fs-h2:           clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:           clamp(1.1rem, 1.8vw, 1.4rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

/* ─── Кнопки ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  background: var(--c-card);
  color: var(--c-ink);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn--red       { background: var(--c-red); color: #fff; }
.btn--red:hover { background: var(--c-red-dark); color: #fff; }

.btn--wa        { background: var(--c-wa); color: #fff; }
.btn--wa:hover  { background: var(--c-wa-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover {
  background: var(--c-card);
  border-color: var(--c-ink);
}

/* ─── Секционные заголовки ──────────────────────────────────────────── */
.section__title {
  font-size: var(--fs-h2);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
  color: var(--c-ink);
}
.section__sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  margin: 0 0 2rem;
  max-width: 680px;
}
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.accent { color: var(--c-red); }

/* ═══ HEADER ════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 234, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 80px;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.header__logo img { display: block; height: 48px; width: auto; }
.header__nav {
  display: flex;
  gap: 1.5rem;
  margin: 0 auto;
}
.header__nav a {
  color: var(--c-ink-soft);
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.header__nav a:hover { color: var(--c-red); border-color: var(--c-red); }

.header__contacts {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  color: var(--c-ink);
}
.header__phone-num { font-weight: 700; font-size: 1.05rem; }
.header__phone-hours { font-size: .8rem; color: var(--c-muted); }
.header__burger { display: none; }

@media (max-width: 1100px) {
  .header__nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-bg); padding: 1rem var(--gutter); flex-direction: column; gap: .25rem;
    border-bottom: 1px solid var(--c-line); }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding: .7rem 0; }
  .header__burger {
    display: flex; flex-direction: column; gap: 4px; width: 40px; height: 40px;
    align-items: center; justify-content: center; background: var(--c-card-warm);
    border: 1px solid var(--c-line); border-radius: 10px;
  }
  .header__burger span { display: block; width: 18px; height: 2px; background: var(--c-ink); border-radius: 2px; }
}
@media (max-width: 720px) {
  .header__phone { display: none; }
  .header__contacts .btn span:not([class]) { display: none; }
  .header__contacts .btn--wa { padding: .65rem; }
}

/* ═══ HERO ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 2.5rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(196,0,0,.04), transparent 40%),
    var(--c-bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero__h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 0 0 1.2rem;
}
.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--c-ink-soft);
  margin: 0 0 1.8rem;
  max-width: 540px;
}
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hero__quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 460px;
}
.hero__quick-stats > div {
  display: flex; flex-direction: column;
  background: var(--c-card-warm);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
}
.hero__quick-stats strong { font-size: 1.3rem; color: var(--c-red); font-weight: 800; }
.hero__quick-stats span { font-size: .8rem; color: var(--c-muted); }

.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 14px;
}
.hero__photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5/4;
  background: var(--c-card-warm);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__textures {
  display: flex; flex-direction: column; gap: 12px;
}
.hero__textures img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-card-warm);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.hero__textures img:hover { transform: scale(1.03); box-shadow: var(--shadow-sm); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { grid-template-columns: 1fr 80px; }
  .hero__quick-stats { max-width: 100%; }
}

/* Полоса УТП */
.trust-bar {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.trust-bar li {
  display: flex; gap: .6rem; align-items: center;
  font-size: .9rem; color: var(--c-ink-soft);
  font-weight: 500;
}
.trust-bar li::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex: 0 0 22px;
  background: var(--c-red-soft); color: var(--c-red);
  border-radius: 50%; font-weight: 700; font-size: .8rem;
}
@media (max-width: 900px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-bar { grid-template-columns: 1fr; padding: 1rem; }
}

/* ═══ КАЧЕСТВО (3 баннера) ═════════════════════════════════════════ */
.quality { padding: clamp(3rem, 6vw, 5rem) 0; }
.quality__list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.quality__list li {
  background: var(--c-card-warm);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .6rem;
}
.quality__list .icon {
  width: 56px; height: 56px;
  background: var(--c-red);
  color: #fff;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: .5rem;
}
.quality__list h3 { font-size: 1.2rem; margin: 0; font-weight: 700; }
.quality__list p { margin: 0; color: var(--c-muted); font-size: .95rem; }
@media (max-width: 800px) {
  .quality__list { grid-template-columns: 1fr; }
}

/* ═══ КАТАЛОГ ══════════════════════════════════════════════════════ */
.catalog { padding: clamp(2rem, 5vw, 4rem) 0; }

.catalog__count {
  color: var(--c-muted);
  font-size: .95rem;
}
.catalog__filters {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.catalog__filters button {
  border: 1px solid var(--c-line);
  background: var(--c-card);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-size: .9rem;
  color: var(--c-ink-soft);
  font-weight: 500;
  transition: all .15s;
}
.catalog__filters button:hover { border-color: var(--c-ink); }
.catalog__filters button.is-active {
  background: var(--c-ink); color: #fff; border-color: var(--c-ink);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

/* Карточка кирпича */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-bg-deep); }

.card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-card-warm);
  cursor: zoom-in;
}
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card__img img { transform: scale(1.04); }
.card__zoom {
  position: absolute; right: 10px; top: 10px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; gap: .7rem; }
.card__name { font-size: 1.05rem; font-weight: 700; line-height: 1.25; margin: 0; }
.card__meta { font-size: .82rem; color: var(--c-muted); }
.card__meta strong { color: var(--c-ink-soft); font-weight: 500; }

.card__formats {
  display: flex; gap: .35rem; flex-wrap: wrap;
}
.card__formats span {
  font-size: .72rem;
  background: var(--c-card-warm);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 600;
  color: var(--c-ink-soft);
}

.card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-top: auto;
}
.card__price small {
  font-size: .75rem; color: var(--c-muted); font-weight: 500;
}

.card__brand {
  font-size: .7rem;
  color: var(--c-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card__btn {
  align-self: stretch;
  background: var(--c-red); color: #fff;
  border-radius: 999px;
  border: none;
  padding: .75rem 1rem;
  font-weight: 600;
  font-size: .92rem;
  margin-top: .3rem;
  transition: background .2s;
}
.card__btn:hover { background: var(--c-red-dark); }

.catalog__more { text-align: center; margin-top: 2.5rem; }
.catalog__more.is-hidden { display: none; }

/* ═══ КАК ВЫБРАТЬ + КАЛЬКУЛЯТОР ════════════════════════════════════ */
.howto { padding: clamp(2rem, 5vw, 4rem) 0; }
.howto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.howto__card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.howto__card--calc { background: var(--c-card-warm); }
.howto__list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.1rem;
  display: flex; flex-direction: column; gap: .7rem;
  color: var(--c-ink-soft);
}
.howto__list li::marker { color: var(--c-red); font-weight: 700; }

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin: 1rem 0;
}
.calc__field {
  display: flex; flex-direction: column; gap: .35rem;
}
.calc__field span { font-size: .8rem; color: var(--c-muted); font-weight: 500; }
.calc__field input, .calc__field select {
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: var(--r-sm);
  padding: .7rem .85rem;
  font: inherit;
  color: var(--c-ink);
  transition: border-color .15s;
}
.calc__field input:focus, .calc__field select:focus {
  outline: none; border-color: var(--c-red);
}
.calc__result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin: 1.2rem 0;
  padding: 1.1rem;
  background: #fff;
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
}
.calc__result > div {
  display: flex; flex-direction: column;
}
.calc__result strong {
  font-size: 1.4rem; font-weight: 800; color: var(--c-red); line-height: 1.1;
}
.calc__result span { font-size: .78rem; color: var(--c-muted); margin-top: 3px; }

@media (max-width: 900px) {
  .howto__grid { grid-template-columns: 1fr; }
  .calc__result { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .calc { grid-template-columns: 1fr; }
}

/* ═══ СОПУТСТВУЮЩИЕ МАТЕРИАЛЫ ══════════════════════════════════════ */
.addons { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--c-bg-deep); }
.addons__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.addon-card {
  display: flex; flex-direction: column;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.addon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.addon-card__img {
  aspect-ratio: 1; background: var(--c-card-warm);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.addon-card__img img { width: 100%; height: 100%; object-fit: contain; }
.addon-card__body { padding: 1.2rem; }
.addon-card__body h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.addon-card__body p { margin: 0 0 .8rem; color: var(--c-muted); font-size: .9rem; }
.addon-card__link {
  color: var(--c-red); font-weight: 600; font-size: .9rem;
}
@media (max-width: 1000px) { .addons__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .addons__grid { grid-template-columns: 1fr; } }

/* ═══ ДОСТАВКА ═════════════════════════════════════════════════════ */
.delivery { padding: clamp(2rem, 5vw, 4rem) 0; }
.delivery__features {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.delivery__features li {
  background: var(--c-card-warm);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 1rem;
  display: flex; align-items: center; gap: .8rem;
  font-weight: 600;
}
.delivery__features .icon { font-size: 1.6rem; }
.delivery__cities {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .8rem;
}
.delivery__cities li {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 1rem;
}
.delivery__cities strong { display: block; font-size: 1.05rem; }
.delivery__cities span { font-size: .82rem; color: var(--c-muted); }

@media (max-width: 900px) { .delivery__features { grid-template-columns: repeat(2, 1fr); } .delivery__cities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .delivery__features, .delivery__cities { grid-template-columns: 1fr; } }

/* ═══ ПРОЕКТЫ ══════════════════════════════════════════════════════ */
.projects { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--c-bg-deep); }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.projects__grid figure {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: zoom-in;
  background: var(--c-card-warm);
}
.projects__grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.projects__grid figure:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .projects__grid { grid-template-columns: 1fr; } }

/* ═══ ОТЗЫВЫ ═══════════════════════════════════════════════════════ */
.reviews { padding: clamp(2rem, 5vw, 4rem) 0; }
.reviews__list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.reviews__list li {
  background: var(--c-card-warm);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.reviews__stars { color: #f5b50a; font-size: 1rem; }
.reviews__text { margin: .7rem 0; color: var(--c-ink-soft); font-size: .98rem; }
.reviews__author { font-weight: 700; }
.reviews__role { font-size: .82rem; color: var(--c-muted); }
@media (max-width: 720px) { .reviews__list { grid-template-columns: 1fr; } }

/* ═══ FAQ ══════════════════════════════════════════════════════════ */
.faq { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--c-bg-deep); }
.faq__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  align-items: start;
}
.faq details {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem; color: var(--c-red); font-weight: 600;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p {
  margin: 0; padding: 0 1.4rem 1.2rem;
  color: var(--c-ink-soft);
}
@media (max-width: 720px) {
  .faq__list { grid-template-columns: 1fr; }
}

/* ═══ ФИНАЛЬНЫЙ CTA ════════════════════════════════════════════════ */
.cta-final {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--c-ink);
  color: #fff;
}
.cta-final__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
}
.cta-final h2 { font-size: var(--fs-h2); margin: 0 0 .4rem; color: #fff; }
.cta-final p { margin: 0; color: rgba(255,255,255,.7); }
.cta-final__btns { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ═══ FOOTER ═══════════════════════════════════════════════════════ */
.footer {
  background: #161616;
  color: #cbcbcb;
  padding: clamp(2rem, 4vw, 3rem) 0 0;
  font-size: .95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.footer__brand img { filter: brightness(0) invert(1); margin-bottom: .8rem; }
.footer h4 { font-size: 1rem; margin: 0 0 .8rem; color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer ul a:hover, .footer__brand a:hover { color: #fff; }
.footer a:hover { color: #fff; }
.footer__bottom {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid #2a2a2a;
  font-size: .82rem;
  color: #777;
  text-align: center;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ═══ LIGHTBOX ═════════════════════════════════════════════════════ */
.lightbox[hidden] { display: none !important; }   /* important — побеждает .lightbox{display:flex} */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 1;
  animation: lightbox-in .2s ease;
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig {
  margin: 0;
  max-width: 92vw;
  max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox__cap {
  color: #fff;
  text-align: center;
  font-size: .9rem;
  opacity: .8;
  max-width: 720px;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.25); }

@media (max-width: 720px) {
  .lightbox__close, .lightbox__prev, .lightbox__next {
    width: 40px; height: 40px; font-size: 1.4rem;
  }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
}

/* ═══ УТИЛИТЫ ═════════════════════════════════════════════════════ */
.is-hidden { display: none !important; }
.muted { color: var(--c-muted); }

/* ─── Brick info ───────────────────────────────────────────────── */
.brick-info { padding: var(--section-py) 0; background: var(--c-bg-deep); }
.brick-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.brick-info__col h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; color: var(--c-ink); }
.brick-info__col p  { color: var(--c-ink-soft); line-height: 1.65; font-size: .95rem; margin-bottom: .75rem; }
.brick-info__list   { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.brick-info__list li { color: var(--c-ink-soft); font-size: .95rem; line-height: 1.5; padding-left: 1.1rem; position: relative; }
.brick-info__list li::before { content: '—'; position: absolute; left: 0; color: var(--c-red); }
@media (max-width: 900px) {
  .brick-info__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .brick-info__grid { grid-template-columns: 1fr; }
}

/* ─── Quiz ─────────────────────────────────────────────────────── */
.quiz { background: var(--c-bg); padding: var(--section-py) 0; border-bottom: 1px solid var(--c-line); }
.quiz__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.quiz__header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.quiz__header p  { color: var(--c-muted); margin-bottom: 2rem; }

.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.quiz__q  { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.2rem; }
.quiz__opts { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.quiz__opt {
  padding: .7rem 1.4rem;
  border-radius: var(--r-full);
  border: 2px solid var(--c-line);
  background: var(--c-card);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color .15s, background .15s, color .15s;
}
.quiz__opt:hover, .quiz__opt.is-selected {
  border-color: var(--c-red);
  background: var(--c-red-soft);
  color: var(--c-red);
}

.quiz__result { margin-top: 1.5rem; }
.quiz__result-text { font-size: 1.05rem; margin-bottom: 1.5rem; }
.quiz__result-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.quiz__restart { background: none; border: none; color: var(--c-muted); cursor: pointer; font-size: .9rem; text-decoration: underline; }
.quiz__restart:hover { color: var(--c-red); }

.quiz__progress { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.quiz__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-line); transition: background .2s; }
.quiz__dot.is-active { background: var(--c-red); }
.quiz__dot.is-done   { background: var(--c-red-soft); border: 1px solid var(--c-red); }

@media (max-width: 600px) {
  .quiz__opts { flex-direction: column; align-items: stretch; }
  .quiz__opt  { text-align: left; }
  .quiz__result-btns { flex-direction: column; }
}
