/* Шапка и контентная зона лендингов cottage/apartment — как на главной. */

.container,
.wrap {
  width: 100% !important;
  max-width: 1600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 99px;
  font-size: 15px;
  background: linear-gradient(180deg, rgba(10, 11, 15, 0.85), rgba(10, 11, 15, 0.62));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header > .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  width: 100% !important;
}

header .nav {
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 20px 0;
  gap: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .nav > nav {
  flex: 1;
  min-width: 0;
}

header .brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

header .logo {
  width: auto !important;
  height: 30px !important;
}

header nav > ul,
header .primary-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 0 15px;
  padding: 0;
  min-width: 0;
}

header nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(238, 240, 246, 0.86);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

header nav a:hover,
header nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #eef0f6;
}

header .nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0;
}

header .socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

header .icon-link {
  width: auto !important;
  height: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

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

header .region {
  margin-left: 10px;
  color: rgba(238, 240, 246, 0.86);
  font-size: 15px;
  display: block;
  white-space: nowrap;
}

header .phone {
  display: flex;
  align-items: center;
}

header .phone a {
  font-size: 15px;
  font-weight: 400;
  color: rgba(238, 240, 246, 0.88);
}

header .burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

header .burger::before,
header .burger::after {
  content: none !important;
  display: none !important;
}

header .burger i {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.86);
  display: block;
  position: relative;
  border-radius: 999px;
  top: auto;
  left: auto;
  opacity: 1;
}

header .burger i::before,
header .burger i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
}

header .burger i::before {
  top: -6px;
}

header .burger i::after {
  top: 6px;
}

.mnav-content .mnav-menu,
.mnav-content .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mnav-content .mnav-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mnav-content .mnav-menu li {
  display: flex;
  flex-direction: column;
}

.mnav-content .mnav-menu a {
  display: block;
  font-size: 18px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 12px;
}

.mnav-content .sub-menu {
  padding-left: 16px;
  opacity: 0.92;
}

@media (max-width: 1450px) {
  header .socials {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  header nav > ul,
  header .primary-menu,
  header .nav > nav {
    display: none !important;
  }

  header .burger {
    display: flex !important;
  }

  header .nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  header .nav-right {
    display: contents;
    margin-left: 0;
  }

  header .burger {
    order: -1;
  }

  header .brand {
    order: 0;
    margin-left: 0;
  }

  header .phone {
    order: 1;
    margin-left: auto;
  }

  header .region {
    order: 2;
    margin-left: 0 !important;
  }
}

@media (max-width: 860px) {
  header .phone {
    display: flex !important;
  }
}

@media (max-width: 602px) {
  header .phone {
    display: none !important;
  }

  header .region {
    display: block !important;
    margin-left: auto !important;
    white-space: nowrap;
  }
}

@media (max-width: 384px) {
  header .region {
    font-size: 12px;
    line-height: 14px;
    white-space: normal;
  }
}

@media (max-width: 860px) {
  header .mnav {
    display: block;
    position: fixed;
    top: 99px;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100vw;
    height: auto;
    max-height: calc(100dvh - 99px - 20px);
    padding: 16px 16px 20px;
    z-index: 1000;
    background: rgba(10, 11, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: auto;
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  header .mnav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  header .mnav .mnav-content {
    height: auto;
    overflow: visible;
    width: 100%;
    padding: 12px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #eef0f6 !important;
  }
}

@media (max-width: 520px) {
  header > .wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  footer .footer,
  .footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 70fr) minmax(0, 90fr) minmax(0, 136fr) !important;
  }
}

@media (max-width: 1040px) {
  footer .footer,
  .footer {
    width: 100% !important;
    max-width: calc(100% - 40px) !important;
    min-height: auto !important;
    margin: 0 auto !important;
  }

  .footer-start,
  .footer-columns,
  .footer-caption {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
}

.cottage-hero,
.apartment-hero {
  min-height: 680px !important;
}

.cottage-hero-grid,
.apartment-hero-grid {
  padding-top: 0 !important;
  padding-bottom: 64px !important;
  gap: 40px !important;
}

.cottage-hero .hero-phone,
.apartment-hero .hero-phone {
  width: min(240px, 100%);
}

.cottage-hero .hero-phone img,
.apartment-hero .hero-phone img {
  aspect-ratio: 9 / 16;
  max-height: 460px;
  object-fit: cover;
}

@media (max-width: 1120px) {
  .cottage-hero,
  .apartment-hero {
    min-height: 0 !important;
  }

  .cottage-hero-grid,
  .apartment-hero-grid {
    padding-top: 28px !important;
    padding-bottom: 48px !important;
    gap: 28px !important;
  }
}

.cost .area-slider {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
}

.cost .area-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  transform: none;
  border: 1px solid #fff;
  border-radius: 9999px;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.cost .area-slider-fill {
  display: block;
  height: 100%;
  width: var(--slider-fill, 16%);
  max-width: 100%;
  background: #7f6bff;
  border-radius: inherit;
}

.cost .area-slider input.slider-handle,
.cost input.slider-handle {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  background-image: none !important;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-shadow: none !important;
}

.cost .area-slider .slider-handle::-webkit-slider-runnable-track,
.cost .slider-handle::-webkit-slider-runnable-track {
  width: 100%;
  height: 20px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 9999px;
  cursor: pointer;
}

.cost .area-slider .slider-handle::-moz-range-track,
.cost .slider-handle::-moz-range-track {
  width: 100%;
  height: 12px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 9999px;
  cursor: pointer;
}

.cost .area-slider .slider-handle::-moz-range-progress,
.cost .slider-handle::-moz-range-progress {
  height: 12px;
  background-color: transparent !important;
  border-radius: 9999px;
}

.cost .area-slider .slider-handle::-webkit-slider-thumb,
.cost .slider-handle::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background-color: #7f6bff;
  border: 6px solid #d9d9d9;
  cursor: pointer;
  margin-top: 0;
}

.cost .area-slider .slider-handle::-moz-range-thumb,
.cost .slider-handle::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background-color: #7f6bff;
  border: 6px solid #d9d9d9;
  cursor: pointer;
}

#functions,
#functions .container,
.functions,
.function-view {
  overflow: visible !important;
}

@media (min-width: 1121px) {
  .function-view {
    --function-slide-width: min(1260px, 100%);
  }

  .function-view .slides {
    width: 100% !important;
    max-width: 100%;
  }

  .functions-previews {
    left: auto !important;
    right: 18px !important;
    width: min(700px, 48%) !important;
  }

  .functions-previews .f-item {
    width: min(200px, 31%);
    height: min(340px, 100%);
  }

  .functions-previews .f-item.preview-pos-1 {
    left: 0;
  }

  .functions-previews .f-item.preview-pos-2 {
    left: 34%;
  }

  .functions-previews .f-item.preview-pos-3 {
    left: 68%;
  }
}

/* Elementor kit used to keep landing sections fully painted.
   After it was removed, site-style content-visibility and scroll-snap clipped/shifted blocks. */
html {
  scroll-snap-type: none;
}

.section {
  content-visibility: visible;
  contain-intrinsic-size: auto;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

/* Apartment grids live at the tail of the 120KB landing CSS.
   Hosting truncates that file (~108KB), so these rules never load unless they sit here. */
.day-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.day-stop {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 28px 24px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(127, 107, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.day-stop::before {
  content: "";
  position: absolute;
  top: 38px;
  right: -18px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(169, 154, 255, 0.7), transparent);
}

.day-stop:last-child::before {
  display: none;
}

.day-stop time {
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.day-stop h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.day-stop p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

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

.format-card {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.format-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.format-card-body {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.format-card-body span {
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.format-card-body h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.format-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.format-card-body ul {
  margin: 4px 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.format-card-body li {
  position: relative;
  padding-left: 18px;
  color: rgba(238, 240, 246, 0.88);
  font-size: 15px;
  line-height: 1.5;
}

.format-card-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--accent-soft);
}

.format-card-body .btn {
  justify-self: start;
  margin-top: 6px;
}

.format-hybrid {
  margin: 18px 0 0;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid rgba(169, 154, 255, 0.42);
  background:
    radial-gradient(circle at top left, rgba(127, 107, 255, 0.22), transparent 58%),
    rgba(127, 107, 255, 0.12);
  color: rgba(238, 240, 246, 0.94);
}

.format-hybrid span {
  display: block;
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.format-hybrid h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.format-hybrid p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

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

.sets-card {
  display: grid;
  gap: 12px;
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.sets-card span {
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sets-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.sets-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.sets-card ul {
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.sets-card li {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 240, 246, 0.88);
  font-size: 15px;
  line-height: 1.45;
}

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

@media (max-width: 1120px) {
  .day-rail,
  .format-pair,
  .sets-grid,
  .kits-grid {
    grid-template-columns: 1fr;
  }

  .day-stop::before {
    display: none;
  }

  .format-card img {
    height: 200px;
  }
}

@media (max-width: 780px) {
  .format-card-body,
  .sets-card,
  .day-stop,
  .format-hybrid {
    padding: 22px 18px;
  }

  .format-card-body h3,
  .sets-card h3,
  .day-stop h3,
  .format-hybrid h3 {
    font-size: 20px;
  }
}

/* Calculator summary card + checkboxes: lives past the truncated apartment CSS cutoff. */
.cost .wrapp2 {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-size: 16px;
}

.cost .left3,
.cost .left4 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cost .check,
.cost .check4,
.cost .check13,
.cost .calc-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cost .wrapp3,
.cost .calc-label-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cost .check5,
.cost .calc-checkbox-wrapper {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cost input.check6,
.cost .check6 {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  box-shadow: none;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  accent-color: #a99aff;
}

.cost input.check6:checked,
.cost .check6:checked {
  background-color: #a99aff;
  border-color: #a99aff;
}

.cost input.check6:checked::after,
.cost .check6:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 4px;
  height: 8px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}

.cost .right11 {
  align-self: stretch;
  width: 520px;
  flex: 0 0 520px;
  border-radius: 32px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  gap: 123px;
  min-height: 100%;
}

.cost .top-parent {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
}

.cost .frame-group {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  font-size: 24px;
}

.cost .item-wrapper,
.cost .item4,
.cost .item5 {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cost .item4,
.cost .item5 {
  gap: 12px;
}

.cost .top6 {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.cost .wrapp12 {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 20px;
}

.cost .headline12 {
  line-height: 24px;
  font-size: 20px;
  font-weight: 400;
}

.cost .headline13 {
  line-height: 24px;
  font-size: 20px;
  color: #a99aff;
}

.cost .left5 {
  flex: 1;
  display: flex;
  align-items: center;
}

.cost .headline19 {
  align-self: stretch;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  color: #a99aff;
}

.cost .calc-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 14px;
  color: #9898a2;
}

.cost .component-2 {
  align-self: stretch;
  width: 100%;
  height: 48px;
  box-shadow: 30px 0 70px rgba(127, 107, 255, 0.5) inset, 0 0 20px rgba(127, 107, 255, 0.5) inset;
  backdrop-filter: blur(70px);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(127, 107, 255, 0.6), rgba(85, 72, 170, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  margin-top: auto;
  color: #fff;
}

.cost .component-2:hover {
  transform: translateY(-2px);
  box-shadow: 30px 0 70px rgba(127, 107, 255, 0.7) inset, 0 0 20px rgba(127, 107, 255, 0.7) inset;
}

.cost .component-2 .button,
.cost .button {
  line-height: 100%;
  font-weight: 500;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

@media (max-width: 1640px) {
  .cost {
    flex-direction: column;
  }

  .cost .left,
  .cost .right11 {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
}

@media (max-width: 1040px) {
  .cost .right11 {
    padding: 24px;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .cost .right11 {
    padding: 20px;
    gap: 32px;
  }
}

/* Homepage metrics card — used on cottage «Почему нам доверяют». */
.metrics-section .metrics,
.metrics {
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 73px 32px;
  font-size: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at left bottom, rgba(255, 255, 255, 0.4) 0%, rgba(192, 182, 255, 0.4) 5%, rgba(127, 107, 255, 0.4) 10%, rgba(97, 81, 194, 0.53) 14%, rgba(64, 54, 128, 0.68) 19%, rgba(48, 40, 96, 0.76) 29%, rgba(32, 27, 64, 0.84) 38%, rgba(24, 20, 48, 0.88) 48%, rgba(18, 15, 35, 0.91) 62%, rgba(16, 14, 30, 0.94) 76%, rgba(17, 16, 27, 0.97) 90%, rgba(18, 18, 24, 1) 100%);
}

.metrics::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right bottom, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.metrics > * {
  position: relative;
  z-index: 1;
}

.metrics .wrapp {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 80px;
}

.metrics .left {
  flex: 1;
  display: flex;
  align-items: center;
  width: auto;
}

.metrics .left h2 {
  margin: 0;
  flex: 1;
  font-size: 40px;
  line-height: 48px;
  font-weight: 500;
  color: #fff;
  max-width: none;
}

.metrics .right {
  width: auto;
  flex: 1.2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 48px;
  font-size: 64px;
  color: #a99aff;
}

.metrics .item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.metrics .kpi-value {
  align-self: stretch;
  line-height: 48px;
  font-weight: 500;
  font-size: 64px;
  color: #a99aff;
}

.metrics .kpi-label {
  align-self: stretch;
  max-width: 180px;
  font-size: 20px;
  line-height: 24px;
  color: #c8c8d2;
}

@media (max-width: 1120px) {
  .metrics {
    padding: 56px 24px;
  }

  .metrics .wrapp {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .metrics .left h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .metrics .right {
    width: 100%;
    justify-content: space-between;
    gap: 24px;
  }

  .metrics .kpi-value {
    font-size: 40px;
    line-height: 48px;
  }

  .metrics .kpi-label {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-width: 640px) {
  .metrics {
    padding: 28px 20px;
  }

  .metrics .right {
    gap: 12px;
  }

  .metrics .item {
    gap: 12px;
    flex: 1 1 0;
  }

  .metrics .left h2 {
    font-size: 24px;
    line-height: 28px;
  }

  .metrics .kpi-value {
    font-size: 28px;
    line-height: 32px;
  }

  .metrics .kpi-label {
    font-size: 12px;
    line-height: 16px;
    max-width: none;
  }
}

/* Mobile layout for cottage/apartment landings.
   Lives here because hosting truncates the 120KB page CSS and drops
   the media queries at the end of those files. Breakpoint is 768px. */
@media (max-width: 768px) {
  html,
  body.landing-cottage,
  body.landing-apartment {
    overflow-x: clip;
  }

  .container,
  .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  header > .wrap {
    width: 100% !important;
    max-width: none !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  header {
    height: 99px;
  }

  header .nav {
    min-height: 99px !important;
    height: 99px;
    padding: 20px 0 !important;
  }

  header .logo {
    height: 30px !important;
    width: auto !important;
  }

  header .region {
    display: block !important;
  }

  header .burger {
    display: flex !important;
  }

  header nav > ul,
  header .primary-menu,
  header .nav > nav {
    display: none !important;
  }

  main {
    padding-bottom: 0;
  }

  .section,
  .review-section,
  .sets-section,
  .format-section,
  .path-section,
  .life-section,
  .day-section,
  .calculator-section {
    padding: 16px 0 !important;
    margin: 0 !important;
  }

  #functions,
  #controls,
  #sets,
  #reviews,
  #calc,
  #about,
  #projects,
  #partners,
  #day,
  #stages,
  #format,
  #contacts,
  .contact,
  #contacts.contact {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  #partners {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .format-hybrid {
    margin-top: 10px !important;
  }

  .format-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .format-card > img {
    display: block;
    width: 100%;
    height: 168px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center center;
    transform: none !important;
    flex: none;
  }

  /* PNG с тёмным полем снизу: кадрируем внутри рамки, без scale — иначе перекрывает «Проводная · OSMOST» */
  .format-pair > .format-card:first-child > img {
    object-position: center 30%;
  }

  .format-card-body {
    position: relative;
    z-index: 1;
    padding: 12px 16px 16px !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  .format-card-body span {
    display: block;
    margin: 0 !important;
  }

  .section-head {
    margin-bottom: 12px !important;
    gap: 10px !important;
  }

  #reviews .review-top {
    margin-bottom: 12px !important;
  }

  #reviews .review-bot {
    gap: 12px !important;
  }

  #reviews .review-content {
    gap: 10px !important;
  }

  #reviews .review-item {
    min-height: 0 !important;
    padding: 16px !important;
  }

  #reviews .review-item-wrapp {
    gap: 12px !important;
  }

  h1,
  .cottage-hero-copy h1,
  .apartment-hero-copy h1 {
    font-size: clamp(26px, 7.4vw, 34px) !important;
    line-height: 1.18 !important;
    margin: 0 0 12px !important;
    max-width: none !important;
  }

  h2,
  .section-head h2 {
    font-size: clamp(22px, 6vw, 28px) !important;
    line-height: 1.2 !important;
  }

  .section-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px !important;
  }

  .section-head .btn,
  .section-head .hero-primary {
    width: 100%;
  }

  .subtext,
  .hero-sub,
  .section-head .subtext {
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: none !important;
  }

  .hero-actions .btn,
  .cottage-hero .hero-actions .btn,
  .apartment-hero .hero-actions .btn,
  .btn.hero-primary:not(.footer-btn),
  .btn.hero-outline:not(.footer-btn) {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    flex: none !important;
  }

  .cottage-hero,
  .apartment-hero {
    min-height: 0 !important;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }

  .cottage-hero-grid,
  .apartment-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding-top: 20px !important;
    padding-bottom: 32px !important;
    align-items: start !important;
  }

  .cottage-hero-copy,
  .apartment-hero-copy {
    order: 0;
    gap: 14px;
    max-width: none;
  }

  .cottage-hero-device,
  .apartment-hero-device {
    order: 1;
    justify-items: center;
    gap: 10px;
  }

  .cottage-hero .hero-phone,
  .apartment-hero .hero-phone,
  .hero-phone {
    width: min(168px, 46vw) !important;
    padding: 8px 8px 12px;
    border-radius: 26px;
  }

  .cottage-hero .hero-phone img,
  .apartment-hero .hero-phone img,
  .hero-phone img {
    max-height: 280px !important;
    border-radius: 18px;
  }

  .hero-device-caption {
    font-size: 13px;
    text-align: center;
  }

  .hero-actions,
  .cottage-hero .hero-actions,
  .apartment-hero .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 4px !important;
  }

  .hero-proof {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 8px !important;
    width: 100%;
  }

  .hero-proof div {
    min-width: 0 !important;
    gap: 2px;
  }

  .hero-proof div:first-child {
    justify-items: start;
    text-align: left;
  }

  .hero-proof div:nth-child(2) {
    justify-items: center;
    text-align: center;
  }

  .hero-proof div:last-child {
    justify-items: end;
    text-align: right;
  }

  .hero-proof dt {
    font-size: 20px !important;
  }

  .hero-proof dd {
    font-size: 12px !important;
  }

  .life-layout,
  .path-grid,
  .about-band,
  .about-showcase,
  .controls-showcase,
  .format-pair,
  .sets-grid,
  .kits-grid,
  .day-rail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .life-tab {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .life-tab strong {
    font-size: 17px;
  }

  .life-tab em {
    font-size: 13px;
  }

  .life-panel,
  .path-card {
    min-height: 240px !important;
    border-radius: 22px;
  }

  .life-panel-copy,
  .path-card-body {
    padding: 18px 16px;
  }

  .life-panel-copy h3,
  .path-card-body h3 {
    font-size: 22px !important;
    line-height: 1.2;
  }

  .life-panel-copy p,
  .path-card-body p {
    font-size: 14px !important;
  }

  .about-band {
    padding: 20px 16px !important;
    border-radius: 24px;
    gap: 18px !important;
  }

  .about-band-stats {
    gap: 14px;
  }

  .about-band-stats strong {
    font-size: 28px !important;
  }

  .about-showcase {
    padding: 20px 16px !important;
    gap: 20px !important;
  }

  .about-visual {
    width: 100% !important;
    min-height: 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-orbit,
  .about-orbit-primary,
  .about-orbit-secondary,
  .about-orbit-tertiary {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 20px !important;
    padding: 16px 18px !important;
    justify-items: start;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
  }

  .about-orbit strong {
    font-size: 28px !important;
  }

  .about-orbit span {
    max-width: none !important;
    font-size: 13px !important;
  }

  #functions,
  #functions .container,
  .functions,
  .function-view {
    overflow: visible !important;
  }

  .function-view {
    min-height: 0 !important;
    padding: 0 0 8px !important;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .function-view .slides {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 280px !important;
    border-radius: 22px;
    overflow: hidden;
  }

  .function-slide {
    border-radius: 22px;
  }

  .function-slide-copy {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    padding: 20px 16px 18px;
    gap: 8px;
  }

  .function-slide-copy h3 {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .function-slide-copy p {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .function-slide-btn {
    min-width: 0 !important;
    width: fit-content;
    min-height: 42px;
    padding: 0 16px !important;
    font-size: 14px !important;
    white-space: nowrap;
  }

  .function-controls {
    display: none !important;
  }

  .functions-previews {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-top: 12px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .functions-previews .f-item,
  .functions-previews .f-item.active,
  .functions-previews .f-item.preview-pos-1,
  .functions-previews .f-item.preview-pos-2,
  .functions-previews .f-item.preview-pos-3 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: 92px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
    border-radius: 16px;
  }

  .functions-previews .f-item.active {
    outline: 2px solid rgba(255, 255, 255, 0.84);
    outline-offset: 2px;
  }

  .functions-previews .f-item span {
    left: 10px;
    right: 10px;
    bottom: 8px;
    font-size: 12px !important;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .controls-showcase {
    grid-template-areas:
      "copy"
      "media" !important;
    padding: 16px !important;
    border-radius: 22px;
    overflow: hidden;
  }

  .controls-copy h3 {
    font-size: 22px !important;
  }

  .controls-copy p {
    font-size: 14px !important;
  }

  .controls-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .controls-visuals {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .control-device,
  .control-device-primary,
  .control-device-secondary,
  .control-device-tablet {
    width: 100% !important;
    max-width: 280px !important;
    min-width: 0 !important;
    margin: 0 auto;
  }

  .controls-supported-systems {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .controls-supported-item {
    min-width: 0 !important;
    width: 100% !important;
  }

  .cost {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
  }

  .cost .left,
  .cost .right11 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 20px 16px !important;
    border-radius: 22px;
  }

  .cost .right11 {
    gap: 28px !important;
  }

  .cost .top h2,
  .cost .headline {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .cost .choice,
  .cost .wrapp2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .cost .choicebox,
  .cost .choicebox2,
  .cost .left3,
  .cost .left4 {
    width: 100% !important;
  }

  .cost .segment {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    overflow: visible;
    border-radius: 22px;
    padding: 4px;
  }

  .cost .control,
  .cost .control2 {
    flex: none;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    white-space: normal;
  }

  .cost .segment .label,
  .cost .label {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    text-align: center;
  }

  .cost .headline19 {
    font-size: 26px !important;
    line-height: 1.15 !important;
  }

  .cost .component-2,
  .cost .component-2 .button {
    width: 100%;
    white-space: normal;
  }

  .project-track,
  .review-track {
    grid-auto-columns: minmax(78%, 1fr);
    gap: 10px;
    padding: 4px 0 8px;
  }

  .project-card {
    min-height: 0;
  }

  .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .project-links .btn,
  .project-download-btn {
    width: 100%;
  }

  #reviews .review-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px !important;
  }

  #reviews .btn-review-leave {
    width: 100%;
  }

  #reviews .review-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #reviews .review-rating-card {
    width: 100% !important;
    flex-basis: auto !important;
    min-height: 0 !important;
  }

  #reviews .review-item {
    flex-basis: 86% !important;
    min-width: 86% !important;
    min-height: 0 !important;
    padding: 16px !important;
  }

  #reviews .review-controls {
    justify-content: center;
  }

  .partners {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .partner {
    min-height: 88px;
    padding: 8px;
  }

  .contact .data {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .contact .wrapp-left,
  .contact .bot2 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
    border-radius: 22px;
  }

  .contact .top,
  .contact .section-head {
    margin-bottom: 16px !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .contact .headline,
  .contact .subtext,
  .contact .top2,
  .contact .headline2 {
    text-align: left !important;
    max-width: none !important;
  }

  .contact .headline2 {
    font-size: 24px !important;
  }

  .contact .data {
    justify-items: stretch !important;
  }

  .contact-info-list {
    grid-template-columns: 1fr !important;
  }

  .contact-info-item-large {
    grid-column: auto !important;
  }

  .contact input,
  .contact textarea {
    font-size: 16px !important;
  }

  .contact .component-2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px;
    padding: 0 16px !important;
    line-height: 1 !important;
    box-sizing: border-box;
  }

  .contact .component-2 .button,
  .contact .button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1 !important;
    font-size: 16px !important;
    position: static !important;
    transform: none !important;
  }

  footer {
    overflow-x: hidden;
    background-color: #1b1638;
  }

  footer .footer,
  .footer {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 32px 20px !important;
    overflow-x: hidden !important;
    margin: 0 auto !important;
  }

  .footer-start,
  .footer-columns,
  .footer-caption,
  .footer-col,
  .footer-col:nth-child(1),
  .footer-col:nth-child(2),
  .footer-col-wide {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    min-width: 0 !important;
  }

  .footer-start {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
  }

  .footer-columns {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(8px, 3vw, 16px) !important;
    align-items: start;
  }

  .footer-col,
  .footer-col:nth-child(1),
  .footer-col:nth-child(2),
  .footer-col-wide {
    width: auto !important;
    max-width: 100% !important;
  }

  .footer-caption {
    order: 3;
    width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .footer-buttons {
    gap: 10px !important;
  }

  .footer-btn,
  .btn.footer-btn,
  .btn.hero-outline.footer-btn {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px;
    padding: 16px 24px !important;
    font-size: 14px !important;
    line-height: 100% !important;
    white-space: nowrap !important;
  }

  .footer-title,
  .footer-col-title {
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 400 !important;
  }

  .footer-link,
  .footer-contact-text,
  .footer-caption {
    font-size: 12px !important;
    line-height: 12px !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .metrics {
    padding: 24px 16px !important;
    border-radius: 24px;
  }

  .metrics .wrapp {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .metrics .left h2 {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  .metrics .right {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: wrap;
  }

  .metrics .item {
    flex: 1 1 30%;
    min-width: 0;
    gap: 6px;
  }

  .metrics .kpi-value {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }

  .metrics .kpi-label {
    font-size: 12px !important;
    max-width: none !important;
  }

  .consult-widget {
    right: 12px;
    bottom: 12px;
  }

  .consult-widget-panel {
    width: min(100vw - 24px, 320px);
  }
}

