body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }

@font-face {
  font-family: "Ossem Rust";
  src:
    url("assets/fonts/OssemRust.woff2") format("woff2"),
    url("assets/fonts/OssemRust.woff") format("woff");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --font-sans: "Manrope", "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Oswald", "Manrope", sans-serif;
  --espresso: #2b1612;
  --coffee-black: #140c0a;
  --cocoa: #6a4336;
  --cream: #f7efe4;
  --bg: #f3ece3;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: rgba(255, 250, 244, 0.96);
  --text: #2a110f;
  --muted: #6b554f;
  --muted-strong: #4a3531;
  --line: rgba(43, 22, 18, 0.14);
  --line-strong: rgba(20, 12, 10, 0.28);
  --honey: #b07b3a;
  --shadow-soft: 0 16px 40px rgba(75, 49, 32, 0.08);
  --shadow-card: 0 28px 80px rgba(75, 49, 32, 0.12);
  --radius: 32px;
  --radius-sm: 24px;
  --content-width: 1240px;
  --ease-premium: cubic-bezier(.2,.9,.2,1);
  --speed-mid: 220ms;
  --speed-reveal: 260ms;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.42rem);
  --step-3: clamp(2.2rem, 1.8rem + 2vw, 3rem);
  --step-4: clamp(2.7rem, 2.15rem + 2.8vw, 3.25rem);
  --h1-size: var(--step-4);
  --h2-size: var(--step-3);
  --h3-size: var(--step-1);
  --review-cream: #fffaf4;
  --review-brown: #603b27;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  background:
    radial-gradient(circle at 12% 8%, rgba(176, 123, 58, 0.18), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(20, 12, 10, 0.12), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 46%, #efe0d2 100%);
  color: var(--text);
  line-height: 1.66;
  overflow-x: hidden;
}
/* УДАЛЕНО: body.menu-open { overflow: hidden; } - блокировало прокрутку */
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--content-width), calc(100% - 32px)); margin: 0 auto; }

.page-bg { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.bg-frame {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(1.12);
  transform: scale(1.2);
  opacity: 0;
  transition: opacity 520ms var(--ease-premium);
}
.bg-frame.is-active { opacity: 0.55; }
.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(210, 162, 76, 0.22), transparent 60%),
    radial-gradient(circle at 78% 12%, rgba(181, 102, 62, 0.20), transparent 62%),
    linear-gradient(180deg, rgba(250, 247, 242, 0.70), rgba(244, 236, 226, 0.92));
}

.site-header { position: relative; z-index: 50; padding: 10px 0; }

.nav-brandline { padding: 0 0 8px; }
.brand--top { display: inline-block; font-size: 1.05rem; font-weight: 880; letter-spacing: 0.09em; }
@media (max-width: 480px) {
  .brand--top { font-size: 0.96rem; }
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(43, 22, 18, 0.16);
  background: linear-gradient(180deg, rgba(247, 239, 228, 0.92), rgba(239, 228, 215, 0.82));
  backdrop-filter: blur(18px) saturate(155%);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(20, 12, 10, 0.12), 0 1px 0 rgba(255,255,255,0.4) inset;
}
.brand { text-decoration: none; font-family: var(--font-display); font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; font-size: .92rem; line-height: 1.1; color: var(--coffee-black); }
@media (max-width: 480px) {
  .brand { font-size: .86rem; }
}
.nav-links {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  isolation: isolate;
  overflow: hidden;
  justify-content: space-between;
  max-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

/* Re-enable indicator for single-line nav */
.nav-links::before {
  content: ""; position: absolute; inset: 4px auto 4px 4px; width: var(--indicator-width, 0px);
  transform: translateX(var(--indicator-x, 0px)); border-radius: 999px; opacity: var(--indicator-opacity, 0);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.55));
  box-shadow: 0 12px 28px rgba(82, 49, 25, 0.11);
  transition: transform var(--speed-mid) var(--ease-premium), width var(--speed-mid) var(--ease-premium), opacity 140ms ease;
  z-index: -1;
}

.nav-links a { padding: 8px 10px; border-radius: 999px; text-decoration: none; color: var(--espresso); font-size: 0.95rem; font-weight: 860; letter-spacing: 0.01em; white-space: nowrap; background: transparent; transition: color 160ms ease; flex: 1; text-align: center; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.is-active { color: var(--text); }
/* Desktop nav preview removed: too many menu items => messy layout.
   If needed later, we can re-introduce it as a separate dropdown. */
.nav-preview { display: none !important; }
.nav-toggle { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(243, 225, 212, 0.84)); }
.nav-toggle span { position: absolute; left: 14px; width: 20px; height: 2px; border-radius: 999px; background: var(--coffee-black); transition: .22s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.is-open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.hero { min-height: auto; padding: 18px 0 40px; }
.hero-top-shell { padding-top: 0; padding-bottom: 0; }
.hero-scene-shell {
  padding: clamp(16px, 2vw, 24px); min-height: auto; border-radius: 40px;
  border: 1px solid rgba(43, 22, 18, 0.12);
  background: radial-gradient(circle at top left, rgba(255, 239, 220, 0.56), transparent 32%), linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(237, 226, 214, 0.92));
  box-shadow: 0 28px 74px rgba(20, 12, 10, 0.14);
}
.hero-top-grid { display: grid; gap: 16px; align-items: stretch; min-height: auto; }
.hero-top-grid--new { grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.88fr); }
/* Desktop: removed max-width 1180px portrait override to allow Desktop mode to show 2 columns */
.hero-photo-card, .glass-card, .review-card, .form-card, .workflow-step, .contact-shell, .video-feature-card, .video-promo-card, .pricing-table, .gallery-teaser-card, .placeholder-card {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.hero-media-stack { position: relative; }

.hero-poster-card {
  position: relative;
  overflow: hidden;
  /* Balanced height to show full person while fitting with menu */
  min-height: 880px;
  max-height: 82vh;

  /* "Window frame" look */
  padding: 14px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 233, 222, 0.98));
  border: 1px solid rgba(43, 22, 18, 0.14);
  box-shadow:
    0 28px 74px rgba(20, 12, 10, 0.10),
    0 1px 0 rgba(255,255,255,0.65) inset;
}
.hero-poster-slides {
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(20, 12, 10, 0.06);
}
.hero-poster-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background-repeat: no-repeat;

  /* Desktop/web: fill the window (fit into the area). Mobile overrides are below in media queries. */
  background-size: cover;
  background-position: center;
  background-color: rgba(20, 12, 10, 0.16);

  transition: opacity 820ms var(--ease-premium);
  will-change: opacity;
}
.hero-poster-frame.is-active { opacity: 1; }

/* anim-frame overlay is no longer used in hero (user requested anim-only). */
.anim-frame { display: none; }
.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20,12,10,0.10), rgba(20,12,10,0.22) 58%, rgba(20,12,10,0.44));
  pointer-events: none;
  z-index: 1;
}

/* Hero intro copy is now inside the "Форматы" pill (user request). */
.hero-intro-copy { display: grid; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(43,22,18,.10); }
.hero-intro-copy .hero-title { color: var(--coffee-black); text-shadow: none; }
.hero-intro-copy .lead { color: var(--muted-strong); }

.hero-title { margin: 0; font-family: var(--font-display); font-size: var(--h1-size); line-height: 1.04; letter-spacing: -0.03em; text-shadow: 0 18px 40px rgba(20,12,10,.22); }
.hero-story-card {
  display: grid; gap: 18px; align-content: start; padding: 28px;
  background: radial-gradient(circle at top left, rgba(255, 244, 231, 0.86), transparent 34%), linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 237, 227, 0.93));
}
.formats-card h2 { margin: 0; max-width: none; white-space: normal; }
.formats-carousel-card {
  margin-top: -1cm;
  padding: 1cm;
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.95), rgba(247, 239, 228, 0.92));
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.formats-slider-shell {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 6px;
  scroll-snap-type: x mandatory;
  scroll-padding: 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.formats-slider-shell::-webkit-scrollbar { display: none; }

.formats-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 350px;
  gap: 18px;
}
.formats-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: auto;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(242,231,220,.92));
  border: 1px solid rgba(43,22,18,.1);
  cursor: pointer;
  scroll-snap-align: start;
}
.formats-slide:active { transform: scale(0.99); }
.formats-slide img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 20px;
  background: transparent;
  display: block;
}

/* "Нажми" CTA on the active-looking card */
.formats-open-cta {
  display: none !important;
}
.formats-slide:hover .formats-open-cta { filter: brightness(1.04); }


/* Custom scrollbar (stylish manual control) */
.formats-scrollbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.formats-scroll-btn {
  width: 44px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(43,22,18,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(242,231,220,.88));
  color: var(--espresso);
  box-shadow: 0 12px 24px rgba(20,12,10,.10);
  cursor: pointer;
}
.formats-scroll-btn:hover { transform: translateY(-1px); }
.formats-scroll-btn:active { transform: translateY(0); opacity: .92; }
.formats-scroll-btn span { font-size: 22px; font-weight: 900; line-height: 1; display: inline-block; transform: translateY(-1px); }

.formats-scroll-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(43,22,18,.10);
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset;
  overflow: hidden;
}
.formats-scroll-thumb {
  position: absolute;
  top: 1px;
  left: 0;
  height: 8px;
  border-radius: 999px;
  width: 64px;
  background: linear-gradient(90deg, rgba(60,21,19,.92), rgba(106,67,54,.82));
  box-shadow: 0 10px 22px rgba(20,12,10,.18);
}

@media (max-width: 820px) {
  /* Mobile: formats carousel should span full site width (like the video card) */
  .formats-slider { grid-auto-columns: 100%; }
  .formats-slide { min-height: 360px; }
  .formats-slide img { height: 300px; }

  .formats-scrollbar { grid-template-columns: 40px 1fr 40px; }
  .formats-scroll-btn { width: 40px; height: 34px; }
}
/* No captions under format cards (user request) */
.formats-slide span { display: none; }
.formats-slide strong { color: var(--muted-strong); }
.formats-slide--placeholder { place-content: center; text-align: left; background: linear-gradient(180deg, rgba(43,22,18,.94), rgba(106,67,54,.92)); }
.formats-slide--placeholder strong, .formats-slide--placeholder span { color: #fffaf6; }

.section { padding: 88px 0; }
#video-hero { padding-top: calc(88px - 1cm); }
#video-hero h2 { font-size: clamp(1.5rem, 1.5vw, 1.8rem); max-width: none; }
#about { padding-top: calc(88px - 2cm); }
#help { padding-top: calc(88px - 1cm); }
#workflow { padding-top: calc(88px - 1cm); }
#gallery { padding-top: calc(88px - 1cm); }
#video-events { padding-top: calc(88px - 1cm); }
#reviews { padding-top: calc(88px - 1cm); }
#pricing { padding-top: calc(88px - 1cm); }
#health { padding-top: calc(88px - 1cm); }
.section-heading { margin-bottom: 28px; }
.eyebrow, .badge-item, .step-index, .chip, .gallery-tab-btn {
  display: inline-flex; align-items: center; min-height: 34px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.76); color: var(--muted-strong);
  font-size: .75rem; font-weight: 760; letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow { background: rgba(210, 162, 76, 0.16); color: var(--text); }
h1, h2, h3, p { margin-top: 0; }
h2 { font-family: var(--font-display); font-size: var(--h2-size); line-height: 1.08; letter-spacing: -.028em; margin-bottom: 16px; max-width: 16ch; color: var(--coffee-black); }
h3 { font-family: var(--font-display); font-size: var(--h3-size); line-height: 1.14; color: var(--espresso); }
p, li, label span { color: var(--muted); }
.lead { max-width: 58ch; font-size: clamp(1.04rem, 0.98rem + 0.35vw, 1.12rem); color: var(--muted-strong); }
.lead.small { font-size: .98rem; }
.about-lead { max-width: 78ch; }
.achievement-badges, .hero-actions, .video-promo-actions, .gallery-tab-buttons { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }

/* Formats text block: make the content flow vertically inside the pill/card */
.formats-card { display: grid; align-content: start; gap: 12px; }
.formats-card h2 { font-size: clamp(1.55rem, 2.15vw, 2.05rem); line-height: 1.08; }
.formats-card .lead.small { margin: 0; font-size: 0.98rem; line-height: 1.38; }
.formats-card .hero-story-badges { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 9px; margin-top: 4px; }
.formats-card .hero-story-badges .badge-item { width: 100%; justify-content: flex-start; }

.hero-intro-copy { gap: 12px; margin-top: 14px; padding-top: 12px; }
.hero-intro-copy .hero-title { font-size: clamp(1.7rem, 2.35vw, 2.25rem); line-height: 1.08; }
.hero-intro-copy .lead { font-size: 0.98rem; line-height: 1.38; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px;
  border-radius: 999px; font-weight: 720; text-decoration: none; transition: transform .22s var(--ease-premium), box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: var(--cream); background: linear-gradient(135deg, var(--cocoa) 0%, var(--espresso) 38%, var(--coffee-black) 100%);
  border: 1px solid rgba(255, 239, 228, 0.14); box-shadow: 0 18px 42px rgba(20, 12, 10, 0.28);
}
.btn-secondary {
  border: 1px solid rgba(43, 22, 18, 0.18); background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(247, 239, 228, 0.78)); color: var(--espresso);
}

.about-grid, .help-grid, .workflow-list, .gallery-grid, .video-grid, .reviews-layout, .contact-shell, .split-media-grid, .placeholder-grid { display: grid; gap: 20px; }
.about-grid-profile { grid-template-columns: 1.3fr 1fr 1fr; }
.help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Help block: big card spans full width */
.help-big { grid-column: 1 / -1; }
.help-big .lead.small { max-width: 86ch; }

.glass-card, .review-card, .form-card, .workflow-step, .video-promo-card, .placeholder-card { padding: 24px; }
.glass-card h3 { font-size: 1.5rem; }
.glass-card.accent { background: linear-gradient(180deg, rgba(43, 22, 18, 0.96), rgba(106, 67, 54, 0.92)); }
#sosnichok .glass-card { background: linear-gradient(135deg, rgba(255, 244, 231, 0.95), rgba(247, 237, 227, 0.92)); }
#sosnichok .glass-card h3 { font-size: 1.8rem; font-weight: 700; }
#sosnichok .glass-card p { font-size: 1.05rem; font-weight: 500; line-height: 1.7; }
#sosnichok .glass-card li { font-size: 1.1rem; font-weight: 500; }
.glass-card.accent h3 { color: var(--cream); font-size: 1.65rem; }
.glass-card.accent p { color: var(--cream); font-size: 1.1rem; line-height: 1.75; }
.glass-card.accent li { color: rgba(255, 250, 244, 0.95); font-size: 1.08rem; line-height: 1.8; }
.glass-card.accent .bullet-list--dark li, .glass-card.accent .bullet-list--dark strong { color: rgba(255, 250, 244, 0.95); }
.bullet-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.bullet-list li { position: relative; padding-left: 20px; font-size: 1.05rem; line-height: 1.7; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--honey); }
.bullet-list--dark li, .bullet-list--dark strong { color: var(--muted-strong); }

.workflow-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workflow-step { position: relative; display: grid; gap: 16px; min-height: 220px; }
.workflow-step::after { content: ""; position: absolute; top: 26px; left: calc(100% - 12px); width: 24px; height: 1px; background: var(--line-strong); }
.workflow-step:last-child::after { display: none; }
.step-index { width: fit-content; background: var(--espresso); border-color: var(--espresso); color: #fff; }

.gallery-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  flex-wrap: wrap;
}
.gallery-tab-btn {
  cursor: pointer;
  background: rgba(255,255,255,.72);
  min-height: 48px;
  padding: 12px 32px;
  font-size: 0.875rem;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
.gallery-tab-btn.is-active { background: linear-gradient(135deg, var(--cocoa), var(--espresso)); color: #fffaf6; border-color: transparent; }
.gallery-tab-panels { display: grid; }
.gallery-tab-panel { display: none; }
.gallery-tab-panel.is-active { display: grid; }

.gallery-carousel-panel {
  display: grid;
  grid-template-columns: 0.8fr 2.5fr 1.2fr;
  gap: 32px;
  align-items: center;
  min-height: auto;
  padding: 40px 0;
  position: relative;
  margin-left: 0;
  perspective: 1500px;
  justify-items: center;
}

.gallery-carousel-panel .gallery-item {
  transition: all 0.5s var(--ease-premium);
  min-height: 500px;
  padding: 0 !important;
  overflow: hidden;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Remove all decorative elements from carousel items */
.real-gallery .gallery-carousel-panel .gallery-item {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.real-gallery .gallery-carousel-panel .gallery-item::before,
.real-gallery .gallery-carousel-panel .gallery-item::after {
  display: none !important;
}

/* Hide old ::after pseudo-element and span in carousel */
.gallery-carousel-panel .gallery-item::after {
  display: none !important;
}

.gallery-carousel-panel .gallery-item > span:not(.gallery-item-title) {
  display: none !important;
}

.gallery-carousel-panel .carousel-prev,
.gallery-carousel-panel .carousel-next {
  opacity: 0.4;
  transform: scale(0.7) translateZ(-150px);
  filter: grayscale(0.5);
  min-height: 350px;
  z-index: 0;
}

.gallery-carousel-panel .carousel-next {
  margin-left: 0;
}

.gallery-carousel-panel .carousel-center {
  opacity: 1;
  transform: scale(1.0) translateZ(0);
  z-index: 2;
  box-shadow: 0 20px 80px rgba(96, 59, 39, 0.35);
  min-height: 550px;
  margin-left: 0;
}

.gallery-carousel-panel .carousel-prev:hover,
.gallery-carousel-panel .carousel-next:hover {
  opacity: 0.7;
  transform: scale(0.9) translateZ(-100px);
  cursor: pointer;
}

/* Adaptive aspect ratio for images - removed duplicate, see line 520 */

/* Horizontal (landscape) images */
.gallery-carousel-panel .gallery-item.landscape {
  aspect-ratio: 16 / 9;
}

/* Vertical (portrait) images */
.gallery-carousel-panel .gallery-item.portrait {
  aspect-ratio: 3 / 4;
}

/* Square images */
.gallery-carousel-panel .gallery-item.square {
  aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
  .gallery-carousel-panel {
    grid-template-columns: 0.5fr 1fr 0.5fr;
    gap: 12px;
    min-height: 450px;
  }

  .gallery-carousel-panel .gallery-item {
    min-height: 350px;
  }

  .gallery-carousel-panel .carousel-prev,
  .gallery-carousel-panel .carousel-next {
    transform: scale(0.7);
    min-height: 300px;
  }

  .gallery-carousel-panel .carousel-center {
    min-height: 450px;
  }
}

.real-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.real-gallery .gallery-item {
  position: relative; display: grid; align-content: end; min-height: 300px; padding: 16px; border-radius: 30px; border: 1px solid var(--line);
  color: #fff; text-align: left; box-shadow: var(--shadow-soft); overflow: hidden;
  background: radial-gradient(circle at top, rgba(255,255,255,0.28), transparent 55%), linear-gradient(180deg, #eedcc9 0%, #d7c5b5 100%);
}

/* CAROUSEL: NO PADDING, NO BORDER, NO BACKGROUND */
.gallery-carousel-panel .gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.real-gallery .gallery-item img {
  position: absolute; inset: 16px 16px 56px; width: calc(100% - 32px); height: calc(100% - 72px); object-fit: contain; object-position: center; border-radius: 22px;
  background: rgba(255, 250, 245, 0.42); z-index: 1;
}

/* CAROUSEL: IMAGE FILLS ENTIRE FRAME */
.gallery-carousel-panel .gallery-item img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Override for carousel - make images fill the frame - DESKTOP ONLY */
@media (min-width: 769px) {
  .real-gallery .gallery-carousel-panel .gallery-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Gallery item overlay for carousel */
.gallery-carousel-panel .gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: 32px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  border-radius: 30px;
}

.gallery-carousel-panel .gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-carousel-panel .gallery-item-title {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  padding: 0;
  align-self: end;
}

.gallery-carousel-panel .gallery-item-open-btn {
  grid-column: 2;
  grid-row: 2;
  padding: 12px 32px;
  background: linear-gradient(135deg, #d2a24c, #c89240);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(210, 162, 76, 0.4);
  pointer-events: auto;
}

.gallery-carousel-panel .gallery-item-open-btn:hover {
  background: linear-gradient(135deg, #c89240, #b8822f);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 162, 76, 0.6);
}
.real-gallery .gallery-item::before {
  content: ""; position: absolute; inset: 16px 16px 56px; border-radius: 22px; background-image: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(31,26,22,0.14)), var(--gallery-image);
  background-size: cover; background-position: center; filter: blur(22px) saturate(0.92); transform: scale(1.06); opacity: 0.82; z-index: 0;
}
.real-gallery .gallery-item::after {
  content: "Открыть"; position: absolute; right: 18px; bottom: 18px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); font-size: .8rem; font-weight: 700; z-index: 2;
}
.real-gallery .gallery-item span { position: relative; z-index: 2; padding-right: 88px; display: inline-block; font-size: clamp(1.05rem, 1.6vw, 1.34rem); line-height: 1.1; font-weight: 780; }

.video-feature-shell--single { grid-template-columns: 1fr; }
.video-feature-card { position: relative; overflow: hidden; min-height: 540px; padding: 0; background: #d9c0ab; }
.video-poster-layer, .video-poster-layer img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster-layer img, .hero-video { object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 240ms ease; background: #cfb39c; }
.hero-video-shell.video-ready .hero-video, .hero-video-shell.is-playing .hero-video { opacity: 1; }
.video-promo-card { display: grid; grid-template-columns: minmax(250px, 0.9fr) 1fr; gap: 24px; align-items: center; background: linear-gradient(180deg, rgba(255,251,246,.98), rgba(247,237,227,.95)); }
.video-promo-poster { overflow: hidden; border-radius: 24px; min-height: 220px; }
.video-promo-poster img { width: 100%; height: 100%; min-height: 220px; object-fit: contain; background: linear-gradient(180deg, #f8efe6, #e7d0bc); padding: 12px; }
.video-promo-content { display: grid; gap: 14px; }
.video-placeholder {
  position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; gap: 12px; padding: 28px;
  color: #fffaf6; background: linear-gradient(180deg, rgba(33,25,20,.72), rgba(33,25,20,.9));
}
.video-placeholder h3, .video-placeholder p { color: #fffaf6; }
.hero-video-shell.video-ready .video-placeholder, .hero-video-shell.is-playing .video-placeholder { display: none; }

.reviews-layout--stack { grid-template-columns: 1fr; }
.reviews-cards--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.review-card {
  display: block;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255,253,249,.98), rgba(245,234,223,.94));
}
.review-card p { color: var(--text); font-size: 1.02rem; }
.reviews-cards .review-card:nth-child(2) { background: linear-gradient(180deg, rgba(43,22,18,.96), rgba(20,12,10,.98)); }
.reviews-cards .review-card:nth-child(2) p, .reviews-cards .review-card:nth-child(2) strong { color: var(--cream); }
.reviews-moderation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.moderation-card { height: 100%; }

/* New reviews grid layout */
.reviews-layout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  align-items: start;
}

.reviews-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: calc(8px + 6cm);
  row-gap: 8px;
}

.reviews-cards-grid .btn-all-reviews {
  grid-column: 1 / 3 !important;
  margin-top: 120px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 10 !important;
}

.reviews-cards-grid .review-card {
  background: linear-gradient(180deg, rgba(255,253,249,.98), rgba(245,234,223,.94));
  border: 1px solid rgba(200, 149, 77, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(96, 59, 39, 0.08);
  min-height: calc(200px - 1cm - 10cm);
  width: calc(100% + 6cm);
  position: relative;
}

.reviews-cards-grid .review-card p {
  color: #000000 !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.reviews-cards-grid .review-card strong {
  color: #000000 !important;
  font-weight: 700 !important;
}

.reviews-cards-grid .review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(96, 59, 39, 0.14);
  z-index: 10;
}

.reviews-cards-grid .review-card img {
  width: 100%;
  max-width: 180px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.reviews-form-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card-compact {
  display: grid;
  gap: calc(8px - 0.5cm);
  background: linear-gradient(180deg, #432d22, #221813);
  color: #f8efe7;
  padding: 1cm;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-card-compact h3 {
  color: #f8efe7;
  margin: 0 0 8px 0;
  font-size: 1.8rem;
}

.form-card-compact label span {
  color: rgba(255, 250, 244, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-card-compact button {
  width: 100%;
  margin-top: 16px;
}

/* Fix select dropdown visibility on dark background */
.form-card.dark select,
.form-card-compact select {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-card.dark select option,
.form-card-compact select option {
  background: #ffffff;
  color: #2b1612;
  padding: 8px;
}

/* Style for placeholder option */
.form-card.dark select option[value=""],
.form-card-compact select option[value=""] {
  color: #999;
}

.form-card.dark select:focus,
.form-card-compact select:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--honey);
  outline: none;
}

.health-zone {
  padding: 2cm;
  border-radius: var(--radius-sm);
  margin-bottom: 2cm;
}

.health-zone h3 {
  font-size: 1.8rem;
  margin: 0 0 1.5cm 0;
  color: inherit;
}

.health-zone-light {
  background: linear-gradient(135deg, #F5E6D3 0%, #E8D4BF 100%);
  color: var(--text);
}

.health-zone-dark {
  background: linear-gradient(135deg, #8B7355 0%, #6F5438 100%);
  color: var(--cream);
}

.btn-all-reviews {
  display: block;
  text-align: center;
  padding: 16px 24px;
  margin-top: 24px;
  background: linear-gradient(135deg, var(--honey) 0%, var(--cocoa) 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(96, 59, 39, 0.2);
  transition: transform 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium);
  width: 100%;
}

.btn-all-reviews:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 59, 39, 0.3);
}

/* Reviews all button wrapper - full width below reviews */
.reviews-all-button-wrapper {
  margin-top: 40px;
  width: 100%;
}

/* Remove green highlight from file input */
.file-input-label input[type="file"] {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .reviews-layout-grid {
    grid-template-columns: 1fr;
  }
  .reviews-form-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .reviews-cards-grid {
    grid-template-columns: 1fr;
  }
}
.form-card { display: grid; gap: 14px; background: linear-gradient(180deg, #53382b, #2d211b); color: #fff; box-shadow: var(--shadow-card); }
.form-card.dark { background: linear-gradient(180deg, #432d22, #221813); }
.form-card h3, .form-card label span, .form-card p { color: #f8efe7; }
label { display: grid; gap: 8px; }
input, textarea, select {
  width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff;
}
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.55); }
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown), select:invalid:not(:placeholder-shown) {
  border-color: #ff6b6b;
}
input:valid:not(:placeholder-shown), textarea:valid:not(:placeholder-shown), select:valid {
  border-color: rgba(76, 175, 80, 0.5);
}
.form-note { font-size: .92rem; color: rgba(255,255,255,.78); }

.pricing-table { overflow: hidden; padding: 0; background: linear-gradient(180deg, rgba(255,251,246,.98), rgba(247,237,227,.95)); }
.pricing-row { display: grid; grid-template-columns: 1.5fr 2fr 220px; gap: 18px; padding: 20px 24px; font-size: 1.3rem; font-weight: 600; align-items: start; }
.pricing-row + .pricing-row { border-top: 1px solid var(--line); }
.pricing-row--head { background: linear-gradient(90deg, rgba(43,22,18,.94), rgba(106,67,54,.86)); color: var(--cream); text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; }
.pricing-row--head > div:nth-child(2) { text-align: center; }
.pricing-row--head > div:last-child { text-align: right; }
.pricing-row > div { word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.pricing-row > div:nth-child(2) { text-align: center; }
.pricing-service { display: flex; flex-direction: column; gap: 6px; }
.pricing-description { font-size: 0.95rem; font-weight: 400; color: rgba(43, 22, 18, 0.7); line-height: 1.4; word-break: break-word; }
.pricing-price { text-align: right; white-space: nowrap; }

/* Enhanced pricing layout */
.pricing-enhanced-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: start; }
.pricing-visual { position: sticky; top: 100px; }
.pricing-action-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.pricing-action-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.pricing-cta {
  padding: 28px;
  background: linear-gradient(135deg, rgba(96, 59, 39, 0.98), rgba(45, 31, 24, 0.97));
  text-align: center;
}
.pricing-cta h3 {
  color: var(--cream);
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.pricing-cta p {
  color: rgba(255, 250, 244, 0.85);
  margin-bottom: 20px;
  line-height: 1.5;
}
.pricing-cta .btn {
  width: 100%;
  justify-content: center;
}
.pricing-table-wrapper { display: grid; gap: 16px; }

@media (max-width: 1020px) {
  .pricing-enhanced-layout { grid-template-columns: 1fr; gap: 24px; }
  .pricing-visual { position: static; }
}

.contact-shell { grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px 60px; background: linear-gradient(135deg, rgba(96, 59, 39, 0.98), rgba(45, 31, 24, 0.97)); }
.contact-shell h2, .contact-shell .eyebrow, .contact-shell strong, .contact-shell div { color: #fff; }
.contact-shell .eyebrow { background: rgba(210, 162, 76, 0.94); color: var(--text); padding-left: 14px; padding-right: 14px; }
.contact-shell--simple { align-items: start; }
.contact-shell--simple h2 { margin-bottom: 0; font-size: 2rem; }
.contact-points { display: grid; gap: 12px; margin-top: 22px; }
.contact-points div { position: relative; padding-left: 20px; }
.contact-points div::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--honey); }

.split-media-grid, .placeholder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-copy-card { min-height: 100%; }
.gallery-teaser-card { display: grid; grid-template-columns: minmax(150px, 0.7fr) 1fr; gap: 15px; padding: 15px; margin-top: 10px; }
.gallery-teaser-cover { border-radius: 20px; overflow: hidden; min-height: 150px; background: linear-gradient(180deg, #f8efe6, #e7d0bc); }
.gallery-teaser-cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery-teaser-content { display: flex; align-items: center; justify-content: center; gap: 10px; }
.gallery-teaser-content .btn { padding: 15px 30px; font-size: 1rem; width: auto; display: inline-block; }
.gallery-teaser-card.is-placeholder .gallery-teaser-cover img { opacity: 1; }

/* Hide Sosnichok gallery grid when empty (no placeholder cards). */
.gallery-grid[data-sosnichok-gallery-grid]:empty { display: none; }

.placeholder-card { display: grid; align-content: center; gap: 12px; min-height: 260px; }

.contacts-footer { display: grid; gap: 24px; padding: 34px 0 40px; }
.contacts-footer__intro { display: grid; gap: 10px; }
.contacts-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* Make email and MAX share the last row (2 columns each) */
.contacts-links .contact-link.is-email { grid-column: span 2; }
.contact-link {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 22px; text-decoration: none;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,239,228,.78)); color: var(--espresso);
  box-sizing: border-box;
}

/* Ограничение высоты для телефона, VK, Telegram и WhatsApp */
.contact-link[href^="tel"],
.contact-link[href*="vk.com"],
.contact-link[href*="t.me"],
.contact-link[href*="wa.me"] {
  height: 60px;
  max-height: 60px;
}

/* Allow using same style for button links */
.contact-link--button { width: 100%; text-align: left; }
.contact-link--button:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.contact-link--button:active { transform: translateY(0) scale(0.99); }
.contact-link svg { width: 28px; height: 28px; flex: 0 0 auto; }
.contact-icon { opacity: 0.92; }

/* VK icon sizing (larger than others) */
.contact-link[href*="vk.com"] svg { width: 56px; height: 56px; }

/* MAX logo icon sizing (slightly larger than others, per user request) */
.max-logo-icon { width: 40px; height: 40px; flex: 0 0 auto; }
/* (reserved) */
.contact-line { margin: 0; font-weight: 760; letter-spacing: 0.01em; }
.contact-line strong { font-weight: 860; }
.contact-link span { font-weight: 700; }

.footer { padding: 20px 0 72px; }
.footer p { color: var(--muted); font-size: .94rem; }
.scroll-top {
  position: fixed; right: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #b35d36, #d1924d);
  color: #fff; box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .22s ease, transform .22s var(--ease-premium); z-index: 40;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(18px); min-width: min(92vw, 420px); padding: 16px 18px; border-radius: 18px;
  background: rgba(45,33,27,.96); color: #fff; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s var(--ease-premium); z-index: 70;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lightbox {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20,14,11,.8); opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 80;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-card { width: auto !important; max-width: min(92vw, 1240px) !important; padding: 22px; border-radius: 30px; background: #fffaf4; box-shadow: var(--shadow-card); }
.lightbox-media { position: relative; margin-bottom: 18px; border-radius: 24px; overflow: visible; background: #000; display: flex !important; justify-content: center !important; align-items: center !important; }
.lightbox-image, .lightbox-video { width: auto !important; max-width: 100% !important; height: auto !important; max-height: min(82vh, 820px) !important; object-fit: contain !important; background: #000; border-radius: 24px; transform: none !important; --uw-transform: none !important; }
.lightbox-video[hidden], .lightbox-image[hidden] { display: none; }
.lightbox-title, .lightbox-desc { display: none; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; border: 2px solid rgba(255, 255, 255, 0.8); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all 0.2s ease; }
.lightbox-close:hover { background: rgba(0, 0, 0, 0.8); transform: scale(1.1); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-nav-prev {
  left: 10px;
}
.lightbox-nav-next {
  right: 10px;
}
@media (max-width: 768px) {
  .lightbox-nav {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }
  .lightbox-nav-prev {
    left: 10px;
  }
  .lightbox-nav-next {
    right: 10px;
  }
}
/* Fullscreen video in landscape mode without borders */
@media (max-width: 768px) and (orientation: landscape) {
  .lightbox {
    padding: 0 !important;
    background: #000 !important;
  }
  .lightbox-card {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    box-shadow: none !important;
    max-width: 100% !important;
  }
  .lightbox-media {
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    height: 100% !important;
  }
  .lightbox-video {
    max-height: 100vh !important;
    height: 100% !important;
    width: 100% !important;
    background: #000 !important;
    object-fit: cover !important;
  }
  .lightbox-close {
    top: 10px !important;
    right: 10px !important;
  }
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--speed-reveal) ease, transform var(--speed-reveal) var(--ease-premium); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 40ms; }
.delay-2 { transition-delay: 80ms; }
.delay-3 { transition-delay: 120ms; }

@media (max-width: 1120px) {
  .hero-top-grid--new, .about-grid-profile, .help-grid, .video-promo-card, .reviews-moderation, .contact-shell, .real-gallery, .split-media-grid, .placeholder-grid, .gallery-teaser-card, .contacts-links { grid-template-columns: 1fr 1fr; }
  .workflow-list--4 { grid-template-columns: 1fr 1fr; }
  .workflow-step::after { display: none; }
}

@media (max-width: 1024px) and (hover: none) {
  .nav-brandline { display: none; }
  .nav { border-radius: 28px; padding: 12px 14px; }

  /* Put brand inside the pill on mobile */
  .nav::before {
    content: "ИЛЬЯ ЧЕРНЯЕВ";
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 0.86rem;
    color: var(--coffee-black);
    white-space: nowrap;
    margin-right: 10px;
  }

  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; z-index: 2; }
  .nav-links {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px;
    max-height: min(70vh, 520px); overflow-y: auto; border-radius: 24px; background: rgba(255,253,249,.94); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px) scale(.985); transition: .22s;
  }
  .nav-links::before, .nav-preview { display: none; }
  .nav-links.open, .nav-links.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }

  .hero-top-grid--new, .help-grid, .workflow-list--4, .real-gallery, .video-promo-card, .reviews-cards--two, .reviews-moderation, .contact-shell, .split-media-grid, .placeholder-grid, .gallery-teaser-card, .contacts-links { grid-template-columns: 1fr; }
  .hero, .section { padding-top: 18px; }
  .hero-scene-shell { min-height: auto; }

  /* Put photo+copy inside one "card" so the photo is framed by the pill/card field */
  .hero-media-stack {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 10px;
  }

  /* Mobile: fit the photo/animation into the working area (frame matches the photo) */
  .hero-poster-card {
    /* Back to "page-sized" hero window on mobile */
    min-height: 68vh;
    aspect-ratio: auto;
    max-height: none;
    border-radius: 26px;
    padding: 0;
  }

  /* Stretch frames to fill the frame both directions (may distort slightly) */
  .hero-poster-frame { background-size: 100% 100%; background-position: center; }

  /* No extra inner inset on mobile: use full window area */
  .hero-poster-slides { inset: 0; border-radius: inherit; background: transparent; }
  .hero-poster-card::after { inset: 0; border-radius: inherit; }

  /* On mobile, center the moved hero intro copy inside the Formats pill */
  .hero-intro-copy { text-align: center; }
  .hero-intro-copy .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-intro-copy .lead { margin-left: auto; margin-right: auto; font-size: 1.02rem; line-height: 1.42; }
  .hero-intro-copy .hero-title { margin-left: auto; margin-right: auto; font-size: clamp(1.45rem, 6.4vw, 2.0rem); line-height: 1.08; }

  .hero-actions { gap: 10px; justify-content: center; }
  .hero-actions .btn { width: 100%; min-height: 50px; }

  /* Formats pill: compact and strictly vertical so it fits into one card */
  .formats-card { padding: 18px; }
  .formats-card .hero-story-badges .badge-item { min-height: 32px; padding: 6px 12px; }
  .hero-intro-copy { margin-top: 12px; padding-top: 12px; }

  h2 { max-width: none; font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .video-feature-card { min-height: 360px; }

  /* Pricing table mobile - keep 3 columns but more compact */
  .pricing-row {
    grid-template-columns: 1.2fr 1.5fr 0.9fr;
    gap: 6px;
    padding: 14px 10px;
    font-size: 0.95rem;
    align-items: start;
  }
  .pricing-row--head {
    font-size: 0.65rem;
    padding: 10px 10px;
    letter-spacing: 0.04em;
  }
  .pricing-row--head > div:nth-child(2) { text-align: center; }
  .pricing-row--head > div:last-child { text-align: right; }
  .pricing-row > div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }
  .pricing-row > div:nth-child(2) { text-align: center; }
  .pricing-description {
    font-size: 0.85rem;
    line-height: 1.3;
    word-break: break-word;
  }
  .pricing-price {
    font-size: 0.95rem;
  }

  /* Reviews section mobile fixes */
  .reviews-cards-grid {
    grid-template-columns: 1fr !important;
    column-gap: 0;
    row-gap: 20px;
  }
  .reviews-cards-grid .review-card {
    width: 100% !important;
    min-height: auto;
  }
  .btn-all-reviews {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .reviews-form-sidebar {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Health zones mobile */
  .health-zone {
    padding: 1cm 0.5cm;
    margin-bottom: 1cm;
  }

  /* Formats carousel mobile */
  .formats-carousel-card {
    padding: 0.5cm;
    margin-top: 1cm;
  }

  /* Contact links mobile - 2 columns */
  .contacts-links {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Make phone button same size as VK button on mobile */
  .contact-link[href^="tel"] {
    height: auto !important;
    max-height: none !important;
  }

  /* VK icon smaller on mobile */
  .contact-link[href*="vk.com"] svg {
    width: 40px;
    height: 40px;
  }

  /* Gallery mobile adaptations */
  .gallery-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .gallery-tab-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .gallery-tab-btn {
    font-size: 0.7rem;
    padding: 6px 10px;
    min-height: 30px;
  }

  /* Gallery grid - 2 columns on mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .gallery-item {
    min-height: 200px !important;
  }

  /* Gallery carousel mobile */
  .gallery-carousel-panel {
    grid-template-columns: 0.3fr 1fr 0.3fr !important;
    gap: 8px;
    padding: 20px 0 30px 0 !important;
  }

  .gallery-carousel-panel .gallery-item {
    min-height: 300px !important;
  }

  .gallery-carousel-panel .carousel-center {
    min-height: 350px !important;
  }

  .gallery-carousel-panel .carousel-prev,
  .gallery-carousel-panel .carousel-next {
    min-height: 250px !important;
    opacity: 0.5;
  }
}

@media (max-width: 480px) {
  .container { width: min(var(--content-width), calc(100% - 20px)); }
  .brand { max-width: calc(100% - 60px); font-size: .84rem; }

  /* Very small screens: still keep it tall but not absurd */
  .hero-poster-card { min-height: 64vh; }
  .hero-intro-copy .hero-title { font-size: clamp(0.135rem, 0.7vw, 0.17rem); }

  .video-feature-card, .video-promo-poster img, .real-gallery .gallery-item { min-height: 280px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}

#contact .contact-shell {
    max-width: 100% !important;
    padding-left: 40px;
    padding-right: 40px;
}



/* EXPLICIT LANDSCAPE OVERRIDE FOR MOBILE PHONES ONLY */
@media (max-width: 950px) and (orientation: landscape) and (hover: none) {
  body .hero-top-grid--new { grid-template-columns: 1fr 1fr !important; }
  body .hero-story-card { display: grid !important; }
  body .hero-poster-card { min-height: 380px !important; max-height: 85vh !important; }
  body .gallery-carousel-panel { display: grid !important; grid-template-columns: 1fr 2.5fr 1fr !important; }
  body .hero-media-stack { display: block !important; }
  body .formats-card { display: flex !important; }
  body .formats-slider { grid-auto-columns: minmax(280px, 46%) !important; }
  body .reviews-cards-grid { grid-template-columns: 1fr 1fr !important; }
  
  /* Gallery tabs in one line */
  body .gallery-tabs { flex-wrap: nowrap !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start !important; padding-bottom: 5px; }
  body .gallery-tabs::-webkit-scrollbar { display: none !important; }
}

/* Neutralize contact link shifting from a + a */
.contact-link {
  margin-left: 0 !important;
}

