@charset "UTF-8";
:root {
  --blue: #5577cc;
  --blue-dark: #1742a5;
  --ink: #172333;
  --body: clamp(16px, 1.15vw, 22px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: white;
  color: var(--ink);
  font: var(--body)/1.45 Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f18a22;
  outline-offset: 5px;
}

.container {
  width: 75%;
  max-width: 1442px;
  margin-inline: auto;
}

/* Шапка */
.header {
  background: #e7ecf9;
  box-shadow: 0 2px 5px rgba(34, 60, 104, 0.1450980392);
  position: sticky;
  top: 0;
  z-index: 2;
}

.header__inner {
  min-height: clamp(72px, 5vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Логотип */
.brand {
  display: block;
  flex: none;
  width: clamp(66px, 4.6vw, 88px);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* Навигация */
.navigation {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.46vw, 28px);
  white-space: nowrap;
  font-size: clamp(14px, 1.15vw, 22px);
}

.navigation > a:not(.button):hover {
  color: var(--blue-dark);
}

/* Кнопка входа */
.header .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: clamp(38px, 2.45vw, 47px);
  padding: 8px 25px;
  background: var(--blue);
  border: 1px solid transparent;
  border-radius: 50px;
  color: #fff;
  font-size: clamp(14px, 1.15vw, 22px);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.header .button:hover {
  background: #4364b8;
  box-shadow: 0 4px 12px rgba(59, 89, 164, 0.168627451);
}

.button--login, .button--logout {
  min-width: clamp(110px, 11.1vw, 160px);
  font-weight: 400;
}

/* Кнопка мобильного меню */
.menu-toggle {
  display: none;
}

/* Планшеты */
@media (max-width: 1100px) {
  .container {
    width: 88%;
  }
  .header__inner {
    gap: 20px;
  }
  .navigation {
    gap: 16px;
  }
  .navigation > a {
    font-size: 14px;
  }
  .button--login, .button--logout {
    min-width: 100px;
  }
}
/* Мобильная версия */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .container {
    width: calc(100% - 36px);
  }
  .header__inner {
    min-height: 76px;
  }
  .brand {
    width: 65px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid #bac9e5;
    border-radius: 8px;
    background: transparent;
  }
  .menu-toggle span {
    width: 21px;
    height: 2px;
    background: var(--blue-dark);
    border-radius: 2px;
  }
  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    background: #e7ecf9;
    border-top: 1px solid #cad5ec;
    box-shadow: 0 6px 14px rgba(35, 57, 95, 0.1450980392);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .navigation.is-open {
    display: flex;
  }
  .navigation > a {
    font-size: 16px;
    padding: 12px;
  }
  .navigation .button {
    margin-top: 8px;
  }
}
/* Уменьшение анимации по настройкам пользователя */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  a,
  button {
    transition: none;
  }
}

/*# sourceMappingURL=header.css.map */
