:root {
  --seo-header-red: #d71920;
  --seo-header-ink: #101820;
  --seo-header-max: 92rem;
}

.home-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: #fff;
  background: rgba(15, 23, 31, .97);
  border-bottom: 3px solid var(--seo-header-red);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: min(var(--seo-header-max), 100%);
  min-height: 5rem;
  margin: auto;
  padding: .65rem clamp(1rem, 3vw, 2rem);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: .07em;
}

.home-brand:hover { text-decoration: none; }
.home-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  color: #fff;
  background: var(--seo-header-red);
  font-size: 1.35rem;
  font-weight: 900;
}

.home-brand strong,
.home-brand small { display: block; }
.home-brand strong { color: #fff; line-height: 1; }
.home-brand small { margin-top: .25rem; color: #aeb8c0; font-size: .67rem; }

.home-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 2vw, 1.75rem);
  flex-wrap: wrap;
}

.home-header .main-nav > a,
.home-header .parts-menu > summary {
  color: #dce2e6;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.home-header .main-nav > a:hover,
.home-header .parts-menu > summary:hover { color: #fff; text-decoration: none; }

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .18rem;
  min-width: 13.5rem;
}

.header-contact {
  display: flex;
  flex-direction: column;
  color: #fff;
  text-align: right;
  text-decoration: none;
}

.header-contact:hover { text-decoration: none; }
.header-contact small { color: #9eabb4; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.header-contact strong { color: #fff; font-size: 1.02rem; }
.header-contact-row { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.header-direct-number { color: #dce2e6; font-size: .82rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.header-direct-number:hover { color: #fff; text-decoration: none; }
.messenger-links { display: inline-flex; gap: .3rem; }
.messenger-link {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  text-decoration: none;
}
.messenger-link:hover { text-decoration: none; }
.messenger-link svg { width: 1rem; height: 1rem; }
.messenger-link.whatsapp:hover { color: #25d366; border-color: #25d366; }
.messenger-link.telegram:hover { color: #2aabee; border-color: #2aabee; }

.parts-menu { position: relative; }
.parts-menu > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.parts-menu > summary::-webkit-details-marker { display: none; }
.menu-arrow { font-size: 11px; transition: transform .15s ease; }
.parts-menu[open] .menu-arrow { transform: rotate(180deg); }
.parts-dropdown {
  display: none;
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  left: 0;
  width: 310px;
  padding: 8px;
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.parts-menu[open] .parts-dropdown { display: block; }
.parts-dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 13px;
  border-radius: 7px;
  color: #17202a !important;
  text-decoration: none;
}
.parts-dropdown a:hover { background: #f3f5f7; text-decoration: none; }
.parts-dropdown small { color: #7b858e; font-size: 11px; font-weight: 700; }

.seo-modal-open { overflow: hidden; }
.seo-quote-modal[hidden] { display: none !important; }
.seo-quote-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.seo-quote-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(5, 12, 18, .76);
  cursor: pointer;
}
.seo-quote-panel {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  color: #101820;
  background: #fff;
  border-top: 4px solid var(--seo-header-red);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.seo-quote-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid #dce1e4;
  background: #f5f6f7;
  color: #26333d;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.seo-quote-kicker { color: var(--seo-header-red); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.seo-quote-panel h2 { margin: .45rem 3rem .35rem 0; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.seo-quote-intro { margin: 0 0 1.2rem; color: #66717a; }
.seo-quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.seo-quote-form label { display: flex; flex-direction: column; gap: .32rem; color: #25313b; font-size: .8rem; font-weight: 750; }
.seo-quote-form .wide { grid-column: 1 / -1; }
.seo-quote-form input,
.seo-quote-form textarea {
  width: 100%;
  padding: .72rem .78rem;
  color: #101820;
  border: 1px solid #cbd2d7;
  background: #fff;
  outline: none;
}
.seo-quote-form input:focus,
.seo-quote-form textarea:focus { border-color: var(--seo-header-red); box-shadow: 0 0 0 2px rgba(215, 25, 32, .1); }
.seo-quote-form textarea { min-height: 6rem; resize: vertical; }
.seo-quote-consent { flex-direction: row !important; align-items: flex-start; font-weight: 500 !important; }
.seo-quote-consent input { width: auto; margin-top: .2rem; }
.seo-quote-trap { position: absolute; left: -10000px; }
.seo-quote-submit {
  min-height: 3.25rem;
  color: #fff;
  border: 0;
  background: var(--seo-header-red);
  font-weight: 850;
  cursor: pointer;
}
.seo-quote-submit:disabled { opacity: .6; cursor: wait; }
.seo-quote-feedback { margin: 0; padding: .8rem; background: #e7f6ed; border-left: 3px solid #29965a; color: #155b34; }
.seo-quote-feedback.error { background: #fff0f0; border-color: var(--seo-header-red); color: #8c1418; }

@media (hover: hover) and (min-width: 901px) {
  .parts-menu:hover .parts-dropdown { display: block; }
}

@media (max-width: 70rem) {
  .header-inner { grid-template-columns: auto 1fr; }
  .home-header .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding: .15rem 0; }
  .header-contacts { justify-self: end; }
}

@media (max-width: 900px) {
  .parts-menu { width: auto; }
  .parts-dropdown { position: fixed; top: auto; left: 1rem; width: min(310px, calc(100vw - 2rem)); margin-top: 8px; }
}

@media (max-width: 48rem) {
  .header-inner { gap: .55rem 1rem; min-height: 4.5rem; }
  .header-contact small { display: none; }
  .header-contact strong { font-size: .82rem; }
  .header-direct-number { font-size: .75rem; }
  .home-header .main-nav { gap: 1.1rem; flex-wrap: nowrap; }
  .home-header .main-nav > a,
  .home-header .parts-menu > summary { white-space: nowrap; font-size: .8rem; }
  .seo-quote-form { grid-template-columns: 1fr; }
  .seo-quote-form .wide { grid-column: auto; }
}

@media (max-width: 28rem) {
  .home-brand .brand-mark { width: 2.35rem; height: 2.35rem; }
  .home-brand small { display: none; }
  .header-inner { grid-template-columns: 1fr; }
  .header-contacts { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; min-width: 0; }
  .header-contact { flex-direction: row; }
  .header-contact-row { gap: .45rem; }
  .messenger-link { width: 1.8rem; height: 1.8rem; }
  .home-header .main-nav { grid-row: auto; grid-column: 1; }
}
