:root {
  --ink: #1e1f26;
  --deep: #283655;
  --accent: #4d648d;
  --soft: #d0e1f9;
  --paper: #f7faff;
  --surface: #ffffff;
  --muted: #59657a;
  --line: rgba(40, 54, 85, 0.18);
  --shadow: 0 18px 46px rgba(30, 31, 38, 0.12);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: #edf3fb;
  line-height: 1.65;
  overflow-wrap: break-word;
  /* перенос по слогам (lang="ru") вместо разрыва слова посередине */
  hyphens: auto;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--deep);
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink);
  /*
     anywhere рвал русские слова посередине без переноса («самообслуж / ивания»);
     break-word рвёт только когда слово не влезает целиком, а hyphens:auto у body
     ставит в этом случае перенос по слогам (lang="ru" на всех страницах).
  */
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  max-width: 880px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.shell {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 31, 38, 0.96);
  border-bottom: 1px solid rgba(208, 225, 249, 0.28);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fffaf7;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  color: #fffaf7;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: clamp(16px, 4vw, 48px);
}

.desktop-nav a,
.mobile-menu a {
  color: #fffaf7;
  font-weight: 700;
}

.desktop-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-active {
  background: rgba(208, 225, 249, 0.16);
  color: #fff;
  text-decoration: none;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: clamp(16px, 4vw, 48px);
}

.header-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255, 250, 247, 0.12);
  color: #fffaf7;
}

.header-link:hover,
.header-link:focus-visible {
  background: rgba(255, 250, 247, 0.22);
  text-decoration: none;
}

.header-icon {
  width: 20px;
  height: 20px;
}

.phone-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255, 250, 247, 0.12);
  color: #fffaf7;
}

.phone-link:hover,
.phone-link:focus-visible {
  background: rgba(255, 250, 247, 0.22);
  text-decoration: none;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(40, 54, 85, 0.08);
  color: var(--ink);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  background: rgba(40, 54, 85, 0.18);
  text-decoration: none;
}

.footer-social-icon {
  width: 20px;
  height: 20px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 247, 0.35);
  border-radius: var(--radius);
  background: transparent;
  color: #fffaf7;
  cursor: pointer;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span {
  opacity: 0;
}

.burger.is-open::before {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(208, 225, 249, 0.2);
  background: var(--deep);
}

.mobile-menu.is-open {
  display: block;
  animation: menuDrop 0.18s ease-out;
}

.mobile-menu .shell {
  display: grid;
  gap: 4px;
  padding: 12px 0 16px;
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 250, 247, 0.16);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: #fff;
  text-decoration: none;
}

.hero {
  padding: 72px 0 54px;
  background: linear-gradient(135deg, var(--ink), var(--deep));
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: start;
}

.hero-logo {
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
}

.hero h1,
.hero h2,
.hero p {
  color: #fff;
}

.hero h1 {
  margin-bottom: 14px;
}

.hero .lead {
  max-width: 690px;
  font-size: 1.12rem;
  color: var(--soft);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--deep);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero .eyebrow {
  color: var(--soft);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}

.hero-actions .btn,
.section-actions .btn {
  min-width: 200px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  text-align: center;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
}

.btn-secondary {
  border-color: rgba(208, 225, 249, 0.55);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(208, 225, 249, 0.14);
  color: #fff;
  text-decoration: none;
}

.btn-light {
  border-color: var(--line);
  color: var(--accent);
  background: #fff;
}

.btn-light:hover,
.btn-light:focus-visible {
  color: var(--ink);
  border-color: var(--soft);
  text-decoration: none;
}

.region-line {
  margin-top: 22px;
  color: var(--soft);
  font-size: 0.96rem;
}

.map-panel {
  margin-top: 134px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
}

.map-title {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.map-box {
  min-height: 430px;
  position: relative;
  background: #eef4fc;
  overflow: hidden;
}

.map-box iframe,
.map-box > ymaps {
  width: 100% !important;
  height: 430px !important;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #eef4fc, #ffffff);
  color: var(--deep);
  font-weight: 800;
}

.section {
  padding: 62px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.section:nth-of-type(even) {
  background: #fff;
}

.section-intro {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-intro.center {
  margin-inline: auto;
  text-align: center;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 32px;
  align-items: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 28px;
  align-items: center;
  margin-top: 26px;
}

.media-row.reverse {
  grid-template-columns: minmax(340px, 1.1fr) minmax(0, 0.9fr);
}

.photo-card,
.gallery-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-card img,
.gallery-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-card.photo-contain {
  background: #eef4fc;
}

.photo-card.photo-contain img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #eef4fc;
}

.stacked-photo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 800px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card,
.info-item,
.service-block,
.guarantee-panel {
  /* flow-root держит float-блок внутри панели: картинка не наедает на следующий блок */
  display: flow-root;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(30, 31, 38, 0.06);
}

.card {
  padding: 24px;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
}

.card[data-card-link] {
  cursor: pointer;
}

.card[data-card-link]:hover,
.card[data-card-link]:focus-within {
  border-color: rgba(77, 100, 141, 0.45);
  box-shadow: 0 16px 38px rgba(30, 31, 38, 0.12);
}

.card h2,
.card h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

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

.card .price {
  margin-top: auto;
  font-weight: 800;
  color: var(--accent);
}

.card a {
  font-weight: 800;
}

.card-visual {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--deep);
  margin-bottom: 4px;
}

.card-visual svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.card-popular {
  border-color: var(--accent);
  box-shadow: 0 12px 35px rgba(77, 100, 141, 0.2);
  position: relative;
}

.card-popular:hover,
.card-popular:focus-within {
  border-color: var(--deep);
  box-shadow: 0 18px 45px rgba(77, 100, 141, 0.28);
}

.popular-badge {
  display: block;
  text-align: center;
  background: #e14e45;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 auto 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: fit-content;
}

.card h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

@media (max-width: 480px) {
  /*
     на узких экранах длинные слова («Конфиденциальность», «Металлокомпозитом»,
     «Самообслуживание») не влезают в строку заголовка и рвались посередине.
  */
  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .card h3 {
    font-size: 1rem;
  }
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.photo-row .photo-card {
  margin: 0;
}

.photo-row .photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .photo-row {
    grid-template-columns: 1fr;
  }
  
  .photo-row .photo-card img {
    height: 180px;
  }
}

.photo-match-height {
  max-height: 100%;
  align-self: stretch;
}

.photo-match-height img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}

.guarantee-photo-right {
  float: right;
  width: 320px;
  max-width: 45%;
  height: auto;
  margin: 0 0 16px 24px;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 768px) {
  .guarantee-photo-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
  }
}

.recommendation-panel {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}

.recommendation-panel h2 {
  color: var(--ink) !important;
  font-size: 1.4rem !important;
  margin-bottom: 20px;
}

.recommendation-content {
  display: grid;
  gap: 16px;
}

.recommendation-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.recommendation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.recommendation-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 4px;
}

.recommendation-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.cards-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 24px auto 0;
}

@media (max-width: 980px) {
  .cards-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards-grid-bottom {
    grid-template-columns: 1fr;
  }
}

.card .price {
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
}

.card .price-highlight {
  display: inline-block;
  background: #e14e45;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.95rem;
}

.card {
  display: flex;
  flex-direction: column;
}

.card h2,
.card h3 {
  min-height: 2.3em;
}

.card p:first-of-type {
  flex-grow: 1;
}

.service-block {
  padding: 26px;
  margin-top: 18px;
}

.service-block + .service-block {
  margin-top: 18px;
}

.faq-list {
  margin-top: 24px;
}

.guarantee-panel {
  margin-top: 24px;
}

.service-block h2,
.service-block h3 {
  color: var(--deep);
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  background: var(--deep);
  color: #fffaf7;
  font-weight: 800;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

/* Прайс на узких экранах: строка таблицы превращается в пару «услуга — цена» без горизонтального скролла */
@media (max-width: 768px) {
  .price-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .price-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
    align-items: start;
    gap: 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .price-table tbody td {
    border: 0;
    padding: 0;
    white-space: normal;
    min-width: 0;
    /* длинные слова (R13-R16, «индивидуально») не должны расталкивать страницу вбок */
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .price-table tbody td:first-child {
    color: var(--muted);
  }

  .price-table tbody td:last-child {
    text-align: right;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  /*
     в узких колонках длинные слова («Металлокомпозитом», «индивидуально») не
     влезают и рвутся посередине — колонки делаем равными, кегль чуть меньше.
  */
  .price-table tbody tr {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .price-table tbody td {
    font-size: 0.86rem;
  }
}

.guarantee-panel {
  padding: 28px;
  border-left: 6px solid #4f9d7a;
  background: #e8f5ef;
  border-color: rgba(79, 157, 122, 0.35);
}

.guarantee-panel h2,
.guarantee-panel .eyebrow {
  color: var(--deep);
}

.guarantee-panel strong {
  color: #226146;
}

.route-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(30, 31, 38, 0.06);
  padding: 24px;
}

.route-steps {
  margin: 18px 0 0;
  padding-left: 24px;
}

.route-steps li + li {
  margin-top: 10px;
}

.route-finish {
  margin-top: 18px;
  font-weight: 800;
  color: var(--deep);
}

.photo-grid.facade-gallery .photo-card img {
  aspect-ratio: 16 / 9;
}

.photo-grid.facade-gallery .photo-card.photo-contain img {
  aspect-ratio: auto;
}

.yandex-badge {
  display: inline-flex;
  margin-top: 10px;
  border-radius: var(--radius);
  overflow: hidden;
}

.info-item {
  padding: 18px;
}

.info-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  color: var(--deep);
}

details p {
  padding: 0 20px 18px;
}

.video-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.video-categories a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.video-categories a:hover,
.video-categories a:focus-visible {
  background: var(--deep);
  color: #fffaf7;
}

.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--deep);
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--deep);
  color: #fffaf7;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 30px rgba(30, 31, 38, 0.06);
}

.video-card.is-hidden,
.video-card-wrap.is-hidden {
  display: none;
}

.video-thumb-wrap {
  position: relative;
}

.video-thumb-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 46px;
  background: rgba(255, 255, 255, 0.9);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.video-card-wrap {
  display: flex;
  flex-direction: column;
}

.video-card span {
  display: block;
  padding: 13px 14px 16px;
  font-weight: 800;
}

.video-card-link {
  display: block;
  text-align: center;
  padding: 8px 14px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.video-card-link:hover {
  color: var(--deep);
  text-decoration: underline;
}

.video-float {
  float: left;
  width: 320px;
  max-width: 45%;
  margin: 0 24px 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-float iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .video-float {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 31, 38, 0.86);
}

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

.modal-content {
  position: relative;
  width: min(100%, 980px);
}

.modal img,
.modal iframe {
  width: 100%;
  max-height: 86vh;
  border: 0;
  border-radius: var(--radius);
  object-fit: contain;
  background: #000;
}

.modal iframe {
  aspect-ratio: 16 / 9;
}

.modal-close {
  position: absolute;
  right: -10px;
  top: -48px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 250, 247, 0.55);
  border-radius: var(--radius);
  background: rgba(30, 31, 38, 0.65);
  color: #fffaf7;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.breadcrumbs {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--deep);
  font-weight: 700;
}

.site-footer {
  padding: 48px 0 32px;
  background: var(--ink);
  color: #fffaf7;
}

.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer a,
.site-footer li {
  color: #fffaf7;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
  gap: 28px;
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 250, 247, 0.16);
  font-size: 0.92rem;
  color: #efd5ca;
}

.footer-bottom p {
  color: #efd5ca;
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-icons {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .hero-grid,
  .two-column,
  .media-row,
  .media-row.reverse {
    grid-template-columns: 1fr;
  }

  .media-row.reverse > :first-child {
    order: 2;
  }

  .media-row.reverse > :last-child {
    order: 1;
  }

  .map-panel {
    margin-top: 0;
  }

  .cards-grid,
  .info-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1160px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand span {
    max-width: 180px;
    white-space: normal;
    line-height: 1.15;
  }

  .hero {
    padding: 42px 0;
  }

  .hero-logo {
    width: 88px;
    height: 88px;
  }

  .section {
    padding: 44px 0;
  }

  .photo-grid,
  .cards-grid,
  .info-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .map-box,
  .map-box iframe,
  .map-box > ymaps {
    min-height: 340px;
    height: 340px !important;
  }

  .modal-close {
    right: 0;
  }
}
