/* ELANDERS SIA — corporate B2B
   Palette: navy + steel + white + accent (HACCP green optional) */

:root {
  --navy: #0d2540;
  --navy-2: #14385f;
  --steel: #4a6479;
  --line: #d9dee5;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --ink: #1a2233;
  --muted: #5a6577;
  --accent: #1e6fbf;
  --accent-2: #135494;
  --ok: #1f7a3a;
  --warn: #b3530b;
  --shadow: 0 1px 2px rgba(13,37,64,.06), 0 4px 12px rgba(13,37,64,.06);
  --radius: 6px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 600; color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 12px; z-index: 1000;
}
.skip:focus { left: 8px; top: 8px; }

/* ── Top bar ───────────────────────────────────── */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  color: var(--ink);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
}
.nav__link:hover { background: var(--bg-alt); color: var(--navy); text-decoration: none; }
.nav__link--active { background: var(--navy); color: #fff; }
.nav__link--active:hover { background: var(--navy-2); color: #fff; }

.nav__group { position: relative; }
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 260px;
  padding: 6px;
  display: none;
  z-index: 60;
}
.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown { display: block; }
.nav__dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  border-radius: 4px;
  font-size: 14px;
}
.nav__dropdown a:hover { background: var(--bg-alt); color: var(--navy); text-decoration: none; }

.toolbar { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; }
.langs__item {
  font-size: 12px; font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
}
.langs__item:hover { color: var(--navy); background: var(--bg-alt); text-decoration: none; }
.langs__item--active { background: var(--navy); color: #fff; }
.langs__item--active:hover { background: var(--navy-2); color: #fff; }


.burger { display: none; }

/* mobile menu */
.mobile { display: none; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger {
    display: inline-flex; flex-direction: column; gap: 4px;
    width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer; padding: 8px;
    justify-content: center; align-items: center;
  }
  .burger span { display: block; width: 20px; height: 2px; background: var(--navy); }
  .mobile {
    display: none;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px 24px;
  }
  .mobile[data-open="true"] { display: block; }
  .mobile a {
    display: block; padding: 10px 0;
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
  }
  .mobile__sub { padding-left: 16px !important; color: var(--steel) !important; font-weight: 400 !important; font-size: 14px; }
  .mobile__langs { display: flex; gap: 12px; padding: 14px 0 4px; }
  .mobile__langs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 13px; }
  .mobile__langs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: #0a1d36;
  color: #fff;
  padding: 64px 0;
  min-height: 480px;
}
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__scene svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.hero__title {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px;
  max-width: 720px;
}
.hero__subtitle {
  color: rgba(255,255,255,.85);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 640px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__badges { display: flex; flex-direction: column; gap: 12px; }
.hero__badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 14px 18px;
  border-radius: var(--radius);
  min-width: 180px;
}
.hero__badge-title { font-weight: 700; font-size: 13px; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.hero__badge-text { font-size: 14px; color: #fff; margin-top: 4px; }

@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: #fff; color: var(--navy); }
.btn--primary:hover { background: var(--bg-alt); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-2); color: #fff; text-decoration: none; }

/* ── Stats ───────────────────────────────────── */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 24px;
}
.stats__item { text-align: center; }
.stats__num { font-size: 38px; font-weight: 700; color: var(--navy); line-height: 1; }
.stats__label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

@media (max-width: 720px) { .stats__inner { grid-template-columns: repeat(2, 1fr); } }

/* ── Sections ───────────────────────────────────── */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section__header { margin-bottom: 28px; }
.section__title { font-size: 28px; margin: 0 0 10px; }
.section__title--mt { margin-top: 48px; }
.section__subtitle { color: var(--muted); margin: 0; }

.about-text { max-width: 900px; color: var(--steel); font-size: 16px; }
.about-text p { margin: 0 0 14px; }

/* ── Page head ─────────────────────────────────── */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 32px 0; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink); }
.page-head__title { font-size: 32px; margin: 0 0 6px; }
.page-head__subtitle { color: var(--muted); margin: 0; }

/* ── Category grid ─────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.cat-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: inherit;
  text-decoration: none;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  text-decoration: none;
}
.cat-card__img {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  overflow: hidden;
}
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__body { padding: 14px 16px; }
.cat-card__title { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.cat-card__count { font-size: 13px; color: var(--muted); }

/* ── Product grid ──────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.prod-card__img {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  overflow: hidden;
  display: block;
}
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; }
.prod-card__body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.prod-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--steel);
  background: var(--bg-alt); display: inline-block;
  padding: 2px 6px; border-radius: 3px;
  align-self: flex-start;
  margin-bottom: 6px;
}
.prod-card__name { font-weight: 600; color: var(--navy); font-size: 14px; line-height: 1.3; margin-bottom: 4px; }
.prod-card__ing { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ── Search ──────────────────────────────────── */
.search { margin: 0 0 24px; max-width: 480px; }
.search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  background: #fff;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,111,191,.15); }
.search__empty { color: var(--muted); text-align: center; padding: 24px; }

/* ── Contacts ─────────────────────────────────── */
.contacts {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 36px;
  align-items: start;
}
.contacts__info { display: flex; flex-direction: column; gap: 22px; }
.contacts__block { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contacts__block:last-child { border-bottom: 0; padding-bottom: 0; }
.contacts__label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.contacts__value { font-size: 16px; color: var(--navy); font-weight: 600; }
.contacts__value a { color: var(--navy); }
.contacts__meta { font-size: 14px; color: var(--steel); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.contacts__map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }

/* ── Form ──────────────────────────────────── */
.form { max-width: 720px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form__field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form__label { font-size: 13px; color: var(--steel); margin-bottom: 6px; font-weight: 500; }
.form input, .form textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; font-family: inherit;
  background: #fff;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,111,191,.15);
}
.form__field input[aria-invalid="true"],
.form__field textarea[aria-invalid="true"] { border-color: var(--warn); }
.form__error { color: var(--warn); font-size: 12px; margin-top: 4px; min-height: 16px; }
.form__success {
  margin-top: 18px; padding: 14px 18px;
  background: #e7f5ec; color: var(--ok);
  border: 1px solid #c2e3cd; border-radius: var(--radius);
  font-weight: 500;
}
.form__error-msg {
  margin-top: 18px; padding: 14px 18px;
  background: #fdf1e6; color: var(--warn);
  border: 1px solid #f3d6b8; border-radius: var(--radius);
}
.form__hint { color: var(--muted); margin-top: 24px; font-size: 14px; }
.form .btn { padding: 13px 26px; }
.form .btn--primary { background: var(--navy); color: #fff; }
.form .btn--primary:hover { background: var(--navy-2); color: #fff; }

@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  margin-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 24px 32px;
}

/* Блок софинансирования ЕС/государства (логотипы спонсоров + текст проекта) */
.footer__project { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__project-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 24px;
}
.footer__project-text { flex: 1 1 460px; min-width: 0; }
.footer__project-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); margin-bottom: 8px;
}
.footer__project-heading { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.4; }
.footer__project-num { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }
.footer__project-desc {
  font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6;
  margin: 10px 0; max-width: 78ch;
}
.footer__project-support { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.footer__project-logos {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 18px;
  background: #fff; border-radius: 8px; padding: 16px 20px;
}
.footer__project-logos img { height: 50px; width: auto; display: block; }
@media (max-width: 700px) {
  .footer__project-logos { padding: 12px 16px; gap: 14px; }
  .footer__project-logos img { height: 38px; }
}
.footer__brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer__meta { font-size: 13px; color: rgba(255,255,255,.6); }
.footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.footer__col a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; line-height: 1.9; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__badges { display: flex; flex-direction: column; gap: 10px; }
.badge {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
}
.footer__pdf { margin-top: 14px; }
.footer__pdf a { font-weight: 600; }

.footer__socials { display: flex; gap: 8px; margin-top: 14px; }
.footer__socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.footer__socials a svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.footer__socials a:hover {
  background: #fff; color: var(--navy); border-color: #fff;
  text-decoration: none; transform: translateY(-1px);
}

.footer__copy {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 24px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

@media (max-width: 900px) { .footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .footer__inner { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   ANIMATIONS & POLISH
   ============================================================ */

/* Scroll progress bar (тонкая полоска сверху) */
.progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), #5fb3ff);
  z-index: 100;
  transition: width .08s linear;
  pointer-events: none;
}

/* Reveal on scroll — секции и карточки выезжают снизу */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger через data-delay (0..600мс) */
.reveal[data-delay="50"]  { transition-delay: .05s; }
.reveal[data-delay="100"] { transition-delay: .10s; }
.reveal[data-delay="150"] { transition-delay: .15s; }
.reveal[data-delay="200"] { transition-delay: .20s; }
.reveal[data-delay="250"] { transition-delay: .25s; }
.reveal[data-delay="300"] { transition-delay: .30s; }
.reveal[data-delay="350"] { transition-delay: .35s; }
.reveal[data-delay="400"] { transition-delay: .40s; }

/* Hero — fade+slide-up при загрузке */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero__title    { animation: heroIn .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__subtitle { animation: heroIn .7s cubic-bezier(.2,.7,.2,1) .12s both; }
.hero__actions  { animation: heroIn .7s cubic-bezier(.2,.7,.2,1) .24s both; }
.hero__badge:nth-of-type(1) { animation: heroIn .7s cubic-bezier(.2,.7,.2,1) .36s both; }
.hero__badge:nth-of-type(2) { animation: heroIn .7s cubic-bezier(.2,.7,.2,1) .48s both; }

/* Nav links — animated underline */
.nav__link {
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--active::after { display: none; }

/* Dropdown — smooth fade+slide, без display:none-щелчка */
.nav__dropdown {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.nav__dropdown a {
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.nav__dropdown a:hover { padding-left: 16px; }

/* Cards — мягкое поднятие + zoom внутреннего фото */
.cat-card, .prod-card {
  transition: transform .25s cubic-bezier(.2,.7,.2,1),
              box-shadow .25s ease,
              border-color .25s ease;
}
.cat-card__img, .prod-card__img {
  overflow: hidden;
}
.cat-card__img img, .prod-card__img img {
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.cat-card:hover .cat-card__img img,
.prod-card:hover .prod-card__img img {
  transform: scale(1.06);
}
.prod-card:hover { transform: translateY(-3px); }

/* Кнопки — лёгкое нажатие */
.btn { transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }

/* Картинки — fade при загрузке */
img[data-fade] {
  opacity: 0;
  transition: opacity .4s ease;
}
img[data-fade].is-loaded { opacity: 1; }

/* Мобильное меню — плавный slide */
.mobile {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 1024px) {
  .mobile {
    display: block !important;
    padding: 0 24px;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .mobile[data-open="true"] {
    max-height: 80vh;
    padding: 12px 24px;
    overflow-y: auto;
  }
  .burger span {
    transition: transform .25s ease, opacity .2s ease;
    transform-origin: center;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Scroll-to-top кнопка */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(13,37,64,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
  z-index: 80;
  font-size: 18px; line-height: 1;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--navy-2); }

/* Lightbox для фото товаров */
.lb {
  position: fixed; inset: 0;
  background: rgba(13,37,64,.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  z-index: 200;
  padding: 24px;
  cursor: zoom-out;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__img {
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transform: scale(.92);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  cursor: auto;
  background: #fff;
}
.lb.is-open .lb__img { transform: none; }
.lb__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.lb__close:hover { background: rgba(255,255,255,.25); }

/* Зацепка курсора для увеличиваемых фото */
.prod-card__img { cursor: zoom-in; }

/* Counter — мягкая анимация цифр (CSS поддержка пульсации) */
.stats__num {
  transition: color .3s ease;
  font-variant-numeric: tabular-nums;
}

/* Стики хедера: тень после прокрутки */
.topbar { transition: box-shadow .2s ease; }
.topbar.is-scrolled { box-shadow: 0 2px 12px rgba(13,37,64,.08); }

/* ============================================================
   HERO SCENE — маяк, море, рыбы, звёзды
   ============================================================ */

/* Мерцающие звёзды */
@keyframes starTwinkle {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
.hero__scene .stars circle {
  animation: starTwinkle 3s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* Лампа маяка — пульсация */
@keyframes lampPulse {
  0%, 100% { filter: drop-shadow(0 0 4px #ffe28a); }
  50%      { filter: drop-shadow(0 0 14px #ffba49); }
}
.hero__scene .lamp { animation: lampPulse 3.6s ease-in-out infinite; }

/* Луч маяка: ЧИСТЫЙ полный оборот 360° из лампы (1280, 200).
   Свет «в небо» отрезается родительским <g clip-path="url(#beamClip)">
   в SVG (см. home.html). Скорость постоянная, opacity постоянная. */
@keyframes beamRotate {
  from { transform: translate(1280px, 200px) rotate(0deg); }
  to   { transform: translate(1280px, 200px) rotate(360deg); }
}
.hero__scene .beam {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  animation: beamRotate 12s linear infinite;
  mix-blend-mode: screen;
}

/* Halo — мягкое свечение вокруг лампы (не вращается, синхронно дышит с лампой) */
@keyframes haloPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.15); }
}
.hero__scene .halo {
  transform-origin: 1280px 198px;
  transform-box: view-box;
  animation: haloPulse 3.6s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* Отражение в воде — мягкая пульсация */
@keyframes reflectPulse {
  0%, 100% { opacity: 0.15; transform: scaleX(1); }
  50%      { opacity: 0.35; transform: scaleX(1.15); }
}
.hero__scene .reflection {
  transform-origin: 1292px 430px;
  animation: reflectPulse 4s ease-in-out infinite;
}

/* Волны — медленное горизонтальное смещение */
@keyframes waveSlideR {
  from { transform: translateX(0); }
  to   { transform: translateX(-200px); }
}
@keyframes waveSlideL {
  from { transform: translateX(-200px); }
  to   { transform: translateX(0); }
}
.hero__scene .wave--back  { animation: waveSlideR 14s linear infinite; }
.hero__scene .wave--mid   { animation: waveSlideL 10s linear infinite; }
.hero__scene .wave--front { animation: waveSlideR  7s linear infinite; }

/* Падающая звезда — короткий промельк раз в ~14 сек */
@keyframes shoot {
  0%, 78%, 100% { opacity: 0; transform: translate(380px, 60px) rotate(18deg); }
  79%           { opacity: 0; transform: translate(380px, 60px) rotate(18deg); }
  82%           { opacity: 1; transform: translate(440px, 80px) rotate(18deg); }
  92%           { opacity: 0.9; transform: translate(720px, 180px) rotate(18deg); }
  96%           { opacity: 0; transform: translate(760px, 200px) rotate(18deg); }
}
.hero__scene .shooting-star {
  transform-box: fill-box;
  animation: shoot 14s linear infinite;
}

/* Облака — медленный дрейф вправо в пределах viewBox */
@keyframes cloudDrift {
  0%   { transform: translate(-40px, 70px); }
  100% { transform: translate(1640px, 70px); }
}
@keyframes cloudDrift2 {
  0%   { transform: translate(-80px, 220px); }
  100% { transform: translate(1680px, 220px); }
}
.hero__scene .cloud--1 { animation: cloudDrift 90s linear infinite -30s; }
.hero__scene .cloud--2 { animation: cloudDrift2 130s linear infinite -60s; }

/* Парусник на горизонте — внешний g дрейфует, внутренний качается как целое */
@keyframes boatDrift {
  0%   { transform: translate(360px, 396px); }
  100% { transform: translate(1060px, 396px); }
}
@keyframes boatRock {
  0%, 100% { transform: rotate(-1.4deg); }
  50%      { transform: rotate(1.4deg); }
}
.hero__scene .boat        { animation: boatDrift 80s linear infinite; }
.hero__scene .boat__inner {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: boatRock 4s ease-in-out infinite;
}

/* Пузырьки — поднимаются со дна */
@keyframes bubbleRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-220px) translateX(20px); opacity: 0; }
}
.hero__scene .b { animation: bubbleRise 6s ease-in infinite; transform-origin: center; }
.hero__scene .b1 { animation-delay: 0s;   animation-duration: 5.5s; }
.hero__scene .b2 { animation-delay: 1.2s; animation-duration: 7s;   }
.hero__scene .b3 { animation-delay: 2.4s; animation-duration: 6s;   }
.hero__scene .b4 { animation-delay: 0.8s; animation-duration: 6.5s; }
.hero__scene .b5 { animation-delay: 3s;   animation-duration: 7.5s; }
.hero__scene .b6 { animation-delay: 1.8s; animation-duration: 6.2s; }

/* Рыбка: большую часть цикла прячется под передней волной (opacity 0),
   затем короткий прыжок по дуге с переворотом и всплеск брызг при приземлении.
   Внешняя <g> в SVG задаёт базовую точку у поверхности; здесь — только дельты. */
@keyframes fishArc {
  0%, 58%   { transform: translate(0, 22px); opacity: 0; }
  61%       { transform: translate(-14px, 0); opacity: 1; }
  70%       { transform: translate(0, -62px); opacity: 1; }
  79%       { transform: translate(14px, 0); opacity: 1; }
  82%, 100% { transform: translate(14px, 22px); opacity: 0; }
}
@keyframes fishRot {
  0%, 60%   { transform: rotate(0deg); }
  61%       { transform: rotate(-60deg); }
  70%       { transform: rotate(0deg); }
  79%       { transform: rotate(60deg); }
  82%, 100% { transform: rotate(60deg); }
}
@keyframes fishSplash {
  0%, 77%   { opacity: 0; transform: translate(14px, 0) scale(0.4); }
  80%       { opacity: 0.9; transform: translate(14px, -2px) scale(1); }
  88%       { opacity: 0; transform: translate(14px, -10px) scale(1.25); }
  100%      { opacity: 0; }
}
.hero__scene .fish__arc,
.hero__scene .fish__rot,
.hero__scene .fish__splash {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.hero__scene .fish__splash { opacity: 0; }

.hero__scene .fish--1 .fish__arc    { animation: fishArc    7s ease-in-out infinite; }
.hero__scene .fish--1 .fish__rot    { animation: fishRot    7s ease-in-out infinite; }
.hero__scene .fish--1 .fish__splash { animation: fishSplash 7s ease-in-out infinite; }

.hero__scene .fish--2 .fish__arc    { animation: fishArc    9s ease-in-out -4.5s infinite; }
.hero__scene .fish--2 .fish__rot    { animation: fishRot    9s ease-in-out -4.5s infinite; }
.hero__scene .fish--2 .fish__splash { animation: fishSplash 9s ease-in-out -4.5s infinite; }

.hero__scene .fish--3 .fish__arc    { animation: fishArc    11s ease-in-out -2s infinite; }
.hero__scene .fish--3 .fish__rot    { animation: fishRot    11s ease-in-out -2s infinite; }
.hero__scene .fish--3 .fish__splash { animation: fishSplash 11s ease-in-out -2s infinite; }

/* На мобилке делаем сцену чуть мягче (меньше деталей через media) */
@media (max-width: 720px) {
  .hero { min-height: 420px; }
  .hero__scene .stars { opacity: 0.7; }
}

/* Уважаем reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__scene .beam,
  .hero__scene .halo,
  .hero__scene .stars circle,
  .hero__scene .lamp,
  .hero__scene .reflection,
  .hero__scene .waves,
  .hero__scene .b,
  .hero__scene .shooting-star,
  .hero__scene .cloud,
  .hero__scene .boat,
  .hero__scene .boat__inner,
  .hero__scene .fish__arc,
  .hero__scene .fish__rot,
  .hero__scene .fish__splash {
    animation: none !important;
  }
}

