/* ===== Переменные ===== */
:root {
  --bg: #0a0e12;
  --bg-alt: #10171e;
  --surface: #151e27;
  --surface-top: #1a2530;
  --line: #27343f;
  --text: #eef3f6;
  --muted: #9aabb8;
  --accent: #7fd8ee;
  --accent-hover: #9be3f5;
  --radius: 20px;
  --font-title: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}

/* ===== Базовые стили ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Типографика ===== */
h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(1.85rem, 4.4vw, 3.35rem);
  margin: 0 0 20px;
  max-width: 18ch;
}
h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  margin: 0 0 10px;
}
h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  margin: 0 0 10px;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(16px, 3vw); }

/* ===== Шапка ===== */
.demo {
  margin: 0;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: rgb(10 14 18 / .92);
  backdrop-filter: blur(10px);
  transition: border-color .3s, box-shadow .3s;
}
.header--scrolled { border-color: var(--line); box-shadow: 0 12px 30px rgb(0 0 0 / .4); }
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.logo {
  font: 700 clamp(1.05rem, 2.5vw, 1.25rem) var(--font-title);
  letter-spacing: .08em;
  min-width: 0;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 28px; font-weight: 600; font-size: .95rem; }
.nav a {
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
  padding-block: 4px;
  transition: background-size .3s, color .2s;
}
.nav a:hover { background-size: 100% 2px; color: var(--accent); }
.burger {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span { display: block; height: 2px; margin: 6px 0; background: var(--text); transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: var(--bg);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 4px 14px rgb(127 216 238 / .18);
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease, background-color .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), 0 10px 24px rgb(127 216 238 / .32);
  filter: brightness(1.04);
}
.btn:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 2px 8px rgb(127 216 238 / .2);
}
.btn--outline {
  background: rgb(21 30 39 / .55);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}
.btn--outline:hover {
  border-color: var(--accent);
  background: rgb(127 216 238 / .12);
  box-shadow: 0 8px 20px rgb(0 0 0 / .25);
}

/* ===== Главный экран ===== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(680px, 84svh);
  overflow: hidden;
  background: linear-gradient(135deg, #1d3442, var(--bg));
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom 12s ease-out both; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 14 18 / .9), rgb(10 14 18 / .4)), linear-gradient(0deg, var(--bg), transparent 48%);
}
.hero__content { position: relative; z-index: 1; width: 100%; padding-block: clamp(44px, 7vw, 76px); animation: up .9s ease-out both; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.hero__lead { max-width: 50ch; font-size: clamp(1rem, 1.5vw, 1.12rem); color: #d3dee5; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes up { from { opacity: 0; transform: translateY(30px); } }

/* ===== Секции и карточки ===== */
.section { padding-block: clamp(48px, 6.5vw, 88px); }
.section--alt { background: var(--bg-alt); }
.section__note { color: var(--muted); margin: 0 0 clamp(24px, 3.5vw, 36px); max-width: 58ch; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.advantages li, .review, .cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 28px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.advantages li:hover, .review:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  background: linear-gradient(165deg, var(--surface-top) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 28px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 10px 26px rgb(0 0 0 / .22);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.service:hover {
  border-color: rgb(127 216 238 / .65);
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 18px 36px rgb(0 0 0 / .35);
}
.service--hot {
  border-color: var(--accent);
  background: linear-gradient(165deg, #1b2c38 0%, var(--surface) 100%);
  box-shadow: inset 0 1px 0 rgb(127 216 238 / .25), 0 14px 34px rgb(127 216 238 / .12);
}
.service--hot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #b6eeff);
}
.service > p { color: var(--muted); margin: 0; font-size: .95rem; }
.service > .service__price {
  width: 100%;
  margin-block: 14px 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgb(10 14 18 / .45);
  border: 1px solid rgb(39 52 63 / .8);
  color: var(--muted);
  font-size: .9rem;
}
.service__price strong {
  font: 700 clamp(1.35rem, 2.2vw, 1.65rem) var(--font-title);
  color: var(--text);
  letter-spacing: -0.02em;
}
.service ul {
  flex: 1;
  width: 100%;
  margin: 0 0 22px;
  padding: 16px 0 0 18px;
  border-top: 1px solid rgb(39 52 63 / .75);
  display: grid;
  gap: 8px;
  font-size: .95rem;
}
.service li::marker { color: var(--accent); }
.service .btn { align-self: stretch; width: 100%; }

.badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(127 216 238 / .12);
  border: 1px solid rgb(127 216 238 / .45);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.advantages { list-style: none; margin: 0; padding: 0; }
.advantages p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ===== Галерея ===== */
.shot {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1d3442, var(--surface));
  color: var(--muted);
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); filter: brightness(1.1); }
.lightbox { position: relative; padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgb(0 0 0 / .9); }
.lightbox img { max-height: 85vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(10 14 18 / .85); color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ===== Отзывы, контакты, подвал ===== */
.review { margin: 0; }
.review blockquote { margin: 0 0 18px; font-size: 1.02rem; }
.review figcaption { color: var(--muted); font-size: .9rem; }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 40px); align-items: start; }
dt { color: var(--muted); margin-top: 16px; font-size: .92rem; }
dd { margin: 2px 0 0; font-size: clamp(1rem, 2vw, 1.12rem); font-weight: 600; overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 26px; }

/* ===== Удобная форма быстрой записи ===== */
.booking-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder {
  color: rgb(154 171 184 / .55);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(127 216 238 / .16);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.quick-tag {
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 .8rem var(--font-body);
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}

.quick-tag:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgb(127 216 238 / .08);
}

.contact-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.way-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}

.way-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.way-chip:has(input:checked) {
  border-color: var(--accent);
  background: rgb(127 216 238 / .14);
  color: var(--text);
}

.booking-form .btn {
  width: 100%;
  margin-top: 4px;
}

.booking-form .btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.cta__status {
  margin: 4px 0 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--accent);
}

.cta__status.is-error {
  color: #ff7b7b;
}

.cta__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.cta__actions .btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field legend { margin-bottom: 6px; padding: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.way-chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.trap { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
[hidden] { display: none !important; }
.logo, .footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== Появление при прокрутке ===== */
.reveal { transition: opacity .7s, transform .7s, border-color .3s, box-shadow .3s; }
.animate .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }

/* ===== Планшеты и смартфоны ===== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { width: 100%; flex-wrap: wrap; gap: 0 20px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .js .burger { display: block; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; flex-wrap: nowrap; max-height: calc(100vh - 110px); overflow-y: auto; padding: 8px max(16px, 3vw) 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .nav.is-open { display: flex; }
  html:not(.js) .header { position: static; }
}

@media (max-width: 680px) {
  .grid, .contacts, .field-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .actions { flex-direction: column; }
  .actions .btn, .cta__actions .btn { width: 100%; }
  .cta__actions { grid-template-columns: minmax(0, 1fr); }
  .header__inner { min-height: 60px; }
}

@media (max-width: 480px) {
  .contact-ways { grid-template-columns: minmax(0, 1fr); }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero__content { padding-block: 20px; }
  .hero h1 { font-size: 1.6rem; max-width: 24ch; }
  .actions { flex-direction: row; margin-top: 14px; }
  .actions .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
