/* ============================================
   ROI ESTATE – Developer Project Template
   Design System Tokens + Mobile-First Styles
   ============================================ */

/* --- RESET & TOKENS --- */
:root {
  /* Colors */
  --primary: #3564F2;
  --primary-hover: #2850d0;
  --secondary: #CEAA62;
  --base: #0E1C39;
  --cream: #F5F2EF;
  --white: #ffffff;
  --black: #000000;
  --border-color-dark: rgba(0, 0, 0, 0.20);
  --border-color-light: rgba(255, 255, 255, 0.20);

  /* Typography */
  --font: "Source Sans 3", "source-sans-3-v19-latin_latin-ext", sans-serif;
  --text-xs: 1.26rem;
  --text-s: 1.42rem;
  --text-m: 1.80rem;
  --text-l: 2.025rem;
  --text-xl: 2.28rem;
  --text-xxl: 2.565rem;
  --heading-line-height: calc(4px + 2.4ex);
  --base-text-lh: calc(8px + 2.4ex);

  /* Spacing */
  --gutter: 2.4rem;
  --space-xs: 1.896rem;
  --space-s: 2.133rem;
  --space-m: 2.4rem;
  --space-l: 2.7rem;
  --space-xl: 3.038rem;
  --space-xxl: 3.42rem;
  --section-space-s: 4.80rem;
  --section-space-m: 6.00rem;
  --section-space-l: 7.50rem;
  --section-space-xl: 9.375rem;
  --content-width: 128rem;

  /* UI */
  --radius: 1rem;
  --btn-radius: 5rem;
  --transition: 0.3s ease-in-out;
  --transition-duration: 0.3s;
  --transition-timing: ease-in-out;
  --action-hover: #1F47C9;
  --btn-font-size: clamp(1.5rem, calc(0.208vw + 1.433rem), 1.7rem);
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.02em;
  --ff-sans: var(--font);
  --cta-primary-shadow: 0 8px 24px -8px rgba(53, 100, 242, 0.42);
  --cta-primary-shadow-hover: 0 14px 34px -12px rgba(53, 100, 242, 0.52);
  --cta-primary-lift: translateY(-2px);
  --box-shadow-m: 0 4px 4px -10px rgba(0, 0, 0, 0.04),
    0 13px 13px -10px rgba(0, 0, 0, 0.06),
    0 40px 60px -10px rgba(0, 0, 0, 0.08);
  --box-shadow-l: 0 2.7px 3.6px -5px rgba(0, 0, 0, 0.04),
    0 7.5px 10px -5px rgba(0, 0, 0, 0.06),
    0 18px 24.1px -5px rgba(0, 0, 0, 0.08),
    0 60px 80px -5px rgba(0, 0, 0, 0.10);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: var(--text-m);
  font-weight: 500;
  line-height: var(--base-text-lh);
  color: var(--base);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  --admin-bar-offset: 0px;
}

body.admin-bar {
  --admin-bar-offset: 46px;
}

@media (min-width: 783px) {
  body.admin-bar {
    --admin-bar-offset: 32px;
  }
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* ============================================
   BUTTONS — legacy .btn unified with .re-btn (see ui-kit.css)
   ============================================ */
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:visited { text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.4rem 2.8rem;
  font: inherit;
  font-size: var(--btn-font-size, clamp(1.5rem, calc(0.208vw + 1.433rem), 1.7rem));
  font-weight: var(--btn-font-weight, 600);
  letter-spacing: var(--btn-letter-spacing, 0.02em);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--btn-radius);
  border: 0.1rem solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-duration, 0.3s) var(--transition-timing, ease),
              color var(--transition-duration, 0.3s) var(--transition-timing, ease),
              border-color var(--transition-duration, 0.3s) var(--transition-timing, ease),
              transform var(--transition-duration, 0.3s) var(--transition-timing, ease),
              box-shadow var(--transition-duration, 0.3s) var(--transition-timing, ease);
  line-height: 1.2;
  max-width: 100%;
  text-align: center;
}

.btn--primary,
.btn-primary,
a.btn--primary,
a.btn-primary,
a.btn--primary:visited,
a.btn-primary:visited {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover,
.btn-primary:hover,
a.btn--primary:hover,
a.btn-primary:hover,
.btn--primary:focus,
.btn-primary:focus,
a.btn--primary:focus,
a.btn-primary:focus {
  background: var(--action-hover, #1F47C9);
  border-color: var(--action-hover, #1F47C9);
  color: var(--white);
}

.btn--outline,
a.btn--outline,
a.btn--outline:visited {
  background: transparent;
  color: var(--base);
  border-width: 0.2rem;
  border-color: var(--base);
}
.btn--outline:hover,
a.btn--outline:hover,
.btn--outline:focus,
a.btn--outline:focus {
  background: var(--base);
  color: var(--white);
  border-color: var(--base);
}

.btn--outline-light,
a.btn--outline-light,
a.btn--outline-light:visited {
  background: transparent;
  color: var(--white);
  border-width: 0.2rem;
  border-color: var(--white);
}
.btn--outline-light:hover,
a.btn--outline-light:hover,
.btn--outline-light:focus,
a.btn--outline-light:focus {
  background: var(--white);
  color: var(--base);
  border-color: var(--white);
}

.btn--dark,
a.btn--dark,
a.btn--dark:visited {
  background: var(--base);
  color: var(--white);
  border-color: var(--base);
}
.btn--dark:hover,
a.btn--dark:hover,
.btn--dark:focus,
a.btn--dark:focus {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   SECTION (base layout block)
   ============================================ */
.section {
  padding: var(--section-space-m) var(--gutter);
}

.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section--white {
  background: var(--white);
  color: var(--base);
}

.section--cream {
  background: var(--cream);
  color: var(--base);
}

.section--dark {
  background: var(--base);
  color: var(--white);
}

.section__heading {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
  text-wrap: pretty;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section--dark .section__heading {
  color: var(--white);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: var(--admin-bar-offset);
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem var(--gutter);
  transform: translateY(0);
  transition: transform 0.32s ease, background var(--transition), box-shadow var(--transition);
  will-change: transform;
}

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

.header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header--solid,
.header--solid.header--scrolled {
  background: rgba(14, 28, 57, 0.94);
  box-shadow: 0 10px 30px rgba(14, 28, 57, 0.16);
}

.header--solid .header__logo-img,
.header--solid.header--scrolled .header__logo-img {
  filter: none;
}

.header--solid .header__link,
.header--solid.header--scrolled .header__link,
.header--solid .header__dropdown-toggle,
.header--solid.header--scrolled .header__dropdown-toggle {
  color: var(--white);
}

.header--solid .header__burger span,
.header--solid.header--scrolled .header__burger span {
  background: var(--white);
}

.header--solid .header__link--current,
.header--solid .header__link:hover,
.header--solid.header--scrolled .header__link--current,
.header--solid.header--scrolled .header__link:hover {
  color: var(--secondary);
}

.header--solid .header__submenu,
.header--solid.header--scrolled .header__submenu {
  background: var(--base);
  border-color: rgba(255, 255, 255, 0.1);
}

.header--solid .header__submenu-link,
.header--solid.header--scrolled .header__submenu-link {
  color: rgba(255, 255, 255, 0.8);
}

.header--solid .header__submenu-icon,
.header--solid.header--scrolled .header__submenu-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--secondary);
}

.header--solid .header__submenu-link:hover,
.header--solid .header__submenu-link--current,
.header--solid.header--scrolled .header__submenu-link:hover,
.header--solid.header--scrolled .header__submenu-link--current {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.06);
}

.header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo-img {
  height: 3.6rem;
  width: auto;
  transition: filter var(--transition);
}

.header--scrolled .header__logo-img {
  filter: brightness(0) saturate(100%) invert(8%) sepia(30%) saturate(4500%) hue-rotate(207deg) brightness(95%) contrast(105%);
}

.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  z-index: 110;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.header--scrolled .header__burger span {
  background: var(--base);
}

.header__burger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.header__burger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav {
  display: flex;
  position: fixed;
  inset: var(--admin-bar-offset) 0 0 0;
  background: var(--base);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: calc(100dvh - var(--admin-bar-offset));
  padding: 9.6rem var(--gutter) 4rem;
  gap: 0;
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity var(--transition), visibility var(--transition);
}

.header__nav--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header__menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 48rem;
}

.header__menu-item {
  margin: 0;
  padding: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__menu-item:last-child {
  border-bottom: 0;
}

.header__link {
  display: flex;
  align-items: center;
  padding: 1.8rem 0.4rem;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.header__link:hover {
  color: var(--secondary);
}

.header__link--current {
  color: var(--secondary);
}

.header__link--cta {
  padding: 1rem 2.8rem;
  border: 0.2rem solid var(--primary);
  border-radius: var(--btn-radius);
  color: var(--primary);
}

.header__link--cta:hover {
  background: var(--primary);
  color: var(--white);
}

.header__link--toggle {
  cursor: pointer;
}

@media (max-width: 959px) {
  .header__menu-item--has-children:active {
    background: rgba(255, 255, 255, 0.04);
  }
}

/* --- Dropdown sub-menu (mobile-first accordion) --- */
.header__menu-item--has-children {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.header__menu-item--has-children>.header__link {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 1rem;
}

.header__dropdown-toggle {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 5.4rem;
  padding: 0 1.8rem;
  background: none;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition), background var(--transition);
}

.header__dropdown-toggle:hover,
.header__dropdown-toggle:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.header__chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.35s ease;
}

.header__dropdown-toggle[aria-expanded="true"] .header__chevron {
  transform: rotate(180deg);
}

.header--scrolled .header__dropdown-toggle {
  color: var(--base);
}

/* Mobile accordion: hidden by max-height, expands on .is-open */
.header__submenu {
  flex: 0 0 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8rem;
}

.header__menu-item--has-children.is-open>.header__submenu {
  max-height: 600px;
}

.header__menu-item--has-children.is-open>.header__dropdown-toggle {
  color: var(--secondary);
}

.header__submenu-item {
  margin: 0;
  padding: 0;
}

.header__submenu-link {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 1.8rem;
  width: 100%;
  font-size: 1.55rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
  transition: color var(--transition), background var(--transition);
}

.header__submenu-item:first-child .header__submenu-link {
  padding-top: 1.6rem;
}

.header__submenu-item:last-child .header__submenu-link {
  padding-bottom: 1.6rem;
}

.header__submenu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  flex: 0 0 auto;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--secondary);
  transition: background var(--transition), color var(--transition);
}

.header__submenu-text {
  display: inline-flex;
  align-items: center;
}

.header__submenu-link:hover,
.header__submenu-link--current {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.04);
}

.header__submenu-link:hover .header__submenu-icon,
.header__submenu-link--current .header__submenu-icon {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   1. HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Slideshow */
.hero__slideshow {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.hero__slide--active {
  opacity: 1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  will-change: transform;
}

/* Dots pagination */
.hero__dots {
  position: absolute;
  right: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

.hero__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero__dot--active {
  background: var(--white);
  transform: scale(1.3);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(14, 28, 57, 0.7) 0%,
      rgba(14, 28, 57, 0.5) 50%,
      rgba(14, 28, 57, 0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 12rem var(--gutter) 6rem;
  max-width: 80rem;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--text-s);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-bottom: 1.6rem;
}

/* Live beacon – pulsing dot */
.hero__beacon {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.hero__beacon::before,
.hero__beacon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: beacon-pulse 2s ease-out infinite;
}

.hero__beacon::after {
  animation-delay: 0.6s;
}

@keyframes beacon-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

.hero__title {
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
  color: var(--white);
  margin-bottom: 2rem;
  text-wrap: balance;
}

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

.hero__subtitle {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--base-text-lh);
  margin-bottom: 3.6rem;
  text-wrap: pretty;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: center;
}

.hero__cta-group .btn {
  font-size: clamp(1.5rem, 1.5vw, 1.9rem);
  padding: 1.4rem 3.6rem;
}

.btn--gold,
a.btn--gold,
a.btn--gold:visited {
  background: var(--secondary);
  color: var(--base);
  border-color: var(--secondary);
}
.btn--gold:hover,
a.btn--gold:hover,
.btn--gold:focus,
a.btn--gold:focus {
  background: color-mix(in srgb, var(--secondary) 85%, #000);
  border-color: color-mix(in srgb, var(--secondary) 85%, #000);
  color: var(--base);
}

.hero__scroll {
  position: absolute;
  bottom: 3.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================
   2. O PROJEKTU (v2)
   ============================================ */

/* -- Intro: text + image side by side -- */
.about__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--section-space-m);
}

.about__heading {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
  margin-bottom: var(--space-m);
}

.about__heading-accent {
  color: var(--secondary);
}

.about__lead {
  font-size: var(--text-l);
  line-height: var(--base-text-lh);
  color: var(--base);
  margin-bottom: var(--space-s);
  text-wrap: pretty;
}

.about__lead strong {
  font-weight: 700;
  color: var(--primary);
}

.about__stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-l);
  padding-top: var(--space-l);
  border-top: 1px solid var(--border-color-dark);
}

.about__stat {
  display: flex;
  flex-direction: column;
}

.about__stat-number {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 800;
  color: var(--base);
  line-height: 1.1;
}

.about__stat-label {
  font-size: var(--text-s);
  color: rgba(14, 28, 57, 0.6);
  font-weight: 500;
  margin-top: 0.4rem;
}

.about__intro-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--box-shadow-l);
}

.about__intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s ease;
}

.about__intro-image:hover img {
  transform: scale(1.03);
}

/* -- Photo mosaic -- */
.about__mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: var(--section-space-m);
}

.about__mosaic-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.about__mosaic-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.6s ease;
}

.about__mosaic-img:hover img {
  transform: scale(1.03);
}

/* -- Benefits row -- */
.about__benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.about__benefit {
  text-align: center;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow-m);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about__benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-l);
}

.about__benefit-icon {
  margin-bottom: var(--space-s);
}

.about__benefit-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about__benefit-desc {
  font-size: var(--text-m);
  color: rgba(14, 28, 57, 0.75);
}

/* ============================================
   3. HARMONOGRAM / TIMELINE (v2)
   ============================================ */
.timeline__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 3.6rem;
  padding-top: 0;
}

/* Vertical line (mobile) */
.timeline__line {
  position: absolute;
  left: 1.3rem;
  top: 2.8rem;
  bottom: 2rem;
  width: 2px;
  background: rgba(14, 28, 57, 0.12);
}

.timeline__line-progress {
  width: 100%;
  height: 20%;
  /* represents ~1/6 done, 2nd active */
  background: var(--primary);
  border-radius: 2px;
  transition: height 1s ease;
}

.timeline__item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.6rem;
  padding: 1.8rem 0;
  cursor: default;
}

/* Dot */
.timeline__dot {
  position: absolute;
  left: -3.6rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid rgba(14, 28, 57, 0.18);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.timeline__check {
  display: block;
}

/* States */
.timeline__item--done .timeline__dot {
  background: var(--primary);
  border-color: var(--primary);
}

.timeline__item--active .timeline__dot {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* Pulse ring on active */
.timeline__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Date – displayed inline left of label on mobile */
.timeline__date {
  font-size: var(--text-s);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-width: 7rem;
  transition: color var(--transition);
}

.timeline__item--done .timeline__date {
  color: rgba(14, 28, 57, 0.4);
}

.timeline__item--active .timeline__date {
  color: var(--secondary);
}

/* Label */
.timeline__label {
  font-size: var(--text-l);
  font-weight: 600;
  color: var(--base);
  transition: color var(--transition), transform var(--transition);
}

/* Hover effect */
.timeline__item:hover .timeline__dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(53, 100, 242, 0.12);
}

.timeline__item--active:hover .timeline__dot {
  box-shadow: 0 0 0 8px rgba(206, 170, 98, 0.18);
}

.timeline__item:hover .timeline__label {
  color: var(--primary);
  transform: translateX(4px);
}

.timeline__item--active:hover .timeline__label {
  color: var(--secondary);
}

/* Future items subtler */
.timeline__item:not(.timeline__item--done):not(.timeline__item--active) .timeline__label {
  color: rgba(14, 28, 57, 0.55);
}

.timeline__item:not(.timeline__item--done):not(.timeline__item--active):hover .timeline__label {
  color: var(--primary);
}

/* ============================================
   4. BYTY / FLATS
   ============================================ */
/* Section label + heading */
.flats__label {
  font-size: var(--text-s);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.flats__heading {
  font-size: clamp(3.2rem, 4vw, 4.8rem);
  font-weight: 700;
  color: var(--base);
  line-height: var(--heading-line-height);
  margin-bottom: var(--space-m);
}

.flats__intro {
  font-size: var(--text-l);
  max-width: 70rem;
  margin-bottom: var(--space-xl);
  color: rgba(14, 28, 57, 0.7);
  line-height: var(--base-text-lh);
}

/* Toolbar: filters + view toggle */
.flats__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-bottom: var(--space-xl);
}

.flats__filters-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.flats__filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

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

/* Status filter dots */
.flats__filter--status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.flats__filter-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.flats__filter-dot--available {
  background: #22c55e;
}

.flats__filter-dot--reserved {
  background: var(--secondary);
}

.flats__filter-dot--sold {
  background: #ef4444;
}

/* Separator between filter groups (desktop only, added in media query) */

/* Price range filter */
.flats__price-range {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.flats__range-track {
  min-width: 0;
}

.flats__price-label {
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--base);
  white-space: nowrap;
}

.flats__range-track {
  position: relative;
  width: 14rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
}

.flats__range-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
  margin: 0;
}

.flats__range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--border-color-dark);
  border-radius: 2px;
}

.flats__range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
  margin-top: -7px;
  position: relative;
  z-index: 2;
}

.flats__range-input::-moz-range-track {
  height: 4px;
  background: var(--border-color-dark);
  border-radius: 2px;
  border: none;
}

.flats__range-input::-moz-range-thumb {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
}

/* View toggle buttons */
.flats__view-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border-color-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-left: auto;
  flex-shrink: 0;
}

.flats__view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  background: transparent;
  border: none;
  color: rgba(14, 28, 57, 0.4);
  cursor: pointer;
  transition: all var(--transition);
}

.flats__view-btn+.flats__view-btn {
  border-left: 2px solid var(--border-color-dark);
}

.flats__view-btn:hover {
  color: var(--base);
  background: rgba(14, 28, 57, 0.04);
}

.flats__view-btn--active {
  color: var(--white);
  background: var(--primary);
}

.flats__view-btn--active:hover {
  color: var(--white);
  background: var(--primary);
}

.flats__filter {
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--border-color-dark);
  border-radius: var(--btn-radius);
  background: transparent;
  font-family: var(--font);
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--base);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.flats__filter:hover,
.flats__filter--active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.flats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

.flat-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.flat-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.flat-card:hover {
  transform: translateY(-4px);
}

.flat-card[data-status="prodano"] {
  opacity: 0.6;
}

.flat-card--hidden {
  display: none;
}

.flat-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.flat-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.flat-card:hover .flat-card__image img {
  transform: scale(1.05);
}

.flat-card__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.4rem 1.4rem;
  border-radius: 0.6rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flat-card__badge--available {
  background: #22c55e;
  color: var(--white);
}

.flat-card__badge--reserved {
  background: var(--secondary);
  color: var(--white);
}

.flat-card__badge--sold {
  background: #ef4444;
  color: var(--white);
}

.flat-card__body {
  padding: var(--space-s);
}

.flat-card__title {
  font-size: var(--text-m);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--base);
}

.flat-card__location {
  font-size: var(--text-s);
  color: rgba(14, 28, 57, 0.55);
  margin-bottom: 1.2rem;
}

.flat-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.flat-card__tag {
  padding: 0.3rem 1rem;
  background: var(--cream);
  border-radius: var(--btn-radius);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--base);
}

.flat-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.flat-card__price {
  font-size: var(--text-l);
  font-weight: 700;
  color: var(--base);
}

.flat-card__price-sqm {
  font-size: var(--text-s);
  color: rgba(14, 28, 57, 0.45);
}

/* ============================================
   LIST VIEW MODE
   ============================================ */
.flats__grid--list {
  grid-template-columns: 1fr !important;
  gap: 1.2rem;
}

/* Table header (only visible in list mode) */
.flats__list-header {
  display: none;
  grid-template-columns: 8rem 1fr 8rem 8rem 6rem 13rem 10rem 10rem;
  gap: 1.6rem;
  align-items: center;
  padding: 1rem 1.6rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(14, 28, 57, 0.5);
  border-bottom: 2px solid var(--border-color-dark);
}

.flats__grid--list~.flats__list-header,
.flats__list-header--visible {
  display: grid;
}

/* Card transforms into a row */
.flats__grid--list .flat-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius);
  opacity: 1;
}

.flats__grid--list .flat-card__image {
  aspect-ratio: 1 / 1;
  width: 7rem;
  height: 7rem;
  border-radius: 0.6rem;
  flex-shrink: 0;
}

.flats__grid--list .flat-card__image img {
  border-radius: 0.6rem;
}

.flats__grid--list .flat-card__badge {
  display: none;
}

.flats__grid--list .flat-card__link {
  display: flex;
  align-items: center;
}

.flats__grid--list .flat-card__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  flex: 1;
}

.flats__grid--list .flat-card__title {
  font-size: var(--text-m);
  margin-bottom: 0;
  min-width: 8rem;
}

.flats__grid--list .flat-card__location {
  margin-bottom: 0;
  min-width: 8rem;
}

.flats__grid--list .flat-card__meta {
  margin-bottom: 0;
  gap: 0.6rem;
}

.flats__grid--list .flat-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.flats__grid--list .flat-card__price {
  font-size: var(--text-m);
}

/* List status indicator replaces badge */
.flats__grid--list .flat-card__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-xs);
  font-weight: 700;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.flats__grid--list .flat-card__status-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.flats__grid--list .flat-card[data-status="volny"] .flat-card__status-dot {
  background: #22c55e;
}

.flats__grid--list .flat-card[data-status="rezervace"] .flat-card__status-dot {
  background: var(--secondary);
}

.flats__grid--list .flat-card[data-status="prodano"] .flat-card__status-dot {
  background: #ef4444;
}

/* Hide status in grid mode (it's built by JS only for list) */
.flat-card__status {
  display: none;
}

/* ============================================
   5. PARTNEŘI
   ============================================ */
.partners__subtitle {
  text-align: center;
  font-size: var(--text-l);
  color: rgba(255, 255, 255, 0.6);
  max-width: 70rem;
  margin: -1.5rem auto var(--space-xl);
  line-height: var(--base-text-lh);
}

.partners__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 96rem;
  margin: 0 auto;
}

.partners__item {
  text-align: center;
  padding: var(--space-xl);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius);
  transition: background var(--transition);
  display: grid;
  grid-template-rows: 4rem auto 1fr;
  gap: var(--space-m);
  align-content: start;
}

.partners__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.partners__logo {
  height: 100%;
  max-height: 4rem;
  width: auto;
  max-width: 20rem;
  margin: 0 auto;
  object-fit: contain;
  align-self: center;
}

.partners__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  align-self: start;
}

.partners__desc {
  font-size: var(--text-m);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--base-text-lh);
}

/* ============================================
   6. GALERIE
   ============================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.gallery__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 57, 0);
  transition: background var(--transition);
}

.gallery__item:hover::after {
  background: rgba(14, 28, 57, 0.15);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.5s ease;
}

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

/* ============================================
   7. FINANCOVÁNÍ
   ============================================ */
.financing__intro {
  text-align: center;
  font-size: var(--text-l);
  max-width: 60rem;
  margin: 0 auto var(--space-xl);
}

.financing__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  margin-bottom: var(--space-xl);
}

.financing__card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--box-shadow-m);
  transition: transform var(--transition), box-shadow var(--transition);
}

.financing__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-l);
}

.financing__card-icon {
  margin-bottom: var(--space-s);
}

.financing__card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.financing__card-desc {
  font-size: var(--text-m);
  color: rgba(14, 28, 57, 0.75);
  line-height: var(--base-text-lh);
}

.financing__cta-wrap {
  text-align: center;
}

/* ============================================
   8. KONTAKT (styl ROI Estate – fotka + form)
   ============================================ */
.contact.section--cream {
  overflow-y: visible;
  overflow-x: clip;
  padding-bottom: 0;
}

/* Contact: main layout – stacked on mobile, side-by-side on desktop */
.contact__layout {
  display: flex;
  flex-direction: column;
  gap: var(--section-space-l);
}

/* Header row: heading + stats – stacked on mobile, side-by-side on desktop */
.contact__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: center;
}

.contact__heading {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
  color: var(--base);
  margin-bottom: 0;
}

.contact__heading-accent {
  color: var(--secondary);
}

/* Stats 2x2 grid */
.contact__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m) var(--space-xl);
}

.contact__stat {
  text-align: center;
}

.contact__stat-number {
  display: block;
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 800;
  color: var(--base);
  line-height: 1.2;
}

.contact__stat-label {
  font-size: var(--text-s);
  color: rgba(14, 28, 57, 0.6);
  font-weight: 500;
  margin-top: 0.2rem;
  display: block;
}

/* Form card */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--box-shadow-l);
}

.contact__form-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--base);
  margin-bottom: var(--space-m);
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  margin-bottom: var(--space-s);
}

.contact__field {
  display: flex;
  flex-direction: column;
}

.contact__field--full {
  margin-bottom: var(--space-s);
}

.contact__label {
  font-size: var(--text-s);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(14, 28, 57, 0.7);
}

.contact__input {
  padding: 1.2rem 1.6rem;
  border: 1.5px solid rgba(14, 28, 57, 0.15);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--base);
  font-family: var(--font);
  font-size: var(--text-m);
  font-weight: 500;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact__input::placeholder {
  color: rgba(14, 28, 57, 0.3);
}

.contact__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(53, 100, 242, 0.1);
}

.contact__input--select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230E1C39' stroke-width='2' stroke-opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.6rem center;
  padding-right: 4rem;
}

.contact__input--textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact__form-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.contact__consent {
  margin: 0;
}

.contact__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: var(--text-xs);
  color: rgba(14, 28, 57, 0.55);
  cursor: pointer;
}

.contact__checkbox {
  margin-top: 0.2rem;
  accent-color: var(--primary);
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
}

.contact__link {
  color: var(--primary);
  text-decoration: underline;
}

.contact__submit {
  padding: 1.2rem 3.2rem;
  font-size: var(--text-m);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

@media (max-width: 520px) {

  .btn,
  .contact__submit {
    padding-inline: 2rem;
    font-size: 1.4rem;
  }
}

/* Person photo (right side) */
.contact__person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-top: 6rem;
}

.contact__person-img {
  width: 100%;
  max-width: 44rem;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--base);
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.footer__inner--press {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  text-align: center;
}

.footer-press {
  background: var(--primary);
  padding-block: clamp(2.4rem, 2vw, 3.2rem);
}

.footer-press__title {
  margin: 0;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 600;
}

.footer-press__marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.footer-press__track {
  display: flex;
  align-items: center;
  gap: clamp(3.2rem, 4vw, 6.4rem);
  width: max-content;
  animation: footer-marquee 42s linear infinite;
}

.footer-press__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(12rem, 12vw, 18rem);
  flex: 0 0 auto;
}

.footer-press__item img {
  width: auto;
  max-width: 100%;
  height: 3.6rem;
  object-fit: contain;
}

.footer-main {
  padding-block: clamp(5.6rem, 7vw, 8rem);
}

.footer__inner--main {
  display: grid;
  gap: clamp(3.2rem, 6vw, 6.4rem);
}

.footer-main__column {
  display: grid;
  gap: clamp(2.4rem, 3vw, 5.2rem);
}

.footer-main__column--left {
  position: relative;
}

.footer-main__nav-wrap {
  display: grid;
  gap: 2.4rem;
}

.footer-main__heading {
  margin: 0;
  padding: 0;
  min-height: 0;
  align-self: start;
  color: var(--white);
  font-size: clamp(2.1rem, 1.2vw, 2.7rem);
  line-height: 1.1;
}

.footer-main__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 3.2rem;
}

.footer-main__menu-list,
.footer-bottom__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main__menu-list {
  display: grid;
  gap: 1rem;
}

.footer-main__menu-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-main__menu-link:hover,
.footer-main__menu-link:focus-visible {
  color: var(--primary-light);
}

.footer-main__contacts {
  display: grid;
  gap: 1.4rem;
}

.footer-main__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  width: fit-content;
  max-width: 100%;
  color: #b7c8fa;
  font-size: 1.5rem;
  line-height: 1.45;
}

.footer-main__contact-item:hover,
.footer-main__contact-item:focus-visible {
  color: var(--white);
}

.footer-main__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
}

.footer-main__contact-icon svg {
  width: 100%;
  height: 100%;
}

.footer-main__brand {
  display: inline-flex;
  width: min(100%, 24rem);
}

.footer-main__brand img {
  width: 100%;
  height: auto;
}

.footer-main__cta {
  display: grid;
}

.footer-main__cta-card {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 1.8rem;
  border-radius: calc(var(--radius) + 1rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.55);
}

.footer-main__cta-media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.6rem);
  aspect-ratio: 1 / 1;
  min-height: 11rem;
  max-width: 15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.footer-main__cta-image,
.footer-main__cta-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.footer-main__cta-image {
  object-fit: cover;
}

.footer-main__cta-overlay {
  background:
    linear-gradient(180deg, rgba(6, 12, 27, 0.16) 0%, rgba(6, 12, 27, 0.56) 100%),
    radial-gradient(circle at center, rgba(53, 100, 242, 0.16), rgba(6, 12, 27, 0.16) 62%, rgba(6, 12, 27, 0.68) 100%);
}

.footer-main__cta-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 999px;
  background: rgba(14, 28, 57, 0.82);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 30px rgba(8, 17, 36, 0.28);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.footer-main__cta-badge svg {
  width: 2.2rem;
  height: 2.2rem;
}

.footer-main__cta-content {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.footer-main__cta-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.95rem, 1.2rem + 0.95vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  max-width: 100%;
}

.footer-main__cta-button {
  justify-self: start;
  padding: 1rem 1.8rem;
  font-size: 1.2rem;
  max-width: min(100%, 28rem);
}

.footer-main__podcast {
  display: grid;
  gap: 1.6rem;
  align-content: start;
}

.footer-podcast {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.footer-podcast__thumb {
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.footer-podcast__content {
  display: grid;
  gap: 1rem;
}

.footer-podcast__title {
  margin: 0;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.4;
}

.footer-podcast__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-podcast__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform var(--transition), background var(--transition);
}

.footer-podcast__link:hover,
.footer-podcast__link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.footer-podcast__link img {
  width: 2.6rem;
  height: 2.6rem;
}

.footer-bottom {
  background: rgba(6, 12, 27, 0.92);
  padding-block: 2.2rem;
}

.footer__inner--bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.footer-bottom__nav {
  width: 100%;
}

.footer-bottom__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 3.2rem;
}

.footer-bottom__link,
.footer-bottom__copy {
  color: rgba(183, 200, 250, 0.92);
  font-size: 1.25rem;
  line-height: 1.45;
}

.footer-bottom__link:hover,
.footer-bottom__link:focus-visible {
  color: var(--white);
}

.footer-bottom__copy {
  margin: 0;
}

@media (max-width: 991px) {
  .footer-main__nav {
    grid-template-columns: 1fr;
  }

  .footer-main__cta-card {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .footer-press__item {
    min-width: 12rem;
  }

  .footer-press__item img {
    height: 2.8rem;
  }

  .footer-main__menu-link,
  .footer-main__contact-item {
    font-size: 1.4rem;
  }

  .footer-main__cta-button {
    width: 100%;
    justify-self: stretch;
  }

  .footer-main__cta-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.6rem;
    padding: 1.6rem;
  }

  .footer-main__cta-media {
    max-width: 12rem;
    min-height: 12rem;
  }

  .footer-podcast {
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .footer-podcast {
    flex-direction: column;
  }

  .footer-podcast__thumb {
    width: 7.2rem;
    height: 7.2rem;
  }
}

@keyframes footer-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 3.2rem));
  }
}

/* ============================================
   MODAL (flat detail)
   ============================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 57, 0.75);
  cursor: pointer;
}

.modal__content {
  position: relative;
  z-index: 201;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 64rem;
  width: calc(100% - 3.2rem);
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
}

.modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: none;
  font-size: 3.2rem;
  color: var(--base);
  cursor: pointer;
  line-height: 1;
}

.modal__body h3 {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.modal__body img {
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.modal__body p {
  font-size: var(--text-m);
  line-height: var(--base-text-lh);
  margin-bottom: 1.2rem;
}

/* ============================================
   RESPONSIVE – TABLET (≥ 640px)
   ============================================ */
@media (min-width: 640px) {
  .about__intro {
    grid-template-columns: 1fr 1fr;
  }

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

  .about__mosaic-img--tall {
    grid-row: 1 / 3;
  }

  .about__mosaic-img--tall img {
    aspect-ratio: auto;
    height: 100%;
  }

  .about__benefits {
    grid-template-columns: repeat(3, 1fr);
  }

  .flats__grid:not(.flats__grid--list) {
    grid-template-columns: repeat(2, 1fr);
  }

  .flats__list-header--visible {
    display: grid;
  }

  /* In list mode on tablet+, card becomes a proper row */
  .flats__grid--list .flat-card {
    display: flex;
    align-items: center;
  }

  .flats__grid--list .flat-card__body {
    flex: 1;
    flex-wrap: nowrap;
  }

  .financing__options {
    grid-template-columns: repeat(3, 1fr);
  }

  .partners__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
  }

  .partners__item {
    grid-row: 1 / -1;
    display: grid;
    grid-template-rows: subgrid;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--wide {
    grid-column: 1 / -1;
  }

  .contact__form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner--main {
    grid-template-columns: minmax(0, 0.88fr) minmax(40rem, 1.12fr);
    align-items: stretch;
  }

  .footer-main__column--left {
    padding-right: clamp(3.2rem, 4vw, 5.6rem);
  }

  .footer-main__column--left::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(183, 200, 250, 0.34);
  }

  .footer__inner--bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom__nav {
    width: auto;
  }
}

/* ============================================
   RESPONSIVE – DESKTOP (≥ 960px)
   ============================================ */
@media (min-width: 960px) {

  /* Toolbar: filters-wrap inline, price+toggle on same or next row */
  .flats__filters-wrap {
    flex-wrap: nowrap;
    width: auto;
  }

  .flats__filters+.flats__filters {
    padding-left: 0.8rem;
    border-left: 1px solid var(--border-color-dark);
  }

  .flats__price-range {
    padding-left: 0.8rem;
    border-left: 1px solid var(--border-color-dark);
  }

  .header__burger {
    display: none;
  }

  .header {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
  }

  .header__logo {
    justify-content: flex-start;
    flex: 0 0 auto;
    order: 1;
  }

  .header__nav {
    display: flex;
    position: static;
    background: none;
    flex-direction: row;
    flex: 0 0 auto;
    margin-left: auto;
    width: auto;
    min-height: 0;
    padding: 0;
    justify-content: flex-end;
    gap: 0;
    inset: auto;
    order: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
    transition: none;
  }

  .header__menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem 2.2rem;
    width: auto;
    max-width: none;
  }

  .header__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 4.4rem;
    padding: 0;
    /* Fixed height for consistent baseline */
    font-size: 1.32rem;
    color: var(--white);
    text-align: center;
    transition: color 0.3s ease;
  }

  .header__menu-item {
    width: auto;
    border-bottom: 0;
  }

  .header--scrolled .header__link {
    color: var(--base);
  }

  .header--scrolled .header__link--cta {
    color: var(--primary);
    border-color: var(--primary);
  }

  .header--scrolled .header__link--cta:hover {
    background: var(--primary);
    color: var(--white);
  }

  /* Desktop dropdown refinements */
  .header__dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
    margin-left: -0.4rem;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--white);
    pointer-events: none;
  }

  .header__dropdown-toggle:hover,
  .header__dropdown-toggle:focus-visible {
    background: none;
  }

  .header--scrolled .header__dropdown-toggle {
    color: var(--base);
  }

  .header__menu-item--has-children {
    position: relative;
    display: flex;
    align-items: center;
    height: 4.4rem;
    /* Match header__link height */
  }

  .header__link--toggle {
    pointer-events: none;
    cursor: default;
  }
}

@media (min-width: 960px) {
  .header__submenu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    max-height: none;
    overflow: visible;
    min-width: 31rem;
    padding: 1rem 0;
    margin-top: 0;
    background: var(--base);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Bridge the gap so mouse can move to submenu without losing hover */
  .header__submenu::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 0;
    right: 0;
    height: 1.5rem;
  }

  .header__menu-item--has-children:hover>.header__submenu,
  .header__menu-item--has-children:focus-within>.header__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  /* Slight delay when leaving to prevent accidental close */
  .header__menu-item--has-children:not(:hover)>.header__submenu {
    transition-delay: 0.15s;
  }

  .header__submenu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 2rem;
    font-size: 1.32rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    white-space: normal;
    line-height: 1.35;
  }

  .header__submenu-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
  }

  .header__submenu-link:hover,
  .header__submenu-link--current {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.06);
  }

  .header--scrolled .header__submenu {
    background: var(--white);
    box-shadow: var(--box-shadow-l);
  }

  .header--scrolled .header__submenu-icon {
    background: rgba(14, 28, 57, 0.05);
    color: var(--primary);
  }

  .header--scrolled .header__submenu-link {
    color: var(--base);
  }

  .header--scrolled .header__submenu-link:hover,
  .header--scrolled .header__submenu-link--current {
    color: var(--primary);
    background: rgba(14, 28, 57, 0.04);
  }
}

.flats__grid:not(.flats__grid--list) {
  grid-template-columns: repeat(3, 1fr);
}

.gallery__grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery__item--wide {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery__item--wide img {
  aspect-ratio: auto;
  height: 100%;
}

/* Timeline horizontal on desktop */
.timeline__track {
  flex-direction: row;
  padding-left: 0;
  padding-top: 0;
  gap: 0;
  justify-content: space-between;
  align-items: stretch;
}

.timeline__line {
  left: 0;
  right: 0;
  top: 50%;
  bottom: auto;
  width: auto;
  height: 2px;
  transform: translateY(-50%);
}

.timeline__line-progress {
  width: 20%;
  height: 100%;
}

.timeline__item {
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.8rem;
  gap: 1.2rem;
}

/* Date sits above the line */
.timeline__date {
  order: -1;
  min-width: auto;
}

/* Dot is in the middle (between date and label) */
.timeline__dot {
  position: relative;
  left: auto;
}

/* Label sits below the line */
.timeline__label {
  order: 1;
}

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

/* Contact: heading + stats side by side */
.contact__header {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

/* Content + person photo side by side, photo overlaps under form */
.contact__bottom {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: end;
  position: relative;
}

.contact__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--section-space-m);
}

.contact__person {
  align-self: end;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: -3rem;
  position: relative;
  z-index: 1;
}

.contact__person-img {
  max-width: calc(100% + 3rem);
  width: calc(100% + 3rem);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.section--animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ============================================
   RESPONSIVE – WIDE DESKTOP (≥ 1280px)
   ============================================ */
@media (min-width: 1280px) {
  .section {
    padding: var(--section-space-l) var(--gutter);
  }

  .hero__content {
    padding: 14rem var(--gutter) 8rem;
  }
}