/* Compact public layout. Kept separate from the legacy compiled utility bundle. */
:root { --evak-ink: #122840; --evak-accent: #ef6508; }
html { scroll-padding-top: 82px; }
body { color: var(--evak-ink); }
.container, .site-header__inner { width: 100%; max-width: 1280px; }
.site-header { box-shadow: 0 1px 0 #e4e9ef; }
.site-header-bar { height: 68px; gap: 20px; }
.site-header__brand { flex: 0 0 186px; width: 186px; height: 54px; overflow: hidden; display: flex; align-items: center; }
.site-logo { width: 186px; max-width: none; height: 40px; object-fit: contain; }
.site-header__nav { font-size: 14px; gap: 18px; }
.site-header__actions { gap: 8px; margin-left: auto; }
.site-header__phone { font-size: 14px; white-space: nowrap; }
.site-header__actions .btn { padding-inline: 12px; font-size: 14px; }
.site-header__actions .btn-outline { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.site-header__actions .city-picker-header__btn { max-width: 168px; }
.site-header__mobile-links { gap: 8px; }
.home-hero { padding: 26px 0; background: #f3f6f9; border-bottom: 1px solid #e3e9ee; }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.home-eyebrow { color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .12em; margin: 0 0 9px; }
.home-hero h1 { font-size: clamp(26px, 2.45vw, 34px); line-height: 1.16; margin: 0 0 12px; letter-spacing: -.025em; color: var(--evak-ink); }
.home-hero__lead { font-size: 16px; line-height: 1.5; color: #526274; margin-bottom: 16px; max-width: 480px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.home-hero__actions .btn { min-height: 40px; height: 40px; font-size: 14px; padding-inline: 16px; }
.home-hero__actions .btn-primary { background: var(--evak-accent); border-color: var(--evak-accent); color: #fff; }
.home-hero__actions .btn-primary:hover { background: #ce5200; }
.home-hero__photo { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #dce5eb; }
.home-hero__photo img { width: 100%; height: 224px; display: block; object-fit: cover; object-position: center 54%; }
.home-hero__photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 14px 12px; background: linear-gradient(transparent, #071522d9); color: #fff; font-size: 12px; }
.home-hero .calc-box { background: #fff; border: 1px solid #dfe6ee; border-radius: 12px; padding: 20px; box-shadow: 0 6px 20px #12284006; }
.calc-shell { min-width: 0; }
.calc-shell > summary { display: none; }
.calc-box h2 { font-size: 20px; margin-bottom: 14px; color: var(--evak-ink); }
.calc-route { display: grid; gap: 10px; margin-bottom: 14px; }
.calc-config { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.calc-config .select { min-width: 0; width: 100%; height: 38px; min-height: 38px; font-size: 14px; padding-right: 28px; }
.calc-config .form-control { min-width: 0; }
.calc-route .form-control > .flex { flex-wrap: nowrap; gap: 8px; }
.calc-box .label-text, .calc-box .text-xs { font-size: 14px; }
.calc-box .input { height: 36px; min-height: 36px; font-size: 14px; }
.calc-box .btn-xs { height: auto; min-height: 30px; font-size: 14px; padding: 4px 9px; white-space: normal; }
.calc-box .btn-sm { min-height: 36px; height: auto; font-size: 14px; }
.calc-box .mb-3 { margin-bottom: 12px; }
.calc-box .mb-2 { margin-bottom: 6px; }
.calc-box .form-control.mb-4 { display: flex; flex-direction: row; align-items: center; gap: 10px; margin-bottom: 12px; max-width: none; }
.calc-box .form-control.mb-4 input { max-width: 100px; }
.calc-options { margin: 0 0 12px; border-block: 1px solid #edf0f4; padding-block: 10px; }
.calc-options summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.calc-options[open] summary { margin-bottom: 10px; }
.calc-options input[type=checkbox] { display: inline-block; width: 14px; height: 14px; accent-color: var(--evak-accent); }
.calc-options label { margin-right: 0; }
.calc-box > .border-t { padding-top: 12px; }
.calc-box > .border-t > .btn { flex-shrink: 0; align-self: center; height: 40px; min-height: 40px; }
.calc-box > .border-t .text-xs { font-size: 12px; }
.compact-section { padding: 28px 0; }
.compact-section h2 { font-size: 25px; line-height: 1.25; color: var(--evak-ink); letter-spacing: -.02em; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.catalog-heading form { display: flex; gap: 8px; }
.catalog-heading select { width: auto; max-width: 220px; height: 38px; min-height: 38px; font-size: 14px; }
.catalog-empty { padding: 24px 18px; border: 1px dashed #cbd5e1; border-radius: 10px; text-align: center; color: #64748b; font-size: 16px; }
.catalog-empty a { color: var(--evak-ink); text-underline-offset: 3px; }
.evac-feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.evac-card { display: grid; grid-template-columns: 152px minmax(0, 1fr); border-radius: 10px; }
.evac-card__media { height: 100%; min-height: 152px; aspect-ratio: auto; }
.evac-card__body { padding: 14px; min-width: 0; }
.evac-card__body .text-xs { font-size: 14px; }
.evac-card__body > .flex:last-child { flex-wrap: wrap; }
.tariff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tariff-grid > div { padding: 18px 20px; border-radius: 10px; }
.tariff-grid h3 { font-size: 16px; }
.tariff-grid li { gap: 12px; }
#tariffs .text-center { text-align: left; }
#tariffs p.mt-6 { margin-top: 12px; font-size: 14px; }
.home-directories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-inline: 32px; }
.home-directories .container { padding: 0; }
.home-directories h2 { font-size: 22px; }
.home-directories .geo-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: none; }
.home-directories .geo-card { padding: 12px; text-align: left; background: #f6f8fa; border-color: #e6ebf0; font-size: 14px; }
.home-directories .geo-card div { display: none; }
.home-directories p { font-size: 14px; }
.site-footer { padding-top: 0; margin-top: 0; }
.site-footer .site-footer__logo { height: 46px; overflow: hidden; margin-bottom: 8px; padding: 6px 10px; border-radius: 6px; background: #fff; }
.site-footer__inner { padding-top: 24px; padding-bottom: 20px; }
.site-logo--footer { height: 34px; width: 168px; max-width: none; }
.site-footer__grid { padding-block: 0; gap: 24px; }
.site-modal__panel { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header__nav { gap: 12px; }
  .site-header__actions > .site-header__phone { display: none; }
}
@media (max-width: 1023px) {
  .site-header-bar { height: 62px; justify-content: space-between; }
  .site-header__brand { flex-basis: 186px; }
  .site-header__nav, .site-header__actions { display: none; }
  .site-header__menu-btn { display: flex; }
  .home-hero__grid { gap: 20px; }
  .home-hero__photo img { height: 230px; }
  .evac-card { grid-template-columns: 116px minmax(0, 1fr); }
  .home-directories { padding-inline: 24px; gap: 20px; }
  .catalog-heading { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .home-hero { padding-block: 20px; }
  .home-hero__grid, .tariff-grid, .home-directories { grid-template-columns: minmax(0, 1fr); }
  .home-hero__photo img { height: 170px; object-position: center 57%; }
  .calc-shell > summary { display: list-item; padding: 16px; background: #fff; border: 1px solid #dfe6ee; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600; }
  .calc-shell[open] > summary { margin-bottom: 10px; }
  .home-hero__lead { max-width: none; }
  .home-hero h1 { font-size: 28px; }
  .home-hero .calc-box { padding: 16px; }
  .home-directories { gap: 0; padding-inline: 16px; }
  .home-directories #geo { padding-top: 0; }
  .evac-feed__grid { grid-template-columns: minmax(0, 1fr); }
  .evac-card { grid-template-columns: 124px minmax(0, 1fr); }
  .compact-section { padding-block: 24px; }
  .compact-section h2 { font-size: 23px; }
  .catalog-heading form { width: 100%; }
  .catalog-heading select { min-width: 0; max-width: none; flex: 1; width: 50%; }
  .calc-box > .border-t { align-items: start; gap: 10px; }
}
@media (max-width: 389px) {
  .home-hero__actions { gap: 8px; }
  .home-hero__actions .btn { padding-inline: 10px; }
  .evac-card { grid-template-columns: 100px minmax(0, 1fr); }
  .evac-card__body { padding: 10px; }
}
