/* =========================================================
   КЖДС — design tokens
   ========================================================= */
:root {
  --paper:        #F2F0E9;
  --paper-dim:     #E7E4D9;
  --ink:           #1B1E22;
  --ink-soft:      #52585F;
  --copper:        #C2662E;
  --copper-dark:   #9A4E22;
  --navy:          #101B30;
  --navy-soft:     #1B2A46;
  --teal:          #2F6B63;
  --line:          rgba(27, 30, 34, 0.14);
  --line-dark:     rgba(242, 240, 233, 0.16);

  --display: 'Oswald', sans-serif;
  --body:    'IBM Plex Sans', sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

/* faint texture overlay, purely decorative */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: radial-gradient(circle, #000 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--copper);
  color: #FCF9F3;
}
.btn-primary:hover { background: var(--copper-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; margin-top: 8px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 240, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark { color: var(--copper); display: flex; }
.logo-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.03em;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.logo-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: none;
  margin-top: 4px;
}
.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--copper);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  font-family: var(--mono);
  font-size: 14px;
  display: none;
}
@media (min-width: 900px) { .header-phone { display: inline; } }

.burger {
  display: none;
  width: 34px; height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =========================================================
   Eyebrow / section head
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
}
.eyebrow-dark { color: var(--copper); }
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); }
.section-note { font-family: var(--mono); font-size: 13px; margin-top: 8px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 17px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 44px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats dt {
  font-family: var(--display);
  font-size: 30px;
  color: var(--copper);
  margin: 0;
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 120px;
}

.hero-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.cable-diagram { width: 100%; height: 100%; }
.cable-diagram .ring, .cable-diagram .core {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.55;
  transition: stroke 0.35s ease, opacity 0.35s ease, stroke-width 0.35s ease;
}
.cable-diagram .core { fill: var(--copper); stroke: none; opacity: 1; }
.cable-diagram .hatch-core line { stroke: var(--paper); stroke-width: 1.2; }
.cable-diagram .ring.active {
  stroke: var(--copper);
  opacity: 1;
  stroke-width: 1.6;
}
.cable-diagram .leader line {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.25;
  transition: opacity 0.3s ease, stroke 0.3s ease;
}
.cable-diagram .leader circle { fill: var(--ink); opacity: 0.25; transition: opacity 0.3s ease, fill 0.3s ease; }
.cable-diagram .leader.active line,
.cable-diagram .leader.active circle { stroke: var(--copper); fill: var(--copper); opacity: 1; }

.diagram-label {
  position: absolute;
  transform: translate(-0%, -50%);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 150px;
  line-height: 1.3;
  opacity: 0.55;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.diagram-label.active { opacity: 1; color: var(--ink); }
.lbl-index {
  display: block;
  color: var(--copper);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* =========================================================
   About
   ========================================================= */
.about {
  background: var(--navy);
  color: var(--paper);
  padding: 96px 0;
}
.about .eyebrow { color: var(--copper); }
.about h2 { color: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.about-text p { color: rgba(242,240,233,0.72); font-size: 16px; }
.why-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--copper); margin-top: 2px; }
.why-list h3 {
  font-size: 14.5px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper);
  margin-bottom: 4px;
}
.why-list p { font-size: 13.5px; color: rgba(242,240,233,0.6); margin: 0; }

/* =========================================================
   Catalog
   ========================================================= */
.catalog { padding: 96px 0; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-card {
  background: var(--paper);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s ease;
}
.product-card:hover { background: var(--paper-dim); }
.product-card svg {
  width: 40px; height: 40px;
  color: var(--copper);
}
.product-card h3 {
  font-size: 15px;
  letter-spacing: 0.01em;
  margin: 0;
}
.product-card .tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  text-transform: none;
}
.product-card-link { position: relative; cursor: pointer; }
.card-more {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.product-card-link:hover .card-more { opacity: 1; transform: translateY(0); }
.product-card-link:hover h3 { color: var(--copper-dark); }

/* =========================================================
   Partners
   ========================================================= */
.partners { padding: 96px 0; }
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.partner-block {
  background: var(--paper);
  padding: 44px;
}
.partner-block h3 {
  font-size: 19px;
  margin-bottom: 14px;
}
.partner-note { font-size: 14px; }
.plate-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.plate-list li {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.plate-list li:last-child { border-bottom: 1px solid var(--line); }

.partner-block-dark {
  background: var(--navy);
  color: var(--paper);
}
.partner-block-dark h3 { color: var(--paper); }
.partner-block-dark .partner-note { color: rgba(242,240,233,0.65); }
.plate-list-dark li { border-color: var(--line-dark); color: rgba(242,240,233,0.85); }

/* =========================================================
   Contacts
   ========================================================= */
.contacts { padding: 96px 0 110px; }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.warehouse-list {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: none;
}
.warehouse-list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.warehouse-list li:last-child { border-bottom: 1px solid var(--line); }
.wh-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--copper);
  flex-shrink: 0;
}
.warehouse-list h3 { font-size: 16px; margin-bottom: 2px; }
.warehouse-list p { font-size: 13.5px; margin: 0; }

.contact-card {
  background: var(--ink);
  color: var(--paper);
  padding: 40px;
  border-radius: 2px;
}
.contact-hours {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(242,240,233,0.6);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
}
.contact-row a, .contact-row span { font-size: 15px; }
.contact-row a { transition: color 0.15s ease; }
.contact-row a:hover { color: var(--copper); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(242,240,233,0.75);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo-text { color: var(--paper); }
.footer-brand .logo-sub { color: rgba(242,240,233,0.5); }
.footer-brand p { font-size: 13px; margin-top: 12px; color: rgba(242,240,233,0.5); }
.footer-nav, .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-nav a:hover, .footer-contacts a:hover { color: var(--copper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(242,240,233,0.4);
}
.to-top {
  background: none;
  border: none;
  color: inherit;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}
.to-top:hover { color: var(--copper); }

/* =========================================================
   Catalog detail / article pages
   ========================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 28px 0 0;
}
.breadcrumb a { color: var(--ink-soft); transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--copper); }
.breadcrumb span { color: var(--ink-soft); opacity: 0.5; }
.breadcrumb .current { color: var(--ink); }

.article-hero { padding: 28px 0 64px; }
.article-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 780px;
  line-height: 1.08;
}
.article-lede {
  font-size: 17px;
  max-width: 620px;
}

.article-body { padding-bottom: 96px; }
.article-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
}
.article-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.article-toc a {
  color: var(--ink-soft);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.article-toc a:hover { color: var(--copper); border-color: var(--copper); }

.article-section { margin-bottom: 56px; scroll-margin-top: 100px; }
.article-section h2 {
  font-size: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.article-section p { font-size: 15.5px; max-width: 720px; }
.article-section ul {
  margin: 0 0 1em;
  padding-left: 20px;
}
.article-section li { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 6px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.spec-card { background: var(--paper); padding: 26px 28px; }
.spec-card h3 {
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: var(--copper-dark);
}
.spec-card p { font-size: 14px; margin: 0; }
.spec-card .spec-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 10px;
}

.split-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.split-card { background: var(--paper); padding: 26px 28px; }
.split-card h3 { font-size: 15px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.split-card p { font-size: 14px; margin: 0; }

.cta-banner {
  margin-top: 24px;
  background: var(--navy);
  color: var(--paper);
  padding: 44px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: var(--paper); font-size: 20px; margin-bottom: 6px; }
.cta-banner p { color: rgba(242,240,233,0.65); margin: 0; font-size: 14px; }

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table thead th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-dim);
  border-bottom: 1px solid var(--line);
}
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table td:first-child, .spec-table th:first-child {
  font-family: var(--mono);
  color: var(--copper-dark);
  white-space: nowrap;
}
.spec-table td:nth-child(2) { white-space: nowrap; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}
.back-link:hover { color: var(--copper); }

@media (max-width: 860px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
  }
  .article-toc a { border-left: none; padding-left: 0; }
  .spec-grid, .split-card-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-phone { display: none !important; }
  .burger { display: flex; }
  .why-list { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .diagram-label { max-width: 110px; font-size: 11px; }
  .wrap { padding: 0 20px; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 24px;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}
