:root {
  --bg: #090b0d;
  --bg-2: #101418;
  --elev: #161b21;
  --glass: rgba(16, 20, 24, 0.62);
  --ink: #e8eef3;
  --mute: #8e9aa4;
  --faint: #66727c;
  --steel: #7d94a6;
  --mercury: #c5d2dc;
  --line: rgba(197, 210, 220, 0.14);
  --drop: rgba(186, 206, 220, 0.16);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font-d: "Syne", "Trebuchet MS", sans-serif;
  --font-b: "Figtree", "Segoe UI", sans-serif;
  --header: 78px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #d4d9de;
  --bg-2: #c7ced4;
  --elev: #e7ebef;
  --glass: rgba(231, 235, 239, 0.72);
  --ink: #15191d;
  --mute: #4e5b66;
  --faint: #6a7782;
  --steel: #3f5868;
  --mercury: #24333d;
  --line: rgba(30, 42, 52, 0.14);
  --drop: rgba(40, 55, 68, 0.1);
  --shadow: 0 22px 48px rgba(40, 50, 60, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 7px 10px at 18px 22px, var(--drop) 0 38%, transparent 70%),
    radial-gradient(ellipse 5px 7px at 72px 48px, var(--drop) 0 34%, transparent 68%),
    radial-gradient(ellipse 9px 12px at 110px 16px, var(--drop) 0 36%, transparent 70%),
    radial-gradient(ellipse 6px 8px at 46px 90px, var(--drop) 0 36%, transparent 68%);
  background-size: 140px 160px, 110px 130px, 170px 150px, 90px 120px;
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; z-index: 80; background: var(--elev); padding: 8px 12px; border-radius: 8px; }

.mist, .grain, #rain {
  position: fixed; inset: 0; pointer-events: none;
}
.mist {
  z-index: 0;
  background: url("../img/drops-texture.jpg") center / cover;
  opacity: 0.18;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: overlay;
}
html[data-theme="light"] .mist { opacity: 0.12; mix-blend-mode: multiply; }
.grain {
  z-index: 1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
#rain { z-index: 2; }
.site-wm {
  position: fixed; top: 0; left: 0; right: 0; z-index: 55;
  text-align: center;
  font: 700 12px/1.4 var(--font-d);
  letter-spacing: .05em;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--mercury);
  border-bottom: 1px solid var(--line);
}
.site-wm a, .site-wm-foot a { color: var(--mercury); text-decoration: underline; }
.site-wm-foot { margin-top: 8px; color: var(--faint); font-size: 12px; font-weight: 700; }
.legal-note { margin-top: 8px; color: var(--faint); font-size: 12px; max-width: 46ch; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.site-header {
  position: sticky; top: 40px; z-index: 40;
  padding: 0 0 8px;
}
.header-inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  min-width: 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-weight: 700; letter-spacing: -0.03em;
  min-width: 0;
}
.logo-drop {
  height: 46px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  flex: none;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 0;
  font-size: 12px;
  font-weight: 650;
  flex-wrap: nowrap;
}
.nav a {
  color: var(--mute);
  padding: 7px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--steel) 16%, transparent); }
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 0; }
.phone-link { font-size: 13px; font-weight: 700; white-space: nowrap; }
.icon-btn, .burger {
  width: 40px; height: 40px; border: 1px solid var(--line); background: transparent;
  border-radius: 50%; cursor: pointer; color: var(--ink);
}
.burger { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px; padding: 12px 20px;
  font-weight: 700; letter-spacing: 0.02em; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-steel {
  background: linear-gradient(135deg, #8aa4b8, #5c7388); color: #fff;
  box-shadow: 0 8px 22px rgba(40, 55, 70, 0.28);
}
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
}

.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px;
  padding: 36px 0 72px; align-items: center;
}
.hero-copy .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--steel); font-weight: 700; margin-bottom: 16px;
}
.hero-copy .kicker::before { content: ""; width: 28px; height: 1px; background: var(--steel); }
.hero h1 {
  font-family: var(--font-d); font-weight: 750; letter-spacing: -0.045em;
  font-size: clamp(34px, 5vw, 62px); line-height: 0.98; margin-bottom: 16px;
}
.hero h1 em { font-style: italic; color: var(--mercury); font-weight: 650; }
.lead { font-size: 17px; color: var(--mute); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-d); font-size: 28px; }
.stat span { font-size: 12px; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; }

.hero-media {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 420px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 420px;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
}
html[data-theme="light"] .hero-media img { filter: grayscale(1) contrast(1.02) brightness(0.96); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(9,11,13,.55)),
    radial-gradient(ellipse 8px 11px at 20% 30%, rgba(255,255,255,.18) 0 40%, transparent 70%),
    radial-gradient(ellipse 6px 8px at 70% 55%, rgba(255,255,255,.14) 0 36%, transparent 68%),
    radial-gradient(ellipse 10px 14px at 82% 18%, rgba(255,255,255,.16) 0 38%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(10,12,14,.45); padding: 8px 12px; border-radius: 999px;
  backdrop-filter: blur(8px);
}

.film {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px;
  margin: 0 0 20px; scrollbar-width: thin;
}
.chip {
  flex: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--elev); font-size: 13px; font-weight: 650; cursor: pointer;
}
.chip:hover { border-color: var(--steel); }

section { padding: 80px 0; position: relative; z-index: 3; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px;
}
.section-head h2 {
  font-family: var(--font-d); font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.04em; line-height: 1.05;
}
.section-head p { color: var(--mute); max-width: 42ch; }

.about {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center;
}
.about-photo {
  position: relative; border-radius: 46% 40% 48% 52% / 42% 38% 62% 58%;
  overflow: hidden; min-height: 380px; border: 1px solid var(--line);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover; min-height: 380px;
  filter: grayscale(1) contrast(1.05);
}
.about-copy h2 { font-family: var(--font-d); font-size: 36px; letter-spacing: -0.04em; margin: 10px 0 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.fact {
  border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--elev); font-size: 14px;
}

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
}
.card img {
  width: 100%; height: 180px; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.82);
}
html[data-theme="light"] .card img { filter: grayscale(1) contrast(1.02) brightness(0.95); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .num { font-size: 11px; letter-spacing: 0.2em; color: var(--steel); font-weight: 700; }
.card-body h3 { font-family: var(--font-d); font-size: 22px; letter-spacing: -0.03em; }
.card-body p { color: var(--mute); font-size: 14px; }
.price { margin-top: auto; font-weight: 700; color: var(--mercury); }
.card-body .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo {
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--elev), var(--bg-2));
}
.promo h3 { font-family: var(--font-d); font-size: 24px; margin-bottom: 8px; }

.gallery {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 10px;
}
.gallery button { border: 0; padding: 0; cursor: pointer; overflow: hidden; border-radius: 18px; background: #000; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.gallery button:first-child { grid-row: 1 / span 2; }
.gallery button:hover img { transform: scale(1.04); transition: transform .4s; }

.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--elev);
}
.review h3 { font-size: 16px; margin-bottom: 8px; }
.review p { color: var(--mute); font-size: 14px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--elev);
}
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); outline: none;
}
.form textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: start; font-size: 13px; color: var(--mute); }
.check a { text-decoration: underline; }
.form-note { font-size: 14px; color: var(--steel); min-height: 1.2em; }

.contacts {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px;
}
.contact-card {
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--elev);
}
.contact-card h3 { font-family: var(--font-d); margin-bottom: 8px; }
.contact-card a { color: var(--mercury); }

.site-footer {
  padding: 40px 0 80px; border-top: 1px solid var(--line); position: relative; z-index: 3;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; color: var(--mute); font-size: 14px; }
.footer-grid a { display: inline-block; margin-right: 10px; color: var(--ink); }
.legal-note { margin-top: 10px; color: var(--faint); font-size: 12px; max-width: 46ch; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  display: none; gap: 14px; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 18px; background: var(--elev); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cookie.show { display: flex; }
.cookie p { font-size: 13px; color: var(--mute); }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 45; background: rgba(8,10,12,.72);
}
.mobile-nav.open { display: grid; place-items: start end; }
.mobile-nav .panel {
  width: min(360px, 100%); height: 100%; background: var(--bg-2); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.mobile-nav a, .mobile-nav button { font-size: 18px; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; }

.modal {
  display: none; position: fixed; inset: 0; z-index: 60; place-items: center;
  background: rgba(6, 8, 10, 0.62); padding: 20px;
}
.modal.open { display: grid; }
.modal-card {
  width: min(720px, 100%); max-height: min(86vh, 860px); overflow: auto;
  background: var(--elev); border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow);
}
.modal-card h2 { font-family: var(--font-d); margin-bottom: 10px; }
.modal-card h3 { margin: 14px 0 6px; font-size: 16px; }
.modal-card p, .modal-card li { color: var(--mute); font-size: 14px; }
.modal-card ul { padding-left: 18px; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; cursor: pointer; color: var(--ink);
}
.lightbox img { width: 100%; border-radius: 16px; margin-bottom: 10px; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { gap: 10px; padding: 8px 10px; }
  .header-actions .btn { padding: 10px 14px; font-size: 13px; }
  .logo-drop { height: 40px; max-width: 140px; }
}
@media (max-width: 900px) {
  .hero, .about, .cards, .promo-grid, .reviews, .form, .contacts, .footer-grid, .gallery {
    grid-template-columns: 1fr;
  }
  .gallery { grid-template-rows: none; }
  .gallery button:first-child { grid-row: auto; min-height: 220px; }
  .hero-media, .hero-media img { min-height: 280px; }
  .cookie { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .phone-link, .header-actions .btn { display: none; }
  .site-header { top: 34px; }
  .header-inner {
    width: calc(100% - 16px);
    border-radius: 16px;
    padding: 8px 10px;
    gap: 8px;
  }
  .logo { font-size: 15px; gap: 8px; }
  .logo-drop { height: 34px; max-width: 120px; width: auto; }
  .icon-btn, .burger { width: 36px; height: 36px; }
}