/* ============================================================
   ЛАЙТ ПОРТ — Shared Design System
   Font: Geologica (local, Cyrillic + Latin)
   ============================================================ */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/geologica/geologica-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/geologica/geologica-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --orange:       #ff8a2a;
  --orange-dark:  #e6761a;
  --orange-light: #fff5ed;
  --orange-glow:  rgba(255, 138, 42, 0.18);
  --white:        #ffffff;
  --dark:         #0a0c14;
  --dark-2:       #10121e;
  --dark-3:       #181b2a;
  --dark-border:  rgba(255,255,255,0.08);
  --text-dark:    #1c1714;
  --text-muted:   #7a6a5a;
  --border:       #e8e2da;
  --surface:      #fdfaf7;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.05);
  --shadow:       0 10px 40px rgba(0,0,0,0.08);
  --shadow-lg:    0 24px 60px rgba(0,0,0,0.12);
  --radius-sm:    10px;
  --radius:       18px;
  --radius-lg:    28px;
  --header-h:     72px;
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Geologica', 'Segoe UI', system-ui, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 28px; }

/* ─── Typography ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,138,42,0.35);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--orange);
  color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--dark-border);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}

/* ─── Header ─────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: height var(--transition), box-shadow var(--transition), background var(--transition);
}

#site-header.scrolled {
  height: 60px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.brand img {
  height: 42px;
  width: auto;
  transition: height var(--transition);
}
#site-header.scrolled .brand img { height: 34px; }

.brand-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
  margin-top: 1px;
}
#site-header.scrolled .brand-text span { display: none; }

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin: 0 8px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link,
.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}

.nav-link:hover,
.nav-btn:hover,
.nav-item.active .nav-link,
.nav-item.active .nav-btn {
  background: var(--orange-light);
  color: var(--orange);
}

.nav-link.active {
  background: var(--orange);
  color: var(--white);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.nav-item.open .nav-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.nav-item.open .dropdown-panel,
.dropdown-panel:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.dropdown-link:hover {
  background: var(--orange-light);
  color: var(--orange);
}

.dropdown-link .icon-sm {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.dropdown-link svg.icon-sm {
  display: block;
}
.dropdown-link:hover .icon-sm { color: var(--orange); }

/* ОКСИОН — громкоговорители оповещения */
.icon-oksion,
.icon-oksion-dev {
  flex-shrink: 0;
  overflow: visible;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color var(--transition), background var(--transition);
}
.header-phone:hover { color: var(--orange); background: var(--orange-light); }
.header-phone-icon,
.header-phone > svg { width: 15px; height: 15px; color: var(--orange); flex-shrink: 0; }

.header-phone-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 1px;
}

.header-phone-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: inherit;
}

.header-phone-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.header-phone:hover .header-phone-label { color: var(--orange); }

/* Mobile toggle */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-dark);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 28px 24px;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.mobile-menu.open { display: flex; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-link:hover { background: var(--orange-light); color: var(--orange); }

.mobile-sub-nav {
  padding-left: 16px;
  margin-top: 4px;
}

.mobile-menu-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-top: 8px;
  background: var(--orange-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}

.mobile-menu-phone-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 1px;
}

.mobile-menu-phone .header-phone-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-menu-phone .header-phone-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.9);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand-col .footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand-col .footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 280px;
  margin-top: 12px;
}

.footer-iso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 12px;
  border: 1px solid rgba(255,138,42,0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav li a:hover { color: var(--orange); }

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.footer-contact-item span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

.footer-contact-item a,
.footer-contact-item p {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  line-height: 1.5;
}
.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.36);
  line-height: 1;
}

.footer-credit-gh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.footer-credit-gh svg {
  width: 15px;
  height: 15px;
  display: block;
}

.footer-credit-gh:hover {
  color: var(--orange);
  transform: translateY(-1px);
}

.footer-credit-nick {
  color: rgba(255,255,255,0.48);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-credit-nick:hover { color: var(--orange); }

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--orange); }

/* ─── Page Hero (dark style) ─────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
  background: var(--dark);
  color: var(--white);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero-inner { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb svg { width: 10px; height: 10px; flex-shrink: 0; opacity: 0.4; }

/* Light breadcrumb (for pages with white hero) */
.breadcrumb.dark {
  color: var(--text-muted);
}
.breadcrumb.dark a:hover { color: var(--orange); }

/* ─── Section titles ─────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-title span { color: var(--orange); }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ─── Tab nav (О компании sub-pages) ─────────────────────────── */
.sub-tabs {
  display: flex;
  gap: 28px;
  list-style: none;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  margin-bottom: 48px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sub-tabs::-webkit-scrollbar { display: none; }

.sub-tab-link {
  display: block;
  padding: 14px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.sub-tab-link:hover { color: var(--orange); }
.sub-tab-link.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(255,138,42,0.3);
  transform: translateY(-4px);
}

/* ─── Scroll animations (GSAP targets) ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
}

/* ─── Utility ────────────────────────────────────────────────── */
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }
.fw-800      { font-weight: 800; }

.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.separator {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 28px;
}

/* Orange glow divider */
.glow-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 30%, var(--orange) 70%, transparent 100%);
  opacity: 0.35;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .main-nav,
  .header-right { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .section { padding: 64px 0; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; }
  .footer-credit { margin-top: 2px; }
}
