/* ============================================================
   NK ESTATE — элитная недвижимость
   Стиль: строгий, контрастный. Графит + бронза на светлой основе.
   ============================================================ */

:root {
  --ink: #14161A;
  --ink-2: #1D2126;
  --ink-3: #262B31;
  --paper: #F4F2ED;
  --white: #FFFFFF;
  --gold: #B08D3F;
  --gold-2: #C9A45C;
  --text: #1F2328;
  --muted: #5F6670;
  --line: rgba(20, 22, 26, 0.10);
  --line-dark: rgba(255, 255, 255, 0.12);
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 24px 48px -24px rgba(20, 22, 26, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: #fff; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(32px, 4.6vw, 54px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 20px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Метка над заголовком ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { padding: 11px 18px; font-size: 13px; }
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(244, 242, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px -18px rgba(20, 22, 26, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; letter-spacing: 0.03em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.logo-sub { font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  text-decoration: none;
}
.header-phone svg { color: var(--gold); flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: var(--ink); transition: 0.25s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   ГЕРОЙ
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 172px 0 104px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--gold-2); }
.hero h1 { color: #fff; margin: 22px 0 22px; }
.hero-sub { color: rgba(255, 255, 255, 0.72); font-size: 17px; max-width: 560px; }

.hero-facts { display: flex; flex-wrap: wrap; margin: 38px 0 34px; }
.fact { padding: 2px 30px; border-left: 2px solid var(--gold); }
.fact:first-child { border-left: none; padding-left: 0; }
.fact-value { display: block; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.fact-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 22px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(255, 255, 255, 0.55);
}
.hero-note svg { color: var(--gold); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 44px 90px -36px rgba(0, 0, 0, 0.65);
  background: var(--ink-2);
  cursor: zoom-in;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-media:hover .hero-photo img { transform: scale(1.03); }

.hero-price {
  position: absolute;
  left: -20px;
  bottom: 30px;
  background: var(--gold);
  color: var(--ink);
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.price-value { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.price-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; margin-top: 3px; }

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }

/* ---------- Преимущества ---------- */
.features { background: var(--paper); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- Об объекте ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.about-copy h2 { margin: 14px 0 20px; }
.about-text { color: var(--muted); font-size: 16px; }

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.spec {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.spec-value { display: block; font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.spec-label { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 3px; display: block; }

.gallery { min-width: 0; }
.gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-main:hover img { transform: scale(1.02); }
.gallery-caption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(20, 22, 26, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 8px 14px;
  border-radius: 8px;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }

/* Заглушки для фото, которых пока нет */
.ph {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px dashed rgba(20, 22, 26, 0.22);
  background: linear-gradient(135deg, #EDEAE2, #E3DFD4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8A8678;
  text-align: center;
  padding: 16px;
}
.ph svg { opacity: 0.45; flex-shrink: 0; }
.ph span { font-size: 14px; font-weight: 700; }
.ph small { font-size: 12px; opacity: 0.75; }

/* ---------- Эксперт ---------- */
.expert-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin-top: 56px;
}
.expert-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.expert-role {
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.expert-bio { color: var(--muted); font-size: 15px; max-width: 540px; margin-top: 6px; }
.expert-contact .btn { white-space: nowrap; }
.expert-contact .btn svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Услуги ---------- */
.services { background: var(--paper); }
.service-list { list-style: none; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-num { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--gold); padding-top: 7px; }
.service-main h3 { margin-bottom: 7px; }
.service-main p { color: var(--muted); font-size: 15px; max-width: 600px; }
.service-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  padding-top: 4px;
}
.service-duration {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.service-duration svg { color: var(--gold); flex-shrink: 0; }
.service-price { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }

.reviews-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
}
.reviews-text { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 560px; }
.reviews-row .btn { flex-shrink: 0; }

/* ---------- Призыв ---------- */
.cta { background: var(--paper); }
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 76px 56px;
  text-align: center;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card .eyebrow { justify-content: center; color: var(--gold-2); }
.cta-card h2 { color: #fff; margin: 18px auto 16px; max-width: 640px; }
.cta-text { color: rgba(255, 255, 255, 0.7); max-width: 580px; margin: 0 auto 34px; font-size: 16px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-contacts {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}
.cta-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-left: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}
.cta-contact:first-child { border-left: none; }
.cta-contact svg { color: var(--gold); flex-shrink: 0; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.65); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand .logo-name { color: #fff; }
.footer-tag { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.55); max-width: 270px; }
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-contact { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-links { display: flex; gap: 6px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-left: 18px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-2); }

/* ============================================================
   ПРОСМОТР ФОТО
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold-2); }

/* ============================================================
   Появление при прокрутке
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo img, .gallery-main img { transition: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
  .hero { padding: 148px 0 84px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 620px; }
  .hero-price { left: -10px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .burger { display: flex; }
  .header-phone { display: none; }
  .site-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 22, 26, 0.35);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a {
    font-size: 16px;
    padding: 13px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: none; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero { padding: 128px 0 72px; }
  .hero h1 { margin: 18px 0 16px; }
  .hero-sub { font-size: 15px; }
  .fact { padding: 2px 18px; }
  .fact-value { font-size: 19px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-price { left: 12px; bottom: -20px; }
  .hero-media { margin-bottom: 24px; }

  .features-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .gallery-main img { height: 280px; }
  .gallery-thumbs { grid-template-columns: 1fr; }

  .expert-card { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .expert-avatar { margin: 0 auto; }
  .expert-contact { justify-content: center; display: flex; }

  .service-row { grid-template-columns: 44px 1fr; gap: 16px; padding: 26px 0; }
  .service-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }
  .service-main p { font-size: 14px; }

  .reviews-row { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cta-card { padding: 56px 22px; }
  .cta-contact { width: 100%; justify-content: center; border-left: none; padding: 10px 0; }
  .cta-contact:first-child { padding-top: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links a { margin-left: 0; margin-right: 18px; }
}
