/* Basis-Styles (Reset + Typografie) */
:root{
  --c-primary:#CB212A;
  --c-secondary:#042237;
  --c-white:#fff;

  --radius:14px;
  --shadow:0 10px 30px rgba(4,34,55,.08);

  --container:1200px;
  --gap:24px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--c-secondary);
  background: var(--c-white);
  line-height: 1.5;
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--container); margin:0 auto; padding:0 16px}
.section{padding:56px 0}

.h1{font-size:40px; line-height:1.1; margin:0 0 12px}
.h2{font-size:28px; line-height:1.2; margin:0 0 12px}
.h3{font-size:18px; margin:0 0 8px}
.lead{font-size:16px; margin:0 0 18px; opacity:.9}

.grid{display:grid; gap:var(--gap)}

.topbar{
  background:#CB212A;
  color:#fff;
  font-size:14px;
}

.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:40px;
}

.topbar-nav{
  display:flex;
  gap:24px;
}

.topbar-nav a{
  color:#fff;
  text-decoration:none;
  font-weight:500;
}

.topbar-nav a:hover{
  text-decoration:underline;
}

.mainbar{
  background:#fff;
  border-bottom:1px solid #e6e6e6;
}

.mainbar-inner{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  height:64px;
  gap:32px;
}

.header-cities{
  display:flex;
  justify-content:center;
  gap:48px;
}

.header-cities a{
  color:#042237;
  font-size: 18px;
  text-decoration:none;
  font-weight:600;
}

.header-cities a:hover{
  text-decoration:underline;
}

.header-phone{
  text-align:right;
  font-size:16px;
}

.header-phone span{
  display:block;
  opacity:.75;
}

.header-phone a{
  font-size:16px;
  font-weight:700;
  color:#CB212A;
  text-decoration:none;
}

.header-logo{
  display:flex;
  align-items:center;
  height:100%;
}

.header-logo a{
  display:inline-flex;
  align-items:center;
}

.header-logo img{
  height:40px;      /* ключевой параметр */
  width:auto;
  display:block;
}

.header-phone a{
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  gap:6px;
}

.header-phone .phone-prefix{
  color:#000000; /* чёрный/тёмно-синий как в макете */
}

.header-phone .phone-number{
  color:#E61A1A; /* фирменный красный */
}

/* ===== MOBILE HEADER ===== */
@media (max-width: 1024px) {

  /* Скрываем лишнее */
  .top-bar,
  .main-nav {
    display: none;
  }

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .header-phone {
    font-weight: 700;
    font-size: 12px;
  }

  /* Burger */
  .burger {
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }

  .burger span {
    height: 3px;
    width: 100%;
    background: #032236;
    border-radius: 2px;
  }

@media (max-width: 767px) {
  .mobile-menu.is-open {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #032236;
  }
}
  
.mobile-menu-inner {
  padding: 96px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-end;
  text-align: right;
}

.mobile-block {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}

  .mobile-block h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
	text-align: right;
  }

  .mobile-block a {
    display: block;
    color: #dbe5ef;
    font-size: 16px;
    padding: 10px 0;
    text-decoration: none;
	text-align: right;
  }

  .mobile-block a:hover {
    color: #fff;
  }
}

/* Desktop */
.header-desktop {
  display: block;
}

/* =========================
 MOBILE HEADER FIX
 ========================= */
@media (max-width: 767px) {

  /* Скрываем города */
  .header-cities,
  .topbar-nav {
    display: none !important;
  }

  /* Оставляем только лого + телефон + бургер */
  .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.mobile-menu-close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.mobile-menu-close span:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 767px) {
  .header-phone > span {
    display: none;
  }
}

.mobile-menu {
  display: none !important;
}

@media (max-width: 767px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .burger {
    margin-left: 12px;
  }
}