﻿/* ═══════════════════════════════════════
   TRINITY RESIDENCE — styles.css
   ═══════════════════════════════════════ */

/* ── CUSTOM FONTS ── */
@font-face {
  font-family: 'Dream Avenue';
  src: url('fonts/Dream-Avenue.woff2') format('woff2'),
       url('fonts/Dream-Avenue.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-VariableFont_wght.woff2') format('woff2'),
       url('fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand semibold';
  src: url('fonts/Quicksand-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── VARIABLES ── */
:root {
  --dark:       #211f1f;
  --sand:       #e5ddd3;
  --light:      #f3efea;
  --mid:        #ebe4dc;
  --text:       #211f1f;
  --text-light: #5b5454;
  --white:      #fffdfa;
  --blue:       #1F2C3D;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html { scroll-behavior: smooth; }

#hero,
#location,
#about,
#quality,
#investment,
#plans,
#contacts {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html[lang="bg"] body,
html[lang="ru"] body {
  font-family: 'Montserrat', sans-serif;
}

html[lang="bg"] .hero-title,
html[lang="bg"] .location-headline,
html[lang="bg"] .about-headline,
html[lang="bg"] .quality-headline,
html[lang="bg"] .invest-headline,
html[lang="bg"] .contacts-headline,
html[lang="bg"] .pricing-title,
html[lang="ru"] .hero-title,
html[lang="ru"] .location-headline,
html[lang="ru"] .about-headline,
html[lang="ru"] .quality-headline,
html[lang="ru"] .invest-headline,
html[lang="ru"] .contacts-headline,
html[lang="ru"] .pricing-title {
  font-family: 'Dream Avenue', serif;
}

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: calc(16px + var(--safe-top)) calc(56px + var(--safe-right)) 16px calc(56px + var(--safe-left));
  background: var(--light);
  transition: background .4s, padding .3s;
}
nav.scrolled {
  padding: calc(8px + var(--safe-top)) calc(56px + var(--safe-right)) 8px calc(56px + var(--safe-left));
  border-bottom: 1px solid rgba(33,31,31,.12);
}
.nav-corner-logo {
  position: absolute;
  top: 8px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: top .3s ease;
}
.nav-corner-logo img {
  width: 72px;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  
  pointer-events: none;
  transition: width .3s ease;
}
nav.scrolled .nav-corner-logo { top: 6px; }
nav.scrolled .nav-corner-logo img { width: 58px; }

.nav-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Dream Avenue', serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-links a.active {
  color: var(--blue);
}

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  background: transparent;
  border: 1px solid rgba(33,31,31,.35);
  padding: 10px 24px;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.nav-cta:hover { background: var(--blue); color: var(--light); border-color: var(--blue); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(33,31,31,.25);
  background: transparent;
  padding: 10px 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--dark);
  transition: transform .25s ease, opacity .25s ease;
}
nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: calc(16px + var(--safe-right));
  width: min(320px, calc(100vw - 32px));
  box-sizing: border-box;
  background: rgba(243,239,234,.98);
  border: 1px solid rgba(33,31,31,.15);
  box-shadow: 0 18px 40px rgba(0,0,0,.15);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 30;
}
.nav-mobile-menu a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  padding: 12px 10px;
  border: 1px solid transparent;
}
.nav-mobile-menu a:hover {
  border-color: rgba(33,31,31,.16);
  background: rgba(255,255,255,.8);
}
.nav-mobile-menu a.active {
  color: var(--blue);
  border-color: rgba(33,31,31,.16);
  background: rgba(255,255,255,.8);
}
.nav-mobile-cta {
  margin-top: 4px;
  border: 1px solid rgba(33,31,31,.32) !important;
  text-align: center;
}
.nav-mobile-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  margin-top: 4px;
  border-top: 1px solid rgba(33,31,31,.1);
}
.nav-mobile-lang-sep {
  font-size: 10px;
  color: rgba(33,31,31,.25);
}
.nav-mobile-lang-btn {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(33,31,31,.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  transition: color .2s;
}
.nav-mobile-lang-btn:hover,
.nav-mobile-lang-btn.active { color: var(--blue); font-weight: 500; }
nav.menu-open .nav-mobile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}



.nav-lang {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
}
.lang-selected {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  background: none;
  border: 1px solid rgba(33,31,31,.25);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-selected:hover { border-color: var(--blue); color: var(--blue); }
.lang-selected svg { transition: transform .22s; }
.lang-open .lang-selected svg { transform: rotate(180deg); }
.lang-current { display: inline-block; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(243,239,234,.98);
  border: 1px solid rgba(33,31,31,.15);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  min-width: 72px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}
.lang-open .lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-option {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(33,31,31,.6);
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: color .18s, background .18s;
}
.lang-option:hover { color: var(--blue); background: rgba(255,255,255,.7); }
.lang-option.active { color: var(--blue); font-weight: 500; }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 100svh;
  min-height: 680px;
  padding: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,12,20,.18) 0%, rgba(10,12,20,.05) 40%, rgba(10,12,20,.52) 100%),
    url('img/bg.jpg') center/cover no-repeat;
}

/* Big title — full width at top, eyebrow inline */
.hero-title-block {
  position: absolute;
  top: clamp(108px, 17vh, 170px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92vw);
  padding: 0;
  z-index: 2;
  opacity: 0;
  animation: fadeIn .9s .2s forwards;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 1.8vw, 34px);
}
.hero-title {
  font-family: 'Dream Avenue', serif;

  font-size: clamp(72px, 9.4vw, 152px);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -0.02em;
  color: var(--light);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Eyebrow — inline right of title */
.hero-eyebrow {
  font-size: clamp(14px, 1.05vw, 18px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--light);
  z-index: 2;
  opacity: 1;
  animation: fadeIn .9s  forwards;
  text-align: left;
  line-height: 1.55;
  padding-bottom: clamp(6px, .9vw, 12px);
  white-space: nowrap;
}

/* Subtitle + button — centered ~60% down */
.hero-content {
  position: absolute;
  bottom: clamp(56px, 9vh, 104px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  white-space: nowrap;
}
.hero-sub {
  font-size: clamp(24px, 1.8vw, 30px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--light);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .8s .55s forwards;
}
.hero-sub strong { font-weight: 500; }

.hero-btn {
  display: inline-block;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  background: rgba(20,30,48,.45);
  border: 1px solid rgba(243,239,234,.45);
  padding: 18px 72px;
  text-decoration: none;
  opacity: 0;
  animation: fadeUp .7s .7s forwards;
  transition: background .25s, border-color .25s, transform .2s;
}
.hero-btn:hover { background: rgba(20,30,48,.8); border-color: var(--light); transform: translateY(-2px); }




/* ════════════════════════════════════════
   SECTION WRAPPER
   ════════════════════════════════════════ */
section { padding: 120px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }



/* ════════════════════════════════════════
   LOCATION
   ════════════════════════════════════════ */
#location { background: var(--light); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.location-headline {
  font-family: 'Dream Avenue', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
  transform: translateY(-55px);
  margin-bottom: 32px;
}

.location-headline em,
.about-headline em,
.quality-headline em,
.invest-headline em,
.contacts-headline em {
  font-style: normal;
}


.location-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(33,31,31,.75);
  margin-bottom: 40px;
  transform: translateY(-60px);
}

.location-text-right {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(33,31,31,.75);
  margin-bottom: 40px;
}
.location-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.location-stat-num {
  font-family: 'Quicksand semibold', serif;
  font-size: 46px;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  transform: translateY(20px);
}
.location-stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(33,31,31,.75);
  text-transform: uppercase;
  transform: translateY(20px);
}
.location-images {
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
}
.loc-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.loc-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.location-grid > .reveal .loc-img-row {
  margin-top: 10px;
}
.location-images .location-text-right {
  margin-bottom: 16px;
}
.location-images .location-text:last-child {
  transform: translateY(-30px);
  margin-bottom: 0;
}
.location-images .location-stat {
  margin-bottom: 6px;
}
.loc-img-sm {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* ════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════ */
#about {

  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-images-col { position: relative; }
.about-img-back {
  width: 80%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  margin-left: auto;
}
.about-img-front {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 55%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 4px solid var(--mid);
}
.about-text-col { padding-bottom: 40px; }
.about-headline {
  font-family: 'Dream Avenue', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 28px;
}

.about-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(33,31,31,.75);
  margin-bottom: 20px;
}
.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}
.amenity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  
  background: var(--blue);
}
.amenity-icon {
  width: 21px;
  height: 21px;
  margin-top: 0px;
  flex-shrink: 0;
  color: var(--light);
}
.amenity-text { font-family: 'Quicksand semibold', sans-serif; font-size: 14px; font-weight: 600; color: var(--light); line-height: 1.5; }

/* ════════════════════════════════════════
   QUALITY
   ════════════════════════════════════════ */
#quality {
  background: var(--light);
  overflow: hidden;
}
.quality-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.quality-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  margin-top: 30px;
}
.quality-headline {
  font-family: 'Dream Avenue', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 78px;
}

.quality-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(33,31,31,.75);
  margin-bottom: 20px;
  transform: translateY(-40px);
}
.quality-features { margin-top: 0px; display: flex; flex-direction: column; gap: 0; transform: translateY(-20px); }
.qf-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(33,31,31,.12);
}
.qf-num {
  font-family: 'Dream Avenue', serif;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.1em;
  min-width: 28px;
  padding-top: 2px;
}
.qf-title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark); margin-bottom: 4px; }
.qf-desc { font-size: 13px; font-weight: 300; color: rgba(33,31,31,.75); line-height: 1.65; }

/* ════════════════════════════════════════
   INVESTMENT
   ════════════════════════════════════════ */
#investment {
  background: var(--blue);
  color: var(--light);
}


.invest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.invest-headline {
  font-family: 'Dream Avenue', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--light);
  margin-bottom: 32px;
}

.invest-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--light);
  margin-bottom: 16px;
}
.invest-cta {
  display: inline-block;
  margin-top: 20px;
  font-family: 'Quicksand semibold', serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--light);
  padding: 15px 40px;
  text-decoration: none;
  transition: background .25s, transform .2s;
}
.invest-cta:hover { opacity: .9; transform: translateY(-2px); }

.stats-col { padding-top: 120px; }
.stat-card {
  padding: 36px 40px;
  border: 1px solid rgba(33,31,31,.14);
  margin-bottom: 16px;
  position: relative;
  background: var(--light);
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--dark);
}
.stat-value {
  font-family: 'Dream Avenue', serif;
  font-size: 52px;
  font-weight: 300;
  
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}
.stat-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  font-weight: 300;
}

/* ════════════════════════════════════════
   PLANS STRIP
   ════════════════════════════════════════ */
#plans {

  padding: 80px 0;
}
.plans-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 48px;
}
.plans-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.plans-stage {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(33,31,31,.14);
  background: rgba(255,255,255,.85);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.plans-current-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: min(72vh, 620px);
  object-fit: contain;
  object-position: center center;
  display: block;
  cursor: zoom-in;
  transition: transform .52s cubic-bezier(.33,1,.68,1);
  will-change: transform;
  backface-visibility: hidden;
}
.plans-slide-ghost {
  position: absolute;
  z-index: 1;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  transition: transform .52s cubic-bezier(.33,1,.68,1), opacity .3s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.plans-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(243,239,234,.72);
  background: rgba(20,30,48,.44);
  color: var(--light);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.plans-arrow:hover {
  background: var(--blue);
  color: var(--light);
  border-color: var(--light);
}
.plans-prev { left: 16px; }
.plans-next { right: 16px; }
.plans-stage:hover .plans-arrow,
.plans-stage:focus-within .plans-arrow {
  background: rgba(20,30,48,.6);
}
.plans-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.plans-counter {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(33,31,31,.7);
}

.plans-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12,16,24,.96);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
  -webkit-overflow-scrolling: touch;
}
.plans-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease, visibility 0s linear 0s;
}
.plans-lightbox-stage {
  position: relative;
  overflow: hidden;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 40px);
  max-width: min(1680px, 100%);
  opacity: 0;
  transform: translateY(10px) scale(.985);
  transition: transform .34s cubic-bezier(.22,.61,.36,1), opacity .24s ease;
}
.plans-lightbox.open .plans-lightbox-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.plans-lightbox-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform .52s cubic-bezier(.33,1,.68,1);
  will-change: transform;
  backface-visibility: hidden;
}
.plans-lightbox .plans-arrow {
  color: var(--light);
  background: rgba(243,239,234,.14);
  border-color: rgba(243,239,234,.42);
  opacity: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease .08s;
}
.plans-lightbox .plans-arrow:hover {
  background: var(--light);
  color: var(--dark);
  border-color: var(--light);
}
.plans-lightbox.open .plans-arrow {
  opacity: 1;
}
.plans-lightbox-prev { left: 16px; }
.plans-lightbox-next { right: 16px; }
.plans-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 12;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243,239,234,.55);
  background: rgba(243,239,234,.14);
  color: var(--light);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease .08s, background .2s ease, border-color .2s ease;
}
.plans-lightbox.open .plans-lightbox-close {
  opacity: 1;
}
.plans-lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  color: var(--light);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .2s ease .1s;
}
.plans-lightbox.open .plans-lightbox-counter {
  opacity: 1;
}

/* ════════════════════════════════════════
   CONTACTS
   ════════════════════════════════════════ */
#contacts {
  background: var(--light);
  padding: 120px 0 100px;
}
.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.contacts-map {
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(33,31,31,.1);
}
.contacts-headline {
  font-family: 'Dream Avenue', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.05;
  margin-bottom: 16px;
}

.contacts-note {
  font-size: 17px;
  font-weight: 300;
  color: rgba(33,31,31,.75);
  line-height: 1.85;
  margin-bottom: 48px;
}
.contact-block { margin-bottom: 32px; }
.contact-block-title {
  font-family: quicksand semibold, serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.contact-item {
  font-size: 17px;
  font-weight: 300;
  color: rgba(33,31,31,.75);
  line-height: 1.8;
  text-decoration: none;
  display: block;
  transition: color .2s;
}
.contact-item:hover { color: var(--dark); }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
footer {
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 56px 22px;
  color: var(--light);
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.footer-logo-link {
  display: inline-flex;
  text-decoration: none;
}
.footer-logo-img {
  width: 112px;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.footer-tagline {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--light);
}
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,.58);
  margin-bottom: 14px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-credit {
  text-align: center;
}
.footer-credit a {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transition: opacity .2s;
}
.footer-credit a:hover {
  opacity: .8;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--light);
  text-decoration: none;
  transition: opacity .2s;
}
.footer-links a:hover { opacity: .82; }

.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-action {
  color: rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-action:hover { opacity: .78; }
.footer-action svg {
  width: 28px;
  height: 28px;
}
.footer-action-icon {
  width: 32px;
  height: 32px;
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.footer-action-icon-phone {
  -webkit-mask-image: url('img/phone.svg');
  mask-image: url('img/phone.svg');
}
.footer-action-icon-whatsapp {
  -webkit-mask-image: url('img/whatsapp.svg');
  mask-image: url('img/whatsapp.svg');
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pulse {
  0%,100% { opacity: .6; } 50% { opacity: 1; }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.js-anim .reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity .82s ease, transform .9s cubic-bezier(.22,.61,.36,1), filter .8s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js-anim .reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal img {
  transform: scale(1);
  filter: saturate(1) contrast(1);
}

.js-anim .reveal img {
  transform: scale(1.045);
  filter: saturate(.92) contrast(.96);
  transition: transform 1.15s cubic-bezier(.22,.61,.36,1), filter 1.1s ease;
}
.js-anim .reveal.visible img {
  transform: scale(1);
  filter: saturate(1) contrast(1);
}

.stagger-in {
  opacity: 1;
  transform: translateY(0);
}

.js-anim .stagger-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .56s ease, transform .56s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(100ms + var(--stagger-order, 0) * 80ms);
}
.js-anim .reveal.visible .stagger-in {
  opacity: 1;
  transform: translateY(0);
}

#plans .plans-label,
#plans .plans-carousel {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.js-anim #plans .plans-label,
.js-anim #plans .plans-carousel {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity .75s ease, transform .82s cubic-bezier(.22,.61,.36,1), filter .75s ease;
}
.js-anim #plans.in-view .plans-label,
.js-anim #plans.in-view .plans-carousel {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.js-anim #plans.in-view .plans-carousel {
  transition-delay: 90ms;
}

/* ════════════════════════════════════════
   MOBILE
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: calc(20px + var(--safe-top)) calc(24px + var(--safe-right)) 20px calc(24px + var(--safe-left)); justify-content: space-between; }
  nav.scrolled { padding: calc(14px + var(--safe-top)) calc(24px + var(--safe-right)) 14px calc(24px + var(--safe-left)); }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links { display: none; }
  .nav-corner-logo { position: static; top: auto; left: auto; display: flex; align-items: center; }
  .nav-corner-logo img { width: 58px; }
  nav.scrolled .nav-corner-logo { top: auto; }
  nav.scrolled .nav-corner-logo img { width: 52px; }
  .nav-title { font-size: 20px; }
  .container { padding: 0 24px; }
  section { padding: 80px 0; }
  #hero { min-height: 620px; }
  .hero-title-block {
    top: clamp(118px, 19vh, 164px);
    width: 92vw;
    justify-content: flex-start;
    gap: 12px;
  }
  .hero-title {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(54px, 11vw, 84px);
    line-height: .9;
  }
  .hero-eyebrow { font-size: clamp(11px, 2.2vw, 14px); letter-spacing: 0.24em; }
  .hero-content { bottom: 48px; white-space: normal; width: min(92vw, 560px); }
  .hero-sub { font-size: clamp(20px, 5.4vw, 28px); }
  .hero-btn { font-size: 13px; padding: 14px 44px; }
  .location-grid,
  .about-grid,
  .quality-inner,
  .invest-grid,
  .contacts-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-img-back { width: 100%; }
  .about-img-front { display: none; }
  .nav-lang { display: none; }
  .contacts-map { min-height: 320px; }
  footer { padding: 20px 24px 24px; }
  .footer-tagline { font-size: 11px; }
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-links a { font-size: 12px; }
  .footer-actions { justify-content: center; }

  /* Keep motion but reduce expensive filters on mobile GPUs */
  .reveal {
    filter: none;
    transition: opacity .58s ease, transform .62s cubic-bezier(.22,.61,.36,1);
  }
  .reveal img {
    filter: none;
    transition: transform .78s cubic-bezier(.22,.61,.36,1);
  }
  #plans .plans-label,
  #plans .plans-carousel {
    filter: none;
    transition: opacity .56s ease, transform .62s cubic-bezier(.22,.61,.36,1);
  }
}

@media (max-width: 600px) {
  nav { padding: calc(14px + var(--safe-top)) calc(16px + var(--safe-right)) 14px calc(16px + var(--safe-left)); min-height: 62px; }
  nav.scrolled { padding: calc(10px + var(--safe-top)) calc(16px + var(--safe-right)) 10px calc(16px + var(--safe-left)); }
  .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 9px 8px;
  }
  .nav-mobile-menu {
    left: 10px;
    right: 10px;
    top: calc(100% + 6px);
    width: auto;
    max-width: none;
  }
  .nav-corner-logo { position: static; left: auto; top: auto; }
  .nav-corner-logo img { width: 50px; }
  nav.scrolled .nav-corner-logo img { width: 44px; }

  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  #hero { min-height: 560px; }

  .hero-title-block {
    top: 106px;
    width: 94vw;
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-title {
    font-size: clamp(46px, 13.2vw, 62px);
    letter-spacing: -0.015em;
  }
  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    line-height: 1.4;
    padding-bottom: 0;
  }

  .hero-content { bottom: 42px; width: 92vw; }
  .hero-sub {
    font-size: clamp(18px, 6vw, 22px);
    margin-bottom: 20px;
  }
  .hero-btn {
    font-size: 12px;
    letter-spacing: 0.16em;
    padding: 12px 30px;
  }

  .plans-label { margin-bottom: 28px; }
  .plans-carousel {
    gap: 10px;
  }
  .plans-stage {
    min-height: 220px;
    padding: 10px;
  }
  .plans-arrow {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .plans-prev { left: 8px; }
  .plans-next { right: 8px; }
  .plans-lightbox {
    padding: 10px;
  }
  .plans-lightbox-prev { left: 6px; }
  .plans-lightbox-next { right: 6px; }
  .plans-lightbox-close {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
  }

  .contacts-note { margin-bottom: 30px; }
  .footer-logo-img { width: 96px; }
  .footer-tagline { font-size: 10px; }
  .footer-links { gap: 14px; }
  .footer-links a { font-size: 12px; }
}

@supports (-webkit-touch-callout: none) {
  #hero,
  .pricing-page,
  .pricing-main {
    min-height: -webkit-fill-available;
  }

  .plans-stage,
  .plans-lightbox-stage,
  .plans-lightbox-img {
    transform: translateZ(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal.visible,
  .reveal img,
  .reveal.visible img,
  #plans .plans-label,
  #plans .plans-carousel,
  #plans.in-view .plans-label,
  #plans.in-view .plans-carousel,
  .plans-current-img,
  .plans-lightbox-img,
  .plans-slide-ghost,
  .plans-lightbox,
  .plans-lightbox-stage,
  .plans-lightbox .plans-arrow,
  .plans-lightbox-close,
  .plans-lightbox-counter,
  .pricing-back,
  .pricing-btn {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ════════════════════════════════════════
   PRICING PAGE
   ════════════════════════════════════════ */
.pricing-page {
  min-height: 100svh;
  margin: 0;
  background: var(--light);
  color: var(--dark);
}

.pricing-page section {
  padding: 0;
}

.pricing-main {
  min-height: 100svh;
  display: block;
  padding: 70px 8px 24px;
  box-sizing: border-box;
  background: var(--light);
}

.pricing-card {
  width: min(1560px, 100%);
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 6px 10px 12px;
  position: relative;
}

.pricing-back {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  font-size: 11px;
  padding: 8px 12px;
  border: 1px solid rgba(31,44,61,.22);
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(33,31,31,.72);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.pricing-whatsapp-float {
  display: none;
  left: auto;
  right: 14px;
}

.pricing-back:hover {
  transform: translateY(-2px);
  background: var(--blue);
  border-color: var(--blue);
  color: var(--light);
}

.pricing-back:focus-visible {
  outline: 2px solid rgba(31,44,61,.35);
  outline-offset: 2px;
}

.pricing-logo {
  width: 202px;
  height: auto;
  display: block;
  margin: -60px auto 14px;

}







.pricing-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pricing-meta-item {
  border: 1px solid rgba(33,31,31,.12);
  background: rgba(243,239,234,.75);
  padding: 12px 14px;
}

.pricing-meta-label {
  display: block;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  color: rgba(33,31,31,.55);
  margin-bottom: 5px;
}

.pricing-meta-value {
  display: block;
  font-size: 14px;
  text-align: center;
  color: rgba(33,31,31,.86);
}

.pricing-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pricing-data {
  margin-top: 18px;
  border: 1px solid rgba(33,31,31,.12);
  background: rgba(243,239,234,.62);
}

.pricing-data-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(33,31,31,.1);
}

.pricing-data-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--blue);
}

.pricing-data-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(33,31,31,.6);
}

.pricing-data-content {
  padding: 12px 0 0;
  font-size: 13px;
  color: rgba(33,31,31,.7);
  overflow: hidden;
}

.pricing-table-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(33,31,31,.12);
  background: rgba(255,255,255,.8);
}

.pricing-data-group {
  margin-top: 0;
  align-self: start;
}

.pricing-data-group-title {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(33,31,31,.62);
}

.pricing-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 12px;
  align-items: start;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}

.pricing-table th,
.pricing-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  border-bottom: 1px solid rgba(33,31,31,.09);
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pricing-table th {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(33,31,31,.72);
  background: rgba(255,255,255,.95);
  position: sticky;
  top: 0;
}

.pricing-data-error {
  color: #8c2f2f;
  font-size: 13px;
}

.pricing-data-error a {
  color: var(--blue);
}

.pricing-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 12px;
  box-sizing: border-box;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pricing-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%);
  transform: translateX(-140%);
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  z-index: -1;
}

.pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(16,24,35,.14);
}

.pricing-btn:hover::before {
  transform: translateX(140%);
}

.pricing-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(16,24,35,.12);
}

.pricing-btn:focus-visible {
  outline: 2px solid rgba(31,44,61,.35);
  outline-offset: 2px;
}

.pricing-btn-primary {
  background: var(--blue);
  color: var(--light);
  border: 1px solid var(--blue);
}

.pricing-btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(31,44,61,.4);
}

.pricing-btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 1px solid rgba(33,31,31,.25);
}



@media (max-width: 720px) {
  .pricing-main {
    padding: 54px 0 14px;
  }

  .pricing-card {
    padding: 0;
  }

  .pricing-back {
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 7px 10px;
  }

  .pricing-whatsapp-float {
    display: inline-flex;
    left: auto;
    right: 10px;
  }

  .pricing-logo,
  .pricing-meta,
  .pricing-actions {
    display: none;
  }

  .pricing-data {
    margin-top: 0;
  }

  .pricing-data-head {
    display: none;
  }

  .pricing-data-content {
    padding-bottom: 14px;
    overflow: visible;
  }

  .pricing-data-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .pricing-data-group {
    min-width: 0;
  }

  .pricing-data-group-title {
    padding-left: 14px;
  }

  .pricing-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
    touch-action: auto;
    margin: 0;
  }

  .pricing-table-wrap::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
  }

  .pricing-table {
    width: max-content;
    min-width: 980px;
    table-layout: auto;
  }

  .pricing-table th,
  .pricing-table td {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}