:root {
  /* Premium-палитра (glavstr p30): светлый белый фон, белые подложки секций
     с тонкой границей, тёмно-синий текст, акцент — только интерактив */
  --bg: #eef3fb;
  --bg-deep: #e9eff9;
  --bg-soft: #f6f9ff;
  --surface: #ffffff;
  --line: #dfe6f1;
  --text: #1c2740;
  --text-soft: #63708a;
  --accent: #2f4f86;
  --accent-soft: #edf3ff;
  /* Градиентная подложка панелей (как в футере, glavstr p42) */
  --panel-gradient:
    radial-gradient(130% 110% at 90% -35%, rgba(47, 111, 237, .12) 0%, rgba(47, 111, 237, 0) 58%),
    linear-gradient(165deg, #ffffff 0%, #f4f8ff 46%, #e9f0fc 100%);
  --radius: 20px;
  --radius-sm: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 24px rgba(22, 35, 58, .06);
  --shadow-card: 0 16px 38px rgba(22, 35, 58, .09);
  --topbar-height: 0px;

  /* Typography tokens (glavstr p43: шрифты лендинга = шрифты сайта, Inter) */
  --font-base: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-2xs: 12px;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-h2: clamp(21px, 1.2vw + 15.5px, 27px);
  --lh-tight: 1.25;
  --lh-heading: 1.2;
  --lh-body: 1.55;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--text);
  background:
    radial-gradient(140% 80% at 0% -10%, rgba(102, 134, 188, .08) 0%, rgba(102, 134, 188, 0) 60%),
    radial-gradient(120% 72% at 100% 0%, rgba(55, 87, 139, .06) 0%, rgba(55, 87, 139, 0) 62%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 45%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: .2px;
  line-height: var(--lh-heading);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

a, button {
  transition: all .2s ease;
}

.wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  background:
    radial-gradient(56% 46% at 52% 30%, rgba(101, 129, 177, .22) 0%, rgba(101, 129, 177, 0) 100%),
    linear-gradient(160deg, #eaf2ff 0%, #e4edf9 52%, #dbe6f5 100%);
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 20px;
  transition: opacity .35s ease, visibility .35s ease;
}

.site-preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 380px at 50% -12%, rgba(255, 255, 255, .48) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(600px 280px at 50% 100%, rgba(66, 98, 151, .12) 0%, rgba(66, 98, 151, 0) 70%);
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader__logo {
  text-align: center;
  display: grid;
  place-items: center;
  width: clamp(92px, 21vw, 132px);
  height: clamp(92px, 21vw, 132px);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(241, 247, 255, .82));
  border: 1px solid rgba(144, 169, 212, .44);
  box-shadow:
    0 24px 44px rgba(44, 69, 111, .2),
    inset 0 1px 0 rgba(255, 255, 255, .8);
  position: relative;
}

.site-preloader__logo::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 36px;
  border: 1px solid rgba(78, 113, 173, .35);
  box-shadow: 0 0 0 10px rgba(120, 147, 193, .12);
  animation: preloadPulseRing 2.2s ease-in-out infinite;
}

.site-preloader__logo-img {
  width: clamp(64px, 14vw, 94px);
  height: clamp(64px, 14vw, 94px);
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  object-fit: contain;
  object-position: center center;
  transform: translateY(2px);
  filter: drop-shadow(0 6px 14px rgba(36, 58, 96, .26));
}

.site-preloader__track {
  width: min(236px, 66vw);
  height: 6px;
  border-radius: 999px;
  background: rgba(169, 188, 220, .55);
  overflow: hidden;
  border: 1px solid rgba(132, 157, 197, .32);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .8);
}

.site-preloader__bar {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #95b8f4 0%, #4e74b9 48%, #385b98 100%);
  box-shadow: 0 0 18px rgba(71, 106, 167, .46);
  animation: preloadSlide 1.08s ease-in-out infinite;
}

@keyframes preloadSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(230%); }
}

@keyframes preloadPulseRing {
  0%, 100% {
    transform: scale(1);
    opacity: .9;
  }
  50% {
    transform: scale(1.03);
    opacity: .62;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 22, 39, .58);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(198, 214, 239, .18);
  box-shadow: 0 8px 22px rgba(5, 12, 23, .28);
}

.topbar__inner {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  color: #eef4ff;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__nav {
  display: none;
  align-items: center;
  gap: 18px;
}

.topbar__nav a {
  color: rgba(236, 244, 255, .9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.topbar__nav a:hover {
  color: #ffffff;
}

.topbar__brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(36, 62, 105, .18);
}

.topbar__catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(140deg, #2f4f86 0%, #254476 100%);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 500;
  box-shadow: 0 10px 20px rgba(42, 72, 123, .2);
}

.topbar__catalog:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.topbar__catalog:active {
  transform: translateY(0);
}

.hero-screen {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(110% 90% at 50% 45%, rgba(20, 40, 71, .65) 0%, rgba(7, 18, 33, .88) 58%, rgba(5, 13, 25, .96) 100%);
}

/* Светлый лист контента поверх hero: при скролле поднимается и плавно накрывает герой
   (закруглённый верх вместо резкой границы). В герое (scrollY=0) лист полностью за кадром */
.page-body {
  position: relative;
  z-index: 1;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

.hero-screen__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 30, .42) 0%, rgba(7, 16, 30, .72) 100%),
    url("/material/domtekstil_logo_i_belyi.png") center / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.02) contrast(1.04);
}

.hero-screen__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-screen--no-video .hero-screen__video {
  display: none;
}

.hero-screen--no-video .hero-screen__bg {
  background:
    linear-gradient(180deg, rgba(7, 16, 30, .42) 0%, rgba(7, 16, 30, .72) 100%),
    url("/material/domtekstil_logo_i_belyi.png") center / cover no-repeat;
  transform: none;
  filter: saturate(1.02) contrast(1.04);
}

.hero-screen__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 50% 44%, rgba(255, 255, 255, .08), transparent 75%),
    linear-gradient(90deg, rgba(5, 13, 24, .72) 0%, rgba(5, 13, 24, .32) 50%, rgba(5, 13, 24, .72) 100%);
}

.hero-screen__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #eef4ff;
  max-width: 860px;
  padding: 110px 0 80px;
}

.hero-screen__kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(229, 238, 255, .86);
  font-weight: 600;
}

.hero-screen__title {
  margin: 0;
  font-size: clamp(44px, 9.2vw, 112px);
  line-height: .96;
  letter-spacing: .02em;
  font-family: var(--font-display);
  font-weight: 700;
  color: #f5f8ff;
  text-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

.hero-screen__lead {
  margin: 22px auto 0;
  max-width: 670px;
  font-size: clamp(16px, 1.6vw + 8px, 24px);
  line-height: 1.5;
  color: rgba(233, 241, 255, .92);
}

.hero-screen__actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-screen__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 220px;
  border-radius: 999px;
  padding: 0 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease;
}

.hero-screen__button--primary {
  color: #17243c;
  background: linear-gradient(180deg, #f4efe2 0%, #e4d8bc 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}

.hero-screen__button--ghost {
  color: #f0f6ff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(225, 237, 255, .42);
  backdrop-filter: blur(5px);
}

.hero-screen__button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.hero-screen__address {
  margin: 26px 0 0;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(225, 237, 255, .72);
}

/* Белая округлая подложка для каждой секции на светлом фоне
   (glavstr p30; с p44 — прозрачные, еле заметные стеклянные подложки, футер — градиент) */
.section,
.map-section {
  background: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(22, 35, 58, .05);
  width: calc(100% - 28px);
  max-width: 1148px;
  margin: 16px auto;
  padding: 38px 16px 46px;
}

.section .wrap,
.map-section .container {
  width: auto;
  max-width: none;
  margin: 0;
}

/* Карта: компактнее снизу — убрана «полоска»-пустое поле под кнопкой (glavstr p53) */
.map-section { padding-bottom: 22px; }

/* FAQ: внешняя подложка не нужна — белая карточка уже внутри (.faq-sections) */
.section--faq {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.section::after {
  content: none;
}

.section__head {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: 1.15;
}

/* Появление блоков при скролле: fade + мягкий подъём (.reveal добавляется в разметке/рендере).
   Включается только классом .js-anim (ставит JS при поддержке IntersectionObserver) и только
   без prefers-reduced-motion. Используется свойство translate — не конфликтует с transform
   (например, scale(.98) у .latest-card:active). */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  html.js-anim .reveal {
    opacity: 0;
    translate: 0 16px;
  }

  html.js-anim .reveal.is-in {
    opacity: 1;
    translate: none;
    animation: reveal-in .6s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms) both;
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: none;
  }
}

.link-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(28, 39, 64, .05);
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.link-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(28, 39, 64, .1);
}

.latest-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 10px;
  padding: 4px 10px 6px;
  overflow-y: hidden;
}

.latest-row::-webkit-scrollbar { height: 0; }

.latest-card {
  position: relative;
  width: 11.5em;
  min-width: 11.5em;
  max-width: 11.5em;
  display: block;
  background: transparent;
  cursor: pointer;
  transition: all 120ms;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--text);
}

.latest-card:link,
.latest-card:visited,
.latest-card:hover,
.latest-card:active,
.latest-card:focus {
  text-decoration: none;
  color: var(--text);
}

.latest-card * {
  text-decoration: none !important;
}

.latest-card__media {
  position: relative;
  display: block;
  height: 13.5em;
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(28, 39, 64, .06);
}

.latest-card__media::after {
  content: "Открыть";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -46px;
  display: block;
  padding: 12px 16px;
  background: linear-gradient(140deg, #2f4f86 0%, #254476 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  transition: bottom .18s ease;
}

.latest-card:hover .latest-card__media::after {
  bottom: 0;
}

.latest-card:active {
  transform: scale(0.98);
}

.latest-card:focus-visible {
  outline: 2px solid #8aa7d9;
  outline-offset: 2px;
}

.latest-card__body { display: contents; }

.latest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f1f1f1;
}

.latest-card__title {
  margin: 0.75em 0 0;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-empty {
  margin: 0;
  color: var(--text-soft);
}

.stories-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.stories-row::-webkit-scrollbar { height: 0; }

.story-chip {
  width: 96px;
  min-width: 96px;
  border: 0;
  padding: 0;
  background: transparent;
  scroll-snap-align: start;
  text-align: center;
  transition: transform .2s ease, opacity .2s ease;
}

.story-chip:hover,
.story-chip:active {
  transform: scale(.96);
}

.story-chip__ring {
  width: 96px;
  height: 96px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(28, 39, 64, .07);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.story-chip.is-active .story-chip__ring {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 79, 134, .1), 0 8px 18px rgba(28, 39, 64, .1);
}

.story-chip__inner {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
}

.story-chip img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
}

.story-chip__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}

/* Двухуровневый FAQ: секции-строки в единой карточке (уровень 1) → вопросы (уровень 2). */

.faq-sections {
  display: block;
  max-width: 800px;
  margin-inline: auto;
  background: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28, 39, 64, .05);
}

.faq-section {
  background: transparent;
}

.faq-section + .faq-section {
  border-top: 1px solid var(--line);
}

.faq-section__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq-section__btn:hover,
.faq-section__btn:active {
  background: #f4f7fd;
}

.faq-section__btn:focus-visible {
  outline: 2px solid #8aa7d9;
  outline-offset: -2px;
}

.faq-section__lead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.faq-section__badge {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #2e4a7e;
}

.faq-section__meta {
  display: block;
  min-width: 0;
}

.faq-section__title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1px;
  line-height: 1.3;
}

.faq-section__sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
}

.faq-section__arrow {
  flex: none;
  width: 22px;
  height: 22px;
  color: #39445c;
  transition: transform .25s ease;
}

.faq-section.is-open .faq-section__arrow {
  transform: rotate(90deg);
}

.faq-section__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.faq-section__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-section.is-open .faq-section__panel {
  grid-template-rows: 1fr;
}

.faq-section__panel-inner .faq-list {
  max-width: none;
  margin-inline: 0;
  padding: 4px 20px 14px;
}

.faq-list {
  display: grid;
  gap: 0;
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 14px 2px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq-btn:hover,
.faq-btn:active {
  background: #f4f7fd;
}

.faq-btn:focus-visible {
  outline: 2px solid #8aa7d9;
  outline-offset: -2px;
}

.faq-btn__icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: #7d889c;
  transition: transform .25s ease;
}

.faq-item.is-open .faq-btn__icon {
  transform: rotate(-90deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.faq-panel__inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel p {
  margin: 0;
  padding: 0 2px 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  max-width: 65ch;
}

.map-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
}

.map-address-pill {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(28, 39, 64, .04);
}

.map-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eef2f8;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(18, 31, 52, .14);
  max-width: 900px;
  margin: 0 auto;
}

.map-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .07) 0%, rgba(0, 0, 0, 0) 100%);
}

.map-wrapper iframe,
.map-wrapper ymaps,
.map-wrapper > div {
  width: 100% !important;
  height: 320px !important;
  display: block;
}

.map-edge-glow {
  position: absolute;
  left: 0;
  width: 100%;
  height: 12px;
  pointer-events: none;
  z-index: 2;
}

.map-edge-glow--top {
  top: 0;
  background: linear-gradient(180deg, rgba(244, 247, 251, .42) 0%, rgba(244, 247, 251, 0) 100%);
}

.map-edge-glow--bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(244, 247, 251, .42) 0%, rgba(244, 247, 251, 0) 100%);
}

.map-btn {
  margin: 16px auto 20px;
  display: block;
  text-align: center;
  text-decoration: none;
  width: min(900px, 100%);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, #2f4f86 0%, #254476 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(42, 72, 123, .18);
}

.map-btn:hover { filter: brightness(1.03); }
.map-btn:active { transform: translateY(1px); }

/* Футер: округлая карточка на общем градиенте панелей (glavstr p42) */
/* Водяной знак логотипа: прозрачно, во всю ширину футера, прижат к низу (glavstr p50) */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/material/domtekstil_logo_i_osnovnoi.svg") center bottom / contain no-repeat;
  opacity: .04;
  pointer-events: none;
  z-index: 0;
}

.footer {
  position: relative;
  overflow: hidden;
  width: calc(100% - 28px);
  max-width: 1148px;
  margin: 24px auto 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel-gradient);
  color: var(--text);
  padding: 40px 28px calc(30px + env(safe-area-inset-bottom));
  box-shadow: 0 14px 34px rgba(22, 35, 58, .07);
}

.footer__inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
}

.footer__brand {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.footer__logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
  color: #2f6fed;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer__logo {
    background: linear-gradient(118deg, #2f6fed 0%, #2857b8 52%, #1d3f7d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.footer__tagline {
  margin: 0;
  max-width: 46ch;
  color: var(--text-soft);
  font-size: 14px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer__social-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  transition: transform .2s ease, opacity .2s ease;
}

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

.footer__social-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-col {
  padding-right: 8px;
}

/* Блок «О компании» (реквизиты ИП) — на всю ширину сетки футера */
.footer-col--full {
  grid-column: 1 / -1;
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer p {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}

.footer a:hover {
  color: #1d3f7d;
}

.footer__bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer__bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(99, 112, 138, .8);
}

.stories-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.stories-modal.is-open {
  display: block;
}

.stories-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, .58);
}

.stories-viewer {
  position: relative;
  width: min(430px, calc(100% - 22px));
  height: min(86vh, 760px);
  margin: 24px auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1722;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .38);
  opacity: 0;
  transform: scale(.96);
  transition: opacity .24s ease, transform .24s ease;
}

.stories-modal.is-open .stories-viewer {
  opacity: 1;
  transform: scale(1);
}

.stories-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  z-index: 3;
  display: flex;
  gap: 6px;
  padding: 0 2px;
}

.stories-progress__bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}

.stories-progress__fill {
  width: 0;
  height: 100%;
  background: #fff;
}

.stories-progress__bar.is-done .stories-progress__fill {
  width: 100%;
}

.stories-progress__bar.is-active .stories-progress__fill {
  animation: storyProgress 4s linear forwards;
}

.stories-progress__bar.is-active.is-paused .stories-progress__fill {
  animation-play-state: paused;
}

@keyframes storyProgress {
  from { width: 0; }
  to { width: 100%; }
}

.stories-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.stories-close {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 24px;
  line-height: 1;
}

.stories-bottom {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stories-counter {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, .36);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 7px 10px;
}

.stories-order-btn {
  text-decoration: none;
  color: #fff;
  background: rgba(43, 70, 113, .92);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}

.stories-order-btn:active {
  opacity: .88;
}

.stories-tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 0;
  background: transparent;
  z-index: 2;
  transition: opacity .15s ease;
}

.stories-tap:active {
  opacity: .22;
  background: rgba(255, 255, 255, .18);
}

.stories-tap--left { left: 0; }
.stories-tap--right { right: 0; }

@media (max-width: 640px) {
  :root { --topbar-height: 0px; }
  .hero-screen { min-height: 100svh; }
  .hero-screen__inner {
    padding: 90px 0 62px;
  }
  .hero-screen__lead {
    margin-top: 16px;
    max-width: 94%;
  }
  .hero-screen__actions {
    margin-top: 22px;
    gap: 10px;
  }
  .hero-screen__button {
    min-width: 100%;
    min-height: 48px;
    font-size: 15px;
  }
  .hero-screen__address {
    margin-top: 18px;
    letter-spacing: .1em;
  }
  .section,
  .map-section {
    padding: 26px 14px 34px;
    margin: 10px auto;
  }
  .map-section { padding-bottom: 16px; }
  .faq-section__btn { padding: 16px 16px; }
  .faq-section__badge { width: 42px; height: 42px; }
  .faq-section__sub { font-size: 12px; }
  .footer {
    padding: 28px 18px calc(24px + env(safe-area-inset-bottom));
    margin: 14px auto 18px;
    border-radius: var(--radius);
  }
  .footer__grid { gap: 20px 14px; }
  .map-wrapper iframe,
  .map-wrapper ymaps,
  .map-wrapper > div { height: 300px !important; }
}

@media (max-width: 540px) {
  .stories-viewer {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }
}

@media (min-width: 860px) {
  .section { padding: 44px 24px 54px; }
  .map-section { padding: 44px 24px 28px; }
  .topbar h1 { font-size: 22px; }
  .topbar__nav { display: inline-flex; }
  .map-wrapper iframe,
  .map-wrapper ymaps,
  .map-wrapper > div { height: 380px !important; }
  .footer__grid { grid-template-columns: repeat(4, 1fr); gap: 34px 24px; }
  .footer-col { padding-right: 16px; }
}

/* Новинки (glavstr p45): больше воздуха сверху, компактнее снизу */
.section--latest {
  margin-top: 68px;
  margin-bottom: 4px;
  padding-top: 30px;
  padding-bottom: 26px;
}
