/* ============================================================
   LONO DEVELOPMENT — styles.css
   Дизайн-токени з Figma (Lono- Copy): Noah (display) + Manrope (body)
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
/* Noah — комерційний шрифт з макета. Поки файлів немає, фолбек — Jost. */
@font-face {
  font-family: 'Noah';
  src: url('../fonts/noah-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-v20-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-v20-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-v20-cyrillic_latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-v20-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-v20-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-v20-cyrillic_latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-v20-cyrillic_latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --page-max: 1440px;
  --content-max: 1210px;
  --gutter: 115px;
  --frame: 15px;               /* відступ панелей від краю екрана */
  --content-pad: calc((100% - var(--content-max)) / 2);  /* центрування контенту у full-bleed панелях */

  --c-white: #FEFEFE;
  --c-black: #1B1B1B;
  --c-navy: #1A2141;
  --c-gold: #F2D1A5;
  --c-gray: #F2F2F2;
  --c-gray-text: #E1E1E1;

  --font-display: 'Noah', 'Jost', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --radius: 4px;
  --section-gap: 120px;
  --header-h: 78px;
}
@media (max-width: 1024px) {
  :root { --gutter: 40px; --section-gap: 90px; }
}
@media (max-width: 640px) {
  :root { --gutter: 15px; --section-gap: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-black);
  background: var(--c-white);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; padding: 0; color: inherit; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 1241px) {
  .container { max-width: calc(var(--content-max) + var(--gutter) * 2); }
}

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  text-transform: uppercase;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}
@media (max-width: 1024px) {
  .h2 { font-size: 40px; }
}
@media (max-width: 640px) {
  .h2 { font-size: 28px; }
  .h3 { font-size: 18px; }
}

/* ---------- Badge (eyebrow) ---------- */
.badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--c-gray);
  color: var(--c-black);
  opacity: .8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .48px;
  text-transform: uppercase;
}
.badge--white { background: var(--c-white); }
.badge--glass { background: rgba(254, 254, 254, .1); color: var(--c-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--c-gold); color: var(--c-black); }
.btn--gold:hover { background: #e9bf87; }
.btn--navy { background: var(--c-navy); color: var(--c-white); }
.btn--navy:hover { background: #232c55; }
.btn--outline-dark { border: 1px solid var(--c-black); color: var(--c-black); padding: 14px 24px 15px; }
.btn--outline-dark:hover { background: var(--c-black); color: var(--c-white); }
.btn--outline-light { border: 1px solid var(--c-white); color: var(--c-white); padding: 15px 24px; }
.btn--outline-light:hover { background: rgba(254,254,254,.12); }

/* ---------- Tags (бейджі на фото) ---------- */
.tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
}
.tag--green { top: 5px; left: 5px; background: rgba(5,139,17,.8); color: #DFFFE2; }
.tag--white { top: 5px; left: 5px; background: rgba(254,254,254,.9); color: var(--c-black); }
.tag--gold { top: 5px; left: 5px; background: rgba(203,146,0,.9); color: #F0EEE2; }
.tag--blue { top: 5px; left: 5px; background: rgba(5,76,139,.8); color: #DFEDFF; }
/* flex-wrapper знімає абсолютні зміщення */
.catalog-card__tags { position: absolute; top: 5px; left: 5px; z-index: 2; display: flex; align-items: center; gap: 5px; }
.catalog-card__tags .tag { position: relative; top: auto; left: auto; }

/* ---------- Link more ---------- */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #1A2141;
}
.link-more svg { transition: transform .2s; }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Slider nav ---------- */
.slider-nav { display: flex; align-items: center; gap: 20px; }
.slider-nav__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  color: var(--c-black); opacity: .85; transition: opacity .2s;
}
.slider-nav__btn:hover { opacity: 1; }
.slider-nav__btn.is-disabled { opacity: .3; pointer-events: none; }
.slider-nav__counter { display: inline-flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
.slider-nav__current { opacity: .4; }
.slider-nav__track { position: relative; width: 79px; height: 1.3px; background: rgba(27,27,27,.1); }
.slider-nav__bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 33%; background: #1B1B1B; transition: width .4s;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(254,254,254,.95);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--frame);
}
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { width: 131px; height: 44px; }
.site-header__nav { display: flex; gap: 25px; margin-left: 56px; margin-right: auto; }
.site-header__nav a { opacity: .8; transition: opacity .2s; white-space: nowrap; }
.site-header__nav a:hover { opacity: 1; }
.site-header__burger { display: none; }

@media (max-width: 1024px) {
  .site-header__nav { display: none; }
  .site-header__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
  }
  .site-header__burger span {
    display: block; height: 2px; width: 100%;
    background: var(--c-black); border-radius: 2px;
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease;
  }
  body.menu-open .site-header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .site-header__burger span:nth-child(2) { opacity: 0; }
  body.menu-open .site-header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  /* макет моб: бургер зліва / лого / золотий пілл справа */
  .site-header__burger { order: -1; margin-left: -8px; }
  .site-header__logo { margin-left: 8px; }
  .site-header__cta {
    margin-left: auto;
    background: var(--c-gold); color: var(--c-black); border-color: var(--c-gold);
    padding: 10px 14px; font-size: 12px; white-space: nowrap;
  }
  .site-header__logo img { width: 104px; height: 35px; }
}

/* Мобільна панель меню — плавна поява з-під хедера, без стрибка верстки
   (display:none→block спричиняв reflow і «зависання» анімації хреста) */
.site-header__mobile {
  position: fixed;
  top: var(--menu-top, var(--header-h)); left: 0; right: 0;
  z-index: 49;
  max-height: calc(100vh - var(--menu-top, var(--header-h)));
  max-height: calc(100dvh - var(--menu-top, var(--header-h))); /* dvh: не ховаємось за тулбар */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--c-white);
  padding: 10px var(--gutter) 24px;
  box-shadow: 0 16px 30px rgba(27,27,27,.12);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  pointer-events: none;
}
body.menu-open .site-header__mobile {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
  pointer-events: auto;
}
.site-header__mobile a {
  display: block; padding: 12px 0; font-size: 18px;
  border-bottom: 1px solid rgba(27,27,27,.08);
}
@media (prefers-reduced-motion: reduce) {
  .site-header__burger span,
  .site-header__mobile { transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin: var(--header-h) var(--frame) 0;
  border-radius: var(--radius);
  min-height: 646px;
  display: flex;
}
.hero__media {
  position: absolute; inset: 0 0 -27px;
  border-radius: var(--radius);
  background: url('../img/cta-bg.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0 0 -27px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,18,35,.35) 0%, rgba(15,18,35,.55) 60%, rgba(15,18,35,.75) 100%);
}
/* низ героя: прямокутник + круглий виступ під стрілку */
.hero__media, .hero__overlay {
  -webkit-mask:
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 27px) no-repeat,
    radial-gradient(circle 45px at 50% calc(100% - 45px), #000 98%, transparent 100%);
  mask:
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 27px) no-repeat,
    radial-gradient(circle 45px at 50% calc(100% - 45px), #000 98%, transparent 100%);
  mask-composite: add;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding-top: 60px;
  padding-bottom: 70px;
  padding-left: calc(var(--gutter) - var(--frame));
  padding-right: calc(var(--gutter) - var(--frame));
}
.hero__content { max-width: 720px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--c-white);
  margin: 15px 0 42px;
}
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__card {
  width: 325px;
  flex-shrink: 0;
  padding: 5px;
  background: rgba(254, 254, 254, .86);
  backdrop-filter: blur(.5px);
  -webkit-backdrop-filter: blur(.5px);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__card-img { width: 100%; height: 210px; object-fit: cover; border-radius: 3px; display: block; }
.hero__card-body { padding: 19px 14px 14px; color: var(--c-black); }
.hero__card-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero__card-text { font-size: 16px; line-height: 1.4; opacity: .6; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: -27px;
  transform: translateX(-50%);
  width: 90px; height: 90px;
  padding-top: 28px;
  border-radius: 50%;
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 1024px) {
  .hero { min-height: 0; }
  .hero__inner { flex-direction: column-reverse; align-items: stretch; padding-top: 0; padding-bottom: 80px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero__content { max-width: 100%; padding-top: 8px; }
  .hero__title { font-size: 44px; }
  .hero__card { width: 100%; max-width: 480px; transform: none; margin: 24px auto 16px; }
}
@media (max-width: 640px) {
  .hero { margin-left: 0; margin-right: 0; border-radius: 0; }
  .hero__inner { padding-bottom: 64px; }
  .hero__title { font-size: 36px; margin: 15px 0 24px; }
  .hero__actions .btn--outline-light { display: none; }
  .hero__card { width: 246px; max-width: 246px; margin: 15px 0 24px auto; }
  .hero__card-img { height: 124px; }
  .hero__card-body { padding: 14px 10px; }
  .hero__media, .hero__overlay { border-radius: 0; }
  .hero__media, .hero__overlay {
    inset: 0 0 -24px;
    -webkit-mask:
      linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 24px) no-repeat,
      radial-gradient(circle 43.5px at calc(100% - 66.5px) calc(100% - 43.5px), #000 98%, transparent 100%);
    mask:
      linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 24px) no-repeat,
      radial-gradient(circle 43.5px at calc(100% - 66.5px) calc(100% - 43.5px), #000 98%, transparent 100%);
    mask-composite: add;
  }
  .hero__scroll {
    width: 87px; height: 87px;
    padding-top: 26px;
    left: auto; right: 23px;
    bottom: -24px;
    transform: none;
  }
}

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 40px 0 0; }
.stats__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid #F4F1ED;
}
.stats__item { display: flex; align-items: center; gap: 7px; }
.stats__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
}
.stats__num i {
  font-style: normal;
  color: var(--c-gold);
}
.stats__label { font-size: 16px; line-height: 1.1; max-width: 90px; }
.stats__label sup { font-size: .65em; line-height: 0; vertical-align: super; }

@media (max-width: 1024px) {
  .stats__row { flex-wrap: wrap; }
  .stats__item { width: calc(50% - 12px); }
}
@media (max-width: 640px) {
  .stats { padding: 36px 0 0; }
  /* ліва колонка по контенту, права стартує одразу після неї →
     числа правої колонки на одній вертикалі і нічого не виходить за край */
  .stats__row {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    row-gap: 32px;
    padding-bottom: 36px;
  }
  /* порядок елементів як у макеті */
  .stats__item:nth-child(3) { order: 1; }
  .stats__item { gap: 8px; }
  .stats__label { max-width: 100px; }
}

/* ============================================================
   ABOUT — 7 років відповідальності
   ============================================================ */
.home-about { padding: var(--section-gap) 0 0; }
.home-about__grid {
  display: grid;
  grid-template-columns: 590px 1fr;
  gap: 100px;
  align-items: stretch;
}
.home-about__media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-about__media .badge { margin-bottom: 24px; }
.home-about__media img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--radius);
}
.home-about .h2 { font-size: 40px; }
.home-about__lead { margin: 32px 0 56px; opacity: .6; line-height: 1.1; }
.home-about__list { margin-bottom: 100px; }
.home-about__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #F4F1ED;
}
.home-about__item:first-child { padding-top: 0; }
.home-about__item:last-child { border-bottom: none; padding-bottom: 0; }
.home-about__item-title { font-weight: 600; font-size: 16px; line-height: 1.1; }
.home-about__icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: var(--radius);
  background: var(--c-gray);
  color: var(--c-black);
}

@media (max-width: 1024px) {
  .home-about__grid { grid-template-columns: 1fr; gap: 40px; }
  .home-about__grid .home-about__media { order: 2; padding-top: 0; }
  .home-about__grid .home-about__content { order: 1; }
  .home-about__media img { flex: none; height: 420px; }
  .home-about__list { margin-bottom: 44px; }
}
@media (max-width: 640px) {
  /* порядок як у макеті: бейдж → заголовок → лід → список → кнопка → фото */
  .home-about__grid { display: flex; flex-direction: column; gap: 0; }
  .home-about__media { display: contents; }
  .home-about__media .badge { order: -1; margin-bottom: 16px; }
  .home-about__media img { order: 10; margin-top: 30px; flex: none; height: 270px; }
  .home-about .h2 { font-size: 30px; }
  .home-about__lead { margin: 30px 0; }
  .home-about__list { margin-bottom: 30px; }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  position: relative;
  margin: var(--section-gap) var(--frame) 0;
  padding: 100px 0;
  background: var(--c-gray);
  border-radius: var(--radius);
}
/* декор: золоті діагональні лінії над секцією, праворуч */
.projects__deco {
  position: absolute;
  top: -104px;
  right: 24px;
  width: 230px;
  height: 163px;
  z-index: 1;
  pointer-events: none;
}
.projects__deco svg { display: block; width: 100%; height: 100%; }
.projects__deco path { fill: var(--c-gold); }
/* у цій секції відступ панелі 100px (контент 1210 = 1 широка + 2 вузькі) */
.projects .container { padding-left: 100px; padding-right: 100px; }
/* круглий бейдж SCROLL DOWN збоку секції */
.projects__badge { position: absolute; right: 90px; bottom: -60px; width: 150px; height: auto; z-index: 4; pointer-events: none; }
.projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.projects__head-main { display: flex; flex-direction: column; gap: 32px; max-width: 687px; }
.projects__head-titles { display: flex; flex-direction: column; gap: 16px; }
.projects__sub { opacity: .6; font-size: 16px; line-height: 1.1; }

/* ---------- Reusable slider ---------- */
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; gap: 30px; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slider__slide { flex: 0 0 auto; }
/* миттєвий стан без анімації (ініт/resize) */
.slider--noanim .slider__track, .slider--noanim .slider__slide { transition: none; }

.projects__slider { margin-bottom: 40px; }
.projects-card { position: relative; width: 280px; transition: width .55s cubic-bezier(.4, 0, .2, 1); }
.projects-card.is-wide { width: 590px; }
.projects-card__overlay { position: absolute; inset: 0; z-index: 3; }
.projects-card__media { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; padding: 5px; border-radius: var(--radius); overflow: hidden; height: 260px; }
.projects-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.projects-card__media .tag { position: relative; top: auto; left: auto; z-index: 2; }
.projects-card__body { padding-top: 20px; }
.projects-card__body .h3 { font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.1; }
.projects-card__text { margin: 12px 0 20px; font-size: 16px; line-height: 1.1; opacity: .6; }

@media (max-width: 1024px) {
  .projects { padding: 64px 0; }
  .projects .container { display: flex; flex-direction: column; gap: 36px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .projects__head { display: contents; }
  .projects__head-main { order: 0; }
  .projects__slider { order: 1; margin-bottom: 0; }
  .projects__slider .projects-card, .projects-card.is-wide { width: 100%; }
  .slider__track { gap: 20px; }
  .projects-card__media { height: 300px; }
  .slider-nav { order: 2; width: 100%; }
  .slider-nav__counter { flex: 1; }
  .slider-nav__track { flex: 1; width: auto; }
  .projects__all { order: 3; }
  .projects__deco { width: 160px; height: 113px; top: -56px; right: 16px; }
  .projects__badge { right: 40px; width: 120px; bottom: -52px; }
}
@media (max-width: 640px) {
  .projects { padding: 64px 0; }
  .projects .container { gap: 30px; }
  .slider__track { gap: 16px; }
  .projects-card__media { height: 240px; }
  .projects__deco { display: none; }
  .projects__badge { right: 20px; width: 104px; bottom: -44px; }
  .projects__all { width: max-content; }
}

/* Rotating scroll badge */
.scroll-badge {
  position: absolute;
  right: 90px;
  bottom: -60px;
  width: 140px; height: 140px;
  z-index: 4;
  background: var(--c-navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.scroll-badge__text {
  position: absolute; inset: 8px;
  width: calc(100% - 16px); height: calc(100% - 16px);
  animation: spin 18s linear infinite;
}
.scroll-badge__text text {
  font-size: 9.5px;
  letter-spacing: 2.5px;
  fill: var(--c-white);
  opacity: .85;
}
.scroll-badge__logo img { width: 30px; height: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1024px) {
  .scroll-badge { right: 40px; width: 120px; height: 120px; }
}
@media (max-width: 640px) {
  .scroll-badge { right: 20px; width: 104px; height: 104px; bottom: -44px; }
  .scroll-badge__logo img { width: 24px; height: 37px; }
}

/* ============================================================
   PORTFOLIO — Здані об'єкти
   ============================================================ */
.portfolio { position: relative; padding: var(--section-gap) 0 0; }
.portfolio__dots { position: absolute; left: 52px; top: 245px; width: 210px; height: auto; z-index: 0; pointer-events: none; }
.portfolio__head { position: relative; z-index: 1; text-align: center; margin-bottom: 56px; }
.portfolio__head .h2 { margin: 16px 0; }
.portfolio__quote { opacity: .6; font-size: 16px; }
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 30px;
}
.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card__overlay-link { position: absolute; inset: 0; z-index: 3; }
.portfolio-card--s1 { grid-column: span 8; height: 360px; }
.portfolio-card--s2 { grid-column: span 16; height: 360px; }
.portfolio-card--s3 { grid-column: span 16; height: 360px; }
.portfolio-card--s4 { grid-column: span 8; height: 360px; }
/* теги: рядок зверху-зліва (рік + назва) */
.portfolio-card__tags { position: absolute; top: 5px; left: 5px; z-index: 2; display: flex; gap: 5px; }
.portfolio-card__tags .tag { position: static; font-size: 14px; padding: 8px 12px; }
.portfolio-card__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 80px 24px 24px;
  color: var(--c-white);
  background: linear-gradient(180deg, rgba(15,18,35,0) 0%, rgba(15,18,35,.72) 72%);
}
.portfolio-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.portfolio-card__text { font-size: 16px; line-height: 1.1; opacity: .8; max-width: 302px; }
/* на десктопі підпис лише у великій (s2) картці */
.portfolio-card--s1 .portfolio-card__info, .portfolio-card--s3 .portfolio-card__info, .portfolio-card--s4 .portfolio-card__info { display: none; }

@media (max-width: 1024px) {
  .portfolio__dots { display: none; }
  .portfolio__grid { gap: 20px; }
  .portfolio-card--s1, .portfolio-card--s2, .portfolio-card--s3, .portfolio-card--s4 { grid-column: span 24; height: 340px; }
  /* підпис показуємо на всіх картках */
  .portfolio-card--s1 .portfolio-card__info, .portfolio-card--s3 .portfolio-card__info, .portfolio-card--s4 .portfolio-card__info { display: block; }
}
@media (max-width: 640px) {
  .portfolio__grid { gap: 15px; }
  .portfolio-card--s1, .portfolio-card--s2, .portfolio-card--s3, .portfolio-card--s4 { height: 270px; }
  .portfolio-card__info { padding: 60px 24px 18px; }
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us { margin: var(--section-gap) var(--frame) 0; }
.why-us__panel { display: flex; align-items: stretch; gap: 30px; }
.why-us__media { flex: 0 0 calc(50% - 15px); }
.why-us__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
.why-us__content {
  flex: 0 0 calc(50% - 15px);
  background: var(--c-navy);
  border-radius: var(--radius);
  padding: 100px;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.why-us__head { display: flex; flex-direction: column; gap: 16px; }
.why-us__title { margin: 0; }
.why-us__lead { opacity: .6; font-size: 16px; line-height: 1.1; }
/* сітка причин */
.why-us__grid { display: flex; flex-direction: column; }
.why-us__row { display: flex; align-items: stretch; gap: 26px; padding: 30px 0; border-top: 1px solid rgba(254,254,254,.06); }
.why-us__row:first-child { border-top: none; padding-top: 0; }
.why-us__row:last-child { padding-bottom: 0; }
.why-us__item { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; }
.why-us__item-body { display: flex; flex-direction: column; gap: 12px; }
.why-us__item-title { font-weight: 600; font-size: 16px; line-height: 1.1; }
.why-us__item-text { opacity: .6; font-size: 16px; line-height: 1.1; }
.why-us__item-num { font-size: 12px; font-weight: 600; color: var(--c-gold); text-transform: uppercase; line-height: 1.1; }
.why-us__vline { width: 1px; align-self: stretch; background: rgba(254,254,254,.06); flex-shrink: 0; }
.why-us__deco { display: none; }

@media (max-width: 1024px) {
  .why-us__content { padding: 60px; min-width: 0; }
  .why-us__item { min-width: 0; }
}
@media (max-width: 640px) {
  .why-us { margin-left: 0; margin-right: 0; }
  .why-us__panel { flex-direction: column-reverse; gap: 0; }
  .why-us__media { flex: none; height: 460px; }
  .why-us__media img { border-radius: 0; }
  .why-us__content { flex: none; border-radius: 0; padding: 64px 15px 48px; gap: 30px; }
  .why-us__row { padding: 20px 0; }
  .why-us__row:first-child { padding-top: 0; }
  .why-us__row:last-child { padding-bottom: 0; }
}


/* ============================================================
   CONSTRUCTION
   ============================================================ */
.construction { position: relative; padding: var(--section-gap) 0 0; }
/* декор: золоті діагональні лінії, праворуч вгорі (як у секції projects) */
.construction__deco {
  position: absolute;
  top: -20px;
  right: 180px;
  width: 230px;
  height: 163px;
  z-index: 1;
  pointer-events: none;
}
.construction__deco svg { display: block; width: 100%; height: 100%; }
.construction__deco path { fill: var(--c-gold); }
.construction__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.construction__head-main { max-width: 622px; display: flex; flex-direction: column; gap: 32px; }
.construction__head-titles { display: flex; flex-direction: column; gap: 16px; }
.construction__sub { opacity: .6; font-size: 16px; line-height: 1.1; }
.construction__slider { margin-bottom: 40px; }
.construction__slider .slider__slide { width: calc((100% - 60px) / 3); }
.construction-card { position: relative; }
.construction-card__overlay { position: absolute; inset: 0; z-index: 3; }
.construction-card__media { position: relative; border-radius: var(--radius); overflow: hidden; height: 210px; }
.construction-card__media img { width: 100%; height: 100%; object-fit: cover; }
.construction-card__body { padding-top: 20px; }
.construction-card__body .h3 { font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.1; }
.construction-card__text { margin: 12px 0 20px; font-size: 16px; line-height: 1.1; opacity: .6; }

@media (max-width: 1024px) {
  .construction .container { display: flex; flex-direction: column; gap: 36px; }
  .construction__head { display: contents; }
  .construction__head-main { order: 0; }
  .construction__slider { order: 1; margin-bottom: 0; }
  .construction__slider .slider__slide { width: 100%; }
  .construction__slider .slider__track { gap: 16px; }
  .construction .slider-nav { order: 2; }
  .construction__all { order: 3; }
}
@media (max-width: 640px) {
  .construction .container { gap: 30px; }
  .construction__all { width: max-content; }
  .construction__deco { display: none; }
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { padding: var(--section-gap) 0 0; }
.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.reviews__head .badge { margin-bottom: 16px; }
.reviews__google {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 15px;
}
.reviews__stars { color: var(--c-gold); letter-spacing: 2px; }
.reviews__slider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.reviews__slider .reviews-card:nth-child(n+3) { display: none; }
.reviews-card {
  display: flex;
  gap: 20px;
  background: var(--c-gray);
  border-radius: var(--radius);
  padding: 28px;
}
.reviews-card__content { display: flex; flex-direction: column; flex: 1; }
.reviews-card__quote {
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: .6;
  color: var(--c-gold);
  margin-bottom: 18px;
}
.reviews-card__text { font-size: 14.5px; line-height: 1.55; opacity: .8; flex: 1; }
.reviews-card__meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-top: 22px;
}
.reviews-card__name { font-weight: 700; font-size: 15px; }
.reviews-card__object { font-size: 13px; opacity: .6; margin-top: 4px; }
.reviews-card__stars { color: var(--c-gold); letter-spacing: 2px; font-size: 14px; }
.reviews-card__photo {
  width: 145px;
  border-radius: var(--radius);
  object-fit: cover;
  align-self: stretch;
}

@media (max-width: 1024px) {
  .reviews__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .reviews__slider { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .reviews-card { flex-direction: column-reverse; padding: 20px; }
  .reviews-card__photo { width: 100%; height: 200px; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; margin: var(--section-gap) var(--frame) 0; }
.cta__panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 100px;
  display: flex;
  justify-content: center;
  background: url('../img/cta-bg.jpg') center/cover no-repeat;
}
/* кружечок «скрол вниз» — зверху-праворуч, над панеллю; чеврон унизу кола */
.cta__scroll {
  position: absolute;
  top: -65px;
  right: 100px;
  z-index: 3;
  width: 103px;
  height: 103px;
  border-radius: 50%;
  background: var(--c-white);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
}
.cta__panel::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
}
.cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__title { margin: 15px 0 0; font-size: 40px; }
.cta__text { font-weight: 600; margin: 30px 0; }

@media (max-width: 1024px) {
  .cta__panel { padding: 72px 40px; }
  .cta__scroll { display: none; }
}
@media (max-width: 640px) {
  /* картинка CTA на всю ширину */
  .cta { margin-left: 0; margin-right: 0; }
  .cta__panel { padding: 100px 15px; border-radius: 0; }
  .cta__title { font-size: 26px; }
  .cta__text { margin: 20px 0 28px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin: var(--frame); margin-top: var(--frame); }
.cta + .site-footer { margin-top: var(--frame); }
.site-footer__panel {
  background: var(--c-navy);
  border-radius: var(--radius);
  padding: 80px var(--gutter) 30px;
  color: var(--c-white);
}
.site-footer__main {
  display: flex;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 80px;
}
.site-footer__brand { width: 290px; flex-shrink: 0; }
.site-footer__logo { width: 131px; height: 44px; }
.site-footer__line { display: block; width: 128px; height: 1px; background: var(--c-gold); margin: 20px 0; }
.site-footer__slogan { opacity: .8; margin-bottom: 41px; }
.site-footer__socials { display: flex; gap: 12px; }
.site-footer__socials a { color: var(--c-gold); transition: opacity .2s; }
.site-footer__socials a:hover { opacity: .7; }
.site-footer__cols { display: flex; gap: 56px; }
.site-footer__col-title {
  font-weight: 600;
  color: var(--c-white);
  border-left: 1px solid var(--c-gold);
  padding-left: 10px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.site-footer__nav a { display: block; opacity: .8; line-height: 1.1; margin-bottom: 12px; transition: opacity .2s; }
.site-footer__nav a:last-child { margin-bottom: 0; }
.site-footer__nav a:hover { opacity: 1; }
.site-footer__contact {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--c-gray-text); font-weight: 500;
  margin-bottom: 16px; max-width: 204px;
}
.site-footer__contact:last-child { margin-bottom: 0; }
.site-footer__contact svg { flex-shrink: 0; margin-top: 2px; color: var(--c-gold); }
.site-footer__hours { opacity: .8; line-height: 1.9; }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(247,244,240,.06);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
}
.site-footer__bottom a, .site-footer__bottom p { opacity: .8; }
.site-footer__bottom a:hover { opacity: 1; }

@media (max-width: 1024px) {
  .site-footer__panel { padding: 56px var(--gutter) 24px; }
  .site-footer__main { flex-direction: column; gap: 40px; margin-bottom: 48px; }
  .site-footer__cols { flex-wrap: wrap; gap: 40px; }
}
@media (max-width: 640px) {
  /* футер на всю ширину впритул до CTA */
  .site-footer { margin: 0; }
  .cta + .site-footer { margin-top: 0; }
  .site-footer__panel { border-radius: 0; padding: 48px var(--gutter) 20px; }
  /* макет моб: соцмережі поруч із лого зверху */
  .site-footer__brand { position: relative; width: 100%; }
  .site-footer__socials { position: absolute; top: 0; right: 0; }
  /* макет моб: Навігація + Контакти у 2 колонки, Режим роботи рядком нижче */
  .site-footer__cols { flex-direction: row; flex-wrap: wrap; gap: 36px 24px; }
  .site-footer__col { flex: 1 1 calc(50% - 12px); min-width: 0; }
  /* нижній бар: два посилання в ряд, копірайт окремим рядком нижче */
  .site-footer__bottom { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 10px 24px; text-align: left; padding: 14px 16px; }
  .site-footer__bottom p { order: 1; width: 100%; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.h2--sm { font-size: 40px; }
@media (max-width: 640px) {
  .h2--sm { font-size: 26px; }
}
.site-header__nav a.is-active { opacity: 1; font-weight: 600; }

/* ---------- About hero ---------- */
.about-hero { margin-top: var(--header-h); }
.about-hero__media {
  position: relative;
  margin: 0 var(--frame);
}
.about-hero__media > img {
  display: block;
  width: 100%;
  height: 432px;
  object-fit: cover;
}

/* ---------- About intro (окрема секція під героєм) ---------- */
.about-intro { margin-top: 30px; padding-bottom: 100px; border-bottom: 1px solid #F4F1ED; }
.about-intro__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}
.about-intro__head-main { max-width: 723px; }
.about-intro__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 15px;
}
.about-intro__text { width: 385px; flex-shrink: 0; opacity: .6; }

@media (max-width: 1024px) {
  .about-intro__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about-intro__text { width: 100%; }
  .about-intro__title { font-size: 40px; }
}
@media (max-width: 640px) {
  .about-intro { margin-top: 0; padding-bottom: 40px; }
  .about-intro__title { font-size: 28px; }
  .about-intro__head { padding-top: 16px; }
  .about-hero__media > img { height: 304px; }
}

/* ---------- History ---------- */
.history { margin: 0 var(--frame); }
.history__panel {
  position: relative;
  display: flex;
  gap: 100px;
  align-items: center;
  background: var(--c-gray);
  border-radius: var(--radius);
  padding: 100px max(var(--frame), var(--content-pad));
}
/* контент усередині сірої панелі тримаємо над декором */
.history__media, .history__content { position: relative; z-index: 1; }
/* декор: золоті діагональні смужки знизу-праворуч */
.history__deco {
  position: absolute;
  bottom: -80px;
  right: 80px;
  width: 230px;
  height: 163px;
  z-index: 0;
  pointer-events: none;
}
.history__deco svg { display: block; width: 100%; height: 100%; }
.history__deco path { fill: var(--c-gold); }
.history__media {
  width: 590px;
  flex-shrink: 0;
  align-self: stretch;
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.history__media img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--radius);
}
.history__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.history__content > .btn { align-self: flex-start; }
.history__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.history__head { display: contents; }
.history__badge-mob { display: none; }
.history__img-mob { display: none; }
.history__lead { opacity: .6; line-height: 1.1; }
.history__timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.history__timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 17px;
  bottom: 17px;
  width: 1.5px;
  background: var(--c-gold);
}
.history__row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}
.history__row:last-child::after {
  content: '';
  position: absolute;
  left: 29px;
  top: 17px;
  bottom: 0;
  width: 3px;
  background: var(--c-gray);
  z-index: 0;
}
.history__year {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--c-gold);
  border-radius: 3px;
  outline: 9px solid var(--c-gray);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-navy);
}
.history__row-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}
.history__row-title { font-size: 16px; font-weight: 600; line-height: 1.1; }
.history__row-text { font-size: 16px; font-weight: 400; line-height: 1.1; opacity: .6; }

@media (max-width: 1024px) {
  .history__panel { gap: 60px; padding: 60px; }
  .history__media { width: 340px; }
}
@media (max-width: 640px) {
  .history { margin: 0; }
  .history__deco { display: none; }
  .history__panel {
    flex-direction: column;
    padding: 64px 15px;
    gap: 30px;
    border-radius: 0;
  }
  .history__media { display: none; }
  .history__content { gap: 30px; }
  .history__body { gap: 30px; }
  .history__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .history__badge-mob { display: inline-flex; }
  .history__img-mob {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: var(--radius);
  }
  .history__lead { text-align: center; }
  .history__head .h2 { text-align: center; }
  .history__content > .btn { align-self: center; }
}

/* ---------- Mission & values ---------- */
.mission { padding: var(--section-gap) 0 0; }
.mission__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 26px; }
.mission__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 44px;
  text-transform: uppercase;
}
.mission__grid { display: flex; flex-direction: column; }
.mission__row { display: flex; align-items: stretch; gap: 0; padding: 30px 0; }
.mission__sep { height: 1px; background: rgba(27,27,27,.06); }
.mission__divider { width: 1px; flex-shrink: 0; background: rgba(27,27,27,.06); margin: 0 30px; }
.mission__item { flex: 1; display: flex; flex-direction: column; gap: 0; }
.mission__item-body { display: flex; flex-direction: column; }
.mission__num { display: block; font-size: 12px; font-weight: 600; color: var(--c-gold); text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; margin-bottom: 20px; }
.mission__item-title { font-weight: 600; font-size: 16px; line-height: 1.3; margin-bottom: 12px; }
.mission__item-text { font-size: 16px; line-height: 1.5; opacity: .6; }

@media (max-width: 640px) {
  .mission__head { align-items: flex-start; text-align: left; }
  .mission__quote { font-size: 30px; line-height: 33px; }
  .mission__row { flex-direction: column; padding: 0; gap: 0; }
  .mission__sep { display: none; }
  .mission__divider { display: none; }
  .mission__item { padding: 24px 0; border-top: 1px solid rgba(27,27,27,.06); }
  .mission__row:first-child .mission__item:first-child { border-top: none; }
}

/* ---------- City wide image ---------- */
.city-image {
  position: relative;
  margin: 60px var(--frame) 0;
}
.city-image__media img {
  width: 100%;
  height: 372px;
  object-fit: cover;
  border-radius: var(--radius);
}
.scroll-badge--light {
  position: absolute;
  left: 50%;
  bottom: -70px;
  transform: translateX(-50%);
  right: auto;
  width: 140px;
  height: 140px;
  background: none;
}

@media (max-width: 640px) {
  .city-image { margin-top: 0; }
  .city-image__media img { height: 220px; }
}

/* ---------- Team ---------- */
.team { position: relative; padding: 110px 0 0; }
/* декор: крапки за картками, праворуч угорі */
.team__dots {
  position: absolute;
  top: 200px;
  right: 100px;
  width: 210px;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.team__head, .team__grid { position: relative; z-index: 1; }
.team__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.team__head .badge { display: inline-block; }
.team__head .h2--sm { margin: 0; }
.team__lead { opacity: .6; line-height: 1.1; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.team-card__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
}
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__role {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 8px 12px;
  border-radius: 3px;
  background: rgba(254,254,254,.9);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}
.team-card__name {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
}
.team-card__text { margin-top: 12px; opacity: .6; line-height: 1.4; font-size: 16px; }
.team__nav { display: none; }

@media (max-width: 1024px) {
  .team__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .team__head { align-items: center; text-align: center; }
  .team__dots { display: none; }
  .team__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
  }
  .team__grid::-webkit-scrollbar { display: none; }
  .team-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  .team-card__media { height: 300px; }
  .team__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
  }
  .team__nav-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
  }
  .team__nav-prev svg { opacity: .4; }
  .team__nav-cur { opacity: .4; font-size: 14px; font-weight: 500; line-height: 1.1; }
  .team__nav-total { font-size: 14px; font-weight: 500; line-height: 1.1; }
  .team__nav-bar {
    flex: 1;
    height: 1.3px;
    background: rgba(27,27,27,.1);
    position: relative;
  }
  .team__nav-fill {
    position: absolute;
    left: 0; top: 0; height: 100%;
    background: var(--c-navy);
    width: 25%;
    transition: width .3s ease;
  }
}

/* ---------- Why us: list variant (about page) ---------- */
.why-list__list { display: flex; flex-direction: column; margin-top: 12px; }
.why-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(254,254,254,.14);
}
.why-list__item:first-child { padding-top: 0; }
.why-list__item:last-child { padding-bottom: 0; border-bottom: none; }
.why-list__item-body { flex: 1; min-width: 0; max-width: 420px; }
.why-list__item-title { font-weight: 700; font-size: 16px; line-height: 1.1; }
.why-list__item-text { margin-top: 8px; font-size: 14px; line-height: 1.55; opacity: .65; }
.why-list__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: rgba(254,254,254,.08);
  color: var(--c-white);
}

/* ---------- Guarantees ---------- */
.guarantees {
  margin: 100px var(--frame) 0;
  background: var(--c-gray);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.guarantees__inner {
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.guarantees__head {
  max-width: var(--content-max);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.guarantees__head-top { display: flex; flex-direction: column; align-items: center; gap: 16px; align-self: stretch; }
.guarantees__title { margin: 0; }
.guarantees__lead { opacity: .6; font-size: 16px; line-height: 1.1; }
.guarantees__row {
  width: 100%;
  max-width: var(--content-max);
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(27,27,27,.06);
  padding: 30px 0;
}
.guarantees__item { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; }
.guarantees__item-body { display: flex; flex-direction: column; gap: 12px; }
.guarantees__item-title { font-weight: 600; font-size: 16px; line-height: 1.1; }
.guarantees__item-text { opacity: .6; font-size: 16px; line-height: 1.1; }
.guarantees__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.guarantees__sep { width: 1px; align-self: stretch; background: rgba(27,27,27,.06); flex-shrink: 0; }

@media (max-width: 640px) {
  .guarantees { margin-left: 0; margin-right: 0; margin-top: 0; border-radius: 0; }
  .guarantees__inner { padding: 64px 15px 34px; align-items: flex-start; gap: 37px; }
  .guarantees__head { text-align: left; align-items: flex-start; max-width: none; gap: 30px; }
  .guarantees__head-top { align-items: flex-start; gap: 16px; }
  .guarantees__br { display: none; }
  .guarantees__row { flex-direction: column; gap: 0; padding: 30px 0 0; }
  .guarantees__item { border-top: 1px solid rgba(27,27,27,.06); padding: 30px 0; }
  .guarantees__item:first-child { border-top: none; padding-top: 0; }
  .guarantees__item:last-child { padding-bottom: 0; }
  .guarantees__sep { display: none; }
}

/* ---------- Documents ---------- */
.documents { padding: var(--section-gap) 0 0; }
.documents__head { display: flex; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.documents__head-left { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; }
.documents__title { margin: 0; }
.documents__lead { width: 305px; flex-shrink: 0; opacity: .6; font-size: 16px; line-height: 1.1; }
.documents__grid { display: flex; flex-wrap: wrap; gap: 31px; }
.documents__card {
  flex: 0 0 calc(50% - 16px);
  padding: 30px;
  background: var(--c-navy);
  border-radius: var(--radius);
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: 30px;
}
.documents__card-body { flex: 1 1 0; display: flex; flex-direction: column; gap: 12px; }
.documents__card-head { display: flex; align-items: center; gap: 8px; }
.documents__card-title { margin: 0; font-size: 16px; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.documents__card-sub { margin: 0; font-size: 16px; opacity: .6; line-height: 1.1; }
.documents__vsep { width: 1px; align-self: stretch; background: rgba(254,254,254,.06); flex-shrink: 0; }
.documents__card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--c-gold);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .documents__head { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
  .documents__lead { width: 100%; }
  .documents__grid { gap: 15px; }
  .documents__card { flex: 0 0 100%; }
}
@media (max-width: 640px) {
  .documents__card { flex-direction: column; align-items: flex-start; }
  .documents__vsep { width: 100%; height: 1px; align-self: auto; }
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */

/* ---------- Page head (navy banner) ---------- */
.page-hero { margin: var(--header-h) var(--frame) 0; }
.page-hero__panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  min-height: 241px;
  padding: 70px var(--content-pad);
  background: var(--c-navy);
  border-radius: var(--radius);
  color: var(--c-white);
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 15px;
}
.page-hero__text { width: 385px; flex-shrink: 0; opacity: .7; font-size: 15px; }

@media (max-width: 1024px) {
  .page-hero__panel { flex-direction: column; align-items: flex-start; gap: 24px; padding: 48px 40px; }
  .page-hero__title { font-size: 40px; }
  .page-hero__text { width: 100%; }
}
@media (max-width: 640px) {
  /* макет моб: вміст банера по центру */
  .page-hero__panel { padding: 56px 20px; align-items: center; text-align: center; }
  .page-hero__title { font-size: 32px; }
  .page-hero__text { opacity: .6; }
}

/* ---------- Filters ---------- */
.filters { padding: 40px 0 0; }
.filters__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters__group { display: flex; align-items: center; gap: 16px; }
.filters__label { font-size: 14px; opacity: .4; text-transform: uppercase; letter-spacing: 0.56px; }
.filters__chips { display: flex; align-items: center; }
.filters__chip {
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 16px;
  opacity: .8;
  background: var(--c-white);
  transition: opacity .2s, background-color .2s, color .2s;
}
.filters__chip:hover { opacity: 1; }
.filters__chip.is-active {
  background: var(--c-navy);
  color: var(--c-white);
  opacity: 1;
}
.filters__select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  opacity: .8;
}
.filters__divider { width: 1px; height: 22px; background: #ECE8E4; }
/* мобільний згорнутий рядок «Фільтр + лічильник» */
.filters__mobile { display: none; }
.filters__mobile-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; text-transform: uppercase;
}
.filters__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-gold); }
.filters__count { font-size: 16px; opacity: .8; }

@media (max-width: 1024px) {
  .filters__divider { display: none; }
  .filters__row { flex-wrap: wrap; justify-content: flex-start; gap: 16px 24px; }
}
@media (max-width: 640px) {
  /* макет моб: ховаємо десктопні групи, показуємо «Фільтр / N показано» */
  .filters__row { display: none; }
  .filters__mobile { display: flex; justify-content: space-between; align-items: center; }
}

/* ---------- Projects grid ---------- */
.catalog { padding: 40px 0 0; }
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
}
.catalog-card { position: relative; grid-column: span 1; display: flex; flex-direction: column; }
.catalog-card--wide { grid-column: span 2; }
.catalog-card__overlay { position: absolute; inset: 0; z-index: 3; }
.catalog-card__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  flex-shrink: 0;
}
.catalog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card__body { padding-top: 20px; display: flex; flex-direction: column; gap: 20px; }
.catalog-card--wide .catalog-card__body { flex: 1; justify-content: space-between; }
.catalog-card__info { display: flex; flex-direction: column; gap: 12px; }
.catalog-card__body .h3 { font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.1; }
.catalog-card__text { margin: 0; font-size: 16px; line-height: 1.1; opacity: .6; max-width: 417px; }

@media (max-width: 1024px) {
  .catalog__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .catalog-card--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .catalog__grid { grid-template-columns: 1fr; gap: 30px; }
  .catalog-card--wide { grid-column: span 1; }
  .catalog-card__media { height: 240px; }
}

/* ============================================================
   PROJECT PAGE
   ============================================================ */

/* ---------- Project hero ---------- */
.project-hero {
  position: relative;
  margin: var(--header-h) var(--frame) 0;
  border-radius: var(--radius);
  overflow: hidden;
  height: 600px;
  display: flex;
  outline: 1px rgba(254,254,254,0.10) solid;
  outline-offset: -1px;
}
.project-hero__media {
  position: absolute; inset: 0;
  background: url('../img/prj-hero.jpg') center/cover no-repeat;
}
.project-hero__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
}
.project-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding-bottom: 50px;
}
.project-hero__left {
  max-width: 614px;
  flex-shrink: 0;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.project-hero__meta { display: flex; flex-direction: column; gap: 30px; }
.project-hero__heading { display: flex; flex-direction: column; gap: 15px; }
.project-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}
.project-hero__text { opacity: .60; width: 385px; font-size: 16px; margin: 0; }
.project-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.project-hero__tags { display: flex; gap: 5px; flex-shrink: 0; }
.project-hero__tags .tag { position: relative; top: auto; left: auto; }

@media (max-width: 1024px) {
  .project-hero { height: 480px; }
  .project-hero__inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: 40px; }
  .project-hero__tags { display: none; }
  .project-hero__left { max-width: none; }
  .project-hero__title { font-size: 40px; }
}
@media (max-width: 640px) {
  .project-hero { height: 525px; margin-left: 0; margin-right: 0; border-radius: 0; outline: none; }
  .project-hero__inner { padding-bottom: 30px; }
  .project-hero__left { gap: 24px; }
  .project-hero__meta { gap: 24px; }
  .project-hero__title { font-size: 36px; }
  .project-hero__text { width: auto; }
  .project-hero__actions .btn--outline-light { display: none; }
  .project-hero__actions .btn { width: 100%; }
}

/* ---------- Status bar (mobile only — desktop has tags in hero) ---------- */
.project-bar { display: none; }
@media (max-width: 1024px) {
  .project-bar { display: block; margin: 20px var(--frame) 0; }
  .project-bar__inner { display: flex; gap: 8px; flex-wrap: wrap; }
  .project-bar .tag { position: relative; top: auto; left: auto; }
}
@media (max-width: 640px) {
  .project-bar { margin: 14px 0 0; }
  .project-bar__inner { padding: 0 var(--frame); }
}

/* ---------- Characteristics + about ---------- */
.project-specs { position: relative; padding: var(--section-gap) 0 0; }
.project-specs__grid {
  display: grid;
  grid-template-columns: 505px 1fr;
  gap: 116px;
}
.project-specs__chars-title {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 30px;
}
/* Рівний 2-колонковий грід: заповнюється рядок-за-рядком (по 4 в колонці).
   Лінії сітки — це 1px проміжки, крізь які проступає фон-контейнера. */
.project-specs__table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(27,27,27,.08);
}
.project-specs__cell {
  background: var(--c-white);
  padding: 18px 0;
  min-width: 0;
}
.project-specs__cell:nth-child(odd)  { padding-right: 40px; }
.project-specs__cell:nth-child(even) { padding-left: 40px; }
.project-specs__label {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .56px;
  opacity: .4;
  margin-bottom: 8px;
}
.project-specs__value { font-weight: 600; font-size: 16px; }
.tag-static {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}
.tag-static--green { background: rgba(5,139,17,.80); color: #DFFFE2; }
.tag-static--gold { background: rgba(203,146,0,.9); color: #F0EEE2; }
.tag-static--blue { background: rgba(5,76,139,.8); color: #DFEDFF; }
.project-specs__about { display: flex; flex-direction: column; gap: 32px; justify-content: center; }
.project-specs__about .badge { margin-bottom: 0; align-self: flex-start; }
.project-specs__about-head { display: flex; flex-direction: column; gap: 16px; }
.project-specs__about-title { margin: 0; }
.project-specs__about-text { opacity: .6; line-height: 1.5; margin: 0; max-width: 589px; }
.project-specs__badge {
  position: absolute;
  right: 115px;
  bottom: -190px;
  left: auto;
  transform: none;
}

@media (max-width: 1024px) {
  .project-specs__grid { grid-template-columns: 1fr; gap: 30px; }
  .project-specs__grid .project-specs__chars { order: 2; }
  .project-specs__grid .project-specs__about { order: 1; }
  .project-specs__badge { display: none; }
}
@media (max-width: 640px) {
  .project-specs__cell:nth-child(odd)  { padding-right: 16px; }
  .project-specs__cell:nth-child(even) { padding-left: 16px; }
  .project-specs__label { font-size: 12px; }
  .project-specs__value { font-size: 15px; }
}

/* ---------- Advantages (dark full-bleed, icon top / mobile: text+icon row) ---------- */
.advantages {
  margin: var(--section-gap) 0 0;
  background: #1A2141;
  color: var(--c-white);
  padding: 100px 0;
}
.advantages__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.advantages__head .h2--sm { color: var(--c-white); }
.advantages__rows { display: flex; flex-direction: column; }
.advantages__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 30px 0;
}
.advantages__row + .advantages__row { border-top: 1px solid rgba(254,254,254,.06); }
.advantages__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 30px;
}
.advantages__item + .advantages__item {
  border-left: 1px solid rgba(254,254,254,.06);
  padding-left: 30px;
  padding-right: 0;
}
.advantages__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background: rgba(254,254,254,.10);
  flex-shrink: 0;
}
.advantages__text { display: flex; flex-direction: column; gap: 12px; }
.advantages__item-title { font-weight: 600; font-size: 16px; color: var(--c-white); margin: 0; }
.advantages__item-text { font-size: 16px; line-height: 1.1; opacity: .60; color: var(--c-white); margin: 0; }

@media (max-width: 640px) {
  .advantages { padding: 64px 0; }
  .advantages__head { align-items: flex-start; text-align: left; }
  .advantages__row { display: contents; }
  .advantages__rows { display: flex; flex-direction: column; }
  .advantages__item {
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-left: none;
  }
  .advantages__item + .advantages__item {
    border-left: none;
    border-top: 1px solid rgba(254,254,254,.06);
    padding-left: 0;
  }
  .advantages__rows > .advantages__item:first-child { border-top: none; }
  .advantages__text { flex: 1; }
}

/* ---------- Gallery ---------- */
.gallery { padding: var(--section-gap) 0 0; }
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.gallery__head .badge { margin-bottom: 16px; }
.gallery__lead { margin-top: 32px; opacity: .6; font-size: 16px; max-width: 622px; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 238px 238px;
  gap: 30px;
}
.gallery__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__slider-nav { display: none; }

@media (max-width: 1024px) {
  .gallery__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .gallery__grid { grid-template-rows: 200px 200px; gap: 16px; }
}
@media (max-width: 640px) {
  .gallery .container { display: flex; flex-direction: column; gap: 40px; }
  .gallery__head { display: contents; }
  .gallery__all { order: 3; width: 100%; justify-content: center; }
  .gallery__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    order: 2;
  }
  .gallery__grid::-webkit-scrollbar { display: none; }
  .gallery__item, .gallery__item--big, .gallery__item--wide {
    flex: 0 0 100%;
    height: 260px;
    grid-column: unset;
    grid-row: unset;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .gallery__slider-nav { display: flex; order: 2; }
}

/* ---------- Plans ---------- */
.plans { margin: var(--section-gap) 0 0; }
.plans__panel {
  background: var(--c-gray);
  padding: 100px var(--content-pad);
}
.plans__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.plans__head .badge { margin-bottom: 16px; }
.plans__toggle {
  display: flex;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 4px;
}
.plans__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.plans-card { position: relative; }
.plans-card__overlay { position: absolute; inset: 0; z-index: 3; }
.plans-card__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-white);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.plans-card__media img { max-height: 100%; object-fit: contain; }
.plans-card__body { padding-top: 20px; display: flex; flex-direction: column; gap: 20px; }
.plans-card__info { display: flex; flex-direction: column; gap: 24px; }
.plans-card__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.plans-card__title { font-size: 16px; margin: 0; }
.plans-card__price {
  background: var(--c-gold);
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.plans-card__text { font-size: 16px; opacity: .60; margin: 0; }

@media (max-width: 1024px) {
  .plans__panel { padding: 56px 40px; }
  .plans__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .plans__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .plans__panel { padding: 40px 20px; }
  .plans__grid { grid-template-columns: 1fr; }
}

/* ---------- Progress (navy panel) ---------- */
.progress { margin: 15px 0 0; }
.progress__panel {
  background: var(--c-navy);
  padding: 100px var(--content-pad);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.progress__head { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.progress__head-top { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.progress__head-top .h2--sm { margin: 0; }
.progress__lead { opacity: .6; font-size: 16px; margin: 0; }
.progress__lower { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.progress__card {
  background: rgba(254,254,254,.10);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.progress__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.progress__card-title { font-weight: 600; text-transform: uppercase; font-size: 16px; margin: 0; }
.progress__percent { font-family: var(--font-display); font-weight: 500; font-size: 32px; color: var(--c-gold); margin: 0; }
.progress__progress { display: flex; flex-direction: column; gap: 20px; }
.progress__bar { position: relative; height: 6px; border-radius: 200px; background: var(--c-navy); }
.progress__bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 200px; background: var(--c-gold); }
.progress__stages { display: flex; justify-content: space-between; gap: 24px; }
.progress__stage { display: flex; flex-direction: column; gap: 8px; }
.progress__stage-label { font-size: 14px; text-transform: uppercase; letter-spacing: .56px; opacity: .4; }
.progress__stage-status { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.progress__cards-wrap { display: flex; flex-direction: column; gap: 40px; width: 100%; align-items: flex-start; }
.progress__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.progress-card { position: relative; }
.progress-card__overlay { position: absolute; inset: 0; z-index: 3; }
.progress-card__media { position: relative; border-radius: var(--radius); overflow: hidden; height: 210px; }
.progress-card__media img { width: 100%; height: 100%; object-fit: cover; }
.progress-card__body { padding-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.progress-card__title { font-size: 16px; text-transform: uppercase; color: var(--c-white); margin: 0; }
.progress-card__text { font-size: 16px; opacity: .6; margin: 0; }
.progress-card__link { color: var(--c-gold); }
.progress__slider-nav { display: none; }
.slider-nav--light { color: var(--c-white); }
.slider-nav--light .slider-nav__btn { color: var(--c-white); }
.slider-nav--light .slider-nav__track { background: rgba(254,254,254,.15); }
.slider-nav--light .slider-nav__bar { background: var(--c-white); }

@media (max-width: 1024px) {
  .progress__panel { padding: 56px 40px; }
  .progress__card { padding: 30px; }
  .progress__stages { flex-wrap: wrap; gap: 20px 40px; }
  .progress__cards { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .progress { margin: 0; }
  .progress__panel { padding: 64px 15px; }
  .progress__progress { flex-direction: row; align-items: flex-start; gap: 30px; }
  .progress__bar { width: 6px; height: auto; align-self: stretch; flex-shrink: 0; }
  .progress__bar-fill { width: 100% !important; height: 68%; bottom: auto; }
  .progress__stages { flex-direction: column; gap: 40px; justify-content: flex-start; flex: 1; }
  .progress__slider-nav { display: flex; order: 2; }
  .progress__cards-wrap > .btn { order: 3; }
  .progress__cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
  }
  .progress__cards::-webkit-scrollbar { display: none; }
  .progress-card { flex: 0 0 100%; scroll-snap-align: start; }
}

/* ============================================================
   CONTACTS PAGE
   ============================================================ */

/* Центрований варіант банера + кружечок-скрол */
.page-hero--center .page-hero__panel {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px max(20px, var(--content-pad)) 90px;
}
.page-hero--center .page-hero__title { margin-top: 15px; }
.page-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  width: 103px;
  height: 103px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-white);
  text-decoration: none;
}
.page-hero__scroll svg {
  position: absolute;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 640px) {
  .page-hero--center .page-hero__panel { padding: 64px 15px 80px; }
  .page-hero__scroll { width: 103px; height: 103px; bottom: -25px; }
}

/* ---------- Contact info cards ---------- */
.contact-info { padding: 76px 0 0; }
.contact-info__row {
  display: grid;
  grid-template-columns: 322fr 341fr 487fr;
  gap: 30px;
}
.contact-info__card {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  background: var(--c-gray);
  border-radius: var(--radius);
}
.contact-info__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-gold);
}
.contact-info__label {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .56px;
  opacity: .4;
  margin-bottom: 8px;
}
.contact-info__value { font-weight: 600; font-size: 16px; line-height: 1.1; }

@media (max-width: 1024px) {
  .contact-info__row { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 640px) {
  .contact-info { padding: 60px 0 0; }
}

/* ---------- Map + form ---------- */
.contact-form { padding: 30px 0 0; }
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-form__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 527px;
}
.contact-form__map img { width: 100%; height: 100%; object-fit: cover; }
.contact-form__form {
  border: none;
  outline: 1px solid rgba(27,27,27,.06);
  outline-offset: -1px;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-form__form-head { display: flex; flex-direction: column; gap: 10px; }
.contact-form__form-head p { margin: 0; }
.contact-form__form-title { font-weight: 600; text-transform: uppercase; font-size: 16px; line-height: 1.1; }
.contact-form__form-sub { font-size: 16px; opacity: .6; line-height: 1.1; }
.contact-form__fields { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-form__field {
  width: 100%;
  height: 54px;
  padding: 0 24px;
  border: none;
  outline: 1px solid rgba(27,27,27,.10);
  outline-offset: -1px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  color: var(--c-black);
  background: var(--c-white);
  transition: outline-color .2s;
}
.contact-form__field::placeholder { color: rgba(27,27,27,.60); }
.contact-form__field:focus { outline-color: var(--c-navy); }
.contact-form__field--area { height: auto; min-height: 120px; flex: 1; padding: 16px 24px; resize: none; }
.contact-form__submit { width: 100%; margin-top: 22px; }
.contact-form__caption {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  opacity: .6;
  line-height: 1.1;
}

@media (max-width: 1024px) {
  .contact-form__grid { grid-template-columns: 1fr; }
  .contact-form__form { order: -1; }
  .contact-form__map { min-height: 527px; max-height: 527px; }
}
@media (max-width: 640px) {
  .contact-form__form { padding: 30px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form__field--area { height: 126px; flex: none; }
}

/* ---------- Schedule / messengers / socials ---------- */
.contact-channels { padding: 30px 0 0; }
.contact-channels__panel {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  background: var(--c-gray);
  border-radius: var(--radius);
  padding: 44px 65px;
}
.contact-channels__col { flex: 1; }
.contact-channels__col:first-child { flex: none; width: 286px; }
.contact-channels__divider {
  width: 1px;
  align-self: stretch;
  flex-shrink: 0;
  background: rgba(27,27,27,.06);
}
.contact-channels__col-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .56px;
  opacity: .4;
  margin-bottom: 12px;
}
.contact-channels__rows { display: flex; flex-direction: column; }
.contact-channels__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(27,27,27,.06);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}
.contact-channels__row:last-child { border-bottom: none; }
.contact-channels__pill {
  background: rgba(254,254,254,.9);
  border-radius: 3px;
  padding: 8px 12px 8px 8px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}
.contact-channels__pill--muted { opacity: .3; }
.contact-channels__msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--c-white);
  border-radius: 8px;
  color: var(--c-black);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.contact-channels__msg:hover { background: var(--c-gold); }
.contact-channels__msg svg { width: 22px; height: 22px; display: block; }
.contact-channels__soc { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.contact-channels__soc svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-channels__handle { font-size: 12px; opacity: .6; }

@media (max-width: 1024px) {
  /* мобайл/планшет: усі секції в одну колонку, одна під одною,
     з горизонтальними роздільниками — як у макеті Figma */
  .contact-channels__panel { flex-direction: column; gap: 30px; padding: 30px; }
  .contact-channels__col,
  .contact-channels__col:first-child { flex: none; width: 100%; }
  .contact-channels__divider { width: 100%; height: 1px; align-self: stretch; }
}
@media (max-width: 640px) {
  .contact-channels__panel { padding: 24px; gap: 24px; }
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq { padding: var(--section-gap) 0; }
.faq__cats { display: flex; flex-direction: column; gap: 60px; }
.faq__cat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .56px;
  opacity: .4;
  margin-bottom: 20px;
}
.faq__list { border-top: 1px solid rgba(27,27,27,.10); }
.faq__item { border-bottom: 1px solid rgba(27,27,27,.10); }
.faq__btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.faq__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .4;
  transition: opacity .2s;
}
.faq__item.is-open .faq__icon { opacity: 1; }
.faq__body { display: none; }
.faq__item.is-open .faq__body { display: block; }
.faq__text {
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(27,27,27,.7);
  max-width: 720px;
}

@media (max-width: 640px) {
  .faq__btn { font-size: 15px; padding: 18px 0; }
  .faq__cats { gap: 44px; }
}

/* ============================================================
   PURCHASE PAGE (Умови купівлі)
   ============================================================ */
.purchase-intro { padding: 64px 0 0; }
.purchase-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.purchase-intro__text { font-size: 16px; opacity: .7; line-height: 1.65; margin: 0; }

/* Payment method cards */
.purchase-pay { padding: 64px 0 0; }
.purchase-pay__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.purchase-pay__card {
  border-radius: var(--radius);
  padding: 36px 30px;
  background: var(--c-gray);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.purchase-pay__card--accent { background: var(--c-navy); color: var(--c-white); }
.purchase-pay__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  color: var(--c-navy);
  opacity: .12;
}
.purchase-pay__card--accent .purchase-pay__num { color: var(--c-white); opacity: .18; }
.purchase-pay__name { font-weight: 700; font-size: 18px; text-transform: uppercase; margin: -4px 0 0; }
.purchase-pay__desc { font-size: 14px; opacity: .65; line-height: 1.55; margin: 0; flex: 1; }
.purchase-pay__card--accent .purchase-pay__desc { opacity: .75; }

/* Installment plans */
.purchase-inst { padding: 64px 0 0; }
.purchase-inst__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.purchase-inst__card {
  background: var(--c-gray);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.purchase-inst__name { font-weight: 700; font-size: 20px; text-transform: uppercase; margin: 0 0 6px; }
.purchase-inst__sub { font-size: 13px; opacity: .45; margin: 0 0 28px; }
.purchase-inst__rows { display: flex; flex-direction: column; }
.purchase-inst__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(27,27,27,.08);
  font-size: 14px;
}
.purchase-inst__row:last-child { border-bottom: none; padding-bottom: 0; }
.purchase-inst__key { opacity: .55; }
.purchase-inst__val { font-weight: 600; }

/* Steps timeline */
.purchase-timeline { padding: 64px 0 var(--section-gap); }
.purchase-timeline__list { display: flex; flex-direction: column; }
.purchase-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(27,27,27,.08);
  align-items: start;
}
.purchase-step:last-child { border-bottom: none; padding-bottom: 0; }
.purchase-step__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--c-navy);
  opacity: .15;
}
.purchase-step__title { font-weight: 700; font-size: 16px; text-transform: uppercase; margin: 0 0 6px; line-height: 1.2; }
.purchase-step__text { font-size: 14px; opacity: .65; line-height: 1.6; margin: 0; }

/* Section headings shared */
.section-head { margin-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 1024px) {
  .purchase-intro__grid { grid-template-columns: 1fr; gap: 28px; }
  .purchase-pay__grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .purchase-inst__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .purchase-pay__grid { grid-template-columns: 1fr; }
  .purchase-intro { padding: 50px 0 0; }
  .purchase-pay { padding: 50px 0 0; }
  .purchase-inst { padding: 50px 0 0; }
  .purchase-timeline { padding: 50px 0 var(--section-gap); }
}

/* ============================================================
   DOCUMENTS PAGE — додаткові стилі
   (базовий .documents блок — спільний з about/project)
   ============================================================ */
.documents-page { padding: var(--section-gap) 0; }
.documents-page__cats { display: flex; flex-direction: column; gap: 60px; }

/* Сертифікати — світлі картки */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--c-gray);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background .18s;
}
.cert-card:hover { background: #e8e8e8; }
.cert-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-white);
  border-radius: var(--radius);
}
.cert-body { flex: 1; min-width: 0; }
.cert-name { font-weight: 600; font-size: 14px; margin: 0 0 3px; line-height: 1.3; }
.cert-meta { font-size: 12px; opacity: .45; margin: 0; }
.cert-ext {
  flex-shrink: 0;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px;
  background: rgba(27,27,27,.07); color: rgba(27,27,27,.5);
}
.documents-page__note {
  margin-top: 48px;
  background: var(--c-gray);
  border-radius: var(--radius);
  padding: 24px 30px;
  display: flex; gap: 16px; align-items: flex-start;
}
.documents-page__note-icon { flex-shrink: 0; color: var(--c-gold); margin-top: 1px; }
.documents-page__note-text { font-size: 14px; opacity: .7; line-height: 1.65; margin: 0; }

@media (max-width: 1024px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cert-grid { grid-template-columns: 1fr; }
  .documents-page { padding: var(--section-gap) 0 64px; }
}

/* ============================================================
   WP: Lightbox галереї + дропдаун фільтра локацій
   ============================================================ */
body.lono-lb-lock { overflow: hidden; }
.lono-lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(15,18,35,.92); padding: 40px; }
.lono-lb.is-open { display: flex; }
.lono-lb__img { max-width: 90vw; max-height: 86vh; border-radius: var(--radius); object-fit: contain; }
.lono-lb__close { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; color: var(--c-white); font-size: 34px; line-height: 1; }
.lono-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(254,254,254,.12); color: var(--c-white); font-size: 30px; line-height: 1; }
.lono-lb__prev { left: 24px; }
.lono-lb__next { right: 24px; }
.lono-lb__nav:hover, .lono-lb__close:hover { opacity: .8; }
.filters__menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 200px; background: var(--c-white); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(27,27,27,.14); padding: 6px; display: none; flex-direction: column; }
.filters__menu.is-open { display: flex; }
.filters__menu-item { text-align: left; padding: 9px 12px; border-radius: 3px; font-size: 15px; }
.filters__menu-item:hover { background: var(--c-gray); }
@media (max-width: 640px) {
  .lono-lb { padding: 16px; }
  .lono-lb__nav { width: 44px; height: 44px; }
  .lono-lb__prev { left: 8px; }
  .lono-lb__next { right: 8px; }
}

/* ---------- Мобільний попап фільтрів каталогу ---------- */
.filters__popup { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(15,18,35,.5); }
.filters__popup.is-open { display: block; }
.filters__popup-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: var(--c-white); border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.filters__popup-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); text-transform: uppercase; font-size: 20px; margin-bottom: 18px; }
.filters__popup-close { font-size: 30px; line-height: 1; width: 36px; height: 36px; }
.filters__popup-group { margin-bottom: 18px; }
.filters__popup-group > p { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; opacity: .5; margin: 0 0 10px; }
.filters__popup-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__popup-apply { width: 100%; padding: 14px; border-radius: var(--radius); background: var(--c-navy); color: var(--c-white); font-weight: 600; font-size: 16px; margin-top: 4px; }

/* ---------- Мобільні слайдери: нативний scroll-snap (без transform-смикання) ---------- */
@media (max-width: 1024px) {
  .slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .slider__viewport::-webkit-scrollbar { display: none; }
  .slider__track { transform: none !important; }
  .slider__slide { scroll-snap-align: start; }
}

/* ============================================================
   БЛОГ — список (home.php / category.php) + стаття (single.php).
   Картки переюзують стиль «.construction-card».
   ============================================================ */
/* Фільтр по категоріях — посилання у вигляді чипів */
.blog-filters { padding: 40px 0 0; }
.blog-filters .filters__chips { flex-wrap: wrap; gap: 8px; }
.blog-filters .filters__chip { text-decoration: none; color: inherit; cursor: pointer; }
.blog-filters .filters__chip.is-active { color: var(--c-white); }

/* Сітка статей */
.blog-list { padding: 40px 0 0; }
.blog-list__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 30px; }
.blog-list__date { display: block; font-size: 13px; letter-spacing: .3px; opacity: .4; margin-bottom: 10px; }
.blog-list__empty { opacity: .6; padding: 20px 0 40px; }

/* Пагінація */
.blog-list__pagination { margin-top: 64px; }
.blog-list__pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.blog-list__pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid rgba(27,27,27,.12); border-radius: var(--radius);
  font-size: 15px; text-decoration: none; color: var(--c-black);
  transition: background .2s, color .2s, border-color .2s;
}
.blog-list__pagination .page-numbers:hover { border-color: var(--c-navy); }
.blog-list__pagination .page-numbers.current { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }
.blog-list__pagination .page-numbers.dots { border: none; }

/* Стаття: шапка — рядок «бейдж зліва / дата справа», заголовок по центру нижче */
.page-hero--article .page-hero__panel { flex-direction: column; align-items: stretch; justify-content: center; gap: 22px; }
.page-hero--article .blog-single__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-hero--article .page-hero__date { opacity: .7; font-size: 15px; flex-shrink: 0; white-space: nowrap; }
.page-hero--article .page-hero__title { text-align: center; }
@media (max-width: 640px) {
  .page-hero--article .blog-single__meta { gap: 12px; }
  .page-hero--article .page-hero__date { font-size: 13px; }
}

/* Стаття: контент на всю контент-ширину сайту (1210), як решта сторінок */
.blog-single__inner { max-width: var(--content-max); margin: 0 auto; padding: 56px 0 0; }
.blog-single__media { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.blog-single__media img { width: 100%; height: auto; display: block; }
.blog-single__back { margin-top: 48px; }
.blog-single__back:hover svg { transform: translateX(-4px); }
a.badge--glass { text-decoration: none; }

/* Контент статті (the_content) */
.lono-content { font-size: 17px; line-height: 1.7; color: var(--c-black); }
.lono-content > *:first-child { margin-top: 0; }
.lono-content p { margin: 0 0 1.2em; }
.lono-content h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.2; margin: 1.6em 0 .5em; }
.lono-content h3 { font-size: 22px; line-height: 1.25; margin: 1.4em 0 .4em; }
.lono-content h4 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 1.3em 0 .4em; }
.lono-content h5, .lono-content h6 { font-size: 16px; font-weight: 600; margin: 1.2em 0 .4em; }
.lono-content ul, .lono-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.lono-content li { margin-bottom: .5em; }
.lono-content a { color: var(--c-gold); text-decoration: underline; }
.lono-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.lono-content blockquote,
.lono-content .wp-block-quote { margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--c-gold); }
.lono-content blockquote p { font-size: 20px; line-height: 1.5; font-weight: 500; }
.lono-content blockquote cite,
.lono-content .wp-block-quote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; opacity: .55; }

/* --- Стандартні Gutenberg-блоки --- */
.lono-content > .wp-block-heading:first-child,
.lono-content figure:first-child { margin-top: 0; }
.lono-content figure,
.lono-content .wp-block-image { margin: 1.8em 0; }
.lono-content figure img,
.lono-content .wp-block-image img { border-radius: var(--radius); display: block; }
.lono-content figcaption,
.lono-content .wp-block-image figcaption { margin-top: 10px; font-size: 13px; text-align: center; opacity: .5; }
.lono-content .wp-block-separator,
.lono-content hr { border: none; height: 1px; background: rgba(27,27,27,.12); margin: 2.4em 0; }
.lono-content .wp-block-pullquote { border-top: 2px solid var(--c-gold); border-bottom: 2px solid var(--c-gold); padding: 1.2em 0; margin: 2em 0; text-align: center; }
.lono-content .wp-block-table { margin: 1.8em 0; overflow-x: auto; }
.lono-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lono-content th, .lono-content td { padding: 12px 16px; border: 1px solid rgba(27,27,27,.10); text-align: left; }
.lono-content th { font-weight: 600; background: var(--c-gray); }
.lono-content .wp-block-button { margin: 1.4em 0; }
.lono-content .wp-block-button__link { display: inline-block; padding: 14px 28px; border-radius: var(--radius); background: var(--c-navy); color: var(--c-white); font-weight: 600; text-decoration: none; }
.lono-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.lono-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; margin: 1.8em 0; }
.lono-content .wp-block-column { flex: 1 1 0; min-width: 220px; }
.lono-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.lono-content .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.lono-content .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.lono-content .alignwide, .lono-content .alignfull { width: 100%; }
.lono-content > *:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .blog-list__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 640px) {
  .blog-filters { padding: 28px 0 0; }
  .blog-list__grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-single__inner { padding-top: 36px; }
  .lono-content { font-size: 16px; }
}

/* ============================================================
   ГЕНПЛАН — інтерактивне зображення з областями + попап
   ============================================================ */
.genplan { padding: 40px 0 var(--section-gap); }
.genplan--project { padding: var(--section-gap) 0; }
.genplan__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.genplan__title { margin: 0; }
.genplan__hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 22px; font-size: 15px; opacity: .55;
}
.genplan__hint svg { flex-shrink: 0; }
.genplan__stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  background: var(--c-gray);
}
.genplan__img { display: block; width: 100%; height: auto; }
.genplan__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.genplan__zone {
  fill: transparent;
  stroke: transparent;
  stroke-width: .35;
  cursor: pointer;
  pointer-events: auto;
  transition: fill .2s ease, stroke .2s ease;
}
.genplan__zone:hover,
.genplan__zone.is-active {
  fill: rgba(203,146,0,.30);
  stroke: var(--c-gold);
}
.genplan__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-black);
  font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  cursor: pointer;
  z-index: 2;
  transition: transform .2s ease, background .2s ease;
}
.genplan__marker > span { position: relative; z-index: 1; line-height: 1; }
.genplan__marker::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--c-gold);
  opacity: .6;
  animation: gp-pulse 2s ease-out infinite;
}
.genplan__marker:hover,
.genplan__marker.is-active { transform: translate(-50%, -50%) scale(1.12); background: var(--c-white); }
@keyframes gp-pulse {
  0%   { transform: scale(1); opacity: .6; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Попап */
.genplan-popup { position: fixed; inset: 0; z-index: 1000; display: none; }
.genplan-popup.is-open { display: block; }
.genplan-popup__backdrop { position: absolute; inset: 0; background: rgba(15,18,35,.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.genplan-popup__panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(840px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(15,18,35,.35);
}
.genplan-popup__close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(254,254,254,.85);
  font-size: 26px; line-height: 1;
  color: var(--c-black); opacity: .65;
  transition: opacity .2s, background .2s;
}
.genplan-popup__close:hover { opacity: 1; background: var(--c-white); }
.genplan-popup__grid { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100vh - 32px); overflow-y: auto; }
.genplan-popup__info { padding: 34px; min-width: 0; }
.genplan-popup__media { background: var(--c-gray); display: grid; place-items: center; padding: 24px; }
.genplan-popup__plan { max-width: 100%; max-height: 420px; object-fit: contain; }
.genplan-popup__noplan { font-size: 14px; opacity: .45; }

.genplan-popup__status { margin-bottom: 16px; }
.genplan-popup__num { display: block; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; opacity: .45; margin-bottom: 6px; }
.genplan-popup__title { font-family: var(--font-display); font-size: 26px; line-height: 1.15; margin: 0 0 18px; }
.genplan-popup__specs { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid rgba(27,27,27,.10); }
.genplan-popup__specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(27,27,27,.08); font-size: 14px; }
.genplan-popup__specs li span { opacity: .55; }
.genplan-popup__specs li b { font-weight: 600; font-size: 15px; }
.genplan-popup__text { font-size: 14px; line-height: 1.6; opacity: .7; margin: 0 0 18px; }
.genplan-popup__more { margin-bottom: 22px; }

/* Форма бронювання */
.gp-book { border-top: 1px solid rgba(27,27,27,.10); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.gp-book__title { font-weight: 600; font-size: 15px; margin: 0 0 2px; }
.gp-book__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gp-book__input {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(27,27,27,.16); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; color: var(--c-black);
  transition: border-color .2s;
}
.gp-book__input:focus { outline: none; border-color: var(--c-navy); }
.gp-book--err .gp-book__input:placeholder-shown { border-color: #d23b3b; }
.gp-book__submit { margin-top: 4px; justify-content: center; }
.gp-book__msg { font-size: 14px; font-weight: 600; margin: 4px 0 0; }
.gp-book__ok { color: #058b11; }
.gp-book__err { color: #d23b3b; }

@media (max-width: 760px) {
  .genplan-popup__panel { width: min(480px, calc(100vw - 32px)); }
  .genplan-popup__grid { grid-template-columns: 1fr; }
  .genplan-popup__media { order: -1; min-height: 180px; padding: 18px; }
  .genplan-popup__plan { max-height: 240px; }
}
@media (max-width: 640px) {
  .genplan__marker { width: 30px; height: 30px; font-size: 13px; }
  /* Попап як нижній лист */
  .genplan-popup__panel {
    top: auto; bottom: 0; left: 0;
    transform: none;
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
  .genplan-popup__grid { max-height: 92vh; overflow-y: auto; }
  .genplan-popup__info { padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .genplan__marker::before { animation: none; }
}
