/**
* This is a valid CSS file.
  **/
  .your-class {}

/* --- Логотип в шапке и подвале --------------------------------------------
   Размеры заданы обычным CSS, а не tailwind-утилитами: файл tailwind.min.css
   генерируется под классы, найденные в вёрстке, и при отсутствии пересборки
   утилиты h-8 / w-auto / sm:h-9 в него не попадают.                        */
.site-logo {
  display: block;
  height: 32px;          /* мобильные */
  width: auto;
  flex: none;
}
@media (min-width: 640px) {
  .site-logo { height: 36px; }   /* планшеты и десктоп */
}
.site-logo--footer { height: 36px; }

/* === Выезжающее меню (планшет/мобильный) ================================= */
.site-drawer { position: fixed; inset: 0; z-index: 90; }
.site-drawer[hidden] { display: none; }

.site-drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(34, 43, 53, .55);
  opacity: 0; transition: opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.site-drawer.is-open .site-drawer__overlay { opacity: 1; }

.site-drawer__panel {
  position: absolute; top: 0; right: 0;
  width: min(80vw, 330px);
  height: 100%; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  padding-right: calc(20px + env(safe-area-inset-right));
  background: #fff;
  box-shadow: -24px 0 70px rgba(34, 43, 53, .22);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}
.site-drawer.is-open .site-drawer__panel { transform: translateX(0); }

.site-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-drawer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #222B35; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
}
.site-drawer__close {
  flex: none; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #E6E8EB; border-radius: 16px;
  background: #fff; color: #222B35; cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-drawer__close svg { width: 20px; height: 20px; }
.site-drawer__close:hover { border-color: #F7C600; }
.site-drawer__close:active { background: #F7F7F7; }

.site-drawer__nav { display: grid; gap: 4px; margin-top: 22px; }
.site-drawer__link {
  display: block; padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px; font-weight: 600; color: #5D6670;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.site-drawer__link:hover { background: #F7F7F7; color: #222B35; }
.site-drawer__link.is-current { color: #222B35; background: #F7F7F7; }

.site-drawer__foot { margin-top: auto; padding-top: 24px; }
.site-drawer__cta {
  display: flex; align-items: center; justify-content: center;
  padding: 15px 20px; border-radius: 16px;
  background: #F7C600; color: #1A1A1A;
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 26px rgba(247, 198, 0, .28);
  transition: transform .25s ease, background-color .25s ease;
}
.site-drawer__cta:hover { background: #FFE680; }
.site-drawer__cta:active { transform: scale(.98); }
.site-drawer__phone {
  display: block; margin-top: 14px; text-align: center;
  font-size: 15px; font-weight: 700; color: #222B35; text-decoration: none;
}
.site-drawer__note { margin-top: 8px; text-align: center; font-size: 12px; line-height: 1.6; color: #8A949E; }

/* блокируем прокрутку страницы под открытой панелью */
body.is-drawer-open { overflow: hidden; }

/* === Плавающая кнопка WhatsApp =========================================== */
.wa-float {
  position: fixed; z-index: 80;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .38), 0 4px 10px rgba(34, 43, 53, .16);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(37, 211, 102, .44); }
.wa-float:active { transform: scale(.95); }
@media (min-width: 640px) {
  .wa-float { width: 62px; height: 62px; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); }
  .wa-float svg { width: 31px; height: 31px; }
}

/* видимый фокус с клавиатуры */
.site-drawer__link:focus-visible,
.site-drawer__cta:focus-visible,
.site-drawer__close:focus-visible,
.site-drawer__brand:focus-visible,
.site-drawer__phone:focus-visible,
.wa-float:focus-visible { outline: 3px solid #0A76B4; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .site-drawer__panel, .site-drawer__overlay, .wa-float { transition: none; }
}


/* === Адаптивные правки ==================================================== */

/* длинные слова («Электромонтажные», «электротехнические») не должны
   вылезать за экран и обрезаться на узких телефонах */
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

@media (max-width: 380px) {
  h1 { font-size: 30px !important; line-height: 1.18 !important; }
  h2 { font-size: 24px !important; line-height: 1.25 !important; }
  /* разрядка у надписей-меток съедает ширину на 320px */
  [class*="tracking-[0.2"], [class*="tracking-[0.3"] { letter-spacing: .12em !important; }
}

/* зона нажатия ссылок в подвале: было 20px по высоте — мало для пальца */
.footer-links { gap: 0 !important; }
.footer-links > a {
  padding-block: 10px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

/* логотип-ссылка и телефоны: доводим высоту нажатия до 40–44px
   (высоту строки шапки задаёт кнопка 44px, поэтому вид не меняется) */
nav a:has(> .site-logo),
footer a:has(> .site-logo) { min-height: 44px; }
a[href^="tel:"] { min-height: 40px; display: inline-flex; align-items: center; }

/* === Переключатель языков ================================================= */
/* Два отдельных «кнопочных» варианта с заметным просветом между ними,
   активный — фирменный синий с белыми буквами. */
/* левая часть шапки — только логотип с названием */
.brand-lang { display: flex; align-items: center; }

/* правая часть шапки: переключатель языков + кнопка (десктоп) + бургер.
   На десктопе переключатель стоит слева от кнопки «Вызвать мастера»,
   на планшете и мобильном — вплотную к бургеру. */
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
@media (max-width: 1023px) { .header-actions { gap: 10px; } }
@media (max-width: 420px)  { .header-actions { gap: 8px; } }

.lang-switch { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.lang-switch__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 36px; padding: 0 12px;
  border: 1px solid #DDE1E6; border-radius: 11px;
  background: #fff; color: #5D6670;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.lang-switch__item:hover { border-color: #0A76B4; color: #0A76B4; }
.lang-switch__item.is-active {
  background: #0A76B4; border-color: #0A76B4; color: #fff;
  box-shadow: 0 8px 18px rgba(10, 118, 180, .28);
}
.lang-switch__item.is-active:hover { color: #fff; }

.brand-lang > a > span { white-space: nowrap; }
@media (max-width: 420px) {
  .lang-switch { gap: 8px; }
  .lang-switch__item { min-width: 40px; min-height: 34px; padding: 0 9px; font-size: 11px; }
}
@media (max-width: 360px) {
  /* самые узкие экраны: ужимаем название и переключатель, чтобы между
     логотипом и правой группой оставался видимый просвет */
  .brand-lang > a > span { font-size: 12px; letter-spacing: -.01em; }
  .lang-switch__item { min-width: 34px; padding: 0 6px; font-size: 10px; }
  .lang-switch { gap: 6px; }
  .header-actions { gap: 6px; }
}
/* страховка от наложения: блок с логотипом сжимается, правая группа — нет */
.brand-lang { min-width: 0; }
.brand-lang > a { min-width: 0; }
.lang-switch--drawer { display: flex; width: 100%; margin-bottom: 14px; gap: 10px; }
.lang-switch--drawer .lang-switch__item { flex: 1; min-height: 44px; font-size: 13px; }

/* === Плашки-метки в тексте ================================================ */
/* Фирменный синий с белыми надписями. Оформление задано целиком здесь,
   поэтому не зависит от того, какие утилиты попали в tailwind.min.css. */
.ui-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid #0A76B4; border-radius: 9999px;
  background: #0A76B4; color: #fff;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; line-height: 1.4;
}
.ui-badge--inline { letter-spacing: .18em; }
/* на синей карточке синяя плашка сливалась бы с фоном — чередуем на жёлтую
   с тёмными буквами (второй вариант из согласованной пары цветов) */
.ui-badge--onblue {
  background: #F7C600 !important;
  border-color: #F7C600 !important;
  color: #1A1A1A !important;
}
/* точка-маркер внутри плашки остаётся жёлтой — фирменный акцент */
.ui-badge > span:first-child:empty,
.ui-badge .h-2 { width: 8px; height: 8px; border-radius: 9999px; background: #F7C600 !important; flex: none; }

/* === Нижняя строка подвала: политика конфиденциальности ==================== */
.footer-bottom {
  /* отступ и линия заданы здесь: утилит mt-12/pt-6 нет в собранном tailwind.min.css */
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  /* узкий экран — две строки друг под другом, широкий — одна строка по краям */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-bottom > p { margin: 0; }
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
  }
}
.footer-bottom__link { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom__link:focus-visible,
.lang-switch__item:focus-visible { outline: 3px solid #0A76B4; outline-offset: 3px; }

/* на очень узких экранах (320px) название не помещается в строку рядом
   с переключателем языков — оставляем только знак, он узнаваем */
@media (max-width: 360px) {
  nav .flex.items-center.gap-3 > a > span { display: none; }
}
nav .flex.items-center.gap-3 > a > span { white-space: nowrap; }

.footer-bottom__copy { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.5); }
