/* Magic Clickz Header CSS */
.mc-header,
.mc-header * {
  box-sizing: border-box;
}

.mc-header {
  --brand-main: #F25922;
  --brand-hover: #D64A19;
  --text: #1F2933;
  --text-2: #4B5563;
  --border: #E5E7EB;
  --bg: #F7F9FC;
  --tint: #FFF4EF;
  --white: #FFFFFF;
  --util-h: 68px;
  --main-h: 80px;
  font-family: "Google Sans", "Google Sans Text", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  background: var(--white);
  isolation: isolate;
  transition: box-shadow .25s ease;
  -webkit-font-smoothing: antialiased;
}

.admin-bar .mc-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .mc-header {
    top: 46px;
  }
}

.mc-header-holder {
  height: calc(68px + 104px);
  width: 100%;
}

.mc-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(31, 41, 51, .10);
}

.mc-header a {
  text-decoration: none;
  color: inherit;
}

.mc-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mc-header button {
  font-family: inherit;
  cursor: pointer;
}

.mc-header :focus-visible {
  outline: 3px solid var(--brand-main);
  outline-offset: 2px;
  border-radius: 4px;
}

.mc-wrap {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility bar ---------- */
.mc-util {
  position: relative;
  z-index: 5;
  height: var(--util-h);
  max-height: var(--util-h);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: max-height .3s ease, opacity .25s ease, border-color .25s ease;
}

.mc-util__in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.1;
}

.mc-stat__label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text);
}

.mc-stat__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-main);
  letter-spacing: -.01em;
}

.mc-stat__num svg {
  flex: none;
}

.mc-util__right {
  display: flex;
  align-items: center;
  gap: 44px;
}

.mc-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  transition: color .2s ease;
}

.mc-phone svg {
  color: var(--brand-main);
}

.mc-phone:hover {
  color: var(--brand-main);
}

.mc-header.is-scrolled .mc-util {
  max-height: 0;
  opacity: 0;
  border-color: transparent;
}

/* ---------- Main bar ---------- */
.mc-main {
  position: relative;
  z-index: 5;
  background: var(--white);
  height: var(--main-h);
  transition: height .3s ease;
}

.mc-header.is-scrolled .mc-main {
  height: 84px;
}

.mc-main__in {
  height: 100%;
  display: flex;
  align-items: center;
}

.mc-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.mc-logo img {
  height: 56px;
  width: auto;
  max-width: 230px;
  display: block;
  transition: height .3s ease;
}

.mc-header.is-scrolled .mc-logo img {
  height: 48px;
}

.mc-nav {
  align-self: stretch;
  margin-left: 24px;
  margin-right: 32px;
}

.mc-nav>ul {
  display: flex;
  height: 100%;
  align-items: stretch;
}

.mc-item {
  display: flex;
  align-items: stretch;
}

.mc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 clamp(10px, 1.25vw, 20px);
  background: transparent;
  border: 0;
  border-radius: 8px 8px 0 0;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.mc-link .mc-chev {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform .25s ease;
}

.mc-link:hover,
.mc-link.is-open,
.mc-link.mc-active {
  color: var(--brand-main);
  background: var(--tint);
}

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

.mc-link.is-open {
  transform: none;
}

.mc-link.is-open .mc-chev {
  transform: rotate(180deg);
}

.mc-cta {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-main);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 30px;
  border-radius: 6px;
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.mc-cta:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(242, 89, 34, .30);
}

.mc-burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color .2s, border-color .2s;
}

.mc-burger:hover {
  color: var(--brand-main);
  border-color: var(--brand-main);
}

.mc-burger span,
.mc-burger span::before,
.mc-burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .25s ease, background-color .25s ease;
}

.mc-burger span::before,
.mc-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.mc-burger span::before {
  top: -7px;
}

.mc-burger span::after {
  top: 7px;
}

.mc-burger[aria-expanded="true"] span {
  background: transparent;
}

.mc-burger[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.mc-burger[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mega menu ---------- */
.mc-panels {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  pointer-events: none;
  z-index: 2;
}

.mc-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 24px 48px rgba(31, 41, 51, .14);
  padding: 40px 0 44px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

.mc-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

.mc-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  align-items: stretch;
}

.mc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(31, 41, 51, .05);
  padding: 32px;
}

.mc-grid.is-wide .mc-card {
  padding: 28px 24px;
}

.mc-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-height: 64px;
  margin-bottom: 26px;
}

.mc-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--text);
}

.mc-grid.is-wide .mc-card__title {
  font-size: 20px;
}

.mc-ico {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFE6DB;
  display: grid;
  place-items: center;
  color: var(--brand-main);
  position: relative;
}

.mc-grid.is-wide .mc-ico {
  width: 46px;
  height: 46px;
}

.mc-ico svg {
  width: 26px;
  height: 26px;
}

.mc-ico::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(242, 89, 34, .18);
}

.mc-links {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mc-links a {
  display: inline-block;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  transition: color .2s ease, transform .2s ease;
}

.mc-grid.is-wide .mc-links a {
  font-size: 16px;
}

.mc-links a:hover {
  color: var(--brand-main);
  transform: translateX(3px);
}

.mc-links a.mc-hl {
  color: var(--brand-main);
  font-weight: 700;
}

.mc-promo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFEDE5 0%, #FFF8F5 100%);
  border: 1px solid #FFD6C5;
  box-shadow: 0 2px 10px rgba(242, 89, 34, .10);
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
}

.mc-promo__big {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--brand-main);
  margin: 0 0 12px;
}

.mc-promo__txt {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 260px;
}

.mc-promo__art {
  position: absolute;
  right: -40px;
  bottom: 30px;
  width: 230px;
  height: 230px;
  opacity: .9;
  pointer-events: none;
}

.mc-promo__btn {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-main);
  color: #fff !important;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  padding: 16px 28px;
  border-radius: 6px;
  text-align: center;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.mc-promo__btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(242, 89, 34, .30);
}

.mc-promo {
  min-height: 330px;
}

.mc-grid.is-compact {
  max-width: 760px;
}

.mc-panel__foot {
  margin-top: 28px;
}

.mc-panel__foot a {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-main);
  transition: color .2s ease, transform .2s ease;
}

.mc-panel__foot a:hover {
  color: var(--brand-hover);
  transform: translateX(4px);
}

/* ---------- Mobile drawer ---------- */
.mc-drawer {
  z-index: 4;
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(31, 41, 51, .14);
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

.mc-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

.mc-acc {
  border-bottom: 1px solid var(--border);
}

.mc-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 16px 4px;
  min-height: 52px;
  font-size: 17px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  text-align: left;
  transition: color .2s;
}

.mc-acc__btn:hover,
.mc-acc__btn[aria-expanded="true"] {
  color: var(--brand-main);
}

.mc-acc__btn .mc-chev {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform .25s ease;
}

.mc-acc__btn[aria-expanded="true"] .mc-chev {
  transform: rotate(180deg);
}

.mc-acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.mc-acc__body.is-open {
  grid-template-rows: 1fr;
}

.mc-acc__body>div {
  overflow: hidden;
}

.mc-acc__group {
  padding: 0 4px 8px;
}

.mc-acc__gt {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin: 14px 0 6px 4px;
}

.mc-acc__group a {
  display: block;
  padding: 10px 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  border-radius: 6px;
  transition: color .2s, background-color .2s;
}

.mc-acc__group a:hover,
.mc-acc__group a.mc-hl {
  color: var(--brand-main);
  background: var(--tint);
  font-weight: 600;
}

.mc-acc__group a.mc-hl {
  font-weight: 700;
}

.mc-drawer__cta {
  display: flex;
  margin-top: 22px;
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mc-drawer__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  transition: border-color .2s, color .2s, background-color .2s;
}

.mc-drawer__phone svg {
  color: var(--brand-main);
}

.mc-drawer__phone:hover {
  border-color: var(--brand-main);
  color: var(--brand-main);
  background: var(--tint);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .mc-grid.is-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mc-nav {
    margin-right: 20px;
  }

  .mc-cta {
    padding: 16px 22px;
    font-size: 16px;
  }
}

@media (max-width: 991px) {
  .mc-header {
    --util-h: 38px;
    --main-h: 66px;
  }

  .mc-header-holder {
    height: calc(38px + 66px);
  }

  .mc-header.is-scrolled .mc-main {
    height: 62px;
  }

  .mc-nav,
  .mc-main .mc-cta,
  .mc-panels,
  .mc-stat {
    display: none;
  }

  .mc-util {
    background: var(--bg);
  }

  .mc-util__in {
    justify-content: flex-end;
  }

  .mc-phone {
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
  }

  .mc-logo img {
    height: 42px;
    max-width: 190px;
  }

  .mc-header.is-scrolled .mc-logo img {
    height: 38px;
  }

  .mc-burger {
    display: inline-flex;
  }

  .mc-drawer {
    display: block;
  }
}

@media (max-width: 480px) {
  .mc-header {
    --util-h: 36px;
    --main-h: 60px;
  }

  .mc-header-holder {
    height: calc(36px + 60px);
  }

  .mc-wrap {
    padding: 0 16px;
  }

  .mc-phone {
    font-size: 13.5px;
    font-weight: 600;
    gap: 6px;
  }

  .mc-logo img {
    height: 36px;
    max-width: 165px;
  }

  .mc-header.is-scrolled .mc-logo img {
    height: 32px;
  }

  .mc-burger {
    width: 40px;
    height: 40px;
  }

  .mc-drawer {
    padding: 8px 16px 24px;
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 100%);
  }

  .mc-acc__btn {
    font-size: 16px;
    font-weight: 600;
    min-height: 48px;
    padding: 13px 2px;
  }

  .mc-acc__gt {
    font-size: 14.5px;
    font-weight: 700;
  }

  .mc-acc__group a {
    font-size: 15px;
    font-weight: 500;
    padding: 8px 6px;
  }

  .mc-drawer__cta {
    min-height: 48px;
    font-size: 15px;
    font-weight: 700;
  }

  .mc-drawer__phone {
    min-height: 44px;
    font-size: 14.5px;
    font-weight: 600;
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-header *,
  .mc-header *::before,
  .mc-header *::after {
    transition-duration: .01ms !important;
  }
}