@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-blue: #1E4890; /* заголовки, блоки брендов, ссылки, кнопка формы */
  --color-dark-blue: #001F3E; /* меню, оверлей Hero, подписи формы */
  --color-text: #303338; /* основной текст */
  --color-ink: #282828; /* значения контактов */
  --color-card: #EEF2F7; /* фон карточек и полей */
  --color-bg: #FBFBFB; /* фон страницы */
  --color-white: #FFFFFF;
  --color-photo: #878787; /* подложка фото направлений */
  --color-link-hover: #909090; /* hover у ссылок */
  --color-accent: #88B4FF; /* заголовок и фокус в подвале */

  --container: 1200px;
  --section-gap: 120px;
  --header-height: 100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Roboto", sans-serif;
}

button,
input,
textarea {
  font-family: inherit;
}

img {
  display: block;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 4px;
}

main {
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

/* Единый отступ между секциями */
main > section + section {
  margin-top: var(--section-gap);
}

main > section {
  scroll-margin-top: var(--header-height);
}

.header__container,
.hero__inner,
.brands,
.mission,
.directions,
.advantages,
.about,
.contacts,
.product,
.company {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 60px;
  align-items: start;
}

.section-title {
  color: var(--color-blue);
  font-size: 40px;
  font-weight: 500;
  line-height: 44px;
}

.text,
.contacts__label {
  color: var(--color-text);
  font-size: 18px;
  line-height: 23px;
}

.link {
  display: inline-flex;
  align-items: center;
  padding: 2px 0 1px;
  border-bottom: 1px solid transparent;

  color: var(--color-dark-blue);
  font-size: 18px;
  line-height: 25px;
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.2s ease, border-color 0.2s ease;
}

.link:hover {
  border-bottom-color: var(--color-link-hover);
  color: var(--color-link-hover);
}

.link--blue {
  color: var(--color-blue);
}

.chevron {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 60px;
  padding: 17px 24px;

  border: 0;
  border-radius: 8px;
  background-color: var(--color-white);

  color: var(--color-dark-blue);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  text-decoration: none;

  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background-color: var(--color-card);
}

.button:active {
  background-color: #DCE3EB;
}

.social-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;

  height: var(--header-height);
  background-color: var(--color-white);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header.is-scrolled {
  background-color: var(--color-dark-blue);

  box-shadow: 0 4px 16px rgb(0 31 62 / 30%);
}

.header__logo img {
  transition: filter 0.2s ease;
}

.header.is-scrolled .header__logo img {
  filter: brightness(0) invert(1);
}

.header.is-scrolled .link {
  color: var(--color-white);
}

.header.is-scrolled .link:hover {
  border-bottom-color: var(--color-white);
  color: var(--color-white);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 45px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;

  width: 100%;
  height: 700px;
  overflow: hidden;

  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background-color: rgb(0 31 62 / 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 903px;
}

.hero__title {
  font-size: 72px;
  font-weight: 500;
  line-height: 72px;
}

.hero__description {
  max-width: 499px;
  margin-top: 20px;

  font-size: 18px;
  line-height: 23px;
}

.hero__description--short {
  max-width: 360px;
}

.hero__content .button {
  margin-top: 40px;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;

  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 20%);

  color: var(--color-white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.hero__arrow:hover {
  background-color: rgb(255 255 255 / 35%);
}

.hero__arrow--prev {
  left: 40px;
}

.hero__arrow--prev .chevron {
  transform: rotate(180deg);
}

.hero__arrow--next {
  right: 40px;
}

.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  z-index: 3;

  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 50%);

  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero__dot[aria-current="true"] {
  background-color: var(--color-white);
}

.hero button:focus-visible {
  outline-color: var(--color-white);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.brand {
  position: relative;
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 318px;
  padding: 130px 16px 20px;
  overflow: hidden;

  border-radius: 16px;
  background-color: var(--color-card);
}

.brand__logo {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;

  border-radius: 0 0 16px 16px;
  background-color: var(--color-blue);
}

.brand__text {
  display: -webkit-box;
  max-height: 91px;
  overflow: hidden;

  font-size: 11px;
  line-height: 13px;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.brand__more {
  gap: 4px;
  margin-top: auto;
  align-self: flex-end;
  color: var(--color-blue);
}

.directions__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.directions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.direction {
  position: relative;
  min-width: 0;
  aspect-ratio: 584 / 408;
  overflow: hidden;
  isolation: isolate;

  border-radius: 16px;
  background-color: var(--color-photo);
}

.direction img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction__title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;

  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 40px;

  background-color: rgb(30 72 144 / 40%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  color: var(--color-white);
  font-size: 25px;
  font-weight: 500;
  line-height: 30px;
}

.partners {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.partners__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  text-align: center;
}

.partners__strip {
  width: 100%;
  height: 130px;
  overflow: hidden;

  /*background-color: rgb(30 72 144 / 60%);*/
  background-color: #1E4890;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), inset 0 -1px 0 rgb(255 255 255 / 12%);
}

.partners__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;

  animation: partners-scroll 70s linear infinite;
}

.partners__strip:hover .partners__track {
  animation-play-state: paused;
}

.partners__group {
  display: flex;
  flex: none;
  gap: 20px;
  padding-right: 20px;
}

.partners__item {
  display: flex;
  flex: 0 0 200px;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.partners__item img {
  flex: none;
}

@keyframes partners-scroll {
  to {
    transform: translateX(-50%);
  }
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 20px;
  margin-top: 60px;
  padding-top: 38px;
}

.advantage {
  position: relative;
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 318px;
  padding: 115px 16px 16px;

  border-radius: 16px;
  background-color: var(--color-card);
}

.advantage__icon {
  position: absolute;
  top: -46px;
  left: 50%;
  z-index: 1;

  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.advantage__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.advantage__title {
  color: var(--color-blue);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}

.advantage__text {
  font-size: 11px;
  line-height: 13px;
  overflow-wrap: break-word;
}

.advantage__footer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  opacity: 0.8;
}

.advantage__footer span {
  font-size: 14px;
  line-height: 16px;
}

.advantage__footer i {
  width: 40px;
  height: 1px;
  background-color: rgb(48 51 56 / 20%);
}

.about__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.contacts__left {
  display: flex;
  flex-direction: column;
  gap: 60px;
  min-width: 0;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contacts__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacts__value {
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contacts__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacts__social-list {
  display: flex;
  gap: 8px;
}

.contacts__social-link {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;

  border-radius: 16px;
  background-color: var(--color-blue);
  transition: opacity 0.2s ease;
}

.contacts__social-link:hover {
  opacity: 0.8;
}

.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.contacts__form {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.contacts__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contacts__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.contacts__field-label {
  color: var(--color-dark-blue);
  font-size: 20px;
  line-height: 26px;
}

.contacts__input,
.contacts__textarea {
  width: 100%;
  min-width: 0;

  border: 0;
  border-radius: 16px;
  background-color: var(--color-card);

  color: var(--color-ink);
  font-size: 18px;
  line-height: 23px;
}

.contacts__input {
  height: 60px;
  padding: 0 16px;
}

.contacts__textarea {
  height: 220px;
  padding: 16px;
  resize: none;
}

.contacts__input::placeholder,
.contacts__textarea::placeholder {
  color: #727782;
  opacity: 1;
}

.contacts__input:focus-visible,
.contacts__textarea:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.contacts__submit {
  width: 100%;
  height: 60px;
  padding: 17px 24px;

  border: 0;
  border-radius: 16px;
  background-color: var(--color-blue);
  box-shadow: inset 0 0 0 1px var(--color-blue);

  color: var(--color-white);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;

  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contacts__submit:hover {
  background-color: transparent;
  color: var(--color-blue);
}

.contacts__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.contacts__form-status {
  font-size: 16px;
  line-height: 22px;
}

.contacts__form-status:empty {
  display: none;
}

.contacts__form-status[data-state="success"] {
  color: #1E7B3A;
}

.contacts__form-status[data-state="error"] {
  color: #C62828;
}

.product {
  display: flex;
  flex-direction: column;
}

main > .product:first-child {
  margin-top: 60px;
}

.product__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 680;
  object-fit: cover;
}

.product__photo + .section-title {
  margin-top: 60px;
}

.product__text {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.product__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 60px;
  align-items: start;
}

.product__cell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product__text b,
.company__text b {
  font-weight: 700;
}

.company {
  display: grid;
  grid-template-columns: minmax(0, 600fr) minmax(0, 560fr);
  column-gap: 40px;
  align-items: start;
}

.company + .company {
  margin-top: 80px;
}

.company__image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  object-fit: cover;
}

.company__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.company__text {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.company--history {
  grid-template-columns: minmax(0, 560fr) minmax(0, 600fr);
}

.company--history .company__content {
  padding-top: 7px;
}

.company--history .company__text {
  gap: 33px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .header,
  .link,
  .button,
  .hero__slide,
  .hero__arrow,
  .hero__dot,
  .contacts__submit,
  .contacts__social-link,
  .footer__navigation a {
    transition: none;
  }

  .partners__track {
    animation: none;
  }

  .partners__strip {
    overflow-x: auto;
  }

  .partners__group[aria-hidden="true"] {
    display: none;
  }
}

.footer {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 100%;
  min-height: 790px;
  margin-top: 120px;
  padding: 120px 0;
  overflow: hidden;

  background-color: #01070D;
  color: var(--color-white);
}

.footer::before {
  --fade: linear-gradient(
    to bottom,
    rgb(0 0 0 / 25%) 0,
    #000 160px,
    #000 calc(100% - 250px),
    rgb(0 0 0 / 40%) calc(100% - 174px),
    transparent calc(100% - 70px)
  );

  position: absolute;
  inset: 0;
  z-index: -2;

  background-image: url("../images/ery-2.webp");
  background-repeat: no-repeat;
  background-position: center -49px;
  background-size: cover;

  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);

  content: "";
}

.footer::after {
  position: absolute;
  inset: 0;
  z-index: -1;

  background: rgb(0 0 0 / 60%);
  content: "";
  pointer-events: none;
}

.footer__container {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  gap: 64px;

  max-width: var(--container);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  min-height: 251px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  flex: 0 0 340px;
  gap: 40px;
}

.footer__heading {
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.footer__contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__phones a {
  color: var(--color-white);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.footer__email {
  max-width: 178px;

  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: break-word;
}

.footer__address {
  max-width: 228px;

  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.footer__navigation {
  display: flex;
  flex-direction: column;
  flex: 0 0 266px;
  gap: 24px;
}

.footer__navigation a {
  color: var(--color-white);
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__navigation a:hover,
.footer__email:hover,
.footer__phones a:hover,
.footer__social-links a:hover {
  opacity: 0.7;
}

.footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 0 0 340px;
  gap: 10px;
  height: 212px;
}

.footer__social-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.footer__social-title {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.3;
}

.footer__social-links {
  display: flex;
  align-items: center;
}

.footer__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;

  transition: opacity 0.2s ease;
}

.footer__copyright {
  color: #868C98;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
}

.footer a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.footer__divider {
  height: 1px;
  flex: 0 0 1px;
  background-color: rgb(245 245 245 / 50%);
}

.footer__wordmark {
  flex: none;
  height: 119px;
}

.footer__wordmark img {
  --fade: linear-gradient(
    to bottom,
    rgb(0 0 0 / 93%) 0%,
    rgb(0 0 0 / 80%) 16%,
    rgb(0 0 0 / 67%) 27%,
    rgb(0 0 0 / 51%) 38%,
    rgb(0 0 0 / 35%) 49%,
    rgb(0 0 0 / 22%) 60%,
    rgb(0 0 0 / 12%) 71%,
    rgb(0 0 0 / 5%) 82%,
    transparent 100%
  );

  width: calc(100% - 10px);
  height: auto;
  margin: 40px 5px 0;

  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}

.button--blue,
.button--outline {
  box-shadow: inset 0 0 0 1px var(--color-blue);
}

.button--blue {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.button--blue:hover,
.button--blue:active,
.button--outline {
  background-color: transparent;
  color: var(--color-blue);
}

.button--outline:hover,
.button--outline:active {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.catalog-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 60px;
  padding: 32px 36px;

  border-radius: 16px;
  background-color: var(--color-card);
}

.catalog-download__label {
  display: block;
  margin-bottom: 12px;

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.catalog-download__title {
  margin-bottom: 12px;

  color: var(--color-blue);
  font-size: 25px;
  font-weight: 500;
  line-height: 30px;
}

.catalog-download__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-download .button {
  width: auto;
  padding-inline: 24px;
  white-space: nowrap;
}

.catalog-download__description {
  max-width: 850px;
}