/* FONTS */
@font-face {
  font-family: "CandaraCustom";
  src: url("../fonts/candara-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CandaraCustom";
  src: url("../fonts/candara-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CandaraCustom";
  src: url("../fonts/candara-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "CandaraCustom", Arial, sans-serif;
}

.header {
  background: #f5f5f5;
}

/* TOP */
.header__top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 16px 40px 6px 40px;
  gap: 10px;
}

.header__left,
.header__right {
  display: flex;
  flex-direction: column;
  color: #9DA3A6;
  font-size: 21px; /* было 16px */
  font-weight: 400; /* regular */
  white-space: nowrap;
}

.header__right {
  text-align: right;
}

.header__logo {
  color: #F9A800;
  font-weight: 700; /* bold */
  font-size: 40px; /* было 30px */
  white-space: nowrap;
}

/* NAV */
.nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.nav__link {
  text-decoration: none;
  color: #555;
  font-weight: 700; /* bold вместо 600 */
  font-size: 21px; /* было 16px */
  position: relative;
  white-space: nowrap;
}

.nav__link.active {
  color: #F9A800;
}

.nav__link:hover {
  color: #F9A800;
}

.nav__link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #F9A800;
}

/* 📱 АДАПТИВ */
@media (max-width: 1024px) {
  .header__top {
    padding: 15px 20px;
  }

  .header__left,
  .header__right {
    font-size: 21px; /* было 16px */
  }

  .header__logo {
    font-size: 40px; /* было 30px */
  }

  .nav {
    gap: 25px;
  }

  .nav__link {
    font-size: 19px; /* было 14px */
  }
}

@media (max-width: 768px) {
  .header__top {
    padding: 10px 15px;
  }

  .header__left,
  .header__right {
    font-size: header__left; /* было 12px */
  }

  .header__logo {
    font-size: 24px; /* было 18px */
  }

  .nav {
    gap: 15px;
    padding-bottom: 10px;
  }

  .nav__link {
    font-size: 17px; /* было 13px */
  }
}

@media (max-width: 480px) {
  .header__top {
    /* flex-direction: column; */
    text-align: center;
    gap: 5px;
  }

  .header__left,
  .header__right {
    font-size: 11px;
  }

  .header__logo {
    font-size: 18px;
  }

  .nav {
    gap: 10px;
  }

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