/* Южный Хаб - база v3 (лендинг + SEO) */

:root {
  --yh-navy: #1e4a6e;
  --yh-navy-dark: #153a56;
  --yh-cta: #e85d04;
  --yh-cta-hover: #cf5203;
  --yh-text: #0f172a;
  --yh-muted: #64748b;
  --yh-bg: #f4f6f8;
  --yh-bg-warm: #faf8f5;
  --yh-blue-soft: #e8f2fa;
  --yh-surface: #ffffff;
  --yh-border: #e2e8f0;
  --yh-radius: 10px;
  --yh-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  --yh-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --yh-container: min(1120px, calc(100% - 2rem));
  --header-h: 5.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--yh-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--yh-text);
  background: var(--yh-bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--yh-navy);
}

.container {
  width: var(--yh-container);
  margin-inline: auto;
}

body.nav-open {
  overflow: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--yh-border);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 101;
}

.header__logo-img {
  width: auto;
  height: clamp(56px, 10vw, 80px);
  max-width: min(320px, 52vw);
  object-fit: contain;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 101;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yh-navy-dark);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__links a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--yh-navy);
}

.header__links a:hover {
  color: var(--yh-cta);
}

.header__phone {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--yh-navy-dark);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 961px) {
  .header__nav {
    flex: 1;
    justify-content: flex-end;
  }

  .header__links {
    margin-inline: auto;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 4.5rem;
  }

  .header__logo-img {
    height: clamp(44px, 12vw, 56px);
    max-width: min(200px, 48vw);
  }

  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem 1rem 2rem;
    background: var(--yh-surface);
    border-top: 1px solid var(--yh-border);
    overflow-y: auto;
    transform: translateY(-8%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__links {
    flex-direction: column;
    gap: 0;
  }

  .header__links li {
    border-bottom: 1px solid var(--yh-border);
  }

  .header__links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }

  .header__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: auto;
  }

  .header__actions .btn {
    width: 100%;
  }

  .header__phone {
    text-align: center;
    padding: 0.5rem;
    font-size: 1.125rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--yh-radius);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: var(--yh-cta);
}

.btn--primary:hover {
  background: var(--yh-cta-hover);
}

.btn--ghost {
  border: 1px solid var(--yh-border);
  background: var(--yh-surface);
}

.section {
  padding: 3.5rem 0;
}

.section--soft {
  background: #eef4f8;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--yh-navy);
}

.section__lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--yh-muted);
}

.hero {
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(165deg, #ffffff 0%, var(--yh-bg-warm) 42%, var(--yh-blue-soft) 100%);
}

.hero__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--yh-navy-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--yh-border);
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.14;
  max-width: 22ch;
  color: var(--yh-navy-dark);
}

.hero__subtitle {
  margin: 0 0 1.25rem;
  max-width: 48ch;
  font-size: 1.05rem;
  color: var(--yh-muted);
}

.hero__bullets {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.hero__bullets li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.35rem;
  color: var(--yh-text);
}

.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--yh-cta);
  transform: rotate(45deg);
}

.hero__bullets a {
  color: var(--yh-navy);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero__chip {
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--yh-navy-dark);
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: 999px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__hint {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--yh-muted);
}

.hero__mp {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 74, 110, 0.12);
}

.hero__mp img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.hero__form {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.form-note {
  font-size: 0.8125rem;
  line-height: 1.45;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  box-shadow: var(--yh-shadow);
  padding: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--yh-muted);
}

.card--accent {
  border-color: #dbe7f2;
}

.card__title {
  margin: 0 0 0.5rem;
  color: var(--yh-navy-dark);
}

.card__text {
  margin: 0 0 1rem;
}

.card__footnote {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.lead-form {
  display: grid;
  gap: 0.7rem;
}

.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.lead-form input {
  border: 1px solid var(--yh-border);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  font: inherit;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
}

.form-status--ok {
  color: #166534;
}

.form-status--error {
  color: #b91c1c;
}

.price {
  margin-top: 0.8rem !important;
  color: var(--yh-navy-dark) !important;
  font-weight: 700;
}

.tariffs {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.tariffs p {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border: 1px solid var(--yh-border);
  border-radius: 8px;
  background: var(--yh-surface);
  padding: 0.7rem 0.9rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0.6rem 0 0;
  background: var(--yh-surface);
  color: var(--yh-muted);
}

.contact {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.footer {
  background: var(--yh-surface);
  border-top: 1px solid var(--yh-border);
  padding: 2.5rem 0 1.25rem;
  color: var(--yh-muted);
  font-size: 0.875rem;
}

.footer a {
  color: var(--yh-navy);
  text-decoration: none;
}

.footer a:hover {
  color: var(--yh-cta);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.footer__col p {
  margin: 0 0 0.5rem;
}

.footer__brand {
  margin: 0 0 0.5rem !important;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--yh-navy-dark);
}

.footer__title {
  margin: 0 0 0.65rem !important;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--yh-navy);
}

.footer__text {
  line-height: 1.55;
}

.footer__maps,
.footer__messengers {
  margin-top: 0.65rem !important;
}

.footer__schedule {
  margin-top: 0.75rem !important;
  font-weight: 600;
  color: var(--yh-navy-dark);
}

.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.35rem;
}

.footer__links a {
  font-weight: 500;
}

.footer__bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--yh-border);
  color: var(--yh-muted);
  font-size: 0.8125rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__muted {
  color: var(--yh-muted);
}

@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.legal-page {
  padding: 2rem 0 3rem;
}

.legal-page__content {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 1.25rem;
}

.legal-page__content h1,
.legal-page__content h2 {
  color: var(--yh-navy-dark);
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.legal-page__meta {
  color: var(--yh-muted);
  font-size: 0.9rem;
}

.footer__bottom {
  color: var(--yh-muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

.steps li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--yh-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.steps li span {
  color: var(--yh-muted);
  font-size: 0.95rem;
}

.review p {
  margin: 0 0 0.75rem;
  font-style: italic;
}

.review footer {
  font-weight: 600;
  color: var(--yh-navy-dark);
}

.wa-fallback {
  margin: 0.5rem 0 0;
}

.wa-fallback .btn {
  width: 100%;
}

.thanks__box {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.thanks__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--yh-cta);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.thanks__title {
  margin: 0 0 0.75rem;
  color: var(--yh-navy-dark);
}

.thanks__text {
  margin: 0 0 1.25rem;
  color: var(--yh-muted);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.gallery__item {
  margin: 0;
}

.gallery__item a {
  display: block;
  border-radius: var(--yh-radius);
  overflow: hidden;
  border: 1px solid var(--yh-border);
  box-shadow: var(--yh-shadow);
  background: var(--yh-surface);
}

.gallery__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery__item a:hover img {
  transform: scale(1.03);
}

.gallery__item figcaption {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  color: var(--yh-muted);
}

.map-block.has-error::after {
  content: "Карта временно недоступна. Маршруты: Яндекс и Ozon ~17,5 км, WB ~22,1 км.";
  display: block;
  padding: 1rem;
  color: var(--yh-muted);
  font-size: 0.9rem;
}

.mobile-bar {
  display: none;
}

@media (max-width: 960px) {
  body {
    padding-bottom: 4.5rem;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--yh-border);
    backdrop-filter: blur(8px);
  }

  .mobile-bar a {
    text-decoration: none;
    text-align: center;
    padding: 0.7rem 0.5rem;
    border-radius: var(--yh-radius);
    font-weight: 600;
  }

  .mobile-bar a:not(.btn) {
    border: 1px solid var(--yh-border);
    color: var(--yh-navy-dark);
  }

  .mobile-bar .btn {
    width: 100%;
  }

  .hero {
    padding: 1.75rem 0 2.5rem;
  }

  .hero__grid,
  .grid--3,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__title {
    max-width: none;
  }

  .hero__form {
    order: -1;
  }
}
