/*
  AFUVA landing
  Шрифты бренда: положите .woff2 файлы в assets/fonts и замените названия ниже.
*/
@font-face {
  font-family: "AFUVA Serif";
  src: url("assets/fonts/AFUVA-Serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "AFUVA Sans";
  src: url("assets/fonts/AFUVA-Sans.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #e9eceb;
  --bg-soft: #f5f6f3;
  --card: rgba(248, 249, 247, 0.78);
  --card-solid: #f8f9f7;
  --ink: #172334;
  --ink-soft: #334151;
  --muted: #7b8585;
  --line: rgba(23, 35, 52, 0.12);
  --gold: #c3a37b;
  --gold-soft: #e8d8c5;
  --blue: #9aacaf;
  --blue-dark: #7f9296;
  --rose: #eee0dc;
  --shadow: 0 20px 52px rgba(23, 35, 52, 0.14);
  --shadow-soft: 0 12px 34px rgba(23, 35, 52, 0.10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --font-title: "AFUVA Serif", Georgia, "Times New Roman", serif;
  --font-ui: "AFUVA Sans", Inter, Manrope, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 8%, rgba(255,255,255,0.82), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(195,163,123,0.16), transparent 28%),
    linear-gradient(180deg, #f1f3f2 0%, var(--bg) 46%, #e3e8e8 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23,35,52,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(23,35,52,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.3), transparent 75%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 70px 0; }
.section-padded { padding: 118px 0 70px; }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin-top: 12px;
  transition: transform .25s ease, background .25s ease;
}
.header-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 9px 10px 9px 16px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 999px;
  background: rgba(247,248,246,0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 32px rgba(23,35,52,0.10);
}
.brand { display: inline-flex; align-items: center; min-width: max-content; }
.brand-logo {
  display: block;
  width: clamp(148px, 15vw, 198px);
  height: auto;
  object-fit: contain;
}
.footer-logo { width: 210px; max-width: 100%; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 28px); font-size: 14px; color: var(--ink-soft); }
.main-nav a { position: relative; padding: 8px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 1px; background: var(--ink); transition: width .25s ease; }
.main-nav a:hover::after { width: 100%; }
.mobile-buy { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 99px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 23px;
  border: 0;
  border-radius: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 28px rgba(23,35,52,.18); }
.btn-dark:hover { box-shadow: 0 18px 34px rgba(23,35,52,.22); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 12px 24px rgba(195,163,123,.28); }
.btn-light { background: rgba(255,255,255,.78); color: var(--ink); border: 1px solid rgba(23,35,52,.08); box-shadow: var(--shadow-soft); }
.btn-small { min-height: 40px; padding: 0 17px; border-radius: 999px; font-size: 13px; }

.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: .98; }
h1, h2 { font-family: var(--font-title); font-weight: 500; letter-spacing: -0.035em; }
h1 { max-width: 620px; font-size: clamp(52px, 7vw, 96px); }
h2 { font-size: clamp(34px, 4.8vw, 58px); }
h3 { font-family: var(--font-ui); font-size: 18px; line-height: 1.22; letter-spacing: -0.02em; }
.hero-lead { max-width: 600px; margin: 20px 0 0; color: var(--ink-soft); font-size: clamp(17px, 2vw, 21px); line-height: 1.48; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(23,35,52,.08);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13px;
}
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  right: 6%;
  top: 8%;
  background: rgba(195,163,123,.18);
  filter: blur(28px);
}
.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(245,246,243,.44));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-card {
  min-height: 430px;
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero-card img {
  width: 100%;
  height: 352px;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.hero-card-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  min-height: 78px;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(180deg, rgba(248,249,247,.72), rgba(248,249,247,.88));
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-card-caption strong { color: var(--ink); font-size: 15px; text-transform: none; letter-spacing: 0; }

.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); max-width: 740px; }
.split-head { max-width: none; display: grid; grid-template-columns: .95fr .8fr; gap: 34px; align-items: end; }
.split-head > p { margin-bottom: 6px !important; }

.photo-line { overflow: hidden; padding-top: 48px; }
.marquee {
  width: 100%;
  overflow: hidden;
  padding: 8px 0 34px;
  cursor: default;
}
.marquee-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  will-change: transform;
  animation: marquee-fallback 74s linear infinite;
}
.marquee.is-js .marquee-track { animation: none; }
.photo-card {
  width: 340px;
  height: 220px;
  flex: 0 0 340px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.88);
  background: #ece7df;
  box-shadow: 0 18px 44px rgba(23,35,52,.10);
  transform: translateZ(0);
}
.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
@keyframes marquee-fallback {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 12px), 0, 0); }
}

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(248,249,247,.72);
  box-shadow: 0 16px 42px rgba(23,35,52,.09);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card-accent { transform: translateY(18px); }
.product-card-accent:hover { transform: translateY(12px); }
.product-media {
  height: 206px;
  padding: 0;
  overflow: hidden;
  background: #ece7df;
  border-bottom: 1px solid rgba(255,255,255,.76);
}
.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.product-body { padding: 22px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}
.pill-blue { background: var(--blue); color: #fff; }
.pill-rose { background: var(--rose); }
.pill-dark { background: var(--blue-dark); color: #fff; }
.product-body p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.product-body ul { margin: 16px 0 18px; padding: 0 0 0 18px; color: var(--ink-soft); font-size: 13px; }
.product-body li + li { margin-top: 5px; }
.product-body a { margin-top: auto; font-weight: 800; font-size: 14px; }

.trust-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 54px; align-items: start; }
.trust-intro { position: sticky; top: 104px; }
.trust-intro p:not(.eyebrow) { color: var(--muted); margin: 22px 0 0; max-width: 520px; }
.trust-note {
  margin-top: 28px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
}
.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trust-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  min-height: 160px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(248,249,247,.66);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 10px 26px rgba(23,35,52,.08);
}
.trust-item span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(195,163,123,.13);
}
.trust-item p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.reviews-shell { display: grid; grid-template-columns: 46px 1fr 46px; gap: 12px; align-items: center; }
.reviews-viewport { overflow: hidden; padding: 8px 4px 22px; }
.reviews-track { display: flex; gap: 18px; transition: transform .35s ease; }
.review-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-height: 190px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(248,249,247,.78);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}
.stars { color: var(--gold); letter-spacing: .08em; font-size: 15px; }
.review-card blockquote { margin: 14px 0 18px; font-weight: 750; line-height: 1.45; }
.review-meta { color: var(--muted); font-size: 13px; }
.review-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 50%;
  background: rgba(255,255,255,.68);
  box-shadow: 0 10px 24px rgba(23,35,52,.10);
  color: var(--ink);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.review-arrow:hover { transform: translateY(-2px); background: #fff; }

.site-footer { padding: 36px 0 24px; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 8px 20px rgba(23,35,52,.08);
  font-weight: 800;
  font-size: 12px;
}
.footer-bottom { margin-top: 22px; color: var(--muted); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1060px) {
  .header-inner { grid-template-columns: auto auto; position: relative; }
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: block; justify-self: end; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle span { transition: transform .2s ease, opacity .2s ease; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(245px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(248,249,247,.96);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: 0 18px 42px rgba(23,35,52,.14);
    backdrop-filter: blur(18px);
  }
  .main-nav.is-open a {
    padding: 10px 12px;
    border-radius: 13px;
    line-height: 1.2;
  }
  .main-nav.is-open a:hover { background: rgba(23,35,52,.05); }
  .main-nav.is-open a::after { display: none; }
  .main-nav.is-open .mobile-buy {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    background: var(--gold);
    color: #fff;
    font-weight: 800;
  }
  .hero-grid, .trust-grid, .split-head { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .trust-intro { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-media { height: 220px; }
  .product-card-accent { transform: none; }
  .product-card-accent:hover { transform: translateY(-6px); }
  .review-card { flex-basis: calc((100% - 18px) / 2); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section, .section-padded { padding: 52px 0; }
  .section-padded { padding-top: 88px; }
  .site-header { top: 8px; margin-top: 8px; }
  .header-inner { border-radius: 22px; padding-right: 8px; }
  .main-nav.is-open { right: -2px; top: calc(100% + 8px); width: min(218px, calc(100vw - 28px)); }
  .brand-logo { width: 142px; }
  .footer-logo { width: 180px; }
  .hero-card { min-height: auto; padding: 0; }
  .hero-card img { height: 260px; }
  .hero-card-caption { flex-direction: column; align-items: start; }
  .photo-card { width: 276px; height: 188px; flex-basis: 276px; }
  .product-grid, .trust-list { grid-template-columns: 1fr; }
  .product-card { min-height: auto; }
  .product-media { height: 210px; }
  .reviews-shell { grid-template-columns: 1fr; }
  .review-arrow { display: none; }
  .reviews-viewport { overflow: auto; scroll-snap-type: x mandatory; }
  .review-card { flex-basis: 84%; scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
