/* ============================================================
   Интеко АГ — PHP site stylesheet
   Design: modern corporate, 1C-style yellow accent (#FFD500)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --accent:        #FFD500;   /* 1C yellow */
  --accent-hover:  #FFE14D;
  --accent-deep:   #D9A800;
  --accent-ink:    #8F6B00;   /* yellow-toned text on white (AA contrast) */
  --accent-ink-h:  #6E5200;
  --accent-bg:     #FFF9E0;
  --accent-border: #F1DC7A;
  --accent-glow-1: rgba(255, 213, 0, 0.14);
  --accent-glow-2: rgba(240, 192, 0, 0.09);

  --ink:        #18181B;
  --ink-soft:   #3F3F46;
  --ink-muted:  #71717A;
  --ink-faint:  #A1A1AA;
  --line:       #E4E4E7;
  --line-soft:  #F1F1F3;
  --bg:         #FFFFFF;
  --bg-soft:    #FAFAF9;

  --dark:       #09090B;
  --dark-2:     #131316;
  --dark-line:  rgba(255, 255, 255, 0.09);

  --radius:     16px;
  --radius-sm:  10px;
  --font:       'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Buttons / chips / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0 1.25rem;
  height: 3rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-lg { height: 3rem; padding: 0 1.5rem; }
.btn-accent {
  background: var(--accent);
  color: var(--ink);
}
.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(255, 213, 0, 0.35);
  transform: translateY(-1px);
}
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #E4E4E7;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 700;
  transition: color 0.15s;
}
.text-link:hover { color: var(--accent-ink-h); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: #fff;
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--accent-border); color: var(--accent-ink); }
.chip-ic { color: var(--ink-faint); }
.chip:hover .chip-ic { color: var(--accent-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.eyebrow-dark { color: var(--accent-ink); }
.eyebrow-dark::before { background: var(--accent-ink); }

/* ============================================================
   Header / navbar
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}

.brand img { height: 36px; width: auto; }

.main-nav { margin-left: auto; display: none; align-items: center; gap: 0.25rem; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--line-soft); color: var(--ink); }
.nav-link.is-active { background: var(--accent-bg); color: var(--accent-ink); }
.caret { transition: transform 0.18s; }

.nav-products { position: relative; }
.nav-products:hover .caret,
.nav-products:focus-within .caret { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 704px;
  max-width: calc(100vw - 3rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(9, 9, 11, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 110;
}
.nav-products:hover .mega,
.nav-products:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mega-col:first-child { border-right: 1px solid var(--line-soft); }

.mega-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 1rem 1rem 0.5rem;
}

.mega-list { max-height: 352px; overflow-y: auto; padding: 0 0.5rem 0.75rem; }
.mega-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-muted);
  transition: background 0.13s, color 0.13s;
}
.mega-item:hover { background: var(--line-soft); color: var(--ink); }
.mega-item.is-current { background: var(--accent-bg); color: var(--accent-ink); }
.mega-item .num { font-size: 10px; color: var(--ink-faint); margin-top: 3px; }
.mega-item:hover .num { color: var(--accent-deep); }

.mega-onec { padding: 0.25rem 1rem 1rem; }
.mega-onec li {
  font-size: 0.875rem;
  color: var(--ink-muted);
  padding: 0.35rem 0;
}

.mega-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line-soft);
  background: #FAFAF9;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.mega-footer a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.mega-footer a:hover { color: var(--accent-ink); }

.header-contacts { display: none; align-items: center; gap: 0.5rem; }

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: border-color 0.15s, color 0.15s;
}
.contact-chip:hover { border-color: var(--accent-border); color: var(--accent-ink); }
.contact-chip-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.contact-chip-dark:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.menu-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

/* Mobile nav */
.mobile-nav {
  display: block;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.mobile-nav.is-open { max-height: 80vh; overflow-y: auto; }
.mobile-nav > * { min-width: 0; }

.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}
.m-link:hover { background: var(--line-soft); }
.m-link.is-active { color: var(--accent-ink); background: var(--accent-bg); }

.m-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.22s ease; }
.m-accordion-body.is-open { max-height: 60vh; overflow-y: auto; }
.m-sublink {
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem 0.55rem 2rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-muted);
}
.m-sublink:hover { background: var(--line-soft); }
.m-sublink.is-active { background: var(--accent-bg); color: var(--accent-ink); }
.m-sublink .num { font-size: 10px; color: var(--ink-faint); margin-top: 3px; }

.m-contacts {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line-soft);
}
.m-contacts .contact-chip { flex: 1; justify-content: center; }

/* ============================================================
   Hero (dark)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  padding: 4rem 0 5rem;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 75% 20%, var(--accent-glow-1), transparent 70%),
    radial-gradient(500px 260px at 15% 85%, var(--accent-glow-2), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: end;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 213, 0, 0.35);
  background: rgba(255, 213, 0, 0.1);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
}
.hero-dot { color: var(--accent); }

.hero-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #A1A1AA;
}

.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Contact card */
.hero-card {
  position: relative;
  border: 1px solid var(--dark-line);
  background: rgba(24, 24, 27, 0.7);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #71717A;
}
.hero-card-list { margin-top: 1rem; display: grid; gap: 0.85rem; }
.hero-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #D4D4D8;
  transition: color 0.15s;
}
a.hero-contact:hover { color: var(--accent); }
.hero-contact-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--dark-line);
  background: rgba(39, 39, 42, 0.6);
  color: var(--accent);
  flex: none;
}
.truncate { overflow-wrap: anywhere; }

/* Stats */
.hero-stats {
  position: relative;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
}
.stat { background: rgba(24, 24, 27, 0.85); padding: 1.25rem 1.5rem; }
.stat-value { font-size: 1.25rem; font-weight: 600; color: var(--accent); margin: 0 0 0.25rem; }
.stat-label { font-size: 0.75rem; line-height: 1.4; color: #71717A; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 5rem 0; }
.section-light { background: #fff; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.section-title {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 2.5rem 0 1.25rem;
}
.group-label:first-of-type { margin-top: 0; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 32px rgba(217, 168, 0, 0.12);
}
.service-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--accent);
  margin-bottom: 1rem;
  transition: background 0.18s, color 0.18s;
}
.service-card:hover .service-ic { background: var(--accent); color: var(--ink); }

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 20px 40px rgba(217, 168, 0, 0.14);
}
.product-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 11px;
  font-weight: 500;
  color: #D4D4D8;
  transition: color 0.15s;
}
.product-card:hover .product-num { color: var(--accent-deep); }
.product-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--accent-ink);
  margin-bottom: 1.25rem;
  transition: background 0.18s, color 0.18s;
}
.product-card:hover .product-ic { background: var(--accent); color: var(--ink); }
.product-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.product-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  background: var(--line-soft);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.product-more {
  margin-top: auto;
  padding-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-faint);
  transition: color 0.15s;
}
.product-card:hover .product-more { color: var(--accent-ink); }

/* 1C chips */
.onec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.onec-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.15s;
}
.onec-chip:hover { border-color: var(--accent-border); }
.onec-ic { color: var(--accent-deep); }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  padding: 5rem 0;
}
.cta-inner { position: relative; text-align: center; max-width: 42rem; margin: 0 auto; }
.cta-title { margin-top: 1rem; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.cta-lead { margin-top: 1rem; color: #A1A1AA; line-height: 1.7; }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ============================================================
   Inner pages
   ============================================================ */
.page-header {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 4rem;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(9, 9, 11, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.page-header .container { position: relative; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.75rem; color: var(--ink-muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li + li::before { content: '›'; color: #D4D4D8; }
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

.page-title {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-body { padding: 3.5rem 1.25rem; max-width: 80rem; margin: 0 auto; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-wide { margin-top: 1.5rem; padding: 2rem; }
.card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--accent);
  margin-bottom: 1rem;
}
.card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-title-wide { max-width: 52rem; line-height: 1.45; margin-bottom: 1.5rem; }
.card-note { font-size: 0.75rem; line-height: 1.6; color: var(--ink-muted); margin: 0.5rem 0; }
.card-note-bordered { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }

/* Company page */
.company-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }

.main-activity { margin-top: 1rem; display: grid; gap: 0.5rem; }
.main-activity li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--accent-bg);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-ink-h);
  line-height: 1.45;
}
.main-activity .icon { color: var(--accent-deep); margin-top: 2px; }

.okved-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.okved-grid li {
  background: #FAFAF9;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.okved-code { display: block; font-size: 11px; font-weight: 600; color: var(--accent-ink); margin-bottom: 0.2rem; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 2rem;
}
.check-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.check-grid .icon { color: var(--accent-deep); margin-top: 3px; }

/* Price page */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 600px; margin: 2rem auto; }
.price-text { font-size: 1rem; line-height: 1.75; color: var(--ink-muted); margin-bottom: 1rem; }
.price-text:last-child { margin-bottom: 0; }

.price-card {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-radius: var(--radius);
  color: #fff;
  padding: 2rem;
}
.price-card-inner { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 240px; }
.price-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-value { margin-top: 1rem; font-size: clamp(2.25rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.price-unit { font-size: 1.25rem; font-weight: 600; color: #A1A1AA; margin-left: 0.5rem; }
.price-desc { margin-top: 1rem; font-size: 0.875rem; line-height: 1.65; color: #A1A1AA; }
.price-link {
  margin-top: auto;
  padding-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  transition: color 0.15s;
}
.price-link:hover { color: var(--accent-hover); }

/* Stack page */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stack-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 32px rgba(217, 168, 0, 0.12);
}
.stack-label {
  margin-top: 1.25rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.stack-value { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 700; line-height: 1.4; }

/* Product page */
.product-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent-ink); }
.product-top-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mini-link {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: border-color 0.15s, color 0.15s;
}
.mini-link:hover { border-color: var(--accent-border); color: var(--accent-ink); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.product-main > .card + .card { margin-top: 1.5rem; }

.docs-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.doc-item:hover { border-color: var(--accent-border); background: #FFFDF2; }
.doc-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--accent);
  flex: none;
}
.doc-label { font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--ink-soft); }
.doc-item:hover .doc-label { color: var(--accent-ink-h); }
.doc-arrow { margin-left: auto; color: #D4D4D8; transition: color 0.15s, transform 0.15s; }
.doc-item:hover .doc-arrow { color: var(--accent-deep); transform: translateX(2px); }

.registry { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); display: grid; gap: 0.5rem; }
.registry p {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.registry .icon { color: var(--accent-deep); margin-top: 2px; }

.features-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}
.features-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.features-grid .icon { color: var(--accent-deep); margin-top: 3px; }

.sub-features { margin-top: 1.25rem; background: #FAFAF9; border-radius: 12px; padding: 1.25rem; }
.sub-parent { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); }
.sub-parent .icon { color: var(--accent-deep); margin-top: 3px; }
.sub-features ul {
  margin: 0.75rem 0 0 1.75rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-border);
  display: grid;
  gap: 0.5rem;
}
.sub-features ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.sub-features ul .icon { color: var(--accent-deep); margin-top: 3px; }

/* Sidebar */
.product-aside { position: sticky; top: 88px; display: grid; gap: 1.5rem; }
.aside-card { padding: 1.25rem; }
.aside-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.aside-list { margin-top: 0.75rem; max-height: 384px; overflow-y: auto; padding-right: 4px; }
.aside-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-muted);
  transition: background 0.13s, color 0.13s;
}
.aside-item:hover { background: var(--line-soft); color: var(--ink); }
.aside-item .num { font-size: 10px; color: var(--ink-faint); margin-top: 3px; }

.consult-card {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-radius: var(--radius);
  color: #fff;
  padding: 1.5rem;
}
.consult-inner { position: relative; }
.consult-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.consult-text { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.65; color: #D4D4D8; }
.consult-contacts { margin-top: 1.25rem; display: grid; gap: 0.65rem; }
.consult-contacts a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #D4D4D8;
  transition: color 0.15s;
  overflow-wrap: anywhere;
}
.consult-contacts a:hover { color: var(--accent); }
.consult-contacts .icon { color: var(--accent); }

/* 404 */
.nf-code { font-size: 3rem; font-weight: 700; color: var(--accent-deep); }
.nf-text { margin-top: 0.5rem; color: var(--ink-muted); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark); color: #A1A1AA; margin-top: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3.5rem 1.25rem 0;
}
.footer-logo {
  display: inline-flex;
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem 1rem;
}
.footer-logo img { height: 30px; width: auto; }
.footer-name { margin-top: 1rem; font-size: 0.875rem; font-weight: 700; color: #E4E4E7; }
.footer-tagline { margin-top: 0.25rem; font-size: 0.875rem; }
.footer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #71717A;
}
.footer-contacts { margin-top: 1rem; display: grid; gap: 0.75rem; }
.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  transition: color 0.15s;
  overflow-wrap: anywhere;
}
.footer-contacts a:hover { color: var(--accent); }
.footer-contacts .icon,
.footer-address .icon { color: var(--accent); }
.footer-address { margin-top: 1rem; display: flex; gap: 0.65rem; font-size: 0.875rem; line-height: 1.6; }
.footer-legal {
  margin-top: 3rem;
  border-top: 1px solid var(--dark-line);
  padding: 2rem 1.25rem 3rem;
  display: grid;
  gap: 0.4rem;
}
.footer-legal p { font-size: 0.75rem; line-height: 1.6; color: #71717A; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.21, 0.47, 0.32, 0.98), transform 0.55s cubic-bezier(0.21, 0.47, 0.32, 0.98);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot::before { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Custom scrollbar */
.mega-list::-webkit-scrollbar,
.aside-list::-webkit-scrollbar,
.m-accordion-body.is-open::-webkit-scrollbar,
.mobile-nav.is-open::-webkit-scrollbar { width: 6px; }
.mega-list::-webkit-scrollbar-thumb,
.aside-list::-webkit-scrollbar-thumb,
.m-accordion-body.is-open::-webkit-scrollbar-thumb,
.mobile-nav.is-open::-webkit-scrollbar-thumb { background: #D4D4D8; border-radius: 999px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 1140px) {
  .header-contacts { display: flex; }
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }
}

@media (max-width: 1139px) {
  .header-contacts { display: none; }
}

@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .onec-grid { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .product-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .onec-grid { grid-template-columns: 1fr; }
  .okved-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  .m-contacts { flex-direction: column; }
  .page-body { padding: 2rem 1.25rem; }
}
