/* ============================================================
   РОССKRAN — SHARED DESIGN SYSTEM
   Подключается на всех страницах первым
   ============================================================ */

/* ── TOKENS ── */
:root {
  --blue:        #0B2C6B;
  --blue-mid:    #1A4EA0;
  --blue-light:  #2E6FD8;
  --blue-pale:   #EBF2FF;
  --orange:      #E8600A;
  --orange-light:#FF7A1A;
  --orange-pale: #FFF3EC;
  --green:       #0A6B3A;
  --green-pale:  #E6F4ED;
  --red:         #C0392B;
  --red-mid:     #E74C3C;
  --red-pale:    #FDEAEA;
  --yellow:      #F5A623;
  --yellow-pale: #FFF8EC;
  --white:       #fff;
  --gray-50:     #F7F8FC;
  --gray-100:    #EEF1F8;
  --gray-200:    #D6DCE9;
  --gray-500:    #6B7A99;
  --gray-700:    #2D3650;
  --text:        #1A2340;

  /* Layout */
  --max-w:       1280px;
  --page-px:     48px;
  --page-py-top: 40px;
  --page-py-bot: 80px;
  --header-h:    64px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   16px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Golos Text', sans-serif;
  color: var(--text);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── HEADER ── */
.rk-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 var(--page-px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.rk-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.rk-logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rk-logo-icon svg { width: 22px; height: 22px; fill: none; stroke: white; stroke-width: 1.8; }
.rk-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--blue);
  line-height: 1;
}
.rk-logo-sub {
  font-size: 9px;
  color: var(--gray-500);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav */
.rk-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.rk-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s;
  white-space: nowrap;
}
.rk-nav a:hover,
.rk-nav a.active { color: var(--blue-light); }

/* Header right */
.rk-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.rk-header-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.rk-header-phone:hover { color: var(--blue-light); }

/* Burger (mobile) */
.rk-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}
.rk-burger span {
  display: block;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile nav drawer */
.rk-mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px var(--page-px);
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(11,44,107,.1);
}
.rk-mobile-nav.open { display: flex; }
.rk-mobile-nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color .18s;
}
.rk-mobile-nav a:last-child { border-bottom: none; }
.rk-mobile-nav a:hover,
.rk-mobile-nav a.active { color: var(--blue-light); }
.rk-mobile-nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--blue);
  border-radius: var(--radius-md);
  color: white !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-bottom: none !important;
}

/* ── BREADCRUMB ── */
.rk-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px var(--page-px);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.rk-breadcrumb a { color: var(--gray-500); text-decoration: none; transition: color .18s; }
.rk-breadcrumb a:hover { color: var(--blue-light); }
.rk-breadcrumb span { color: var(--text); font-weight: 500; }
.rk-breadcrumb-sep { color: var(--gray-200); }

/* ── PAGE WRAPPER ── */
.rk-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--page-py-top) var(--page-px) var(--page-py-bot);
}

/* ── FOOTER ── */
.rk-footer {
  background: var(--blue);
  padding: 56px var(--page-px) 32px;
  margin-top: 0;
}
.rk-footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.rk-footer-logo .rk-logo-text { color: white; }
.rk-footer-logo .rk-logo-sub  { color: rgba(255,255,255,.4); }
.rk-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin-top: 12px;
}
.rk-footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.rk-footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.rk-footer-links a {
  text-decoration: none;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.rk-footer-links a:hover { color: white; }
.rk-footer-phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: white;
  letter-spacing: .04em;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
.rk-footer-phone:hover { color: var(--orange); }
.rk-footer-contact {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.rk-footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}
.rk-footer-bottom a { color: rgba(255,255,255,.3); text-decoration: none; }
.rk-footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--orange);
  color: white;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Golos Text', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Golos Text', sans-serif;
  border: 1.5px solid var(--blue);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--blue); color: white; }

.btn-ghost-white {
  background: transparent;
  color: white;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Golos Text', sans-serif;
  border: 1.5px solid rgba(255,255,255,.35);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-ghost-white:hover { border-color: white; background: rgba(255,255,255,.08); }

/* ── SECTION TITLES ── */
.sec-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
}
.sec-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--blue);
  letter-spacing: .02em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.sec-sub {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 540px;
}

/* ── GRID BACKGROUNDS ── */
.rk-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* ── FORM FIELDS ── */
.rk-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.rk-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-700);
}
.rk-field input,
.rk-field select,
.rk-field textarea {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Golos Text', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.rk-field input:focus,
.rk-field select:focus,
.rk-field textarea:focus {
  border-color: var(--blue-light);
  background: white;
}
.rk-field textarea { resize: none; height: 88px; }
.rk-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============================================================
   RESPONSIVE — MOBILE FIRST BREAKPOINTS
   ============================================================ */

/* ── TABLET 1024px ── */
@media (max-width: 1024px) {
  :root {
    --page-px: 24px;
    --page-py-top: 32px;
  }
  .rk-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .rk-nav { gap: 20px; }
}

/* ── TABLET SMALL 768px ── */
@media (max-width: 768px) {
  :root {
    --page-px: 12px;
    --page-py-top: 20px;
    --page-py-bot: 40px;
  }

  /* Header: hide nav, show burger */
  .rk-nav { display: none; }
  .rk-header-phone { display: none; }
  .rk-burger { display: flex; }
  .rk-header { padding: 0 20px; }
  .rk-breadcrumb { padding: 10px 20px; font-size: 12px; }

  /* Footer */
  .rk-footer { padding: 40px 20px 24px; }
  .rk-footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .rk-footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Sec titles */
  .sec-title { font-size: clamp(26px, 6vw, 36px); }
}

/* ── MOBILE 480px ── */
@media (max-width: 480px) {
  :root {
    --page-px: 16px;
    --page-py-top: 20px;
    --page-py-bot: 48px;
  }
  .rk-field-row { grid-template-columns: 1fr; gap: 0; }
  .rk-logo-text { font-size: 22px; }
}

/* ── SAFETY RESETS: prevent old page CSS from overriding shared header ── */
header { all: unset; display: flex; }
.rk-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 var(--page-px);
  height: var(--header-h);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}


/* ── UNIVERSAL REQUEST MODAL ── */
.rk-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,44,107,.6);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rk-modal-overlay.open { display: flex; }
.rk-modal {
  background: white;
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.rk-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--gray-100);
  border: none; border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  transition: background .18s;
}
.rk-modal-close:hover { background: var(--gray-200); }
.rk-modal-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--blue-light); margin-bottom: 8px;
}
.rk-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; color: var(--blue);
  letter-spacing: .02em; margin-bottom: 6px;
}
.rk-modal-sub {
  font-size: 14px; color: var(--gray-500);
  margin-bottom: 22px; line-height: 1.55;
}
.rk-modal .rk-field label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--gray-700);
}
.rk-modal .rk-field input,
.rk-modal .rk-field select,
.rk-modal .rk-field textarea {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Golos Text', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.rk-modal .rk-field input:focus,
.rk-modal .rk-field select:focus,
.rk-modal .rk-field textarea:focus {
  border-color: var(--blue-light);
  background: white;
}
.rk-modal .rk-field textarea { resize: none; height: 80px; }
.rk-modal-submit {
  width: 100%;
  background: var(--orange);
  color: white; border: none;
  border-radius: 8px; padding: 14px;
  font-size: 15px; font-weight: 700;
  font-family: 'Golos Text', sans-serif;
  cursor: pointer;
  transition: background .18s;
  margin-top: 4px;
}
.rk-modal-submit:hover { background: var(--orange-light); }
.rk-modal-note {
  font-size: 11px; color: var(--gray-500);
  text-align: center; margin-top: 10px;
}
.rk-modal-promises {
  display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 20px;
}
.rk-modal-promise {
  display: flex; align-items: center;
  gap: 8px; font-size: 13px; color: var(--gray-700);
}
.rk-modal-promise-icon {
  width: 18px; height: 18px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--green);
  flex-shrink: 0;
}
