/* ===== Reset & tokens ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0708;            /* near-black с тёплым тоном */
  --bg-alt: #140a0c;
  --card: #181012;
  --line: #2e2024;
  --text: #f4efe9;
  --muted: #9a8e8b;
  --accent: #e01818;        /* красный, как в референсе */
  --accent-bright: #ff2a2a;
  --wa: #25d366;
  --radius: 16px;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(900px 700px at 50% 118%, rgba(224,24,24,.28), transparent 60%),
    radial-gradient(700px 600px at 85% -10%, rgba(120,12,16,.45), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

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

h1, h2, .logo, .hero__name { font-family: 'Onest', system-ui, sans-serif; }
em { font-style: normal; font-weight: 300; letter-spacing: .02em; }

/* ===== Pill / Buttons ===== */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  text-decoration: none; transition: background .2s, transform .15s;
}
.pill:hover { background: var(--accent-bright); transform: translateY(-1px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--text); color: #0d0708;
  font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease;
}
.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(37,211,102,.6); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(13,7,8,.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled { border-color: var(--line); background: rgba(13,7,8,.9); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 600; font-size: 22px; color: var(--text); text-decoration: none; }
.logo em { font-weight: 500; }
.nav { display: flex; gap: 34px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { position: relative; min-height: calc(100vh - 72px); display: flex; align-items: stretch; overflow: hidden; }

.hero__photo { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%;
  filter: contrast(1.08) saturate(.85) brightness(.9);
}
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,7,8,.55) 0%, transparent 28%, transparent 45%, rgba(13,7,8,.95) 92%),
    linear-gradient(90deg, rgba(13,7,8,.85) 0%, transparent 40%, transparent 70%, rgba(13,7,8,.7) 100%),
    linear-gradient(0deg, rgba(160,16,20,.18), rgba(160,16,20,.05));
}
.hero__photo img.is-missing { display: none; }
.hero__photo-fallback { display: none; color: var(--muted); font-size: 14px; }
.hero__photo img.is-missing ~ .hero__photo-fallback { display: block; }
.hero__photo code { color: var(--accent-bright); }

.hero__inner { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 48px; padding-bottom: 40px; }

.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }

.hero__tagline { max-width: 340px; text-align: left; }
.hero__loc { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 12px; }
.hero__tagline p { font-size: 15px; color: #d8cfca; }

.hero__name { font-weight: 900; font-size: clamp(64px, 16vw, 230px); line-height: .88; letter-spacing: -4px; }
.hero__name em { font-weight: 500; }
.hero__name .reg { font-size: .2em; vertical-align: super; font-style: normal; color: var(--accent-bright); }

/* плюс-метки */
.plus { position: absolute; z-index: 1; color: rgba(244,239,233,.35); font-size: 20px; font-weight: 300; user-select: none; }
.plus--1 { top: 16%; left: 14%; }
.plus--2 { top: 30%; right: 24%; }
.plus--3 { bottom: 38%; left: 46%; }
.plus--4 { top: 22%; right: 8%; }

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__tag { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 1px; color: var(--accent-bright); margin-bottom: 18px; font-family: 'Onest', sans-serif; }
.section__title { font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.0; letter-spacing: -2px; margin-bottom: 52px; }

/* About */
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about__text { color: var(--muted); font-size: 20px; line-height: 1.7; }
.about__text b { color: var(--text); }
.about__list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.about__list li { display: flex; gap: 14px; align-items: center; font-size: 16px; }
.check { display: inline-flex; width: 26px; height: 26px; flex: none; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-bright); font-weight: 400; font-size: 16px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px 30px; min-height: 230px;
  display: flex; flex-direction: column; transition: transform .2s, border-color .25s;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card--featured { background: linear-gradient(165deg, #25090b, var(--card)); border-color: rgba(224,24,24,.5); }
.card__no { font-family: 'Onest', sans-serif; font-weight: 300; font-size: 13px; letter-spacing: 2px; color: var(--accent-bright); margin-bottom: auto; text-transform: uppercase; }
.card__badge { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 11px; border-radius: 999px; }
.card h3 { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 24px; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Results */
.results__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.result { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.result img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CTA */
.cta { padding: 130px 0; text-align: center; position: relative; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; letter-spacing: -3px; margin-bottom: 32px; }

/* Socials */
.socials { display: flex; gap: 12px; }
.socials--center { justify-content: center; margin-top: 26px; }
.soc {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); background: var(--card); border: 1px solid var(--line);
  transition: transform .15s, border-color .2s, color .2s, background .2s;
}
.soc:hover { transform: translateY(-3px); color: #fff; border-color: var(--accent); background: var(--accent); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer .logo { font-size: 19px; }
.footer p { color: var(--muted); font-size: 14px; }

/* FAB — WhatsApp */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.55);
  transition: transform .2s; animation: pulse 2.6s infinite;
}
.fab:hover { transform: scale(1.08); }
@keyframes pulse { 0%,100% { box-shadow: 0 12px 30px -6px rgba(37,211,102,.45); } 50% { box-shadow: 0 12px 42px 0 rgba(37,211,102,.8); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { min-height: 86vh; padding-bottom: 32px; }
  .hero__inner { padding-top: 26px; }
  .hero__top { flex-direction: column; gap: 26px; }
  .hero__tagline { max-width: 100%; }
  .hero__photo img { object-position: 64% 22%; }
  .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .results__grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 76px 0; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 28px 24px; }
  .hero__name { font-size: clamp(48px, 17vw, 100px); letter-spacing: -2px; }
  .section__title { letter-spacing: -1px; }
}

/* Доступность: уважать reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab { animation: none; }
  html { scroll-behavior: auto; }
}
