/* ОчагЛэнд — фирменная надстройка поверх прежних styles.css / custom.css */
:root { --ochag-graphite: #1C2026; --ochag-orange: #FF6200; --ochag-paper: #FAF8F5; --ochag-border: #E9E9E9; }
.header .header-top-top, .header .header-top { background: var(--ochag-graphite) !important; }
.header .header-top-top a, .header .header-top a, .header .header-top-top .city { color: #fff; }
.header .header-top-top a:hover, .header .header-top a:hover { color: #FF914A; }
.header .header-top { border-bottom: 3px solid var(--ochag-orange); }
.header .header-top .wrap { gap: 22px; }
.header .logo a { text-decoration: none; }
.header .logo .ochagland-logo-img { display: block; width: clamp(195px, 22vw, 307px); max-width:100%; height:auto; }
.header .top_cont { display:flex; align-items:center; gap:18px; }
.header .top_cont .phones { display:flex; flex-direction:column; gap:5px; }
.header .top_cont .phones br { display:none; }
.header .top_cont .phones .top_phone { font-weight:700; white-space:nowrap; }
.header .wa_tg, .footer .wa_tg { display:flex; align-items:center; gap:13px; }
.header .wa_tg a, .footer .wa_tg a { display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
.header .wa_tg .wa_wrap { color:#25D366 !important; }
.ochagland-header-info { color:#ECECEB; font-size:13px; line-height:1.6; }
.ochagland-header-info a { color:inherit; }
.header .catalog-nav-button { background:var(--ochag-orange); color:#fff; }
.header .main-nav-wrap { border-bottom:2px solid var(--ochag-orange); }
.footer { background:var(--ochag-graphite) !important; color:#F3F3F3; }
.footer a { color:#F3F3F3; }
.footer a:hover { color:#FF914A; }
.footer .ochagland-logo-img { width:min(100%,307px); height:auto; }
.footer .footer-address, .footer .ochagland-footer-contact { margin-top:14px; line-height:1.6; }
.footer .footer-company { overflow-wrap:anywhere; }
.ochagland-service-info { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:26px; padding-top:20px; padding-bottom:18px; border-top:1px solid #555; }
.ochagland-service-info strong { color:#fff; }
.ochagland-service-info p { color:#DDDEDF; margin:8px 0 0; }


/* DESKTOP: аккуратные цвета и размеры — меню не перестраиваем */
@media (min-width:1051px) {
  .header .header-top { border-bottom:1px solid #FF6200 !important; }
  .header .main-nav-wrap { border-bottom:1px solid #FF6200 !important; }
  .header .top_cont .phones .top_phone { font-size:16px !important; font-weight:700 !important; line-height:1.35 !important; }
  .header .catalog-nav-button { background:#FF6200 !important; }
  .header .search-form-wrap button[type="submit"] { background:#FF6200 !important; border-color:#FF6200 !important; color:#fff !important; }
  .header .top_nav_wrap a.color { color:#fff !important; background:#FF6200 !important; }
}
/* Иконки MAX/WhatsApp — исходные цвета, без фильтров. */
.header .wa_tg.ochag-social-icons,
.footer .wa_tg.ochag-social-icons,
.header .wa_tg.ochag-social-only,
.footer .wa_tg.ochag-social-only { display:flex; align-items:center; gap:10px; flex-wrap:nowrap; }
.header .wa_tg.ochag-social-icons a,
.footer .wa_tg.ochag-social-icons a,
.header .wa_tg.ochag-social-only a,
.footer .wa_tg.ochag-social-only a {
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; min-width:32px;
  margin:0; padding:0; border:0; box-shadow:none;
  background:transparent !important; line-height:0; text-decoration:none;
}
.header .wa_tg.ochag-social-icons img,
.footer .wa_tg.ochag-social-icons img,
.header .wa_tg.ochag-social-only img,
.footer .wa_tg.ochag-social-only img {
  display:block; width:32px !important; height:32px !important;
  max-width:32px; object-fit:contain; filter:none !important;
  opacity:1 !important; content:normal !important;
}
/* ПЛАНШЕТЫ: сохраняем исходную структуру сайта. */
@media (min-width:651px) and (max-width:1050px) {
  .header .header-top .wrap { flex-wrap:wrap; justify-content:center; }
  .header .top_cont { flex-wrap:wrap; justify-content:center; }
  .ochagland-header-info { text-align:center; }
}
/* ТЕЛЕФОНЫ: исправляем только верхнюю часть, не трогаем каталог и меню. */
@media (max-width:650px) {
  /* Старые мобильные CSS принудительно показывают белую шапку.
     Сохраняем белый фон, но используем ТЁМНУЮ версию логотипа. */
  html.m .header .header-top,
  body .header .header-top {
    background:#fff !important;
    border-bottom:1px solid #FF6200 !important;
  }
  html.m .header .header-top .logo .ochagland-logo-img,
  .header .header-top .logo .ochagland-logo-img {
    content:url('/assets/ochagland/logo.svg') !important;
    display:block !important;
    width:190px !important;
    max-width:100% !important;
    height:auto !important;
    object-fit:contain;
  }
  .header .header-top .wrap {
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px 12px !important;
    padding-top:8px !important;
    padding-bottom:8px !important;
  }
  .header .header-top .header-nav {
    width:100%; max-width:100%; margin:0 !important;
    display:flex; justify-content:center !important; align-items:center;
  }
  .header .header-top .logo { margin:0 auto !important; }
  .header .header-top .ochagland-header-info {
    order:2; width:100%; margin:0 !important;
    text-align:center !important; font-size:11px !important;
    line-height:1.35 !important; color:#1C2026 !important;
  }
  .header .header-top .ochagland-header-info a { color:#1C2026 !important; }
  .header .header-top .top_cont {
    order:3; width:100%; max-width:100%; margin:0 !important;
    display:flex !important; flex-wrap:nowrap !important;
    justify-content:center !important; align-items:center !important;
    gap:12px !important;
  }
  /* Старый шаблон мог добавлять большую иконку телефона псевдоэлементом. */
  .header .header-top .top_cont .phones::before,
  .header .header-top .top_cont .phones::after { content:none !important; display:none !important; }
  .header .header-top .top_cont .phones {
    display:flex !important; flex-direction:column !important;
    align-items:flex-start !important; justify-content:center;
    flex:0 1 auto; min-width:0; margin:0 !important;
    gap:2px !important; background:none !important;
  }
  .header .header-top .top_cont .phones .top_phone {
    display:block !important; font-size:12px !important;
    font-weight:700 !important; line-height:1.25 !important;
    white-space:nowrap !important; color:#1C2026 !important;
  }
  .header .header-top .top_cont .phones br { display:none !important; }
  .header .header-top .top_cont .wa_tg {
    display:flex !important; flex-wrap:nowrap !important;
    align-items:center !important; justify-content:center !important;
    gap:8px !important; flex:0 0 auto; margin:0 !important;
  }
  .header .header-top .top_cont .wa_tg a {
    display:inline-flex !important; width:30px !important;
    height:30px !important; min-width:30px !important;
    margin:0 !important; padding:0 !important; background:none !important;
  }
  .header .header-top .top_cont .wa_tg a img {
    display:block !important; width:30px !important; height:30px !important;
    max-width:30px !important; filter:none !important;
    opacity:1 !important; content:normal !important;
  }
  .header .main-nav-wrap { border-bottom:1px solid #FF6200 !important; }
  .ochagland-service-info { grid-template-columns:1fr; gap:10px; }
  .footer .wrap.row > .col-3,
  .footer .wrap.row > .col-6 { width:100%; max-width:100%; }
}
/* ОчагЛэнд: исправление ТОЛЬКО мобильной шапки.
   ДОБАВИТЬ В САМЫЙ КОНЕЦ существующего ochagland.css.
   Старые стили НЕ удалять. */
@media (max-width: 650px) {
  html.m .header .header-top,
  .header .header-top {
    background: #fff !important;
    border-bottom: 1px solid #FF6200 !important;
  }

  .header .header-top > .wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 8px 12px 10px !important;
    min-height: 0 !important;
  }

  .header .header-top .header-nav,
  .header .header-top .logo {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header .header-top .logo .ochagland-logo-img {
    content: url('/assets/ochagland/logo.svg') !important;
    width: 170px !important;
    max-width: 85vw !important;
    height: auto !important;
    display: block !important;
  }

  .header .header-top .ochagland-header-info {
    display: block !important;
    order: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    color: #1C2026 !important;
  }
  .header .header-top .ochagland-header-info a {
    color: #1C2026 !important;
  }

  .header .header-top .top_cont {
    display: flex !important;
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    min-height: 0 !important;
  }

  /* Убираем телефонные картинки, добавляемые старыми CSS. */
  .header .header-top .top_cont::before,
  .header .header-top .top_cont::after,
  .header .header-top .top_cont .phones::before,
  .header .header-top .top_cont .phones::after,
  .header .header-top .top_cont .top_phone::before,
  .header .header-top .top_cont .top_phone::after {
    content: none !important;
    display: none !important;
  }

  .header .header-top .top_cont .phones {
    position: static !important;
    display: flex !important;
    flex: 0 1 auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 3px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    text-align: left !important;
  }
  .header .header-top .top_cont .phones br { display: none !important; }
  .header .header-top .top_cont .phones .top_phone {
    position: static !important;
    float: none !important;
    transform: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    color: #1C2026 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
  }

  .header .header-top .top_cont .wa_tg {
    position: static !important;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }
  .header .header-top .top_cont .wa_tg a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  .header .header-top .top_cont .wa_tg img {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    object-fit: contain !important;
    filter: none !important;
    opacity: 1 !important;
    content: normal !important;
  }
}

/* =========================================
   ОЧАГЛЭНД — КОМПАКТНАЯ МОБИЛЬНАЯ ШАПКА
   Скрываем только адрес и электронную почту
   ========================================= */

@media screen and (max-width: 650px) {

    /* Убираем верхнюю полосу с адресом */
    .header .header-top-top {
        display: none !important;
    }

    /* Скрываем только email в блоке контактов */
    .header .ochagland-header-info a[href^="mailto:"] {
        display: none !important;
    }

}
