﻿@font-face {
  font-family: 'AGAvalancheC';
  src: url('../fonts/AGAvalancheC.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ManropeRegular';
  src: url('../fonts/ManropeRegular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ManropeBold';
  src: url('../fonts/ManropeBold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --muted-white: rgba(255, 255, 255, 0.7);
  --glass: rgba(255, 255, 255, 0.2);
  --dark: #1b1b1b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'AGAvalancheC', Arial, sans-serif;
  background: #fff;
  color: #242728;
}

.page {
  max-width: 1920px;
  margin: 0 auto;
  padding: 24px;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 56px;
  left: 50%;
  z-index: 80;
  width: min(1704px, calc(100% - 216px));
  transform: translateX(-50%);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  display: block;
  width: clamp(230px, 16vw, 309px);
  height: auto;
}

.logo__mobile {
  display: none !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.nav__link {
  color: rgb(255 255 255);
  text-decoration: none;
  font-size: 15px;
  padding: 14px 27px;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-family: 'ManropeRegular', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
}

.nav__link--active,
.nav__link:hover {
  color: var(--dark);
  background: #fff;
  text-decoration: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__phone {
  color: #fff;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header__callback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 2px solid #fff;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__callback:hover,
.header__phone:hover {
  color: #fff;
  text-decoration: none;
}

.header__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  text-decoration: none;
  cursor: pointer;
  transition: background .24s ease, box-shadow .24s ease, transform .24s ease;
}

.burger {
  display: none;
  align-items: center;
  gap: 12px;
}

.burger__toggle {
  display: none;
}

.burger__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 61px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background .24s ease, border-color .24s ease, transform .24s ease;
}

.burger__button span,
.burger__button span::before,
.burger__button span::after {
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  content: "";
  transition: transform .2s ease, background .2s ease;
}

.burger__button span::before {
  transform: translateY(-6px);
}

.burger__button span::after {
  transform: translateY(6px);
}

.burger__menu {
  position: absolute;
  top: 80px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: auto;
  padding: 20px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all .2s ease;
}

.burger__menu a {
  color: #fff;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, opacity .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .header__arrow:hover {
    background: rgba(216, 153, 75, 1);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
    transform: translateY(-2px);
  }

  .burger__button:hover {
    border-color: rgba(255, 255, 255, .44);
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
  }

  .burger__menu a:hover {
    color: #f1d2ac;
  }
}

.header__arrow:focus-visible,
.burger__button:focus-visible,
.nav__link:focus-visible,
.header__phone:focus-visible,
.header__callback:focus-visible {
  outline: 2px solid rgba(201, 156, 100, .76);
  outline-offset: 4px;
}

/* ===== HEADER CONTACT INTERACTIONS ===== */
.header__phone,
.header__callback {
  transition: color .22s ease, border-color .22s ease, opacity .22s ease, transform .22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .header__phone:hover,
  .header__phone:focus {
    color: #101010;
    text-decoration: none;
    transform: translateY(-1px);
  }

  .header__callback:hover,
  .header__callback:focus {
    color: #101010;
    border-bottom-color: #101010;
    text-decoration: none;
    transform: translateY(-1px);
  }
}

.burger__menu .header__callback {
  width: 100%;
  justify-content: center;
}

.burger__toggle:checked ~ .burger__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.burger__toggle:checked + .burger__button span {
  background: transparent;
}

.burger__toggle:checked + .burger__button span::before {
  transform: rotate(45deg);
}

.burger__toggle:checked + .burger__button span::after {
  transform: rotate(-45deg);
}

@media (max-width: 1440px) {
  .site-header {
    width: calc(100% - 96px);
  }

  .logo img {
    width: 309px;
  }

  .nav {
    gap: 4px;
  }

  .nav__link {
    padding: 12px 18px;
    font-size: 14px;
  }

  .header__actions {
    gap: 14px;
  }

  .header__phone {
    font-size: 18px;
  }

  .header__callback {
    font-size: 12px;
  }
}

@media (max-width: 1280px) and (min-width: 961px) {
  .logo img {
    width: 240px;
  }

  .header {
    gap: 16px;
  }

  .nav {
    gap: 2px;
    flex: 0 1 auto;
  }

  .nav__link {
    padding: 11px 14px;
    font-size: 13px;
  }

  .header__actions {
    gap: 12px;
    flex: 0 0 auto;
  }

  .header__phone {
    font-size: 16px;
  }

  .header__callback {
    display: none;
  }

  .header__arrow {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

@media (max-width: 960px) {
  .site-header {
    top: 37px;
    width: calc(100% - 62px);
  }

  .nav,
  .header__actions {
    display: none;
  }
  
  .header {

    gap: 15px;

}

  .burger {
    display: flex;
  }

  .logo__desktop {
    display: none !important;
  }

  .logo img.logo__mobile {
    display: block !important;
    width: 260px;
    max-height: 50px;
  }

  .burger__menu {
    gap: 18px;
    padding: 24px 28px;
    overflow: hidden;
  }

  .burger__menu a {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #fff !important;
    line-height: 1.2;
    text-decoration: none;
  }

  .burger__menu a:hover,
  .burger__menu a:focus,
  .burger__menu a:active {
    background: transparent !important;
    color: #fff !important;
    outline: none;
  }

  .burger__menu a:first-child {
    margin-top: 6px;
  }

  .burger__menu .header__phone {
    font-size: 15px;
  }

  .burger__menu .header__callback {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
    margin-top: 0;
    padding-bottom: 5px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 13px;
  }

  .site-header {
    top: 37px;
    width: calc(100% - 62px);
  }
}

/* Reacy2 hero header color pass */
.nav {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.nav__link {
  color: rgba(255, 255, 255, 0.96);
}

.nav__link--active,
.nav__link:hover {
  background: #fff;
  color: rgba(18, 29, 47, 1);
  box-shadow: none;
}

.header__arrow {
  background: rgba(216, 153, 75, 1);
  color: #fff;
  box-shadow: 0 12px 26px rgba(4, 19, 43, 0.16);
}

.header__arrow svg rect {
  fill: currentColor;
}

.burger__button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(34, 79, 128, 0.48);
  box-shadow: 0 12px 28px rgba(4, 19, 43, 0.16);
}

.burger__menu {
  background: rgba(4, 19, 43, 0.92);
  box-shadow: 0 24px 58px rgba(4, 19, 43, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .header__arrow:hover {
    background: rgba(226, 164, 88, 1);
    box-shadow: 0 18px 36px rgba(4, 19, 43, 0.22);
  }

  .header__phone:hover,
  .header__phone:focus,
  .header__callback:hover,
  .header__callback:focus {
    color: rgba(216, 153, 75, 1);
    border-bottom-color: rgba(216, 153, 75, 1);
  }

  .burger__button:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(34, 79, 128, 0.62);
  }
}

