/* ============================================
   megaO. Lviv — подобова оренда квартир
   ============================================ */

/* ---------- Змінні ---------- */
:root {
  --accent: #F07E1F;
  /* фірмовий помаранчевий з лого */
  --accent-hot: #FF8C1A;
  --accent-deep: #D96A0B;
  --black: #0D0D0D;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --paper: #F7F4EF;
  /* теплий off-white */
  --grey: #6E6A64;
  --line: rgba(13, 13, 13, .12);
  --line-light: rgba(255, 255, 255, .14);

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Скидання ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

em {
  font-style: normal;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

/* Зернистість поверх усього — тренд, ледь помітна */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Утиліти ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 9vw, 120px);
}

.section--dark {
  background: var(--black);
  color: var(--paper);
  border-radius: clamp(24px, 3.5vw, 48px);
  margin-inline: clamp(8px, 1vw, 14px);
}

/* Заголовок секції */
.section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 900px;
}

.section-head__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.section-head__label::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out) .25s;
}

.section-head.is-inview .section-head__label::before {
  transform: scaleX(1);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: 100px;
  transition: transform .35s var(--ease-out), background .3s, color .3s, border-color .3s;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0);
}

/* блиск, що пробігає по заповнених кнопках */
.btn--fill,
.btn--accent {
  position: relative;
  overflow: hidden;
}

.btn--fill::before,
.btn--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease-out);
  pointer-events: none;
}

.btn--fill:hover::before,
.btn--accent:hover::before {
  left: 130%;
}

.btn--sm {
  font-size: 12px;
  padding: 12px 22px;
}

.btn--lg {
  font-size: 14px;
  padding: 19px 34px;
}

.btn--fill {
  background: var(--black);
  color: var(--white);
}

.btn--fill:hover {
  background: var(--accent);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
}

.btn--accent:hover {
  background: var(--accent-hot);
}

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost-light {
  border: 1.5px solid var(--line-light);
  color: var(--paper);
}

.btn--ghost-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform .35s var(--ease-out);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
}

.badge--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ---------- Лоадер ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  clip-path: inset(0 0 0 0);
  background: var(--black);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loader__brand {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
}

.loader__brand em {
  color: var(--accent);
}

.loader__tagline {
  font-family: var(--font-display);
  font-size: clamp(13px, 2.4vw, 16px);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}

.loader__count {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--grey);
}

.loader__bar {
  width: min(260px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, .12);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
}

/* ---------- Лого ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo__mark svg {
  width: 22px;
  height: 22px;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.logo__text em {
  color: var(--accent);
}

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  transition: transform .5s var(--ease-out), background .4s, box-shadow .4s;
}

.header.is-scrolled {
  background: rgba(247, 244, 239, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header.is-menu-open .header__inner {
  background: var(--black);
  transition: background .3s;
}

.header.is-menu-open .logo__text {
  color: var(--white);
  transition: color .3s;
}

.header.is-menu-open .header__socials a {
  color: var(--white);
  transition: color .3s;
}

.header.is-menu-open .burger {
  color: var(--white);
  transition: color .3s;
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

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

.header__nav a {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding-block: 4px;
}

.header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

.header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__phone {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: color .3s;
}

.header__phone:hover {
  color: var(--accent);
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  align-items: center;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform .4s var(--ease-out), opacity .3s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- Мобільне меню ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--black);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
  padding-top: calc(72px + var(--gutter));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}

.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .7s var(--ease-out), visibility 0s;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: clamp(24px, 6.5vw, 52px);
  font-weight: 600;
  padding-block: 8px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line-light);
  transition: color .3s, padding-left .4s var(--ease-out);
}

.mobile-menu__nav a span {
  font-size: 13px;
  color: var(--accent);
}

.mobile-menu__nav a:hover {
  color: var(--accent);
  padding-left: 12px;
}

.mobile-menu__footer {
  margin-top: 36px;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.mobile-menu__footer a:hover {
  color: var(--accent);
}

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?q=80&w=1920&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  filter: grayscale(100%);
  z-index: -1;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 126, 31, .28) 0%, rgba(240, 126, 31, 0) 65%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .35;
  mask-image: linear-gradient(to bottom, transparent, #000 30%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 48px);
  padding-bottom: clamp(40px, 6vh, 70px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 126, 31, .5);
  }

  50% {
    box-shadow: 0 0 0 9px rgba(240, 126, 31, 0);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 9.5vw, 128px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.hero__title em {
  color: var(--accent);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__desc {
  max-width: 480px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--grey);
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 34px;
  gap: 24px;
}

.hero-stat__num,
.hero-stat__plus {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700;
  color: var(--black);
}

.hero-stat__plus {
  color: var(--accent);
}

.hero-stat p {
  font-size: 14px;
  color: var(--grey);
  margin-top: 6px;
}

.hero__scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollLine 2s var(--ease-out) infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }

  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--accent);
  color: var(--white);
  overflow: hidden;
  padding-block: 18px;
  transform: rotate(-1deg) scale(1.02);
  /* запобігає горизонтальному скролу від rotate+scale */
  margin-inline: -2px;
}

.marquee__track {
  display: flex;
  width: max-content;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.marquee__content i {
  font-style: normal;
  font-size: .8em;
}

/* ---------- Про нас ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.about__lead {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 22px;
}

.about__text {
  align-self: center;
}

.about__text p:not(.about__lead) {
  color: var(--grey);
  margin-bottom: 16px;
}

.about__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.about__bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  overflow: hidden;
}

.bento-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 190px;
  min-width: 0;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}

.bento-card:hover {
  transform: translateY(-6px);
}

.bento-card__num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 700;
  line-height: 1;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--grey);
}

.bento-card--dark {
  background: var(--black);
  border-color: var(--black);
  color: var(--paper);
}

.bento-card--dark p {
  color: rgba(247, 244, 239, .6);
}

.bento-card--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.bento-card--accent p {
  color: rgba(255, 255, 255, .82);
}

.about__types {
  margin-top: clamp(56px, 8vw, 90px);
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vw, 56px);
}

.about__types-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 24px;
}

.type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.type-list li {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  padding: 14px 26px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease-out);
}

.type-list li:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--paper);
  transform: translateY(-3px);
}

/* ---------- Галерея ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(14px, 1.6vw, 22px);
  height: clamp(420px, 46vw, 620px);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 0;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__hint {
  display: none;
}

@media (max-width: 720px) {
  /* горизонтальна свайп-карусель */
  .gallery__grid {
    display: flex;
    height: auto;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery__grid::-webkit-scrollbar {
    display: none;
  }

  .gallery__item {
    flex: 0 0 min(78vw, 340px);
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
  }

  .gallery__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--grey);
  }

  .gallery__hint::after {
    content: '';
    flex: 0 0 34px;
    height: 2px;
    background: var(--accent);
  }
}

/* ---------- Апартаменти ---------- */
.apartments .section-head__title {
  color: var(--paper);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1.5px solid var(--line-light);
  color: rgba(247, 244, 239, .75);
  transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.apartments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  will-change: transform;
}

/* Картка квартири */
.apt-card {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease-out), border-color .4s;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.apt-card:hover {
  transform: translateY(-8px) translateZ(0);
  border-color: rgba(240, 126, 31, .5);
}

.apt-card.is-hidden {
  display: none;
}

.apt-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #232323 0%, #171717 60%);
  transform: translateZ(0);
}

.apt-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
  backface-visibility: hidden;
}

.apt-card:hover .apt-card__media img {
  transform: scale(1.06);
}

/* плейсхолдер, поки нема фото */
.apt-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(247, 244, 239, .22);
}

.apt-card__placeholder svg {
  width: 44px;
  height: 44px;
  color: rgba(240, 126, 31, .4);
}

.apt-card__placeholder span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.apt-card__num {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: rgba(18, 18, 18, .82);
  padding: 8px 14px;
  border-radius: 100px;
}

.apt-card__district {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--white);
  background: rgba(240, 126, 31, .92);
  padding: 8px 14px;
  border-radius: 100px;
}

.apt-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.apt-card__type {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.apt-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--paper);
}

.apt-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: rgba(247, 244, 239, .55);
}

.apt-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.apt-card__meta svg {
  width: 15px;
  height: 15px;
  opacity: .7;
}

.apt-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apt-card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
}

.apt-card__price small {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(247, 244, 239, .45);
}

.apt-card__link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .3s var(--ease-out);
}

.apt-card__link:hover {
  gap: 10px;
}

.apartments__note {
  margin-top: clamp(36px, 5vw, 56px);
  text-align: center;
  color: rgba(247, 244, 239, .5);
  font-size: 15px;
  max-width: 620px;
  margin-inline: auto;
}

/* ---------- Переваги ---------- */
.advantages__list {
  border-top: 1px solid var(--line);
}

.adv-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: baseline;
  padding-block: clamp(28px, 3.6vw, 44px);
  border-bottom: 1px solid var(--line);
  transition: background .4s, padding-left .5s var(--ease-out);
}

.adv-row:hover {
  padding-left: 18px;
}

.adv-row__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.adv-row h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.25;
}

.adv-row p {
  color: var(--grey);
  font-size: 16px;
}

/* ---------- CTA ---------- */
.cta {
  padding-block: clamp(72px, 9vw, 120px);
}

.cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  max-width: 800px;
}

.cta p {
  color: rgba(247, 244, 239, .6);
  max-width: 520px;
}

.cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- Контакти ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  transition: transform .5s var(--ease-out), border-color .4s;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.contact-card__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-card__value {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  transition: color .3s;
}

a.contact-card__value:hover {
  color: var(--accent);
}

.contact-card__hint {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  color: var(--grey);
}

/* ---------- Футер ---------- */
.footer {
  background: var(--black);
  color: var(--paper);
  padding-top: clamp(70px, 9vw, 110px);
  overflow: hidden;
  border-radius: clamp(24px, 3.5vw, 48px) clamp(24px, 3.5vw, 48px) 0 0;
  margin-inline: clamp(8px, 1vw, 14px);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  padding-bottom: clamp(50px, 7vw, 80px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__tagline {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  color: rgba(247, 244, 239, .7);
  max-width: 380px;
}

.footer__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer__col a {
  font-size: 15.5px;
  color: rgba(247, 244, 239, .75);
  width: fit-content;
  transition: color .3s, padding-left .3s var(--ease-out);
}

.footer__col a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 10vw, 176px);
  line-height: .95;
  letter-spacing: -.02em;
  text-align: center;
  white-space: nowrap;
  color: var(--white);
  transition: color .5s;
  user-select: none;
  overflow: hidden;
  width: 100%;
}

.footer__brand:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 26px;
  border-top: 1px solid var(--line-light);
  margin-top: clamp(40px, 6vw, 70px);
  font-size: 13.5px;
  color: rgba(247, 244, 239, .5);
}

.footer__up {
  color: var(--paper);
  font-weight: 700;
  transition: color .3s;
}

.footer__up:hover {
  color: var(--accent);
}

/* ---------- Стани анімацій (початкові) ---------- */
.anim-fade,
.anim-up {
  opacity: 0;
}

.anim-up {
  transform: translateY(48px);
}

/* коли JS вимкнено або бібліотеки не завантажились */
.no-anim .anim-fade,
.no-anim .anim-up {
  opacity: 1;
  transform: none;
}

.no-anim .loader {
  display: none;
}

/* ---------- Прогрес скролу ---------- */
.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Бейдж у героя ---------- */
.hero__badge {
  position: absolute;
  right: calc(var(--gutter) + 40px);
  top: 24vh;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.hero__badge>svg {
  /* тільки зовнішнє кільце з текстом — не іконка будинку всередині */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: badgeSpin 16s linear infinite;
}

.hero__badge text {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  fill: var(--ink);
}

.hero__badge-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(240, 126, 31, .35);
}

.hero__badge-icon svg {
  width: 30px;
  height: 30px;
}

@keyframes badgeSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .hero__badge {
    display: none;
  }
}

/* ---------- Кроки бронювання ---------- */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
  transition: transform .5s var(--ease-out), background .4s, border-color .4s;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--black);
}

.step-card__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.step-card__body h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  margin-bottom: 10px;
}

.step-card__body p {
  color: var(--grey);
  font-size: 15.5px;
}

.step-card__arrow {
  position: absolute;
  top: clamp(28px, 3vw, 40px);
  right: clamp(24px, 2.6vw, 36px);
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
  transition: transform .4s var(--ease-out);
}

.step-card:hover .step-card__arrow {
  transform: translateX(6px);
}

.step-card--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.step-card--accent:hover {
  border-color: var(--accent);
}

.step-card--accent .step-card__num {
  -webkit-text-stroke-color: rgba(255, 255, 255, .85);
}

.step-card--accent .step-card__body p {
  color: rgba(255, 255, 255, .85);
}

/* ---------- FAQ ---------- */
.faq__wrap {
  max-width: 980px;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding-block: clamp(22px, 2.6vw, 32px);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  transition: color .3s;
}

.faq-item__q:hover {
  color: var(--accent);
}

.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: background .35s, border-color .35s, transform .5s var(--ease-out);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: currentColor;
  transition: background .35s;
}

.faq-item__icon::before {
  width: 16px;
  height: 1.5px;
}

.faq-item__icon::after {
  width: 1.5px;
  height: 16px;
}

.faq-item.is-open .faq-item__icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(135deg);
}

.faq-item.is-open .faq-item__icon::before,
.faq-item.is-open .faq-item__icon::after {
  background: var(--white);
}

.faq-item.is-open .faq-item__q {
  color: var(--accent);
}

.faq-item__a {
  height: 0;
  overflow: hidden;
}

.faq-item__a p {
  padding-bottom: clamp(24px, 3vw, 34px);
  color: var(--grey);
  max-width: 760px;
  font-size: 16.5px;
}

/* ---------- Варіанти плейсхолдерів карток ---------- */
.apt-card__media--1 {
  background: linear-gradient(150deg, #2a2018 0%, #171310 65%);
}

.apt-card__media--2 {
  background: linear-gradient(150deg, #262626 0%, #141414 65%);
}

.apt-card__media--3 {
  background: linear-gradient(150deg, #2b1c0e 0%, #191411 65%);
}

.apt-card__media--0 {
  background: linear-gradient(150deg, #20232a 0%, #131417 65%);
}

/* ---------- Умови проживання ---------- */
.terms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.term-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  transition: transform .5s var(--ease-out), border-color .4s;
}
.term-card:hover { transform: translateY(-6px); border-color: var(--black); }

.term-card h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  margin-bottom: 20px;
}

.term-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.term-card li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--grey);
}
.term-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 11px;
  height: 2px;
  background: var(--accent);
}

.term-card__note {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 18px;
}

.term-card--dark {
  background: var(--black);
  border-color: var(--black);
  color: var(--paper);
}
.term-card--dark:hover { border-color: var(--accent); }
.term-card--dark li { color: rgba(247, 244, 239, .65); }
.term-card--dark .term-card__note { color: var(--paper); }

@media (max-width: 800px) {
  .terms__grid { grid-template-columns: 1fr; }
}

/* ---------- Соцмережі в шапці та меню ---------- */
.header__socials {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header__socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: color .3s, background .3s, transform .35s var(--ease-out);
}
.header__socials a:hover {
  color: var(--accent);
  background: rgba(240, 126, 31, .1);
  transform: translateY(-2px);
}
.header__socials svg { width: 20px; height: 20px; }

@media (max-width: 480px) {
  .header__socials {
    gap: 0;
  }

  .header__socials a {
    width: 32px;
    height: 32px;
  }

  .header__socials svg {
    width: 18px;
    height: 18px;
  }

  .header__inner {
    gap: 10px;
  }

  .header__right {
    gap: 6px;
  }
}

@media (max-width: 425px) {
  .header .logo__mark {
    display: none;
  }
}

@media (max-width: 385px) {
  .header__inner {
    gap: 6px;
  }

  .header__right {
    gap: 2px;
  }

  .header .logo__text {
    font-size: 16px;
  }

  .header__socials a {
    width: 26px;
    height: 26px;
  }

  .header__socials svg {
    width: 15px;
    height: 15px;
  }

  .burger {
    width: 32px;
  }
}

.mobile-menu__socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.mobile-menu__socials a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 22px;
  border: 1.5px solid var(--line-light);
  border-radius: 100px;
}
.mobile-menu__socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Форма бронювання ---------- */
.contacts {
  overflow: hidden;
}

.booking-form {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--paper);
  padding: clamp(28px, 3.6vw, 52px);
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 4vw, 64px);
}

/* помаранчеве сяйво в кутку */
.booking-form::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -12%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 126, 31, .32) 0%, rgba(240, 126, 31, 0) 68%);
  pointer-events: none;
}

/* ліва панель */
.booking-form__side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  /* fix: grid item overflow */
}

.booking-form__tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 100px;
}

.booking-form__side h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
}

.booking-form__side p {
  color: rgba(247, 244, 239, .6);
  font-size: 15px;
  max-width: 340px;
}

.booking-form__contacts {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-form__phone {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 600;
  transition: color .3s;
}

.booking-form__phone:hover {
  color: var(--accent);
}

.booking-form__contacts>span {
  font-size: 13px;
  color: rgba(247, 244, 239, .45);
}

.booking-form__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-form__socials a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1.5px solid var(--line-light);
  border-radius: 100px;
  transition: border-color .3s, color .3s, transform .35s var(--ease-out);
}

.booking-form__socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* права панель з полями */
.booking-form__fields {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  /* fix: grid item overflow */
}

.booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  /* fix: grid item overflow */
}

.field label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, .5);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--paper);
  width: 100%;
  max-width: 100%;
  padding: 15px 18px;
  border: 1.5px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, .25);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(240, 126, 31, .06);
  box-shadow: 0 0 0 4px rgba(240, 126, 31, .14);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(247, 244, 239, .3);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23F07E1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 46px;
}

.field select option {
  background: var(--black);
  color: var(--paper);
}

/* пастка для ботів — приховане поле */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.booking-form__foot {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.booking-form__foot .btn {
  width: 100%;
}

.booking-form__status {
  text-align: center;
}

.booking-form__foot .btn:disabled {
  opacity: .6;
  pointer-events: none;
}

.booking-form__status {
  font-size: 14px;
  color: rgba(247, 244, 239, .55);
}

.booking-form__status.is-ok {
  color: #4ade80;
}

.booking-form__status.is-error {
  color: #fdba74;
}

@media (max-width: 900px) {
  .booking-form {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: clamp(20px, 5vw, 36px);
  }

  .booking-form__side h3 br {
    display: none;
  }

  .booking-form__contacts {
    margin-top: 0;
    padding-top: 4px;
  }

  .booking-form__side {
    gap: 12px;
  }

  .booking-form__side h3 {
    font-size: clamp(24px, 6vw, 36px);
  }
}

@media (max-width: 768px) {
  .booking-form__row {
    grid-template-columns: 1fr;
  }

  .booking-form__foot .btn {
    width: 100%;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 16px;
    font-size: 16px;
    /* запобігає авто-зуму на iOS */
  }

  .booking-form__socials {
    gap: 8px;
  }

  .booking-form__socials a {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .booking-form {
    padding: 18px;
    border-radius: var(--radius-sm);
  }

  .booking-form__side h3 {
    font-size: clamp(20px, 5.5vw, 28px);
  }
}

/* ---------- Модалка квартири ---------- */
.apt-card {
  cursor: pointer;
}

.apt-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.apt-modal.is-open {
  display: block;
}

.apt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.apt-modal__dialog {
  position: relative;
  margin: 4vh auto;
  width: min(1080px, calc(100% - 28px));
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--paper);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
}

.apt-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(13, 13, 13, .55);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background .3s, transform .35s var(--ease-out);
}

.apt-modal__close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

.apt-modal__close svg {
  width: 20px;
  height: 20px;
}

/* галерея */
.apt-modal__gallery {
  position: relative;
  background: #141414;
  min-height: 420px;
}

.apt-modal__gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* фото видно повністю, без обрізання */
}

.apt-modal__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 13, 13, .5);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background .3s, transform .3s var(--ease-out);
}

.apt-modal__nav:hover {
  background: var(--accent);
}

.apt-modal__nav--prev {
  left: 14px;
}

.apt-modal__nav--next {
  right: 14px;
}

.apt-modal__nav svg {
  width: 22px;
  height: 22px;
}

.apt-modal__counter {
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  z-index: 4;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: rgba(13, 13, 13, .55);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 100px;
}

/* інформація */
.apt-modal__info {
  padding: clamp(24px, 3vw, 40px);
  overflow-y: auto;
  max-height: 92vh;
  max-height: 92dvh;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.apt-modal__district {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  padding: 7px 14px;
  border-radius: 100px;
}

.apt-modal__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.apt-modal__name {
  color: var(--grey);
  font-size: 15px;
  margin-top: -10px;
}

.apt-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apt-modal__chips span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
}

.apt-modal__block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.apt-modal__label {
  display: block;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.apt-modal__amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.apt-modal__amenities li {
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.apt-modal__amenities li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.apt-modal__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  font-size: 15px;
  color: var(--grey);
}

.apt-modal__price-row b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.apt-modal__price-note {
  font-size: 12.5px;
  color: var(--grey);
  margin-top: 6px;
}

.apt-modal__cta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.apt-modal__cta .btn {
  flex: 1;
  min-width: 120px;
  font-size: 12.5px;
  padding: 15px 18px;
}

@media (max-width: 860px) {
  .apt-modal__dialog {
    grid-template-columns: 1fr;
    margin: 2vh auto;
    max-height: 96vh;
    max-height: 96dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .apt-modal__gallery {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .apt-modal__info {
    max-height: none;
    overflow-y: visible;
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .apartments__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv-row {
    grid-template-columns: 60px 1fr;
  }

  .adv-row p {
    grid-column: 2;
  }
}

@media (max-width: 1280px) {
  .header__phone {
    display: none;
  }

  .header__nav {
    gap: 24px;
  }
}

@media (max-width: 900px) {

  .header__nav,
  .header__phone,
  .header__right .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

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

  .step-card {
    gap: 28px;
  }

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

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

  .contact-card {
    min-height: auto;
  }

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

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .hero__scroll-hint {
    display: none;
  }
}

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

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

  .about__bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
  }

  .bento-card {
    min-height: unset;
    gap: 12px;
    padding: 18px;
  }

  .bento-card__num {
    font-size: clamp(26px, 7vw, 40px);
  }

  .bento-card p {
    font-size: 13px;
  }

  .hero {
    padding-top: 110px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--lg {
    padding: 17px 28px;
  }

  .cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta__actions .btn {
    width: 100%;
  }
}