/* Fonts — self-hosted */
@font-face {
  font-family: 'Serpentin';
  font-display: swap;
  src: url('fonts/serpentin-bold-italic.woff2') format('woff2'),
       url('fonts/serpentin-bold-italic.otf') format('opentype');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-mono-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-mono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   PLUG — Design System
   Fonts: Most Wazted (h1 display), Serpentin Bold Italic (h2/h3), Space Mono (body)
   Accent: #FFE600 (warning yellow)
   ========================================================================== */

/* 1. Custom Properties */
:root {
  --bg:       #0A0A0A;
  --surface:  #131313;
  --border:   #2A2A2A;
  --yellow:   #FFE600;
  --yellow-dim: rgba(255, 230, 0, 0.10);
  --danger:   #FF2A00;
  --text:     #F2F2F2;
  --mono:     #888888;
  --font-stencil: 'Serpentin', cursive;
  --font-mono:    'Space Mono', monospace;
  --max-w: 1200px;
  --z-header: 100;
  --z-nav:    200;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* 3. Typography */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
}
h1 {
  font-family: var(--font-stencil);
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 5rem);
}
h2, h3, h4 {
  font-family: var(--font-stencil);
  font-style: italic;
}
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
p  { font-family: var(--font-mono); color: var(--mono); margin-bottom: 1rem; font-size: 0.875rem; line-height: 1.75; }

/* 4. Layout */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.grid-2     { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-4     { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--border); }
.text-center { text-align: center; }

/* 5. Warning Stripe */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    var(--yellow) 0px, var(--yellow) 8px,
    #0A0A0A      8px, #0A0A0A     16px
  );
}

/* 6. Header & Logo */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: inline-block;
  background: var(--yellow);
  color: #0A0A0A;
  font-family: var(--font-stencil);
  font-size: 1.5rem;
  padding: 0.3rem 0.75rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  line-height: 1;
}
.logo:hover { text-decoration: none; color: #0A0A0A; opacity: 0.9; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mono);
  transition: color 0.15s;
  text-decoration: none;
}
.nav__link:hover,
.nav__link--active { color: var(--yellow); text-decoration: none; }

.nav__toggle   { display: none; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform 0.15s, opacity 0.15s; }

@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    transform: translateX(100%);
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: var(--bg);
    padding: 2rem;
    gap: 2rem;
    transition: transform 0.15s ease;
    z-index: var(--z-nav);
    border-left: 1px solid var(--border);
  }
  .nav__link { font-size: 1.2rem; }
  .nav__toggle:checked ~ .nav { transform: translateX(0); }
  .nav__toggle:checked ~ .nav__hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle:checked ~ .nav__hamburger span:nth-child(2) { opacity: 0; }
  .nav__toggle:checked ~ .nav__hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* 7. Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--yellow);
  background: var(--yellow);
  color: #0A0A0A;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}
.btn:hover { background: #0A0A0A; color: var(--yellow); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.btn--ghost { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.btn--ghost:hover { background: var(--yellow); color: #0A0A0A; }

.btn--dim { background: transparent; color: var(--mono); border: 1px solid var(--border); }
.btn--dim:hover { border-color: var(--yellow); color: var(--yellow); }

/* 8. Hero */
.hero { padding: 0; }
.hero__body {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 0; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; flex-shrink: 0; }
.hero__phone {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.hero__phone:hover { text-decoration: none; opacity: 0.8; }

@media (max-width: 768px) {
  .hero__body { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .hero__actions { align-items: flex-start; }
}

/* 9. Products Grid & Price Rows */
.product-card {
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.product-card:hover { background: #181818; }
.product-card__volume { font-family: var(--font-stencil); font-size: 2.25rem; color: var(--text); margin-bottom: 0.5rem; line-height: 1; }
.product-card__desc { font-family: var(--font-mono); font-size: 0.8rem; color: var(--mono); flex: 1; margin-bottom: 1.25rem; line-height: 1.65; }

.price-rows { margin-bottom: 1.5rem; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: none; }
.price-row__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mono); }
.price-row__val { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; }
.price-row__val--sale     { color: var(--yellow); }
.price-row__val--exchange { color: var(--text); }

.product-card__actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.product-card__actions .btn { width: 100%; }

/* 10. Benefits Strip */
.benefits { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.benefits__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.benefit { padding: 2rem 1.5rem; border-right: 1px solid var(--border); }
.benefit:last-child { border-right: none; }
@media (max-width: 600px) {
  .benefit { border-right: none; border-bottom: 1px solid var(--border); }
  .benefit:last-child { border-bottom: none; }
}
.benefit__num { font-family: var(--font-stencil); font-size: 2.5rem; color: var(--yellow); line-height: 1; margin-bottom: 0.4rem; }
.benefit__title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 0.25rem; }
.benefit__text { font-family: var(--font-mono); font-size: 0.78rem; color: var(--mono); margin: 0; }

/* 11. Phone CTA */
.cta-phone { background: var(--yellow); padding: 5rem 2rem; text-align: center; }
.cta-phone h2 { color: #0A0A0A; margin-bottom: 0.75rem; }
.cta-phone p  { color: rgba(10,10,10,0.6); font-size: 0.875rem; margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-phone__number {
  display: block;
  font-family: var(--font-stencil);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #0A0A0A;
  margin-bottom: 1.5rem;
  text-decoration: none;
  line-height: 1;
}
.cta-phone__number:hover { text-decoration: none; opacity: 0.7; }
.cta-phone__btn { background: #0A0A0A; color: var(--yellow); border-color: #0A0A0A; }
.cta-phone__btn:hover { background: transparent; color: #0A0A0A; }

/* 12. Blog Cards */
.blog-card { background: var(--surface); border: 1px solid var(--border); padding: 1.5rem; transition: border-color 0.15s; }
.blog-card:hover { border-color: var(--yellow); }
.blog-card__date { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mono); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--yellow); text-decoration: none; }
.blog-card__excerpt { font-size: 0.82rem; margin-bottom: 1rem; }
.blog-card__link { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }

/* 13. FAQ Accordion */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); margin-bottom: 0.4rem; }
.faq summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.2rem; color: var(--yellow); flex-shrink: 0; margin-left: 1rem; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 1.25rem 1rem; font-size: 0.875rem; }

/* 14. Breadcrumbs */
.breadcrumbs { padding: 1rem 0 0; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.breadcrumbs a { color: var(--mono); }
.breadcrumbs a:hover { color: var(--yellow); text-decoration: none; }
.breadcrumbs span { color: var(--border); margin: 0 0.4rem; }
.breadcrumbs__current { color: var(--text); }

/* 15. Footer */
.footer { border-top: 1px solid var(--border); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer__title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mono); margin-bottom: 1rem; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { font-family: var(--font-mono); color: var(--mono); font-size: 0.85rem; transition: color 0.15s; }
.footer__links a:hover { color: var(--yellow); text-decoration: none; }
.footer__phone { font-family: var(--font-stencil); font-size: 1.2rem; color: var(--yellow); text-decoration: none; }
.footer__copy { text-align: center; font-family: var(--font-mono); color: var(--mono); font-size: 0.72rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* 16. Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 769px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__image {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.product-detail__image-vol { font-family: var(--font-stencil); font-size: 7rem; color: var(--yellow); line-height: 1; opacity: 0.7; text-align: center; }
.product-detail__info { padding: 2rem; border: 1px solid var(--border); border-left: none; }
@media (max-width: 768px) { .product-detail__info { border-left: 1px solid var(--border); border-top: none; } }
.product-detail__info h1 { margin-bottom: 1rem; }
.product-detail__price { font-family: var(--font-stencil); font-size: 2.5rem; color: var(--yellow); margin-bottom: 0.5rem; line-height: 1; }
.product-detail__features { margin: 1.5rem 0; }
.product-detail__features li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.875rem; color: var(--mono); }
.product-detail__features li::before { content: '// '; color: var(--yellow); }
.product-detail__actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.product-detail__actions .btn { text-align: center; }

/* 17. Article / Blog */
.article { max-width: 800px; margin: 0 auto; }
.article h1 { margin-bottom: 0.5rem; }
.article__meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mono); margin-bottom: 2.5rem; }
.article h2 { margin-top: 2rem; }
.article p  { font-size: 0.95rem; line-height: 1.85; }
.article ul, .article ol { margin: 1rem 0 1rem 1.5rem; list-style: disc; }
.article li { font-family: var(--font-mono); color: var(--mono); margin-bottom: 0.5rem; font-size: 0.95rem; }
.article__related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* 18. Delivery */
.delivery-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border: 1px solid var(--border); }
.delivery-card { background: var(--surface); border-right: 1px solid var(--border); padding: 2rem; }
.delivery-card:last-child { border-right: none; }
.delivery-card__icon  { font-size: 2rem; margin-bottom: 1rem; display: block; }
.delivery-card__title { font-family: var(--font-stencil); font-size: 1.1rem; color: var(--text); margin-bottom: 0.75rem; }

/* 19. Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 0; align-items: start; }
@media (min-width: 769px) { .contacts-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { margin-bottom: 1.5rem; }
.contact-item__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mono); margin-bottom: 0.25rem; }
.contact-item__value { font-family: var(--font-mono); font-size: 1rem; color: var(--text); }

/* 20. 404 */
.not-found { text-align: center; padding: 8rem 0; }
.not-found__code { font-family: var(--font-stencil); font-size: clamp(6rem, 20vw, 12rem); color: var(--yellow); line-height: 1; margin-bottom: 1rem; opacity: 0.5; }

/* 21. Section Title */
.section-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* 22. Utilities */
.accent  { color: var(--yellow); }
.muted   { color: var(--mono); }
.surface { background: var(--surface); border: 1px solid var(--border); }

/* 23. Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 24. Mobile — improvements */
@media (max-width: 768px) {
  /* Vertical rhythm */
  .section        { padding: 2.5rem 0; }
  .footer         { padding: 2rem 0 1.5rem; margin-top: 1.5rem; }
  .cta-phone      { padding: 3rem 1.5rem; }

  /* Hero */
  .hero__body     { padding: 2rem 0; }
  .hero__phone    { font-size: 1.1rem; }
  .hero__actions  { width: 100%; }
  .hero__actions .btn { width: 100%; text-align: center; }

  /* Benefits */
  .benefit        { padding: 1.5rem 1rem; }
  .benefit__num   { font-size: 2rem; }

  /* Products */
  .product-card   { padding: 1.25rem; }
  .product-card__volume { font-size: 1.75rem; }

  /* Product detail */
  .product-detail__image    { min-height: 160px; padding: 2rem 1rem; }
  .product-detail__image-vol { font-size: 4.5rem; }
  .product-detail__info     { padding: 1.25rem; }

  /* Blog */
  .blog-card { padding: 1.25rem; }

  /* Footer: 2 колонки */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  /* One column footer on very small screens */
  .footer__grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Reduce container horizontal padding */
  .container { padding: 0 1rem; }

  /* CTA phone number */
  .cta-phone__number { font-size: clamp(1.8rem, 8vw, 2.5rem); }

  /* Section title: hide line on narrow screens */
  .section-title::after { display: none; }

  /* Product cards: remove redundant right border in 1-col layout */
  .product-card { border-right: none; border-bottom: 1px solid var(--border); }
  .product-card:last-child { border-bottom: none; }
  .grid-4 { border: none; }
}

/* === Сертификаты === */
.certs { border-top: 1px solid var(--border); }
.certs__lead { color: var(--mono); font-family: var(--font-mono); font-size: .875rem; margin-bottom: 1.5rem; }
.certs__codes { list-style: none; margin-bottom: 2rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.certs__codes li { font-family: var(--font-mono); font-size: .8rem; color: var(--mono); }
.certs__codes li span { color: var(--yellow); font-weight: 700; }
.certs__images { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.certs__img { width: 220px; height: auto; border: 1px solid var(--border); background: #fff; }

/* === Дисклеймер в футере === */
.footer__disclaimer {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--mono);
  line-height: 1.8;
}
