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

:root {
  --bg: #f6f3ee;
  --bg-dark: #16130f;
  --text: #262420;
  --text-muted: #6b675f;
  --text-muted-strong: #4d4a43;
  --text-light: #f3efe8;
  --accent: #b5652f;
  --accent-dark: #8f4f24;
  --sand: #e7dcc9;
  --border: rgba(38, 36, 32, 0.12);
  --border-strong: rgba(38, 36, 32, 0.22);
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.logo-face {
  font-family: 'Unbounded', 'Manrope', sans-serif;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  padding: 26px 0;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-logo {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #fff;
  justify-self: start;
  opacity: 0;
  transform: translateY(-10px);
  animation: logoIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}

@keyframes logoIn {
  to { opacity: 1; transform: translateY(0); }
}

.main-nav {
  display: flex;
  gap: 34px;
  justify-self: center;
}

.main-nav a {
  position: relative;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after { width: 100%; }

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
}

.header-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  color: #fff;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 2px; background: #fff; display: block; transition: transform 0.2s ease, opacity 0.2s ease; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  background: var(--bg-dark);
  transition: max-height 0.4s ease;
}
.mobile-nav a { padding: 14px 32px; color: var(--text-light); font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav.open { max-height: 400px; }

.site-header.scrolled {
  background: rgba(22, 19, 15, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  /* svh — реальная высота экрана: с vh первый экран на мобильных выше видимой
     области, и подсказка «прокрутіть» уходит под адресную строку браузера. */
  height: 100svh;
  /* min-height не должен превышать экран: на iPhone SE (568px) фиксированные
     640px делали первый экран выше телефона и прятали ту же подсказку. */
  min-height: min(640px, 100svh);
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  animation: heroZoom 24s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

/* відео вже має власний рух камери — додатковий зум змушує картинку тремтіти */
video.hero-bg {
  animation: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,7,0.68) 0%, rgba(10,9,7,0.3) 30%, rgba(10,9,7,0.4) 60%, rgba(10,9,7,0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-logo {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  display: flex;
  gap: 0.05em;
  font-size: clamp(52px, 9vw, 118px);
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

.hero-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: letterIn 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-logo span:nth-child(1) { animation-delay: 0.15s; }
.hero-logo span:nth-child(2) { animation-delay: 0.30s; }
.hero-logo span:nth-child(3) { animation-delay: 0.45s; }
.hero-logo span:nth-child(4) { animation-delay: 0.60s; }
.hero-logo span:nth-child(5) { animation-delay: 0.75s; }
.hero-logo span:nth-child(6) { animation-delay: 0.90s; }

@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo-sub {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 1.15s forwards;
}

.hero-slogan {
  margin-top: 26px;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--sand);
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 1.5s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 2.1s forwards;
}
.scroll-hint span {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

/* ---------- sections general ---------- */
.section { padding: 110px 0; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.5px;
  max-width: 720px;
}
.section-lead {
  margin-top: 18px;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 17px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- about ---------- */
.about { padding: 90px 0; }
.about-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-muted);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.stat:nth-child(1) { transition-delay: 0s; }
.stat:nth-child(2) { transition-delay: 0.1s; }
.stat:nth-child(3) { transition-delay: 0.2s; }
.stat:nth-child(4) { transition-delay: 0.3s; }
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(38,36,32,0.1);
  border-color: var(--border-strong);
}
.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-dark);
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- projects ---------- */
.project-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s ease;
}
.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.12s; }
.project-card:nth-child(3) { transition-delay: 0.24s; }
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(38,36,32,0.16);
}
.project-image {
  position: relative;
  height: 240px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.project-card:hover .project-image { transform: scale(1.08); }
.project-card:hover .project-image::after { opacity: 1; }
.project-status {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  color: #fff;
  letter-spacing: 0.3px;
}
.status-building { background: var(--accent); }
.status-sale { background: #4a6b52; }
.status-done { background: #55524a; }
.status-ready { background: #2f4858; }

.project-body { padding: 26px; }
.project-body h3 { font-size: 19px; margin-bottom: 6px; }
.project-city { font-size: 13px; color: var(--accent-dark); font-weight: 600; margin-bottom: 12px; }
.project-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.project-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.project-link span { display: inline-block; transition: transform 0.3s ease; }
.project-card:hover .project-link span { transform: translateX(5px); }

/* ---------- geography ---------- */
.geo-scheme {
  position: relative;
  margin: 60px auto 10px;
  width: 100%;
  max-width: 640px;
  height: 360px;
}
.geo-kyiv {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 2;
}
.geo-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}
.geo-pin:hover { transform: translateY(-3px); }
.geo-pin-1 { top: 6%; left: 8%; }
.geo-pin-2 { top: 70%; right: 4%; }
.geo-pin-3 { bottom: 4%; left: 14%; }

.geo-pin-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(181,101,47,0.18);
  flex-shrink: 0;
}
.geo-pin-label {
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

/* ---------- lifestyle ---------- */
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}
.lifestyle-grid.reverse .lifestyle-image { order: 2; }
.lifestyle-image {
  height: 380px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.04);
  will-change: transform;
}
.lifestyle-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.lifestyle-text h3 { font-size: 26px; margin-bottom: 16px; }
.lifestyle-text p { color: var(--text-muted); font-size: 16px; }

/* ---------- advantages ---------- */
.advantages-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.advantage-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.advantage-card:nth-child(1) { transition-delay: 0s; }
.advantage-card:nth-child(2) { transition-delay: 0.08s; }
.advantage-card:nth-child(3) { transition-delay: 0.16s; }
.advantage-card:nth-child(4) { transition-delay: 0.24s; }
.advantage-card:nth-child(5) { transition-delay: 0.32s; }
.advantage-card:nth-child(6) { transition-delay: 0.4s; }
.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(38,36,32,0.12);
  border-color: var(--border-strong);
}
.advantage-icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 18px; }
.advantage-card h3 { font-size: 18px; margin-bottom: 10px; }
.advantage-card p { font-size: 14px; color: var(--text-muted-strong); }

/* ---------- process timeline ---------- */
.timeline { margin-top: 60px; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 29px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline::after {
  content: '';
  position: absolute;
  left: 29px; top: 8px;
  width: 1px;
  height: var(--progress, 0%);
  background: var(--accent);
  transition: height 0.2s linear;
}
.timeline-item {
  display: flex;
  gap: 30px;
  padding-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-num {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  z-index: 1;
  transition: background 0.4s ease, transform 0.4s ease;
}
.timeline-item.active .timeline-num {
  background: var(--accent);
  transform: scale(1.08);
}
.timeline-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.timeline-body h3 { font-size: 20px; margin-bottom: 8px; }
.timeline-body p { color: var(--text-muted); font-size: 15px; max-width: 560px; }
.timeline-media {
  margin-top: 18px;
  width: 220px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
}
.timeline-media video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cta ---------- */
.cta { background: var(--bg-dark); color: var(--text-light); position: relative; overflow: hidden; }
.cta-skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: 160px;
  fill: rgba(255,255,255,0.04);
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 40px;
  letter-spacing: -0.5px;
}
.cta-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ---------- contact ---------- */
.contact-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-block { margin-bottom: 26px; }
.contact-block h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-dark); margin-bottom: 10px; }
.contact-block p { font-size: 15px; margin-bottom: 4px; }
.contact-block a { border-bottom: 1px solid transparent; transition: color 0.25s ease, border-color 0.25s ease; }
.contact-block a:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.social-links { display: flex; gap: 16px; flex-wrap: wrap; }
.social-links a { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 2px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-form h3 { font-size: 20px; margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181,101,47,0.14);
}
.form-success { display: none; margin-top: 14px; font-size: 14px; color: #4a6b52; font-weight: 600; }
.form-success.show { display: block; }

.map-wrap {
  margin-top: 50px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  padding: 20px;
}
.map-illustration { width: 100%; height: auto; display: block; }
.map-road { fill: none; stroke: var(--border-strong); stroke-width: 2; }
.map-road-thin { stroke-width: 1.5; opacity: 0.6; }
.map-pin { fill: var(--accent); }
.map-pin-label { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; fill: var(--text); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { font-family: 'Unbounded', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: 2px; color: #fff; display: block; margin-bottom: 14px; }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; transition: color 0.25s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 32px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto auto; }
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .about-grid, .lifestyle-grid, .lifestyle-grid.reverse, .contact-grid { grid-template-columns: 1fr; }
  .lifestyle-grid.reverse .lifestyle-image { order: 0; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .geo-scheme { height: 320px; }
  .hero-bg { animation: none; }
  .lifestyle-image.parallax { transform: none !important; }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .project-grid, .advantages-grid, .about-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .geo-pin-label { font-size: 13px; }
  .timeline-media { width: 100%; }
}
