/* Дополнения: меню, адаптив, SEO-блок */

.header {
  overflow: visible;
}

.header .box_logo .logo {
  text-decoration: none;
  border: 0;
}

.header .box_logo .logo:hover,
.footer .box_logo .logo:hover {
  opacity: 0.85;
}

.footer .box_logo .logo {
  display: inline-block;
  text-decoration: none;
  border: 0;
}

.box_zag h1 {
  font-size: 50px;
  line-height: 1.28;
}

.header .menu > li {
  position: relative;
}

.header .menu > li > a {
  text-decoration: none;
}

.header .has-sub > .sub-toggle::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
}

.header .row_bottom .menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  max-height: 70vh;
  overflow: auto;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: rgba(22, 24, 26, 0.98);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  z-index: 1000;
}

.header .row_bottom .menu .has-sub:hover > .submenu,
.header .row_bottom .menu .has-sub:focus-within > .submenu,
.header .row_bottom .menu .has-sub.open > .submenu {
  display: block;
}

.header .row_bottom .menu .submenu li {
  padding: 0;
}

.header .row_bottom .menu .submenu a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  border: 0;
}

.header .row_bottom .menu .submenu a:hover,
.header .row_bottom .menu .submenu a:focus {
  color: #f4ab37;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
}

.header .row_bottom .menu .submenu .sub-cap {
  padding: 10px 16px 4px;
  color: #6995b3;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bg2 .box_container .box ul li a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 78, 87, 0.25);
}

.bg2 .box_container .box ul li a:hover {
  color: #ce2d2d;
  border-bottom-color: #ce2d2d;
}

.bg2 .box_container .box.box3 ul li,
.bg2 .box_container .box.box3 ul li a {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.bg2 .box_container .box.box3 ul li a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.bg5 .box .zag a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 33, 34, 0.2);
}

.bg5 .box .zag a:hover {
  color: #ce2d2d;
}

.brand-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 10px auto 0;
  max-width: 980px;
  padding: 0 15px 10px;
}

.brand-links a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.brand-links a:hover {
  background: #fff;
  color: #1f2122;
}

.seo-block .brand-links a {
  color: #1f2122;
  border-color: rgba(31, 33, 34, 0.25);
}

.seo-block .brand-links a:hover {
  background: #1f2122;
  color: #fff;
}

.seo-block {
  background: #f6fcff;
  color: #1a282f;
  padding: 72px 0;
}

.seo-block h2 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #1f2122;
}

.seo-block h3 {
  font-size: 22px;
  margin: 22px 0 10px;
  color: #1f2122;
}

.seo-block p,
.seo-block li {
  font-size: 16px;
  line-height: 1.7;
}

.seo-block p {
  margin: 0 0 14px;
}

.seo-block ul {
  margin: 0 0 16px 18px;
  padding: 0;
}

.seo-block a {
  color: #2f628c;
}

@media (max-width: 1440px) {
  .box_zag h1 {
    font-size: 40px;
  }
}

@media (max-width: 1199px) {
  .box_zag h1 {
    font-size: 36px;
  }
  .header .row_bottom .menu {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 18px;
  }
}

@media (max-width: 991px) {
  .box_zag h1 {
    font-size: 30px;
  }
  .bg2 .box_container {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .bg2 .box_container .box,
  .bg2 .box_container .box.box3 {
    width: 50%;
    max-width: 50%;
    padding-bottom: 28px;
    background-position: center bottom;
  }
  .bg1 .box_carousel {
    max-width: 220px;
  }
  .bg1 .box_carousel .box1 .box_img img {
    width: 180px;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .box_zag h1 {
    font-size: 26px;
  }
  .bg1 .box_zag br {
    display: block;
  }
  .header .row_bottom .menu .submenu {
    position: static;
    min-width: 0;
    max-height: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 8px;
  }
  .header .row_bottom .menu .has-sub:hover > .submenu {
    display: none;
  }
  .header .row_bottom .menu .has-sub.open > .submenu,
  .header .row_bottom .menu .has-sub:focus-within > .submenu {
    display: block;
  }
  .header .row_bottom .menu .submenu a {
    padding: 9px 8px;
    font-size: 16px;
  }
  .bg1 {
    padding: 118px 0 36px;
  }
  .bg1 .box_btn .text {
    max-width: 100%;
  }
  .bg2 .box_container {
    max-width: 520px;
  }
  .bg2 .box_container .box,
  .bg2 .box_container .box.box3 {
    width: 100%;
    max-width: 100%;
  }
  .bg2 .box_container .box.box3 ul li,
  .bg2 .box_container .box.box3 ul li a {
    color: #1a282f;
    border-bottom-color: rgba(26, 40, 47, 0.25);
  }
  .bg5 .box_container {
    margin: 0;
  }
  .bg5 .box_container .box {
    width: calc(50% - 14px);
  }
  .seo-block {
    padding: 48px 0;
  }
  .seo-block h2 {
    font-size: 26px;
  }
  .my_btn,
  .vk-btn {
    white-space: normal;
    text-align: center;
    height: auto;
  }
}

@media (max-width: 479px) {
  .box_zag h1 {
    font-size: 22px;
  }
  .header .box_logo {
    width: auto;
    max-width: 46%;
  }
  .header .box_logo .logo img,
  .header.active .box_logo .logo img {
    max-height: 42px;
  }
  .header .box_phone .phone {
    font-size: 12px;
  }
  .bg5 .box_container .box {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .footer .row_top .box_descr .box {
    width: 100%;
  }
  .brand-links a {
    font-size: 13px;
    padding: 7px 10px;
  }
}

/* Читаемая типографика и новый интерфейс */
body {
  font-family: MullerRegular, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a282f;
}

h1, h2, h3, h4, h5, h6,
.box_zag .zag {
  font-family: Roboto, MullerMedium, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.header .row_bottom .menu > li > a,
.header .box_phone,
.header .box_logo .logo_text {
  font-family: MullerMedium, "Segoe UI", sans-serif;
}

.bg5 .box .inner > img,
.model-hero img,
.brand-visual img {
  width: 100%;
  height: 168px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.model-more {
  display: inline-block;
  margin-top: 8px;
  color: #2f628c;
  font-family: MullerMedium, "Segoe UI", sans-serif;
  font-size: 14px;
}

.brand-visual {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
}

.brand-visual img {
  height: 280px;
}

body.page-auto .header {
  background: rgba(18, 20, 22, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.model-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #141618;
  padding: 148px 0 72px;
  color: #fff;
}

.bg1 .bg_img .parallax-img,
.model-page > .parallax-img {
  position: absolute;
  left: -6%;
  right: -6%;
  top: -22%;
  height: 150%;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.62) saturate(0.9);
  transform: scale(1.12);
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}

body.page-auto .bg1 .bg_img::after,
.model-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.62), rgba(8, 10, 12, 0.78));
  background-image: linear-gradient(180deg, rgba(8, 10, 12, 0.62), rgba(8, 10, 12, 0.78));
}

.pop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #1f2122;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.pop-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #fff;
}

.pop-card span {
  display: block;
  padding: 4px 16px 0;
  font-family: MullerMedium, "Segoe UI", sans-serif;
  font-size: 18px;
}

.pop-card small {
  display: block;
  padding: 2px 16px 16px;
  color: #5c6b73;
  font-size: 13px;
}

.pop-card:hover {
  transform: translateY(-3px);
  color: #1f2122;
}

.request-btn {
  display: inline-block;
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  background: #ce2d2d;
  color: #fff;
  padding: 0 28px;
  height: 54px;
  line-height: 54px;
  cursor: pointer;
  font-family: sansationlight, MullerMedium, "Segoe UI", sans-serif;
  font-size: 16px;
}

.request-btn:hover {
  background: #a82424;
  color: #fff;
}

.model-page .request-btn {
  height: 74px;
  line-height: 74px;
  padding: 0 32px;
  margin-top: 0;
  font-size: 18px;
}

.my_btn.vk-btn,
a.vk-btn {
  background: #4a76a8 !important;
  border-color: #4a76a8 !important;
  color: #fff !important;
}

.my_btn.vk-btn:hover,
a.vk-btn:hover {
  background: #3b5f8a !important;
  color: #fff !important;
}

.bg1 .box_carousel a.box_img {
  display: block;
  text-decoration: none;
}

.bg1 .box_carousel .box1 .box_img img.car-slide {
  width: 200px;
  max-width: 200px;
  max-height: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}

.bg1 .box_carousel .box_descr a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.bg1 .box_carousel .box_descr a:hover {
  color: #f4ab37;
  border-bottom-color: #f4ab37;
}

.model-hero .all-models {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin: 16px 0 0;
  line-height: 1.2;
  text-align: center;
}

.model-page .container,
.bg1 .wrap_main {
  position: relative;
  z-index: 2;
}

.model-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.model-hero {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(20, 30, 40, 0.08);
}

.model-hero img {
  height: auto;
  max-height: 420px;
}

.model-kicker {
  color: #6995b3;
  font-family: MullerMedium, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.model-copy h1 {
  font-size: 42px;
  color: #fff;
  margin-bottom: 12px;
}

.model-copy p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.spec-list li {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.model-actions a {
  text-decoration: none;
}

.call-fab {
  position: fixed;
  right: 30px;
  bottom: 92px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #1f2122;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.call-fab:hover {
  background: #ce2d2d;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 18, 20, 0.62);
}

.contact-modal.open {
  display: flex;
}

.contact-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.contact-card h3 {
  font-size: 28px;
  margin-bottom: 6px;
}

.contact-card p {
  margin: 0 0 16px;
  color: #3d4e57;
}

.contact-card .close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f5;
  cursor: pointer;
  font-size: 20px;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-family: MullerMedium, "Segoe UI", sans-serif;
}

.contact-actions a span {
  opacity: 0.85;
  font-size: 13px;
}

.act-call { background: #1f2122; }
.act-tg { background: #2aa1d6; }
.act-max { background: #6b4cff; }

.cookie-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  max-width: 380px;
  background: rgba(31, 33, 34, 0.94);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: none;
}

.cookie-bar.show {
  display: block;
}

.cookie-bar p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}

.cookie-bar button {
  border: 0;
  background: #fff;
  color: #1f2122;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: MullerMedium, "Segoe UI", sans-serif;
}

.mobile-dock {
  display: none;
}

.site-credit {
  text-align: center;
  padding: 8px 16px 18px;
  font-size: 13px;
  line-height: 1.4;
  color: #7d8b93;
  background: #f6fcff;
}

.site-credit a {
  color: #2f628c;
  font-family: MullerMedium, "Segoe UI", sans-serif;
  text-decoration: none;
}

@media (max-width: 900px) {
  .model-layout {
    grid-template-columns: 1fr;
  }
  .model-copy h1 {
    font-size: 32px;
  }
  .model-page {
    padding-top: 96px;
  }
}

@media (max-width: 767px) {
  .call-fab,
  .fixed-vk-btn {
    display: none !important;
  }
  .mobile-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
  }
  .mobile-dock button,
  .mobile-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    border: 0;
    text-decoration: none;
    font-family: MullerMedium, "Segoe UI", sans-serif;
    font-size: 15px;
    color: #fff;
  }
  .dock-call { background: #1f2122; }
  .dock-second { background: #ce2d2d; }
  .cookie-bar {
    left: 10px;
    right: 10px;
    bottom: 72px;
    max-width: none;
  }
  body {
    padding-bottom: 74px;
  }
  .brand-visual img {
    height: 180px;
  }
  .pop-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479px) {
  .pop-grid {
    grid-template-columns: 1fr;
  }
}
