/*
Theme Name: КонстантаСтрой
Theme URI: https://konstantastroy.local
Author: КонстантаСтрой
Description: Кастомная тема по макету. Верстка 1 в 1.
Version: 1.0.0
Text Domain: konstantastroy
Requires at least: 6.0
Requires PHP: 8.0
*/

/* Design width 1440. From 1200px to 1440px scales with --s; above 1440px sizes stay fixed. */
:root {
  --color-red: #510601;
  --color-black: #2a2a2a;
  --color-gray: #97a3a3;
  --color-muted: #a2a2a2;
  --color-line: #e4e0d4;
  --color-white: #ffffff;
  --font-sans: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --s: 1px;
  --pad: 50px;
  --content: 1340px;
  --ks-banner-bottom: calc(25 * var(--s));
  --ks-banner-side: calc(25 * var(--s));
}

@media (min-width: 1200px) {
  :root {
    --s: min(calc(100vw / 1440), 1px);
    --pad: calc(50 * var(--s));
    --content: min(calc(100vw - 2 * var(--pad)), 1340px);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

body.ks-menu-open {
  overflow: hidden;
}

body.ks-modal-open {
  overflow: hidden;
  padding-right: var(--ks-scrollbar-compensation, 0);
}

body.ks-modal-open .ks-header {
  padding-right: var(--ks-scrollbar-compensation, 0);
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.ks-main {
  overflow: clip;
}

/* —— Buttons —— */
.ks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--s));
  height: calc(48 * var(--s));
  padding: 0 calc(20 * var(--s));
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: calc(15 * var(--s));
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ks-btn:hover,
.ks-btn:focus-visible {
  opacity: 0.88;
}

.ks-btn .ks-arrow {
  width: calc(11 * var(--s));
  height: calc(10 * var(--s));
}

.ks-btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: calc(16 * var(--s));
  letter-spacing: -0.03em;
  height: calc(40 * var(--s));
  min-width: calc(218 * var(--s));
}

.ks-btn--primary .ks-arrow,
.ks-btn--white .ks-arrow {
  color: inherit;
}

.ks-btn--white {
  background: var(--color-white);
  color: var(--color-red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: calc(16 * var(--s));
  letter-spacing: -0.03em;
  height: calc(40 * var(--s));
  min-width: calc(218 * var(--s));
}

.ks-btn--outline {
  background: transparent;
  border: 1px solid var(--color-red);
  color: var(--color-red);
  font-weight: 500;
}

.ks-btn--outline:hover,
.ks-btn--outline:focus-visible {
  opacity: 1;
  background: var(--color-red);
  color: var(--color-white);
}

.ks-btn--white:hover,
.ks-btn--white:focus-visible {
  opacity: 1;
  background: #f3f3f3;
}

.ks-section-title {
  margin: 0;
  font-size: calc(32 * var(--s));
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-black);
}

.ks-section-title span {
  color: var(--color-red);
}

.ks-chevron {
  width: calc(10 * var(--s));
  height: calc(12.667 * var(--s));
  flex-shrink: 0;
  transform: none;
  transition: transform 0.2s ease;
  color: var(--color-red);
}

.ks-arrow {
  width: calc(10.5 * var(--s));
  height: calc(7.36 * var(--s));
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.ks-arrow--dark path {
  fill: var(--color-black);
}

.ks-arrow--left {
  transform: scaleX(-1);
}

.has-chevron {
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--s));
}

/* —— Header —— */
.ks-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  height: calc(100 * var(--s));
}

.ks-header__inner {
  height: 100%;
  width: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(20 * var(--s));
}

.ks-header__logo {
  flex-shrink: 0;
  width: calc(207 * var(--s));
  height: calc(38 * var(--s));
}

.ks-header__logo-svg {
  width: 100%;
  height: 100%;
}

.ks-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-self: stretch;
  height: 100%;
}

.ks-header__menu {
  display: flex;
  align-items: stretch;
  gap: calc(25 * var(--s));
  font-size: calc(16 * var(--s));
  font-weight: 400;
  height: 100%;
}

.ks-header__menu > li {
  display: inline-flex;
  align-items: center;
}

.ks-header__cta {
  flex-shrink: 0;
}

.ks-header__burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  flex-shrink: 0;
}

.ks-header__burger svg {
  display: block;
  width: 40px;
  height: 40px;
}

.ks-mobile-menu {
  display: none;
}

/* —— Hero —— */
.ks-hero {
  padding: 0 var(--pad);
}

.ks-hero__media {
  position: relative;
  width: 100%;
  height: calc(555 * var(--s));
  overflow: hidden;
}

.ks-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.ks-hero__gradient {
  display: none;
}

.ks-hero__copy {
  position: absolute;
  left: calc(34 * var(--s));
  bottom: calc(50 * var(--s));
  width: calc(455 * var(--s));
  color: var(--color-white);
  z-index: 2;
}

.ks-hero__title {
  margin: 0 0 calc(15 * var(--s));
  font-size: calc(42 * var(--s));
  font-weight: 700;
  line-height: 0.8;
}

.ks-hero__text {
  margin: 0;
  font-size: calc(16 * var(--s));
  font-weight: 400;
  line-height: 1.25;
}

.ks-hero__text--mobile {
  display: none;
}

.ks-hero__actions {
  position: absolute;
  right: calc(26 * var(--s));
  bottom: calc(25 * var(--s));
  display: flex;
  gap: calc(19 * var(--s));
  z-index: 2;
}

.ks-hero-card {
  display: flex;
  flex-direction: column;
  width: calc(279 * var(--s));
  height: calc(176 * var(--s));
  padding: calc(25 * var(--s)) calc(20 * var(--s)) calc(17 * var(--s));
  position: relative;
}

.ks-hero-card--dark {
  width: calc(283 * var(--s));
  background: var(--color-red);
  color: var(--color-white);
}

.ks-hero-card__decor {
  display: none;
}

.ks-hero-card--light {
  background: var(--color-white);
  color: var(--color-black);
}

.ks-hero-card__title {
  font-size: calc(20 * var(--s));
  font-weight: 500;
  line-height: 1.2;
  max-width: calc(232 * var(--s));
}

.ks-hero-card__note {
  margin-top: calc(8 * var(--s));
  font-size: calc(14 * var(--s));
  font-weight: 400;
  white-space: nowrap;
}

.ks-hero-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--s));
  font-size: calc(16 * var(--s));
}

/* —— Services —— */
.ks-services {
  padding: calc(100 * var(--s)) var(--pad) calc(40 * var(--s));
  position: relative;
}

.ks-services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(20 * var(--s));
  margin-bottom: calc(55 * var(--s));
  align-items: start;
}

.ks-services__titles {
  display: flex;
  align-items: flex-start;
  gap: calc(16 * var(--s));
}

.ks-kicker__bar {
  width: calc(4 * var(--s));
  height: calc(116 * var(--s));
  background: var(--color-red);
  flex-shrink: 0;
}

.ks-kicker__text {
  margin: 0 0 calc(10 * var(--s));
  font-size: calc(13 * var(--s));
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
}

.ks-services__title {
  margin: 0;
  font-size: calc(36 * var(--s));
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

.ks-services__title span {
  color: var(--color-red);
}

.ks-services__lead {
  margin: calc(28 * var(--s)) 0 0;
  font-size: calc(16 * var(--s));
  color: var(--color-gray);
  line-height: 1.35;
}

.ks-services__lead--mobile {
  display: none;
}

.ks-services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(20 * var(--s));
  margin-bottom: calc(33 * var(--s));
}

.ks-service-card {
  min-height: calc(343 * var(--s));
  padding: calc(40 * var(--s)) calc(25 * var(--s)) calc(40 * var(--s));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ks-service-card--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.ks-service-card--dark .ks-service-card__text {
  color: var(--color-gray);
}

.ks-service-card--split {
  display: grid;
  grid-template-columns: calc(320 * var(--s)) 1fr;
  padding: 0;
  border: 1px solid var(--color-gray);
  overflow: hidden;
}

.ks-service-card__photo {
  height: 100%;
  min-height: calc(343 * var(--s));
}

.ks-service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-service-card__body {
  padding: calc(40 * var(--s)) calc(20 * var(--s)) calc(40 * var(--s)) calc(25 * var(--s));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  box-sizing: border-box;
}

.ks-service-card__title {
  margin: 0 0 calc(15 * var(--s));
  font-size: calc(24 * var(--s));
  font-weight: 700;
  line-height: 1.2;
  max-width: calc(442 * var(--s));
}

.ks-service-card__title--accent {
  color: var(--color-red);
  max-width: calc(185 * var(--s));
}

.ks-service-card__text {
  margin: 0 0 calc(25 * var(--s));
  font-size: calc(16 * var(--s));
  line-height: 1.35;
  color: var(--color-gray);
  flex: 1 1 auto;
}

.ks-service-card .ks-btn {
  width: calc(220 * var(--s));
  height: calc(48 * var(--s));
  margin-top: 0;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: calc(15 * var(--s));
  letter-spacing: 0;
}

.ks-cta-bar {
  background: var(--color-red);
  color: var(--color-white);
  min-height: calc(140 * var(--s));
  padding: calc(38 * var(--s)) calc(50 * var(--s));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(20 * var(--s));
}

.ks-cta-bar__title {
  margin: 0 0 calc(5 * var(--s));
  font-size: calc(32 * var(--s));
  font-weight: 700;
}

.ks-cta-bar__desc {
  margin: 0;
  font-size: calc(16 * var(--s));
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.ks-cta-bar .ks-btn {
  width: calc(220 * var(--s));
  flex-shrink: 0;
  height: calc(48 * var(--s));
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: calc(15 * var(--s));
  letter-spacing: 0;
  min-width: 0;
}

/* —— Trust —— */
.ks-trust {
  padding: calc(50 * var(--s)) var(--pad);
}

.ks-trust__inner {
  position: relative;
  height: calc(702 * var(--s));
  overflow: hidden;
}

.ks-trust__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-trust__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.ks-trust__title {
  position: absolute;
  left: calc(50 * var(--s));
  top: calc(60 * var(--s));
  margin: 0;
  width: calc(476 * var(--s));
  font-size: calc(32 * var(--s));
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--color-white);
  z-index: 2;
}

.ks-trust__cards {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.ks-trust__slider {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.ks-trust__nav {
  display: none;
}

.ks-trust-card {
  position: absolute;
  width: calc(320 * var(--s));
  height: calc(197 * var(--s));
  padding: calc(25 * var(--s)) calc(20 * var(--s));
  background: rgba(55, 55, 55, 0.35);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  box-shadow: none;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(calc(40 * var(--s)));
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-trust.is-revealed .ks-trust-card {
  opacity: 1;
  transform: translateY(0);
}

.ks-trust.is-revealed .ks-trust-card--1 { transition-delay: 0.05s; }
.ks-trust.is-revealed .ks-trust-card--2 { transition-delay: 0.18s; }
.ks-trust.is-revealed .ks-trust-card--3 { transition-delay: 0.3s; }
.ks-trust.is-revealed .ks-trust-card--4 { transition-delay: 0.42s; }
.ks-trust.is-revealed .ks-trust-card--5 { transition-delay: 0.54s; }

.ks-trust-card h3 {
  margin: 0 0 calc(20 * var(--s));
  font-family: var(--font-mono);
  font-size: calc(20 * var(--s));
  font-weight: 500;
  line-height: 1.1;
}

.ks-trust-card p {
  margin: 0;
  font-size: calc(16 * var(--s));
  line-height: 1.25;
}

.ks-trust-card--1 { left: calc(50 * var(--s)); top: calc(210 * var(--s)); }
.ks-trust-card--2 { left: calc(652 * var(--s)); top: calc(207 * var(--s)); }
.ks-trust-card--3 { left: calc(984 * var(--s)); top: calc(207 * var(--s)); }
.ks-trust-card--4 { left: calc(350 * var(--s)); top: calc(419 * var(--s)); }
.ks-trust-card--5 { left: calc(984 * var(--s)); top: calc(419 * var(--s)); }

/* —— Projects —— */
.ks-projects {
  padding: calc(61 * var(--s)) var(--pad) 0;
}

.ks-projects .ks-section-title {
  max-width: calc(638 * var(--s));
  margin-bottom: calc(100 * var(--s));
}

.ks-projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(30 * var(--s)) calc(25 * var(--s));
}

.ks-project-card {
  display: block;
  overflow: hidden;
  height: calc(437 * var(--s));
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}

.ks-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-feature-banner {
  position: relative;
  display: block;
  overflow: hidden;
}

.ks-feature-banner__overlay,
.ks-feature-banner__body {
  display: none;
}

@media (min-width: 901px) {
  .ks-feature-banner__overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 51.44%,
      rgba(0, 0, 0, 0) 64.9%,
      rgba(0, 0, 0, 0.5) 82.69%,
      rgba(0, 0, 0, 0.8) 100%
    );
    transition: opacity 0.35s ease;
  }

  .ks-feature-banner__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: calc(20 * var(--s)) calc(30 * var(--s));
    align-items: end;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: var(--ks-banner-bottom) var(--ks-banner-side);
    color: var(--color-white);
    pointer-events: none;
    opacity: 0;
    transform: translateY(calc(24 * var(--s)));
    transition:
      opacity 0.4s ease,
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ks-feature-banner:hover .ks-feature-banner__overlay,
  .ks-feature-banner:focus-visible .ks-feature-banner__overlay,
  .ks-feature-banner:hover .ks-feature-banner__body,
  .ks-feature-banner:focus-visible .ks-feature-banner__body {
    opacity: 1;
  }

  .ks-feature-banner:hover .ks-feature-banner__body,
  .ks-feature-banner:focus-visible .ks-feature-banner__body {
    transform: translateY(0);
  }

  .ks-feature-banner__left {
    display: flex;
    flex-direction: column;
    gap: calc(10 * var(--s));
    min-width: 0;
  }

  .ks-feature-banner__title {
    font-size: calc(24 * var(--s));
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
  }

  .ks-feature-banner__meta {
    display: flex;
    flex-direction: column;
    gap: calc(4 * var(--s));
    font-size: calc(16 * var(--s));
    line-height: 1.2;
  }

  .ks-feature-banner__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(12 * var(--s));
    min-width: calc(200 * var(--s));
  }

  .ks-feature-banner__price-label {
    display: block;
    margin-bottom: calc(2 * var(--s));
    font-size: calc(14 * var(--s));
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
  }

  .ks-feature-banner__price-value {
    font-size: calc(22 * var(--s));
    font-weight: 500;
    line-height: 1;
  }

  .ks-feature-banner__link {
    display: inline-flex;
    align-items: center;
    gap: calc(5 * var(--s));
    font-size: calc(16 * var(--s));
    line-height: 1;
    color: var(--color-white);
  }

  .ks-feature-banner__link .ks-arrow {
    width: calc(10 * var(--s));
    height: calc(8 * var(--s));
    color: inherit;
  }
}

/* —— Project modal —— */
.ks-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20 * var(--s));
}

.ks-modal[hidden] {
  display: none;
}

.ks-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 42, 0.85);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ks-modal.is-open .ks-modal__backdrop {
  opacity: 1;
}

.ks-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(660 * var(--s)), 100%);
  transform: translate3d(0, 56px, 0);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
  will-change: transform, opacity;
}

.ks-modal.is-open .ks-modal__dialog {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ks-modal__backdrop,
  .ks-modal__dialog {
    transition-duration: 0.01ms;
  }

  .ks-modal__dialog {
    transform: none;
    opacity: 1;
  }
}

.ks-modal__close {
  position: absolute;
  top: calc(12 * var(--s));
  right: calc(12 * var(--s));
  z-index: 3;
  width: calc(36 * var(--s));
  height: calc(36 * var(--s));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  color: var(--color-white);
  font-size: calc(28 * var(--s));
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ks-modal__close:hover,
.ks-modal__close:focus-visible {
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.ks-project-modal {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
  aspect-ratio: 660 / 437;
  max-height: min(90vh, calc(437 * var(--s)));
}

.ks-project-modal__media {
  position: absolute;
  inset: 0;
}

.ks-project-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-project-modal__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 51.44%,
    rgba(0, 0, 0, 0) 64.9%,
    rgba(0, 0, 0, 0.5) 82.69%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}

.ks-project-modal__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: calc(20 * var(--s)) calc(30 * var(--s));
  align-items: end;
  padding: var(--ks-banner-bottom) var(--ks-banner-side);
  color: var(--color-white);
}

.ks-project-modal__title {
  margin: 0 0 calc(10 * var(--s));
  font-size: calc(24 * var(--s));
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.ks-project-modal__meta {
  font-size: calc(16 * var(--s));
  line-height: 1.2;
}

.ks-project-modal__meta p {
  margin: 0;
}

.ks-project-modal__foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(12 * var(--s));
  min-width: calc(200 * var(--s));
}

.ks-project-modal__price-label {
  display: block;
  margin-bottom: calc(2 * var(--s));
  font-size: calc(14 * var(--s));
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

.ks-project-modal__price-value {
  font-size: calc(22 * var(--s));
  font-weight: 500;
  line-height: 1;
}

.ks-project-modal__link {
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--s));
  font-size: calc(16 * var(--s));
  line-height: 1;
  color: var(--color-white);
}

.ks-project-modal__link .ks-arrow {
  width: calc(10 * var(--s));
  height: calc(8 * var(--s));
}

/* —— House modal —— */
.ks-modal__dialog--house {
  width: min(calc(1340 * var(--s)), 100%);
}

.ks-house-modal {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
  aspect-ratio: 1340 / 829;
  max-height: min(90vh, calc(829 * var(--s)));
}

.ks-house-modal__media {
  position: absolute;
  inset: 0;
}

.ks-house-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-house-modal__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 34.14%,
    rgba(0, 0, 0, 0) 56.73%,
    rgba(0, 0, 0, 0.5) 80.77%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
}

.ks-house-modal__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: calc(20 * var(--s)) calc(30 * var(--s));
  align-items: end;
  padding: var(--ks-banner-bottom) var(--ks-banner-side);
  color: var(--color-white);
}

.ks-house-modal__title {
  margin: 0 0 calc(10 * var(--s));
  font-size: calc(48 * var(--s));
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.ks-house-modal__meta {
  font-size: calc(32 * var(--s));
  line-height: 1.2;
}

.ks-house-modal__meta p {
  margin: 0;
}

.ks-house-modal__foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(16 * var(--s));
  min-width: calc(311 * var(--s));
}

.ks-house-modal__price-label {
  display: block;
  margin-bottom: calc(4 * var(--s));
  font-size: calc(28 * var(--s));
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

.ks-house-modal__price-value {
  font-size: calc(44 * var(--s));
  font-weight: 500;
  line-height: 1;
}

.ks-house-modal__link {
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--s));
  font-size: calc(32 * var(--s));
  line-height: 1;
  color: var(--color-white);
}

.ks-house-modal__link .ks-arrow {
  width: calc(20 * var(--s));
  height: calc(16 * var(--s));
}

/* —— Specs modal —— */
.ks-modal[data-specs-modal] .ks-modal__backdrop {
  background: rgba(21, 21, 21, 0.4);
}

.ks-modal__dialog--specs {
  width: min(calc(624 * var(--s)), 100%);
  max-height: min(92vh, calc(667 * var(--s)));
}

.ks-specs-modal {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  overflow: hidden;
}

.ks-specs-modal__hero {
  flex-shrink: 0;
  height: calc(186.805 * var(--s));
  overflow: hidden;
}

.ks-specs-modal__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-specs-modal__body {
  flex: 1;
  overflow: auto;
  padding: calc(40 * var(--s));
}

.ks-specs-modal__head {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--s));
  margin-bottom: calc(30 * var(--s));
}

.ks-specs-modal__kicker {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: calc(16 * var(--s));
  font-weight: 700;
  line-height: 1;
  letter-spacing: calc(-0.48 * var(--s));
  color: #97a3a3;
}

.ks-specs-modal__title {
  margin: 0;
  font-size: calc(24 * var(--s));
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: #510601;
}

.ks-specs-modal__content {
  font-size: calc(16 * var(--s));
  line-height: 1.625;
  color: #404040;
}

.ks-specs-modal__content > :first-child {
  margin-top: 0;
}

.ks-specs-modal__content > :last-child {
  margin-bottom: 0;
}

.ks-specs-modal__content ul,
.ks-specs-modal__content ol {
  margin: 0;
  padding-left: calc(24 * var(--s));
}

.ks-specs-modal__content ul {
  list-style-type: disc;
}

.ks-specs-modal__content ol {
  list-style-type: decimal;
}

.ks-specs-modal__content li {
  display: list-item;
  list-style-position: outside;
  margin: 0;
  line-height: 1.625;
}

.ks-specs-modal__content li::marker {
  color: #404040;
}

.ks-specs-modal__content li + li {
  margin-top: 0;
}

.ks-specs-modal__content p {
  margin: 0 0 calc(8 * var(--s));
  line-height: 1.625;
}

.ks-specs-modal__close {
  position: fixed;
  top: calc(50 * var(--s));
  right: calc(50 * var(--s));
  z-index: 201;
  width: calc(30 * var(--s));
  height: calc(30 * var(--s));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ks-specs-modal__close:hover,
.ks-specs-modal__close:focus-visible {
  color: var(--color-white);
  opacity: 1;
}

.ks-specs-modal__close svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* —— Request form modal —— */
.ks-modal__dialog--form {
  width: min(calc(600 * var(--s)), calc(100% - 20px));
  background: var(--color-white);
}

.ks-request-modal,
.ks-calc-modal {
  position: relative;
  background: var(--color-white);
  overflow: auto;
}

.ks-request-modal {
  max-height: min(92vh, calc(556 * var(--s)));
}

.ks-calc-modal {
  max-height: min(92vh, calc(483 * var(--s)));
}

.ks-request-modal:has([data-request-panel="mortgage"]:not([hidden])),
.ks-request-modal:has([data-request-panel="question"]:not([hidden])) {
  max-height: min(92vh, calc(400 * var(--s)));
}

.ks-modal[data-request-modal] .ks-modal__backdrop {
  background: rgba(21, 21, 21, 0.4);
}

.ks-request-modal__close {
  position: absolute;
  top: calc(40 * var(--s));
  right: calc(40 * var(--s));
  z-index: 2;
  width: calc(14 * var(--s));
  height: calc(14 * var(--s));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: none;
  color: rgba(42, 42, 42, 0.45);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ks-request-modal__close:hover,
.ks-request-modal__close:focus-visible {
  color: #510601;
  opacity: 1;
}

.ks-request-modal__close svg {
  width: 100%;
  height: 100%;
  display: block;
  color: inherit;
}

.ks-request-modal__panel[hidden] {
  display: none;
}

.ks-request-form {
  padding: calc(40 * var(--s));
}

.ks-request-form__head {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--s));
  width: 100%;
  max-width: calc(520 * var(--s));
  margin: 0 0 calc(24 * var(--s));
  padding-right: calc(28 * var(--s));
}

.ks-request-form__title {
  margin: 0;
  font-size: calc(24 * var(--s));
  font-weight: 600;
  line-height: 1.25;
  color: #2a2a2a;
}

.ks-request-form__desc {
  margin: 0;
  font-size: calc(15 * var(--s));
  font-weight: 400;
  line-height: 1.5;
  color: rgba(42, 42, 42, 0.62);
}

.ks-request-form__body {
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--s));
  width: 100%;
  max-width: calc(520 * var(--s));
  margin-bottom: calc(24 * var(--s));
}

.ks-request-form__row {
  display: flex;
  justify-content: space-between;
  gap: calc(20 * var(--s));
  width: 100%;
}

.ks-request-form__row > .ks-request-form__field {
  flex: 1 1 0;
  width: calc(50% - 10 * var(--s));
  min-width: 0;
}

.ks-request-form__field {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--s));
  min-width: 0;
}

.ks-request-form__label {
  font-size: calc(13 * var(--s));
  font-weight: 600;
  line-height: 1.2;
  color: rgba(42, 42, 42, 0.6);
}

.ks-request-form__chips {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--s));
}

.ks-request-form__chip {
  height: calc(44 * var(--s));
  padding: 0;
  border: 1.5px solid rgba(42, 42, 42, 0.25);
  background: var(--color-white);
  color: rgba(42, 42, 42, 0.85);
  font-family: var(--font-sans);
  font-size: calc(15 * var(--s));
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ks-request-form__chip:hover,
.ks-request-form__chip:focus-visible {
  border-color: #510601;
  color: #510601;
}

.ks-request-form__chip--yes {
  width: calc(150 * var(--s));
}

.ks-request-form__chip--searching {
  width: calc(180 * var(--s));
}

.ks-request-form__chip.is-active {
  border-color: #510601;
  background: #510601;
  color: var(--color-white);
  font-weight: 600;
}

.ks-request-form__chip.is-active:hover,
.ks-request-form__chip.is-active:focus-visible {
  background: #3d0401;
  border-color: #3d0401;
  color: var(--color-white);
}

.ks-request-form__input,
.ks-request-form__select {
  width: 100%;
  height: calc(50 * var(--s));
  padding: 0 calc(12.5 * var(--s));
  border: 1.5px solid #e0ddd6;
  border-radius: 0;
  background: var(--color-white);
  color: #2a2a2a;
  font-family: var(--font-sans);
  font-size: calc(15 * var(--s));
  font-weight: 400;
  line-height: 1;
  transition: border-color 0.2s ease;
}

.ks-request-form__select {
  color: #9a9a9a;
}

.ks-request-form__select.is-selected {
  color: #2a2a2a;
}

.ks-request-form__input::placeholder {
  color: #9a9a9a;
  opacity: 1;
  font-size: calc(16 * var(--s));
}

.ks-request-form__input:hover,
.ks-request-form__select:hover {
  border-color: rgba(81, 6, 1, 0.45);
}

.ks-request-form__input:focus,
.ks-request-form__select:focus {
  outline: none;
  border-color: #510601;
}

.ks-request-form__field .iti {
  display: block;
  width: 100%;
}

.ks-request-form__field .iti__tel-input {
  width: 100%;
  height: calc(50 * var(--s));
  padding-right: calc(12.5 * var(--s));
  padding-top: 0;
  padding-bottom: 0;
  border: 1.5px solid #e0ddd6;
  border-radius: 0;
  background: var(--color-white);
  color: #2a2a2a;
  font-family: var(--font-sans);
  font-size: calc(16 * var(--s));
  font-weight: 400;
  line-height: calc(50 * var(--s));
  transition: border-color 0.2s ease;
}

.ks-request-form__field .iti__country-container {
  top: 0;
  bottom: 0;
  left: 0;
  padding: 0;
}

.ks-request-form__field .iti__selected-country {
  height: 100%;
  border: 0;
  background: transparent;
}

.ks-request-form__field .iti__selected-country-primary {
  height: 100%;
  padding: 0 calc(6 * var(--s)) 0 calc(12.5 * var(--s));
}

.ks-request-form__field .iti .iti__selected-dial-code {
  font-family: var(--font-sans);
  font-size: calc(16 * var(--s));
  font-weight: 400;
  line-height: 1;
  color: #9a9a9a;
  margin-left: calc(4 * var(--s));
  transition: color 0.15s ease;
}

.ks-request-form__field .iti.is-filled .iti__selected-dial-code,
.ks-request-form__field .iti:focus-within .iti__selected-dial-code {
  color: #2a2a2a;
}

.ks-request-form__field .iti__tel-input::placeholder {
  color: #9a9a9a;
  opacity: 1;
  font-size: calc(16 * var(--s));
}

.ks-request-form__field .iti__tel-input:hover {
  border-color: rgba(81, 6, 1, 0.45);
}

.ks-request-form__field .iti__tel-input:focus {
  outline: none;
  border-color: #510601;
}

.ks-request-form__field .iti__tel-input.is-invalid {
  border-color: #510601;
}

.ks-request-form__field .iti__selected-country:hover,
.ks-request-form__field .iti__selected-country:focus,
.ks-request-form__field .iti__selected-country:active,
.ks-request-form__field .iti__selected-country[aria-expanded="true"] {
  background: transparent;
}

.ks-request-form__field .iti__arrow {
  border-top-color: #510601;
  margin-left: calc(4 * var(--s));
}

.iti--container {
  z-index: 400;
}

.iti__dropdown-content {
  z-index: 400;
  border: 1.5px solid #e0ddd6;
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(42, 42, 42, 0.18);
}

.iti__search-input {
  border-radius: 0 !important;
  border-color: #e0ddd6 !important;
  font-family: var(--font-sans);
}

.iti__country.iti__highlight {
  background-color: rgba(81, 6, 1, 0.08);
}

.iti__country:hover {
  background-color: rgba(81, 6, 1, 0.08);
}

.ks-request-form__select-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.ks-request-form__select {
  appearance: none;
  padding-right: calc(36 * var(--s));
  cursor: pointer;
}

.ks-request-form__select-icon {
  position: absolute;
  top: 50%;
  right: calc(14 * var(--s));
  width: calc(10 * var(--s));
  height: calc(12.67 * var(--s));
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.ks-request-form__select-wrap:has(select:focus) .ks-request-form__select-icon {
  transform: translateY(-50%) rotate(180deg);
}

.ks-request-form__footer {
  display: flex;
  flex-direction: column;
  gap: calc(15 * var(--s));
  width: 100%;
  max-width: calc(520 * var(--s));
}

.ks-request-form__consent {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--s));
  font-size: calc(12 * var(--s));
  font-weight: 400;
  line-height: 1.4;
  color: rgba(42, 42, 42, 0.45);
  cursor: pointer;
}

.ks-request-form__policy {
  color: rgba(42, 42, 42, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.ks-request-form__policy:hover,
.ks-request-form__policy:focus-visible {
  color: #510601;
}

.ks-request-form__consent-box {
  position: relative;
  flex-shrink: 0;
  width: calc(20 * var(--s));
  height: calc(20 * var(--s));
  border: 0;
  background: #510601;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ks-request-form__consent:hover .ks-request-form__consent-box {
  opacity: 0.85;
}

.ks-request-form__consent-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.ks-request-form__consent-check {
  width: calc(13 * var(--s));
  height: calc(10 * var(--s));
  pointer-events: none;
  display: none;
}

.ks-request-form__consent-box:has(input:checked) {
  background: #510601;
}

.ks-request-form__consent-box:has(input:checked) .ks-request-form__consent-check {
  display: block;
}

.ks-request-form__consent-box:has(input:not(:checked)) {
  background: var(--color-white);
  border: 1.5px solid rgba(42, 42, 42, 0.25);
}

.ks-request-form__submit {
  width: 100%;
  height: calc(56 * var(--s));
  border: 0;
  border-radius: 0;
  background: #510601;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: calc(17 * var(--s));
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ks-request-form__submit:hover,
.ks-request-form__submit:focus-visible {
  background: #3d0401;
  opacity: 1;
}

.ks-request-form__submit:disabled {
  opacity: 0.7;
  cursor: default;
}

/* —— Calculator modal —— */
.ks-modal[data-calculator-modal] .ks-modal__backdrop {
  background: rgba(21, 21, 21, 0.4);
}

.ks-calc-modal {
  max-height: min(92vh, calc(483 * var(--s)));
}

.ks-calc-form .ks-request-form__head {
  margin-bottom: calc(20 * var(--s));
}

.ks-calc-form__body {
  gap: calc(20 * var(--s));
}

.ks-calc-form__result-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(20 * var(--s));
  align-items: end;
}

.ks-calc-form__price {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--s));
  min-width: 0;
}

.ks-calc-form__price-value {
  margin: 0;
  font-size: calc(24 * var(--s));
  font-weight: 600;
  line-height: 1;
  color: #2a2a2a;
  white-space: nowrap;
}

.ks-calc-form .ks-request-form__select.is-selected,
.ks-calc-form .ks-request-form__select {
  color: #2a2a2a;
}

button.ks-btn,
button.ks-hero-card,
button.ks-mcalc__cta,
button.ks-object-infra__btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

button.ks-about-cta__btn {
  cursor: pointer;
  text-decoration: none;
}

.ks-hero-card {
  text-align: left;
}

/* —— Ready houses —— */
.ks-ready {
  padding: calc(100 * var(--s)) var(--pad) calc(40 * var(--s));
}

.ks-ready .ks-section-title {
  max-width: calc(476 * var(--s));
  margin-bottom: calc(100 * var(--s));
}

.ks-ready__list {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--s));
}

.ks-ready__item {
  display: block;
  height: calc(691 * var(--s));
  overflow: hidden;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}

.ks-ready__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Approach —— */
.ks-approach {
  padding: calc(100 * var(--s)) var(--pad) calc(50 * var(--s));
}

.ks-approach__top {
  margin-bottom: calc(80 * var(--s));
}

.ks-approach__body {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(40 * var(--s));
}

.ks-approach__title {
  margin: 0;
  font-size: calc(32 * var(--s));
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

.ks-approach__title span {
  color: var(--color-gray);
  display: block;
}

.ks-approach__list li {
  display: grid;
  grid-template-columns: calc(36 * var(--s)) minmax(0, 1fr);
  gap: calc(12 * var(--s));
  padding-bottom: calc(20 * var(--s));
  margin-bottom: calc(20 * var(--s));
  border-bottom: 1px solid #a2a2a2;
  align-items: start;
}

.ks-approach__num {
  color: #510601;
  font-size: calc(20 * var(--s));
  font-weight: 400;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.ks-approach__list p {
  margin: 0;
  font-size: calc(18 * var(--s));
  font-weight: 400;
  color: #212121;
  line-height: 1.35;
  max-width: calc(520 * var(--s));
}

.ks-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: calc(19 * var(--s));
}

.ks-stat {
  background: var(--color-gray);
  color: var(--color-white);
  height: calc(184 * var(--s));
  padding: calc(20 * var(--s)) calc(15 * var(--s));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ks-stat--accent {
  background: var(--color-red);
}

.ks-stat h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: calc(16 * var(--s));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.ks-stat p {
  margin: auto 0 0;
  font-size: calc(14 * var(--s));
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.ks-stat__decor {
  position: absolute;
  left: calc(50% + 20.5 * var(--s));
  top: calc(50% + 55.5 * var(--s));
  width: calc(676 * var(--s));
  height: calc(437 * var(--s));
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  object-fit: fill;
}

/* —— Mortgage —— */
.ks-mortgage {
  padding: calc(100 * var(--s)) var(--pad) calc(50 * var(--s));
}

.ks-mortgage__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(20 * var(--s));
  margin-bottom: calc(50 * var(--s));
}

.ks-mortgage__head .ks-section-title {
  max-width: calc(740 * var(--s));
}

.ks-mortgage__note {
  margin: calc(35 * var(--s)) 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(8 * var(--s));
}

.ks-mortgage__note-text {
  margin: 0;
  font-size: calc(16 * var(--s));
  color: var(--color-gray);
  text-align: right;
  white-space: nowrap;
}

.ks-mortgage__link {
  color: inherit;
  text-decoration: none;
}

.ks-mortgage__q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(19 * var(--s));
  height: calc(19 * var(--s));
  background: var(--color-red);
  color: var(--color-white);
  font-size: calc(13 * var(--s));
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.ks-mortgage__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(20 * var(--s));
  margin-bottom: calc(47 * var(--s));
}

.ks-mortgage-card {
  background: var(--color-gray);
  color: var(--color-white);
  min-height: calc(188 * var(--s));
  padding: calc(20 * var(--s));
  display: flex;
  flex-direction: column;
}

.ks-mortgage-card--accent {
  background: var(--color-red);
}

.ks-mortgage-card__icon {
  width: calc(50 * var(--s));
  height: calc(50 * var(--s));
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
}

.ks-mortgage-card__icon svg {
  width: calc(22 * var(--s));
  height: calc(22 * var(--s));
}

.ks-mortgage-card p {
  margin: calc(20 * var(--s)) 0 0;
  font-size: calc(16 * var(--s));
  line-height: 1.25;
}

.ks-mortgage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(20 * var(--s));
}

.ks-mortgage__banks {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--s));
}

.ks-mortgage__bank {
  height: calc(44 * var(--s));
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

/* —— Reviews —— */
.ks-reviews {
  padding: calc(100 * var(--s)) var(--pad) calc(40 * var(--s));
}

.ks-reviews__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: calc(48 * var(--s));
}

.ks-reviews__head .ks-section-title {
  max-width: calc(612 * var(--s));
}

.ks-reviews__nav {
  display: flex;
  gap: calc(5 * var(--s));
}

.ks-reviews__btn {
  width: calc(51 * var(--s));
  height: calc(51 * var(--s));
}

.ks-reviews__btn svg {
  width: 100%;
  height: 100%;
}

.ks-reviews__nav--foot {
  display: none;
}

.ks-reviews__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: calc(20 * var(--s));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}

.ks-reviews__track::-webkit-scrollbar {
  display: none;
}

.ks-reviews__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.ks-review {
  position: relative;
  flex: 0 0 calc(320 * var(--s));
  height: calc(537 * var(--s));
  overflow: hidden;
  background: #000;
  scroll-snap-align: start;
}

.ks-review__link {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.ks-review img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.ks-review__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: calc(44 * var(--s));
  height: calc(44 * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-review__play svg {
  width: 100%;
  height: 100%;
}

/* —— Warranty —— */
.ks-warranty {
  padding: calc(56 * var(--s)) var(--pad) calc(40 * var(--s));
  display: grid;
  grid-template-columns: calc(500 * var(--s)) 1fr;
  gap: calc(90 * var(--s));
  align-items: start;
}

.ks-warranty__actions {
  display: flex;
  gap: calc(16 * var(--s));
  margin-top: calc(60 * var(--s));
}

.ks-warranty__actions .ks-btn--primary {
  width: calc(290 * var(--s));
  height: calc(48 * var(--s));
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: calc(15 * var(--s));
  letter-spacing: 0;
}

.ks-warranty__actions .ks-btn--outline {
  width: calc(210 * var(--s));
  height: calc(48 * var(--s));
}

.ks-warranty__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: calc(20 * var(--s));
  padding: calc(8 * var(--s)) 0;
  border-bottom: 1px solid var(--color-line);
  font-size: calc(16 * var(--s));
}

.ks-warranty__row:last-child {
  border-bottom: 0;
}

.ks-warranty__row strong {
  color: var(--color-red);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* —— Footer —— */
/* Figma 2202:1251 — pad 50 слева/справа, 3 колонки пропорционально */
.ks-footer {
  padding: calc(79 * var(--s)) var(--pad) calc(43 * var(--s));
  border-top: 1px solid transparent;
}

.ks-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: calc(40 * var(--s));
  row-gap: calc(40 * var(--s));
  width: 100%;
}

.ks-footer__col--brand {
  width: 100%;
  max-width: calc(350 * var(--s));
  justify-self: start;
}

.ks-footer__col--contacts {
  width: 100%;
  max-width: calc(320 * var(--s));
  justify-self: center;
}

.ks-footer__col--nav {
  width: 100%;
  max-width: calc(370 * var(--s));
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ks-footer__bottom {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: calc(40 * var(--s));
  align-items: start;
  margin-top: 0;
}

.ks-footer__legal-links {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: calc(40 * var(--s));
  font-size: calc(16 * var(--s));
  color: var(--color-black);
}

.ks-footer__logo {
  display: block;
  width: calc(318 * var(--s));
  height: calc(58 * var(--s));
  margin-bottom: calc(78 * var(--s));
}

.ks-footer__logo-svg {
  width: 100%;
  height: 100%;
}

.ks-footer__company {
  margin: 0 0 calc(12 * var(--s));
  font-size: calc(24 * var(--s));
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: #000000;
  white-space: nowrap;
}

.ks-footer__requisites {
  font-size: calc(16 * var(--s));
  color: var(--color-gray);
  line-height: 1.2;
}

.ks-footer__requisites p {
  margin: 0;
}

.ks-footer__legal-links a {
  white-space: nowrap;
}

.ks-footer__phone,
.ks-footer__email {
  display: flex;
  align-items: center;
  gap: calc(7 * var(--s));
  font-size: calc(24 * var(--s));
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: calc(15 * var(--s));
}

.ks-footer__email {
  margin-bottom: 0;
}

.ks-footer__contact-block {
  display: contents;
}

.ks-footer__address--mobile {
  display: none;
}

.ks-footer__cta {
  width: calc(218 * var(--s));
  min-width: calc(218 * var(--s));
  height: calc(40 * var(--s));
  margin-top: 0;
}

.ks-footer__cta-arrow {
  display: none;
}

.ks-footer__icon {
  width: calc(21 * var(--s));
  height: calc(21 * var(--s));
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.ks-footer__icon svg {
  width: 100%;
  height: 100%;
}

/* Figma: icons 45×45, SVG 53×53 with shadow (inset -4 / +8) */
.ks-footer__socials {
  display: flex;
  gap: calc(13.5 * var(--s));
  margin: calc(25 * var(--s)) 0 calc(26 * var(--s));
}

.ks-footer__socials a {
  position: relative;
  width: calc(45 * var(--s));
  height: calc(45 * var(--s));
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.ks-footer__socials a > svg {
  position: absolute;
  top: 0;
  left: calc(-4 * var(--s));
  width: calc(53 * var(--s));
  height: calc(53 * var(--s));
  max-width: none;
  display: block;
}

/* Figma menu: 2 cols, row step 39 → gap 20, col gap ~50 */
.ks-footer__menu {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: calc(40 * var(--s));
  row-gap: calc(20 * var(--s));
  font-size: calc(16 * var(--s));
  color: var(--color-black);
  margin-bottom: calc(26 * var(--s));
  justify-content: start;
}

.ks-footer__menu > li {
  position: relative;
}

.ks-footer__menu > li.has-chevron {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: calc(5 * var(--s));
  row-gap: 0;
  width: max-content;
  max-width: 100%;
}

.ks-footer__menu > li.has-chevron > a {
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
}

.ks-footer__menu > li.has-chevron > .ks-chevron {
  flex: 0 0 auto;
  position: static;
  left: auto;
  top: auto;
  margin: 0;
}

.ks-footer__menu > li.has-chevron > .ks-header__submenu {
  flex: 1 0 100%;
  width: 100%;
}

.ks-footer__menu .ks-header__dropdown::after {
  content: none;
  display: none;
}

.ks-footer__menu .ks-header__submenu {
  position: static;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s ease,
    padding 0.28s ease,
    visibility 0.28s ease;
}

.ks-footer__menu .ks-header__dropdown:hover .ks-header__submenu,
.ks-footer__menu .ks-header__dropdown:focus-within .ks-header__submenu,
.ks-footer__menu .ks-header__dropdown.is-open .ks-header__submenu {
  max-height: calc(120 * var(--s));
  padding: calc(4 * var(--s)) 0 calc(2 * var(--s));
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ks-footer__menu .ks-header__submenu a {
  padding: calc(6 * var(--s)) 0;
  font-size: calc(15 * var(--s));
}

.ks-footer__address {
  font-size: calc(16 * var(--s));
  line-height: 1.3;
  margin-bottom: 0;
  max-width: calc(324 * var(--s));
  color: var(--color-black);
}

.ks-footer__address-label {
  margin: 0;
  font-weight: 500;
  line-height: 1.84;
  color: var(--color-black);
}

.ks-footer__address--desktop {
  display: block;
}

.ks-footer__address p {
  margin: 0;
  line-height: 1.3;
}

.ks-footer__address--desktop p:not(.ks-footer__address-label) {
  margin-top: calc(10 * var(--s));
}

.ks-footer__copy {
  margin: 0;
  font-size: calc(16 * var(--s));
  color: var(--color-gray);
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  flex-shrink: 0;
}

.ks-footer__copy--desktop {
  display: block;
  grid-column: 3;
  justify-self: end;
  max-width: calc(370 * var(--s));
  width: 100%;
}

.ks-footer__legal-mobile {
  display: none;
}

/* —— Catalog pages —— */
.ks-catalog--houses {
  padding: calc(100 * var(--s)) var(--pad) calc(100 * var(--s));
}

.ks-catalog--projects {
  padding: calc(61 * var(--s)) var(--pad) calc(100 * var(--s));
}

.ks-catalog__title {
  margin: 0 0 calc(70 * var(--s));
  font-size: calc(32 * var(--s));
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-black);
}

.ks-catalog--projects .ks-catalog__title {
  max-width: calc(638 * var(--s));
  margin-bottom: calc(30 * var(--s));
}

.ks-catalog--houses .ks-catalog__title {
  max-width: calc(476 * var(--s));
}

.ks-catalog__list {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--s));
}

.ks-catalog__item {
  display: block;
  position: relative;
  overflow: hidden;
}

.ks-catalog__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-catalog__item--wide {
  height: calc(691 * var(--s));
}

.ks-catalog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(30 * var(--s)) calc(25 * var(--s));
}

.ks-catalog__item--card {
  height: calc(437 * var(--s));
}

/* —— Single object (house / project) —— */
.ks-object-hero {
  padding: calc(20 * var(--s)) 0 0;
}

.ks-object-hero__media {
  position: relative;
  height: calc(562 * var(--s));
  overflow: hidden;
}

.ks-object-hero__media::after {
  content: none;
}

.ks-object-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-object-hero__crumbs {
  display: flex;
  align-items: center;
  gap: calc(26 * var(--s));
  font-size: calc(14 * var(--s));
  white-space: nowrap;
}

.ks-object-hero__crumbs--desktop {
  position: absolute;
  left: var(--pad);
  top: calc(50 * var(--s));
  color: var(--color-white);
  z-index: 2;
}

.ks-object-hero__crumbs--mobile,
.ks-object-hero__facts {
  display: none;
}

.ks-object-hero__meta {
  position: absolute;
  top: 0;
  right: var(--pad);
  width: calc(320 * var(--s));
  height: calc(82 * var(--s));
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 calc(29 * var(--s));
  font-size: calc(16 * var(--s));
  line-height: 1.25;
  color: var(--color-black);
  z-index: 2;
}

.ks-object-hero__meta p {
  margin: 0;
}

.ks-object-hero__title {
  position: absolute;
  left: var(--pad);
  top: calc(396 * var(--s));
  margin: 0;
  font-size: calc(32 * var(--s));
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-white);
  z-index: 2;
}

.ks-object-hero__cta-wrap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(385 * var(--s));
  height: calc(97 * var(--s));
  background: var(--color-white);
  display: flex;
  align-items: center;
  padding-left: var(--pad);
  z-index: 2;
}

.ks-object-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--s));
  width: calc(285 * var(--s));
  height: calc(40 * var(--s));
  padding: 0 calc(20 * var(--s));
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: calc(16 * var(--s));
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ks-object-hero__cta--mobile {
  display: none;
}

.ks-object-hero__play {
  display: inline-flex;
  width: calc(15 * var(--s));
  height: calc(15 * var(--s));
  flex-shrink: 0;
}

.ks-object-hero__play svg {
  width: 100%;
  height: 100%;
}

.ks-object-about {
  display: grid;
  grid-template-columns: 1fr calc(433 * var(--s));
  gap: calc(40 * var(--s)) calc(80 * var(--s));
  padding: calc(85 * var(--s)) var(--pad) calc(40 * var(--s));
  align-items: start;
}

.ks-object-about__title {
  margin: 0 0 calc(15 * var(--s));
  font-size: calc(32 * var(--s));
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: #000;
}

.ks-object-about__text {
  margin: 0;
  max-width: calc(547 * var(--s));
  font-size: calc(16 * var(--s));
  line-height: 1.45;
  color: var(--color-black);
}

.ks-object-rooms {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: calc(30 * var(--s)) calc(25 * var(--s));
}

.ks-object-rooms__label {
  margin: 0 0 calc(30 * var(--s));
  font-size: calc(16 * var(--s));
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-gray);
}

.ks-object-rooms__list {
  display: flex;
  flex-direction: column;
  gap: calc(17 * var(--s));
  margin: 0 0 calc(17 * var(--s));
}

.ks-object-rooms__list li {
  display: flex;
  justify-content: space-between;
  gap: calc(16 * var(--s));
  padding-bottom: calc(17 * var(--s));
  border-bottom: 1px solid #d3d3d3;
  font-size: calc(16 * var(--s));
}

.ks-object-rooms__list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ks-object-rooms__list span {
  font-weight: 500;
}

.ks-object-rooms__list strong {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ks-object-rooms__link {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--s));
  margin-top: calc(8 * var(--s));
  color: var(--color-red);
  font-size: calc(16 * var(--s));
  font-weight: 500;
}

.ks-object-rooms__link .ks-arrow {
  width: calc(13 * var(--s));
  height: calc(13 * var(--s));
  color: currentColor;
  flex-shrink: 0;
}

.ks-object-specs {
  grid-column: 1 / -1;
  margin-top: calc(20 * var(--s));
}

.ks-object-specs__toggle {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--s));
  padding: 0;
  font-size: calc(24 * var(--s));
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-black);
  transition: color 0.2s ease;
}

.ks-object-specs__toggle:hover,
.ks-object-specs__toggle:focus-visible {
  color: var(--color-red);
}

.ks-object-specs__icon {
  display: inline-flex;
  width: calc(39 * var(--s));
  height: calc(39 * var(--s));
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-gray);
  transition: color 0.2s ease, transform 0.2s ease;
}

.ks-object-specs__toggle:hover .ks-object-specs__icon,
.ks-object-specs__toggle:focus-visible .ks-object-specs__icon {
  color: var(--color-red);
  transform: translateX(calc(3 * var(--s)));
}

.ks-object-specs__icon svg {
  width: calc(17 * var(--s));
  height: calc(17 * var(--s));
  transition: transform 0.2s ease;
}

.ks-object-specs.is-open .ks-object-specs__icon svg {
  transform: rotate(45deg);
}

.ks-object-specs__panel {
  margin-top: calc(24 * var(--s));
  max-width: calc(660 * var(--s));
}

.ks-object-specs__list {
  display: flex;
  flex-direction: column;
}

.ks-object-specs__list li {
  display: flex;
  justify-content: space-between;
  gap: calc(20 * var(--s));
  padding: calc(14 * var(--s)) 0;
  border-bottom: 1px solid var(--color-line);
  font-size: calc(16 * var(--s));
}

.ks-object-specs__list strong {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: right;
}

.ks-object-gallery {
  padding: calc(59 * var(--s)) var(--pad) calc(40 * var(--s));
}

.ks-object-gallery__toolbar {
  display: none;
}

.ks-object-gallery__viewport {
  overflow: visible;
}

.ks-object-gallery__track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(25 * var(--s)) calc(20 * var(--s));
  align-items: start;
}

.ks-object-gallery__item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: calc(280 * var(--s));
  max-height: calc(520 * var(--s));
  overflow: hidden;
  background: #f4f2ee;
}

.ks-object-gallery__item img {
  width: 100%;
  height: auto;
  max-height: calc(520 * var(--s));
  object-fit: contain;
  object-position: center;
}

.ks-object-gallery__progress {
  display: none;
}

.ks-object-infra {
  padding: calc(100 * var(--s)) var(--pad) calc(60 * var(--s));
}

.ks-object-infra__title {
  margin: 0 0 calc(55 * var(--s));
  max-width: calc(660 * var(--s));
  font-size: calc(24 * var(--s));
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--color-black);
}

.ks-object-infra__layout {
  display: grid;
  grid-template-columns: calc(773 * var(--s)) 1fr;
  gap: calc(20 * var(--s));
  align-items: start;
}

.ks-object-infra__map {
  height: calc(402 * var(--s));
  background: #d8d8d8;
  overflow: hidden;
}

.ks-object-infra__map-widget,
.ks-object-infra__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%);
}

.ks-object-infra__map [class*="ymaps-"][class*="-map"] {
  width: 100% !important;
  height: 100% !important;
}

.ks-object-infra__map .leaflet-container,
.ks-object-infra__map > ymaps {
  width: 100% !important;
  height: 100% !important;
}

.ks-object-infra__map .leaflet-container {
  background: #d8d8d8;
  font-family: var(--font-sans);
  z-index: 0;
}

.ks-object-infra__map .leaflet-tile-pane,
.ks-object-infra__map [class*="ground-pane"],
.ks-object-infra__map [class*="places-pane"] {
  filter: grayscale(100%);
}

.ks-object-infra__map .leaflet-control-zoom,
.ks-object-infra__map [class*="zoom"] {
  border: 0;
  box-shadow: none;
}

.ks-object-infra__map .leaflet-control-zoom a,
.ks-object-infra__map [class*="zoom__plus"],
.ks-object-infra__map [class*="zoom__minus"] {
  width: calc(32 * var(--s)) !important;
  height: calc(32 * var(--s)) !important;
  line-height: calc(30 * var(--s));
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(42, 42, 42, 0.12) !important;
  box-shadow: none !important;
}

.ks-object-infra__map .leaflet-control-zoom a:hover,
.ks-object-infra__map .leaflet-control-zoom a:focus-visible {
  background: var(--color-white);
}

.ks-object-infra__map .leaflet-control-attribution,
.ks-object-infra__map [class*="copyrights"] {
  font-size: calc(10 * var(--s));
  color: rgba(42, 42, 42, 0.55);
  background: rgba(255, 255, 255, 0.75);
}

.ks-map-marker {
  background: transparent;
  border: 0;
}

.ks-map-marker__pin {
  display: block;
  width: calc(28 * var(--s));
  height: calc(28 * var(--s));
  background: #8a8a8a;
  border: calc(3 * var(--s)) solid var(--color-white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 calc(2 * var(--s)) calc(6 * var(--s)) rgba(0, 0, 0, 0.25);
}

.ks-object-infra__address {
  margin-top: calc(15 * var(--s));
  max-width: calc(773 * var(--s));
}

.ks-object-infra__address p {
  margin: 0;
  line-height: 1.7;
}

.ks-object-infra__address p:first-child {
  font-family: var(--font-sans);
  font-size: calc(20 * var(--s));
  font-weight: 600;
}

.ks-object-infra__address p:last-child {
  font-family: var(--font-sans);
  font-size: calc(16 * var(--s));
  font-weight: 500;
}

.ks-object-infra__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(20 * var(--s));
  margin-top: calc(28 * var(--s));
  padding-bottom: calc(28 * var(--s));
  border-bottom: 1px solid var(--color-line);
  max-width: calc(773 * var(--s));
}

.ks-object-infra__price-label {
  font-family: var(--font-sans);
  font-size: calc(32 * var(--s));
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.ks-object-infra__price-value {
  font-family: var(--font-sans);
  font-size: calc(24 * var(--s));
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-red);
  white-space: nowrap;
}

.ks-object-infra__actions {
  display: flex;
  gap: calc(13.279 * var(--s));
  margin-top: calc(30 * var(--s));
}

.ks-object-infra__btn {
  min-width: 0;
  height: calc(53.115 * var(--s));
  padding: 0 calc(53.115 * var(--s));
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: calc(21.25 * var(--s));
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
}

.ks-object-infra__btn--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.ks-object-nearby {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: calc(30 * var(--s)) calc(25 * var(--s));
}

.ks-object-nearby__label {
  margin: 0 0 calc(30 * var(--s));
  font-size: calc(16 * var(--s));
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-gray);
}

.ks-object-nearby__list {
  display: flex;
  flex-direction: column;
  gap: calc(17 * var(--s));
}

.ks-object-nearby__list li {
  display: grid;
  grid-template-columns: calc(73 * var(--s)) 1fr;
  gap: 0;
  padding-bottom: calc(17 * var(--s));
  border-bottom: 1px solid #d3d3d3;
}

.ks-object-nearby__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ks-object-nearby__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: calc(16 * var(--s));
  letter-spacing: -0.03em;
  color: var(--color-red);
  white-space: nowrap;
}

.ks-object-nearby__text {
  font-size: calc(16 * var(--s));
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-black);
}

/* —— About company —— */
.ks-about-hero {
  padding: calc(50 * var(--s)) var(--pad) 0;
}

.ks-about-hero__visual {
  position: relative;
}

.ks-about-hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(10 * var(--s));
  max-width: calc(516 * var(--s));
  margin: 0 auto calc(40 * var(--s));
}

.ks-about-hero__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(10 * var(--s));
}

.ks-about-hero__kicker--mobile,
.ks-about-hero__desc {
  display: none;
}

.ks-about-hero__kicker {
  margin: 0;
  font-size: calc(14 * var(--s));
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
}

.ks-about-hero__title {
  margin: 0;
  font-size: calc(50 * var(--s));
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-black);
}

.ks-about-hero__lead {
  margin: 0;
  max-width: calc(372 * var(--s));
  font-size: calc(16 * var(--s));
  color: var(--color-black);
}

.ks-about-hero__accent {
  margin: 0;
  max-width: calc(372 * var(--s));
  font-size: calc(18 * var(--s));
  font-weight: 600;
  color: var(--color-red);
}

.ks-about-hero__media {
  width: calc(1269 * var(--s));
  max-width: 100%;
  height: calc(846 * var(--s));
  margin: 0 auto;
  overflow: hidden;
}

.ks-about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-about-hero__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(18 * var(--s));
  margin-top: calc(-180 * var(--s));
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

.ks-about-card {
  background: var(--color-black);
  color: var(--color-white);
  height: calc(233 * var(--s));
  min-height: calc(233 * var(--s));
  padding: calc(35 * var(--s)) calc(30 * var(--s));
  box-sizing: border-box;
}

.ks-about-card--accent {
  background: var(--color-red);
}

.ks-about-card h2 {
  margin: 0 0 calc(48 * var(--s));
  font-size: calc(20 * var(--s));
  font-weight: 500;
  line-height: 1.3;
}

.ks-about-card p {
  margin: 0;
  font-size: calc(15 * var(--s));
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.ks-about-gallery {
  padding: calc(55 * var(--s)) var(--pad) calc(40 * var(--s));
}

.ks-about-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(40 * var(--s)) calc(27 * var(--s));
}

.ks-about-gallery__item {
  margin: 0;
  overflow: hidden;
}

.ks-about-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-about-gallery__item--wide {
  grid-column: 1 / -1;
  height: calc(713 * var(--s));
}

.ks-about-gallery__item--half {
  grid-column: span 2;
  height: calc(350 * var(--s));
}

.ks-about-gallery__item--tall {
  height: calc(505 * var(--s));
}

.ks-about-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr calc(320 * var(--s));
  gap: calc(40 * var(--s));
  align-items: center;
  margin-top: calc(40 * var(--s));
  min-height: calc(268 * var(--s));
  padding: calc(40 * var(--s)) calc(60 * var(--s));
  background: var(--color-red);
  color: var(--color-white);
  overflow: hidden;
}

.ks-about-cta__print {
  position: absolute;
  left: calc(-80 * var(--s));
  bottom: calc(-180 * var(--s));
  width: calc(818 * var(--s));
  height: auto;
  opacity: 0.35;
  pointer-events: none;
}

.ks-about-cta__copy,
.ks-about-cta__actions {
  position: relative;
  z-index: 1;
}

.ks-about-cta__title {
  margin: 0 0 calc(10 * var(--s));
  font-size: calc(36 * var(--s));
  font-weight: 700;
  line-height: 1.2;
}

.ks-about-cta__title--mobile {
  display: none;
}

.ks-about-cta__text {
  margin: 0 0 calc(40 * var(--s));
  max-width: calc(720 * var(--s));
  font-size: calc(17 * var(--s));
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.ks-about-cta__status {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--s));
  font-size: calc(14 * var(--s));
  color: #d0d0d0;
}

.ks-about-cta__dot {
  display: inline-flex;
  width: calc(10 * var(--s));
  height: calc(10 * var(--s));
  flex-shrink: 0;
}

.ks-about-cta__dot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ks-about-cta__actions {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--s));
}

.ks-about-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(58 * var(--s));
  font-size: calc(16 * var(--s));
  text-align: center;
}

.ks-about-cta__btn--light {
  background: var(--color-white);
  border: 1.5px solid var(--color-white);
  color: var(--color-black);
  font-weight: 400;
}

.ks-about-cta__btn--outline {
  background: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white);
  font-weight: 600;
  box-sizing: border-box;
}

/* —— Mortgage page calculator —— */
.ks-mcalc {
  padding: calc(50 * var(--s)) calc(60 * var(--s)) calc(60 * var(--s));
  background: var(--color-white);
}

.ks-mcalc__head {
  margin-bottom: calc(40 * var(--s));
}

.ks-mcalc__title {
  margin: 0 0 calc(8 * var(--s));
  font-size: calc(34 * var(--s));
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

.ks-mcalc__lead {
  margin: 0;
  font-size: calc(16 * var(--s));
  line-height: 1.4;
  color: #6b7375;
}

.ks-mcalc__layout {
  display: grid;
  grid-template-columns: 1fr calc(500 * var(--s));
  gap: calc(40 * var(--s));
  align-items: start;
}

.ks-mcalc__controls {
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--s));
}

.ks-mcalc__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(24 * var(--s));
}

.ks-mcalc__field {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--s));
}

.ks-mcalc__label {
  font-size: calc(13 * var(--s));
  font-weight: 500;
  color: #6b7375;
}

.ks-mcalc__select-wrap {
  position: relative;
}

.ks-mcalc__select-wrap::after {
  content: "▾";
  position: absolute;
  right: calc(18 * var(--s));
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-red);
  font-size: calc(22 * var(--s));
  line-height: 1;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.ks-mcalc__select-wrap:focus-within::after,
.ks-mcalc__select-wrap.is-open::after,
.ks-mcalc__select-wrap:has(.ks-mcalc__select:open)::after {
  transform: translateY(-50%) rotate(180deg);
}

.ks-mcalc__select,
.ks-mcalc__input {
  width: 100%;
  height: calc(58 * var(--s));
  padding: 0 calc(20 * var(--s));
  border: 1px solid #dad5c6;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: calc(16 * var(--s));
  font-weight: 600;
  appearance: none;
  border-radius: 0;
}

.ks-mcalc__input {
  font-size: calc(22 * var(--s));
}

.ks-mcalc__select:focus,
.ks-mcalc__input:focus {
  outline: 1px solid var(--color-red);
  outline-offset: 1px;
}

.ks-mcalc__range:focus,
.ks-mcalc__range:focus-visible {
  outline: none;
}

.ks-mcalc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: calc(14 * var(--s));
  margin: calc(4 * var(--s)) 0 0;
  background: transparent;
  cursor: pointer;
}

.ks-mcalc__range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(
    to right,
    var(--color-red) 0%,
    var(--color-red) var(--mcalc-progress, 0%),
    #dad5c6 var(--mcalc-progress, 0%),
    #dad5c6 100%
  );
}

.ks-mcalc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 14px;
  margin-top: -5px;
  background: var(--color-red);
  border: 0;
  border-radius: 0;
}

.ks-mcalc__range::-moz-range-track {
  height: 4px;
  background: #dad5c6;
}

.ks-mcalc__range::-moz-range-progress {
  height: 4px;
  background: var(--color-red);
}

.ks-mcalc__range::-moz-range-thumb {
  width: 12px;
  height: 14px;
  background: var(--color-red);
  border: 0;
  border-radius: 0;
}

.ks-mcalc__minmax {
  display: flex;
  justify-content: space-between;
  font-size: calc(12 * var(--s));
  color: #6b7375;
}

.ks-mcalc__minmax--triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.ks-mcalc__minmax-mid {
  text-align: center;
}

.ks-mcalc__minmax--triple span:last-child {
  text-align: right;
}

.ks-mcalc__result {
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--s));
  min-height: calc(486 * var(--s));
  padding: calc(44 * var(--s)) calc(36 * var(--s));
  background: var(--color-red);
  color: var(--color-white);
}

.ks-mcalc__result-row {
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--s));
}

.ks-mcalc__result-value {
  margin: 0;
  font-size: calc(24 * var(--s));
  font-weight: 600;
  line-height: 1.2;
}

.ks-mcalc__result-value--lg {
  font-size: calc(30 * var(--s));
  font-weight: 700;
}

.ks-mcalc__result-label {
  margin: 0;
  font-size: calc(13 * var(--s));
  line-height: 1.3;
  color: #e9e9e9;
}

.ks-mcalc__divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
}

button.ks-mcalc__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  height: calc(60 * var(--s));
  padding: 0;
  background: #ffffff;
  color: #2a2a2a;
  font-family: var(--font-sans);
  font-size: calc(16 * var(--s));
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

/* —— Portfolio page —— */
.ks-portfolio {
  padding: calc(100 * var(--s)) var(--pad) calc(33 * var(--s));
}

.ks-portfolio__title {
  margin: 0 0 calc(30 * var(--s));
  font-family: var(--font-sans);
  font-size: calc(32 * var(--s));
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-black);
}

.ks-portfolio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(30 * var(--s)) calc(25 * var(--s));
}

.ks-portfolio__item {
  position: relative;
  width: 100%;
}

.ks-portfolio__gallery-trigger {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.ks-portfolio__gallery-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* —— Escrow page —— */
.ks-escrow-hero {
  display: grid;
  grid-template-columns: calc(600 * var(--s)) 1fr;
  gap: calc(24 * var(--s));
  padding: calc(48 * var(--s)) var(--pad) calc(40 * var(--s));
  align-items: stretch;
}

.ks-escrow-hero__panel {
  position: relative;
  min-height: calc(470 * var(--s));
  overflow: hidden;
}

.ks-escrow-hero__panel--accent {
  background: var(--color-red);
  color: var(--color-white);
  padding: calc(38 * var(--s)) calc(40 * var(--s)) calc(40 * var(--s));
  display: flex;
  flex-direction: column;
}

.ks-escrow-hero__print {
  position: absolute;
  left: calc(50% - 39 * var(--s));
  top: calc(50% - 12 * var(--s));
  width: calc(818 * var(--s));
  height: calc(616 * var(--s));
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
}

.ks-escrow-hero__label,
.ks-escrow-hero__title {
  position: relative;
  z-index: 1;
}

.ks-escrow-hero__label {
  margin: 0 0 calc(30 * var(--s));
  font-family: var(--font-mono);
  font-size: calc(16 * var(--s));
  font-weight: 600;
  text-transform: uppercase;
  color: #eaeaea;
}

.ks-escrow-hero__title {
  margin: 0;
  max-width: calc(320 * var(--s));
  font-size: calc(36 * var(--s));
  font-weight: 600;
  line-height: 1.2;
}

.ks-escrow-hero__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--s));
  margin-top: auto;
  width: calc(300 * var(--s));
  height: calc(54 * var(--s));
  padding: 0;
  background: #ffffff;
  color: #2a2a2a;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: calc(18 * var(--s));
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

button.ks-escrow-hero__cta {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: calc(18 * var(--s));
  color: #2a2a2a;
  background: #ffffff;
}

.ks-escrow-hero__cta .ks-arrow {
  width: calc(12 * var(--s));
  height: calc(11 * var(--s));
  color: currentColor;
}

.ks-escrow-hero__cta--mobile {
  display: none;
}

.ks-escrow-hero__panel--light {
  background: #f5f5f5;
  padding: calc(48 * var(--s)) calc(44 * var(--s));
}

.ks-escrow-hero__side-title {
  margin: 0 0 calc(35 * var(--s));
  font-size: calc(24 * var(--s));
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-black);
}

.ks-escrow-hero__text {
  margin: 0;
  max-width: calc(628 * var(--s));
  font-size: calc(16 * var(--s));
  line-height: 1.6;
  color: rgba(42, 42, 42, 0.66);
}

.ks-escrow-steps {
  padding: calc(54 * var(--s)) var(--pad) calc(60 * var(--s));
}

.ks-escrow-steps__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(40 * var(--s));
  margin-bottom: calc(90 * var(--s));
}

.ks-escrow-steps__title {
  margin: 0;
  font-size: calc(40 * var(--s));
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

.ks-escrow-steps__lead {
  margin: 0;
  max-width: calc(470 * var(--s));
  font-size: calc(17 * var(--s));
  line-height: 1.5;
  text-align: right;
  color: rgba(42, 42, 42, 0.68);
}

.ks-escrow-steps__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: calc(20 * var(--s));
  position: relative;
}

.ks-escrow-steps__list::before {
  content: "";
  position: absolute;
  left: calc(30 * var(--s));
  right: calc(30 * var(--s));
  top: calc(29 * var(--s));
  height: 2px;
  background: rgba(42, 42, 42, 0.14);
}

.ks-escrow-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ks-escrow-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(59 * var(--s));
  height: calc(59 * var(--s));
  margin-bottom: calc(27 * var(--s));
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: calc(24 * var(--s));
  font-weight: 600;
}

.ks-escrow-steps__body h3 {
  margin: 0 0 calc(8 * var(--s));
  font-size: calc(20 * var(--s));
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-black);
}

.ks-escrow-steps__body p {
  margin: 0;
  max-width: calc(258 * var(--s));
  font-size: calc(16 * var(--s));
  line-height: 1.45;
  color: rgba(42, 42, 42, 0.68);
}

.ks-mortgage__link:hover,
.ks-mortgage__link:focus-visible {
  color: var(--color-red);
}

/* Header catalog dropdown */
.ks-header__dropdown {
  position: relative;
  align-self: stretch;
}

/* Hover bridge: from mid of item down to submenu */
.ks-header__dropdown::after {
  content: '';
  position: absolute;
  left: calc(-15 * var(--s));
  right: 0;
  top: 50%;
  height: calc(0.5em + 14 * var(--s) + 8 * var(--s));
}

.ks-header__dropdown:hover .ks-chevron,
.ks-header__dropdown:focus-within .ks-chevron,
.ks-header__dropdown.is-open .ks-chevron {
  transform: rotate(180deg);
}

.ks-header__submenu {
  position: absolute;
  /* Under menu label + 14px; left shift by padding so texts align */
  top: calc(50% + 0.5em + 14 * var(--s));
  left: calc(-15 * var(--s));
  margin: 0;
  min-width: max-content;
  padding: calc(17 * var(--s)) calc(15 * var(--s));
  background: var(--color-white);
  border: 0;
  box-shadow: 0 calc(8 * var(--s)) calc(24 * var(--s)) rgba(0, 0, 0, 0.5);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--s));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(4 * var(--s)));
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
}

.ks-header__submenu--payment {
  padding-right: calc(20 * var(--s));
}

.ks-header__dropdown:hover .ks-header__submenu,
.ks-header__dropdown:focus-within .ks-header__submenu,
.ks-header__dropdown.is-open .ks-header__submenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ks-header__submenu a {
  display: block;
  padding: 0;
  font-size: calc(14 * var(--s));
  line-height: 1;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.ks-header__submenu a:hover,
.ks-header__submenu a:focus-visible {
  color: var(--color-red);
  background: transparent;
}

/* —— Interactive hover / focus —— */
a,
button,
.ks-btn,
.ks-header__burger,
.ks-reviews__btn,
.ks-object-specs__toggle,
.ks-object-gallery__btn,
.ks-mcalc__select,
.ks-mcalc__input,
.ks-mcalc__range {
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ks-header__logo,
.ks-footer__logo {
  transition: opacity 0.2s ease;
}

.ks-header__logo:hover,
.ks-header__logo:focus-visible,
.ks-footer__logo:hover,
.ks-footer__logo:focus-visible {
  opacity: 0.75;
}

.ks-header__menu > li > a:hover,
.ks-header__menu > li > a:focus-visible,
.ks-header__dropdown:hover > a {
  color: var(--color-red);
}

.ks-header__burger:hover,
.ks-header__burger:focus-visible {
  opacity: 0.65;
}

.ks-hero-card {
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ks-hero-card--light:hover,
.ks-hero-card--light:focus-visible {
  background: #f5f5f5;
}

.ks-hero-card--dark:hover,
.ks-hero-card--dark:focus-visible {
  background: #3f0401;
}

.ks-hero-card__link {
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.ks-hero-card:hover .ks-hero-card__link,
.ks-hero-card:focus-visible .ks-hero-card__link {
  gap: calc(10 * var(--s));
}

.ks-project-card,
.ks-ready__item,
.ks-catalog__item {
  transition: opacity 0.2s ease;
}

.ks-project-card img,
.ks-ready__item img,
.ks-catalog__item img {
  transition: transform 0.35s ease;
}

.ks-project-card:hover,
.ks-project-card:focus-visible,
.ks-ready__item:hover,
.ks-ready__item:focus-visible,
.ks-catalog__item:hover,
.ks-catalog__item:focus-visible {
  opacity: 1;
}

.ks-project-card.ks-feature-banner:hover,
.ks-project-card.ks-feature-banner:focus-visible,
.ks-ready__item.ks-feature-banner:hover,
.ks-ready__item.ks-feature-banner:focus-visible,
.ks-portfolio__item.ks-feature-banner:hover,
.ks-portfolio__item.ks-feature-banner:focus-within,
.ks-portfolio__gallery-trigger:hover,
.ks-portfolio__gallery-trigger:focus-visible,
.ks-catalog__item.ks-feature-banner:hover,
.ks-catalog__item.ks-feature-banner:focus-visible {
  opacity: 1;
}

.ks-project-card.ks-feature-banner:hover img,
.ks-project-card.ks-feature-banner:focus-visible img,
.ks-ready__item.ks-feature-banner:hover img,
.ks-ready__item.ks-feature-banner:focus-visible img,
.ks-portfolio__gallery-trigger:hover img,
.ks-portfolio__gallery-trigger:focus-visible img,
.ks-catalog__item.ks-feature-banner:hover img,
.ks-catalog__item.ks-feature-banner:focus-visible img {
  transform: none;
}

.ks-project-card:hover img,
.ks-project-card:focus-visible img,
.ks-ready__item:hover img,
.ks-ready__item:focus-visible img,
.ks-catalog__item:hover img,
.ks-catalog__item:focus-visible img {
  transform: scale(1.03);
}

.ks-reviews__btn:hover,
.ks-reviews__btn:focus-visible {
  opacity: 0.7;
}

.ks-footer__legal-links a:hover,
.ks-footer__legal-links a:focus-visible,
.ks-footer__legal-mobile a:hover,
.ks-footer__legal-mobile a:focus-visible,
.ks-footer__menu a:hover,
.ks-footer__menu a:focus-visible {
  color: var(--color-red);
}

.ks-footer__phone:hover,
.ks-footer__phone:focus-visible,
.ks-footer__email:hover,
.ks-footer__email:focus-visible {
  color: var(--color-red);
}

.ks-footer__socials a:hover,
.ks-footer__socials a:focus-visible {
  opacity: 0.75;
}

.ks-object-hero__crumbs a:hover,
.ks-object-hero__crumbs a:focus-visible {
  opacity: 0.85;
}

.ks-object-hero__cta {
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.ks-object-hero__cta:hover,
.ks-object-hero__cta:focus-visible {
  opacity: 0.9;
  background: #3f0401;
}

.ks-object-rooms__link:hover,
.ks-object-rooms__link:focus-visible {
  opacity: 0.75;
}

.ks-object-gallery__btn {
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.ks-object-gallery__btn:hover,
.ks-object-gallery__btn:focus-visible {
  opacity: 0.8;
}

.ks-about-cta__btn {
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ks-about-cta__btn--light:hover,
.ks-about-cta__btn--light:focus-visible {
  background: #f3f3f3;
}

.ks-about-cta__btn--outline:hover,
.ks-about-cta__btn--outline:focus-visible {
  background: var(--color-white);
  color: var(--color-red);
}

.ks-mcalc__select:hover,
.ks-mcalc__input:hover {
  border-color: var(--color-red);
}

button.ks-mcalc__cta:hover,
button.ks-mcalc__cta:focus-visible {
  opacity: 0.92;
  background: #f3f3f3;
}

.ks-escrow-hero__cta {
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ks-escrow-hero__cta:hover,
.ks-escrow-hero__cta:focus-visible {
  opacity: 1;
  background: #f3f3f3;
}


.ks-mortgage__q:hover,
.ks-mortgage__q:focus-visible {
  opacity: 0.8;
}

.ks-object-infra__btn--dark:hover,
.ks-object-infra__btn--dark:focus-visible {
  opacity: 1;
  background: #1a1a1a;
}

/* =========================================================
   MOBILE ≤ 1199px  (макет 375)
   ========================================================= */
@media (max-width: 1199px) {
  :root {
    --s: 1px;
    --pad: 10px;
    --ks-banner-bottom: 25px;
    --ks-banner-side: 10px;
  }

  .ks-header {
    height: 70px;
  }

  .ks-header__nav,
  .ks-header__cta {
    display: none;
  }

  .ks-header__burger {
    display: flex;
  }

  .ks-header__logo {
    width: 165px;
    height: 30px;
  }

  .ks-mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    overflow: auto;
    background: #212121;
    color: var(--color-white);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.55s;
  }

  .ks-mobile-menu.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .ks-mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 2;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
  }

  .ks-mobile-menu__close svg {
    display: block;
    width: 14px;
    height: 14px;
  }

  .ks-mobile-menu__inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
    min-height: 100%;
    padding: 20px 10px 40px;
  }

  .ks-mobile-menu__top {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    max-width: 355px;
  }

  .ks-mobile-menu__logo {
    display: block;
    width: 165px;
    height: 30px;
    flex-shrink: 0;
  }

  .ks-mobile-menu__logo-svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .ks-mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
  }

  .ks-mobile-menu__list > li > a,
  .ks-mobile-menu__row > a {
    display: inline-block;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-white);
  }

  .ks-mobile-menu__row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .ks-mobile-menu__chevron {
    width: 10px;
    height: 8px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ks-mobile-menu__chevron path {
    fill: var(--color-white);
  }

  .ks-mobile-menu__list > li.has-submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .ks-mobile-menu__list > li.has-submenu.is-open .ks-mobile-menu__chevron {
    transform: rotate(180deg);
  }

  .ks-mobile-menu__submenu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease,
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.45s;
  }

  .ks-mobile-menu__list > li.has-submenu.is-open > .ks-mobile-menu__submenu {
    max-height: 160px;
    padding-top: 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .ks-mobile-menu__submenu a {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-white);
  }

  .ks-mobile-menu__divider {
    width: 100%;
    max-width: 355px;
    height: 1px;
    margin: 0;
    border: 0;
    background: #97a3a3;
    opacity: 0.45;
  }

  .ks-mobile-menu__bottom {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
    max-width: 355px;
    margin-top: auto;
  }

  .ks-mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .ks-mobile-menu__phone {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-white);
    white-space: nowrap;
  }

  .ks-mobile-menu__socials {
    display: flex;
    gap: 10px;
  }

  .ks-mobile-menu__socials a {
    display: block;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
  }

  .ks-mobile-menu__socials svg {
    display: block;
    width: 45px;
    height: 45px;
  }

  .ks-mobile-menu__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 0;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
  }

  .ks-mobile-menu__cta-arrow {
    width: 11px;
    height: 10px;
    flex-shrink: 0;
    color: var(--color-white);
  }

  .ks-mobile-menu__cta:hover,
  .ks-mobile-menu__cta:focus-visible {
    opacity: 0.88;
  }

  .ks-mobile-menu__list a:hover,
  .ks-mobile-menu__list a:focus-visible,
  .ks-mobile-menu__phone:hover,
  .ks-mobile-menu__phone:focus-visible,
  .ks-mobile-menu__submenu a:hover,
  .ks-mobile-menu__submenu a:focus-visible {
    color: var(--color-white);
    opacity: 1;
  }

  .ks-mobile-menu__close:hover,
  .ks-mobile-menu__close:focus-visible {
    opacity: 0.75;
  }

  .ks-mobile-menu__socials a:hover,
  .ks-mobile-menu__socials a:focus-visible {
    opacity: 0.85;
  }

  .ks-btn {
    height: 45px;
    font-size: 15px;
    width: 100%;
  }

  .ks-btn--primary {
    height: 45px;
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }

  .ks-section-title {
    font-size: 24px;
    line-height: 1.15;
  }

  /* Hero mobile */
  .ks-hero {
    padding: 0;
  }

  .ks-hero__media {
    height: 850px;
    min-height: 850px;
    display: block;
  }

  .ks-hero__img {
    height: 100%;
    object-position: center bottom;
  }

  .ks-hero__overlay {
    background: rgba(0, 0, 0, 0.53);
    inset: 0;
    height: auto;
    bottom: 0;
  }

  .ks-hero__gradient {
    display: none;
  }

  .ks-hero__copy {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 377px;
    width: auto;
  }

  .ks-hero__title {
    font-size: 28px;
    line-height: 0.9;
    margin-bottom: 10px;
  }

  .ks-hero__text {
    display: block;
    font-size: 16px;
    line-height: 1.25;
    color: var(--color-white);
  }

  .ks-hero__text--mobile {
    display: none;
  }

  .ks-hero__actions {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 50px;
    width: auto;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
  }

  .ks-hero-card,
  .ks-hero-card--dark,
  .ks-hero-card--light {
    width: 100%;
    height: auto;
    padding: 25px 20px;
  }

  .ks-hero-card--light {
    order: 0;
    min-height: 0;
    border: 0;
  }

  .ks-hero-card--dark {
    order: 1;
    min-height: 118px;
    padding: 25px 20px;
    overflow: hidden;
  }

  .ks-hero-card--dark .ks-hero-card__decor {
    display: block;
    position: absolute;
    left: calc(50% - 53.5px);
    top: calc(50% + 88.58px);
    width: 676px;
    height: 437px;
    max-width: none;
    transform: translate(-50%, -50%) rotate(-8.17deg);
    pointer-events: none;
    z-index: 0;
    object-fit: fill;
  }

  .ks-hero-card__title {
    font-size: 20px;
    line-height: 1.2;
    max-width: none;
  }

  .ks-hero-card__note {
    font-size: 14px;
    color: var(--color-gray);
    margin-top: 10px;
    white-space: nowrap;
  }

  .ks-hero-card--dark .ks-hero-card__link,
  .ks-hero-card--light .ks-hero-card__link {
    position: static;
    margin-top: 25px;
    font-size: 16px;
    gap: 5px;
  }

  .ks-hero-card--dark .ks-hero-card__link svg,
  .ks-hero-card--light .ks-hero-card__link svg {
    width: 10px;
    height: 8px;
  }

  /* Services mobile */
  .ks-services {
    padding: 50px 10px;
  }

  .ks-services__head {
    grid-template-columns: 1fr;
    margin-bottom: 25px;
    gap: 25px;
  }

  .ks-services__titles {
    gap: 10px;
  }

  .ks-kicker__bar {
    display: none;
  }

  .ks-kicker__text {
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    color: var(--color-gray);
  }

  .ks-services__title {
    font-size: 24px;
    line-height: 1.15;
  }

  .ks-services__lead {
    display: none;
  }

  .ks-services__lead--mobile {
    display: block;
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    color: var(--color-gray);
  }

  .ks-services__grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
  }

  .ks-service-card {
    min-height: 0;
    padding: 25px 20px;
  }

  .ks-service-card--split {
    grid-template-columns: 1fr;
    padding: 0;
    border: 1.5px solid #e0ddd6;
  }

  .ks-service-card__photo {
    min-height: 225px;
    height: 225px;
  }

  .ks-service-card__body {
    padding: 25px 20px;
  }

  .ks-service-card__title,
  .ks-service-card__title--accent {
    font-size: 20px;
    max-width: none;
  }

  .ks-service-card__text {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .ks-service-card--dark .ks-service-card__text {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .ks-service-card .ks-btn {
    width: 100%;
    max-width: 315px;
    height: 48px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0;
  }

  .ks-cta-bar {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 25px 20px;
    gap: 25px;
  }

  .ks-cta-bar__title {
    font-size: 20px;
    line-height: 1.2;
  }

  .ks-cta-bar__desc {
    font-size: 14px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
  }

  .ks-cta-bar .ks-btn {
    width: 100%;
    height: 45px;
    font-size: 14px;
  }

  /* Trust mobile */
  .ks-trust {
    padding: 0;
  }

  .ks-trust__inner {
    height: 493px;
    min-height: 493px;
    padding: 0;
    display: block;
  }

  .ks-trust__bg {
    position: absolute;
    inset: 0;
    object-position: center;
  }

  .ks-trust__shade {
    background: rgba(0, 0, 0, 0.38);
  }

  .ks-trust__title {
    position: absolute;
    left: 10px;
    right: 30px;
    top: 50px;
    width: auto;
    font-size: 24px;
    line-height: 1.15;
    text-transform: uppercase;
    font-weight: 600;
  }

  .ks-trust__slider {
    position: absolute;
    left: 0;
    right: 0;
    top: 187px;
    bottom: 0;
    display: block;
  }

  .ks-trust__cards {
    position: absolute;
    left: 10px;
    right: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    padding-right: 10px;
    scrollbar-width: none;
    cursor: grab;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .ks-trust__cards::-webkit-scrollbar {
    display: none;
  }

  .ks-trust__cards.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }

  .ks-trust-card {
    position: static;
    left: auto;
    top: auto;
    flex: 0 0 320px;
    width: 320px;
    height: 180px;
    min-height: 0;
    background: var(--color-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    color: var(--color-black);
    padding: 20px;
    scroll-snap-align: start;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ks-trust-card--1,
  .ks-trust-card--2,
  .ks-trust-card--3,
  .ks-trust-card--4,
  .ks-trust-card--5 {
    left: auto;
    top: auto;
  }

  .ks-trust-card h3 {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 20px;
  }

  .ks-trust-card p {
    font-size: 16px;
    line-height: 1.25;
    color: var(--color-gray);
  }

  .ks-trust__nav {
    position: absolute;
    right: 10px;
    bottom: 51px;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    pointer-events: auto;
  }

  .ks-trust__btn {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    flex-shrink: 0;
    cursor: pointer;
  }

  .ks-trust__btn--next {
    background: var(--color-white);
  }

  .ks-trust__btn svg {
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  /* Projects mobile */
  .ks-projects {
    padding: 50px 10px 40px;
  }

  .ks-projects .ks-section-title {
    max-width: none;
    margin: 0 0 38px;
    font-size: 24px;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .ks-projects__grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 -10px;
  }

  .ks-project-card {
    height: 300px;
  }

  .ks-modal {
    padding: 10px;
    align-items: center;
  }

  .ks-modal__dialog {
    width: 100%;
    transform: translate3d(0, 56px, 0);
    opacity: 0;
  }

  .ks-modal.is-open .ks-modal__dialog {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    .ks-modal__dialog {
      transform: none;
    }
  }

  .ks-project-modal {
    max-height: min(85vh, 520px);
    aspect-ratio: auto;
    min-height: 360px;
  }

  .ks-project-modal__foot {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: var(--ks-banner-bottom) 20px;
  }

  .ks-project-modal__title {
    font-size: 24px;
  }

  .ks-project-modal__meta {
    font-size: 16px;
  }

  .ks-project-modal__foot-right {
    min-width: 0;
    width: 100%;
  }

  .ks-project-modal__price-value {
    font-size: 22px;
  }

  .ks-project-modal__link {
    font-size: 16px;
  }

  .ks-modal__close {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .ks-house-modal {
    max-height: min(85vh, 520px);
    aspect-ratio: auto;
    min-height: 360px;
  }

  .ks-house-modal__foot {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: var(--ks-banner-bottom) 20px;
  }

  .ks-house-modal__title {
    font-size: 24px;
  }

  .ks-house-modal__meta {
    font-size: 16px;
  }

  .ks-house-modal__foot-right {
    min-width: 0;
    width: 100%;
  }

  .ks-house-modal__price-label {
    font-size: 14px;
  }

  .ks-house-modal__price-value {
    font-size: 22px;
  }

  .ks-house-modal__link {
    font-size: 16px;
  }

  .ks-house-modal__link .ks-arrow {
    width: 10px;
    height: 8px;
  }

  .ks-modal[data-specs-modal] {
    align-items: center;
    padding: 10px;
  }

  .ks-modal__dialog--specs {
    width: 100%;
    max-height: calc(100dvh - 20px);
    height: calc(100dvh - 20px);
  }

  .ks-specs-modal {
    min-height: 0;
    max-height: 100%;
  }

  .ks-specs-modal__hero {
    height: 140px;
    flex-shrink: 0;
  }

  .ks-specs-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px 32px;
  }

  .ks-specs-modal__head {
    gap: 20px;
    margin-bottom: 30px;
  }

  .ks-specs-modal__kicker {
    font-size: 16px;
    letter-spacing: -0.48px;
  }

  .ks-specs-modal__title {
    font-size: 24px;
  }

  .ks-specs-modal__content {
    font-size: 16px;
    line-height: 1.625;
  }

  .ks-specs-modal__content ul,
  .ks-specs-modal__content ol {
    padding-left: 24px;
  }

  .ks-specs-modal__content ul {
    list-style-type: disc;
  }

  .ks-specs-modal__content ol {
    list-style-type: decimal;
  }

  .ks-specs-modal__content li {
    display: list-item;
    list-style-position: outside;
    line-height: 1.625;
  }

  .ks-specs-modal__close {
    top: 20px;
    right: 20px;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.85);
  }

  .ks-specs-modal__close:hover,
  .ks-specs-modal__close:focus-visible {
    color: var(--color-white);
  }

  .ks-request-modal:has([data-request-panel="mortgage"]:not([hidden])),
  .ks-request-modal:has([data-request-panel="question"]:not([hidden])) {
    max-height: none;
  }

  .ks-modal__dialog--form {
    width: 100%;
    background: var(--color-white);
  }

  .ks-request-modal,
  .ks-calc-modal {
    max-height: none;
    overflow: visible;
    background: var(--color-white);
  }

  .ks-request-modal__close {
    top: 20px;
    right: 20px;
    width: 14px;
    height: 14px;
  }

  .ks-request-form {
    padding: 40px 20px;
  }

  .ks-request-form__head {
    margin-bottom: 20px;
    padding-right: 24px;
    max-width: none;
  }

  .ks-request-form__title {
    font-size: 20px;
  }

  .ks-request-form__desc {
    font-size: 14px;
  }

  .ks-request-form__body {
    gap: 20px;
    margin-bottom: 20px;
    max-width: none;
  }

  .ks-request-form__row {
    flex-direction: column;
    gap: 16px;
  }

  .ks-request-form__row > .ks-request-form__field {
    width: 100%;
  }

  .ks-request-form__chip--yes,
  .ks-request-form__chip--searching {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    font-size: 14px;
  }

  .ks-request-form__input,
  .ks-request-form__select {
    height: 50px;
    font-size: 15px;
  }

  .ks-request-form__input::placeholder,
  .ks-request-form__field .iti__tel-input::placeholder {
    font-size: 16px;
  }

  .ks-request-form__field .iti__tel-input {
    height: 50px;
    font-size: 16px;
    line-height: 50px;
    padding-right: 12.5px;
  }

  .ks-request-form__field .iti__selected-country-primary {
    padding: 0 6px 0 12.5px;
  }

  .ks-request-form__field .iti .iti__selected-dial-code {
    font-size: 16px;
  }

  .ks-request-form__field .iti.is-filled .iti__selected-dial-code,
  .ks-request-form__field .iti:focus-within .iti__selected-dial-code {
    color: #2a2a2a;
  }

  .ks-request-form__footer {
    max-width: none;
  }

  .ks-request-form__consent-box {
    width: 20px;
    height: 20px;
  }

  .ks-request-form__consent-check {
    width: 13px;
    height: 10px;
  }

  .ks-request-form__submit {
    height: 56px;
    font-size: 16px;
  }

  .ks-calc-modal {
    max-height: none;
  }

  .ks-calc-form .ks-request-form__head {
    margin-bottom: 20px;
  }

  .ks-calc-form__body {
    gap: 20px;
  }

  .ks-calc-form__result-row {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .ks-calc-form__price-value {
    font-size: 24px;
  }

  /* Ready mobile */
  .ks-ready {
    padding: 50px 10px 40px;
  }

  .ks-ready .ks-section-title {
    margin: 0 0 38px;
    max-width: none;
    font-size: 24px;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .ks-ready__list {
    gap: 10px;
    margin: 0 -10px;
  }

  .ks-ready__item {
    height: 300px;
  }

  .ks-feature-banner__overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(211.49deg, rgba(0, 0, 0, 0) 49.51%, rgba(0, 0, 0, 0.8) 85.43%);
    pointer-events: none;
  }

  .ks-feature-banner__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 0 var(--ks-banner-side) var(--ks-banner-bottom);
    color: var(--color-white);
  }

  .ks-feature-banner__left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
  }

  .ks-feature-banner__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    line-height: 1.2;
  }

  .ks-feature-banner__right {
    display: none;
  }

  .ks-feature-banner__title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
  }

  .ks-feature-banner__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    line-height: 1;
  }

  .ks-feature-banner__link .ks-arrow {
    width: 10px;
    height: 8px;
    color: inherit;
  }

  /* Approach mobile — Figma 2370:5280 / 2364:3179 */
  .ks-approach {
    padding: 50px var(--pad);
    max-width: 100%;
    overflow-x: clip;
  }

  .ks-approach__top {
    margin-bottom: 40px;
    min-width: 0;
  }

  .ks-approach__body {
    grid-template-columns: 1fr;
    gap: 30px;
    min-width: 0;
  }

  .ks-approach__title {
    font-size: 23px;
    line-height: normal;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .ks-approach__title span {
    display: inline;
  }

  .ks-approach__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    max-width: 100%;
  }

  .ks-approach__list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-top: 0;
    padding-bottom: 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #e0ddd6;
    min-width: 0;
    max-width: 100%;
  }

  .ks-approach__list li:last-child {
    border-bottom: none;
  }

  .ks-approach__num {
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
  }

  .ks-approach__list p {
    font-size: 16px;
    line-height: normal;
    color: #97a3a3;
    max-width: none;
    min-width: 0;
  }

  .ks-stats {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .ks-stat {
    height: auto;
    min-height: 0;
    padding: 25px 20px;
    gap: 50px;
  }

  .ks-stat h3 {
    font-size: 16px;
  }

  .ks-stat:not(.ks-stat--accent) h3 br {
    display: none;
  }

  .ks-stat p {
    margin: 0;
    font-size: 14px;
    line-height: normal;
  }

  .ks-stat--accent {
    height: 184px;
    min-height: 184px;
    padding: 0;
  }

  .ks-stat--accent h3 {
    position: absolute;
    left: 15px;
    top: 20px;
    width: calc(100% - 30px);
  }

  .ks-stat__decor {
    left: calc(50% + 20px);
    top: calc(50% + 56px);
    width: 676px;
    height: 437px;
  }

  /* Mortgage mobile — Figma 2364:3363 */
  .ks-mortgage {
    padding: 40px 10px;
  }

  .ks-mortgage__head {
    flex-direction: column;
    align-items: stretch;
    gap: 21px;
    margin-bottom: 25px;
  }

  .ks-mortgage__note {
    margin: 0;
    width: 100%;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .ks-mortgage__note-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: normal;
    font-size: 14px;
    line-height: 1.2;
    color: var(--color-gray);
  }

  .ks-mortgage__q {
    width: 29px;
    height: 29px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
  }

  .ks-mortgage__head .ks-section-title {
    max-width: none;
    font-size: 24px;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .ks-mortgage__cards {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
  }

  .ks-mortgage-card {
    min-height: 0;
  }

  .ks-mortgage-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
  }

  .ks-mortgage-card p {
    margin-top: 0;
    font-size: 14px;
  }

  .ks-mortgage__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 50px;
  }

  .ks-mortgage__banks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 11px;
    row-gap: 21px;
    width: 100%;
    flex: none;
    align-items: center;
    justify-content: initial;
  }

  .ks-mortgage__bank {
    display: block;
    width: 100%;
    height: 53px;
    max-width: none;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
  }

  .ks-mortgage__foot .ks-btn {
    width: 100%;
    height: 45px;
  }

  .page-template-page-single-house-php .ks-mortgage__banks,
  .page-template-page-single-project-php .ks-mortgage__banks {
    display: none;
  }

  .page-template-page-single-house-php .ks-mortgage__foot,
  .page-template-page-single-project-php .ks-mortgage__foot {
    gap: 0;
  }

  /* Reviews mobile */
  .ks-reviews {
    padding: 50px 20px;
  }

  .ks-reviews__head {
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
  }

  .ks-reviews__head .ks-section-title {
    max-width: none;
    font-size: 24px;
    line-height: 26px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .ks-reviews__nav--desktop {
    display: none;
  }

  .ks-reviews__nav--foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
  }

  .ks-reviews__btn {
    width: 45px;
    height: 45px;
  }

  .ks-reviews__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
  }

  .ks-review {
    flex: 0 0 335px;
    height: 470px;
    scroll-snap-align: start;
  }

  /* Warranty mobile */
  .ks-warranty {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 10px;
  }

  .ks-warranty__actions {
    flex-direction: column;
    margin-top: 25px;
    gap: 10px;
  }

  .ks-warranty__actions .ks-btn--primary,
  .ks-warranty__actions .ks-btn--outline {
    width: 100%;
  }

  .ks-warranty__left {
    order: 0;
  }

  .ks-warranty__table {
    order: 1;
  }

  .ks-warranty__row {
    padding: 15px 0;
    font-size: 14px;
  }

  .ks-warranty__row strong {
    white-space: normal;
    max-width: 40%;
  }

  /* Footer mobile — Figma 2370:5412 */
  .ks-footer {
    padding: 40px 20px;
    overflow-x: clip;
  }

  .ks-footer__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    column-gap: 0;
    row-gap: 0;
    max-width: 100%;
  }

  .ks-footer__col--brand,
  .ks-footer__col--contacts,
  .ks-footer__col--nav {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .ks-footer__col--contacts,
  .ks-footer__col--nav {
    display: contents;
  }

  .ks-footer__col--brand {
    order: 1;
  }

  .ks-footer__logo {
    width: 165px;
    height: 30px;
    margin-bottom: 0;
  }

  .ks-footer__company,
  .ks-footer__requisites,
  .ks-footer__bottom--desktop,
  .ks-footer__address--desktop,
  .ks-footer__phone--secondary,
  .ks-footer__copy {
    display: none;
  }

  .ks-footer__contact-block {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
    margin-top: 50px;
  }

  .ks-footer__phone,
  .ks-footer__email {
    margin-bottom: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 22px;
    text-transform: none;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ks-footer__email {
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    text-transform: none;
  }

  .ks-footer__icon {
    display: none;
  }

  .ks-footer__address--mobile {
    order: 6;
    display: block;
    max-width: 100%;
    width: 100%;
    margin: 50px 0 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 18px;
    color: #666666;
  }

  .ks-footer__address--mobile .ks-footer__address-label {
    margin: 0;
    line-height: 18px;
    color: #333333;
    font-weight: 500;
  }

  .ks-footer__address--mobile p {
    margin: 10px 0 0 0;
    line-height: 18px;
  }

  .ks-footer__cta {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 45px;
    margin: 20px 0 0;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0;
  }

  .ks-footer__cta-arrow {
    display: inline-flex;
    align-items: center;
  }

  .ks-footer__cta-arrow .ks-arrow {
    width: 10px;
    height: 8px;
    color: currentColor;
  }

  .ks-footer__menu {
    order: 5;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 12px;
    row-gap: 15px;
    width: 100%;
    max-width: 100%;
    margin: 50px 0 0;
    font-size: 15px;
    box-sizing: border-box;
  }

  .ks-footer__menu > li {
    min-width: 0;
  }

  .ks-footer__menu > li.has-chevron {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 5px;
    row-gap: 0;
    width: 100%;
    max-width: 100%;
  }

  .ks-footer__menu > li.has-chevron > a {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: calc(100% - 14px);
  }

  .ks-footer__menu > li.has-chevron > .ks-chevron {
    flex: 0 0 auto;
    width: 9px;
    height: 11px;
    margin: 0;
    position: static;
    left: auto;
    top: auto;
  }

  .ks-footer__menu > li.has-chevron > .ks-header__submenu {
    flex: 1 0 100%;
    width: 100%;
  }

  .ks-footer__menu > li > a {
    min-width: 0;
  }

  /* Mobile footer accordion — only .is-open */
  .ks-footer__menu .ks-header__dropdown::after {
    content: none;
    display: none;
  }

  .ks-footer__menu .ks-header__submenu {
    position: static;
    display: block !important;
    max-height: 0;
    overflow: hidden;
    flex-direction: unset;
    gap: 0;
    padding: 0;
    min-width: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    transition:
      max-height 0.28s ease,
      opacity 0.22s ease,
      padding 0.28s ease,
      visibility 0.28s ease;
  }

  .ks-footer__menu .ks-header__dropdown:hover > .ks-header__submenu,
  .ks-footer__menu .ks-header__dropdown:focus-within > .ks-header__submenu {
    max-height: 0;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .ks-footer__menu .ks-header__dropdown.is-open > .ks-header__submenu {
    max-height: 160px;
    padding: 4px 0 2px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .ks-footer__menu .ks-header__dropdown:hover > .ks-chevron,
  .ks-footer__menu .ks-header__dropdown:focus-within > .ks-chevron {
    transform: none !important;
  }

  .ks-footer__menu .ks-header__dropdown.is-open > .ks-chevron {
    transform: rotate(180deg) !important;
  }

  .ks-footer__menu .ks-header__submenu a {
    padding: 6px 0;
    font-size: 15px;
  }

  .ks-footer__socials {
    order: 4;
    display: flex;
    gap: 10px;
    margin: 20px 0 0;
    width: 100%;
  }

  .ks-footer__socials a {
    position: relative;
    width: 45px;
    height: 45px;
  }

  .ks-footer__socials a > svg {
    position: absolute;
    top: 0;
    left: -4px;
    width: 53px;
    height: 53px;
    max-width: none;
  }

  .ks-footer__legal-mobile {
    order: 7;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    margin-top: 50px;
    font-size: 14px;
    line-height: 16px;
    color: #666666;
  }

  .ks-footer__legal-mobile-copy {
    margin: 0;
    line-height: 18px;
  }

  .ks-footer__legal-mobile-req {
    margin: 0;
    line-height: 16px;
  }

  .ks-footer__legal-mobile a {
    color: #666666;
    text-decoration: none;
  }

  /* Catalog mobile */
  .ks-catalog--houses,
  .ks-catalog--projects {
    padding: 20px 0 40px;
  }

  .ks-catalog__title {
    margin: 0 20px 20px;
    font-size: 20px;
    line-height: 1.2;
    max-width: none;
  }

  .ks-catalog--projects .ks-catalog__title {
    margin: 5px 20px 20px;
    max-width: none;
  }

  .ks-catalog__list {
    gap: 15px;
  }

  .ks-catalog__item--wide {
    height: 300px;
  }

  .ks-catalog__grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ks-catalog__item--card {
    height: 300px;
  }

  /* Escrow mobile — Figma 2226:2219 */
  .ks-escrow-hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 10px 50px;
  }

  .ks-escrow-hero__panel {
    min-height: 0;
    width: 100%;
  }

  .ks-escrow-hero__panel--accent {
    min-height: 150px;
    height: 150px;
    padding: 25px 20px;
    justify-content: flex-start;
    gap: 50px;
  }

  .ks-escrow-hero__print {
    left: calc(50% + 67.5px);
    top: calc(50% + 77px);
    width: 818px;
    height: 616px;
    opacity: 1;
  }

  .ks-escrow-hero__label {
    margin: 0;
    height: 21px;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    color: #eaeaea;
  }

  .ks-escrow-hero__title {
    margin: 0;
    max-width: none;
    font-size: 24px;
    font-weight: 600;
    line-height: normal;
  }

  .ks-escrow-hero__cta--desktop {
    display: none;
  }

  .ks-escrow-hero__panel--light {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 25px 20px;
  }

  .ks-escrow-hero__side-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
  }

  .ks-escrow-hero__text {
    max-width: none;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(42, 42, 42, 0.66);
  }

  .ks-escrow-hero__cta--mobile,
  button.ks-escrow-hero__cta--mobile {
    display: inline-flex;
    width: 100%;
    height: 54px;
    margin-top: 20px;
    padding: 0;
    background: #97a3a3;
    border: 0;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .ks-escrow-hero__cta--mobile:hover,
  .ks-escrow-hero__cta--mobile:focus-visible,
  button.ks-escrow-hero__cta--mobile:hover,
  button.ks-escrow-hero__cta--mobile:focus-visible {
    background: #889494;
    color: #ffffff;
  }

  .ks-escrow-steps {
    padding: 40px 10px 50px;
  }

  .ks-escrow-steps__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
  }

  .ks-escrow-steps__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
  }

  .ks-escrow-steps__lead {
    max-width: none;
    text-align: left;
    font-size: 16px;
    line-height: normal;
    color: #666;
  }

  .ks-escrow-steps__list {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .ks-escrow-steps__list::before {
    left: 22px;
    right: auto;
    top: 0;
    bottom: 22px;
    width: 1px;
    height: auto;
  }

  .ks-escrow-steps__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    padding-bottom: 0;
  }

  .ks-escrow-steps__num {
    width: 45px;
    height: 45px;
    margin-bottom: 0;
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
  }

  .ks-escrow-steps__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
  }

  .ks-escrow-steps__body h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
  }

  .ks-escrow-steps__body p {
    margin: 0;
    max-width: none;
    font-size: 14px;
    line-height: normal;
    color: #666;
  }

  .ks-approach--stats-only {
    padding: 0 10px;
  }

  .ks-approach--stats-only .ks-approach__top {
    display: none;
  }

  /* About company mobile — Figma 2217:2219 */
  .ks-about-hero {
    padding: 0;
  }

  .ks-about-hero__visual {
    position: relative;
    height: 850px;
    overflow: hidden;
  }

  .ks-about-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .ks-about-hero__intro {
    position: absolute;
    left: 10px;
    top: 242px;
    z-index: 2;
    align-items: flex-start;
    text-align: left;
    max-width: none;
    width: 355px;
    max-width: calc(100% - 20px);
    margin: 0;
    gap: 20px;
  }

  .ks-about-hero__heading {
    align-items: flex-start;
    gap: 5px;
    color: #ffffff;
  }

  .ks-about-hero__kicker--desktop,
  .ks-about-hero__lead,
  .ks-about-hero__accent {
    display: none;
  }

  .ks-about-hero__kicker--mobile {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #ffffff;
  }

  .ks-about-hero__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: normal;
    text-transform: uppercase;
    color: #ffffff;
  }

  .ks-about-hero__desc {
    display: block;
    margin: 0;
    max-width: 335px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #ffffff;
  }

  .ks-about-hero__cards {
    position: absolute;
    left: 10px;
    top: 394px;
    width: 355px;
    max-width: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 10px;
    margin-top: 0;
    padding-bottom: 0;
    z-index: 2;
  }

  .ks-about-card {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 25px 20px;
    background: #ffffff;
    color: #2a2a2a;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ks-about-card--accent {
    background: #510601;
    color: #ffffff;
  }

  .ks-about-card h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 22px;
    color: inherit;
  }

  .ks-about-card p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #97a3a3;
  }

  .ks-about-card--accent p {
    color: #ffffff;
  }

  .ks-about-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 50px 10px;
  }

  .ks-about-gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
  }

  .ks-about-gallery__item--wide,
  .ks-about-gallery__item--half,
  .ks-about-gallery__item--wide-last {
    grid-column: 1 / -1;
    height: 180px;
  }

  .ks-about-gallery__item--tall {
    grid-column: auto;
    height: 260px;
  }

  .ks-about-gallery__item--wide:nth-child(1) {
    order: 1;
  }

  .ks-about-gallery__item--half:nth-child(2) {
    order: 2;
  }

  .ks-about-gallery__item--half:nth-child(3) {
    order: 3;
  }

  .ks-about-gallery__item--wide-last {
    order: 4;
  }

  .ks-about-gallery__item--tall:nth-child(4) {
    order: 5;
  }

  .ks-about-gallery__item--tall:nth-child(5) {
    order: 6;
  }

  .ks-about-gallery__item--tall:nth-child(6) {
    order: 7;
  }

  .ks-about-gallery__item--tall:nth-child(7) {
    order: 8;
  }

  .ks-about-cta {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 15px;
    align-items: stretch;
    margin-top: 0;
    min-height: 0;
    width: 100%;
    padding: 25px 20px;
  }

  .ks-about-cta__print {
    left: -182px;
    top: 0;
    bottom: auto;
    width: 466px;
    opacity: 1;
  }

  .ks-about-cta__copy {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .ks-about-cta__title--desktop,
  .ks-about-cta__text--desktop {
    display: none;
  }

  .ks-about-cta__title--mobile {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    margin: 0;
  }

  .ks-about-cta__status {
    margin: 0;
    gap: 10px;
    font-size: 12px;
    color: #d0d0d0;
  }

  .ks-about-cta__dot {
    width: 10px;
    height: 10px;
  }

  .ks-about-cta__actions {
    width: 100%;
    gap: 10px;
  }

  .ks-about-cta__btn {
    width: 100%;
    height: 45px;
    font-size: 14px;
  }

  .ks-about-cta__btn--light {
    font-weight: 400;
    border: 1.5px solid #ffffff;
  }

  .ks-about-cta__btn--outline {
    font-weight: 600;
    border: 1px solid #ffffff;
  }

  /* Mortgage calculator mobile — Figma 2219:2289 */
  .ks-mcalc {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 50px 10px;
    background: #f6f4f2;
  }

  .ks-mcalc__head {
    margin-bottom: 0;
  }

  .ks-mcalc__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    color: #2a2a2a;
  }

  .ks-mcalc__lead {
    display: none;
  }

  .ks-mcalc__layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 25px;
    align-items: stretch;
    width: 100%;
  }

  .ks-mcalc__controls {
    width: 100%;
    gap: 20px;
  }

  .ks-mcalc__selects {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ks-mcalc__field {
    gap: 5px;
  }

  .ks-mcalc__field--slider {
    gap: 10px;
  }

  .ks-mcalc__label {
    font-size: 16px;
    font-weight: 400;
    line-height: 15px;
    color: #666;
  }

  .ks-mcalc__select,
  .ks-mcalc__input {
    height: 49px;
    min-height: 49px;
    padding: 15px;
    border-width: 1.5px;
    border-color: #e0ddd6;
    font-size: 16px;
    font-weight: 500;
    box-sizing: border-box;
  }

  .ks-mcalc__input {
    font-size: 16px;
  }

  .ks-mcalc__select-wrap::after {
    right: 15px;
    font-size: 13px;
  }

  .ks-mcalc__range {
    height: 15px;
    margin: 0;
  }

  .ks-mcalc__range::-webkit-slider-thumb {
    width: 10px;
    height: 12px;
    margin-top: -4px;
  }

  .ks-mcalc__range::-moz-range-thumb {
    width: 10px;
    height: 12px;
  }

  .ks-mcalc__minmax {
    font-size: 16px;
    line-height: normal;
    color: #666;
  }

  .ks-mcalc__minmax-mid {
    display: none;
  }

  .ks-mcalc__minmax--triple {
    display: flex;
  }

  .ks-mcalc__result {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
    gap: 20px;
    padding: 20px;
  }

  .ks-mcalc__result-row {
    gap: 5px;
  }

  .ks-mcalc__result-value--lg {
    font-size: 26px;
    font-weight: 600;
    line-height: 32px;
  }

  .ks-mcalc__result-value {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
  }

  .ks-mcalc__result-label {
    font-size: 14px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.8);
  }

  .ks-mcalc__divider {
    background: rgba(255, 255, 255, 0.35);
  }

  button.ks-mcalc__cta {
    width: 100%;
    margin-top: 0;
    height: 45px;
    font-size: 14px;
    font-weight: 600;
    color: #2a2a2a;
  }

  /* Portfolio mobile */
  .ks-portfolio {
    padding: 40px 10px;
  }

  .ks-portfolio__title {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.2;
  }

  .ks-portfolio__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ks-about-cta__btn {
    height: 45px;
    font-size: 14px;
  }

  /* Single object mobile — плашки как на ПК, поверх фото */
  .ks-object-hero {
    padding: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .ks-object-hero__crumbs--mobile {
    display: flex;
    gap: 5px;
    padding: 15px 10px 12px;
    font-size: 11px;
    color: var(--color-gray);
    white-space: nowrap;
    overflow: hidden;
  }

  .ks-object-hero__crumbs--desktop {
    display: none;
  }

  .ks-object-hero__facts,
  .ks-object-hero__cta--mobile {
    display: none;
  }

  .ks-object-hero__media {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
  }

  .ks-object-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .ks-object-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .ks-object-hero__meta {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: auto;
    min-width: 168px;
    height: auto;
    padding: 14px 18px;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.25;
    color: var(--color-black);
    z-index: 2;
  }

  .ks-object-hero__title {
    left: 15px;
    right: 15px;
    top: auto;
    bottom: 96px;
    z-index: 2;
    font-size: 22px;
    line-height: 1.15;
    color: var(--color-white);
  }

  .ks-object-hero__cta-wrap {
    display: flex;
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    width: min(300px, 82%);
    height: auto;
    min-height: 80px;
    padding: 18px 16px;
    background: var(--color-white);
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    box-sizing: border-box;
  }

  .ks-object-hero__cta-wrap .ks-object-hero__cta {
    width: 100%;
    max-width: 100%;
    height: 44px;
    font-size: 13px;
    letter-spacing: -0.04em;
    padding: 0 12px;
    gap: 8px;
    white-space: nowrap;
  }

  .ks-object-about {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .page-template-page-single-house-php .ks-object-about {
    gap: 0;
    padding: 15px 10px 25px;
  }

  .ks-object-about__main {
    order: 1;
  }

  .ks-object-about__title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .ks-object-about__text {
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
  }

  .page-template-page-single-house-php .ks-object-about__text {
    margin: 0 0 15px;
  }

  .ks-object-specs {
    order: 2;
    margin-top: 0;
  }

  .page-template-page-single-house-php .ks-object-specs {
    margin: 0 0 20px;
  }

  .ks-object-rooms {
    order: 3;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 15px;
  }

  .ks-object-rooms__label {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .ks-object-rooms__list {
    gap: 12px;
    margin-bottom: 12px;
  }

  .ks-object-rooms__list li {
    font-size: 14px;
    padding-bottom: 12px;
  }

  .ks-object-rooms__link {
    font-size: 14px;
  }

  .ks-object-specs__toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
  }

  .ks-object-specs__icon {
    width: 34px;
    height: 25px;
  }

  .ks-object-specs__panel {
    max-width: none;
  }

  .ks-object-specs__list li {
    font-size: 14px;
  }

  .page-template-page-single-house-php .ks-object-gallery {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ks-object-gallery {
    padding: 40px 20px;
  }

  .ks-object-gallery__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }

  .ks-object-gallery__counter {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  .ks-object-gallery__nav {
    display: flex;
    gap: 10px;
  }

  .ks-object-gallery__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 45px;
    border: 1.5px solid #e0ddd6;
    background: var(--color-white);
    color: var(--color-black);
    font-size: 14px;
    font-weight: 500;
  }

  .ks-object-gallery__btn .ks-arrow {
    width: 12px;
    height: 11px;
    color: currentColor;
  }

  .ks-object-gallery__btn--accent {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
  }

  .ks-object-gallery__viewport {
    width: 100%;
    overflow: hidden;
    height: 220px;
    transition: height 0.3s ease;
  }

  .ks-object-gallery__track {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .ks-object-gallery__item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 220px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    background: #f4f2ee;
  }

  .ks-object-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .ks-object-gallery__progress {
    display: flex;
    gap: 5px;
    margin-top: 15px;
  }

  .ks-object-gallery__progress span {
    flex: 1;
    height: 4px;
    background: #e0ddd6;
  }

  .ks-object-gallery__progress span.is-active {
    background: var(--color-red);
  }

  .page-template-page-single-house-php .ks-object-infra {
    padding: 40px 0;
  }

  .ks-object-infra {
    padding: 40px 20px;
  }

  .ks-object-infra__title {
    margin-bottom: 25px;
    max-width: none;
    font-size: 16px;
  }

  .page-template-page-single-house-php .ks-object-infra__title {
    padding: 0 10px;
  }

  .ks-object-infra__layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .page-template-page-single-house-php .ks-object-infra__layout {
    gap: 0;
  }

  .page-template-page-single-house-php .ks-object-infra__main {
    display: contents;
  }

  .page-template-page-single-house-php .ks-object-infra__map {
    order: 1;
    margin-bottom: 15px;
  }

  .page-template-page-single-house-php .ks-object-infra__address {
    order: 2;
    padding: 0 10px;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .page-template-page-single-house-php .ks-object-nearby {
    order: 3;
    width: auto;
    margin: 0 10px 20px;
    padding: 25px 15px 30px;
    border: 1px solid #d3d3d3;
    box-sizing: border-box;
  }

  .page-template-page-single-house-php .ks-object-infra__price {
    order: 4;
    margin: 0 10px;
    padding: 20px 0 20px;
    box-sizing: border-box;
    width: calc(100% - 20px);
  }

  .page-template-page-single-house-php .ks-object-infra__actions {
    order: 5;
    padding: 0 10px;
    width: 100%;
  }

  .ks-object-infra__map {
    width: 100%;
    height: 220px;
    overflow: hidden;
  }

  .ks-object-infra__map .leaflet-control-zoom a,
  .ks-object-infra__map [class*="zoom__plus"],
  .ks-object-infra__map [class*="zoom__minus"] {
    width: 32px !important;
    height: 32px !important;
    line-height: 30px;
  }

  .ks-object-infra__map .leaflet-control-attribution,
  .ks-object-infra__map [class*="copyrights"] {
    font-size: 9px;
  }

  .ks-map-marker__pin {
    width: 24px;
    height: 24px;
    border-width: 3px;
  }

  .ks-object-infra__address {
    max-width: none;
    margin-top: 15px;
  }

  .ks-object-infra__address p:first-child {
    font-size: 14px;
  }

  .ks-object-infra__address p:last-child {
    font-size: 12px;
  }

  .ks-object-infra__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: none;
    margin-top: 20px;
    border-bottom: 1px solid #e0ddd6;
  }

  .ks-object-infra__price-label {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-black);
  }

  .ks-object-infra__price-value {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-red);
  }

  .ks-object-infra__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
  }

  .page-template-page-single-house-php button.ks-object-infra__btn,
  .ks-object-infra__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 45px;
    padding: 0 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .ks-object-nearby__label {
    margin-bottom: 10px;
  }

  .ks-object-nearby__list {
    gap: 0;
  }

  .ks-object-nearby__list li {
    grid-template-columns: 56px 1fr;
    gap: 15px;
    padding: 15px 0;
    border-bottom-color: var(--color-gray);
  }

  .page-template-page-single-house-php .ks-object-nearby__list li {
    border-bottom-color: #d3d3d3;
  }

  .ks-object-nearby__num {
    font-size: 14px;
    letter-spacing: -0.03em;
  }

  .ks-object-nearby__text {
    font-size: 14px;
    font-weight: 400;
  }

  .ks-header__submenu {
    position: static;
    display: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 8px 0 0;
    min-width: 0;
    transition: none;
  }

  /* Footer accordion keeps display:block; height via max-height */
  .ks-footer__menu .ks-header__submenu {
    display: block;
  }
}
