/* ═══════════════════════════════════════════════════════════════
   COMMON STYLES - Общие стили для всех страниц
   ═══════════════════════════════════════════════════════════════ */

:root {
  --blue:    #2043e7;
  --blue-d:  #1535c8;
  --blue-l:  #eef1fd;
  --night:   #0a1027;
  --lime:    #b7f140;
  --lime-d:  #9cd430;
  --white:   #ffffff;
  --gray-50: #f8f9fc;
  --gray-100:#f0f2f8;
  --gray-200:#e0e4f0;
  --gray-400:#9098b8;
  --gray-600:#4a5280;
  --text:    #0a1027;
  --radius:  14px;
  --shadow:  0 2px 16px rgba(32,67,231,0.09);
  --shadow-lg: 0 8px 40px rgba(32,67,231,0.13);
}

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

body {
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── UTILS ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 12px;
}
.label::before { content:''; width:18px; height:2px; background:var(--blue); }

h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 32px; font-weight: 700; letter-spacing: -1px;
  line-height: 1.15; color: var(--text);
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex; align-items: center;
  height: 64px; gap: 40px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark { width: 36px; height: 36px; }
.logo-word {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px; font-weight: 900;
  color: var(--blue); letter-spacing: -0.5px;
}
.logo-word em { color: var(--night); font-style: normal; }

nav { display: flex; gap: 2px; }
nav a {
  padding: 7px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--gray-600); text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
nav a:hover { background: var(--gray-100); color: var(--text); }
nav a.active { color: var(--blue); background: var(--blue-l); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.phone-link {
  font-size: 13px; font-weight: 600; color: var(--gray-600);
  text-decoration: none;
}
.phone-link:hover { color: var(--blue); }
.btn-ghost {
  padding: 8px 16px; border-radius: 8px;
  font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--blue); background: var(--blue-l);
  border: none; cursor: pointer; text-decoration: none;
  transition: background 0.15s; white-space: nowrap;
}
.btn-ghost:hover { background: #dde3fb; }

/* ── BURGER ── */
.burger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px;
  border-radius: 10px; border: 1.5px solid var(--gray-200);
  background: white; cursor: pointer;
  align-items: center; flex-shrink: 0;
  transition: all 0.15s;
}
.burger:hover { border-color: var(--blue); background: var(--blue-l); }
.burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 190;
}
.mobile-nav-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,16,39,0.5);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s;
}
.mobile-nav-drawer {
  position: absolute; top: 64px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0 24px;
  transform: translateY(-16px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav.open .mobile-nav-drawer { transform: translateY(0); opacity: 1; }

.mobile-nav-links {
  display: flex; flex-direction: column;
}
.mobile-nav-links a {
  padding: 14px 24px;
  font-size: 16px; font-weight: 600;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav-links a:hover { color: var(--blue); background: var(--blue-l); }
.mobile-nav-links a.active { color: var(--blue); }
.mobile-nav-links a::after { content: '→'; font-size: 14px; color: var(--gray-400); }

.mobile-nav-footer {
  padding: 20px 24px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-nav-phone {
  font-size: 18px; font-weight: 700; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.mobile-nav-phone::before { content: '📞'; font-size: 16px; }
.btn-ghost-full {
  width: 100%; padding: 14px; border-radius: 12px;
  font-family: 'Onest', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--blue); background: var(--blue-l);
  border: none; cursor: pointer; text-align: center;
  text-decoration: none; display: block;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer { background: var(--night); padding: 40px 0 28px; }
.footer-main {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 24px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 12px;
}
.footer-logo-word {
  font-family: 'Unbounded', sans-serif;
  font-size: 17px; font-weight: 900; color: white; letter-spacing: -0.5px;
}
.footer-logo-word em { color: var(--lime); font-style: normal; }
.footer-tagline {
  font-size: 12px; color: rgba(255,255,255,0.35);
  line-height: 1.65; margin-bottom: 16px; max-width: 260px;
}
.footer-contacts { display: flex; flex-direction: column; gap: 5px; }
.footer-phone {
  font-size: 15px; font-weight: 600; color: white;
  text-decoration: none; transition: color 0.15s;
}
.footer-phone:hover { color: var(--lime); }
.footer-phone-free { font-size: 11px; color: rgba(255,255,255,0.25); margin-top: -2px; }
.footer-email { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; margin-top: 4px; }
.footer-email:hover { color: white; }
.footer-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.22); }
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.18); max-width: 560px; line-height: 1.6; }

.btn-blue {
  display: inline-flex; padding: 14px 28px; border-radius: 12px;
  background: var(--blue); color: white;
  font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.btn-blue:hover { background: var(--blue-d); transform: translateY(-1px); }

/* ── BREADCRUMBS ── */
.breadcrumbs-bar { background:var(--white); border-bottom:1px solid var(--gray-200); padding:10px 0; }
.breadcrumbs { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--gray-400); list-style:none; }
.breadcrumbs li { display:flex; align-items:center; gap:6px; }
.breadcrumbs li::after { content:'/'; color:var(--gray-200); font-size:12px; }
.breadcrumbs li:last-child::after { display:none; }
.breadcrumbs a { color:var(--gray-400); text-decoration:none; font-weight:500; transition:color 0.12s; }
.breadcrumbs a:hover { color:var(--blue); }
.breadcrumbs li.current { color:var(--gray-600); font-weight:600; }

/* ════════════════════════════════════════════════════
   RESPONSIVE — Tablet  (≤ 900px)
════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .header-inner { gap: 16px; }
  nav, .phone-link { display: none; }
  .burger { display: flex; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  h2 { font-size: 26px; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — Mobile  (≤ 560px)
════════════════════════════════════════════════════ */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header-inner { height: 56px; gap: 8px; }
  .btn-ghost { display: none; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-word { font-size: 15px; }
  .mobile-nav-drawer { top: 56px; }
  .footer { padding: 32px 0 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

