/* ================================================================
   ЕВРОСЕТКА — Единая навигация v2
   Файл: evrosetka-nav.css
   Подключается через functions.php (wp_enqueue_style)
================================================================ */

/* ─── CSS-переменные ─────────────────────────────────────────── */
:root {
  --evro-orange:      #D4622A;
  --evro-orange-dk:   #b8511f;
  --evro-topbar-bg:   #1a1a1a;
  --evro-topbar-txt:  #a0a0a0;
  --evro-topbar-link: #d8d8d8;
  --evro-navbar-bg:   #ffffff;
  --evro-navbar-txt:  #1a1a1a;
  --evro-drop-bg:     #ffffff;
  --evro-drop-bd:     #e8e8e8;
  --evro-open-clr:    #3cb371;
  --evro-closed-clr:  #cc4444;
  --evro-nav-h:       64px;
  --evro-top-h:       36px;
  --evro-radius:      4px;
  --evro-shadow:      0 2px 16px rgba(0,0,0,.10);
  --evro-drop-shadow: 0 8px 24px rgba(0,0,0,.12);
  --evro-trans:       0.2s ease;
}

/* ─── Сброс старых шапочных блоков темы ─────────────────────── */
/* Они больше не рендерятся, но на всякий случай */
.gdlr-header-wrapper,
.top-navigation-wrapper,
.gdlr-logo-wrapper,
.logo-right-area,
#gdlr-header-substitute,
.gdlr-navigation-wrapper {
  display: none !important;
}

/* ─── Общий сброс для нашего контекста ──────────────────────── */
.evro-topbar *,
.evro-site-header *,
.evro-mobile-menu * {
  box-sizing: border-box;
}
.evro-topbar a,
.evro-site-header a,
.evro-mobile-menu a {
  text-decoration: none;
}
.evro-topbar ul,
.evro-site-header ul,
.evro-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ================================================================
   TOPBAR
================================================================ */
.evro-topbar {
  background: var(--evro-topbar-bg);
  height: var(--evro-top-h);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 12.5px;
  line-height: var(--evro-top-h);
  color: var(--evro-topbar-txt);
  position: relative;
  z-index: 900;
}
.evro-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

/* Левая: часы + статус */
.evro-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.evro-topbar__hours {
  display: flex;
  align-items: center;
  gap: 5px;
}
.evro-topbar__hours svg {
  opacity: .55;
  flex-shrink: 0;
}

/* Индикатор статуса */
.evro-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  line-height: 1;
}
.evro-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.evro-status-badge--open {
  color: var(--evro-open-clr);
  background: rgba(60,179,113,.12);
}
.evro-status-badge--open::before  { background: var(--evro-open-clr); }
.evro-status-badge--closed {
  color: var(--evro-closed-clr);
  background: rgba(204,68,68,.12);
}
.evro-status-badge--closed::before { background: var(--evro-closed-clr); }
.evro-status-badge--soon {
  color: #e07346;
  background: rgba(224,115,70,.15);
}
.evro-status-badge--soon::before { background: #e07346; }

/* Переключатель языка — строго по центру через grid */
.evro-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
}
.evro-lang__sep {
  color: #444;
  user-select: none;
  padding: 0 1px;
}
.evro-lang__btn {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--evro-radius);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--evro-topbar-txt);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: color var(--evro-trans), background var(--evro-trans);
  line-height: 1.4;
}
.evro-lang__btn:hover,
.evro-lang__btn[aria-current="true"],
.evro-lang__btn--active {
  color: var(--evro-orange);
  background: rgba(255,255,255,.08);
}

/* Правая: иконка + список email */
.evro-topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
  padding-left: 16px;
}
.evro-topbar__email-icon {
  opacity: .55;
  flex-shrink: 0;
  color: var(--evro-topbar-link);
}
.evro-topbar__email-list {
  display: flex;
  align-items: center;
  gap: 10px;
}
.evro-topbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--evro-topbar-link);
  transition: color var(--evro-trans);
}
.evro-topbar__contact:hover { color: var(--evro-orange); }
.evro-topbar__email-sep { color: #444; padding: 0 2px; }

/* ================================================================
   SITE HEADER — sticky wrapper
================================================================ */
.evro-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--evro-shadow);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ================================================================
   NAVBAR
================================================================ */
.evro-navbar {
  background: var(--evro-navbar-bg);
  height: var(--evro-nav-h);
}
.evro-navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Логотип ────────────────────────────────────────────────── */
.evro-navbar__logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-right: 12px;
  gap: 2px;
}
.evro-navbar__logo img {
  height: 96px;
  width: auto;
  display: block;
}
.evro-navbar__logo-desc {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(0,0,0,.4);
  text-transform: lowercase;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.evro-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--evro-navbar-txt);
  line-height: 1;
}
.evro-logo-text em {
  font-style: normal;
  color: var(--evro-orange);
}

/* ================================================================
   ОСНОВНОЕ МЕНЮ (WordPress wp_nav_menu output)
================================================================ */
.evro-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Верхний уровень */
.evro-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
}
.evro-nav__list > li {
  position: relative;
  list-style: none !important;
}
.evro-nav__list > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: var(--evro-nav-h);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--evro-navbar-txt);
  white-space: nowrap;
  position: relative;
  transition: color var(--evro-trans);
}
.evro-nav__list > li > a:hover,
.evro-nav__list > li.is-open > a,
.evro-nav__list > li > a[aria-expanded="true"] {
  color: var(--evro-orange);
}

/* Шеврон у пунктов с подменю */
.evro-nav__list > li.menu-item-has-children > a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  order: 2;
  transition: transform var(--evro-trans), opacity var(--evro-trans);
  flex-shrink: 0;
  opacity: .45;
}
.evro-nav__list > li.menu-item-has-children.is-open > a::before,
.evro-nav__list > li.menu-item-has-children > a[aria-expanded="true"]::before {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23D4622A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: .8;
}

/* ─── Dropdown (sub-menu) ────────────────────────────────────── */
.evro-nav__list > li > ul.sub-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  background: var(--evro-drop-bg);
  border: 1px solid var(--evro-drop-bd);
  border-top: 3px solid var(--evro-orange);
  border-radius: 0 0 var(--evro-radius) var(--evro-radius);
  box-shadow: var(--evro-drop-shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--evro-trans),
    visibility var(--evro-trans),
    transform var(--evro-trans);
  z-index: 100;
  margin: 0 !important;
}
.evro-nav__list > li.is-open > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.evro-nav__list .sub-menu li {
  list-style: none !important;
}
.evro-nav__list .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
  transition: background var(--evro-trans), color var(--evro-trans);
  white-space: nowrap;
}
.evro-nav__list .sub-menu li a:hover {
  background: #fff5f1;
  color: var(--evro-orange);
}

/* ─── Правые кнопки ──────────────────────────────────────────── */
.evro-navbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Иконка-кнопка (поиск) */
.evro-btn-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--evro-radius);
  color: var(--evro-navbar-txt);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--evro-trans), color var(--evro-trans);
  flex-shrink: 0;
}
.evro-btn-icon:hover {
  background: #f4f4f4;
  color: var(--evro-orange);
}

/* Кнопка «Заказать звонок» — используется только в мобильном меню footer */
.evro-btn-callback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 38px;
  background: var(--evro-orange);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  border-radius: var(--evro-radius);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background var(--evro-trans), box-shadow var(--evro-trans);
  flex-shrink: 0;
}
.evro-btn-callback:hover {
  background: var(--evro-orange-dk) !important;
  box-shadow: 0 4px 14px rgba(212,98,42,.35);
  color: #fff !important;
}
.evro-btn-callback svg { flex-shrink: 0; }

/* Лёгкая «пульсация» иконки телефона, чтобы привлечь внимание */
@keyframes evro-cb-ring {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(12deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  50% { transform: rotate(0); }
}
.evro-btn-callback--primary svg {
  transform-origin: 50% 50%;
  animation: evro-cb-ring 3.5s ease-in-out infinite;
}
.evro-btn-callback--primary:hover svg { animation: none; }

/* ─── Модалка «Заказать звонок» ──────────────────────────────── */
.evro-callback-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}
.evro-callback-modal[hidden] { display: none; }
.evro-callback-modal.is-open { opacity: 1; }

.evro-callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, .55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.evro-callback-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid var(--evro-orange);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  padding: 28px 28px 24px;
  transform: translateY(12px);
  transition: transform .25s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.evro-callback-modal.is-open .evro-callback-modal__dialog {
  transform: translateY(0);
}

.evro-callback-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #999;
  cursor: pointer;
  transition: background var(--evro-trans), color var(--evro-trans);
}
.evro-callback-modal__close:hover {
  background: #f4f4f4;
  color: var(--evro-orange);
}

.evro-callback-modal__head {
  text-align: center;
  margin-bottom: 18px;
}
.evro-callback-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff5f1;
  color: var(--evro-orange);
}
.evro-callback-modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--evro-navbar-txt);
  letter-spacing: .2px;
}
.evro-callback-modal__subtitle {
  margin: 0;
  font-size: 13.5px;
  color: #777;
  line-height: 1.45;
}

/* CF7 поля внутри модалки */
.evro-callback-modal__body .wpcf7 { margin: 0; }
.evro-callback-modal__body .wpcf7-form p {
  margin: 0 0 12px;
}
.evro-callback-modal__body .wpcf7-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #555;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.evro-callback-modal__body .wpcf7-form input[type="text"],
.evro-callback-modal__body .wpcf7-form input[type="tel"],
.evro-callback-modal__body .wpcf7-form input[type="email"],
.evro-callback-modal__body .wpcf7-form select,
.evro-callback-modal__body .wpcf7-form textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--evro-navbar-txt);
  background: #fafafa;
  border: 1.5px solid #e6e6e6;
  border-radius: var(--evro-radius);
  outline: none;
  transition: border-color var(--evro-trans), background var(--evro-trans);
  box-sizing: border-box;
  font-family: inherit;
  margin-top: 4px;
  -webkit-appearance: none;
  appearance: none;
}
.evro-callback-modal__body .wpcf7-form textarea {
  height: auto;
  min-height: 90px;
  padding: 10px 14px;
  resize: vertical;
  line-height: 1.4;
}
.evro-callback-modal__body .wpcf7-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round'><path d='M1 3l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.evro-callback-modal__body .wpcf7-form .wpcf7-form-control-wrap { display: block; }
.evro-callback-modal__body .wpcf7-form input:focus,
.evro-callback-modal__body .wpcf7-form select:focus,
.evro-callback-modal__body .wpcf7-form textarea:focus {
  border-color: var(--evro-orange);
  background: #fff;
}
.evro-callback-modal__body .wpcf7-form .wpcf7-not-valid {
  border-color: #cc4444;
  background: #fff5f5;
}
.evro-callback-modal__body .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  color: #cc4444;
  font-size: 12px;
  font-weight: 500;
}
.evro-callback-modal__body .wpcf7-form input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--evro-orange);
  border: none;
  border-radius: var(--evro-radius);
  cursor: pointer;
  transition: background var(--evro-trans), box-shadow var(--evro-trans);
  font-family: inherit;
}
.evro-callback-modal__body .wpcf7-form input[type="submit"]:hover {
  background: var(--evro-orange-dk);
  box-shadow: 0 6px 18px rgba(212,98,42,.4);
}
.evro-callback-modal__body .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}
.evro-callback-modal__body .wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: var(--evro-radius);
  font-size: 13px;
  line-height: 1.45;
}
.evro-callback-modal__body .wpcf7 form.sent .wpcf7-response-output {
  border-color: #3cb371 !important;
  background: #f1faf4;
  color: #1f7a48;
}
.evro-callback-modal__body .wpcf7 form.invalid .wpcf7-response-output,
.evro-callback-modal__body .wpcf7 form.failed .wpcf7-response-output {
  border-color: #cc4444 !important;
  background: #fdf2f2;
  color: #8a2a2a;
}

@media (max-width: 480px) {
  .evro-callback-modal__dialog { padding: 24px 18px 18px; }
  .evro-callback-modal__title  { font-size: 19px; }
}

/* ─── Слайд с телефонами ─────────────────────────────────────── */
.evro-phones {
  position: relative;
  flex-shrink: 0;
}
.evro-phones__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: #fff;
  color: var(--evro-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1.5px solid var(--evro-orange);
  border-radius: var(--evro-radius);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background var(--evro-trans), color var(--evro-trans), border-color var(--evro-trans);
}
.evro-phones__trigger:hover,
.evro-phones__trigger.is-open {
  background: #fff;
  color: var(--evro-orange-dk);
  border-color: var(--evro-orange-dk);
  box-shadow: none;
}

/* Icon-only вариант (без текста и chevron) */
.evro-phones__trigger--icon {
  width: 38px;
  padding: 0;
}
.evro-phones__trigger--icon svg { display: block; }
.evro-phones__chevron {
  transition: transform var(--evro-trans);
  flex-shrink: 0;
  opacity: .85;
}
.evro-phones__trigger.is-open .evro-phones__chevron {
  transform: rotate(180deg);
}

/* Выпадающая панель */
.evro-phones__drop {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--evro-drop-bd);
  border-top: 3px solid var(--evro-orange);
  border-radius: 0 0 var(--evro-radius) var(--evro-radius);
  box-shadow: var(--evro-drop-shadow);
  z-index: 200;
  padding: 4px 0 8px;
}
/* Невидимый «мостик» через 8px зазор, чтобы hover не разрывался */
.evro-phones__drop::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -11px;
  height: 11px;
}
.evro-phones__drop[hidden] { display: none; }

.evro-phones__drop-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #999;
  padding: 10px 16px 6px;
}
.evro-phones__row {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  border-bottom: 1px solid #f4f4f4;
}
.evro-phones__row:last-child { border-bottom: none; }
.evro-phones__dept {
  font-size: 11.5px;
  color: #888;
  margin-bottom: 2px;
}
.evro-phones__nums {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.evro-phones__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--evro-navbar-txt);
  letter-spacing: .3px;
  transition: color var(--evro-trans);
}
.evro-phones__num:hover { color: var(--evro-orange); }

/* ─── Гамбургер ──────────────────────────────────────────────── */
.evro-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: var(--evro-radius);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--evro-trans);
}
.evro-hamburger:hover { background: #f4f4f4; }
.evro-hamburger span {
  display: block;
  height: 2px;
  background: var(--evro-navbar-txt);
  border-radius: 2px;
  transition: transform var(--evro-trans), opacity var(--evro-trans), width var(--evro-trans);
  transform-origin: center;
}
.evro-hamburger span:nth-child(3) { width: 65%; }
/* Анимация → крестик */
.evro-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.evro-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.evro-hamburger[aria-expanded="true"] span:nth-child(3) {
  width: 100%;
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Мобильный телефон-иконка ───────────────────────────────── */
.evro-navbar__mob-phone {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--evro-orange);
  border-radius: var(--evro-radius);
  transition: background var(--evro-trans);
}
.evro-navbar__mob-phone:hover { background: #fff5f1; }

/* ================================================================
   МОБИЛЬНОЕ МЕНЮ
================================================================ */
.evro-mobile-menu {
  position: fixed;
  top: var(--evro-nav-h); /* JS корректирует под реальный размер header */
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 998;
  padding-bottom: 32px;
}
.evro-mobile-menu.is-open {
  transform: translateX(0);
}

/* Список пунктов */
.evro-mobile-menu__list {
  border-top: 1px solid var(--evro-drop-bd);
  margin: 0 !important;
  padding: 0 !important;
}
.evro-mobile-menu__item {
  border-bottom: 1px solid var(--evro-drop-bd);
  list-style: none !important;
}
.evro-mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--evro-navbar-txt);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--evro-trans), color var(--evro-trans);
  text-decoration: none;
}
.evro-mobile-menu__link:hover,
.evro-mobile-menu__link.is-open {
  color: var(--evro-orange);
  background: #fff5f1;
}
.evro-mobile-menu__chevron {
  width: 12px;
  height: 12px;
  opacity: .4;
  flex-shrink: 0;
  transition: transform var(--evro-trans);
}
.evro-mobile-menu__link.is-open .evro-mobile-menu__chevron {
  transform: rotate(180deg);
}

/* Подменю */
.evro-mobile-submenu {
  display: none;
  background: #fafafa;
  border-top: 1px solid var(--evro-drop-bd);
  padding: 0 !important;
  margin: 0 !important;
}
.evro-mobile-submenu.is-open { display: block; }
.evro-mobile-submenu li {
  border-bottom: 1px solid #f0f0f0;
  list-style: none !important;
}
.evro-mobile-submenu li:last-child { border-bottom: none; }
.evro-mobile-submenu li a {
  display: block;
  padding: 9px 20px 9px 32px;
  font-size: 13.5px;
  color: #555;
  transition: color var(--evro-trans), background var(--evro-trans);
}
.evro-mobile-submenu li a:hover {
  color: var(--evro-orange);
  background: #fff5f1;
}

/* Кнопка звонка внутри мобильного меню */
.evro-mobile-menu__footer {
  padding: 20px 20px 0;
}
.evro-mobile-menu__footer .evro-btn-callback {
  width: 100%;
  justify-content: center;
  height: 48px;
  font-size: 15px;
}

/* ================================================================
   ПЛАНШЕТНАЯ ВЕРСИЯ  769px – 1023px
================================================================ */
@media (min-width: 769px) and (max-width: 1023px) {
  .evro-topbar__inner { padding: 0 16px; }

  .evro-navbar__inner { padding: 0 16px; gap: 2px; }
  .evro-navbar__logo  { margin-right: 8px; }
  .evro-navbar__logo img { height: 48px; }

  /* Уплотняем пункты меню чтобы вместились */
  .evro-nav__list > li > a {
    padding: 0 10px;
    font-size: 13px;
  }

  .evro-navbar__actions { gap: 4px; margin-left: 6px; }

  /* Кнопка «Телефоны» — только иконка */
  .evro-phones__trigger {
    padding: 0 10px;
    font-size: 12px;
  }
  .evro-btn-callback {
    padding: 0 12px;
    font-size: 12px;
  }
}

/* ================================================================
   МОБИЛЬНАЯ ВЕРСИЯ  ≤ 768px
================================================================ */
@media (max-width: 768px) {
  /* Topbar: скрыть на мобильных — в шапке есть кнопка с телефоном */
  .evro-topbar {
    display: none !important;
  }

  /* Navbar */
  .evro-navbar { height: 56px; }
  .evro-navbar__inner {
    padding: 0 16px;
    gap: 0;
  }
  .evro-navbar__logo {
    margin-right: 0;
  }
  .evro-navbar__logo img { height: 44px; }
  .evro-navbar__logo-desc { font-size: 9px; }

  /* Скрыть десктопные элементы */
  .evro-nav,
  .evro-navbar__actions { display: none; }

  /* Показать мобильные элементы */
  .evro-navbar__mob-phone {
    display: flex;
    margin-left: auto;
    margin-right: 4px;
  }
  .evro-hamburger { display: flex; }

  /* Мобильное меню: top корректируется JS-ом */
  .evro-mobile-menu { top: 56px; }
}

/* ================================================================
   ПОИСКОВАЯ СТРОКА (slide-in под navbar)
================================================================ */
.evro-search-box {
  background: #f7f7f7;
  border-top: 1px solid var(--evro-drop-bd);
  border-bottom: 3px solid var(--evro-orange);
}
.evro-search-box[hidden] { display: none; }
.evro-search-box__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Обёртка нового поиска по категориям */
.evro-search-box__wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--evro-drop-bd);
  border-radius: var(--evro-radius);
  padding: 0 12px;
  transition: border-color var(--evro-trans);
}
.evro-search-box__wrap:focus-within {
  border-color: var(--evro-orange);
}
.evro-search-box__icon {
  color: #aaa;
  flex-shrink: 0;
}
.evro-search-box__wrap input[type="search"] {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  padding: 10px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--evro-navbar-txt);
}
.evro-search-box__wrap input[type="search"]::-webkit-search-cancel-button { display: none; }

/* Выпадающий список результатов */
.evro-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  right: -1px;
  background: #fff;
  border: 1px solid var(--evro-drop-bd);
  border-radius: var(--evro-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  z-index: 9999;
  max-height: 340px;
  overflow-y: auto;
}
.evro-search-results[hidden] { display: none; }
.evro-search-results__item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--evro-navbar-txt);
  text-decoration: none;
  line-height: 1.4;
  border-bottom: 1px solid #f0f0f0;
  transition: background var(--evro-trans), color var(--evro-trans);
}
.evro-search-results__item:last-child { border-bottom: none; }
.evro-search-results__item:hover,
.evro-search-results__item.is-active {
  background: #fff8f4;
  color: var(--evro-orange);
}
.evro-search-results__item mark {
  background: none;
  color: var(--evro-orange);
  font-weight: 700;
}
.evro-search-results__parent {
  font-size: 12px;
  color: #aaa;
}
.evro-search-results__empty {
  padding: 14px 16px;
  font-size: 14px;
  color: #aaa;
  text-align: center;
}
.evro-search-results__divider {
  padding: 6px 16px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #bbb;
  background: #f8f8f8;
  border-bottom: 1px solid #f0f0f0;
}
.evro-search-results__item--page {
  display: flex;
  align-items: center;
  color: #666;
}
.evro-search-results__item--page:hover,
.evro-search-results__item--page.is-active {
  color: var(--evro-orange);
}
.evro-search-box__close {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  border-radius: var(--evro-radius);
  transition: color var(--evro-trans), background var(--evro-trans);
  flex-shrink: 0;
}
.evro-search-box__close:hover {
  color: var(--evro-orange);
  background: var(--evro-drop-bd);
}

/* screen-reader-text */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================
   ФИКС: body-wrapper имеет overflow:hidden — это убивает sticky.
   Заменяем на overflow-x:clip (не создаёт scroll-container)
   чтобы position:sticky на evro-site-header работало корректно.
================================================================ */
.body-wrapper {
  overflow-x: clip !important; /* блокирует горизонтальный скролл */
  overflow-y: visible !important; /* разрешает sticky работать */
}

/* ================================================================
   АДАПТАЦИЯ content-wrapper (убираем отступы от старой шапки)
================================================================ */
.body-wrapper .content-wrapper {
  margin-top: 0 !important;
}

/* ================================================================
   БАННЕР «Если у Вас возникли вопросы» — уменьшаем до высоты topbar
================================================================ */
.gdlr-stunning-text-item {
  padding-top: 13px !important;
  padding-bottom: 13px !important;
}
/* ================================================================
   ОТЗЫВЫ КЛИЕНТОВ — centered fade testimonial
================================================================ */
.evro-reviews {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 24px 56px;
  text-align: center;
}

/* Header */
.evro-rev-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ec6a39;
  margin-bottom: 12px;
}
.evro-rev-sub {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 44px;
  line-height: 1.2;
}

/* Stage */
.evro-rev-stage {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  min-height: 260px;
}
.evro-rev-item {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.evro-rev-item.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* Avatar */
.evro-rev-ava {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ec6a39;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  letter-spacing: .5px;
}

/* Quote */
.evro-rev-quote {
  font-size: 20px;
  line-height: 1.75;
  color: #444;
  font-style: italic;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  quotes: none;
  background: none;
}
.evro-rev-quote::before,
.evro-rev-quote::after {
  content: none !important;
  display: none !important;
}

/* Stars */
.evro-rev-stars {
  color: #ec6a39;
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 16px;
  opacity: .85;
}

/* Author */
.evro-rev-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.evro-rev-role {
  font-size: 13px;
  color: #aaa;
}

/* Dots */
.evro-rev-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.evro-rev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: #d8d8d8;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.evro-rev-dot.active {
  background: #ec6a39;
  transform: scale(1.5);
}

@media (max-width: 768px) {
  .evro-rev-sub { font-size: 20px; }
  .evro-rev-quote { font-size: 17px; }
  .evro-rev-stage { min-height: 300px; }
}

/* Партнёры: белый фон ячеек */
.gdlr-banner-images .flexslider li,
.gdlr-banner-images .flex-viewport {
  background: #ffffff !important;
}
.gdlr-banner-images img {
  filter: brightness(1.12);
  background: #ffffff;
  display: block;
}

/* === BEGIN: wc-grid-override === */
/* FORCE 4-column grid on WooCommerce product/category archive */
body.woocommerce ul.products,
body.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  float: none !important;
  padding: 0 !important;
  list-style: none !important;
}
/* Убираем ::before/::after — они становятся grid-items и занимают пустые ячейки */
body.woocommerce ul.products::before,
body.woocommerce ul.products::after,
body.woocommerce-page ul.products::before,
body.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
@media (max-width: 900px) {
  body.woocommerce ul.products,
  body.woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  body.woocommerce ul.products,
  body.woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
  }
}
/* === END: wc-grid-override === */

/* === END: product-table-center (removed — handled in category-sidebar.php) === */

/* ================================================================
   FOOTER — адаптивность
================================================================ */

/* Копирайт: два float-блока → один столбец на мобильных */
@media (max-width: 600px) {
  .copyright-left,
  .copyright-right {
    float: none !important;
    text-align: center !important;
    margin: 3px 0 !important;
    width: 100% !important;
    display: block !important;
  }
  .copyright-container.container { text-align: center !important; }
}

/* Отступ вокруг колонок футера на мобильных */
@media (max-width: 767px) {
  .footer-column {
    margin-bottom: 24px !important;
  }
  .footer-column:last-child {
    margin-bottom: 0 !important;
  }
}

/* ================================================================
   ИСПРАВЛЕНИЕ: специфичность сетки Goodlayers на мобильных
   .four { width:100% } (1 класс) проигрывает .four.columns { width:33% } (2 класса)
   Используем body-префикс для равной или большей специфичности + !important
================================================================ */
@media (max-width: 767px) {
  body .one.columns,
  body .two.columns,
  body .three.columns,
  body .four.columns,
  body .five.columns,
  body .six.columns,
  body .seven.columns,
  body .eight.columns,
  body .nine.columns,
  body .ten.columns,
  body .eleven.columns,
  body .twelve.columns {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
