/* ============ ERGON — вариант «Ночной премиум» ============ */

:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --panel: rgba(255, 255, 255, .03);
  --line: rgba(255, 255, 255, .13);
  --line-soft: rgba(255, 255, 255, .08);
  --text: #f2f2f0;
  --dim: rgba(242, 242, 240, .62);
  --dimmer: rgba(242, 242, 240, .42);
  --amber: #e0862f;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 48px);
  --fast: 220ms cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: #0b0b0d; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 38px;
  border: 1px solid rgba(242,242,240,.75);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.btn:hover { background: var(--amber); border-color: var(--amber); color: #0b0b0d; }
.btn:active { transform: translateY(1px); }

.btn-ghost { border-color: rgba(242,242,240,.28); color: var(--dim); }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: #0b0b0d; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-grid { display: flex; align-items: center; gap: 24px; min-height: 74px; }

.brand { text-decoration: none; margin-right: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: .38em;
  text-transform: uppercase;
}
.brand-word i { font-style: normal; color: var(--amber); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 13.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--dim);
  transition: color var(--fast);
}
.main-nav a:hover { color: var(--text); }

.header-phone {
  text-decoration: none;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  color: var(--text);
  transition: border-color var(--fast), color var(--fast);
}
.header-phone:hover { border-color: var(--amber); color: var(--amber); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 13px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--text); transition: transform var(--fast); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; }

.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,11,13,.94) 4%, rgba(11,11,13,.72) 38%, rgba(11,11,13,.18) 75%),
              linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}

.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 7vw, 90px); }

.kicker { color: var(--amber); margin: 0 0 26px; }

.hero h1 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(54px, 8.4vw, 116px);
  line-height: .98;
  letter-spacing: .005em;
  background: linear-gradient(178deg, #ffffff 22%, #b7bac0 48%, #787d85 64%, #e8eaee 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 b { font-weight: 600; }

.lead { margin: 0 0 40px; max-width: 50ch; font-size: 17px; color: var(--dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(11,11,13,.45);
  backdrop-filter: blur(8px);
}
.stat { padding: 24px var(--pad) 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat dt { color: var(--dimmer); margin-bottom: 8px; }
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- manifest ---------- */
.manifest { border-block: 1px solid var(--line-soft); padding-block: clamp(56px, 8vw, 110px); }
.manifest-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.35;
  max-width: 30ch;
}
.manifest-text::before { content: "— "; color: var(--amber); }
.manifest-sign { color: var(--dimmer); margin: 26px 0 0; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-tinted { background: var(--bg-2); }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-label { color: var(--dimmer); margin: 0; }
.section-label::after { content: ""; display: block; width: 56px; height: 1px; background: var(--amber); margin-top: 14px; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.about-grid h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.about-body p { margin: 0 0 18px; color: var(--dim); font-size: 16.5px; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.principle { padding: clamp(22px, 3vw, 36px) clamp(20px, 2.5vw, 36px) 8px 0; border-left: 1px solid var(--line); padding-left: clamp(20px, 2.5vw, 36px); }
.principle:first-child { border-left: none; padding-left: 0; }
.p-num { color: var(--amber); margin: 0 0 14px; }
.principle h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.principle p { margin: 0; color: var(--dim); font-size: 15px; max-width: 34ch; }

/* ---------- image band ---------- */
.band { margin: 0; position: relative; }
.band img { width: 100%; height: clamp(300px, 52vh, 560px); object-fit: cover; }
.band figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 0;
  background: linear-gradient(0deg, rgba(11,11,13,.8), transparent);
  color: var(--dim);
}

/* ---------- products ---------- */
.product-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line-soft);
}
.product-row:first-of-type { border-top: none; }
.product-row figure { margin: 0; border: 1px solid var(--line); }
.product-row figure img { filter: saturate(.85); }

.product-info h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.product-info > p { max-width: 56ch; color: var(--dim); }

.product-code {
  margin: 20px 0 0;
  color: var(--dimmer);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-block;
  padding: 9px 18px;
}

.product-note {
  margin-top: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--panel);
}
.product-note p { margin: 0; max-width: 58ch; color: var(--dim); }
.product-note .mono { color: var(--amber); margin-right: 10px; }

/* ---------- quality ---------- */
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.quality-item { border-top: 1px solid var(--line); padding-top: 22px; }
.q-num { color: var(--amber); margin: 0 0 14px; }
.quality-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 23px);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.quality-item p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* ---------- partners ---------- */
.partners-intro p { max-width: 62ch; color: var(--dim); margin: 0; font-size: 17px; }

.partners-grid {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.partners-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--dim);
  transition: color var(--fast), background var(--fast);
}
.partners-grid li:hover { color: var(--amber); }

.partners-wholesale {
  margin-top: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px var(--pad);
  background: var(--panel);
}
.partners-wholesale > .mono { color: var(--amber); margin: 0 0 10px; }
.partners-wholesale p { max-width: 74ch; margin: 0; color: var(--dim); }
.partners-wholesale a { color: var(--text); text-decoration-color: var(--amber); }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.reviews-grid blockquote {
  margin: 0;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 40px) 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.reviews-grid blockquote:first-child { border-left: none; padding-left: 0; }
.reviews-grid blockquote:nth-child(2) { padding-left: clamp(20px, 3vw, 40px); }
.reviews-grid blockquote:nth-child(3) { padding-left: clamp(20px, 3vw, 40px); }
.reviews-grid p { margin: 0; font-size: 16px; color: var(--text); font-weight: 300; }
.reviews-grid footer { color: var(--dimmer); }

/* ---------- contacts ---------- */
.section-contacts { background: var(--bg-2); border-top: 1px solid var(--line-soft); }

.contacts-grid { display: grid; grid-template-columns: 1.1fr 1fr .9fr; gap: clamp(28px, 4vw, 64px); }

.contact-label { color: var(--amber); margin: 0 0 20px; }
.contacts-block address { font-style: normal; }
.contacts-block p { color: var(--dim); }
.contacts-name { color: var(--text) !important; font-weight: 400; font-size: 17px; }

.contacts-phone, .contacts-phone a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
  margin: 0 0 8px;
  line-height: 1.15;
}
.contacts-phone a:hover { color: var(--amber); }

.contacts-mail a {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 25px);
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.contacts-mail a:hover { color: var(--amber); border-color: var(--amber); }

.contacts-hours {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  color: var(--text) !important;
  margin: 0 0 18px;
}
.contacts-dim { font-size: 14.5px; max-width: 30ch; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand .brand-word { font-size: 26px; }
.footer-brand p { color: var(--dimmer); margin: 12px 0 0; font-size: 14px; max-width: 32ch; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--text); }

.footer-meta { text-align: right; color: var(--dimmer); }
.footer-meta p { margin: 0 0 6px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 450ms ease-out, transform 450ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-bottom: 28px; }
  .principle:first-child { border-top: none; }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-grid blockquote { border-left: none; border-top: 1px solid var(--line); padding-left: 0 !important; padding-bottom: 32px; }
  .reviews-grid blockquote:first-child { border-top: none; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-block { border-top: 1px solid var(--line); padding-top: 28px; }
  .contacts-block:first-child { border-top: none; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11,11,13,.97);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { min-height: 48px; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .product-row { grid-template-columns: 1fr; }
  .product-row figure { max-width: 440px; }
  .hero h1 { font-size: clamp(46px, 13vw, 72px); }
}

@media (max-width: 520px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 1ms; }
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  width: min(400px, calc(100vw - 32px));
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--fast), transform var(--fast);
}
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0 0 10px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-cookie {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast), filter var(--fast);
}

.cookie-banner {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cookie-text { color: var(--dim); }
.btn-cookie { border-radius: 999px; border: 1px solid transparent; }
.btn-cookie.accept { background: var(--amber); color: #0b0b0d; }
.btn-cookie.accept:hover { filter: brightness(1.12); }
.btn-cookie.decline { background: transparent; border-color: var(--line); color: var(--dim); }
.btn-cookie.decline:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }

/* ---------- brand logo ---------- */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; }
.brand-logo { display: block; height: 30px; width: auto; }
.brand-caption {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.footer-brand .brand-logo { height: 40px; }
