/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================================
   БЕРЁЗОВЫЙ РАЙ — основные стили
   ========================================================================== */

:root {
  /* ── Фон: тёмный дуб и производные ── */
  --bg-main: #1a0f07; /* Тёмный дуб — основной фон */
  --bg-deep: #0f0905; /* Углублённый — футер, галерея */
  --bg-raised: #2a1810; /* Приподнятый — карточки */
  --bg-card: rgba(42, 24, 16, 0.6);
  --border-wood: #3d2817; /* Границы, разделители */
  --glass-border: rgba(250, 250, 245, 0.12);

  /* ── Текст: тёплый белый + состояния прозрачности ── */
  --text: #fafaf5;
  --text-main: #fafaf5;
  --text-secondary: rgba(250, 250, 245, 0.75);
  --text-muted: rgba(250, 250, 245, 0.6); /* Парной пар */
  --text-dim: rgba(250, 250, 245, 0.45);

  /* ── Зелёный: бренд, акценты, статусы ── */
  --green: #22c55e;
  --green-bright: #4ade80;
  --green-soft: #22c55e;
  --green-dark: #052e16;

  /* ── Красный: CTA и критичные точки ── */
  --red: #dc2626;
  --red-start: #dc2626;
  --red-end: #b91c1c;
  --red-hover: #ef4444;

  /* ── Шрифты ── */
  --font-family: "Manrope", "Inter", sans-serif;
  --font-accent: "Playfair Display", Georgia, serif;

  /* ── Типографическая шкала ── */
  --fs-h1: clamp(36px, 6vw, 80px);
  --fs-h2: clamp(28px, 3.4vw, 46px);
  --fs-h3: clamp(18px, 1.6vw, 22px);
  --fs-body: clamp(15px, 1.1vw, 17px);
  --fs-small: clamp(13px, 0.95vw, 15px);

  /* ── Раскладка ── */
  --container: 1280px;
  --gutter: 56px;
  --header-h: 116px;

  /* ── Плавность ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── База ────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

/* У самих секций уже есть большой верхний padding, так что полный
   отступ под шапку (scroll-padding-top) даёт двойной запас и обрезает
   контент снизу на невысоких экранах. Компенсируем его здесь, оставляя
   лишь небольшой зазор — заголовок раздела всё равно не слипнется
   с шапкой благодаря собственному padding секции. */
#services,
#gallery,
#about,
#contact {
  scroll-margin-top: calc(var(--header-h) * -1 + 24px);
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-main);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.04), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(61, 40, 23, 0.35), transparent 55%),
    var(--bg-main);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

svg {
  fill: currentColor;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Клавиатурная доступность: видимый фокус */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--bg-raised);
  color: var(--text);
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  width: 100%;
}

/* Блокировка прокрутки под модалками */
body.is-locked {
  overflow: hidden;
}

/* ── Кнопки ──────────────────────────────────────────────────────────── */

.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 30px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-end) 100%);
  color: var(--text);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 10px 24px rgba(220, 38, 38, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    transform 0.25s var(--ease-pop),
    box-shadow 0.3s ease,
    background 0.3s ease,
    filter 0.2s;
}

.btn-red:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--red-hover) 0%, var(--red) 100%);
  box-shadow:
    0 14px 34px rgba(220, 38, 38, 0.42),
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.05);
}

.btn-red:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.btn-red--lg {
  padding: 15px 38px;
  font-size: 16px;
}

/* ── Шапка ───────────────────────────────────────────────────────────── */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0 12px;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    padding 0.3s ease,
    border-color 0.4s ease;
}

.header.scrolled {
  padding: 8px 0 6px;
  background: rgba(15, 9, 5, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-wood);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px 32px;
}

.logo {
  display: flex;
  align-items: center;
  height: 64px;
}

.logo img {
  height: 110px;
  width: auto;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.6));
  transition: height 0.3s ease;
}

.header.scrolled .logo img {
  height: 84px;
}

.header-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  gap: 24px;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.btn-connect {
  justify-self: end;
}

.burger-btn {
  display: none;
  position: relative;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(250, 250, 245, 0.06);
  border: 1px solid rgba(250, 250, 245, 0.14);
  border-radius: 10px;
  cursor: pointer;
}

.burger-btn .line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s,
    top 0.3s;
}

.burger-btn .line:nth-child(1) {
  top: 15px;
}
.burger-btn .line:nth-child(2) {
  top: 21px;
}
.burger-btn .line:nth-child(3) {
  top: 27px;
}

.burger-btn.open .line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.burger-btn.open .line:nth-child(2) {
  opacity: 0;
}
.burger-btn.open .line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Плашка с адресом — второй ряд грида, по центру */
.header-paragraph-text {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: -22px;
  padding: 9px 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-paragraph-icon {
  flex-shrink: 0;
  color: var(--red);
}

.header-paragraph-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.header-paragraph-address:hover {
  color: var(--green);
}

.header-paragraph-address:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.header-paragraph-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.header-paragraph-phone:hover {
  color: var(--green);
}

/* ── Мобильное меню ──────────────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(15, 9, 5, 0.86);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu-list a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
}

.mobile-menu-list a:hover {
  color: var(--green);
}

.mobile-menu-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
}

.mobile-menu-phone:hover {
  color: var(--green);
}

/* ── Главный экран ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../pics/Background.webp") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.3) 60%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      rgba(12, 6, 2, 0.45) 0%,
      transparent 30%,
      rgba(12, 6, 2, 0.65) 100%
    );
}

/* Плёночное зерно поверх фото */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Медленно плывущий «пар» */
.hero-steam {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 50% 35% at 15% 40%,
      rgba(255, 230, 180, 0.06),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 85% 80%,
      rgba(200, 255, 200, 0.04),
      transparent 70%
    );
  animation: steamDrift 14s ease-in-out infinite alternate;
}

@keyframes steamDrift {
  from {
    opacity: 0.6;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(-10px);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-title {
  max-width: 900px;
  margin-bottom: 4px;
  font-family: var(--font-family);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-title-span {
  display: block;
  color: var(--green);
  text-shadow: 0 2px 20px rgba(34, 197, 94, 0.22);
}

.hero-subtitle {
  max-width: 560px;
  margin: 24px 0 36px;
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.8s 0.25s ease both;
}

.hero .btn-red {
  animation: fadeUp 0.8s 0.4s ease both;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  translate: -50% 0;
  width: 26px;
  height: 44px;
  border: 1px solid rgba(250, 250, 245, 0.25);
  border-radius: 999px;
  animation: fadeUp 0.8s 0.7s ease both;
}

.hero-scroll-line {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 2px;
  height: 8px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--green);
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ── Общие элементы секций ───────────────────────────────────────────── */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
  opacity: 0.6;
}

.section-title {
  max-width: 620px;
  margin-bottom: 56px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}

.section-title-accent {
  display: block;
  color: var(--green);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
}

.services-note {
  max-width: 480px;
  margin-top: -32px;
  margin-bottom: 40px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Услуги ──────────────────────────────────────────────────────────── */

.our-services {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(ellipse at top, rgba(42, 24, 16, 0.7), transparent 60%),
    linear-gradient(rgba(15, 9, 5, 0.93), rgba(15, 9, 5, 0.97)),
    url("../pics/logs-lights.webp");
  background-size: auto, auto, cover;
  background-position: center;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.services-card {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border: 1px solid var(--border-wood);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(61, 40, 23, 0.45),
    rgba(42, 24, 16, 0.6)
  );
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.services-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.45),
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s;
}

.services-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.25);
  background: linear-gradient(
    180deg,
    rgba(74, 48, 28, 0.55),
    rgba(52, 32, 20, 0.7)
  );
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.services-card:hover::before {
  opacity: 1;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: var(--green-bright);
}

.services-card-title {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.services-card-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.services-price {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--green);
}

.services-price-unit {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Галерея ─────────────────────────────────────────────────────────── */

.gallery {
  position: relative;
  padding: 140px 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(42, 24, 16, 0.45),
      transparent 70%
    ),
    var(--bg-deep);
}

.gallery-title {
  margin-bottom: 12px;
}

.gallery-intro {
  max-width: 520px;
  margin-bottom: 64px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Раскладка «якорь + полоса»: кинематографичное фото + ряд квадратов */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #0a0604;
  aspect-ratio: 1 / 1;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.gallery-item--anchor {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.93);
  transition:
    transform 1.6s var(--ease-out),
    filter 0.6s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.gallery-item:hover img,
.gallery-btn:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(1);
}

/* Постоянный градиент, чтобы подписи читались */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 5, 3, 0.85) 0%,
    rgba(8, 5, 3, 0.35) 28%,
    transparent 55%
  );
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Волосяная зелёная линия сверху при наведении */
.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.55),
    transparent
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-index {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 250, 245, 0.7);
}

.gallery-index::before {
  content: "";
  width: 18px;
  height: 1px;
  margin-right: 10px;
  background: rgba(250, 250, 245, 0.5);
  transition:
    width 0.5s ease,
    background 0.5s ease;
}

.gallery-item:hover .gallery-index::before {
  width: 32px;
  background: var(--green);
}

.gallery-caption {
  position: absolute;
  left: 18px;
  right: 54px;
  bottom: 16px;
  z-index: 3;
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text);
  transform: translateY(4px);
  transition: transform 0.5s var(--ease-out);
}

.gallery-item--anchor .gallery-caption {
  left: 28px;
  right: 70px;
  bottom: 26px;
  font-size: 18px;
}

.gallery-caption small {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.9;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-zoom {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(250, 250, 245, 0.1);
  border: 1px solid rgba(250, 250, 245, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.4s ease,
    transform 0.4s var(--ease-out),
    background 0.25s;
}

.gallery-zoom svg {
  fill: none;
  stroke: currentColor;
}

.gallery-item:hover .gallery-zoom,
.gallery-btn:focus-visible .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Точечная подстройка кадрирования под конкретные фото */
.gallery-item[data-img="parilka-1"] img {
  object-position: center 65%;
}
.gallery-item[data-img="plunge-birches"] img {
  object-position: center 60%;
}
.gallery-item[data-img="facade-night"] img {
  object-position: center 45%;
}
.gallery-item[data-img="veniki"] img {
  object-position: 60% center;
}
.gallery-item[data-img="sauna-hats"] img {
  object-position: 58% center;
}
.gallery-item[data-img="outdoor-fireplace"] img {
  object-position: center 58%;
}
.gallery-item[data-img="shower"] img {
  object-position: center 42%;
}
.gallery-item[data-img="grill"] img {
  object-position: center 58%;
}
.gallery-item[data-img="recreation-area"] img {
  object-position: center 52%;
}
.gallery-item[data-img="bathhouse-autumn"] img {
  object-position: center 47%;
}

/* ── О нас ───────────────────────────────────────────────────────────── */

/* Общий фон берёзовой коры под секциями «О нас» и «Готовы окунуться».
   Обёртка вместо фона на каждой секции — иначе на стыке виден шов. */
.birch-band {
  position: relative;
  background:
    linear-gradient(to bottom, rgba(15, 9, 5, 0.88), rgba(15, 9, 5, 0.94)),
    url("../pics/birch-bark-bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.tradition {
  position: relative;
  padding: 120px 0;
}

.tradition-box {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}

.tradition-photo {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.tradition-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.tradition-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(15, 9, 5, 0.45));
}

.tradition-content {
  min-width: 0;
}

.tradition-title {
  margin-bottom: 20px;
}

.tradition-paragraph {
  margin-bottom: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.tradition-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

.tradition-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border-wood);
  border-radius: 10px;
  background: var(--bg-raised);
  transition:
    border-color 0.25s,
    background 0.25s;
}

.tradition-list-item:hover {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.06);
}

.tradition-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--green-bright);
}

.tradition-list-content strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.tradition-list-content span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── Призыв к действию ───────────────────────────────────────────────── */

/* Фон не задаём — секция лежит на общей полосе .birch-band */
.order {
  position: relative;
  padding: 100px 0 88px;
  text-align: center;
}

.order-title {
  margin-bottom: 14px;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}

.order-title-accent {
  color: var(--green);
  font-family: var(--font-accent);
  font-style: italic;
}

.order-paragraph {
  margin-bottom: 32px;
  font-size: 16px;
  color: var(--text-muted);
}

.order-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Отзывы ──────────────────────────────────────────────────────────── */

.reviews {
  position: relative;
  padding: 0 0 104px;
  text-align: left;
}

.reviews-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.reviews-heading .reviews-title {
  margin-bottom: 18px;
}

.reviews-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.reviews-rating strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}

.reviews-stars {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 0;
}

.reviews-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(34, 197, 94, 0.65);
  border-radius: 8px;
  color: var(--text);
  background: rgba(5, 46, 22, 0.28);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.25s var(--ease-pop);
}

.reviews-all-link:hover {
  color: var(--green-bright);
  background: rgba(34, 197, 94, 0.12);
  border-color: var(--green);
  transform: translateY(-2px);
}

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

.review-item--summary {
  grid-column: 1 / -1;
}

.review-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(250, 250, 245, 0.15);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  cursor: zoom-in;
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.3s;
}

.review-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.review-shot:hover,
.review-shot:focus-visible {
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.review-shot:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

.review-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: var(--text);
  background: rgba(15, 9, 5, 0.76);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease-pop);
}

.review-zoom svg {
  fill: none;
  stroke: currentColor;
}

.review-shot:hover .review-zoom,
.review-shot:focus-visible .review-zoom {
  opacity: 1;
  transform: scale(1);
}

/* ── Карта ───────────────────────────────────────────────────────────── */

.location {
  position: relative;
  padding: 0 0 120px;
}

.location-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.location-intro .section-title {
  margin-bottom: 20px;
}

.location-intro-text {
  max-width: 700px;
  color: var(--text-muted);
}

.order-map {
  margin-top: 0;
  text-align: left;
}

.order-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.order-map-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.order-map-coordinates {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.order-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.order-map-link:hover {
  color: var(--green-bright);
}

.order-map-frame {
  display: block;
  width: 100%;
  height: clamp(380px, 46vw, 520px);
  border: 1px solid var(--border-wood);
  border-radius: 8px;
  background: var(--bg-deep);
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1.5px solid;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.25s var(--ease-pop);
}

.messenger-link:hover {
  transform: translateY(-2px);
}

.messenger-link-icon {
  display: block;
  border-radius: 4px;
}

.messenger-link--tg {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--green);
}

.messenger-link--tg:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--green);
}

.messenger-link--max {
  border-color: rgba(139, 92, 246, 0.45);
  color: #b28cff;
}

.messenger-link--max:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
}

/* ── Подвал ──────────────────────────────────────────────────────────── */

.footer {
  padding: 44px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-wood);
}

.footer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
}

.logo-footer img {
  display: block;
  height: 110px;
  width: auto;
  opacity: 0.95;
}

.footer-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--green);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-author-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-author-link:hover {
  color: var(--green-bright);
}

/* ── Плавающие мессенджеры: МАКС + Telegram ──────────────────────────── */

.social-float {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.social-float-btn:hover {
  transform: scale(1.12);
}

.social-float-btn--tg {
  background: linear-gradient(180deg, #2aabed, #1b8cc4);
  animation: tgPulse 2.4s infinite;
}

/* МАКС: официальная иконка, обрезанная в круг — белая метка в кадр помещается */
.social-float-btn--max {
  overflow: hidden;
  background: linear-gradient(135deg, #3fc4f5 0%, #4b53f0 45%, #a855f7 100%);
  /* Сдвиг на половину цикла, чтобы кольца двух кнопок не пульсировали разом */
  animation: maxPulse 2.4s 1.2s infinite;
}

.social-float-btn--max img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

@keyframes tgPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 136, 204, 0.6),
      0 8px 24px rgba(42, 171, 237, 0.45);
  }
  70% {
    box-shadow:
      0 0 0 14px rgba(0, 136, 204, 0),
      0 8px 24px rgba(42, 171, 237, 0.45);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 136, 204, 0),
      0 8px 24px rgba(42, 171, 237, 0.45);
  }
}

@keyframes maxPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(139, 92, 246, 0.6),
      0 8px 24px rgba(139, 92, 246, 0.45);
  }
  70% {
    box-shadow:
      0 0 0 14px rgba(139, 92, 246, 0),
      0 8px 24px rgba(139, 92, 246, 0.45);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(139, 92, 246, 0),
      0 8px 24px rgba(139, 92, 246, 0.45);
  }
}

/* ── Липкая кнопка на мобильных ──────────────────────────────────────── */

.mobile-sticky {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  padding: 14px 18px;
  background: rgba(15, 9, 5, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(34, 197, 94, 0.15);
}

.mobile-sticky .btn-red {
  width: 100%;
  padding: 15px;
  font-size: 16px;
}

/* ── Модалка бронирования ────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10, 5, 2, 0.55), rgba(10, 5, 2, 0.75)),
    url("../pics/hero-interior.webp");
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.7);
  transform: scale(1.05);
}

.modal-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 48px 52px 40px;
  border: 1px solid rgba(250, 250, 245, 0.14);
  border-radius: 18px;
  background: rgba(42, 24, 16, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 0 80px rgba(34, 197, 94, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(250, 250, 245, 0.08);
  text-align: center;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.4s var(--ease-pop);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
}

.modal-close svg {
  fill: none;
  stroke: currentColor;
}

.modal-close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.modal-badge svg {
  color: var(--green);
}

.modal-title {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}

.modal-title-accent {
  display: block;
  color: var(--green);
}

.modal-sub {
  max-width: 380px;
  margin: 0 auto 26px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── Форма ───────────────────────────────────────────────────────────── */

.form {
  text-align: left;
}

/* Ловушка для ботов: скрыта визуально, но остаётся в DOM и доступна для
   автозаполнения — в отличие от display:none, которое умные боты пропускают */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(250, 250, 245, 0.14);
  border-radius: 8px;
  background: rgba(250, 250, 245, 0.04);
  color: var(--text);
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.05);
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.12),
    0 0 16px rgba(34, 197, 94, 0.18);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 52px;
}

.form-group input.is-invalid {
  border-color: rgba(220, 38, 38, 0.7);
  background: rgba(220, 38, 38, 0.06);
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-right: 46px;
}

.cal-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  fill: none;
  stroke: currentColor;
}

input[type="date"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

.form-submit.is-done {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}

.form-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12.5px;
  text-align: center;
  color: var(--red-hover);
}

.modal-legal {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-muted);
}

.modal-legal a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 197, 94, 0.35);
}

.modal-legal a:hover {
  border-bottom-color: var(--green);
}

/* ── Лайтбокс ────────────────────────────────────────────────────────── */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s ease;
}

.lightbox-overlay--reviews .lightbox-img {
  cursor: zoom-in;
}

.lightbox-overlay--reviews.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  padding: 80px 24px 110px;
}

.lightbox-overlay--reviews.is-zoomed .lightbox-img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin-inline: auto;
  cursor: zoom-out;
}

.lightbox-overlay--reviews.is-zoomed .lightbox-close,
.lightbox-overlay--reviews.is-zoomed .lightbox-nav,
.lightbox-overlay--reviews.is-zoomed .lightbox-counter {
  position: fixed;
}

.lightbox-img.swap {
  opacity: 0;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(250, 250, 245, 0.15);
  border-radius: 50%;
  background: rgba(250, 250, 245, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.lightbox-close svg,
.lightbox-nav svg {
  fill: none;
  stroke: currentColor;
}

.lightbox-close {
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
}

.lightbox-close:hover {
  background: rgba(250, 250, 245, 0.15);
  border-color: rgba(250, 250, 245, 0.3);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lightbox-nav:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
}

.lightbox-prev {
  left: 32px;
}

.lightbox-next {
  right: 32px;
}

.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border: 1px solid rgba(250, 250, 245, 0.15);
  border-radius: 40px;
  background: rgba(10, 6, 4, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 250, 245, 0.7);
}

.lightbox-counter span {
  color: var(--green);
}

/* ── Появление при прокрутке ─────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   БЕРЁЗОВЫЙ РАЙ — адаптив
   Брейкпоинты: 1200 → 1100 → 900 → 820 → 480 → 360
   ========================================================================== */

@media (max-width: 1200px) {
  :root {
    --gutter: 32px;
  }

  .tradition-box {
    gap: 48px;
  }
}

/* Планшеты: убираем горизонтальное меню, включаем бургер */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px 16px;
  }

  .header-nav,
  .btn-connect {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .gallery-grid {
    gap: 6px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-item--summary {
    grid-column: auto;
  }

  .our-services,
  .tradition {
    padding: 96px 0;
  }

  .gallery {
    padding: 100px 0;
  }
}

/* Узкие планшеты: блок «О нас» в одну колонку */
@media (max-width: 900px) {
  .tradition-box {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tradition-photo {
    max-width: 620px;
  }

}

/* Мобильные */
@media (max-width: 820px) {
  :root {
    --gutter: 20px;
    --header-h: 92px;
  }

  /* background-attachment: fixed тормозит скролл на мобильном Safari —
     на десктопе оставляем параллакс-эффект, на телефоне отключаем */
  body,
  .birch-band {
    background-attachment: scroll;
  }

  .header {
    padding: 12px 0 10px;
  }

  .header.scrolled {
    padding: 8px 0 6px;
  }

  .logo {
    height: 48px;
  }

  .logo img {
    height: 72px;
  }

  .header.scrolled .logo img {
    height: 60px;
  }

  .logo-footer img {
    height: 72px;
  }

  .header-paragraph-text {
    margin-top: -8px;
    padding: 7px 12px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
    row-gap: 4px;
  }

  .header-paragraph-phone {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  .header-paragraph-address {
    justify-content: center;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-subtitle br {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .our-services,
  .gallery,
  .tradition {
    padding: 64px 0;
  }

  .order {
    padding: 64px 0 48px;
  }

  .reviews {
    padding: 16px 0 64px;
  }

  .location {
    padding: 0 0 64px;
  }

  .reviews-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 28px;
  }

  .reviews-heading .reviews-title {
    margin-bottom: 16px;
  }

  .reviews-grid {
    gap: 14px;
  }

  .review-zoom {
    opacity: 1;
    transform: scale(1);
  }

  .section-title {
    margin-bottom: 36px;
  }

  .gallery-intro {
    margin-bottom: 32px;
  }

  /* Галерея превращается в свайп-карусель на той же разметке */
  .gallery-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-item,
  .gallery-item--anchor,
  .gallery-item--wide {
    flex: 0 0 78vw;
    grid-column: auto;
    aspect-ratio: 3 / 4;
    scroll-snap-align: center;
    border-radius: 8px;
  }

  /* На тач-экранах нет :hover — показываем подписи сразу */
  .gallery-caption,
  .gallery-item--anchor .gallery-caption {
    left: 18px;
    right: 18px;
    bottom: 16px;
    font-size: 14px;
    transform: none;
  }

  .gallery-zoom {
    opacity: 1;
    transform: scale(1);
  }

  .birch-band {
    background-attachment: scroll;
  }

  .footer-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Плавающие мессенджеры уходят вниз, чтобы не перекрывать контент */
  .social-float {
    top: auto;
    right: 14px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    transform: none;
    gap: 12px;
  }

  .social-float-btn {
    width: 52px;
    height: 52px;
  }

  .social-float-btn:hover {
    transform: scale(1.08);
  }

  .social-float-btn svg {
    width: 22px;
    height: 22px;
  }

  .social-float-btn--tg {
    animation: tgPulseSmall 2.4s infinite;
  }

  .social-float-btn--max {
    animation: maxPulseSmall 2.4s 1.2s infinite;
  }

  @keyframes tgPulseSmall {
    0% {
      box-shadow:
        0 0 0 0 rgba(0, 136, 204, 0.55),
        0 6px 18px rgba(42, 171, 237, 0.35);
    }
    70% {
      box-shadow:
        0 0 0 10px rgba(0, 136, 204, 0),
        0 6px 18px rgba(42, 171, 237, 0.35);
    }
    100% {
      box-shadow:
        0 0 0 0 rgba(0, 136, 204, 0),
        0 6px 18px rgba(42, 171, 237, 0.35);
    }
  }

  @keyframes maxPulseSmall {
    0% {
      box-shadow:
        0 0 0 0 rgba(139, 92, 246, 0.55),
        0 6px 18px rgba(139, 92, 246, 0.35);
    }
    70% {
      box-shadow:
        0 0 0 10px rgba(139, 92, 246, 0),
        0 6px 18px rgba(139, 92, 246, 0.35);
    }
    100% {
      box-shadow:
        0 0 0 0 rgba(139, 92, 246, 0),
        0 6px 18px rgba(139, 92, 246, 0.35);
    }
  }

  .mobile-sticky {
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  /* Липкая кнопка не должна закрывать подвал */
  .footer {
    padding-bottom: calc(44px + 76px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-counter {
    bottom: 20px;
    padding: 8px 16px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .services-list {
    grid-template-columns: 1fr;
  }

  .services-card {
    padding: 26px 22px;
  }

  .modal {
    padding: 32px 20px 24px;
    border-radius: 16px;
  }

  .modal-title {
    font-size: 24px;
  }

  .order-actions {
    flex-direction: column;
  }

  .order-actions .btn-red,
  .order-actions .messenger-link {
    width: 100%;
  }

  .order-actions .messenger-link {
    justify-content: center;
  }

  .order-map {
    margin-top: 0;
  }

  .order-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .order-map-frame {
    height: 360px;
  }

  .footer-lists {
    gap: 14px 20px;
  }
}

@media (max-width: 360px) {
  .logo img {
    height: 64px;
  }

  .logo-footer img {
    height: 64px;
  }

  .btn-red {
    padding: 11px 22px;
    font-size: 13px;
  }

  .header-paragraph-text {
    font-size: 10px;
  }
}

/* Низкие ландшафтные экраны: не растягиваем первый экран на всю высоту */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 48px;
  }
}
