/* site-shell-light.css — светлая тема шапки и подвала (рукописный файл, подключается после site-shell.css).
   Тема задаётся на сервере: kcShellTheme() в include/shell-header.php → классы .site-header--light / .site-footer--light
   (вместо .theme-dark). Специфичность #id + 2 класса выше любых правил сборки site-shell.css. */

/* ---------- логотип: два варианта, показывается подходящий теме ---------- */
.kc-shell .shell-brand .shell-logo--on-light { display: none; }
.kc-shell.site-header--light .shell-brand .shell-logo--on-dark,
.kc-shell.site-footer--light .shell-brand .shell-logo--on-dark { display: none; }
.kc-shell.site-header--light .shell-brand .shell-logo--on-light,
.kc-shell.site-footer--light .shell-brand .shell-logo--on-light { display: block; }

/* ================= ШАПКА ================= */
#kcHeader.site-header--light.kc-shell {
  --sl-text: #1a1a1a;
  --sl-nav: #2d3748;
  --sl-muted: #4a5568;
  --sl-faint: #718096;
  --sl-line: rgba(0, 0, 0, 0.08);
  --sl-accent: #2471c8;
  --sl-accent-hover: #1a5aa3;
  --sl-surface: #ffffff;
  --sl-surface-2: #f8f9fa;
  background: transparent;
  color: var(--sl-text);
  border-bottom: 1px solid var(--sl-line);
}
#kcHeader.site-header--light.kc-shell .shell-head-phone { color: var(--sl-text); }
#kcHeader.site-header--light.kc-shell .shell-head-phone:hover { color: var(--sl-accent); }
#kcHeader.site-header--light.kc-shell .shell-head-messages a { color: var(--sl-muted); }
#kcHeader.site-header--light.kc-shell .shell-head-messages a:hover { color: var(--sl-accent); }

#kcHeader.site-header--light.kc-shell .shell-navigation { border-top-color: var(--sl-line); border-bottom-color: transparent; }
#kcHeader.site-header--light.kc-shell .shell-menu-item summary,
#kcHeader.site-header--light.kc-shell .shell-nav-contact { color: var(--sl-nav); }
#kcHeader.site-header--light.kc-shell .shell-menu-item[open] summary,
#kcHeader.site-header--light.kc-shell .shell-menu-item summary:hover,
#kcHeader.site-header--light.kc-shell .shell-nav-contact:hover,
#kcHeader.site-header--light.kc-shell .shell-menu-item.is-current summary { color: var(--sl-accent); }
#kcHeader.site-header--light.kc-shell .shell-menu-item.is-current summary::before { background: var(--sl-accent); }

/* выпадающие панели */
#kcHeader.site-header--light.kc-shell .shell-menu-panel {
  background: var(--sl-surface);
  border: 1px solid #e2e8f0;
  border-top: 2px solid var(--sl-accent);
  box-shadow: 0 18px 40px rgba(26, 32, 44, 0.12);
}
#kcHeader.site-header--light.kc-shell .shell-menu-intro > span { color: var(--sl-accent); }
#kcHeader.site-header--light.kc-shell .shell-menu-intro > p { color: var(--sl-text); }
#kcHeader.site-header--light.kc-shell .shell-menu-link { color: var(--sl-nav); border-bottom-color: #e2e8f0; }
#kcHeader.site-header--light.kc-shell .shell-menu-link::after { color: var(--sl-accent); }
#kcHeader.site-header--light.kc-shell .shell-menu-link:hover { color: var(--sl-accent); border-bottom-color: var(--sl-accent); }
#kcHeader.site-header--light.kc-shell .shell-menu-link small { color: var(--sl-faint); }
#kcHeader.site-header--light.kc-shell .shell-menu-measure,
#kcHeader.site-header--light.kc-shell .shell-menu-measure-cell { color: var(--sl-accent); border-bottom-color: rgba(36, 113, 200, 0.45); }
#kcHeader.site-header--light.kc-shell .shell-menu-measure:hover { color: var(--sl-accent-hover); border-bottom-color: var(--sl-accent-hover); }
#kcHeader.site-header--light.kc-shell .shell-blue { color: var(--sl-accent); }

/* мобильная версия и «бургер»-панель */
@media (max-width: 760px) {
  #kcHeader.site-header--light.kc-shell { background: var(--sl-surface); border-bottom: 1px solid var(--sl-line); }
  #kcHeader.site-header--light.kc-shell .shell-menu-toggle { color: var(--sl-text); }
  #kcHeader.site-header--light.kc-shell .shell-menu-toggle:hover { color: var(--sl-accent); }
  #kcHeader.site-header--light.kc-shell .shell-navigation { background: var(--sl-surface); border: 0; }
  #kcHeader.site-header--light.kc-shell .shell-menu-item summary,
  #kcHeader.site-header--light.kc-shell .shell-nav-contact { color: var(--sl-text); }
  #kcHeader.site-header--light.kc-shell .shell-menu-item summary::after { color: var(--sl-faint); }
  #kcHeader.site-header--light.kc-shell .shell-menu-item.is-current summary,
  #kcHeader.site-header--light.kc-shell .shell-menu-item[open] summary { color: var(--sl-accent); }
  #kcHeader.site-header--light.kc-shell .shell-menu-panel,
  #kcHeader.site-header--light.kc-shell .shell-menu-panel.has-intro-measure { background: var(--sl-surface-2); border: 0; box-shadow: none; }
  #kcHeader.site-header--light.kc-shell .shell-menu-link { color: var(--sl-nav); }
  #kcHeader.site-header--light.kc-shell .shell-menu-link::after { color: var(--sl-accent); }
  #kcHeader.site-header--light.kc-shell .shell-menu-link small { color: var(--sl-faint); }
  #kcHeader.site-header--light.kc-shell .shell-menu-measure,
  #kcHeader.site-header--light.kc-shell .shell-menu-measure-cell { color: var(--sl-accent); border-top-color: #e2e8f0; }
  #kcHeader.site-header--light.kc-shell .shell-mobile-services { border-top-color: #e2e8f0; }
  #kcHeader.site-header--light.kc-shell .shell-mobile-contact-label { color: var(--sl-faint); }
  #kcHeader.site-header--light.kc-shell .shell-mobile-contact-phone { color: var(--sl-text); }
  #kcHeader.site-header--light.kc-shell .shell-mobile-contact-email { color: var(--sl-muted); }
  #kcHeader.site-header--light.kc-shell .shell-mobile-messengers a { color: var(--sl-nav); border: 1px solid #e2e8f0; background: var(--sl-surface-2); }
  #kcHeader.site-header--light.kc-shell .shell-mobile-messengers a:hover { color: var(--sl-accent); border-color: var(--sl-accent); }
}

/* ================= ПОДВАЛ ================= */
#kcFooter.site-footer--light.kc-shell {
  --fl-text: #1a1a1a;
  --fl-nav: #2d3748;
  --fl-muted: #4a5568;
  --fl-faint: #718096;
  --fl-line: #e2e8f0;
  --fl-accent: #2471c8;
  background: #f8f9fa;
  color: var(--fl-muted);
  border-top: 1px solid var(--fl-line);
}
#kcFooter.site-footer--light.kc-shell .shell-footer-top { border-top-color: transparent; }
#kcFooter.site-footer--light.kc-shell .shell-footer-brand p { color: var(--fl-muted); }
#kcFooter.site-footer--light.kc-shell .shell-footer-col h3 { color: var(--fl-text); }
#kcFooter.site-footer--light.kc-shell .shell-footer-col a { color: var(--fl-nav); }
#kcFooter.site-footer--light.kc-shell .shell-footer-col a:hover { color: var(--fl-accent); }
#kcFooter.site-footer--light.kc-shell .shell-blue { color: var(--fl-accent); }
#kcFooter.site-footer--light.kc-shell .shell-foot-label,
#kcFooter.site-footer--light.kc-shell .shell-payment-intro .shell-foot-label,
#kcFooter.site-footer--light.kc-shell .shell-footer-social .shell-foot-label { color: var(--fl-faint); }
#kcFooter.site-footer--light.kc-shell .shell-payment-intro h2 { color: var(--fl-text); }
#kcFooter.site-footer--light.kc-shell .shell-payment-intro h2 span { color: var(--fl-accent); }
#kcFooter.site-footer--light.kc-shell .shell-payment-option { background: #ffffff; border: 1px solid var(--fl-line); }
#kcFooter.site-footer--light.kc-shell .shell-payment-title > svg { stroke: var(--fl-accent); }
#kcFooter.site-footer--light.kc-shell .shell-payment-title h3 { color: var(--fl-text); }
#kcFooter.site-footer--light.kc-shell .shell-payment-marks,
#kcFooter.site-footer--light.kc-shell .shell-payment-marks li { color: var(--fl-nav); }
#kcFooter.site-footer--light.kc-shell .shell-payment-cashback,
#kcFooter.site-footer--light.kc-shell .shell-plus-note { color: var(--fl-muted); }
#kcFooter.site-footer--light.kc-shell .shell-payment-cashback > span:first-child,
#kcFooter.site-footer--light.kc-shell .shell-plus-note > span:first-child { color: var(--fl-accent); border-color: var(--fl-accent); }
#kcFooter.site-footer--light.kc-shell .shell-ya-mark { background: #fc3f1d; color: #ffffff; }
#kcFooter.site-footer--light.kc-shell .shell-payment-option > .shell-split-benefit { color: var(--fl-text); }
#kcFooter.site-footer--light.kc-shell .shell-payment-option > .shell-split-benefit span { color: var(--fl-accent); }
#kcFooter.site-footer--light.kc-shell .shell-footer-social { border-top-color: var(--fl-line); border-bottom-color: var(--fl-line); }
#kcFooter.site-footer--light.kc-shell .shell-social-links a,
#kcFooter.site-footer--light.kc-shell .shell-social-links > a { color: var(--fl-nav); }
#kcFooter.site-footer--light.kc-shell .shell-social-links a:hover { color: var(--fl-accent); }
#kcFooter.site-footer--light.kc-shell .shell-footer-legal { color: var(--fl-faint); }
#kcFooter.site-footer--light.kc-shell .shell-policies a { color: var(--fl-muted); }
#kcFooter.site-footer--light.kc-shell .shell-policies a:hover { color: var(--fl-accent); }
#kcFooter.site-footer--light.kc-shell a:focus-visible { outline-color: var(--fl-accent); }
@media (max-width: 760px) {
  .mobile-compact-enabled #kcFooter.site-footer--light.kc-shell .mobile-fold-toggle { color: var(--fl-text); border-bottom-color: var(--fl-line); }
}

/* ================= СТРЕЛКИ ↗ (iOS) =================
   Символ ↗ в content/тексте на iOS рисуется цветным эмодзи (Apple Color Emoji) и игнорирует color.
   Вместо него — SVG-маска с background-color: currentColor: цвет берётся из темы (тёмной/светлой) и из :hover. */
.kc-shell .shell-menu-link::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='12' y2='4'/%3E%3Cpolyline points='5 4 12 4 12 11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='12' y2='4'/%3E%3Cpolyline points='5 4 12 4 12 11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kc-shell.nav-arrow-icon,
.kc-shell .nav-arrow-icon {
  flex-shrink: 0;
  vertical-align: -2px;
  stroke: currentColor;
}

/* ================= 12.10.2026: шапка и плавающая корзина (на всём сайте) =================
   Меню крупнее (было 12 px), Telegram / MAX / WhatsApp ровно в ширину номера.
   Мобильная шапка (≤760 px) не меняется. */
@media (min-width: 1201px) {
  #kcHeader.kc-shell .shell-menu-item summary, #kcHeader.kc-shell .shell-nav-contact { font-size: 14px; }
}
@media (min-width: 981px) and (max-width: 1200px) {
  #kcHeader.kc-shell .shell-menu-item summary, #kcHeader.kc-shell .shell-nav-contact { font-size: 13px; }
}
@media (min-width: 761px) and (max-width: 980px) {
  #kcHeader.kc-shell .shell-menu-item summary, #kcHeader.kc-shell .shell-nav-contact { font-size: 11px; }
}
@media (min-width: 761px) {
  #kcHeader.kc-shell .shell-head-contact { display: inline-flex; flex-direction: column; align-items: stretch; min-width: 0; }
  #kcHeader.kc-shell .shell-head-messages { justify-content: space-between; flex-wrap: nowrap; gap: 6px; }
}

/* Плавающая корзина: тёмно-синий фон сайта, та же тележка — тонкими золотыми линиями (#e3c28e — золотой кнопок сайта).
   Иконку рисует ::before (маска), исходный SVG в разметке скрыт — шаблон сайта не меняется. */
body .kc-cart-float-button {
  background-color: #182630; border: 1px solid #e3c28e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: background-color .18s;
}
body .kc-cart-float-button:hover { background-color: #22384a; }
body .kc-cart-float-button > .kc-cart-float-icon { display: none; }
body .kc-cart-float-button::before {
  content: ""; display: block; width: 48px; height: 48px; margin: 3px 0 0 -5px; background-color: #e3c28e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5h5.4l2.1 4.4'/%3E%3Cpath d='M10 8.9h33.2a1 1 0 0 1 .9 1.5l-7 12.7a3.2 3.2 0 0 1-2.8 1.6H17.6L10 8.9Z'/%3E%3Cpath d='M17.6 24.7l-2.3 4.2a1.3 1.3 0 0 0 1.1 1.9h25.1'/%3E%3Ccircle cx='17.4' cy='38.6' r='3.4'/%3E%3Ccircle cx='37.2' cy='38.6' r='3.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5h5.4l2.1 4.4'/%3E%3Cpath d='M10 8.9h33.2a1 1 0 0 1 .9 1.5l-7 12.7a3.2 3.2 0 0 1-2.8 1.6H17.6L10 8.9Z'/%3E%3Cpath d='M17.6 24.7l-2.3 4.2a1.3 1.3 0 0 0 1.1 1.9h25.1'/%3E%3Ccircle cx='17.4' cy='38.6' r='3.4'/%3E%3Ccircle cx='37.2' cy='38.6' r='3.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
body .kc-cart-float-count { background: #e3c28e; color: #182630; }
@media (max-width: 768px) {
  body .kc-cart-float-button::before { width: 34px; height: 34px; }
}

/* 22.10.2026 (QA): плавающая корзина на телефоне больше не закрывает текст.
   Была 72 px у правого края на 15 % от верха — перекрывала заголовки, подсказки полей и строки текста. Теперь на телефоне
   (≤ 760 px) кнопка живёт в липкой шапке между логотипом и бургером — там контента нет, и она всегда на виду; пока в фокусе
   поле ввода, она прозрачна. Планшет и компьютер (≥ 761 px) — как было (владелец, 22.10.2026: угловая кнопка на десктопе
   закрывала подписи, прежнее положение возвращено): size и позиция — cart-float.css и site-shell.css. */
@media (max-width: 760px) {
  body .kc-cart-float-button {
    /* right: 78px — между корзиной и кнопкой меню 14–18 px, чтобы пальцем не попадать в соседнюю кнопку (было 66px — зазор 2 px) */
    top: 13px; bottom: auto; left: auto; right: 78px; width: 52px; height: 52px;
    transition: background-color .18s, opacity .18s;
  }
  body .kc-cart-float-button::before { width: 28px; height: 28px; margin: 2px 0 0 -2px; }
  body .kc-cart-float-count { top: 0; right: -2px; width: auto; min-width: 16px; padding: 0 4px; font-size: 11px; line-height: 16px; border-radius: 8px; }
  body:has(input:focus, textarea:focus, select:focus) .kc-cart-float-button { opacity: 0; pointer-events: none; }
}

/* ===== Подвал: нижняя строка с реквизитами (14.10.2026) =====
   Порядок: сверху «© КубаньСтрой» и ссылки на документы — на одной линии; под копирайтом мелко — реквизиты одной строкой.
   Один ритм отступов, у ссылок — понятное состояние при наведении. Работает в тёмной и светлой теме подвала. */
.shell-footer .shell-footer-legal {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 48px !important;
  font-family: "KC Roboto", Arial, sans-serif; font-size: 13px !important; line-height: 1.5 !important;
}
.shell-footer .shell-footer-legal > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0; row-gap: 6px; }
.shell-footer .shell-footer-legal p { margin: 0 !important; font-size: inherit !important; line-height: inherit !important; }
/* © — первым и чуть ярче */
.shell-footer .shell-footer-legal .shell-copyright { order: -1; flex: 1 1 100%; margin: 0 0 2px !important; color: #d3dde4; font-size: 13px !important; }
/* реквизиты — одной строкой, мельче и тише */
.shell-footer .shell-footer-legal > div:first-child > p:not(.shell-copyright) { font-size: 12px !important; color: #7f96a6; font-variant-numeric: tabular-nums; }
.shell-footer .shell-footer-legal > div:first-child > p:first-child::after { content: "·"; margin: 0 10px; }
.shell-footer .shell-footer-legal p > span { margin: 0 10px !important; }
/* документы — в строку справа, на линии копирайта */
.shell-footer .shell-policies { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 6px 28px !important; }
.shell-footer .shell-policies a {
  font-size: 13px !important; line-height: 1.5 !important; color: #b4c4cf !important; text-decoration: none !important;
  border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.shell-footer .shell-policies a:hover { color: #e3c28e !important; border-bottom-color: rgba(227, 194, 142, .5); }
/* светлый подвал (обычные страницы сайта) */
.shell-footer.site-footer--light .shell-footer-legal .shell-copyright { color: #172832; }
.shell-footer.site-footer--light .shell-footer-legal > div:first-child > p:not(.shell-copyright) { color: #6e808d; }
.shell-footer.site-footer--light .shell-policies a { color: #3d5260 !important; }
.shell-footer.site-footer--light .shell-policies a:hover { color: #8a6830 !important; border-bottom-color: rgba(138, 104, 48, .45); }

@media (max-width: 900px) {
  .shell-footer .shell-footer-legal { grid-template-columns: 1fr; gap: 22px !important; font-size: 14px !important; }
  .shell-footer .shell-footer-legal .shell-copyright { font-size: 14px !important; }
  .shell-footer .shell-footer-legal > div:first-child > p:not(.shell-copyright) { font-size: 13px !important; }
  /* на телефоне ИП — отдельной строкой, ИНН и ОГРНИП — второй */
  .shell-footer .shell-footer-legal > div:first-child > p:first-child { flex: 1 1 100%; }
  .shell-footer .shell-footer-legal > div:first-child > p:first-child::after { content: none; }
  .shell-footer .shell-policies { flex-direction: column !important; align-items: flex-start; justify-content: flex-start; gap: 12px !important; }
  .shell-footer .shell-policies a { font-size: 14px !important; }
}


/* ===== Подвал и шапка: значки-стрелки всегда в строку (18.10.2026) =====
   На страницах, где подключён общий сброс стилей (например, /protectopaket/), svg становились блочными
   и стрелки у «Telegram ↗», «VK ↗» и т.п. уезжали на новую строку — подвал отличался от /catalog/. */
.shell-footer.kc-shell svg.nav-arrow-icon, .site-shell-header.kc-shell svg.nav-arrow-icon { display: inline-block !important; vertical-align: -2px; border: 0; }
.shell-footer.kc-shell svg { border: 0; }

/* ================= 21.10.2026: выпадающее меню — крупнее шрифт, длинные стрелки =================
   Пункты и подписи под ними были 15 / 11 px — подписи («Окна, двери, раздвижные системы», «Безопасный стеклопакет»)
   почти не читались.
   26.10.2026 (владелец): стрелки у пунктов — снова диагональные ↗, как в исходном макете меню
   (alutech-catalog-premium-v74), а не горизонтальные. Форма снята с макета: в макете это символ ↗ (Manrope 300, 21 px) —
   длинное тонкое древко и короткий открытый наконечник, ~19 px. Символ не используем: на iOS он рисуется цветным эмодзи. */
@media (min-width: 761px) {
  #kcHeader.kc-shell .shell-menu-link { font-size: 18px; line-height: 1.4; }
  #kcHeader.kc-shell .shell-menu-link small { font-size: 14px; line-height: 1.45; margin-top: 6px; }
}
@media (max-width: 760px) {
  #kcHeader.kc-shell .shell-menu-link { font-size: 16px; }
  #kcHeader.kc-shell .shell-menu-link small { font-size: 13px; }
}
#kcHeader.kc-shell .shell-menu-link:not(.shell-menu-measure-cell)::after {
  width: 19px;
  height: 19px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.05'%3E%3Cpath d='M0.6 19.4L19.4 0.6M12.5 0.6H19.4V7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.05'%3E%3Cpath d='M0.6 19.4L19.4 0.6M12.5 0.6H19.4V7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
