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

:root {
  --dark:       #0d1a0d;
  --dark-green: #162616;
  --green:      #1f3d1f;
  --green-mid:  #2d5a3d;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --cream:      #f5f0e8;
  --cream-dark: #ede5d8;
  --white:      #ffffff;
  --text:       #1a1a1a;
  --text-light: #555;
  --border:     #e0d9ce;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--cream); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
p { line-height: 1.75; color: var(--text-light); }
p + p { margin-top: 14px; }

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

/* ========== NAV ========== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 32px; height: 72px; display: flex; align-items: center; transition: background 0.3s, box-shadow 0.3s; }
/* На детальной странице объекта — меню в потоке, не перекрывает контент */
.nav--static { position: relative; top: auto; left: auto; right: auto; background: var(--dark) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important; }
.nav.scrolled { background: var(--dark); box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.nav__inner { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.nav__logo span { color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.nav__links a:hover { color: var(--gold); }
.nav__cta { background: var(--gold); color: var(--dark) !important; padding: 9px 20px; border-radius: 6px; font-weight: 600 !important; transition: background 0.2s !important; }
.nav__cta:hover { background: var(--gold-light) !important; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; transition: all 0.2s; border: none; }
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn--outline-light { background: transparent; color: var(--cream); border: 2px solid rgba(245,240,232,0.4); }
.btn--outline-light:hover { border-color: var(--cream); }
.btn--green { background: var(--green-mid); color: var(--white); }
.btn--green:hover { background: #1f4a2e; transform: translateY(-1px); }
.btn--full { width: 100%; }

/* ========== SECTION COMMON ========== */
.section-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--green-mid); background: rgba(45,90,61,0.1); padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; }
.section-tag--light { color: var(--gold); background: rgba(201,168,76,0.15); }
.section-title { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 20px; }
.section-title--light { color: var(--cream); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; }

/* ========== HERO ========== */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,22,10,0.6) 0%, rgba(10,22,10,0.75) 100%); }
.hero__content { position: relative; z-index: 2; text-align: center; padding: 80px 24px 0; max-width: 800px; }
.hero__tag { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201,168,76,0.4); padding: 7px 20px; border-radius: 30px; margin-bottom: 28px; }
.hero__title { font-family: var(--font-serif); font-size: clamp(36px, 4.2vw, 56px); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 24px; }
.hero__sub { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; }
.hero__scroll span { display: block; width: 2px; height: 8px; background: rgba(255,255,255,0.5); border-radius: 2px; animation: scrollPulse 1.4s ease-in-out infinite; }
.hero__scroll span:nth-child(2) { animation-delay: 0.15s; }
.hero__scroll span:nth-child(3) { animation-delay: 0.3s; }
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(0.8)} 50%{opacity:1;transform:scaleY(1.2)} }

/* ========== STATS ========== */
.stats { background: var(--dark); padding: 56px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.stats__item { text-align: center; padding: 24px 16px; border-right: 1px solid rgba(255,255,255,0.08); }
.stats__item:last-child { border-right: none; }
.stats__num { font-family: var(--font-serif); font-size: 52px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.stats__num span { font-family: var(--font-sans); font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.5); margin-left: 4px; }
.stats__label { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ========== ABOUT ========== */
.about { padding: 100px 0; background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about__photo-wrap { position: relative; }
.about__photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__badge { position: absolute; bottom: -24px; right: -24px; background: var(--gold); color: var(--dark); padding: 20px 24px; border-radius: 12px; text-align: center; box-shadow: 0 8px 30px rgba(201,168,76,0.4); }
.about__badge-num { font-family: var(--font-serif); font-size: 40px; font-weight: 700; line-height: 1; }
.about__badge-text { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; opacity: 0.8; }
.about__text p { font-size: 16px; }
.about__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.about__chips span { background: var(--cream); color: var(--green-mid); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); }

/* ========== ADVANTAGES ========== */
.advantages { background: var(--dark-green); padding: 100px 0; }
.adv__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden; }
.adv__card { background: var(--dark-green); padding: 48px 40px; transition: background 0.2s; }
.adv__card:hover { background: var(--green); }
.adv__icon { width: 56px; height: 56px; color: var(--gold); margin-bottom: 20px; }
.adv__card h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.adv__card p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ========== HOW IT WORKS ========== */
.how { padding: 100px 0; background: var(--cream); }
.how__steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 0; margin-top: 16px; }
.how__step { padding: 0 16px; }
.how__num { font-family: var(--font-serif); font-size: 56px; font-weight: 700; color: var(--cream-dark); line-height: 1; margin-bottom: 16px; }
.how__step h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.how__step p { font-size: 14px; line-height: 1.7; }
.how__arrow { font-size: 28px; color: var(--gold); padding-top: 16px; align-self: start; }

/* ========== PROPERTIES ========== */
.properties { padding: 100px 0; background: var(--dark); }
.prop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prop__card { background: var(--dark-green); border-radius: 16px; overflow: hidden; transition: transform 0.2s; }
.prop__card:hover { transform: translateY(-4px); }
.prop__img { aspect-ratio: 16/10; overflow: hidden; }
.prop__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.prop__card:hover .prop__img img { transform: scale(1.04); }
.prop__body { padding: 24px; }
.prop__tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; background: rgba(45,90,61,0.4); color: #7fcf9a; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.prop__tag--reserved { background: rgba(201,168,76,0.2); color: var(--gold); }
.prop__body h3 { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.prop__meta { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.prop__desc { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 20px; }
.prop__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.prop__price { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--gold); }
.prop__link { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.prop__link:hover { color: var(--gold); }

/* ========== REVIEWS ========== */
.reviews { padding: 100px 0; background: var(--white); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review__card { background: var(--cream); border-radius: 16px; padding: 36px 32px; }
.review__stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.review__card p { font-size: 15px; color: var(--text-light); line-height: 1.75; font-style: italic; margin-bottom: 24px; }
.review__author { display: flex; align-items: center; gap: 14px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-mid); color: var(--white); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review__name { font-weight: 600; font-size: 14px; color: var(--text); }
.review__role { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ========== CTA ========== */
.cta { position: relative; padding: 120px 0; text-align: center; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__overlay { position: absolute; inset: 0; background: rgba(10,22,10,0.78); }
.cta__content { position: relative; z-index: 2; }
.cta__content h2 { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 54px); font-weight: 700; color: var(--white); margin-bottom: 16px; }
.cta__content p { font-size: 18px; color: rgba(255,255,255,0.65); margin-bottom: 40px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== CONTACT ========== */
.contact { padding: 100px 0; background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact__info .section-title { margin-bottom: 16px; }
.contact__info p { font-size: 16px; margin-bottom: 32px; }
.contact__links { display: flex; flex-direction: column; gap: 12px; }
.contact__link { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--text); padding: 14px 20px; background: var(--white); border-radius: 10px; border: 1px solid var(--border); transition: border-color 0.2s, transform 0.15s; }
.contact__link:hover { border-color: var(--green-mid); transform: translateX(4px); }
.contact__link svg { width: 22px; height: 22px; color: var(--green-mid); flex-shrink: 0; }
.contact__form { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: 0 4px 40px rgba(0,0,0,0.06); }
.form__field { margin-bottom: 20px; }
.form__field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form__field input, .form__field textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; font-family: var(--font-sans); color: var(--text); background: var(--cream); transition: border-color 0.2s; resize: none; }
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--green-mid); background: var(--white); }
.form__note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 12px; }

/* ========== FOOTER ========== */
.footer { background: var(--dark); padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__logo { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--white); }
.footer__logo span { color: var(--gold); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { font-size: 13px; color: rgba(255,255,255,0.3); }

/* ========== RESPONSIVE 1024px ========== */
@media (max-width: 1024px) {
  .about__grid { gap: 48px; }
  .how__steps { grid-template-columns: 1fr; gap: 32px; }
  .how__arrow { display: none; }
  .adv__grid { grid-template-columns: 1fr; }
}

/* ========== RESPONSIVE 768px (mobile) ========== */
@media (max-width: 768px) {

  /* — Контейнер — */
  .container { padding: 0 16px; }

  /* — Меню: бургер показываем, ссылки — через класс nav--open — */
  .nav { padding: 0 16px; }
  .nav__burger { display: flex; z-index: 101; }
  .nav__burger span { transition: transform 0.22s, opacity 0.22s; }
  .nav--open .nav__burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav--open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav--open .nav__burger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--dark);
    padding: 12px 16px 24px;
    gap: 0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    z-index: 99;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav--open .nav__links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links a {
    font-size: 16px !important;
    color: rgba(255,255,255,0.85) !important;
    padding: 15px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-weight: 500 !important;
    background: none !important;
    border-radius: 0 !important;
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__cta {
    background: var(--gold) !important;
    color: var(--dark) !important;
    border-radius: 8px !important;
    text-align: center;
    margin-top: 8px;
    border-bottom: none !important;
    padding: 14px 8px !important;
    font-weight: 700 !important;
  }

  /* — Hero — */
  .hero__sub { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .hero__actions .btn { text-align: center; }
  .hero__tag { font-size: 11px; padding: 6px 14px; }

  /* — Статистика — */
  .stats { padding: 36px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 20px 12px; }
  .stats__num { font-size: 40px; }

  /* — О себе — */
  .about { padding: 60px 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo-wrap { margin-bottom: 36px; }
  .about__badge { right: 12px; bottom: -20px; padding: 14px 18px; }
  .about__badge-num { font-size: 32px; }

  /* — Преимущества — */
  .advantages { padding: 60px 0; }

  /* — Как это работает — */
  .how { padding: 60px 0; }
  .how__step { padding: 0; }
  .how__num { font-size: 40px; }

  /* — Объекты (главная) — */
  .properties { padding: 60px 0; }
  .prop__grid { grid-template-columns: 1fr; }

  /* — Отзывы — */
  .reviews { padding: 60px 0; }
  .reviews__grid { grid-template-columns: 1fr; }

  /* — CTA — */
  .cta { padding: 80px 0; }
  .cta__content h2 { font-size: 28px; }
  .cta__content p { font-size: 15px; }
  .cta__actions { flex-direction: column; align-items: center; }

  /* — Контакт — */
  .contact { padding: 60px 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__form { padding: 24px 20px; }

  /* — Заголовки секций — */
  .section-title { font-size: 28px; }
  .section-header--row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-header { margin-bottom: 36px; }

  /* — Футер — */
  .footer__inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer__links { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .footer__copy { font-size: 12px; }
}
