/* ============================================================
   CARD TECHNOLOGY — header.css
   ============================================================ */

/* ─── ROW 1: чёрная верхняя полоса ─── */
.hdr-top {
  background: #111;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.hdr-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  gap: 8px;
}
.hdr-top__links {
  display: flex;
  align-items: center;
}
.hdr-top__link {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 30px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  border-right: 1px solid rgba(255,255,255,.1);
  transition: color .15s;
  white-space: nowrap;
}
.hdr-top__link:first-child { border-left: none; padding-left: 0; }
.hdr-top__link:hover { color: var(--white); }
.hdr-top__link--red {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
}
.hdr-top__link--red:hover { background: var(--red-dark); color: var(--white); }

.hdr-top__right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 0;
}
.hdr-top__soc {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  opacity: .7;
  transition: opacity .15s;
}
.hdr-top__soc:hover { opacity: 1; }
.hdr-top__soc img { width: 18px; height: 18px; filter: brightness(10); }
.hdr-top__phone {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 600;
  padding-left: 8px;
  white-space: nowrap;
}
.hdr-top__phone:hover { color: var(--white); }

/* ─── ROW 2: белая полоса с логотипом и контактами ─── */
.hdr-mid {
  background: #f9f9f9;
  padding-top: 8px;
  position: relative;
  z-index: 200;
}
.hdr-mid__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.hdr-mid__logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.hdr-mid__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.hdr-mid__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  transition: color .15s;
}
.hdr-mid__phone svg { color: var(--red); }
.hdr-mid__phone:hover { color: var(--red); }
.hdr-mid__email {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--muted);
  transition: color .15s;
}
.hdr-mid__email svg { color: var(--red); }
.hdr-mid__email:hover { color: var(--ink); }

/* ─── ROW 3: навигация ─── */
/* ─── СТРОКА 3: навигация ─── */
.hdr-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #f9f9f9;
}
.hdr-nav-wrap__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.hdr-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}
.hdr-nav__item {
  position: static;
}
.hdr-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
  white-space: nowrap;
  transition: color .15s;
}
.hdr-nav__item:first-child .hdr-nav__link { padding-left: 0; }
.hdr-nav__link:hover,
.hdr-nav__item:hover > .hdr-nav__link { color: var(--red); }
.hdr-nav__link--active { color: var(--red); }
.hdr-nav__arrow { font-size: 9px; opacity: .5; transition: transform .2s; }
.hdr-nav__item:hover .hdr-nav__arrow { transform: rotate(180deg); }

/* ─── МЕГАМЕНЮ ─── */
.hdr-mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid #ebebeb;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 300;
}
.hdr-nav__item:hover .hdr-mega { display: block; }

.hdr-mega__inner {
  padding: 0;
  display: grid;
  align-items: stretch;
  gap: 0;
}
.hdr-mega__inner--2cols { grid-template-columns: 25% 25% 15% 35%; }
.hdr-mega__inner--1col  { grid-template-columns: 50% 15% 35%; }

.hdr-mega__col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding-left: 24px;
  padding-right: 40px;
  padding-top: 20px;
}
.hdr-mega__link {
  font-size: 15px;
  color: var(--ink2);
  transition: color .15s;
  line-height: 2;
}
.hdr-mega__link:hover { color: var(--red); }

/* CTA блок */
.hdr-mega__cta {
  overflow: hidden;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding-right: 150px;
}
.hdr-mega__photo {
  height: 290px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  object-position: bottom right;
  align-self: flex-end;
  order: 2;
}
.hdr-mega__cta-body {
  padding: 0 16px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  order: 1;
  align-self: flex-end;
}
.hdr-mega__cta--plain { align-items: flex-start; }
.hdr-mega__cta--reverse .hdr-mega__photo    { order: 1; }
.hdr-mega__cta--reverse .hdr-mega__cta-body { order: 2; }
.hdr-mega__cta-text {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.hdr-mega__cta-extra {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.hdr-mega__cta-extra a { color: var(--ink2); }
.hdr-mega__cta-extra a:hover { color: var(--red); }

/* ─── БУРГЕР ─── */
.hdr-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 52px; height: 52px;
  padding: 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.hdr-burger__line {
  display: block;
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hdr-burger.open .hdr-burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-burger.open .hdr-burger__line:nth-child(2) { opacity: 0; }
.hdr-burger.open .hdr-burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── МОБИЛЬНОЕ МЕНЮ ─── */
.hdr-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 88px;
  background: var(--white);
  z-index: 199;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  padding-top: 0;
}
.hdr-mobile.open { transform: translateX(0); }

.hdr-mobile__contacts {
  padding: 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hdr-mobile__phone {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hdr-mobile__email { font-size: 14px; color: var(--muted); }
.hdr-mobile__socials { display: flex; gap: 10px; margin-top: 4px; }
.hdr-mobile__soc {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
}
.hdr-mobile__soc img { width: 17px; height: 17px; filter: none; }

.hdr-mobile__nav { padding: 8px 0; }

.hdr-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  user-select: none;
}
.hdr-mobile__top-arrow { font-size: 18px; color: var(--muted); transition: transform .2s; font-weight: 400; }
.hdr-mobile__item.open .hdr-mobile__top-arrow { transform: rotate(180deg); color: var(--red); }
.hdr-mobile__top-link {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.hdr-mobile__sub { display: none; background: var(--surface); border-bottom: 1px solid var(--border); }
.hdr-mobile__item.open .hdr-mobile__sub { display: block; }
.hdr-mobile__sub-link {
  display: block;
  padding: 11px 20px 11px 32px;
  font-size: 14px;
  color: var(--ink2);
  border-bottom: 1px solid var(--border);
}
.hdr-mobile__sub-link:last-child { border-bottom: none; }
.hdr-mobile__cta { padding: 20px; }
.hdr-mobile__cta .btn { width: 100%; justify-content: center; font-size: 16px; padding: 16px; }

/* ─── АДАПТИВ ─── */
@media (max-width: 1100px) {
  .hdr-nav__link { padding: 0 10px; font-size: 13px; }
}
@media (max-width: 900px) {
  .hdr-top { display: none; }
  .hdr-mid__contacts { display: none; }
  .hdr-nav-wrap { display: none; }
  .hdr-mid__inner { justify-content: space-between; }
  .hdr-burger { display: flex; margin-left: auto; }
  .hdr-mobile { display: block; }
}
