@media (max-width: 75em) {
   .top-menu__list {
      gap: 1.5rem;
   }
   .product-card {
      flex: 0 1 31%;
   }
}

@media (max-width: 62em) {
   .top-menu__logo {
      width: 13rem;
   }

   .top-menu__body {
      padding-top: 2.1rem;
   }

   .top-menu__list {
      gap: 1rem;
   }

   .top-menu__item {
      font-size: 0.8125rem;
   }

   .home-hero__heading-row {
      grid-template-columns: minmax(0, 1fr) 19rem;
      gap: 2rem;
   }

   .home-hero__title {
      font-size: 2.35rem;
   }

   .home-hero__lead {
      padding-right: 1.5rem;
      padding-left: 1.5rem;
      font-size: 1rem;
   }

   .home-hero__image {
      object-position: center;
   }

   .home-about__layout {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
      gap: 2.5rem;
   }

   .home-about__title {
      font-size: 2rem;
   }

   .home-about__stat-content {
      padding: 1rem;
   }

   .home-about__stat-value {
      font-size: 2.5rem;
   }

   .home-about__stat-text,
   .home-about__stat:nth-child(2) .home-about__stat-value {
      font-size: 1rem;
   }
   .product-card {
      flex: 0 1 48%;
   }

   .product-card__content {
      padding: 1rem;
   }

   .product-card__title {
      font-size: 0.875rem;
   }

   .fancybox-slide--html .product-modal {
      padding: 3.5rem 3rem 4rem;
   }

   .product-modal__layout {
      grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
      gap: 2.5rem;
   }

   .product-modal__text {
      margin-top: 1.5rem;
   }

   .home-service__layout {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
      gap: 2.5rem;
   }

   .home-service__media {
      gap: 1.25rem;
   }

   .home-selection {
      gap: 4rem;
   }

   .fancybox-slide--html .event-modal {
      padding: 3.5rem 3rem 4rem;
   }

   .event-modal__layout {
      grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
      gap: 2.5rem;
   }

   .home-contacts__grid {
      gap: 4.5rem;
   }

   .home-contacts__address,
   .home-contacts__email {
      font-size: 1.125rem;
   }

   .footer__menu-list {
      gap: 1rem;
   }

   .footer__menu-list a {
      font-size: 0.875rem;
   }
}

@media (max-width: 48em) {
   html {
      scroll-padding-top: 4.5rem;
   }

   .top-menu {
      align-items: center;
      padding: 0.75rem 0;
   }

   .top-menu__logo {
      width: 11.25rem;
      padding-top: 0;
   }

   .top-menu__body {
      display: flex;
      align-items: center;
      padding-top: 0;
   }

   .burger {
      position: relative;
      z-index: 2;
      display: flex;
      width: 3rem;
      height: 3rem;
      align-items: center;
      justify-content: center;
      background: transparent;
   }

   .burger svg {
      width: 3rem;
      height: 3rem;
   }

   .top-menu__list {
      position: fixed;
      z-index: 1;
      top: 4.5rem;
      left: -100%;
      width: 100%;
      height: calc(100dvh - 4.5rem);
      padding: 2.5rem 1rem;
      background: #fff;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 1.5rem;
      transition: left 0.3s;
   }

   .top-menu__list--open {
      left: 0;
   }

   .top-menu__item {
      color: var(--brand-navy);
      font-size: 1.35rem;
   }

   .home-hero {
      padding-top: 6rem;
   }

   .home-hero__heading-row {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
   }

   .home-hero__title {
      margin-top: 0;
      font-size: clamp(2rem, 8vw, 2.75rem);
      letter-spacing: -0.055rem;
   }

   .home-hero__lead {
      padding: 1.25rem;
   }

   .home-hero__picture {
      margin-top: 1.5rem;
   }

   .home-hero__image {
      aspect-ratio: 4 / 3;
      object-position: 46% center;
   }

   .home-about__layout {
      grid-template-columns: minmax(0, 1fr);
      gap: 2.5rem;
   }

   .home-about__content {
      max-width: 36rem;
   }

   .home-about__stats {
      max-width: 36.75rem;
   }

   .home-products__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.5rem;
   }

   .fancybox-slide--html .product-modal {
      width: calc(100% - 2rem);
      padding: 3.5rem 2rem 2rem;
      border-radius: 1.25rem;
   }

   .product-modal__heading {
      margin-bottom: 2rem;
   }

   .product-modal__layout {
      grid-template-columns: minmax(0, 1fr);
   }

   .product-modal__body {
      gap: 1.75rem;
   }

   .product-modal__text,
   .product-modal__catalog {
      margin-top: 0;
   }

   .product-modal__gallery {
      max-width: 30rem;
   }

   .home-service__layout {
      grid-template-columns: minmax(0, 1fr);
   }

   .home-service__content {
      max-width: 36rem;
   }

   .home-service__media {
      max-width: 36.75rem;
      padding-top: 0;
   }

   .home-selection {
      grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
      gap: 2rem;
      margin-top: 6rem;
      padding-right: 1.5rem;
      padding-left: 1.5rem;
   }

   .home-selection__picture {
      margin-top: -1.5rem;
   }

   .home-selection__title {
      font-size: 1.875rem;
      letter-spacing: -0.05rem;
   }

   .home-events__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.5rem;
   }

   .fancybox-slide--html .event-modal {
      width: calc(100% - 2rem);
      padding: 3.5rem 2rem 2rem;
      border-radius: 1.25rem;
   }

   .event-modal__layout {
      grid-template-columns: minmax(0, 1fr);
   }

   .event-modal__heading {
      margin-bottom: 2rem;
   }

   .event-modal__gallery {
      max-width: 30rem;
   }

   .home-contacts__panel {
      padding-right: 2rem;
      padding-bottom: 2.5rem;
      padding-left: 2rem;
   }

   .home-contacts__panel::before {
      width: 45%;
   }

   .home-contacts__grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 2.5rem;
   }

   .home-contacts__info {
      padding-top: 0;
   }

   .home-contacts__document {
      margin-top: 2rem;
   }

   .footer__top {
      flex-direction: column;
      align-items: flex-start;
      gap: 2rem;
      padding-bottom: 2rem;
   }

   .footer__menu-list {
      flex-wrap: wrap;
      gap: 1rem 2rem;
   }
}

@media (max-width:37.5em) {

   html {
      font-size: clamp(0.875rem, calc(0.875rem + (1 - 0.875) * ((100vw - 20rem) / (37.5 - 20))), 1rem);
   }

   section {
      margin-bottom: 3.75rem;
   }

   .section-title {
      font-size: 1.5rem;
   }

   .home-about .section-title {
      margin-bottom: 1.25rem;
   }

   .home-about__title {
      margin-bottom: 1.75rem;
      font-size: 1.75rem;
      letter-spacing: -0.04rem;
   }

   .home-about__stats {
      grid-template-columns: minmax(0, 1fr);
   }

   .home-about__stat,
   .home-about__stat:nth-child(1),
   .home-about__stat:nth-child(4) {
      aspect-ratio: 16 / 10;
   }

   .home-about__stat:nth-child(2) {
      margin-top: 0;
   }

   .home-products__title {
      margin-bottom: 1.75rem;
   }

   .home-products__grid {
      grid-template-columns: minmax(0, 1fr);
   }

   .product-card {
      flex: 1 1 100%;
   }


   .product-card__title {
      font-size: 1rem;
   }

   .fancybox-slide--html .product-modal {
      width: calc(100% - 1rem);
      padding: 3.5rem 1rem 1rem;
      border-radius: 1rem;
   }

   .product-modal .fancybox-close-small {
      top: 0.375rem;
      right: 0.375rem;
   }

   .product-modal__eyebrow {
      font-size: 0.875rem;
   }

   .product-modal__title {
      font-size: 1.75rem;
      letter-spacing: -0.04rem;
   }

   .product-modal__thumbs {
      gap: 0.75rem;
   }

   .product-modal__text ol li {
      padding-right: 0.875rem;
   }

   .product-modal__catalog {
      max-width: none;
      padding-left: 1rem;
      font-size: 0.75rem;
   }

   .home-service__title {
      margin-bottom: 1.75rem;
   }

   .home-service__list {
      gap: 1rem;
   }

   .home-service__media {
      gap: 0.75rem;
   }

   .home-selection {
      grid-template-columns: minmax(0, 1fr);
      gap: 1.5rem;
      margin-top: 4.5rem;
      padding: 1rem;
   }

   .home-selection__picture {
      aspect-ratio: 16 / 10;
      margin-top: 0;
      border-radius: 0.625rem;
   }

   .home-selection__content {
      padding: 0 0 0.5rem;
   }

   .home-selection__title {
      font-size: 1.75rem;
      letter-spacing: -0.04rem;
   }

   .home-selection__text {
      margin-top: 1rem;
   }

   .home-events__title {
      margin-bottom: 1.75rem;
   }

   .home-events__grid {
      grid-template-columns: minmax(0, 1fr);
   }

   .event-card__date {
      font-size: 1rem;
   }

   .fancybox-slide--html .event-modal {
      width: calc(100% - 1rem);
      padding: 3.5rem 1rem 1rem;
      border-radius: 1rem;
   }

   .event-modal .fancybox-close-small {
      top: 0.375rem;
      right: 0.375rem;
   }

   .event-modal__eyebrow {
      padding-right: 2.5rem;
      font-size: 0.875rem;
   }

   .event-modal__title {
      font-size: 1.75rem;
      letter-spacing: -0.04rem;
   }

   .event-modal__thumbs {
      gap: 0.75rem;
   }

   .home-contacts__panel {
      margin-top: 2rem;
      padding-right: 1.25rem;
      padding-bottom: 1.5rem;
      padding-left: 1.25rem;
      border-radius: 0 1rem 1rem 1rem;
   }

   .home-contacts__panel::before {
      width: 70%;
      height: 2rem;
      border-radius: 1rem 1rem 0 0;
   }

   .home-contacts__title {
      margin-top: -0.1875rem;
   }

   .home-contacts__grid {
      margin-top: 1rem;
   }

   .home-contacts__details {
      gap: 1.25rem;
   }

   .home-contacts__address,
   .home-contacts__email {
      font-size: 1rem;
   }

   .home-contacts__phone {
      font-size: 1.5rem;
   }

   .home-contacts__addresses {
      gap: 1.25rem;
   }

   .home-contacts__document {
      max-width: none;
      padding-left: 1rem;
      font-size: 0.75rem;
   }

   .footer__logo {
      width: 13rem;
   }

   .footer__menu-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.875rem 1.5rem;
   }

   .footer__menu-list a {
      white-space: normal;
   }

   .footer__bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
   }

   .footer__policy {
      text-align: left;
   }

   #cookie_note.show {
      display: flex;
      text-align: center;
      flex-direction: column;
   }

   #cookie_note p {
      margin-bottom: 0.5rem;
      text-align: center;
   }

   .product-modal {
      padding: 3rem 1.5rem;
   }

   .event-modal {
      padding: 3rem 1.5rem;
   }

}
