﻿html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  text-wrap: pretty;
}

.erva-mobile-menu {
  display: none;
}

body.erva-menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .section-pad {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }

  header .h-\[104px\] {
    height: 84px !important;
  }

  header img.h-\[68px\] {
    height: 52px !important;
  }

  .text-5xl.md\:text-6xl,
  .md\:text-6xl {
    font-size: clamp(2.1rem, 7vw, 3.5rem) !important;
    line-height: 1.04 !important;
  }

  .text-4xl.md\:text-5xl,
  .md\:text-5xl {
    font-size: clamp(1.85rem, 5.2vw, 2.8rem) !important;
    line-height: 1.08 !important;
  }

  .md\:text-xl,
  .text-\[1\.13rem\],
  .text-\[1\.08rem\] {
    font-size: 1rem !important;
    line-height: 1.68 !important;
  }

  .grid.gap-5.md\:grid-cols-2.xl\:grid-cols-3,
  .grid.gap-4.md\:grid-cols-3,
  .grid.gap-4.md\:grid-cols-2.xl\:grid-cols-4,
  .mt-8.grid.gap-6.md\:grid-cols-2,
  .mx-auto.w-full.max-w-6xl.px-4.md\:px-6.grid.gap-6.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .relative.h-\[400px\].md\:h-\[470px\] {
    height: 320px !important;
  }

  .relative.h-72,
  .relative.h-64,
  .relative.h-56,
  .relative.h-52 {
    height: 250px !important;
  }

  .erva-mobile-menu {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 12px 14px 16px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #dbe4ef;
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    backdrop-filter: blur(10px);
  }

  .erva-mobile-menu.is-open {
    display: block;
  }

  .erva-mobile-panel {
    display: grid;
    gap: 8px;
  }

  .erva-mobile-link,
  .erva-mobile-sub {
    display: block;
    width: 100%;
    border: 1px solid #dbe4ef;
    background: #fff;
    color: #1F2A44;
    text-decoration: none;
    border-radius: 14px;
  }

  .erva-mobile-link {
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
  }

  .erva-mobile-sub {
    padding: 12px 16px;
    font-size: .95rem;
    font-weight: 600;
  }

  .erva-mobile-group {
    display: grid;
    gap: 8px;
    padding: 4px 0 0;
  }

  .erva-mobile-group-label {
    padding: 4px 2px 0;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #5b6b80;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  header .mx-auto.w-full.max-w-6xl.px-4.md\:px-6.relative.flex.h-\[104px\].items-center.justify-between {
    height: 76px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  header img.h-\[68px\] {
    height: 44px !important;
  }

  header .w-\[285px\],
  header nav.absolute.left-1\/2.hidden.-translate-x-1\/2.items-center.gap-9.lg\:flex {
    display: none !important;
  }

  header button.lg\:hidden,
  header button[aria-expanded] {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
  }

  .section-pad {
    padding-top: 2.4rem !important;
    padding-bottom: 2.4rem !important;
  }

  .px-4.md\:px-6 {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .mt-7.flex.flex-wrap.gap-3,
  .mb-6.flex.items-end.justify-between.gap-4,
  .mb-5.flex.items-end.justify-between.gap-4 {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .inline-flex.items-center.justify-center.gap-2.rounded-\[4px\].px-5.py-3.text-\[1\.03rem\].font-semibold.transition-all.duration-300 {
    width: 100% !important;
  }

  .relative.h-\[400px\].md\:h-\[470px\] {
    height: 228px !important;
    border-radius: 18px !important;
  }

  .relative.h-72,
  .relative.h-64,
  .relative.h-56,
  .relative.h-52 {
    height: 214px !important;
  }

  .rounded-2xl,
  .rounded-xl {
    border-radius: 18px !important;
  }

  .p-6,
  .p-5,
  .p-4 {
    padding: 1rem !important;
  }

  .erva-news-wrap {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .erva-news-media {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .erva-video {
    height: 220px !important;
  }

  .erva-side-col {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }

  .erva-side-img {
    height: 176px !important;
  }

  .erva-card {
    flex-basis: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .erva-img {
    height: 220px !important;
  }

  .erva-marquee {
    margin-left: -4px;
    margin-right: -4px;
  }

  .erva-track {
    gap: 12px !important;
    animation-duration: 18s !important;
  }

  footer .grid.gap-10.py-12.md\:grid-cols-4 {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

@media (max-width: 480px) {
  header img.h-\[68px\] {
    height: 40px !important;
  }

  .text-5xl.md\:text-6xl,
  .md\:text-6xl {
    font-size: 1.78rem !important;
  }

  .text-4xl.md\:text-5xl,
  .md\:text-5xl {
    font-size: 1.45rem !important;
  }

  .md\:text-xl,
  .text-\[1\.13rem\],
  .text-\[1\.08rem\] {
    font-size: .95rem !important;
  }

  .relative.h-\[400px\].md\:h-\[470px\] {
    height: 208px !important;
  }

  .relative.h-72,
  .relative.h-64,
  .relative.h-56,
  .relative.h-52 {
    height: 192px !important;
  }

  .erva-video {
    height: 198px !important;
  }

  .erva-side-img,
  .erva-img {
    height: 164px !important;
  }

  .erva-mobile-menu {
    top: 76px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .erva-mobile-link,
  .erva-mobile-sub {
    border-radius: 12px;
  }
}