@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --bg0: #0b1116;
  --bg1: #142029;
  --ink: #e8eef2;
  --muted: #8a9aa6;
  --accent: #3d9b8f;
  --accent-2: #c9a45c;
  --line: rgba(232, 238, 242, 0.1);
  --panel: rgba(20, 32, 41, 0.72);
  --danger-soft: rgba(200, 90, 80, 0.12);
  --ok-soft: rgba(61, 155, 143, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  font-family: "Figtree", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(61, 155, 143, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 18%, rgba(201, 164, 92, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 100%, rgba(40, 80, 100, 0.28), transparent 55%),
    linear-gradient(168deg, var(--bg0), var(--bg1) 48%, #101820);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, .btn { font: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(11, 17, 22, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.nav__brand span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav__links a:hover { color: var(--ink); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 155, 143, 0.45);
  background: rgba(61, 155, 143, 0.12);
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  background: rgba(61, 155, 143, 0.22);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.38;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 17, 22, 0.35) 0%, rgba(11, 17, 22, 0.55) 42%, rgba(11, 17, 22, 0.96) 100%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(61, 155, 143, 0.18), transparent 70%);
}

.hero__content {
  padding: clamp(4rem, 10vh, 7rem) 0 4.5rem;
  max-width: 40rem;
  animation: riseIn 0.9s ease both;
}

.hero__brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 5.6rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.hero__brand span { color: var(--accent); }

.hero__title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.hero__lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.btn--primary {
  background: linear-gradient(180deg, #4bb0a3, var(--accent));
  color: #061014;
  font-weight: 700;
}

.btn--primary:hover { filter: brightness(1.05); }

.btn--ghost {
  background: rgba(232, 238, 242, 0.04);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(61, 155, 143, 0.5);
  background: rgba(61, 155, 143, 0.1);
}

.btn--gold {
  background: linear-gradient(180deg, #d4b16e, var(--accent-2));
  color: #1a1408;
  font-weight: 700;
}

.btn--sm {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section__head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.section__head h2,
.product__title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section__head p,
.product__short {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}

.product-card {
  display: block;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.product-card:hover {
  border-color: rgba(61, 155, 143, 0.55);
  transform: translateY(-3px);
  background: rgba(26, 42, 52, 0.9);
}

.product-card__name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.product-card__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-card__meta {
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ——— Product detail ——— */
.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.product:first-of-type { border-top: 0; padding-top: 0; }

.product--flip .product__visual { order: 2; }
.product--flip .product__body { order: 1; }

.product__visual {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #0a1014;
  animation: fadeUp 0.8s ease both;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product__visual:hover {
  border-color: rgba(61, 155, 143, 0.55);
  transform: translateY(-2px);
}

.product__visual:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.product__visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.product__visual:hover img {
  transform: scale(1.02);
}

.product__visual::after {
  content: "Увеличить";
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 17, 22, 0.72);
  border: 1px solid rgba(232, 238, 242, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.product__visual:hover::after,
.product__visual:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Lightbox ——— */
body.is-lightbox-open { overflow: hidden; }

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: zoom-out;
  background: rgba(5, 10, 14, 0.86);
  backdrop-filter: blur(6px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  max-height: calc(100vh - 2.5rem);
  animation: riseIn 0.25s ease both;
}

.lightbox__img {
  width: 100%;
  max-height: calc(100vh - 2.5rem);
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(232, 238, 242, 0.16);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  background: #0a1014;
}

.lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(232, 238, 242, 0.2);
  border-radius: 999px;
  background: rgba(11, 17, 22, 0.82);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.lightbox__close:hover {
  background: rgba(61, 155, 143, 0.28);
  transform: scale(1.05);
}

.product__body { animation: fadeUp 0.9s ease both; }

.product__full {
  margin: 1.1rem 0 1rem;
  color: var(--ink);
  opacity: 0.9;
  line-height: 1.65;
  font-size: 1.02rem;
}

.product__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

.product__list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.45;
}

.product__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.product__steps {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.product__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--muted);
  line-height: 1.45;
}

.step-num {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #061014;
  background: var(--accent);
}

.note-box {
  margin: 0 0 1.35rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 164, 92, 0.28);
  background: rgba(201, 164, 92, 0.08);
  color: #e6d3a8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ——— Safety ——— */
.safety {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(61, 155, 143, 0.28);
  background:
    linear-gradient(135deg, rgba(61, 155, 143, 0.12), transparent 45%),
    var(--panel);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}

.safety__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.safety h2 { margin-bottom: 0.75rem; }

.safety p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.safety__list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.safety__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  line-height: 1.45;
}

.check {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--ok-soft);
  border: 1px solid rgba(61, 155, 143, 0.45);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

/* ——— Stubs ——— */
.stubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stub {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--panel);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stub:hover {
  border-color: rgba(61, 155, 143, 0.4);
  transform: translateY(-2px);
}

.stub h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.45rem;
  margin: 0.35rem 0 0.65rem;
}

.stub p {
  color: var(--muted);
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(201, 164, 92, 0.14);
  color: var(--accent-2);
  border: 1px solid rgba(201, 164, 92, 0.3);
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer a:hover { color: var(--ink); }

/* ——— Stub pages ——— */
.stub-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.stub-page__card {
  width: min(32rem, 100%);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow);
  animation: riseIn 0.7s ease both;
}

.stub-page__card h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin: 0.8rem 0 0.85rem;
}

.stub-page__card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ——— Motion ——— */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

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

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .product-grid,
  .safety__grid,
  .stubs,
  .product,
  .product--flip {
    grid-template-columns: 1fr;
  }

  .product--flip .product__visual,
  .product--flip .product__body { order: initial; }

  .nav__links { display: none; }
  .nav__burger { display: inline-grid; place-items: center; }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(11, 17, 22, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__cta {
    margin-top: 0.75rem;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .hero__content { padding-bottom: 3rem; }
  .product-card { padding: 1.15rem 1rem; }
}

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