@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700;800;900&display=swap');

@font-face {
  font-family: 'Noto Sans ExtBd';
  src: local('Noto Sans ExtBd'), local('Noto Sans ExtraBold'), local('Noto Sans Extrabold');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --site-font: 'Noto Sans ExtBd', 'Noto Sans', Arial, sans-serif;
  --site-font-weight: 800;
  --sidebar: #08172d;
  --topbar: #081528;
  --page: #ffffff;
  --pagebg: #23374f;
  --panel: #10203a;
  --ink: #10203a;
  --white: #ffffff;
  --orange: #ff7a1d;
  --orange2: #ff8a39;
  --shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--pagebg);
  color: var(--ink);
  font-family: 'Noto Sans ExtBd', 'Noto Sans', Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.app {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

/* SIDEBAR */
.sidebar {
  background: linear-gradient(180deg, #07162b 0%, #0b1c39 100%);
  color: #fff;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
  position: relative;
  z-index: 5;
}
.logo { display: block; padding: 12px 16px 10px 16px; }
.logo img { width: 176px; height: auto; }
.sidebar__content { padding: 8px 17px 0 18px; }
.sidebar__title { font-size: 13px; line-height: 1.05; text-transform: uppercase; margin-top: 11px; }
.sidebar__subtitle { font-size: 8px; line-height: 1.2; margin-top: 4px; text-transform: uppercase; opacity: .70; }
.field-label { display: block; margin: 10px 0 4px; font-size: 11px; line-height: 1.12; }
.field {
  width: 100%; height: 16px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px;
  background: rgba(255, 255, 255, .02); color: #fff;
  padding: 0 8px; font-size: 10px; outline: none;
}
.field::placeholder { color: rgba(255, 255, 255, .40); }
.field:focus { border-color: rgba(255, 122, 29, .80); box-shadow: 0 0 0 3px rgba(255, 122, 29, .10); }
.sidebar__knowledge { margin-top: 14px; padding-top: 16px; border-top: 2px solid rgba(255, 255, 255, .12); }
.sidebar__section-title { font-size: 11px; line-height: 1.08; text-transform: uppercase; margin-bottom: 10px; }
.knowledge-list { list-style: none; margin: 0; padding: 0; }
.knowledge-list li { position: relative; padding-left: 12px; margin: 8px 0; font-size: 7.9px; line-height: 1.25; text-transform: uppercase; opacity: .92; }
.knowledge-list li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--orange); font-size: 11px; line-height: 1; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: transform .18s ease, filter .18s ease;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); filter: saturate(1.05); }
.btn--search {
  margin-top: 14px; width: 71px; height: 27px; border-radius: 2px;
  color: #fff; background: var(--orange); box-shadow: 0 8px 15px rgba(255, 122, 29, .22);
}
.btn--accent {
  height: 39px; padding: 0 14px 0 17px; border-radius: 4px;
  color: #fff; background: linear-gradient(180deg, var(--orange2), var(--orange));
  box-shadow: 0 12px 20px rgba(255, 122, 29, .18); font-size: 13px;
}
.btn--accent span { margin-left: 8px; }

/* MAIN & TOPBAR */
.page { background: var(--page); min-width: 0; }
.topbar {
  height: 28px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 12px; background: linear-gradient(180deg, #081528 0%, #0a152a 100%);
  color: #fff; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05);
}
.menu { display: flex; gap: 34px; text-transform: uppercase; font-size: 8.6px; letter-spacing: .02em; }
.menu a { opacity: .98; transition: color .2s; }
.menu a.is-active, .menu a:hover { color: var(--orange); }
.lang { display: flex; align-items: center; gap: 5px; height: 16px; padding: 0 6px; border-radius: 2px; background: rgba(255, 255, 255, .06); font-size: 10px; }

/* HERO FIX (СТРОГО ОРИГИНАЛЬНОЕ НАЛОЖЕНИЕ И ТЕКСТ) */
.hero { position: relative; height: 309px; overflow: hidden; background: #10203a; }
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 21, 40, .94) 0%, rgba(9, 21, 40, .64) 45%, rgba(9, 21, 40, .18) 100%),
              url('../assets/images/bearing.jpg') center/cover no-repeat;
  transform: scale(1.02); filter: saturate(1.02) contrast(1.02);
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; height: 100%; padding: 40px 18px 0 50px; }
.hero__text { max-width: 720px; position: relative; z-index: 3; }
.hero h1 { margin: 0; color: #fff; font-size: 34px; line-height: 1.08; text-transform: uppercase; letter-spacing: .01em; }
.hero p { margin: 24px 0 0; max-width: 610px; color: #fff; font-size: 16px; line-height: 1.35; }

/* SECTIONS COMMON */
.section { padding: 0 19px 0 18px; margin-bottom: 40px; }
.section-title {
  position: relative; margin: 0 0 12px 0; font-size: 18px; line-height: 1.1;
  text-transform: uppercase; color: #10203a; display: inline-block; padding-bottom: 8px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 4px; background: var(--orange);
}
.section-subtitle { font-size: 13px; line-height: 1.45; color: #10203a; max-width: 600px; margin-top: 0; margin-bottom: 30px; font-weight: 500;}
.section-center-title { text-align: center; font-size: 16px; color: #10203a; text-transform: uppercase; margin-bottom: 20px;}

/* DELIVERY SECTION */
.section--delivery { padding-top: 25px; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: center; }
.feature-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.feature-item img { width: 50px; height: 50px; object-fit: contain; flex-shrink: 0; }
.feature-item__content { padding-top: 2px; }
.feature-item__content h4 { font-size: 12px; margin: 0 0 5px 0; color: #10203a; text-transform: uppercase; }
.feature-item__content p { font-size: 11px; line-height: 1.4; margin: 0; color: #10203a; opacity: 0.9; }
.delivery-map img { width: 100%; height: auto; }

/* METHODS SECTION */
.methods-panel {
  background: #f4f5f8;
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.method-item { display: flex; align-items: center; gap: 15px; color: #10203a; font-size: 13px; font-weight: bold; }
.method-item img { width: 45px; height: 45px; object-fit: contain; }
.method-item span { line-height: 1.2; }

/* ADVANTAGES SECTION */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 25px; }
.adv-item { text-align: center; color: #10203a; }
.adv-item img { height: 60px; margin: 0 auto 15px; object-fit: contain; }
.adv-item h4 { font-size: 11px; margin: 0 0 10px; text-transform: uppercase; line-height: 1.2; }
.adv-item p { font-size: 10px; line-height: 1.4; margin: 0; opacity: 0.85; }

/* TRUST SECTION */
.section--trust {
  margin-top: 50px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 25px;
}
.trust-item {
  display: flex;
  justify-content: center;
}
.trust-item img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(16, 32, 58, 0.1);
  border: 1px solid rgba(16, 32, 58, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.trust-item img:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(16, 32, 58, 0.18);
}

/* CTA BANNER FIX */
.cta-banner {
  position: relative; overflow: visible; min-height: 182px; border-radius: 12px;
  padding: 24px 22px 24px 28px; color: #fff; box-shadow: var(--shadow);
  background: linear-gradient(90deg, #10203a 0%, #1a345d 100%);
}
.cta-banner__content { position: relative; z-index: 2; max-width: 550px; }
.cta-banner h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.15; text-transform: uppercase; }
.cta-banner p { margin: 0 0 14px; max-width: 450px; font-size: 10px; line-height: 1.4; opacity: .95; }
.cta-banner__image {
  position: absolute; right: 16px; bottom: -18px;
  width: 255px; height: auto; z-index: 3; pointer-events: none;
}

/* FOOTER */
.footer { margin-top: 0; background: #20314d; color: #fff; border-top: 2px solid rgba(255, 255, 255, .82); }
.footer__inner { min-height: 208px; padding: 24px 28px 22px 18px; display: grid; grid-template-columns: 1.58fr .9fr .8fr; gap: 26px; }
.footer__col { padding-top: 130px; font-size: 12px; line-height: 1.3; }
.footer__col strong { display: block; margin-top: 6px; font-weight: 400; }
.footer__title { margin-bottom: 8px; font-weight: 400; }
.footer__nav { display: flex; flex-direction: column; gap: 2px; }
.footer__right { font-weight: 400; }

/* RESPONSIVE */
@media (max-width: 1300px) {
  .app { grid-template-columns: 230px minmax(0, 1fr); }
  .sidebar { width: 230px; }
  .delivery-grid { grid-template-columns: 1fr; }
  .methods-panel { justify-content: flex-start; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  
  .trust-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;}
  
  .cta-banner__image { width: 220px; right: 0; }
}
.lang-switch {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.lang-switch__btn {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 105px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.lang-switch.is-open .lang-switch__menu {
  display: block;
}

.lang-switch__menu a {
  display: block;
  padding: 10px 14px;
  color: #003A5C;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.lang-switch__menu a:hover {
  background: #f1f5f8;
}

.lang-switch__menu a.is-current {
  display: none;
}

/* === Bearing XLSX search module === */
body.modal-open{
  overflow:hidden;
}

.bearing-search-status{
  margin-top:10px;
  font-size:10px;
  line-height:1.35;
  color:rgba(255,255,255,.74);
}

.bearing-search-status:empty{
  display:none;
}

.bearing-search-status.is-error{
  color:#ffd0d0;
}

.btn[disabled],
.btn--search:disabled{
  cursor:wait;
  opacity:.72;
  transform:none !important;
  box-shadow:none !important;
}

.bearing-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:none;
  align-items:center;
  justify-content:center;
  padding:26px 18px;
}

.bearing-modal.is-open{
  display:flex;
}

.bearing-modal__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,122,29,.16), transparent 34%),
    rgba(7,15,28,.76);
  backdrop-filter:blur(6px);
}

.bearing-modal__window{
  position:relative;
  z-index:1;
  width:min(875px, calc(100vw - 32px));
  max-height:min(88vh, 860px);
  overflow:auto;
  border-radius:24px;
  background:#fff;
  color:#10203a;
  box-shadow:0 30px 80px rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.34);
  animation:bearingModalIn .22s ease both;
}

@keyframes bearingModalIn{
  from{opacity:0; transform:translateY(12px) scale(.985)}
  to{opacity:1; transform:translateY(0) scale(1)}
}

.bearing-modal__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 18px;
  background:linear-gradient(135deg,#08172d 0%, #10203a 62%, #183250 100%);
  color:#fff;
  position:sticky;
  top:0;
  z-index:2;
}

.bearing-modal__title{
  margin:0;
  font-size:24px;
  line-height:1.12;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.01em;
}

.bearing-modal__subtitle{
  margin:7px 0 0;
  font-size:11px;
  line-height:1.35;
  opacity:.76;
}

.bearing-modal__close{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .18s ease, transform .18s ease;
}

.bearing-modal__close:hover{
  background:rgba(255,122,29,.95);
  transform:rotate(90deg);
}

.bearing-modal__content{
  padding:24px;
}

.bearing-detail{
  display:grid;
  grid-template-columns:minmax(0,1fr) 238px;
  gap:22px;
  align-items:stretch;
}

.bearing-detail__table{
  display:grid;
  gap:9px;
}

.bearing-row{
  display:grid;
  grid-template-columns:minmax(160px, .95fr) minmax(90px, .75fr);
  gap:14px;
  align-items:center;
  min-height:42px;
  padding:10px 13px;
  border:1px solid #edf0f5;
  border-radius:13px;
  background:#f7f9fc;
}

.bearing-row__label{
  font-size:12px;
  line-height:1.15;
  text-transform:uppercase;
  color:#6a7688;
}

.bearing-row__value{
  font-size:18px;
  line-height:1.12;
  font-weight:700;
  color:#10203a;
  text-align:right;
  word-break:break-word;
}

.bearing-detail__image-card{
  min-height:250px;
  border-radius:20px;
  background:
    linear-gradient(180deg,#f7f9fc 0%,#eef2f7 100%);
  border:1px solid #e7ecf3;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  position:relative;
  overflow:hidden;
}

.bearing-detail__image-card::before{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,122,29,.18), transparent 68%);
  right:-80px;
  top:-80px;
}

.bearing-detail__img{
  position:relative;
  z-index:1;
  max-width:190px;
  max-height:230px;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 14px 18px rgba(16,32,58,.18));
}

.bearing-image-placeholder{
  position:relative;
  z-index:1;
  padding:14px;
  border:1px dashed rgba(16,32,58,.25);
  border-radius:13px;
  color:#6a7688;
  font-size:12px;
  line-height:1.35;
  text-align:center;
}

.bearing-results{
  display:grid;
  gap:12px;
}

.bearing-results__hint{
  margin:0 0 6px;
  color:#5d697a;
  font-size:13px;
  line-height:1.4;
}

.bearing-results__item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:15px 16px;
  border:1px solid #e5ebf3;
  border-radius:17px;
  background:linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%);
  box-shadow:0 8px 18px rgba(16,32,58,.06);
}

.bearing-results__name{
  color:#10203a;
  font-size:16px;
  line-height:1.15;
  font-weight:700;
}

.bearing-results__params{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:9px;
}

.bearing-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:24px;
  padding:5px 9px;
  border-radius:999px;
  background:#eef2f7;
  color:#43536b;
  font-size:11px;
  line-height:1;
}

.bearing-chip strong{
  color:#10203a;
  font-weight:700;
}

.bearing-results__open{
  border:none;
  border-radius:999px;
  background:linear-gradient(180deg,var(--orange2),var(--orange));
  color:#fff;
  min-width:100px;
  height:34px;
  padding:0 16px;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  box-shadow:0 10px 18px rgba(255,122,29,.2);
  transition:transform .18s ease, filter .18s ease;
}

.bearing-results__open:hover{
  transform:translateY(-1px);
  filter:saturate(1.05);
}

@media (max-width:860px){
  .bearing-detail{
    grid-template-columns:1fr;
  }

  .bearing-detail__image-card{
    min-height:190px;
  }

  .bearing-modal__title{
    font-size:20px;
  }
}

@media (max-width:620px){
  .bearing-modal{
    padding:14px 10px;
  }

  .bearing-modal__top,
  .bearing-modal__content{
    padding:18px;
  }

  .bearing-row{
    grid-template-columns:1fr;
    gap:5px;
  }

  .bearing-row__value{
    text-align:left;
    font-size:17px;
  }

  .bearing-results__item{
    grid-template-columns:1fr;
  }

  .bearing-results__open{
    width:100%;
  }
}



/* === Единый стандарт КФПУ: шрифт, закрепленные панели и футер === */
*, *::before, *::after {
  font-family: inherit;
}

body {
  font-family: var(--site-font) !important;
  font-weight: var(--site-font-weight) !important;
}

button,
input,
textarea,
select,
.btn,
.menu,
.lang,
.sidebar__title,
.sidebar__subtitle,
.field-label,
.sidebar__section-title,
.section-title,
.section-subtitle,
.feature-item__content h4,
.feature-item__content p,
.method-item,
.adv-item h4,
.adv-item p,
.cta-banner h3,
.cta-banner p,
.footer {
  font-family: var(--site-font) !important;
  font-weight: var(--site-font-weight) !important;
}

.app {
  display: block !important;
  min-height: 100vh;
  width: 100%;
  padding-left: 246px;
}

.sidebar {
  background: #0b1c39 !important;
  color: #fff;
  box-shadow: none !important;
  position: fixed !important;
  top: 0;
  left: 0;
  bottom: 0;
  width: 246px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) rgba(255,255,255,.04);
  z-index: 1000;
}

.page {
  background: var(--page);
  min-width: 0;
  min-height: 100vh;
}

.topbar {
  background: linear-gradient(180deg, rgba(8,21,40,.98) 0%, rgba(10,21,42,.98) 100%) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.16), inset 0 -1px 0 rgba(255,255,255,.05) !important;
  position: sticky;
  top: 0;
  z-index: 950;
  backdrop-filter: blur(8px);
}

/* Footer */
.footer {
  margin-top: 28px !important;
  background: #0b1c39 !important;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0 92px, rgba(255,255,255,.10) 92px 100%);
}

.footer__inner {
  padding: 0 30px !important;
  background: #0b1c39 !important;
}

.footer__main {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(260px,1fr) auto auto;
  align-items: center;
  gap: 28px;
  background: #0b1c39 !important;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.footer__brand:hover .footer__logo {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.footer__logo {
  width: 76px;
  height: auto;
  flex: none;
  transition: transform .18s ease, filter .18s ease;
}

.footer__brand span {
  display: block;
  min-width: 0;
}

.footer__brand small {
  display: block;
  margin-bottom: 5px;
  color: var(--orange2);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
}

.footer__brand strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.16;
  font-weight: var(--site-font-weight) !important;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  color: rgba(255,255,255,.68);
  font-size: 9.5px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.footer__nav a:hover {
  color: #fff;
  border-color: rgba(255,122,29,.46);
  background: rgba(255,122,29,.08);
  transform: translateY(-1px);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255,122,29,.18);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.footer__cta:hover {
  background: var(--orange2);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(255,122,29,.24);
}

.footer__bottom {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.48);
  font-size: 9.5px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: #0b1c39 !important;
}

.footer__bottom span:last-child {
  color: rgba(255,255,255,.62);
}

@media (max-width: 1300px) {
  .app { padding-left: 230px; }
  .sidebar { width: 230px; }
}

@media (max-width: 1120px) {
  .footer__main {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0 18px;
  }

  .footer__nav { justify-content: flex-start; }
  .footer__cta { justify-self: start; }
}

@media (max-width: 860px) {
  .app { padding-left: 0; }

  .sidebar {
    position: relative !important;
    width: 100%;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    z-index: 5;
  }

  .topbar {
    top: 0;
    overflow-x: auto;
  }

  .menu {
    gap: 18px;
    min-width: max-content;
    padding-right: 16px;
  }

  .footer__inner { padding: 0 18px !important; }

  .footer__main {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 0 18px;
  }

  .footer__brand { align-items: center; }
  .footer__logo { width: 68px; }
  .footer__brand small { white-space: normal; }
  .footer__nav { justify-content: flex-start; gap: 7px; }
  .footer__nav a { min-height: 31px; }
  .footer__cta { min-height: 34px; }

  .footer__bottom {
    min-height: auto;
    padding: 14px 0 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 640px) {
  .topbar { height: auto; align-items: flex-start; gap: 10px; padding: 10px 12px; }
  .menu { flex-wrap: wrap; gap: 14px 18px; min-width: 0; }
  .hero__inner { padding: 36px 18px 0 20px; }
  .hero { height: auto; min-height: 270px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 13px; }
  .section { padding: 0 12px; margin-bottom: 28px; }
  .section-title { font-size: 15px; }
}

/* Принудительная фиксация цвета футера под цвет боковой панели */
.footer,
.footer__inner,
.footer__main,
.footer__bottom {
  background: #0b1c39 !important;
  background-color: #0b1c39 !important;
  background-image: none !important;
}
