/* Шапка в одну строку, мобильное меню, подвал, нижняя панель телефона */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s var(--ease-std), transform .4s var(--ease), background-color .3s var(--ease-std);
}
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(15, 27, 42, .35); background: rgba(255, 255, 255, .92); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
/* Знак «Кельвин» (снежинка-«К» на плашке) вместо значка ветра: плашка нарисована в самом SVG */
.logo-mark { display: block; width: 38px; height: 38px; flex: none; }
.logo-mark .logo-svg { display: block; width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-a {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--mute); font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: color .2s var(--ease-std), background-color .2s var(--ease-std);
}
.nav-a .dd-caret { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.dd { position: relative; }
.dd.is-open .nav-a { color: var(--ink); background: var(--panel); }
.dd.is-open .dd-caret { transform: rotate(180deg); }
.dd-pop { position: absolute; left: -8px; top: 100%; padding-top: 10px; visibility: hidden; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
.dd.is-open .dd-pop { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
.dd-card { display: grid; gap: 2px; width: 300px; padding: 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dd-card a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; font-size: var(--t-sm); font-weight: 600; transition: background-color .2s var(--ease-std); }
.dd-card .chipicon { width: 40px; height: 40px; border-radius: 12px; transition: background-color .2s var(--ease-std), color .2s var(--ease-std); }
.dd-card .chipicon .ico { width: 22px; height: 22px; }
/* Меню услуг: две колонки, у услуги короткая подпись без цены, внизу «Для бизнеса» */
.dd-card--mega { grid-template-columns: 1fr 1fr; width: 560px; padding: 10px; gap: 4px; }
.dd-card--mega b { display: block; font-weight: 600; }
.dd-card--mega small { display: block; margin-top: 1px; color: var(--mute); font-size: var(--t-xs); font-weight: 500; }
.dd-card--mega .dd-biz { grid-column: 1 / -1; margin-top: 4px; padding: 12px; background: var(--ice); }
.dd-card--mega .dd-biz > .ico { width: 18px; height: 18px; margin-left: auto; color: var(--brand); }
@media (hover: hover) and (pointer: fine) {
  .nav-a:hover { color: var(--ink); background: var(--panel); }
  .dd-card a:hover { background: var(--panel); }
  .dd-card a:hover .chipicon { background: var(--brand); color: #fff; }
}
.hdr-r { display: flex; align-items: center; gap: 10px; }
/* Телефон: синяя иконка на светлой подложке и номер одной строкой. Часы работы в шапке не пишем (Максим 25.10): они в «Контактах» и у формы */
.hdr-tel { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: var(--t-sm); letter-spacing: -.01em; white-space: nowrap; transition: color .2s var(--ease-std); }
.hdr-tel > .ico { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--ice); color: var(--brand); box-sizing: border-box; transition: background-color .2s var(--ease-std), color .2s var(--ease-std); }
.hdr-cta.btn--sm { padding: 0 16px; }
@media (hover: hover) and (pointer: fine) { .hdr-tel:hover { color: var(--brand-ink); } .hdr-tel:hover > .ico { background: var(--brand); color: #fff; } }
.burger { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.burger .ico { width: 22px; height: 22px; }

/* Мобильное меню */
.sheet {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--bg);
  visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.sheet.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
/* .wrap в колонке flex сжимался до содержимого, и крестик прилипал к логотипу: растягиваем строки шторки на всю ширину */
.sheet > .wrap { width: 100%; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: calc(64px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); }
.sheet-nav { flex: 1; overflow: auto; padding-top: 8px; padding-bottom: 16px; }
.sheet-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: var(--t-md); opacity: 0; transform: translateY(8px); }
.sheet-nav a .ico { width: 18px; height: 18px; color: var(--brand); }
.sheet.is-open .sheet-nav a { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(60ms + var(--i) * 25ms); }
.sheet-foot { display: grid; gap: 10px; padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn { width: 100%; }

/* Подвал: крупно и просторно */
.ft { margin-top: var(--band-gap); margin-bottom: var(--band-gap); }
.ft > .wrap { padding-block: 88px 28px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ft-brand { display: inline-block; font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: #fff; }
.ft-desc { margin-top: 10px; color: var(--on-navy-mute); font-weight: 500; }
.ft-meta { display: grid; gap: 10px; margin-top: 28px; color: var(--on-navy-mute); font-size: var(--t-sm); }
.ft-meta li { display: flex; align-items: center; gap: 10px; }
.ft-meta .ico { width: 20px; height: 20px; color: #8CC4F5; }
.ft-contact { display: grid; justify-items: end; gap: 22px; }
.ft-tel { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; color: #fff; transition: color .2s var(--ease-std); }
.ft-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.btn--ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn--ghost-dark .ico { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .btn--ghost-dark:hover { border-color: #fff; } .ft-tel:hover { color: #CFE4F8; } }
/* Четыре колонки; место четвёртой «Где нас найти» пустует, пока нет ссылок ВКонтакте, Яндекс Карт и 2ГИС (Максим 25.10: так и оставить) */
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 56px; }
.ft-cols .ft-h { margin-bottom: 16px; font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.ft-cols a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-navy-mute); font-size: var(--t-sm); transition: color .2s var(--ease-std); }
@media (hover: hover) and (pointer: fine) { .ft-cols a:hover, .ft-bot a:hover { color: #fff; } }
.ft-tools { display: flex; align-items: center; gap: 10px; margin: 0 0 40px; padding-top: 4px; color: var(--on-navy-mute); font-size: var(--t-sm); }   /* больше воздуха от колонок (Максим 26.10) */
.ft-tools .ico { flex: none; width: 20px; height: 20px; color: #8CC4F5; }
.ft-tools a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease-std); }
@media (hover: hover) and (pointer: fine) { .ft-tools a:hover { text-decoration-color: #fff; } }
.ft-bot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--on-navy-mute); font-size: var(--t-xs); }
.ft-bot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ft-bot a { display: inline-flex; align-items: center; min-height: 44px; transition: color .2s var(--ease-std); }

/* Нижняя панель на телефоне */
.dock { display: none; }

/* Меню посередине между логотипом и телефоном: равные зазоры слева и справа (space-between). Строгий центр по экрану
   прижимал меню к телефону (Максим 25.10) */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 760px) {
  .hdr-in { height: 64px; }
  .hdr-cta { display: none; }
  /* На телефоне номер в нижней панели и в шторке; в шапке иконка-кнопка того же размера, что бургер, номер для экранных читалок */
  .hdr-tel { gap: 0; }
  .hdr-tel > .ico { width: 44px; height: 44px; padding: 11px; border-radius: 14px; }
  .hdr-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ft > .wrap { padding-block: 64px calc(96px + env(safe-area-inset-bottom)); }
  .ft-top { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .ft-contact { justify-items: start; }
  .ft-acts { justify-content: flex-start; }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-block: 40px; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; align-items: center;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transition: transform .4s var(--ease);
  }
  .dock.is-hidden { transform: translateY(110%); }
  .dock-main { flex: 1; height: 52px; }
  .dock-main .ico { width: 20px; height: 20px; }
  .dock-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ice); color: var(--brand-ink); }
  .dock-ic .ico { width: 22px; height: 22px; }
}

/* Шапка отзывчивее: текущий раздел отмечен линией, при наведении линия выезжает (правка Максима 24.10) */
.nav-a { position: relative; }
.nav-a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-a.is-on { color: var(--ink); }
.nav-a.is-on::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav-a:hover::after { transform: scaleX(1); } }
.dd-card a.is-on { background: var(--ice); }
@media (max-width: 760px) { main { padding-bottom: 76px; } }

/* Шапка заново (25.10): телефон отделён от кнопки; кнопка ведёт к заявке, расчёт остаётся на первом экране */
.hdr-r { gap: 24px; }
@media (max-width: 760px) { .hdr-r { gap: 8px; } }

/* Кнопка шапки контурная: залитая кнопка на экране одна, «Рассчитать стоимость» на первом экране */
.hdr-cta.btn--main { background: #fff; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
@media (hover: hover) and (pointer: fine) { .hdr-cta.btn--main:hover { background: var(--brand); color: #fff; } }

/* Вход для мастеров в подвале: самая тихая ссылка строки документов (красная кнопка «Кабинет» убрана, Максим 02.11) */
.ft-kab { opacity: .7; }

/* Плашка cookie (п. 7 политики): на компьютере тонкая полоса внизу (карточка в углу закрывала кнопку первого экрана),
   на телефоне карточка над нижней панелью действий */
.ck { position: fixed; z-index: 60; left: 50%; bottom: 16px; width: min(1160px, calc(100vw - 32px)); translate: -50% 0;
  display: flex; align-items: center; gap: 12px 28px; padding: 14px 16px 14px 24px;
  border-radius: 20px; background: var(--surface); box-shadow: 0 24px 60px -24px rgba(15, 27, 42, .45), 0 0 0 1px rgba(27, 116, 194, .1);
  opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease-std), transform .3s var(--ease); }
.ck.is-on { opacity: 1; transform: none; }
.ck-t { margin: 0; flex: 1; color: var(--mute); font-size: var(--t-xs); line-height: 1.5; }
.ck-t a { color: var(--brand-ink); }
.ck-acts { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.ft-cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; opacity: .7; }
@media (max-width: 760px) {
  .ck { flex-direction: column; align-items: stretch; padding: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-height: 40vh; }
  .ck-t { overflow-y: auto; min-height: 0; }
  .ck-acts { flex-direction: column; }
  .ck-acts .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }
