/* ===========================================================================
   КРЯЖ — outdoor-бренд. Дизайн-система одного лендинга.
   Графит + сигнально-оранжевый + каменно-серый. Узкий жирный сан, острые края.
   Только локальные ресурсы, без внешних сетей.
   =========================================================================== */

:root {
  /* цвет — графит / камень / сигнал */
  --graphite:   #16181a;   /* фон тёмных секций, базовый текст на светлом */
  --graphite-2: #1f2225;
  --graphite-3: #2a2e32;
  --stone:      #e9eaec;   /* светлый фон */
  --stone-2:    #dadce0;   /* чуть темнее, alt-секции */
  --stone-3:    #c3c7cc;
  --ink:        #14161a;
  --ink-soft:   #4a4f55;
  --muted:      #7d848c;
  --line:       #cbcfd4;
  --line-dark:  #34393e;
  --signal:     #ff5b1f;   /* сигнально-оранжевый — главный акцент */
  --signal-2:   #e84d12;
  --signal-hi:  #ff7a45;

  /* типографика — узкий жирный сан (condensed) */
  --cond: "Roboto Condensed", "PT Sans Narrow", "Oswald", "Arial Narrow",
          ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* шкала */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 36px;
  --s-5: 52px; --s-6: 72px; --s-7: 104px; --s-8: 140px;

  --maxw: 1240px;
  --edge: 2px;                /* острый радиус */
  --edge-lg: 4px;
  --shadow:    0 2px 8px rgba(10,12,14,.10), 0 14px 40px rgba(10,12,14,.12);
  --shadow-lg: 0 26px 70px rgba(10,12,14,.30);
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.66;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--cond);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
}
p { margin: 0 0 var(--s-2); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-4); }
.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--signal); color: #fff; padding: 10px 16px; z-index: 999; font-weight: 700;
}

/* ---------- общие секции ---------- */
.section { padding-block: var(--s-7); }
.section--alt { background: var(--stone-2); }

.kicker {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 13px;
  font-weight: 700;
  color: var(--signal);
  margin: 0 0 var(--s-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--signal); display: inline-block; }
.kicker--light { color: var(--signal-hi); }

.section-head { max-width: 720px; margin: 0 0 var(--s-6); }
.section-head h2 { font-size: clamp(32px, 5vw, 58px); margin-bottom: var(--s-2); }
.section-head__lead { color: var(--ink-soft); font-size: 19px; max-width: 56ch; margin: 0; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--signal); color: #fff;
  padding: 15px 30px; border: 2px solid var(--signal);
  border-radius: var(--edge); font-family: var(--cond); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: .06em;
  transition: background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { background: var(--signal-2); border-color: var(--signal-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 9px 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(22,24,26,.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.header-inner { display: flex; align-items: center; gap: var(--s-3); height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--cond); font-size: 25px; font-weight: 700; letter-spacing: .08em; color: #fff; text-transform: uppercase; }
.brand__mark { color: var(--signal); flex: none; }

.nav { display: flex; gap: var(--s-4); margin-left: auto; }
.nav a {
  font-family: var(--cond); font-size: 17px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .05em; color: #e9eaec; position: relative; padding: 6px 0; transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0; background: var(--signal);
  transition: width .25s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.nav-cta { flex: none; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.burger span { width: 26px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 96vh; display: flex; align-items: flex-end; overflow: hidden; margin-top: -74px; padding-top: 74px; }
.hero__bg {
  position: absolute; inset: -8% 0 0 0; background-size: cover; background-position: center 30%;
  z-index: -3; will-change: transform; filter: saturate(.85) contrast(1.05);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(16,18,20,.30) 0%, rgba(16,18,20,.05) 30%, rgba(16,18,20,.78) 100%),
    linear-gradient(90deg, rgba(16,18,20,.62) 0%, rgba(16,18,20,0) 60%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px);
}
.hero__content { color: #fff; max-width: 880px; padding-block: var(--s-7) var(--s-6); }
.hero__title { font-size: clamp(44px, 9vw, 116px); line-height: .92; letter-spacing: -.02em; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
.hero__title-accent { color: var(--signal); }
.hero__lead { font-family: var(--sans); font-size: clamp(17px, 2vw, 21px); max-width: 46ch; color: #d6d9dc; margin: var(--s-3) 0 var(--s-4); text-transform: none; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-5); margin: var(--s-5) 0 0;
  border-top: 1px solid rgba(255,255,255,.22); padding-top: var(--s-3);
}
.hero__facts div { display: flex; flex-direction: column; }
.hero__facts dt { font-family: var(--cond); font-weight: 700; font-size: 40px; line-height: 1; color: #fff; }
.hero__facts dd { margin: 6px 0 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #b3b8bd; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; }
.hero__scroll span { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: var(--signal);
  border-radius: 2px; transform: translateX(-50%); animation: scrollcue 1.6s var(--ease) infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,12px); } 100% { opacity: 0; } }

/* ---------- manifest ---------- */
.manifest__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-6); align-items: center; }
.manifest__text h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: var(--s-3); max-width: 16ch; }
.manifest__text p { color: var(--ink-soft); }
.creed { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.creed li { position: relative; padding: 14px 0 14px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.creed li:last-child { border-bottom: 1px solid var(--line); }
.creed__no, .creed__yes {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  margin-right: 10px; padding: 2px 9px; border-radius: var(--edge); font-size: 14px;
}
.creed__no { background: var(--graphite); color: #fff; }
.creed__yes { background: var(--signal); color: #fff; }
.manifest__media { margin: 0; position: relative; }
.manifest__media img { border-radius: var(--edge-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3/4; object-fit: cover; }
.manifest__media::before {
  content: ""; position: absolute; left: -16px; top: -16px; width: 70px; height: 70px;
  border-left: 4px solid var(--signal); border-top: 4px solid var(--signal); z-index: 2;
}
.manifest__media figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; letter-spacing: .02em; }

/* ---------- gear (асимметричная сетка) ---------- */
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: var(--s-3); }
.gcard {
  background: var(--graphite); color: #e9eaec; border-radius: var(--edge-lg); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gcard--feature { grid-row: span 2; grid-column: span 1; }
.gcard__media { overflow: hidden; aspect-ratio: 4/3; }
.gcard--feature .gcard__media { aspect-ratio: 3/4; flex: 1; }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); transition: transform .6s var(--ease), filter .4s var(--ease); }
.gcard:hover .gcard__media img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
.gcard__body { padding: var(--s-3) var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 10px; }
.gcard__index { font-family: var(--cond); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--signal-hi); }
.gcard__body h3 { font-size: 26px; color: #fff; line-height: 1.04; }
.gcard__body p { color: #adb3b9; font-size: 15px; margin: 0; }
.gcard__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.gcard__meta span:first-child { font-family: var(--cond); font-weight: 700; font-size: 20px; color: var(--signal); }
.gcard__meta span:last-child { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- field story (фон-фото) ---------- */
.field { position: relative; background-size: cover; background-position: center; background-attachment: fixed; }
.field__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,18,20,.92) 0%, rgba(16,18,20,.78) 48%, rgba(16,18,20,.45) 100%); }
.field__inner { position: relative; }
.field__text { max-width: 620px; color: #e9eaec; }
.field__text h2 { font-size: clamp(28px, 4.4vw, 52px); color: #fff; margin-bottom: var(--s-3); }
.field__text p { color: #c4c9ce; }
.field__quote {
  margin: var(--s-4) 0; padding: var(--s-3) var(--s-4); border-left: 4px solid var(--signal);
  background: rgba(255,255,255,.04); font-family: var(--cond); font-size: 22px; line-height: 1.25;
  text-transform: none; color: #fff; letter-spacing: .005em;
}
.field__quote cite { display: block; margin-top: var(--s-2); font-family: var(--sans); font-size: 14px; font-style: normal; color: var(--signal-hi); letter-spacing: .03em; }

/* ---------- lookbook (горизонтальная полоса) ---------- */
.lookbook { background: var(--graphite); color: #fff; padding-block: var(--s-7); overflow: hidden; }
.lookbook__head { margin-bottom: var(--s-4); }
.lookbook__head h2 { font-size: clamp(30px, 4.4vw, 52px); }
.lookbook__head .kicker { color: var(--signal-hi); }
.lookbook__strip {
  display: flex; gap: var(--s-3); overflow-x: auto; padding: 0 var(--s-4) var(--s-3);
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--signal) var(--graphite-3);
}
.lookbook__strip::-webkit-scrollbar { height: 8px; }
.lookbook__strip::-webkit-scrollbar-track { background: var(--graphite-3); }
.lookbook__strip::-webkit-scrollbar-thumb { background: var(--signal); border-radius: 4px; }
.look { margin: 0; flex: 0 0 320px; scroll-snap-align: start; position: relative; border-radius: var(--edge-lg); overflow: hidden; }
.look img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .6s var(--ease); }
.look:hover img { transform: scale(1.05); }
.look figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-4) var(--s-3) var(--s-3);
  background: linear-gradient(180deg, transparent, rgba(16,18,20,.92));
  display: flex; flex-direction: column; gap: 4px;
}
.look figcaption b { font-family: var(--cond); font-size: 21px; text-transform: uppercase; letter-spacing: .03em; }
.look figcaption span { font-size: 14px; color: #c4c9ce; }
.lookbook__note { margin: var(--s-3) auto 0; font-size: 14px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- drops / newsletter ---------- */
.drops { background: var(--signal); color: #fff; }
.drops__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-6); align-items: center; }
.drops__text h2 { font-size: clamp(28px, 4vw, 50px); color: #fff; margin-bottom: var(--s-2); max-width: 14ch; }
.drops__text p { color: #fff1ea; }
.drops .kicker { color: #fff; }
.drops .kicker::before { background: #fff; }
.drops__perks { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: 10px; }
.drops__perks li { position: relative; padding-left: 30px; font-weight: 600; }
.drops__perks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 9px;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
}
.signup { background: var(--graphite); border-radius: var(--edge-lg); padding: var(--s-4); box-shadow: var(--shadow-lg); }
.signup__lead { font-family: var(--cond); text-transform: uppercase; font-weight: 700; font-size: 22px; color: #fff; letter-spacing: .03em; margin: 0 0 var(--s-3); }
.signup__row { display: flex; gap: 10px; }
.signup input {
  flex: 1; min-width: 0; padding: 16px 18px; border-radius: var(--edge);
  border: 2px solid var(--line-dark); background: var(--graphite-2); color: #fff; font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.signup input::placeholder { color: #7d848c; }
.signup input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255,91,31,.3); }
.signup input.invalid { border-color: #ff5b5b; box-shadow: 0 0 0 3px rgba(255,91,91,.3); }
.signup .btn { flex: none; }
.signup__hint { font-size: 13px; color: #8d949b; margin: 14px 0 0; }
.signup__error { font-size: 14px; color: #ff8d72; margin: 14px 0 0; }
.signup__ok { font-size: 15px; color: #7ee0a0; margin: 14px 0 0; line-height: 1.5; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.review {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--edge-lg);
  padding: var(--s-4); border-top: 4px solid var(--signal); display: flex; flex-direction: column; gap: var(--s-2);
}
.review__rate { color: var(--signal); letter-spacing: 3px; font-size: 18px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.58; color: var(--ink); flex: 1; }
.review figcaption { font-size: 14px; color: var(--muted); letter-spacing: .02em; }

/* ---------- warranty / faq ---------- */
.warranty__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s-6); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-2) 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; font-family: var(--cond); font-size: 21px; text-transform: uppercase;
  letter-spacing: .01em; padding: 12px 40px 12px 0; position: relative; transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  background:
    linear-gradient(var(--signal),var(--signal)) center/100% 3px no-repeat,
    linear-gradient(var(--signal),var(--signal)) center/3px 100% no-repeat;
  transition: transform .28s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq summary:hover { color: var(--signal); }
.faq details p { color: var(--ink-soft); padding: 0 40px 12px 0; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: #adb3b9; padding-top: var(--s-7); }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1fr; gap: var(--s-5); padding-bottom: var(--s-6); }
.brand--light { color: #fff; }
.footer__brand p { margin-top: var(--s-3); font-size: 15px; max-width: 32ch; color: #8d949b; }
.footer__col h4 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--signal-hi); margin: 0 0 var(--s-2); }
.footer__col a, .footer__col p { display: block; font-size: 15px; color: #adb3b9; margin: 0 0 9px; transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__social a { display: inline; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-2);
  border-top: 1px solid var(--line-dark); padding-block: var(--s-3) var(--s-4); font-size: 14px; color: #7d848c;
}
.footer__bottom a:hover { color: var(--signal-hi); }

/* ---------- reveal-анимация ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .manifest__grid, .drops__inner, .warranty__inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .gcard--feature { grid-row: auto; grid-column: span 2; }
  .gcard--feature .gcard__media { aspect-ratio: 16/9; }
  .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .field { background-attachment: scroll; }
  .manifest__media { max-width: 420px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding-block: var(--s-6); }
  .wrap { padding-inline: var(--s-3); }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(22,24,26,.98); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark);
    padding: var(--s-2) var(--s-3) var(--s-3); transform: translateY(-130%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); margin: 0;
  }
  .site-header.menu-open .nav { transform: translateY(0); }
  .site-header:not(.scrolled).menu-open { background: rgba(22,24,26,.98); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-dark); font-size: 20px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .site-header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gear-grid { grid-template-columns: 1fr; }
  .gcard--feature { grid-column: auto; }
  .gcard--feature .gcard__media { aspect-ratio: 4/3; }
  .hero__facts { gap: var(--s-4); }
  .hero__facts dt { font-size: 32px; }
  .look { flex-basis: 78vw; }
  .signup__row { flex-direction: column; }
  .signup .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}

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