/* ===== Top utility bar ===== */
.topbar { background: var(--navy-deep); }
.topbar .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; min-height: 40px;
}
.topbar-copy { font-size: 12px; color: #8D9DB5; letter-spacing: .3px; }
.topbar-links { display: flex; gap: 24px; align-items: center; }
.topbar a { color: #A9B7CC; font-size: 13px; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-vision { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.topbar-vision svg { flex: 0 0 auto; }

/* ===== Header ===== */
.site-header { background: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 22px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { height: 58px; display: block; }
.brand-divider { width: 1px; height: 48px; background: var(--line); }
.brand-name { font-family: Unbounded, sans-serif; font-weight: 500; font-size: 14px; line-height: 1.3; max-width: 260px; }
.header-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.contact-block { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.contact-value { font-weight: 800; font-size: 18px; }
.social-block { display: flex; align-items: center; gap: 10px; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #C5CFDC;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); font-weight: 800; font-size: 13px; text-decoration: none;
  transition: all .2s; cursor: pointer; background: transparent;
}
.iconbtn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.iconbtn-sm { font-size: 10px; }

/* ===== Nav ===== */
.site-nav { background: var(--navy); }
.nav { display: flex; flex-wrap: nowrap; gap: 0; }
.ni { position: relative; flex: 1; }
.ni > a {
  display: flex; align-items: center; justify-content: center; gap: 5px; color: #DCE4EF;
  font-weight: 700; font-size: 13px; padding: 18px 10px;
  border-bottom: 3px solid transparent; text-decoration: none; transition: all .2s;
  white-space: nowrap;
}
.ni:hover > a, .ni.on > a { color: #fff; border-bottom-color: var(--accent); }
.ni > a svg { transition: transform .2s; }
.ni:hover > a svg { transform: translateY(2px); }
.ni > a.cur { color: #fff; }
.dd {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 300px;
  background: #fff; border-radius: 0 0 16px 16px; box-shadow: 0 24px 48px -16px rgba(14,34,64,.35);
  padding: 10px 0;
}
.ni:hover .dd { display: block; }
.dd a {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 22px;
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.dd a:hover { background: var(--bg); color: var(--accent); }
.dd a.cur { color: var(--accent); }

/* ===== Page hero (dark block with breadcrumbs) ===== */
.hero-page {
  background: var(--navy); color: #fff;
  position: relative; overflow: hidden;
  padding-top: 32px; padding-bottom: 64px;
}
.hero-page-radar {
  position: absolute; right: -120px; top: -120px;
  opacity: .55;
}
.hero-page .wrap { position: relative; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  font-size: 13px; color: var(--on-dark-muted);
}
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumb-sep { color: #5B6B82; }
.crumb-cur { color: #fff; font-weight: 700; }
.hero-page-h1 {
  margin: 28px 0 0;
  font-family: Unbounded, sans-serif; font-weight: 800;
  font-size: 56px; line-height: 1.04; letter-spacing: -2px;
}
.hero-page-lead { margin: 20px 0 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--on-dark); }
.hero-page-extra { margin-top: 28px; }

/* ===== Footer ===== */
.foot { background: var(--navy-deep); color: var(--on-dark); }
.foot .wrap { padding-top: 64px; padding-bottom: 40px; }
.foot-cta { margin-bottom: 48px; }
.foot-cta-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; border-radius: 24px; padding: 32px 36px;
}
.foot-cta-card.red { background: var(--accent); }
.foot-cta-label { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-bg2); }
.foot-cta-title { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 24px; color: #fff; line-height: 1.25; margin-top: 8px; }
.foot-cta-btn {
  background: #fff; color: var(--navy);
}
.foot-cta-btn:hover { background: var(--navy); color: #fff; }
.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1.4fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-col a { text-decoration: none; color: var(--on-dark); }
.foot-col a:hover { color: #fff; }
.foot-col-title { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.foot-col-contacts { line-height: 1.5; }
.foot-phone {
  font-family: Unbounded, sans-serif; font-weight: 700; font-size: 20px;
  color: #fff !important; display: inline-block; margin-top: 4px;
}
.foot-map {
  min-height: 180px; border-radius: 20px; background: var(--navy-card);
  border: 1px dashed #2B4A75; overflow: hidden; position: relative;
}
.foot-map iframe, .foot-map .ymaps { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px; padding-top: 28px; font-size: 14px;
}
.foot-copyright { display: flex; align-items: center; gap: 16px; }
.foot-copyright img { height: 36px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.foot .foot-credit { display: inline-block; margin-top: 16px; font-size: 12px; color: #8D9DB5; text-decoration: none; }
.foot .foot-credit:hover { color: #fff; }
.foot-policy { display: inline-flex; align-items: center; gap: 10px; text-decoration: underline; }
.foot-policy-zip { font-size: 11px; font-weight: 800; border: 1px solid #5B6B82; border-radius: 6px; padding: 2px 6px; text-decoration: none; }
.foot-disclaimer { margin: 24px 0 0; font-size: 12px; line-height: 1.6; color: #8D9DB5; max-width: 760px; }

/* ===== Feedback dialog ===== */
.feedback { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(10,26,51,.6); }
.feedback.open { display: flex; align-items: center; justify-content: center; padding: 20px; }
.feedback-card {
  background: #fff; border-radius: 24px; max-width: 520px; width: 100%;
  padding: 32px; box-sizing: border-box;
}
.feedback-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.feedback-title { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 22px; }
.feedback-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.feedback-input {
  width: 100%; box-sizing: border-box; padding: 14px 16px;
  border: 1.5px solid #C5CFDC; border-radius: 14px;
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--bg);
}
.feedback-input:focus { outline: none; border-color: var(--navy); background: #fff; }
.feedback-note { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.feedback-note a { color: var(--accent); text-decoration: underline; }
.feedback-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.feedback-status { font-size: 14px; font-weight: 700; color: var(--accent); }
.ib-dark { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.ib-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ===== Mobile header ===== */
.hd-mobile { display: none; }
.site-header-m { background: #fff; }
.hd-row { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.site-header-m img { height: 44px; display: block; }
.hd-actions { display: flex; align-items: center; gap: 10px; }
.ib {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #C5CFDC;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 12px;
  background: #fff; cursor: pointer; flex: 0 0 44px;
}
.ib:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ib-sm { font-size: 10px; }
.burger {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex: 0 0 48px;
}

/* ===== Mobile menu ===== */
.menu {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: #fff; min-height: 100%;
  overflow-y: auto; box-sizing: border-box;
}
.menu.open { display: block; }
.mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.mm-head img { height: 40px; }
.mm-nav { display: flex; flex-direction: column; }
.mi { border-bottom: 1px solid #1F3A62; }
.mi > a, .mi > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 60px; padding: 0; border: 0; background: none; color: #fff;
  font-family: Unbounded, sans-serif; font-weight: 600; font-size: 18px;
  text-decoration: none; cursor: pointer; text-align: left;
}
.mi > a.cur { color: var(--accent-light); }
.mi .pm {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid #2B4A75;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s, border-color .2s;
  color: #fff;
}
.mi.open .pm { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.sub { display: none; padding: 0 0 16px; }
.mi.open .sub { display: block; }
.sub a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0 11px 16px; border-left: 2px solid #22406A;
  color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.35;
}
.sub a.cur { color: #fff; border-left-color: var(--accent); }
.mm-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; padding-bottom: 40px; }
.mm-phone { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 22px; color: #fff; text-decoration: none; }
.mm-email { font-size: 15px; color: var(--on-dark); text-decoration: none; }
.mm-social { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mm-vision {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--on-dark); text-decoration: none;
}
.mm-vision:hover { color: #fff; }
.mm-copy { font-size: 11px; color: #5B6B82; line-height: 1.5; }
.burger-close { width: 44px; height: 44px; flex-basis: 44px; }

/* ===== Vision (слабовидящие) ===== */
.visually-impaired { font-size: 18px !important; }
.visually-impaired .h1,
.visually-impaired .hero-page-h1 { font-size: 48px !important; }
.visually-impaired .h2 { font-size: 28px !important; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-page-radar, .spin, .spinr, .pulse { animation: none !important; }
}

/* ===== Breakpoints ===== */
@media (max-width: 1239px) {
  .hero-page-h1 { font-size: 44px; letter-spacing: -1.5px; }
  .hero-page-radar { right: -160px; top: -140px; opacity: .4; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-map { grid-column: 1 / -1; }
  .header-contacts { gap: 20px; }
  .contact-value { font-size: 16px; }
  .brand img { height: 48px; }
  .brand-name { font-size: 12px; }
}

@media (max-width: 767px) {
  .hd-desktop { display: none; }
  .hd-mobile { display: block; }
  .hero-page { padding-top: 22px; padding-bottom: 48px; }
  .hero-page-h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-page-radar { right: -140px; top: -120px; width: 320px; height: 320px; opacity: .4; }
  .foot .wrap { padding-top: 40px; padding-bottom: 32px; }
  .foot-cta { margin-bottom: 32px; }
  .foot-cta-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .foot-cta-btn { width: 100%; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; font-size: 14px; }
  .foot-col-contacts { grid-column: 1 / -1; }
  .foot-phone { font-size: 20px; }
  .foot-map { min-height: 160px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .feedback-card { padding: 24px; }
  .feedback-title { font-size: 18px; }
}
