/* Шрифты локально (Google Fonts, лицензия OFL): Prata 400 и Golos Text 400–600 (вариативный),
   кириллица и латиница. Без запросов к Google: быстрее из РФ, IP посетителей не уходят за рубеж. */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/golos-text-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/prata-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/prata-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/prata-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   МирЪ Отделки — салон отделочных материалов, Коммунарка
   Палитра снята с материалов клиента:
   графит — гранитный фасад; камень/крем — логотип;
   латунь — перила и фурнитура шоурума; глазурь — плитка из фото.
   ============================================================ */

:root {
  --stone:      #EFE9DD;  /* светлый фон — тёплый камень */
  --stone-2:    #E6DECD;  /* тонированные секции */
  --paper:      #F8F5EE;  /* поверхность карточек */
  --graphite:   #201D19;  /* тёмные секции — фасад */
  --graphite-2: #2B2721;  /* карточки на тёмном */
  --graphite-3: #181512;  /* футер */
  --ink:        #26221B;  /* основной текст на светлом */
  --ink-soft:   #5F5849;  /* вторичный текст на светлом */
  --cream:      #F1EAE0;  /* текст на тёмном */
  --cream-soft: #BFB6A6;  /* вторичный текст на тёмном */
  --brass:      #B08D57;  /* латунь — акцент, крупные элементы */
  --brass-deep: #7D5F31;  /* латунь для мелкого текста на светлом */
  --glaze:      #97ABB0;  /* серо-голубая глазурь — линии, теги */
  --line:       #D8CEBB;  /* границы на светлом */
  --line-dark:  #3A342C;  /* границы на тёмном */

  --font-display: "Prata", "Georgia", serif;
  --font-body: "Golos Text", "Helvetica Neue", Arial, sans-serif;

  --radius: 3px;          /* кафель: почти прямые углы */
  --gap-seam: 10px;       /* «шов» между плитками-карточками */
  --container: 1180px;
  --shadow: 0 18px 40px -18px rgba(32, 29, 25, 0.35);
}

/* ---------- База ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 21ch; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

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

/* Доступность */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--graphite);
  color: var(--cream);
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--brass);
  color: #1C1812;
}
.btn-primary:hover { background: #C29D65; }

.btn-ghost {
  border-color: var(--line-dark);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 233, 221, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo {
  width: auto;
  height: 34px;
  flex: none;
  display: block;
}

.footer-logo { height: 40px; }


.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-hard { color: var(--brass-deep); }

.brand-tag {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); border-color: var(--brass); }

.btn-header {
  background: var(--graphite);
  color: var(--cream);
  padding: 10px 16px;
  min-height: 44px;
}
.btn-header:hover { background: var(--graphite-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Героблок ---------- */

.hero {
  background: var(--graphite);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

/* Ъ — водяной знак с вывески */
.hero::after {
  content: "Ъ";
  position: absolute;
  right: -0.08em;
  bottom: -0.34em;
  font-family: var(--font-display);
  font-size: clamp(16rem, 34vw, 30rem);
  line-height: 1;
  color: rgba(241, 234, 224, 0.045);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
  position: relative;
  z-index: 1;
}

.kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}

.hero h1 { margin-bottom: 0.55em; }

.hero-sub {
  font-size: 1.08rem;
  color: var(--cream-soft);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 30px 0 0;
  padding: 0;
  font-size: 0.93rem;
  color: var(--cream-soft);
}

.hero-facts li { display: flex; align-items: center; gap: 8px; }

.hero-facts li:not(:first-child)::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

.rating-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  transition: border-color 0.2s ease;
}
.rating-link:hover { border-color: var(--brass); }

.star {
  width: 17px;
  height: 17px;
  fill: var(--brass);
  stroke: var(--brass);
}

.hero-photo {
  margin: 0;
  position: relative;
}

/* латунная рамка со сдвигом — как латунная раскладка в шоуруме */
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  pointer-events: none;
}

.hero-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-photo figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--cream-soft);
}

/* ---------- Секции ---------- */

.section {
  padding: clamp(56px, 9vw, 110px) 0;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 40px;
}

.section-lead a { color: var(--brass-deep); }

.section-dark {
  background: var(--graphite);
  color: var(--cream);
}
.section-dark .section-lead { color: var(--cream-soft); }

.section-tint { background: var(--stone-2); }

/* ---------- Каталог: раскладка «кафелем» ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-seam);
}

.cat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.cat-wide { grid-column: 1 / -1; flex-direction: row; }
.cat-wide .cat-photo { flex: 1 1 55%; min-width: 0; }
.cat-wide .cat-body { flex: 1 1 45%; align-self: center; }

.cat-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover .cat-photo img { transform: scale(1.04); }

.cat-body { padding: clamp(20px, 3vw, 34px); }

.cat-body h3 { margin-bottom: 0.4em; }

.cat-body p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* теги — «маркировка калибра» на упаковке плитки */
.tag-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  line-height: 1.9;
}

/* Перечень без рамок — не должен выглядеть как кнопки (правки владельца 24.09.2026).
   Разделитель стоит после слова, чтобы перенос не начинал строку с точки. */
.tag-list li {
  display: inline;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.tag-list li:not(:last-child)::after {
  content: "·";
  margin: 0 0.55em;
  color: var(--brass);
}

.cat-body .cat-step {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 0.5em;
}

/* ---------- Услуги ---------- */

.serv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-seam);
  margin-top: 40px;
}

.serv-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--graphite-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

/* Блик: диагональная полоса света проходит по плитке при наведении */
.serv-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -75%;
  width: 45%;
  height: 220%;
  z-index: -1;
  pointer-events: none;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    rgba(176, 141, 87, 0) 0%,
    rgba(176, 141, 87, 0.10) 35%,
    rgba(241, 234, 224, 0.16) 50%,
    rgba(176, 141, 87, 0.10) 65%,
    rgba(176, 141, 87, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .serv-card:hover {
    border-color: var(--brass);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.7);
  }

  .serv-card:hover::after {
    opacity: 1;
    animation: serv-sheen 0.85s ease-out;
  }

  .serv-card:hover .serv-icon {
    stroke: #E8C68A;
    transform: translateY(-2px);
  }
}

@keyframes serv-sheen {
  from { left: -75%; }
  to   { left: 130%; }
}

.serv-card h3 { color: var(--cream); }
.serv-card p { color: var(--cream-soft); }

.serv-icon {
  width: 30px;
  height: 30px;
  stroke: var(--brass);
  stroke-width: 1.5;
  margin-bottom: 16px;
  transition: stroke 0.35s ease, transform 0.35s ease;
}

.serv-card h3 { font-size: 1.1rem; margin-bottom: 0.35em; }

.serv-card p {
  font-size: 0.93rem;
  color: var(--cream-soft);
  margin: 0;
}

.serv-note {
  margin: 28px 0 0;
  font-size: 0.93rem;
  color: var(--cream-soft);
}

/* ---------- Интерьеры ---------- */

.int-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-seam);
}

.int-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.int-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* ---------- Отзывы ---------- */

.rev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-seam);
  align-items: start;
}

.rev-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}

.rev-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 12px;
}

.rev-name { font-weight: 600; }

.rev-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.rev-stars {
  color: var(--brass-deep);
  letter-spacing: 2px;
}

.rev-text p {
  white-space: pre-line;
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin: 0;
}

.rev-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rev-clamp.is-open {
  display: block;
  -webkit-line-clamp: unset;
}

.rev-more {
  margin-top: 12px;
  background: none;
  border: none;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brass-deep);
  cursor: pointer;
  border-bottom: 1px solid currentColor;
}

.rev-all { margin: 36px 0 0; }

/* ---------- Контакты ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  margin-top: 36px;
  align-items: start;
}

.contacts-list {
  margin: 0;
  display: grid;
  gap: 0;
}

.contacts-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contacts-row:first-child { padding-top: 0; }

.contacts-row dt {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 3px;
}

.contacts-row dd { margin: 0; }

.contacts-row .muted { color: var(--cream-soft); font-size: 0.92rem; }

.contacts-row a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  transition: border-color 0.2s ease;
}
.contacts-row a:hover { border-color: var(--brass); }

.contacts-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contacts-photo {
  margin: 0;
}

.contacts-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}

.contacts-photo figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--cream-soft);
}

/* ---------- Футер ---------- */

.site-footer {
  background: var(--graphite-3);
  color: var(--cream-soft);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}



.footer-name {
  font-family: var(--font-display);
  color: var(--cream);
  margin: 0;
}

.footer-sub { font-size: 0.85rem; margin: 2px 0 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line-dark);
  transition: border-color 0.2s ease;
}
.footer-links a:hover { border-color: var(--brass); }

.footer-note {
  flex-basis: 100%;
  font-size: 0.82rem;
  margin: 10px 0 0;
}

/* ---------- Появление блоков ---------- */

/* Прячем до появления только при работающем JS (класс js ставит инлайн-скрипт в body) —
   иначе без JS блоки остались бы невидимыми */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .serv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
    padding: 8px clamp(16px, 4vw, 32px) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }
  .btn-header span { display: none; }
  .btn-header { padding: 10px 12px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 560px; }
  .hero-photo::before { inset: 12px -12px -12px 12px; }

  .cat-grid { grid-template-columns: 1fr; }
  .cat-wide { flex-direction: column; }
  .cat-wide .cat-photo, .cat-wide .cat-body { flex: none; width: 100%; }

  .int-grid { grid-template-columns: 1fr 1fr; }
  .int-item:last-child { grid-column: 1 / -1; }
  .int-item:last-child img { aspect-ratio: 16 / 10; }

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

  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-photo { max-width: 480px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .header-inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand-logo { height: 28px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { display: none; }

  .serv-grid { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: 1fr; }
  .int-item:last-child img { aspect-ratio: auto; }

  .contacts-row { grid-template-columns: 1fr; gap: 4px; }

  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-cta .btn-icon { width: 54px; margin: 0 auto; }
  .contacts-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Герой-тур ---------- */

/* База = деградированное состояние (без JS, reduced-motion, старые браузеры):
   статичная панорама + обычный список направлений. Всё «живое» — под html.tour-ready. */

.tour {
  background: var(--graphite);
  color: var(--cream);
}

.tour h1 { margin-bottom: 0.55em; }

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

.tour-scrim { display: none; }

.tour-intro {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 20px 8px;
}

.tour-hint { display: none; }

.tour-skip {
  color: var(--cream-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tour-skip:hover { color: var(--brass); }

.tour-cards {
  list-style: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-seam);
}

.tour-card {
  background: var(--graphite-2);
  border: 1px solid var(--line-dark);
  border-left: 2px solid var(--brass);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.tour-card-num {
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tour-card h3 {
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.tour-card p:last-of-type {
  color: var(--cream-soft);
  font-size: 0.92rem;
  margin: 0;
}

.tour-card .hero-cta { margin-top: 18px; }

.tour-rail { display: none; }

.tour-note {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 20px;
  color: var(--cream-soft);
  font-size: 0.74rem;
  opacity: 0.75;
}

.tour-title {
  margin: 0 0 18px;
  line-height: 0;
}

.tour-logo {
  display: block;
  width: clamp(190px, 34vw, 300px);
  height: auto;
}

.tour-hard {
  color: #E8C68A;
  text-shadow: 0 2px 10px rgba(24, 21, 18, 0.9), 0 0 26px rgba(24, 21, 18, 0.7);
}

/* Стеклянная кнопка: не спорит с кадром */
.btn-glass {
  background: rgba(24, 21, 18, 0.34);
  border-color: rgba(241, 234, 224, 0.4);
  color: var(--cream);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  padding: 11px 18px;
  min-height: 44px;
  font-size: 0.92rem;
}
.btn-glass:hover { background: rgba(24, 21, 18, 0.52); border-color: var(--brass); color: var(--brass); }

.btn-icon {
  width: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

/* --- Улучшенное состояние: липкая сцена, камера, оверлеи --- */

html.tour-ready .tour-track {
  position: relative;
  height: 1330vh; /* фолбэк до инициализации JS; JS ставит точную высоту в px */
}

html.tour-ready .tour-stage {
  position: sticky;
  /* сцена живёт строго под шапкой: её низ = низ экрана, ничего не уходит за край */
  top: var(--header-h, 68px);
  height: calc(100vh - var(--header-h, 68px));
  min-height: 420px;
  overflow: hidden;
  contain: layout paint;
  /* LQIP: мгновенный фон, пока грузится панорама */
  background: var(--graphite) url("data:image/webp;base64,UklGRrQBAABXRUJQVlA4IKgBAACQCACdASowABsAPsFYpk2npSOiJWsw8BgJZQDE3vE1lPW841A7mh+UBeAfGUj7eRPASUe2wysQmc0hoe8vf7MztZ92jrNjKtteGGkyAAD7oh0wy0wU7PmjQLxyiwn5tTNUvP3zIM8RDY0TvxJPmDtOm045BcB8FONd9rkZmsmdOkx43JASm5k1tiHScrRSYcIgB/OHJCZmfIsw3xNS0kti47eqCUAOpMornB9WtBq2Lbm/xZLkqvwBWontbdZvYS8QZ/EepBRIrQlcehCiImO5x8XXf6r5sIfiCmZK8Ixc4PabiW8DI9vRzl2DO43nSQvrY7/FnyeLvlm0HmsvOUDRHl8AaXxeFR5Vr4rbl0SmkIAvx231CotO9HsLdjJY0+1qM87NcrOVnCj8AWC7zEN9aDH5eJXMzWVWhKk58pn3vNgUTqKSURFdJLU6v1AJdO7AqoP++DdpBvf5gzSEeO9EDgaH7yZrWd+KRTQEkYl+1t4MnQeC66IxhN/GFnydHPdJrqWECfzfbyyVMYMA9pkLO4LJGyt7xism/dNauz8LaGbb0uIjuQAA") center / cover no-repeat;
}

html.tour-ready .tour-rig {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%; /* лёгкий разворот камеры в перелётах */
}

html.tour-ready .tour-camera {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

/* Крупные планы материалов: без JS не нужны */
.tour-details { display: none; }

html.tour-ready .tour-details {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1; /* над панорамой, под скримом и подписями */
  pointer-events: none;
  overflow: hidden;
}

html.tour-ready .tour-detail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

html.tour-ready .tour-camera picture { display: contents; }

html.tour-ready .tour-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

html.tour-ready .tour-scrim {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(24, 21, 18, 0.28) 0%,
    rgba(24, 21, 18, 0.04) 18%,
    rgba(24, 21, 18, 0.00) 42%,
    rgba(24, 21, 18, 0.06) 62%,
    rgba(24, 21, 18, 0.62) 100%
  );
}

html.tour-ready .tour-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;   /* заголовок и кнопки — в правый нижний угол */
  text-align: right;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px clamp(12px, 2vh, 22px);
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s;
}

html.tour-ready .tour-intro > * { pointer-events: auto; }
html.tour-ready .tour-intro .hero-cta { justify-content: flex-end; }

html.tour-ready .tour-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s 0.45s;
}

html.tour-ready .tour-title {
  margin-bottom: 14px;
}

html.tour-ready .tour-logo {
  width: clamp(210px, 26vw, 380px);
  filter: drop-shadow(0 3px 22px rgba(24, 21, 18, 0.75));
}

@media (max-width: 620px) {
  html.tour-ready .tour-title { margin-bottom: 12px; }
  html.tour-ready .tour-logo { width: min(62vw, 260px); }
  html.tour-ready .hero-cta { gap: 8px; }
  /* нижняя панель Safari/Chrome на iOS перекрывает низ 100vh —
     держим кнопки выше неё */
  html.tour-ready .tour-intro { padding: 20px 16px calc(env(safe-area-inset-bottom, 0px) + 86px); }
  /* в герое кнопки идут одним рядом, а не во всю ширину */
  html.tour-ready .tour-intro .hero-cta .btn { width: auto; }
  html.tour-ready .tour-intro .hero-cta .btn-icon { width: 44px; margin: 0; }
}

@media (max-width: 380px) {
  html.tour-ready .tour-logo { width: 66vw; }
}
html.tour-ready .tour-intro .hero-sub { text-shadow: 0 1px 12px rgba(24, 21, 18, 0.5); }

html.tour-ready .tour-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(241, 234, 224, 0.62);
  animation: tour-hint-pulse 2.6s ease-in-out infinite;
}

@keyframes tour-hint-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

html.tour-ready .tour-cards {
  display: contents; /* карточки позиционируются сами, обёртка не участвует в раскладке */
}

html.tour-ready .tour-cards li { display: contents; }

html.tour-ready .tour-card {
  position: absolute;
  z-index: 4;
  left: clamp(16px, 4vw, 48px);
  bottom: clamp(10px, 1.8vh, 18px);
  max-width: 600px;
  background: rgba(24, 21, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(22px, 3vh, 32px) clamp(24px, 2.6vw, 36px) clamp(24px, 3vh, 34px);
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
}

html.tour-ready .tour-card.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

/* Крупная типографика подписей: кадры полноэкранные — заголовок им под стать */
html.tour-ready .tour-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.18;
  margin-bottom: 10px;
}

html.tour-ready .tour-card-num {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

html.tour-ready .tour-card p:last-of-type {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.55;
  color: var(--cream);
  opacity: 0.85;
}

html.tour-ready .tour-card-outro h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

html.tour-ready .tour-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  right: clamp(10px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

html.tour-ready .tour-rail button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(241, 234, 224, 0.55);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

html.tour-ready .tour-rail button:hover { border-color: var(--brass); }

html.tour-ready .tour-rail button.is-active {
  background: var(--brass);
  border-color: var(--brass);
  transform: scale(1.25);
}

html.tour-ready .tour-note {
  position: absolute;
  left: 14px;
  bottom: 8px;
  z-index: 4;
  max-width: 260px;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.62rem;
  line-height: 1.35;
  color: rgba(241, 234, 224, 0.34);
}

@media (max-width: 860px) {
  html.tour-ready .tour-card {
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
    max-width: none;
    padding: 16px 18px;
  }

  html.tour-ready .tour-rail {
    flex-direction: row;
    top: 12px;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  html.tour-ready .tour-note {
    top: 30px;
    bottom: auto;
    left: 12px;
    right: auto;
    max-width: 44%;
    text-align: left;
    font-size: 0.56rem;
    line-height: 1.25;
  }

  /* на телефоне подсказку убираем — экран и так листается */
  html.tour-ready .tour-hint { display: none; }

  /* нижняя панель Safari/Chrome на iOS перекрывает низ 100vh —
     держим кнопки выше неё */
  html.tour-ready .tour-intro { padding: 20px 16px calc(env(safe-area-inset-bottom, 0px) + 86px); }
}

@media (max-height: 540px) {
  html.tour-ready .tour-card { padding: 12px 16px; bottom: 12px; }
  html.tour-ready .tour-card p:last-of-type { display: none; }
  html.tour-ready .tour-hint { display: none; }
}


/* ---------- Cookie-баннер ---------- */

.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(24, 21, 18, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--cream);
  border: 1px solid rgba(241, 234, 224, 0.16);
  border-radius: var(--radius);
  padding: 9px 10px 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-bar.is-shown { opacity: 1; transform: none; }

.cookie-bar[hidden] { display: none; }

.cookie-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(241, 234, 224, 0.8);
}

.cookie-text a { color: var(--cream); }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.cookie-actions .btn { padding: 7px 13px; min-height: 34px; font-size: 0.78rem; }

@media (max-width: 560px) {
  .cookie-text { font-size: 0.72rem; }
  .cookie-actions .btn { padding: 7px 11px; }
}

/* ---------- Комплектация под ключ ---------- */

.supply-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px) clamp(28px, 4vw, 56px);
}

.supply-item {
  display: flex;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.supply-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brass);
  flex: none;
  min-width: 44px;
}

.supply-item h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.supply-item p {
  color: var(--cream-soft);
  font-size: 0.95rem;
  margin: 0;
}

.supply-cta { margin-top: clamp(28px, 4vw, 44px); }

@media (max-width: 760px) {
  .supply-list { grid-template-columns: 1fr; }
}

/* ---------- Под ключ: сплит с изображением ---------- */

.supply-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.supply-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  align-self: stretch;
}

.supply-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .supply-grid { grid-template-columns: 1fr; }
  .supply-photo { order: -1; max-height: 60vh; }
  .supply-photo img { object-position: center 42%; }
}

/* ---------- Услуги: широкий кадр ---------- */

.serv-banner {
  margin: clamp(24px, 4vw, 40px) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.serv-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Отзывы: латунные кавычки ---------- */

.rev-card { position: relative; }

.rev-card::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 1;
  color: var(--brass);
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- Политика (privacy.html) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) 20px 72px; }
.legal h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal .updated { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 32px; }

/* ---------- call.html: прослойка «Позвонить» для карточки Яндекс.Бизнеса ---------- */
.call-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--graphite);
  color: var(--cream);
  text-align: center;
}
.call-box { width: 100%; max-width: 420px; }
.call-logo { width: min(64vw, 240px); height: auto; margin: 0 auto 32px; }
.call-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.5vw, 1.9rem);
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--cream);
}
.call-page p { color: var(--cream-soft); line-height: 1.55; margin: 0 0 26px; }
.call-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 18px 24px;
  margin-bottom: 14px;
}
.call-btn .icon { width: 22px; height: 22px; }
.call-page .call-hours { font-size: 0.9rem; margin-bottom: 22px; }
.call-site { color: var(--cream-soft); font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; }
.call-site:hover { color: var(--brass); }
