/* ---------- Шапка ---------- */
.header { position: relative; z-index: 50; background: #fff; }
.header__top { background: var(--c-bg-soft); display: none; }
.header__top-inner { display: flex; align-items: center; gap: 29px; min-height: 66px; }
.header__top-links { display: flex; gap: 32px; font-size: 13px; line-height: 1.75; color: var(--c-navy); margin-right: auto; }
.header__top-link:hover { text-decoration: underline; }
.header__search { width: 375px; flex: none; }
.header__contacts { display: flex; align-items: center; gap: 18px; }
.header__mail { font-size: 15px; line-height: 1.55; color: var(--c-navy); text-transform: lowercase; }
.header__phone { font-size: 15px; line-height: 1.55; font-weight: 600; color: var(--c-navy); white-space: nowrap; }
.header__mail:hover, .header__phone:hover { text-decoration: underline; }
.messenger { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; flex: none; }
.messenger--tg { background: var(--c-telegram); }
.header__phone + .messenger { margin-left: 8px; }
.messenger + .messenger { margin-left: -10px; }
.messenger img { width: 25px; height: 25px; }
.messenger--tg img { width: 13.4px; height: 12.6px; }

.header__main { background: #fff; position: relative; }
.header__main-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 24px; }
.header__main .logo { margin-block: 8px; }

.logo { position: relative; display: inline-grid; grid-template-columns: 37px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; color: #1f2933; }
.logo__mark { grid-row: 1 / span 2; width: 37px; height: auto; align-self: start; margin-top: 0; }
.logo__name { font-family: var(--ff-logo); font-weight: 700; font-size: 25px; line-height: 29.45px; letter-spacing: .19px; white-space: nowrap; align-self: start; }
.logo__tagline { font-size: 12px; line-height: 14px; color: var(--c-text-3); white-space: nowrap; align-self: start; margin-top: 3px; }
.logo--light { color: #fff; }
.logo--light .logo__name { font-size: 22px; letter-spacing: 0; }
.logo--light .logo__mark { margin-top: 3px; }
.logo--light .logo__tagline { font-size: 10px; margin-top: -2.5px; }

.nav__list { display: flex; flex-direction: column; }
.nav__link { display: block; padding: 12px 0; font-size: 16px; line-height: 1.5; color: var(--c-text); }
.nav__link:hover { color: var(--c-accent); }
.nav__link[aria-current="page"] { color: var(--c-accent); }

/* Бургер и мобильная панель */
.burger { position: relative; width: 44px; height: 44px; margin-right: -10px; }
.burger__line, .burger__line::before, .burger__line::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--c-text); content: ''; transition: transform .2s, opacity .2s; }
.burger__line { top: 21px; }
.burger__line::before { top: -7px; left: 0; }
.burger__line::after { top: 7px; left: 0; }
.burger[aria-expanded="true"] .burger__line { background: transparent; }
.burger[aria-expanded="true"] .burger__line::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line::after { transform: translateY(-7px) rotate(-45deg); }

.header__panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  padding: 16px var(--pad) 24px; background: #fff; border-top: 1px solid var(--c-border);
  box-shadow: 0 16px 24px rgba(18, 51, 89, .12); max-height: calc(100vh - 66px); overflow-y: auto;
}
.header__panel.is-open { display: block; }
.header__search-mobile { margin-bottom: 8px; }
.header__cta { margin-top: 12px; width: 100%; min-height: 44px; }
.header__contacts-mobile { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }

@media (min-width: 1024px) {
  .header__top { display: block; }
  .header__main-inner { align-items: flex-start; min-height: 67px; }
  .header__main .logo { margin: 18px 0 0; }
  .burger, .header__search-mobile, .header__contacts-mobile { display: none; }
  .header__panel { position: static; display: flex !important; align-items: center; gap: 32px; padding: 0; border: 0; box-shadow: none; max-height: none; overflow: visible; background: none; }
  .header__panel { align-items: flex-start; }
  .nav { margin-top: 26px; }
  .nav__list { flex-direction: row; gap: 31px; }
  .nav__link { padding: 6px 0; }
  .header__cta { margin: 23px 0 0; width: 162px; min-height: 38px; padding: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__top-links { display: none; }
  .header__panel { gap: 20px; }
  .nav__list { gap: 18px; }
  .header__cta { width: auto; padding: 0 16px; }
  .nav__link { font-size: 15px; }
  .header__search { width: 300px; margin-right: auto; }
}

/* ---------- Подвал ---------- */
.footer { background: var(--c-navy); color: #fff; margin-top: 0; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: 32px; }
.footer__requisites { margin-top: 24px; font-size: 13px; line-height: 21px; }
.footer__legal { margin-top: 12px; }
.footer__legal-link { display: block; width: fit-content; font-size: 13px; line-height: 22px; text-decoration: underline; text-underline-position: from-font; }
.footer__legal-link:hover { text-decoration: none; }
.footer__copy { margin-top: 20px; font-size: 13px; line-height: 18px; }
.footer__trademark { margin-top: 8px; font-size: 15px; line-height: 23.25px; color: var(--c-on-navy-muted); }
.footer__title { font-size: 16px; line-height: 24.8px; font-weight: 600; color: #fff; }
.footer__list { display: grid; gap: 10px; margin-top: 10px; }
.footer__link { font-size: 16px; line-height: 24.8px; color: var(--c-on-navy-link); }
.footer__link:hover { color: #fff; text-decoration: underline; }
.footer__cta { margin-top: 20px; }
.footer__contacts-caption { font-size: 14px; line-height: 1.4; letter-spacing: -.28px; color: var(--c-muted-top); }
.footer__contact-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; min-height: 25px; }
.footer__contact-icon { flex: none; width: 18px; height: 17px; object-fit: none; opacity: 1; }
.footer__contact-icon--phone { object-fit: contain; width: 14.17px; height: 11.3px; margin: 2.8px 1.9px; transform: rotate(30.41deg); }
.footer__contact-icon--mail { width: 14.33px; height: 8px; margin: 0 1.8px; object-fit: contain; }
.footer__phone, .footer__mail { font-size: 16px; line-height: 1.4; letter-spacing: -.32px; color: #fff; }
.footer__phone { white-space: nowrap; }
.footer__mail { text-decoration: underline; text-transform: lowercase; overflow-wrap: anywhere; }
.footer__phone:hover, .footer__mail:hover { text-decoration: underline; }
.footer .messenger, .footer .messenger img { width: 19px; height: 19px; }
.footer .messenger--tg img { width: 9.46px; height: 9.39px; }
.footer .footer__phone + .messenger { margin-left: 13px; }
.footer .messenger + .messenger { margin-left: 8.4px; }
.footer__dev { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 28px; }
.footer__dev-text { font-family: var(--ff-base); font-size: 10px; line-height: 1.406; letter-spacing: .1px; text-align: right; color: #fff; }

@media (min-width: 640px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .footer__inner { grid-template-columns: 727fr 238fr 213fr 236fr; gap: 0; padding-block: 0; }
  .footer__inner > * { padding-block: 31px 33px; }
  .footer__brand { grid-column: auto; padding-top: 21px; padding-bottom: 32.75px; padding-right: 32px; }
  .footer__requisites { margin-top: 12px; }
  .footer__legal { margin-top: 7px; }
  .footer__copy { margin-top: 13px; }
  .footer__trademark { margin-top: 9px; }
  .footer__cta { width: 162px; padding: 0; }
  .footer__contacts { display: flex; flex-direction: column; }
  .footer__contacts-caption { line-height: 18px; }
  .footer__contact-row { margin-top: 15.5px; flex-wrap: nowrap; }
  .footer__contact-row + .footer__contact-row { margin-top: 3.5px; min-height: 22px; }
  .footer__dev { margin-top: auto; padding-top: 28px; }
}

/* ---------- Подсказка «i» у логотипа в шапке ---------- */
.logo-wrap { position: relative; display: inline-block; }
.header__main .logo-wrap { margin-block: 8px; }
.header__main .logo-wrap .logo { margin: 0; }
.logo-info { position: absolute; top: 0; left: 0; display: grid; grid-template-columns: 37px auto; column-gap: 8px; grid-template-rows: 29.45px 17px; pointer-events: none; }
.logo-info__row { grid-column: 2; grid-row: 2; display: flex; align-items: flex-start; gap: 6px; margin-top: 3px; }
.logo-info__ghost { font-size: 12px; line-height: 14px; white-space: nowrap; visibility: hidden; }
.logo-info__btn { position: relative; width: 14px; height: 14px; padding: 0; display: grid; place-items: center; color: var(--c-text-3); background: none; border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto; }
.logo-info__btn::after { content: ''; position: absolute; inset: -10px; }
.logo-info__btn:hover, .logo-info__btn:focus-visible, .logo-info.is-open .logo-info__btn { color: var(--c-navy); }
.logo-info__tip {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  width: min(360px, calc(100vw - 32px)); padding: 14px 16px;
  font-size: 13px; line-height: 1.5; font-weight: 400; color: #fff; background: var(--c-navy);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(18, 51, 89, .28);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.logo-info__btn:hover ~ .logo-info__tip, .logo-info__btn:focus-visible ~ .logo-info__tip, .logo-info.is-open .logo-info__tip { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1024px) { .header__main .logo-wrap { margin: 18px 0 0; } }
.logo-info__tip p { margin: 0; }
.logo-info__tip p + p { margin-top: 10px; }
.logo-info__tip ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.logo-info__tip li + li { margin-top: 3px; }
