/* =========================================================
   {БРЕНД} — styles.css
   Палитра: тёмный «угольно-коричневый» фон + янтарь/оранж
   Шрифты: Unbounded (заголовки), Onest (текст)
   ========================================================= */

:root {
  --bg:        #1a110c;   /* угольно-коричневый фон */
  --bg-2:      #22160f;   /* приподнятая поверхность */
  --bg-3:      #2c1d14;   /* карточки */
  --line:      #3d2a1e;   /* линии */
  --ink:       #f6e9dc;   /* основной текст */
  --ink-2:     #c9b3a1;   /* вторичный текст */
  --ink-3:     #8b7362;   /* подписи */
  --amber:     #ff7a18;   /* главный акцент */
  --amber-2:   #ffb15c;   /* светлый акцент */
  --ember:     #c2410c;   /* тёмный акцент */
  --glow:      rgba(255, 122, 24, .35);

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body:    "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--amber-2); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #1a110c; padding: .5rem 1rem; z-index: 100; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--amber), var(--amber-2)); transition: width .1s linear; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--amber); color: #1a110c; box-shadow: 0 8px 28px -10px var(--glow); }
.btn-primary:hover { background: var(--amber-2); box-shadow: 0 14px 34px -10px var(--glow); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-2); }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--amber); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; }
.site-nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; position: relative; padding: .3rem 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--amber); transition: width .3s var(--ease); }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); text-decoration: none; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: .5rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.mobile-menu a { padding: .8rem 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu:not([hidden]) { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; isolation: isolate; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    radial-gradient(circle at center, var(--line) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 80% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 40%, #000 30%, transparent 80%);
}
.hero-scan {
  position: absolute; left: 0; right: 0; top: -20%; height: 26%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--glow) 50%, transparent);
  opacity: .35; filter: blur(30px);
  animation: scan 9s linear infinite;
}
@keyframes scan { from { transform: translateY(-40%); } to { transform: translateY(520%); } }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-kicker { color: var(--amber); font-weight: 600; font-size: .9rem; margin-bottom: 1.2rem; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; }
.h1-line { display: block; }
.h1-line--accent { color: var(--amber); }
.h1-line--small { font-size: .5em; font-weight: 500; color: var(--ink-2); margin-top: .5em; letter-spacing: 0; }
.hero-lead { margin: 1.5rem 0 2rem; max-width: 56ch; color: var(--ink-2); font-size: 1.1rem; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; list-style: none; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column; gap: .2rem; }
.hero-stats b { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--amber-2); }
.hero-stats span { color: var(--ink-3); font-size: .88rem; }
.hero-art { margin: 0; position: relative; aspect-ratio: 1; }
.hero-art-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; animation: float 8s ease-in-out infinite; }
.hero-art picture { position: absolute; inset: 4% 0 0 0; display: flex; justify-content: center; align-items: flex-end; }
.hero-art-photo { width: 78%; height: auto; filter: drop-shadow(0 40px 60px rgba(255,122,24,.28)); animation: rise 1.4s var(--ease) both .35s; }
.hero-art::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1deg); } }

/* ---------- Reveal (только герой) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .22s; }
.reveal[data-delay="3"] { transition-delay: .34s; }
.reveal[data-delay="4"] { transition-delay: .46s; }
body.is-ready .reveal { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-head { max-width: 72ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2, .faq-head h2, .contact-copy h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); font-weight: 700; }
.section-sub { color: var(--amber-2); margin-top: .9rem; font-size: 1rem; }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-text { max-width: 70ch; }
.about-text h3 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--amber-2); }
.about-text p { color: var(--ink-2); }
.lead-p { font-size: 1.12rem; color: var(--ink) !important; }
.check-list { list-style: none; display: grid; gap: .7rem; margin: 1.2rem 0 1.4rem; }
.check-list li { padding-left: 1.75rem; position: relative; color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--amber); transform: rotate(45deg); }
.check-list strong { color: var(--ink); }
.about-side { position: sticky; top: 96px; display: grid; gap: 1.5rem; }
.side-figure { margin: 0; padding: 1.25rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-lg); }
.side-figure figcaption { margin-top: .9rem; color: var(--ink-3); font-size: .85rem; text-align: center; }
.side-quote { margin: 0; padding: 1.4rem 1.5rem; border-left: 3px solid var(--amber); background: linear-gradient(90deg, rgba(255,122,24,.08), transparent); border-radius: 0 var(--r-md) var(--r-md) 0; }
.side-quote p { font-size: 1.02rem; color: var(--ink); margin-bottom: .6rem; }
.side-quote cite { font-style: normal; color: var(--ink-3); font-size: .85rem; }

/* ---------- Features ---------- */
.features-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.features-art { margin: 0; }
.features-art img { width: 100%; }
.feature-list { list-style: none; display: grid; gap: 1.1rem; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); transition: border-color .3s, transform .3s var(--ease); }
.feature:hover { border-color: var(--ember); transform: translateX(6px); }
.feature-icon { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: rgba(255,122,24,.1); color: var(--amber); }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Process ---------- */
.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--ember), var(--amber), var(--ember), transparent); }
.step { position: relative; padding: 0 .5rem; }
.step-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 1px solid var(--amber); color: var(--amber); font-family: var(--font-display); font-weight: 700; margin-bottom: 1.2rem; position: relative; }
.step-num::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--glow); opacity: 0; transition: opacity .3s; }
.step:hover .step-num::after { opacity: 1; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-head { position: sticky; top: 96px; }
.accordion { display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); overflow: hidden; }
.faq-item[open] { border-color: var(--ember); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
.faq-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .3s var(--ease), border-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--amber); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); border-color: var(--amber); }
.faq-body { padding: 0 1.4rem 1.25rem; color: var(--ink-2); }
.faq-body p { margin: 0; }
.faq-body.is-animating { overflow: hidden; }

/* ---------- Contact ---------- */
.contact { position: relative; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; gap: clamp(2rem, 5vw, 5rem); padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--r-lg); background: radial-gradient(ellipse at top left, rgba(255,122,24,.16), transparent 60%), var(--bg-3); border: 1px solid var(--line); }
.contact-copy { position: relative; z-index: 1; }
.contact-copy p { color: var(--ink-2); margin-top: 1rem; }
.contact-form { position: relative; z-index: 1; }
.contact-figure { margin: 0; position: absolute; left: -4%; bottom: -6%; width: 46%; max-width: 480px; opacity: .22; pointer-events: none; z-index: 0;
  mask-image: linear-gradient(90deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); }
.contact-figure img { width: 100%; filter: saturate(1.1) drop-shadow(0 0 40px rgba(255,122,24,.25)); }
.contact:hover .contact-figure { opacity: .32; transition: opacity .6s; }
.contact-list { list-style: none; display: grid; gap: .4rem; margin-top: 1.4rem; }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; color: var(--ink-2); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font: inherit; font-size: .95rem; transition: border-color .25s; }
.field input:focus, .field textarea:focus { border-color: var(--amber); outline: none; }
.field input.is-invalid { border-color: #ff5f5f; }
.form-note { color: var(--ink-3); font-size: .8rem; margin: 0; }
.form-status { margin: 0; min-height: 1.4em; color: var(--amber-2); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.footer-brand p { color: var(--ink-3); margin: .8rem 0 0; max-width: 40ch; font-size: .92rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: .5rem 2rem; justify-content: end; }
.footer-nav a { color: var(--ink-2); font-size: .92rem; }
.copyright { grid-column: 1 / -1; color: var(--ink-3); font-size: .85rem; margin: 1rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about-grid, .features-layout, .faq-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; width: 100%; margin-inline: auto; }
  .contact-figure { display: none; }
  .about-side, .faq-head { position: static; }
  .features-art { max-width: 340px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.2rem; }
  .steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: start; }
}
@media (max-width: 720px) {
  .site-nav, .header-inner .btn { display: none; }
  .burger { display: flex; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

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