/* НеваЕвроСтрой — чёрно-золотая тема */
:root {
  --gold: #c9a24b;
  --gold-bright: #e6c87a;
  --gold-deep: #8a6d2b;
  --bg: #0a0a09;
  --bg-alt: #111110;
  --card: #15150f;
  --text: #f2eee1;
  --muted: rgba(242, 238, 225, 0.62);
  --faint: rgba(242, 238, 225, 0.38);
  --gold-border: rgba(201, 162, 75, 0.45);
  --gold-border-soft: rgba(201, 162, 75, 0.22);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: #0a0a09; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1400px; margin: 0 auto; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-title em { color: var(--gold-bright); font-style: italic; }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: #050504;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-logo { height: 84px; width: auto; margin-bottom: 22px; animation: pulse 1.6s ease-in-out infinite; }
.preloader { flex-direction: column; }
.preloader-word {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.14em;
  color: var(--text);
  animation: pulse 1.6s ease-in-out infinite;
}
.preloader-word span { color: var(--gold); }
@keyframes pulse { 50% { opacity: 0.45; } }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(24px, 4vw, 56px);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.header.solid {
  background: rgba(10, 10, 9, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--gold-border-soft);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.logo-img { height: 38px; width: auto; }
.logo-word span, .logo span span { color: var(--gold); }

/* Навигация и бургер вынесены из шапки на уровень body:
   backdrop-filter у .header иначе делает её содержащим блоком для fixed-потомков,
   и мобильное меню схлопывается в полоску шапки */
.nav {
  position: fixed;
  top: 0;
  right: clamp(24px, 4vw, 56px);
  height: 74px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 103;
}
.nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 4px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav a:hover { color: #0a0a09; background: var(--gold); }
.nav-cta { border: 1px solid var(--gold-border); color: var(--gold-bright) !important; }
.nav-cta:hover { background: var(--gold) !important; color: #0a0a09 !important; }
@media (max-width: 1240px) {
  .nav a { padding: 10px 10px; letter-spacing: 0.12em; font-size: 12px; }
}
.burger {
  display: none;
  position: fixed;
  top: 19px;
  right: clamp(16px, 4vw, 48px);
  z-index: 104;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span { display: block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; transition: 0.3s; }
body.menu-open { overflow: hidden; }

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/hero.jpg") center/cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,4,0.55) 0%, rgba(5,5,4,0.25) 45%, rgba(5,5,4,0.72) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: clamp(140px, 22vh, 220px) clamp(24px, 6vw, 96px) clamp(64px, 9vw, 120px);
  max-width: 1100px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 7.5vw, 108px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero h1 em { color: var(--gold-bright); font-style: italic; }
.hero-sub {
  margin: 28px 0 40px;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 4px;
  border: 1px solid var(--gold-border);
  cursor: pointer;
  font-family: var(--body);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-gold { background: var(--gold); color: #0a0a09; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- О компании ---------- */
.about {
  padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 96px);
  background: var(--bg);
}
.about-statement {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 1150px;
}
.about-statement em { color: var(--gold); font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin: 44px 0 72px; }
.tags span {
  padding: 10px 20px;
  border: 1px solid var(--gold-border-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--gold-border-soft);
  border-left: 1px solid var(--gold-border-soft);
}
.stat {
  padding: 34px 30px;
  border-right: 1px solid var(--gold-border-soft);
  border-bottom: 1px solid var(--gold-border-soft);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.stat i { font-style: normal; color: var(--muted); font-size: 14px; }

/* ---------- Проекты ---------- */
.projects {
  padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 96px);
  background: var(--bg-alt);
  border-top: 1px solid var(--gold-border-soft);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card {
  background: #0d0d0c;
  border: 1px solid var(--gold-border-soft);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover { border-color: var(--gold-border); transform: translateY(-4px); }
.project-card .pc-img { aspect-ratio: 16/9; overflow: hidden; }
.project-card .pc-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.project-card:hover .pc-img img { transform: scale(1.05); filter: saturate(1); }
.pc-meta {
  padding: 18px 24px 22px;
}
.pc-meta .pc-line {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.pc-meta h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}
.pc-more {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

/* ---------- Клиенты ---------- */
.clients {
  padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 96px);
  background: var(--bg);
  border-top: 1px solid var(--gold-border-soft);
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gold-border-soft);
  border-left: 1px solid var(--gold-border-soft);
  counter-reset: cl;
}
@media (max-width: 1100px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .clients-grid { grid-template-columns: 1fr; } }
.clients-grid div {
  counter-increment: cl;
  padding: 22px 26px;
  border-right: 1px solid var(--gold-border-soft);
  border-bottom: 1px solid var(--gold-border-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.clients-grid div::before {
  content: counter(cl, decimal-leading-zero);
  display: block;
  color: var(--faint);
  font-size: 12px;
  margin-bottom: 6px;
}
.partners { display: flex; flex-wrap: wrap; gap: 12px; }
.partners span {
  padding: 12px 22px;
  border: 1px solid var(--gold-border-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Услуги ---------- */
.services {
  position: relative;
  padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 96px);
  background: url("../images/services.jpg") center/cover fixed no-repeat #0b0b0b;
}
.services-overlay { position: absolute; inset: 0; background: rgba(5, 5, 4, 0.72); }
.services .wrap { position: relative; z-index: 2; }
.services-lead { color: var(--muted); max-width: 640px; line-height: 1.7; margin-bottom: 56px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  border-top: 1px solid var(--gold-border-soft);
  border-left: 1px solid var(--gold-border-soft);
}
.service {
  padding: 34px 32px 40px;
  border-right: 1px solid var(--gold-border-soft);
  border-bottom: 1px solid var(--gold-border-soft);
  background: rgba(10, 10, 9, 0.45);
}
.service b { color: var(--gold); font-size: 13px; letter-spacing: 0.2em; font-weight: 400; }
.service h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  margin: 14px 0 12px;
}
.service p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- Заявка ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  border-top: 1px solid var(--gold-border);
  min-height: 700px;
}
.contact-left {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 4, 0.30) 0%, rgba(8, 7, 5, 0.42) 50%, rgba(5, 5, 4, 0.88) 100%),
    url("../images/contact-spb.jpg") center 30%/cover no-repeat #0a0a09;
  min-height: 420px;
  display: flex; align-items: flex-end;
}
.contact-waves {
  position: absolute; inset: -30%;
  background:
    repeating-radial-gradient(circle at 30% 70%, transparent 0px, rgba(230, 200, 122, 0.06) 40px, transparent 80px),
    repeating-radial-gradient(circle at 75% 25%, transparent 0px, rgba(201, 162, 75, 0.05) 60px, transparent 120px);
  animation: waves 14s linear infinite;
}
@keyframes waves {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.06); }
  to { transform: rotate(0deg) scale(1); }
}
.contact-left-inner {
  position: relative; z-index: 2;
  padding: clamp(24px, 4vw, 48px);
}
.contact-left-inner h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.contact-left-inner h2 em { color: var(--gold-bright); font-style: italic; }
.contact-left-inner p { margin-top: 18px; color: var(--muted); font-size: 14px; letter-spacing: 0.12em; }
.contact-right {
  background: var(--bg);
  padding: clamp(48px, 6vw, 90px) clamp(24px, 5vw, 80px);
}
.contact-title {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-lead { color: var(--muted); line-height: 1.7; margin-bottom: 40px; max-width: 520px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { margin-bottom: 26px; }
.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold-border-soft);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  padding: 10px 2px;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field select option { color: var(--text); background: var(--card); }
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-bottom-color: var(--gold); }
.form-field ::placeholder { color: var(--faint); }
.btn-submit { width: 100%; font-size: 14px; position: relative; }
.btn-submit[disabled] { opacity: 0.65; cursor: wait; }
.btn-submit.sending .btn-label { opacity: 0; }
.btn-submit.sending::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(10, 10, 9, 0.3);
  border-top-color: #0a0a09;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 18px; font-size: 14px; line-height: 1.5; min-height: 20px; }
.form-status.ok { color: var(--gold-bright); }
.form-status.err { color: #d98a8a; }

/* Блок успешной отправки */
.form-success {
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 44px 36px;
  text-align: center;
  background: rgba(201, 162, 75, 0.06);
}
.form-success-badge {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a09;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
}
.form-success p { color: var(--muted); line-height: 1.65; margin-bottom: 26px; }

/* ---------- Футер ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--gold-border-soft);
  padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 96px) 24px;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 72px;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.fcol h4 {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 400;
}
.fcol p { color: var(--muted); font-size: 14px; line-height: 1.95; }
.fcol a { color: var(--text); text-decoration: none; }
.fcol a:hover { color: var(--gold-bright); }
.wordmark {
  font-family: var(--display);
  font-size: clamp(40px, 10.5vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--gold);
  opacity: 0.9;
  white-space: nowrap;
  user-select: none;
}
.wordmark span { color: var(--gold-deep); }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; }
.modal.open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 4, 0.8);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: absolute;
  inset: 4vh 4vw;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--gold-border-soft);
  border-radius: 8px;
  overflow-y: auto;
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 14px 14px 0 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: rgba(10, 10, 9, 0.85);
  color: var(--gold-bright);
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.25s, color 0.25s;
}
.modal-close:hover { background: var(--gold); color: #0a0a09; }
.modal-hero { aspect-ratio: 16/9; overflow: hidden; background: #000; }
.modal-hero img { width: 100%; height: 100%; object-fit: contain; }
.modal-content { padding: clamp(28px, 4vw, 56px); }
.modal-content .pc-line {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.modal-content h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 22px;
}
.modal-tagline { color: var(--gold-bright); font-size: 17px; margin-bottom: 22px; font-style: italic; font-family: var(--display); }
.modal-content p.mtext { color: var(--muted); line-height: 1.75; margin-bottom: 14px; max-width: 760px; }
.modal-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; margin-top: 36px; }
.modal-scope h4, .modal-facts h4 {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 400;
}
.modal-scope li {
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--gold-border-soft);
  position: relative;
}
.modal-scope li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
.modal-facts { background: var(--card); border: 1px solid var(--gold-border-soft); border-radius: 6px; padding: 28px; height: fit-content; }
.modal-facts .area-big {
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 48px);
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 6px;
}
.modal-facts .area-note { color: var(--faint); font-size: 13px; margin-bottom: 22px; }
.modal-facts .fact { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--gold-border-soft); font-size: 13px; }
.modal-facts .fact b { color: var(--faint); font-weight: 400; }
.modal-facts .fact span { color: var(--text); text-align: right; }

/* ---------- Лицензии и письма ---------- */
.docs {
  padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 96px);
  background: var(--bg-alt);
  border-top: 1px solid var(--gold-border-soft);
}
.letters {
  padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 96px);
  background: var(--bg);
  border-top: 1px solid var(--gold-border-soft);
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) { .docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .docs-grid { grid-template-columns: 1fr; } }
.doc-card {
  background: #0d0d0c;
  border: 1px solid var(--gold-border-soft);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.doc-card:hover { border-color: var(--gold-border); transform: translateY(-4px); }
.doc-card a { display: block; aspect-ratio: 3/4; overflow: hidden; cursor: zoom-in; }
.doc-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.52) sepia(0.22) saturate(0.85);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.doc-card:hover img { transform: scale(1.04); filter: brightness(0.92) sepia(0.08); }
.doc-card figcaption { padding: 18px 22px 22px; }
.doc-card figcaption b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}
.doc-card figcaption span { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 4, 0.93);
  backdrop-filter: blur(8px);
}
.lightbox-figure {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--gold-border-soft);
  border-radius: 6px;
  background: #0d0d0c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-caption { margin-top: 18px; text-align: center; }
.lightbox-caption b {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 6px;
}
.lightbox-caption span { color: var(--muted); font-size: 13px; }
.lightbox-caption i {
  display: block;
  font-style: normal;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.24em;
  margin-top: 8px;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: rgba(10, 10, 9, 0.85);
  color: var(--gold-bright);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lightbox-close:hover { background: var(--gold); color: #0a0a09; }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: rgba(10, 10, 9, 0.75);
  color: var(--gold-bright);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lightbox-arrow:hover { background: var(--gold); color: #0a0a09; }
.lightbox-prev { left: max(16px, 4vw); }
.lightbox-next { right: max(16px, 4vw); }
@media (max-width: 640px) {
  .lightbox-arrow { width: 42px; height: 42px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 14px; right: 14px; }
}

/* ---------- Юридические страницы ---------- */
.legal-page .legal {
  padding: 140px clamp(24px, 6vw, 96px) 80px;
  max-width: 900px;
}
.legal h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-bright);
  margin: 40px 0 14px;
}
.legal p, .legal li { color: var(--muted); line-height: 1.8; font-size: 15px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold-bright); }
.legal-date { color: var(--faint); font-size: 13px; margin-top: 26px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  padding: 34px 24px 10px;
  border-top: 1px solid var(--gold-border-soft);
  margin-top: 34px;
}
.footer-legal a, .footer-legal span { color: var(--faint); font-size: 13px; text-decoration: none; }
.footer-legal a:hover { color: var(--gold-bright); }

/* ---------- Согласие в форме ---------- */
.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 26px;
  cursor: pointer;
}
.form-consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.form-consent span { color: var(--faint); font-size: 13px; line-height: 1.6; }
.form-consent a { color: var(--gold-bright); }

/* ---------- Баннер cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 160;
  width: min(720px, calc(100vw - 32px));
  background: rgba(17, 17, 16, 0.97);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}
.cookie-banner p { color: var(--muted); font-size: 13px; line-height: 1.6; flex: 1; }
.cookie-banner a { color: var(--gold-bright); }
.cookie-banner .btn { padding: 12px 24px; font-size: 12px; flex-shrink: 0; }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; } }

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* Плавное появление текста по строкам */
.rise-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotate(1.2deg);
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.rise-in .rise-line { opacity: 1; transform: none; }
.rise-line:nth-child(2) { transition-delay: 0.12s; }
.rise-line:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .modal-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .nav {
    inset: 0;
    height: auto;
    background: rgba(5, 5, 4, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transform: translateY(-102%);
    transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 19px; letter-spacing: 0.22em; padding: 8px 18px; }
  .nav .nav-cta { margin-top: 8px; padding: 15px 38px; font-size: 14px; }
  .burger { display: block; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .modal-card { inset: 0; border-radius: 0; }
  .services { background-attachment: scroll; }
}

/* На страницах политик бургера нет — меню должно оставаться видимым */
@media (max-width: 1024px) {
  .legal-page .nav {
    position: static;
    inset: auto;
    height: auto;
    transform: none;
    flex-direction: row;
    justify-content: flex-end;
    background: none;
    gap: 4px;
  }
  .legal-page .nav a { font-size: 12px; padding: 8px 12px; letter-spacing: 0.14em; }
}
