/* oklad.by — публичная часть: шапка, подвал, главная */

:root {
  --p24-header-h: auto;
  --p24-container: 1200px;
  --p24-radius: 12px;
  --p24-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f6f8;
}

.site-main {
  min-height: 50vh;
}

/* ========== HEADER ========== */
.site-header--desktop {
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--p24-border);
  position: relative;
  z-index: 700;
  padding: 0;
}
.site-header--mobile { display: none; }

.header-sticky-spacer {
  display: none;
  height: 0;
  pointer-events: none;
}

@media (min-width: 992px) {
  .site-header--desktop .header-sticky-bar {
    background: #fff;
    transition: box-shadow 0.28s ease;
  }

  .site-header--desktop.is-header-compact .header-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 800;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
    border-bottom: 1px solid var(--p24-border);
  }

  .site-header--desktop.is-header-compact .header-sticky-bar .header-main__inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header--desktop.is-header-compact .header-sticky-spacer {
    display: block;
  }

  .site-header--desktop .top-bar,
  .site-header--desktop .header-nav {
    overflow: hidden;
    transition:
      max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.32s ease,
      visibility 0.38s,
      border-color 0.28s ease,
      margin 0.28s ease,
      padding 0.28s ease;
    max-height: 160px;
    opacity: 1;
    visibility: visible;
  }

  .site-header--desktop .top-bar {
    max-height: 80px;
  }

  .site-header--desktop .header-nav {
    max-height: 72px;
  }

  .site-header--desktop.is-header-compact .top-bar {
    max-height: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    margin: 0;
    padding: 0;
    border-width: 0;
  }

  .site-header--desktop.is-header-compact .header-nav {
    max-height: 52px;
    border-top-color: #f1f5f9;
  }

  .site-header--desktop.is-header-compact .header-nav__link {
    padding: 10px 0;
    font-size: 13px;
  }
}

.top-bar {
  background: #fafbfc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 13px;
}
.top-bar__inner {
  max-width: var(--p24-container);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.top-bar__link { color: #666; text-decoration: none; font-weight: 500; }
.top-bar__link:hover { color: var(--p24-primary); }
.top-bar__link--accent { color: var(--p24-primary); font-weight: 600; }
.top-bar__stats { color: #444; white-space: nowrap; }
.top-bar__stats-label { color: #888; margin-right: 6px; }
.top-bar__stats strong { color: var(--p24-primary); font-weight: 800; }

.header-main__inner {
  max-width: var(--p24-container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-logo__img {
  display: block;
  max-height: 48px;
  max-width: min(190px, 40vw);
  width: auto;
  height: auto;
  object-fit: contain;
}
.site-logo--sm .site-logo__img { max-height: 38px; max-width: 145px; }

.header-search {
  flex: 1;
  min-width: 280px;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ks-search-box { flex: 1; position: relative; }
.ks-input {
  width: 100%;
  height: 48px;
  background: #f2f4f5;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 48px 0 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ks-input:focus {
  background: #fff;
  border-color: var(--p24-primary);
  box-shadow: 0 0 0 3px var(--p24-primary-ring);
}
.ks-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 8px;
  cursor: pointer;
  color: #7f8c8d;
  border-radius: 6px;
}
.ks-search-btn:hover { color: var(--p24-primary); }
.ks-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--p24-border);
  border-radius: 10px;
  box-shadow: var(--p24-shadow);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
}
.ks-search-results[hidden] { display: none !important; }
.ks-search-item {
  display: block;
  padding: 12px 16px;
  color: var(--p24-text);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.ks-search-item:hover { background: var(--p24-primary-bg); color: var(--p24-primary); }
.ks-search-item:last-child { border-bottom: none; }

.ks-location-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.ks-location-trigger:hover { background: #f0fcf6; }
.ks-pin-icon { color: var(--p24-primary); flex-shrink: 0; }
.ks-current-city { font-weight: 600; color: var(--p24-primary); font-size: 15px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions__cta { white-space: nowrap; }
.header-actions__login { white-space: nowrap; }

.header-favorites {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.header-favorites:hover,
.header-favorites.has-items {
  color: #ef4444;
}

.header-favorites__count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.mobile-header__icons .header-favorites {
  width: 34px;
  height: 34px;
}

/* Выпадающий кабинет в шапке */
.header-account { position: relative; }
/* Невидимый мост между кнопкой и меню — иначе :hover срывается в зазоре */
.header-account::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -6px;
  right: -6px;
  height: 14px;
  z-index: 801;
  pointer-events: none;
}
.header-account:hover::after,
.header-account.is-open::after,
.header-account:focus-within::after {
  pointer-events: auto;
}
.header-account__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding-left: 14px;
  padding-right: 12px;
}
.header-account__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.header-account__chevron { flex-shrink: 0; opacity: 0.65; transition: transform 0.2s; }
.header-account.is-open .header-account__chevron,
.header-account:hover .header-account__chevron { transform: rotate(180deg); }
.header-account__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 802;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--p24-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
}
.header-account:hover .header-account__dropdown,
.header-account.is-open .header-account__dropdown,
.header-account:focus-within .header-account__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.header-account__balance {
  padding: 16px 18px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  border-radius: 14px 14px 0 0;
}
.header-account__balance-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p24-muted);
  margin-bottom: 4px;
}
.header-account__balance-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--p24-text);
  line-height: 1.2;
}
.header-account__balance-value span { font-size: 0.85rem; font-weight: 600; color: var(--p24-muted); }
.header-account__balance-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p24-primary);
  text-decoration: none;
}
.header-account__balance-link:hover { text-decoration: underline; }
.header-account__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.header-account__nav a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--p24-text);
  text-decoration: none;
}
.header-account__nav a:hover {
  background: var(--p24-primary-bg);
  color: var(--p24-primary-deep);
}
.header-account__foot {
  border-top: 1px solid #f1f5f9;
  padding: 8px 0;
}
.header-account__logout {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}
.header-account__logout:hover { color: #b91c1c; background: #fef2f2; }

.header-account--admin .header-account__dropdown { min-width: 280px; }
.header-account__mod-head {
  padding: 16px 18px;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  border-radius: 14px 14px 0 0;
}
.header-account__mod-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p24-muted);
  margin-bottom: 6px;
}
.header-account__mod-cta {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: #4338ca;
  text-decoration: none;
}
.header-account__mod-cta:hover { text-decoration: underline; }
.header-account__nav--mod a { font-weight: 600; }
.header-account__nav--secondary {
  border-top: 1px solid #f1f5f9;
}
.header-account__nav--secondary a {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.header-nav {
  border-top: 1px solid #f1f5f9;
  background: #fff;
}
.header-nav__inner {
  max-width: var(--p24-container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
}
.header-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  color: var(--p24-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.header-nav__link:hover { color: var(--p24-primary); border-bottom-color: var(--p24-primary); }

.header-nav__link--primary {
  color: #0f172a;
  border-bottom-color: #22c55e;
}

.header-nav__link--primary:hover {
  color: #166534;
  border-bottom-color: #22c55e;
}

.header-nav__link--secondary {
  color: #0369a1;
}

.header-nav__link--secondary:hover {
  color: #075985;
  border-bottom-color: #0ea5e9;
}
.header-nav__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }

/* City modal */
.ks-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 24px;
}
.ks-modal-overlay.is-open { display: flex; }
.ks-modal-overlay[hidden] { display: none !important; }
.ks-modal {
  background: #fff;
  width: 100%;
  max-width: 720px;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ks-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--p24-border);
  flex-shrink: 0;
}
.ks-modal__head h3 { margin: 0; font-size: 1.15rem; }
.ks-modal__close {
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.ks-modal__body {
  padding: 20px 24px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ks-modal__search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--p24-border);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 16px; /* ≥16px — iOS не зумит страницу при фокусе */
  flex-shrink: 0;
}
.ks-modal__subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--p24-muted);
  margin: 12px 0 8px;
  flex-shrink: 0;
}
.ks-region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.ks-pill {
  padding: 6px 12px;
  border-radius: 20px;
  background: #f1f5f9;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
}
.ks-pill.active { background: var(--p24-primary-bg); border-color: var(--p24-primary); color: var(--p24-primary); font-weight: 600; }
.ks-city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
  max-height: min(50vh, 320px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  align-content: start; /* не растягивать строки на всю высоту при 1–2 городах */
  align-items: start;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}
.ks-city-grid::-webkit-scrollbar {
  width: 8px;
}
.ks-city-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.ks-city-grid::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
.ks-city-grid::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
@media (min-width: 520px) {
  .ks-city-grid { grid-template-columns: repeat(3, 1fr); }
}
.ks-city-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #f1f5f9;
  width: 100%;
  box-sizing: border-box;
}
.ks-city-item:hover, .ks-city-item.selected { background: var(--p24-primary-bg); border-color: var(--p24-primary); }
.ks-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--p24-border);
  flex-shrink: 0;
  background: #fff;
}

/* ========== FOOTER ========== */
.site-footer { margin-top: 0; }
.p24-footer {
  background: #18181b;
  color: #e4e4e7;
  padding: 64px 0 32px;
  position: relative;
}
.p24-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--p24-primary-ring), transparent);
}
.p24-footer__container { max-width: var(--p24-container); margin: 0 auto; padding: 0 16px; }
.p24-footer__grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) repeat(3, minmax(0, 1fr)) minmax(200px, 1.35fr);
  gap: 24px 28px;
  margin-bottom: 48px;
}
.p24-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
}
.p24-footer__logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 12px;
  line-height: 0;
}
.p24-footer__logo-img {
  display: block;
  max-height: 48px;
  max-width: min(280px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}
.p24-footer__brand p { font-size: 14px; line-height: 1.6; color: #a1a1aa; margin: 0 0 20px; max-width: 280px; }
.p24-footer__apps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
}
.p24-footer__app {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #27272a;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #3f3f46;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.p24-footer__app:hover { border-color: var(--p24-primary-soft); transform: translateY(-2px); }
.p24-footer__app small { display: block; font-size: 10px; color: #71717a; text-transform: uppercase; }
.p24-footer__app strong { display: block; }
.p24-footer__app-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.p24-footer__app-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.p24-footer__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--p24-primary-soft);
  display: inline-block;
}
.p24-footer__links { list-style: none; margin: 0; padding: 0; }
.p24-footer__links li { margin-bottom: 12px; }
.p24-footer__links a { color: #a1a1aa; text-decoration: none; font-size: 14px; }
.p24-footer__links a:hover { color: var(--p24-primary-soft); }

.p24-footer__support {
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  padding: 18px 16px;
  min-width: 0;
}
.p24-footer__email { color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; display: block; margin-bottom: 4px; }
.p24-footer__email:hover { color: var(--p24-primary-soft); }
.p24-footer__hours { font-size: 13px; color: #71717a; margin: 0 0 16px; }
.p24-footer__btn {
  width: 100%;
  margin-bottom: 8px;
  white-space: nowrap;
  font-size: 14px;
  padding-left: 12px;
  padding-right: 12px;
}
.p24-footer__btn--muted { background: #3f3f46 !important; border: 1px solid #52525b; color: #fff !important; }

.p24-footer__payments {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #3f3f46;
  border-bottom: 1px solid #3f3f46;
  margin-bottom: 24px;
}
.p24-footer__payments-label { font-size: 12px; color: #71717a; display: block; margin-bottom: 10px; }
.p24-footer__payments-img {
  display: block;
  max-width: min(576px, 60%);
  width: 60%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.p24-footer__bottom { text-align: center; font-size: 13px; color: #71717a; line-height: 1.6; }
.p24-footer__bottom p { margin: 0 0 12px; }
.p24-footer__legal { font-size: 12px; }
.p24-footer__legal a { color: #a1a1aa; }

/* Cookie */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid var(--p24-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: 14px 20px;
}
.cookie-bar.is-hidden { display: none; }
.cookie-bar__inner {
  max-width: var(--p24-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-bar__inner p { margin: 0; font-size: 14px; color: var(--p24-muted); }
.cookie-bar__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ========== HOME ========== */
.hero {
  position: relative;
  padding: 48px 20px 56px;
  overflow: hidden;
}
.hero--cover {
  min-height: clamp(360px, 46vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 64px;
  color: #1a2e35;
  background: #dce8ef center / cover no-repeat;
  background-image: var(--hero-bg);
  overflow: visible;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.78) 40%,
    rgba(255, 255, 255, 0.82) 70%,
    rgba(255, 255, 255, 0.94) 100%
  );
  pointer-events: none;
}
.hero--cover::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(760px, 94vw);
  height: 220px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.72) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  max-width: var(--p24-container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero__inner--center {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--p24-primary);
  margin: 0 0 12px;
}
.hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.85);
}
.hero__lead {
  font-size: 1.05rem;
  color: #334155;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.55;
}
.hero__lead strong { font-weight: 800; color: #0f172a; }
.hero-search {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 0 20px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.hero-search form {
  margin: 0;
}
.hero-search .oklad-search {
  width: 100%;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.hero--cover .btn-outline {
  background: #fff;
  border-color: #cbd5e1;
  color: #1e293b;
}
.hero--cover .btn-outline:hover {
  border-color: var(--p24-primary);
  color: var(--p24-primary);
}
.hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.hero__stats span { font-size: 12px; color: #64748b; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section { padding: 48px 20px; }
.section--categories { background: #fff; }
.section--cities { background: #f8fafc; }
.section--home-faq {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-top: 1px solid var(--p24-border);
  border-bottom: 1px solid var(--p24-border);
}
.home-faq {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px 40px;
  align-items: start;
}
.home-faq__lead {
  margin: 8px 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--p24-muted);
  max-width: 42ch;
}
.home-faq__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-faq__nav-link {
  display: inline-block;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p24-primary-deep, #007a52);
  text-decoration: none;
  background: var(--p24-primary-bg, #ecfdf5);
  border: 1px solid var(--p24-primary-muted, #a7f3d0);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}
.home-faq__nav-link:hover {
  background: #fff;
  border-color: var(--p24-primary, #00ba77);
}
.info-faq--home details {
  border: 1px solid var(--p24-border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.info-faq--home details[open] {
  border-color: rgba(0, 186, 119, 0.35);
  box-shadow: 0 4px 16px rgba(0, 186, 119, 0.08);
}
.info-faq--home summary {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.info-faq--home summary::-webkit-details-marker { display: none; }
.info-faq--home summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--p24-muted);
}
.info-faq--home details[open] summary::after { content: "−"; }
.info-faq--home .info-faq__body {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}
.info-faq--home .info-faq__body p { margin: 0; }
@media (max-width: 900px) {
  .home-faq { grid-template-columns: 1fr; }
  .home-faq__lead { max-width: none; }
}
.section--steps { background: #fff; }
.section--cta { padding-bottom: 56px; }
.section__inner { max-width: var(--p24-container); margin: 0 auto; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section__title { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--p24-text); }
.section__title--center { text-align: center; margin-bottom: 32px; }
.section__desc { margin: 4px 0 0; color: var(--p24-muted); font-size: 14px; }
.section__link-btn {
  border: none;
  background: none;
  color: var(--p24-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}на г
.section__link-btn:hover { text-decoration: underline; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--p24-border);
  border-radius: var(--p24-radius);
  text-decoration: none;
  color: var(--p24-text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cat-card:hover {
  border-color: var(--p24-primary);
  box-shadow: var(--p24-shadow);
  transform: translateY(-2px);
  color: var(--p24-text);
}
.cat-card__icon { display: inline-flex; align-items: center; justify-content: center; }
.cat-card__label { font-weight: 600; font-size: 14px; }

.city-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.city-chip {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--p24-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--p24-text);
  text-decoration: none;
  transition: all 0.2s;
}
.city-chip:hover {
  background: var(--p24-primary);
  border-color: var(--p24-primary);
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: #f8fafc;
  border: 1px solid var(--p24-border);
  border-radius: var(--p24-radius);
  padding: 24px;
}
.step-card__num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--p24-primary);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.step-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--p24-muted); font-size: 14px; line-height: 1.55; }

.cta-banner {
  max-width: var(--p24-container);
  margin: 0 auto;
  background: linear-gradient(120deg, #1e293b, #334155);
  color: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 8px; font-size: 1.5rem; }
.cta-banner p { margin: 0; opacity: 0.85; max-width: 480px; }
.cta-banner .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.cta-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .p24-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 18px;
  }
  /* Лого + описание + приложения — на всю ширину, ниже ссылки в 2 колонки */
  .p24-footer__brand {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 14px;
  }
  .p24-footer__brand p {
    max-width: none;
    margin-bottom: 0;
  }
  .p24-footer__apps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
    gap: 10px;
  }
  .p24-footer__support {
    grid-column: 1 / -1;
    max-width: none;
  }
  .hero__inner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 900px) {
  .site-header--desktop { display: none; }
  .site-header--mobile { display: block; background: #fff; border-bottom: 1px solid var(--p24-border); position: sticky; top: 0; z-index: 500; }
  .mobile-header__row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    min-height: 0;
  }
  .site-header--mobile .site-logo--sm {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .site-header--mobile .site-logo--sm .site-logo__img {
    max-height: 34px;
    max-width: 140px;
    width: auto;
    height: auto;
  }
  .mobile-header__search-btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    text-align: left;
    padding: 6px 8px;
    background: #f2f4f5;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.2;
    color: #888;
    cursor: pointer;
  }
  body.has-mobile-tabbar {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
  body.has-mobile-tabbar .p24-footer {
    margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-tabbar {
    display: flex;
    justify-content: flex-start;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 480;
    padding: 4px 12px calc(4px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }
  .mobile-tabbar__inner {
    pointer-events: auto;
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-start;
    width: auto;
    max-width: calc(100% - 24px);
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .mobile-tabbar__item {
    display: flex;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tabbar__item--city:hover,
  .mobile-tabbar__item--city:focus-visible {
    background: rgba(15, 23, 42, 0.98);
    box-shadow:
      0 14px 40px rgba(15, 23, 42, 0.95),
      0 0 0 1px rgba(34, 197, 94, 0.5);
  }
  .mobile-tabbar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: inherit;
  }
  .mobile-tabbar__icon svg {
    width: 20px;
    height: 20px;
  }
  .mobile-header__icons {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
  }
  .mobile-tabbar__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-tabbar__city-wrap {
    position: relative;
    flex: 0 0 auto;
    display: flex;
  }
  .mobile-tabbar__item--city {
    width: auto;
    max-width: min(280px, calc(100vw - 48px));
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #e5fdf4;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow:
      0 10px 32px rgba(15, 23, 42, 0.8),
      0 0 0 1px rgba(15, 23, 42, 0.85);
  }
  .mobile-tabbar__item--city .mobile-tabbar__icon {
    flex-shrink: 0;
    color: #22c55e;
  }
  .mobile-tabbar__city-text {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 14ch;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e5fdf4;
    text-align: left;
  }
  .mobile-city-hint {
    position: absolute;
    z-index: 520;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 168px;
    max-width: 220px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    font-size: 12px;
    line-height: 1.35;
    color: #334155;
    animation: mobile-city-hint-in 0.25s ease;
  }
  .mobile-city-hint[hidden] {
    display: none !important;
  }
  .mobile-city-hint::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
  }
  .mobile-city-hint__text {
    flex: 1;
    font-weight: 500;
  }
  .mobile-city-hint__close {
    flex-shrink: 0;
    border: none;
    background: #f1f5f9;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    font-size: 16px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0;
  }
  @keyframes mobile-city-hint-in {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .mobile-city-hint--tabbar {
    bottom: calc(100% + 10px);
    top: auto;
    left: 0;
    right: auto;
    transform: none;
  }
  .mobile-city-hint--tabbar::before {
    top: auto;
    bottom: -6px;
    left: 18px;
    right: auto;
    margin-left: 0;
    border-left: none;
    border-top: none;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }
  @keyframes mobile-city-hint-in-tabbar {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .mobile-city-hint--tabbar {
    animation: mobile-city-hint-in-tabbar 0.25s ease;
  }
  .mobile-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    color: var(--p24-text);
    text-decoration: none;
    cursor: pointer;
  }
  .mobile-header__icon svg {
    width: 19px;
    height: 19px;
  }
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 499;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .mobile-nav-backdrop[hidden] {
    display: none !important;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }
  .site-header--mobile.is-nav-open {
    z-index: 501;
  }
  .mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 502;
    width: min(268px, 82vw);
    max-width: 268px;
    padding: 52px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: none;
    border-left: 1px solid var(--p24-border);
    border-radius: 14px 0 0 14px;
    box-shadow: -10px 0 36px rgba(15, 23, 42, 0.14);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav-panel:not([hidden]) {
    display: flex;
  }
  .mobile-nav-panel[hidden] {
    display: none !important;
  }
  .mobile-nav-panel a {
    padding: 10px 6px;
    font-size: 14px;
    color: var(--p24-text);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
  }
  .mobile-nav-panel__emphasis {
    color: #15803d;
  }
  .mobile-nav-panel__cta {
    margin-top: 8px;
    padding: 12px 10px !important;
    font-size: 14px;
    text-align: center;
    background: var(--p24-primary) !important;
    color: #fff !important;
    border-radius: 10px;
    border: none !important;
  }
  .mobile-nav-panel__user {
    padding: 10px 6px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
  }
  .mobile-nav-panel__user strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-word;
  }
  .mobile-nav-panel__user span { font-size: 12px; color: var(--p24-primary); font-weight: 600; }
}

@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .p24-footer {
    padding: 36px 0 24px;
  }
  .p24-footer__grid {
    gap: 16px 12px;
    margin-bottom: 28px;
  }
  .p24-footer__logo-img {
    max-height: 40px;
  }
  .p24-footer__brand p {
    font-size: 13px;
    line-height: 1.5;
  }
  .p24-footer__app {
    padding: 8px 10px;
    font-size: 13px;
  }
  .p24-footer__title {
    margin-bottom: 10px;
    padding-bottom: 6px;
    font-size: 11px;
  }
  .p24-footer__links li {
    margin-bottom: 8px;
  }
  .p24-footer__links a {
    font-size: 13px;
  }
  .p24-footer__payments {
    padding: 14px 0;
    margin-bottom: 18px;
  }
  .p24-footer__payments-img {
    max-width: 100%;
    width: 100%;
  }
  .p24-footer__bottom {
    font-size: 12px;
  }
  /* Модалка выбора города — на всю высоту/ширину */
  .ks-modal-overlay {
    align-items: stretch;
    justify-content: center;
    padding: 0;
  }
  .ks-modal {
    border-radius: 0;
    max-width: none;
    max-height: none;
    height: 100vh;
    height: 100dvh;
  }
  .ks-modal__head {
    padding: 14px 16px;
  }
  .ks-modal__body {
    padding: 12px 16px 8px;
  }
  .ks-modal__foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    justify-content: stretch;
  }
  .ks-modal__foot .btn {
    flex: 1;
    min-width: 0;
  }
  .ks-city-grid {
    max-height: none;
    flex: 1;
    min-height: 100px;
  }
  .cta-banner { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .hero--cover { padding: 40px 16px 48px; min-height: 360px; }
  .hero-search { padding: 10px; }
  .hero-search .oklad-search__field {
    flex-direction: column;
    gap: 8px;
  }
  .hero-search .oklad-search__input-wrap {
    width: 100%;
  }
  .hero-search .oklad-search__submit {
    width: 100%;
  }
  /* Выбор города в 2 столбика на телефоне */
  .ks-city-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Кабинет и формы — меньше боковых отступов на телефоне */
@media (max-width: 768px) {
  .has-account-sidebar .account-layout {
    padding: 6px 6px 28px;
    gap: 12px;
  }

  .has-account-sidebar .account-layout__main .page-wrap,
  .has-account-sidebar .page-wrap {
    padding: 6px 4px 0;
    max-width: none;
    overflow-x: clip;
  }

  .has-account-sidebar .vacancy-dash__head,
  .has-account-sidebar .vacancy-form-page__head {
    padding-left: 4px;
    padding-right: 4px;
  }

  .has-account-sidebar .card.vacancy-form,
  .has-account-sidebar form.vacancy-form.card {
    padding: 0;
    border-radius: 10px;
  }

  .has-account-sidebar .vacancy-form__section,
  .has-account-sidebar .resume-form.vacancy-form .vacancy-form__section {
    padding: 0;
    margin-bottom: 10px;
  }

  .has-account-sidebar .resume-form__section-head,
  .has-account-sidebar .resume-form__section--card .resume-accordion__head {
    padding: 12px 14px 10px;
  }

  .has-account-sidebar .resume-form__section-body,
  .has-account-sidebar .resume-form__section--card .resume-accordion__body {
    padding: 12px 14px 16px;
  }

  .has-account-sidebar .resume-form .vacancy-form__actions,
  .has-account-sidebar .vacancy-form__actions {
    padding: 12px 10px 14px;
  }

  .has-account-sidebar .vacancy-form__section-title,
  .has-account-sidebar .resume-form .vacancy-form__section > h2 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .has-account-sidebar .profile-form__grid {
    gap: 12px;
  }

  .has-account-sidebar .resume-dash .vacancy-dash__title,
  .has-account-sidebar .vacancy-form-page__title {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .has-account-sidebar .account-layout {
    padding: 4px 4px 24px;
  }

  .has-account-sidebar .account-layout__main .page-wrap,
  .has-account-sidebar .page-wrap {
    padding: 4px 2px 0;
  }

  .mobile-header__row {
    padding: 4px 8px;
    gap: 5px;
  }

  .site-header--mobile .site-logo--sm .site-logo__img {
    max-height: 31px;
    max-width: 125px;
  }

  .mobile-header__search-btn {
    padding: 5px 7px;
    font-size: 11px;
  }

}

/* ========== INNER PAGES / SEO ========== */
.page-wrap {
  max-width: var(--p24-container);
  margin: 0 auto;
  padding: 20px 20px 0;
}

.breadcrumbs { margin-bottom: 16px; }
.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-size: 13px;
  color: var(--p24-muted);
}
.breadcrumbs__item { display: inline-flex; align-items: center; }
.breadcrumbs__item:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
  color: #cbd5e1;
  font-weight: 600;
}
.breadcrumbs__item a {
  color: var(--p24-muted);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumbs__item a:hover { color: var(--p24-primary); }
.breadcrumbs__item span[aria-current] { color: var(--p24-text); font-weight: 600; }

.archive-head { margin-bottom: 20px; }
.archive-head__title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.archive-head__lead {
  margin: 0;
  color: var(--p24-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
}
.archive-list__subtitle {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
}

.vacancy-single__head { margin-bottom: 20px; }
.vacancy-single__meta {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p24-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vacancy-single__title {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}
.vacancy-single__salary {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--p24-primary);
}
.vacancy-single__employer {
  margin: 0;
  color: var(--p24-muted);
  font-size: 14px;
}
.vacancy-single__verified { color: var(--p24-primary); font-weight: 600; }
.vacancy-single__body {
  margin-top: 20px;
  line-height: 1.65;
}
.vacancy-single__contact {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--p24-border);
}
.vacancy-single__contact-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.btn-primary {
  background: var(--p24-primary);
  box-shadow: 0 2px 8px var(--p24-primary-ring);
}
.btn-primary:hover {
  background: var(--p24-primary-hover);
}

/* ========== SMS AUTH ========== */
.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px !important;
}
.auth-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p24-primary);
  background: var(--p24-primary-bg);
  padding: 4px 10px;
  border-radius: 6px;
  margin: 0 0 12px;
}
.auth-card__title { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; }
.auth-card__lead { margin: 0 0 20px; color: var(--p24-muted); font-size: 14px; line-height: 1.5; }
.auth-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}
.auth-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--p24-border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  margin-bottom: 12px;
}
.auth-input:focus {
  outline: none;
  border-color: var(--p24-primary);
  box-shadow: 0 0 0 3px var(--p24-primary-ring);
}
.auth-input--code { letter-spacing: 0.3em; text-align: center; font-weight: 700; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-sms-timer { font-size: 13px; color: var(--p24-muted); margin-bottom: 10px; }
.auth-phone-sent { font-size: 14px; margin: 0 0 16px; }
.auth-resend { margin-top: 12px; }
.auth-back { margin: 16px 0 0; font-size: 14px; }
.auth-footer-note { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--p24-muted); }

/* ========== HOME: блог-карусель ========== */
.section--home-blog {
  background: linear-gradient(165deg, #f0fdf4 0%, #f8fafc 42%, #fff 100%);
  padding: 52px 20px 64px;
  border-top: 1px solid rgba(0, 186, 119, 0.08);
}

.home-blog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.home-blog__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p24-primary);
}

.home-blog__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.home-blog__all {
  font-size: 14px;
  font-weight: 700;
  color: var(--p24-primary);
  text-decoration: none;
  white-space: nowrap;
}

.home-blog__all:hover {
  text-decoration: underline;
}

.blog-carousel__controls {
  display: flex;
  gap: 8px;
}

.blog-carousel__btn {
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #334155;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.blog-carousel__btn:hover {
  border-color: var(--p24-primary);
  color: var(--p24-primary);
  transform: translateY(-1px);
}

.home-blog__carousel {
  overflow: hidden;
  margin: 0 -6px;
  padding: 6px;
}

.home-blog__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  scrollbar-width: none;
  cursor: grab;
}

.home-blog__track::-webkit-scrollbar {
  display: none;
}

.home-blog__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.home-blog__card {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecef;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-blog__card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 186, 119, 0.35);
  box-shadow: 0 16px 40px rgba(0, 186, 119, 0.14);
}

.home-blog__media {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #00ba77 0%, #0d9488 55%, #6366f1 100%);
}

.home-blog__media--has-img {
  background: #e2e8f0;
}

.home-blog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-blog__cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 8px;
}

.home-blog__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.home-blog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog__excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--p24-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog__meta {
  margin-top: auto;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .section--home-blog {
    padding: 40px 16px 48px;
  }
  .home-blog__head {
    flex-direction: column;
    align-items: stretch;
  }
  .home-blog__head-actions {
    justify-content: space-between;
  }
  .home-blog__media {
    height: 140px;
  }
}
