:root {
  --page: #f8f2ea;
  --ink: #264f5e;
  --muted: #6f8b93;
  --line: rgba(38, 79, 94, 0.18);
  --teal: #6fa9ae;
  --rust: #b95b3d;
  --rust-dark: #98472f;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(24, 47, 54, 0.16);
  --radius: 10px;
  font-family: "Open Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: calc(100% - 128px);
  margin: 0 auto;
}

.section {
  padding: 112px 0;
}

.section[id] {
  scroll-margin-top: 92px;
}

.section--compact {
  padding-top: 76px;
}

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

.section__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 3.35vw, 56px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0;
}

.section__text {
  max-width: 895px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 54px;
  border: 1px solid var(--rust);
  border-radius: 8px;
  color: var(--white);
  background: var(--rust);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  border-color: var(--rust-dark);
  background: var(--rust-dark);
  transform: translateY(-1px);
}

.button--outline {
  color: var(--rust);
  background: transparent;
}

.button--outline:hover {
  color: var(--white);
}

.button--wide {
  width: 100%;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--rust);
  background: var(--white);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.icon-button:hover {
  background: #fff8f2;
}

.header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(248, 242, 234, 0.96);
  backdrop-filter: blur(16px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 128px);
  min-height: 72px;
  margin: 0 auto;
}

.header__logo {
  padding: 10px;
  color: #202020;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 9px;
  font-weight: 500;
}

.header__nav {
  display: flex;
  gap: clamp(26px, 3.8vw, 58px);
  align-items: center;
  margin-left: 30px;
}

.header__link {
  color: #111;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 500;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.language__flag-img {
  width: 25px;
  height: 18px;
  object-fit: contain;
}

.header__call {
  min-height: 46px;
  padding: 0 36px;
  border: 1px solid #111;
  border-radius: 999px;
  color: #111;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.header__burger {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 7px auto;
  background: #111;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header.is-open .header__burger span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.header.is-open .header__burger span:nth-child(2) {
  opacity: 0;
}

.header.is-open .header__burger span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  padding-top: 142px;
}

.hero__media {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  border-radius: 16px;
  background: #123;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.05) 56%);
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero__content {
  position: absolute;
  z-index: 1;
  left: 36px;
  right: 36px;
  bottom: 38px;
  color: var(--white);
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(54px, 4.5vw, 74px);
  line-height: 1.08;
  font-weight: 600;
}

.hero__lead {
  max-width: 960px;
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
  padding: 48px 0 104px;
}

.facts__item {
  min-height: 66px;
  padding: 0 36px;
  text-align: center;
}

.facts__item + .facts__item {
  border-left: 2px solid rgba(38, 79, 94, 0.65);
}

.facts__value {
  display: block;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
}

.facts__label {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.intro {
  display: grid;
  gap: 80px;
  align-items: start;
}

.intro__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-top: 54px;
}

.lead-form {
  position: relative;
  min-height: 730px;
  padding: 32px 0;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.03)),
    url("../images/35-photo.jpg");
  background-position: center;
  background-size: cover;
}

.lead-form__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(760px, 100%);
  min-height: 650px;
  padding: 48px 74px 38px;
  border-radius: 8px;
  color: #565656;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.lead-form__card--right {
  margin-left: auto;
}

.lead-form__title {
  margin: 0;
  color: #555;
  font-size: 34px;
  line-height: 1.18;
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
}

.lead-form__text {
  margin: 32px 0 28px;
  color: #8a8a8a;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.lead-form__card .form {
  margin-top: 28px;
}

.form {
  display: grid;
  gap: 24px;
}

.form__field {
  display: block;
}

.form__input {
  width: 100%;
  height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(38, 79, 94, 0.28);
  outline: none;
  color: var(--ink);
  background: transparent;
}

.form__input::placeholder {
  color: rgba(38, 79, 94, 0.55);
}

.form__phone {
  position: relative;
}

.form__phone::before {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 15px;
  width: 20px;
  height: 13px;
  content: "";
  background: linear-gradient(to bottom, #fff 0 33.33%, #1d57c6 33.33% 66.66%, #e5362f 66.66%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.form__phone .form__input {
  padding-left: 38px;
}

.form__error {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  color: #c0392b;
  font-size: 12px;
  line-height: 1.3;
}

.form__field--invalid .form__input {
  border-bottom-color: #c0392b;
}

.form__field--valid .form__input {
  border-bottom-color: #2ecc71;
}

.form__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(38, 79, 94, 0.55);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.form__checkbox {
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--rust);
  cursor: pointer;
}

.amenities {
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  gap: 160px;
  align-items: start;
}

.amenities__image {
  width: 100%;
  margin-top: 120px;
  overflow: hidden;
  border-radius: 12px;
}

.amenities__image img {
  width: 100%;
  aspect-ratio: 1.88;
  object-fit: cover;
}

.amenities__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenities__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  align-items: baseline;
  min-height: 58px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(38, 79, 94, 0.16);
}

.amenities__number {
  color: #9ab0b6;
  font-size: 30px;
}

.amenities__name {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.22;
  text-align: right;
}

.catalogue {
  padding: 86px 78px;
  border-radius: 16px;
  background: var(--teal);
}

.catalogue__inner {
  display: grid;
  grid-template-columns: 0.74fr 1fr;
  gap: 80px;
  align-items: center;
}

.catalogue__title {
  margin: 0 0 28px;
  color: var(--white);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.12;
  font-weight: 500;
}

.catalogue__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 42px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

.catalogue .form__input {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.catalogue .form__input::placeholder,
.catalogue .form__consent-label {
  color: rgba(255, 255, 255, 0.78);
}

.catalogue__image {
  filter: drop-shadow(24px 24px 18px rgba(0, 0, 0, 0.22));
}

.catalogue__image img {
  width: 100%;
}

.layouts__grid {
  display: grid;
  gap: 26px;
}

.layout-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--teal);
}

.layout-card__title {
  margin: 0;
  padding: 24px;
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
}

.layout-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 4px solid var(--page);
}

.layout-card__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: 28px 64px;
  border-right: 4px solid var(--page);
}

.layout-card__plan {
  width: min(535px, 100%);
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: 2px;
  background: var(--white);
}

.layout-card__plan img {
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  object-fit: contain;
  object-position: center;
}

.layout-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.layout-card__arrow:hover {
  transform: translateY(-50%);
}

.layout-card__arrow--prev {
  left: 10px;
}

.layout-card__arrow--next {
  right: 10px;
}

.layout-card__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.layout-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.layout-card__dot.is-active {
  background: var(--rust);
}

.layout-card__info {
  display: grid;
  align-content: center;
  gap: 52px;
  padding: 54px 112px;
  color: var(--white);
}

.layout-card__table {
  display: grid;
  gap: 0;
}

.layout-card__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.gallery__controls {
  display: flex;
  gap: 34px;
}

.gallery__button {
  width: 40px;
  height: 40px;
  border: 0;
  color: #222;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
}

.gallery__track {
  display: flex;
  gap: 26px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.gallery__item {
  flex: 0 0 70%;
  overflow: hidden;
  border-radius: 14px;
}

.gallery__item img {
  width: 100%;
  height: clamp(560px, 45vw, 680px);
  cursor: zoom-in;
  object-fit: cover;
}

.gallery__item--side img {
  object-position: center;
}

.location {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 120px;
  align-items: stretch;
}

.location__distances {
  margin-top: 74px;
}

.distance {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(38, 79, 94, 0.18);
}

.map {
  position: relative;
  height: 100%;
  min-height: 510px;
  overflow: hidden;
  border-radius: 2px;
  background: #d7eee2;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.management {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 0;
  align-items: center;
  min-height: 690px;
  padding: 64px 56px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.16)),
    url("../images/12-Frame_1000001182_2.webp");
  background-position: center;
  background-size: cover;
}

.management__title {
  max-width: 650px;
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 1.05;
  font-weight: 700;
}

.management__text {
  max-width: 650px;
  margin: 0;
  color: #9aaeb4;
  font-size: 30px;
  line-height: 1.25;
}

.expert-card {
  padding: 72px 88px;
  border-radius: 8px;
  color: #555;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.expert-card__person {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 82px;
}

.expert-card__photo {
  width: 94px;
  height: 94px;
  border-radius: 50%;
}

.expert-card__name {
  margin: 0;
  color: #555;
  font-size: 25px;
  font-weight: 700;
}

.expert-card__role {
  margin: 2px 0 0;
  color: #777;
  font-size: 17px;
}

.developer {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 130px;
  align-items: center;
}

.developer__image {
  overflow: hidden;
  border-radius: 12px;
}

.developer__image img {
  width: 100%;
  aspect-ratio: 1.36;
  object-fit: cover;
}

.developer__eyebrow {
  margin: 0 0 24px;
  font-size: 21px;
}

.developer__logo {
  margin: 0 0 64px;
}

.developer__logo img {
  width: 190px;
}

.developer__stats {
  margin-top: 175px;
}

.developer__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(38, 79, 94, 0.16);
  font-size: 24px;
}

.developer__row span:first-child {
  color: #9aaeb4;
}

.developer__row span:last-child {
  color: var(--rust);
}

.contacts {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 130px;
  align-items: start;
  padding-bottom: 88px;
}

.contacts__title {
  max-width: 540px;
}

.contacts__text {
  max-width: 370px;
  margin: 22px 0 90px;
}

.contacts__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  font-size: 20px;
  font-weight: 700;
}

.callback {
  padding: 54px 40px;
  border-radius: 8px;
  background: var(--teal);
}

.callback__title {
  margin: 0 0 50px;
  color: var(--white);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 700;
}

.callback .form__input {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.callback .form__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.callback .form__consent-label {
  color: rgba(255, 255, 255, 0.78);
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.44);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  border-radius: 12px;
  background: var(--page);
  box-shadow: var(--shadow);
}

.modal__visual {
  min-height: 560px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)), var(--modal-bg);
  background-position: center;
  background-size: cover;
}

.modal__visual--lead {
  --modal-bg: url("../images/12-Frame_1000001182_2.webp");
}

.modal__visual--hero {
  --modal-bg: url("../images/12-Frame_1000001182_2.webp");
}

.modal__body {
  padding: 58px 52px;
}

.modal__close {
  position: absolute;
  z-index: 1;
  right: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--teal);
  background: var(--page);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.modal__title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 600;
}

.modal__text {
  margin: 0 0 32px;
}

.modal__expert {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
}

.modal__expert img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 42px 82px;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.82);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 84px);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lightbox__button {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.lightbox__button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lightbox__button--close {
  top: 26px;
  right: 28px;
}

.lightbox__button--prev {
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__button--next {
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  transform: translateX(-50%);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background-color: var(--rust);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  pointer-events: none;
}

.toast.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.toast--error {
  background-color: #c0392b;
}

@media (max-width: 1180px) {
  .header__nav {
    gap: 24px;
  }

  .layout-card__info {
    padding: 40px 58px;
  }

  .contacts,
  .developer,
  .location,
  .amenities {
    gap: 64px;
  }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 20px);
  }

  .section {
    padding: 62px 0;
  }

  .header__inner {
    width: calc(100% - 20px);
    min-height: 62px;
  }

  .header.is-open {
    min-height: 100vh;
    background: var(--page);
  }

  .header__logo {
    padding: 0;
    font-size: 20px;
    letter-spacing: 8px;
  }

  .header__burger {
    display: block;
  }

  .header__nav,
  .header__actions {
    position: fixed;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    z-index: 21;
    background: var(--page);
  }

  .header__nav {
    top: 144px;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    overflow-y: auto;
    padding: 4px 22px 34px;
    margin: 0;
  }

  .header__link {
    width: 100%;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .header__actions {
    top: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .header.is-open .header__nav,
  .header.is-open .header__actions {
    display: flex;
  }

  .header__call {
    min-height: 42px;
    padding: 0 24px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero__media {
    min-height: 501px;
    border-radius: 10px;
  }

  .hero__image {
    object-position: 58% center;
  }

  .hero__content {
    left: 18px;
    right: 18px;
    bottom: 44px;
  }

  .hero__title {
    font-size: 31px;
  }

  .hero__lead {
    font-size: 13px;
    line-height: 1.45;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
    padding: 28px 0 44px;
  }

  .facts__item {
    min-height: 56px;
    padding: 0 10px;
  }

  .facts__item + .facts__item {
    border-left: 0;
  }

  .facts__value {
    font-size: 20px;
  }

  .facts__label {
    font-size: 14px;
  }

  .section__title {
    font-size: 34px;
  }

  .intro,
  .amenities,
  .catalogue__inner,
  .layout-card__body,
  .location,
  .management,
  .developer,
  .contacts,
  .modal__dialog {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 28px;
    min-height: 0;
  }

  .intro__actions {
    display: grid;
    gap: 10px;
    margin-top: 180px;
  }

  .lead-form {
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 40px 0;
  }

  .lead-form__card {
    min-height: 0;
    padding: 30px 18px;
  }

  .lead-form__title {
    font-size: 22px;
  }

  .amenities__image {
    order: -1;
    margin-top: 0;
  }

  .amenities__list {
    margin-top: -18px;
  }

  .amenities__item {
    grid-template-columns: 32px 1fr;
    gap: 12px;
    min-height: 30px;
    padding: 4px 0;
  }

  .amenities__number,
  .amenities__name {
    font-size: 13px;
  }

  .catalogue {
    padding: 38px 16px;
    border-radius: 6px;
  }

  .catalogue__title {
    font-size: 29px;
    text-align: center;
  }

  .catalogue__tabs {
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    order: 2;
    margin: 20px 0 0;
    font-size: 10px;
  }

  .catalogue__image {
    order: -1;
    margin: 4px 0 24px;
  }

  .layout-card__title {
    padding: 16px;
    font-size: 17px;
  }

  .layout-card__media {
    min-height: 0;
    padding: 20px 22px 34px;
    border-right: 0;
  }

  .layout-card__plan {
    border-radius: 8px;
  }

  .layout-card__arrow {
    width: 28px;
    height: 28px;
  }

  .layout-card__info {
    gap: 28px;
    padding: 22px 16px 18px;
    border-top: 4px solid var(--page);
  }

  .layout-card__row {
    padding: 10px 0;
    font-size: 13px;
  }

  .section__head {
    align-items: flex-start;
    margin-bottom: 26px;
  }

  .gallery__controls {
    display: none;
  }

  .gallery__track {
    display: flex;
    gap: 10px;
    overflow: hidden;
  }

  .gallery__item {
    flex: 0 0 calc(100% - 12px);
    border-radius: 5px;
  }

  .gallery__item img {
    height: 184px;
  }

  .location__distances {
    margin-top: 40px;
  }

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

  .map {
    min-height: 310px;
  }

  .management {
    min-height: 610px;
    align-items: start;
    padding: 28px 18px;
    border-radius: 6px;
  }

  .management__title {
    max-width: 100%;
    font-size: 30px;
    text-align: center;
  }

  .management__text {
    font-size: 14px;
    text-align: center;
  }

  .expert-card {
    padding: 26px 18px;
  }

  .expert-card__person {
    margin-bottom: 190px;
  }

  .expert-card__photo {
    width: 70px;
    height: 70px;
  }

  .expert-card__name {
    font-size: 18px;
  }

  .expert-card__role {
    font-size: 13px;
  }

  .developer {
    gap: 32px;
  }

  .developer__content {
    order: -1;
  }

  .developer__logo {
    margin-bottom: 24px;
  }

  .developer__stats {
    margin-top: 74px;
    font-size: 12px;
  }

  .contacts {
    gap: 34px;
    padding-bottom: 46px;
  }

  .contacts__text {
    margin-bottom: 42px;
    text-align: center;
  }

  .contacts__links {
    grid-template-columns: 1fr;
    gap: 26px;
    font-size: 16px;
  }

  .callback {
    padding: 34px 18px;
  }

  .callback__title {
    margin-bottom: 36px;
    text-align: center;
  }

  .modal {
    padding: 0;
  }

  .modal__dialog {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .modal__visual {
    min-height: 190px;
  }

  .modal__body {
    padding: 34px 18px 48px;
  }

  .modal__title {
    font-size: 30px;
  }

  .lightbox {
    padding: 58px 12px;
  }

  .lightbox__image {
    max-height: calc(100vh - 116px);
  }

  .lightbox__button {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .lightbox__button--close {
    top: 14px;
    right: 14px;
  }

  .lightbox__button--prev {
    left: 12px;
  }

  .lightbox__button--next {
    right: 12px;
  }
}

@media (max-width: 390px) {
  .container {
    width: calc(100% - 20px);
  }

  .button {
    min-height: 53px;
    padding: 0 18px;
    font-size: 13px;
  }

  .section__text {
    font-size: 14px;
  }
}
