/**
 * Стили PHP-страниц в духе выгрузки Tilda (sh-page): светлый фон, системный шрифт,
 * зелёный акцент и чёрные кнопки как в блоке каталога.
 */
:root {
  --bg: #ffffff;
  --bg-elevated: #f5f5f5;
  --bg-muted: #f5f5f5;
  --bg-dark: #222222;
  --surface: #ffffff;
  --text: #000000;
  --text-soft: #414141;
  --muted: #666666;
  --border: #eeeeee;
  --border-strong: #dddddd;
  --accent: #5ad023;
  --accent-hover: #4bb81c;
  --accent-soft: rgba(90, 208, 35, 0.12);
  --btn-dark: #000000;
  --btn-dark-hover: #333333;
  --radius: 5px;
  --radius-lg: 8px;
  --container: 1200px;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.sh-page,
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ——— Tilda-like container ——— */
.sh-container,
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-left: auto;
  margin-right: auto;
}

.narrow {
  max-width: 720px;
}

body.sh-page > #site-main.sh-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#site-main.sh-stack .main {
  flex: 1;
  width: 100%;
}

.center {
  text-align: center;
}

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

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* ——— Header (как верхнее меню Tilda) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--btn-dark);
  flex-shrink: 0;
}

.logo__mark--footer {
  width: 1.75rem;
  height: 1.75rem;
}

.header-phone {
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.header-phone:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(90, 208, 35, 0.35);
}

.nav-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle:hover {
  border-color: #ccc;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  align-items: center;
}

.nav__link {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius);
  transition:
    color 0.2s,
    background 0.2s;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.nav__link.is-active {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.nav__link--sub {
  font-size: 0.82rem;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    gap: 0.15rem;
  }

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

  .nav__link {
    padding: 0.65rem 0.85rem;
  }

  .header-phone {
    margin-left: 0;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(2rem, 6vw, 3.5rem);
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(90, 208, 35, 0.12) 0%,
    transparent 45%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 52rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.85rem;
}

.hero__title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__title .accent {
  color: var(--accent);
  font-style: normal;
}

.hero__lead {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Buttons (как sh-btnflex в Tilda) ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--btn-dark);
  color: #fff;
  box-shadow: none;
}

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

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* ——— Sections ——— */
.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section--alt {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

.section--tight {
  padding-top: 0;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
  max-width: 720px;
}

.section__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}

.section__title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section__intro {
  margin: 0;
  max-width: 52ch;
  color: var(--text-soft);
  font-size: 1rem;
}

/* ——— Features ——— */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.feature-card__num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ——— Product grid (карточки как в sh-store) ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.25s var(--ease-out);
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.product-card__link {
  display: block;
  height: 100%;
}

.product-card__visual {
  aspect-ratio: 4 / 3;
  background: var(--bg-muted);
  position: relative;
  overflow: hidden;
}

.product-card__visual--img {
  padding: 0;
}

.product-card__visual--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.product-card:hover .product-card__visual--img img {
  transform: scale(1.03);
}

.product-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.price {
  font-weight: 700;
  color: var(--text);
  margin: 0.45rem 0 0;
  font-size: 1rem;
}

.meta {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ——— Page ——— */
.page-head {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.page-head--compact {
  padding-bottom: 0.5rem;
}

.page-title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.breadcrumbs a {
  color: var(--muted);
}

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

.breadcrumbs span {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.chip:hover {
  border-color: #ccc;
  color: var(--text);
}

.chip.is-active {
  border-color: var(--btn-dark);
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

/* ——— Product page ——— */
.product-layout {
  display: grid;
  grid-template-columns: 1fr min(300px, 100%);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-gallery__carousel {
  outline: none;
}

.product-gallery__carousel:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
  border-radius: var(--radius-lg);
}

.gallery-viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.gallery-track-wrap {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    transition: none;
  }
}

.gallery-slide {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: contain;
  vertical-align: middle;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.gallery-nav:hover {
  background: #fff;
  border-color: var(--btn-dark);
  color: var(--accent);
}

.gallery-nav--prev {
  left: 0.65rem;
}

.gallery-nav--next {
  right: 0.65rem;
}

.gallery-nav__icon {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 300;
  margin-top: -0.1em;
}

@media (max-width: 600px) {
  .gallery-nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .gallery-nav--prev {
    left: 0.35rem;
  }

  .gallery-nav--next {
    right: 0.35rem;
  }
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  max-height: 120px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-muted);
  opacity: 0.72;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--btn-dark);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-counter {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg-muted);
}

.product-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* ——— Карточка товара: характеристики и вкладки ——— */
.product-specs-section {
  padding-top: 0;
  margin-top: -0.5rem;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 0;
  padding: 1rem 1.25rem;
  list-style: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.product-specs__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: min(100%, 160px);
}

.product-specs__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.product-specs__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.product-detail-sections .sh-container {
  max-width: min(100%, 1200px);
}

.product-detail-sections .prose--donor-tabs {
  max-width: 100%;
  width: 100%;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 1.5rem;
  border-bottom: 2px solid var(--border);
}

.product-tabs__btn {
  position: relative;
  margin: 0;
  padding: 0.95rem 1.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.product-tabs__btn:hover {
  color: var(--text);
}

.product-tabs__btn.is-active {
  color: var(--text);
  border-bottom-color: #ffd600;
}

.product-tabpanel[hidden] {
  display: none;
}

.product-tabpanel__inner {
  max-width: none;
}

/* Планировки: компактнее отступы донора (60px → ~20px), подзаголовок секции */
#product-panel-plans .donor-tilda-snippet .r.sh-block:has(.sh-b799),
#product-panel-plans .donor-tilda-snippet .r.sh-block:has(.t799),
#product-panel-plans .donor-tilda-snippet .r.t-rec:has(.t799),
#product-panel-plans .donor-tilda-snippet .r.t-rec:has(.sh-b799) {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

#product-panel-plans .donor-tilda-snippet .t799 .t-container,
#product-panel-plans .donor-tilda-snippet .sh-b799 .sh-container {
  gap: 1rem 1.25rem;
}

#product-panel-plans .donor-tilda-snippet .t-section__descr,
#product-panel-plans .donor-tilda-snippet .sh-descr.sh-descr_xl {
  margin-bottom: 1rem;
}

.plan-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.plan-filter-bar__btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.plan-filter-bar__btn:hover {
  border-color: var(--btn-dark);
  color: var(--text);
}

.plan-filter-bar__btn.is-active {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.plan-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .plan-cards {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

.plan-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.plan-card.is-hidden {
  display: none;
}

.plan-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.plan-card__text {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.plan-card__price {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.product-acc {
  margin: 0 0 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.product-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}

.product-acc summary::-webkit-details-marker {
  display: none;
}

.product-acc summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
}

.product-acc[open] summary::after {
  content: "−";
}

.product-acc__body {
  padding: 0 1.1rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

.product-acc__body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.option-subtabs {
  margin-bottom: 1rem;
}

.option-subtabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.option-subtabs__btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.option-subtabs__btn:hover {
  border-color: var(--btn-dark);
}

.option-subtabs__btn.is-active {
  color: var(--text);
  background: var(--bg-muted);
  border-color: var(--btn-dark);
}

.option-subtabs__panel[hidden] {
  display: none;
}

.option-subtabs__panel {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.price--lg {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.prose {
  max-width: 720px;
  color: var(--text-soft);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.prose h2,
.prose h3 {
  font-weight: 700;
  margin-top: 1.5rem;
  color: var(--text);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

/* ——— Empty / 404 ——— */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg-muted);
}

.empty-state__icon {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.error-page .page-title {
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 1;
  color: var(--text);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.25rem;
  margin-top: auto;
  background: var(--bg-muted);
}

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

.footer-col--wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .footer-col--wide {
    grid-column: span 2;
  }
}

.footer-address-factory {
  margin-top: 0.5rem;
}

.footer-requisites {
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 52ch;
}

.footer-brand {
  max-width: 32ch;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-logo .logo__text {
  font-size: 1.2rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.footer-heading {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.footer-col p {
  margin: 0 0 0.4rem;
  color: var(--text-soft);
}

.footer-link {
  color: var(--text);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-legal {
  color: var(--muted);
}

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

/* ——— Страница «Контакты» ——— */
.contacts-hero {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.contacts-hero__phone {
  margin: 0.5rem 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.contacts-hero__phone a {
  color: var(--text);
}

.contacts-hero__phone a:hover {
  color: var(--accent);
}

.contacts-body {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.contacts-intro {
  margin-bottom: 2.25rem;
  max-width: 720px;
}

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

.contacts-card {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.contacts-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.contacts-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .contacts-card--wide {
    grid-column: span 2;
  }
}

.contacts-card__label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contacts-card__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.contacts-card__value a {
  color: var(--text);
}

.contacts-card__value a:hover {
  color: var(--accent);
}

.contacts-card__value--multiline {
  font-weight: 500;
  line-height: 1.55;
}

.contacts-card__hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.contacts-card__requisites {
  font-weight: 500;
  font-size: 0.95rem;
}

.contacts-map-wrap {
  margin-top: 0.5rem;
}

.contacts-map__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contacts-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.contacts-map--embed iframe {
  display: block;
  width: 100%;
  height: min(420px, 60vh);
  border: 0;
}

.contacts-map--placeholder {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f0f0f0 0%, #fafafa 100%);
}

.contacts-map__placeholder-inner {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 400px;
}

.contacts-map__pin {
  display: inline-block;
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(90, 208, 35, 0.35);
}

.contacts-map__placeholder-text {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.contacts-map__placeholder-hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Плавающая кнопка мессенджера MAX */
.max-messenger-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem 0.65rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b4fd6 0%, #7c6ae8 50%, #5b4fd6 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow:
    0 4px 18px rgba(91, 79, 214, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.max-messenger-fab:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(91, 79, 214, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

.max-messenger-fab:focus-visible {
  outline: 2px solid #ffd600;
  outline-offset: 3px;
}

.max-messenger-fab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.max-messenger-fab__text {
  padding-right: 0.15rem;
}

@media (max-width: 480px) {
  .max-messenger-fab {
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.55rem 0.75rem 0.55rem 0.65rem;
    font-size: 0.75rem;
  }

  .max-messenger-fab__icon svg {
    width: 22px;
    height: 22px;
  }
}
