:root {
  --wine: #3b0b0c;
  --wine-2: #4d1214;
  --cream: #f6efe6;
  --sand: #ebe2d4;
  --gold: #d8bf8a;
  --gold-dark: #a8875a;
  --ink: #2a1a17;
  --muted: #6b5a52;
  --radius: 10px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(48px, 7vw, 92px); }
h2 { font-size: clamp(38px, 5vw, 64px); }
h3 { font-size: 28px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 14px;
}
.dark .eyebrow { color: var(--gold); }
.lead { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--gold); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.dark { background: var(--wine); color: var(--cream); }
.sand { background: var(--sand); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--wine); }
.btn-gold:hover { background: #e6d1a3; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(216,191,138,.15); }
.btn-wine { background: var(--wine); color: var(--cream); }
.btn-wine:hover { background: var(--wine-2); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(59,11,12,.96); color: var(--cream);
  backdrop-filter: blur(6px);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand span { font-family: var(--serif); font-size: 26px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; letter-spacing: .05em; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--gold); }
.nav .btn { padding: 10px 20px; opacity: 1; }
.burger { display: none; background: none; border: 0; color: inherit; font-size: 28px; cursor: pointer; padding: 8px; }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 76px); padding: 0; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 64px 7vw 64px max(24px, calc((100vw - 1240px) / 2 + 24px)); }
.hero-text .tag { margin-top: 48px; font-size: 13px; letter-spacing: .3em; color: var(--gold); }
.hero-img { position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

/* Двухколоночные блоки */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p { margin: 0 0 1em; }
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3/4; }
.stack img.tall { grid-row: span 2; aspect-ratio: auto; }

/* Чипы */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.chips li { background: var(--wine); color: var(--cream); padding: 8px 18px; border-radius: 999px; font-size: 15px; }

/* Карточки пространств */
.cards { display: grid; gap: 20px; margin-top: 40px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.card { cursor: zoom-in; }
.card .ph { overflow: hidden; border-radius: var(--radius); }
.card img { width: 100%; aspect-ratio: 5/6; object-fit: cover; transition: transform .5s; }
.cards-5 .card img { aspect-ratio: 7/10; }
.card:hover img { transform: scale(1.05); }
.card h3 { margin: 16px 0 4px; font-size: 26px; }
.card p { margin: 0; font-size: 15px; opacity: .85; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head .lead { color: var(--wine); margin: 0 0 .4em; }

/* Видео: обложка с кнопкой, плеер YouTube грузится по нажатию */
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.shorts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.film h3 { margin: 18px 0 8px; }
.film p { margin: 0 0 10px; font-size: 15px; opacity: .85; }
.short h3 { font-size: 20px; margin: 12px 0 4px; }
.credits { font-size: 13px !important; opacity: 1 !important; color: rgba(246,239,230,.7); }
.credits a { color: var(--gold); text-decoration: none; }
.credits a:hover { text-decoration: underline; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; }
.yt-v { aspect-ratio: 9/16; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; transition: transform .5s; }
.yt:hover img { transform: scale(1.04); }
.yt::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; background: rgba(216,191,138,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%233b0b0c'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;
  transition: transform .2s;
}
.yt:hover::after { transform: scale(1.1); }
.yt.playing::after { display: none; }

/* Вместимость */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.fact { background: var(--cream); border-radius: var(--radius); padding: 24px; }
.fact b { display: block; font-family: var(--serif); font-size: 54px; font-weight: 500; color: var(--wine); line-height: 1; }
.fact span { display: block; font-family: var(--serif); font-size: 24px; margin: 6px 0; }
.fact p { margin: 0; font-size: 15px; color: var(--muted); }

/* Машина */
.car-note { background: var(--gold); color: var(--wine); border-radius: var(--radius); padding: 20px 24px; margin-top: 24px; font-weight: 500; }
.car-img img { border-radius: var(--radius); width: 100%; }

/* Корпоративные */
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.mini div { background: var(--sand); border-radius: var(--radius); padding: 20px; }
.mini h3 { font-size: 24px; margin-bottom: 4px; }
.mini p { margin: 0; font-size: 15px; color: var(--muted); }

/* Локация */
.map { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); filter: saturate(.85); }
.docks { padding-left: 0; list-style: none; }
.docks li::before { content: "· "; }

/* Менеджер виллы */
.host { grid-template-columns: 5fr 6fr; }
.host-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); }
.host .lead.host-role { color: var(--gold-dark); margin: -4px 0 24px; }

/* Финальный призыв */
.cta { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.cta-text { padding: 96px 7vw 96px max(24px, calc((100vw - 1240px) / 2 + 24px)); display: flex; flex-direction: column; justify-content: center; }
.cta-img img { width: 100%; height: 100%; object-fit: cover; }
.contacts { list-style: none; padding: 0; margin: 24px 0 0; }
.contacts li { margin: 6px 0; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--gold); }

/* Подвал */
.footer { background: #2a0708; color: rgba(246,239,230,.7); padding: 40px 0; font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* Плавающий WhatsApp */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 32px; height: 32px; }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,4,5,.94); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 6px; }
.lightbox p { color: var(--cream); text-align: center; font-family: var(--serif); font-size: 24px; margin: 12px 0 0; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* Форма */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1px solid #d9ccb9; border-radius: 8px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(216,191,138,.35); }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink); }
.form .check input { width: 20px; height: 20px; margin-top: 2px; }
.form button { justify-self: start; border: 0; }
.form-err { margin: 0; padding: 14px 16px; border-radius: 8px; background: #f6dede; color: #7a1d1d; }
.form button:disabled { opacity: .6; cursor: wait; }
.form-ok { display: none; background: var(--sand); border-radius: var(--radius); padding: 32px; }
.form-ok.show { display: block; }
.contact-card { background: var(--wine); color: var(--cream); border-radius: var(--radius); padding: 36px; }
.contact-card h3 { color: var(--gold); }

@media (max-width: 960px) {
  section { padding: 72px 0; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: var(--wine); padding: 24px; gap: 18px; display: none; }
  .nav.open { display: flex; }
  .burger { display: block; }
  .hero, .split, .cta { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-text, .cta-text { padding: 56px 24px; }
  .hero-img { height: 55vh; order: -1; }
  .cta-img { height: 60vh; }
  .split { gap: 40px; }
  .cards-4, .cards-5 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .cards-4 .card, .cards-5 .card { flex: 0 0 72%; scroll-snap-align: start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .films { grid-template-columns: 1fr; }
  .shorts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .short { flex: 0 0 46%; scroll-snap-align: start; }
  .mini, .form { grid-template-columns: 1fr; }
}
