.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

html.is-theme-switching,
html.is-theme-switching body {
  scroll-behavior: auto !important;
  overflow-anchor: none !important;
}

.theme-toggle {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.theme-toggle:focus-visible {
  outline: 3px solid rgba(208, 160, 79, 0.45);
  outline-offset: 3px;
}

.theme-toggle__icon {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 160ms ease, transform 180ms ease;
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(159, 100, 24, 0.5);
  background: rgba(255, 253, 249, 0.82);
  color: #37230e;
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(214, 163, 79, 0.5);
  background: rgba(255, 248, 234, 0.05);
  color: #fff2d2;
}

html[data-theme] .mobile-sticky-cta__call {
  border-color: rgba(214, 163, 79, 0.72);
  background: #2a2119;
  color: #fff;
}

html[data-theme] .mobile-sticky-cta__call svg {
  stroke: currentColor;
}

html[data-theme="light"] .theme-toggle__moon,
html[data-theme="dark"] .theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="light"] .theme-toggle__sun,
html[data-theme="dark"] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(-24deg) scale(0.72);
}

.brand {
  display: block;
  width: 118px;
  aspect-ratio: 168 / 53;
  line-height: 0;
  flex: 0 0 auto;
}

.brand picture,
.brand img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand img {
  object-fit: contain;
}

html[data-theme="light"] .site-header::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(clamp(18px, 4vw, 56px) + 138px);
  background: #000;
  box-shadow: 1px 0 0 rgba(159, 100, 24, 0.24);
  content: "";
}

html[data-theme="light"] .site-header > * {
  position: relative;
  z-index: 1;
}

.photo-watermark {
  width: 52px !important;
  height: 17px !important;
  overflow: hidden;
  background: url("assets/brand/verh-wordmark-white-transparent.webp") center / contain no-repeat;
  color: transparent !important;
  font-size: 0 !important;
}

.hero__media > .photo-watermark {
  width: clamp(72px, 6vw, 92px) !important;
  height: clamp(23px, 1.9vw, 29px) !important;
}

.hero-price {
  display: inline-flex !important;
  align-items: baseline;
  gap: 0.35em;
  white-space: nowrap;
}

.hero-price strong {
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
}

.tariff-card__price-note {
  display: grid;
  min-height: 2.75em;
  gap: 1px;
  margin: 5px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 650;
  line-height: 1.28 !important;
}

.tariff-card__price-note span:first-child {
  color: var(--gold);
  font-weight: 750;
}

@media (max-width: 980px) {
  .site-header {
    gap: 12px;
  }
}

@media (max-width: 720px) {
  html[data-theme="light"] .site-header::before {
    width: 136px;
  }

  .brand {
    width: 104px;
  }

  .photo-watermark {
    width: 46px !important;
    height: 15px !important;
  }

  .site-header {
    gap: 8px;
  }

  .header-actions {
    gap: 7px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-price {
    display: grid !important;
    min-height: 64px !important;
    align-content: center;
    justify-items: center;
    gap: 2px;
    padding-right: 7px !important;
    padding-left: 7px !important;
    line-height: 1.18;
  }

  .hero-price__label {
    font-size: 11px;
    font-weight: 650;
  }

  .hero-price strong {
    font-size: 14px;
  }
}

@media (max-width: 370px) {
  html[data-theme="light"] .site-header::before {
    width: 124px;
  }

  .site-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-cta {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle__icon {
    transition: none;
  }
}
