html {
  width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 92px;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img,
video,
iframe {
  max-width: 100%;
}

.container {
  width: min(100%, 1250px);
  min-width: 0;
}

.nav,
.menu,
.hero-grid,
.tiles,
.products,
.contact-grid,
.footer-grid,
.raxo-offer-wrap,
.raxo-grid {
  min-width: 0;
}

.logo {
  flex: 0 0 auto;
}

.menu {
  min-width: 0;
}

.menu a,
.footer-col a,
.footer-col p,
.tile,
.product,
.raxo-offer-form label,
.raxo-offer-form input,
.raxo-offer-form select,
.raxo-offer-form textarea {
  overflow-wrap: anywhere;
}

.raxo-mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(11, 42, 85, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #0b2a55;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.raxo-mobile-menu-toggle span,
.raxo-mobile-menu-toggle::before,
.raxo-mobile-menu-toggle::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.raxo-mobile-menu-toggle {
  gap: 4px;
  flex-direction: column;
}

body.raxo-mobile-menu-open .raxo-mobile-menu-toggle span {
  opacity: 0;
}

body.raxo-mobile-menu-open .raxo-mobile-menu-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

body.raxo-mobile-menu-open .raxo-mobile-menu-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

#raxo-auto-hero-slider.raxo-repair-slider {
  isolation: isolate;
}

.raxo-repair-slide img {
  max-width: none;
}

@media (max-width: 1100px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .menu {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 76px;
  }

  header,
  .site-header,
  .main-header,
  .navbar,
  .navigation,
  .elementor-location-header {
    min-height: 72px !important;
  }

  header {
    overflow: visible;
  }

  header .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    position: relative;
    min-height: 72px;
    padding: 8px 0;
  }

  header .logo img,
  header img.custom-logo,
  header .raxo-calm-logo,
  header .site-logo img,
  header .navbar-brand img,
  header .header-logo img,
  .site-header img.custom-logo,
  .site-header .site-logo img,
  .main-header img.custom-logo,
  .elementor-location-header img.custom-logo {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
  }

  .raxo-mobile-menu-toggle {
    display: inline-flex;
  }

  .raxo-mobile-menu-toggle + .menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1001;
    display: none !important;
    width: 100%;
    max-width: calc(100vw - 32px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(11, 42, 85, 0.1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(7, 23, 46, 0.16);
  }

  body.raxo-mobile-menu-open .raxo-mobile-menu-toggle + .menu {
    display: flex !important;
  }

  .raxo-mobile-menu-toggle + .menu a {
    display: block;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 8px;
    line-height: 1.25;
  }

  .raxo-mobile-menu-toggle + .menu a:hover,
  .raxo-mobile-menu-toggle + .menu a:focus-visible {
    background: #f4f7fc;
  }

  .lang-switch {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid #eef1f6;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .lang {
    min-width: 44px;
    text-align: center;
  }

  #raxo-auto-hero-slider.raxo-repair-slider {
    min-height: 430px !important;
    height: min(560px, calc(100svh - 72px)) !important;
    margin-bottom: 24px !important;
  }

  .raxo-repair-content {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 48px;
    transform: none !important;
    width: 100%;
    max-width: none;
    padding: 22px 20px !important;
  }

  .raxo-repair-content h1 {
    font-size: clamp(30px, 8.5vw, 46px) !important;
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .raxo-repair-content p {
    font-size: clamp(16px, 4.2vw, 19px) !important;
    line-height: 1.48;
    margin-bottom: 0;
  }

  .raxo-repair-dots {
    bottom: 18px;
  }

  .tiles {
    gap: 18px;
  }

  .tile {
    padding: 24px 22px;
  }

  .page-section {
    padding: 62px 0;
  }

  .page-section h2 {
    font-size: clamp(28px, 7vw, 34px);
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tiles-wrap {
    padding-bottom: 54px;
  }

  .tile:hover {
    transform: none;
  }

  .product {
    padding: 22px;
  }

  .form input,
  .form textarea,
  .form select,
  .form button {
    font-size: 16px;
  }

  footer {
    padding: 42px 0;
  }

  .footer-bottom {
    text-align: left;
  }

  .raxo-offer-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .raxo-offer-modal-box {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 16px;
  }

  .raxo-modal-form-inner,
  .raxo-offer-section {
    padding: 42px 14px 22px;
    border-radius: 16px;
  }

  .raxo-offer-left h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .raxo-offer-left p {
    font-size: 16px;
  }

  .raxo-offer-benefits {
    font-size: 15px;
  }

  .raxo-offer-card {
    padding: 18px;
    border-radius: 18px;
  }

  .raxo-offer-form {
    gap: 14px;
  }

  .raxo-offer-form input,
  .raxo-offer-form select,
  .raxo-offer-form textarea {
    font-size: 16px;
    padding: 12px;
  }

  .raxo-rodo {
    gap: 10px !important;
  }

  .raxo-offer-modal-close {
    top: 8px;
    width: 38px;
    height: 38px;
    margin: 8px 8px -48px 0;
  }
}

@media (max-width: 420px) {
  #raxo-auto-hero-slider.raxo-repair-slider {
    min-height: 410px !important;
    height: min(520px, calc(100svh - 72px)) !important;
  }

  .raxo-repair-content {
    bottom: 44px;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .raxo-repair-content h1 {
    font-size: clamp(28px, 8.2vw, 34px) !important;
  }

  .raxo-repair-content p {
    font-size: 16px !important;
  }
}
