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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 120px;
}

body {
  font-family: var(--font-body);
  color: var(--color-white);
  background-color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 1279px) {
  .container {
    padding: 0 32px;
  }
}

@media (max-width: 959px) {
  .container {
    padding: 0 24px;
  }
}

@media (max-width: 679px) {
  .container {
    padding: 0 16px;
  }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
}

.header.header--scrolled::after {
  background: rgba(0, 7, 27, 0.7);
  backdrop-filter: blur(12px);
}

.header__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-content: space-between;
  height: 94px;
  gap: 24px;
}

.header__logo {
  width: fit-content;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 11;
}

.header__logo-img {
  height: 52px;
  width: auto;
}

.header__menu-wrap {
  grid-column: span 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__checkbox-toggle {
  display: none;
}

.header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav-link {
  color: var(--color-white);
  transition: color 0.2s ease;
}

.header__nav-link:hover {
  color: var(--color-red);
}

.header__nav-item-contact,
.header__nav-contacts {
  display: none;
}

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

.header__phone {
  color: var(--color-white);
  transition: color 0.2s ease;
}

.header__phone:hover {
  color: var(--color-red);
}

@media (max-width: 1079px) {

  .header__contacts {
    display: none;
  }

  /* Mobile menu */

  .header__menu {
    float: none;
    display: block;
    z-index: 10;
    width: auto;
    top: 0;
  }

  .header__menu .header__checkbox-toggle {
    display: block;
    position: fixed;
    top: 17px;
    right: 32px;
    z-index: 2;
    cursor: pointer;
    width: 60px;
    height: 60px;
    opacity: 0;
  }

  .header__menu .header__checkbox-toggle:checked+.header__hamburger>div {
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
    position: fixed;
    width: 25px;
  }

  .header__menu .header__checkbox-toggle:checked+.header__hamburger>div:before,
  .header__menu .header__checkbox-toggle:checked+.header__hamburger>div:after {
    top: 0;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    background: var(--color-white);
    width: 25px;
  }

  .header__menu .header__checkbox-toggle:checked+.header__hamburger>div:after {
    opacity: 0;
    width: 25px;
  }

  .header__menu .header__checkbox-toggle:checked~.header__nav {
    pointer-events: auto;
  }

  .header__menu .header__checkbox-toggle~.header__nav>div {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
  }

  .header__menu .header__checkbox-toggle:checked~.header__nav>div {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding-top: 100px;
    padding-bottom: 80px;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
    background: var(--color-black);
  }

  .header__menu .header__checkbox-toggle:checked:hover+.header__hamburger>div {
    -webkit-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
    transform: rotate(225deg);
    width: 25px;
  }

  .header__menu .header__hamburger {
    position: absolute;
    top: 17px;
    right: 32px;
    z-index: 1;
    width: 60px;
    height: 60px;
    background: none;
    border-radius: 0 0.12em 0.12em 0;
    cursor: pointer;
    -webkit-transition: box-shadow 0.3s ease;
    transition: box-shadow 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .header__menu .header__hamburger>div {
    position: relative;
    -webkit-box-flex: 0;
    -webkit-flex: none;
    -ms-flex: none;
    flex: none;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-white);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .header__menu .header__hamburger>div:before,
  .header__menu .header__hamburger>div:after {
    content: '';
    position: absolute;
    z-index: 1;
    top: -7px;
    left: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-white);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }

  .header__menu .header__hamburger>div:after {
    top: 7px;
    width: 24px;
  }

  .header__menu .header__nav {
    position: fixed;
    top: 0 !important;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 0;
    pointer-events: none;
    background: none;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: normal;
    -webkit-align-items: normal;
    -ms-flex-align: normal;
    align-items: normal;
    -webkit-box-pack: normal;
    -webkit-justify-content: normal;
    -ms-flex-pack: normal;
    justify-content: normal;
  }

  .header__menu .header__nav>div {
    width: 0;
    height: 0;
  }

  .header__menu .header__nav>div>ul {
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    display: block;
    opacity: 0;
    overflow: auto;
    height: 100%;
  }

  .header__menu .header__checkbox-toggle:checked~.header__nav>div>ul {
    opacity: 1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }

  .header__menu .header__nav>div>ul>li {
    width: 100%;
    display: inline-block;
    position: relative;
    z-index: 1;
    margin-left: 0;
  }

  .header__menu .header__nav>div>ul>li>a {
    line-height: 1;
    text-decoration: none;
    padding: 24px 0;
    position: relative;
    display: block;
    cursor: pointer;
    border-bottom: 1px solid var(--color-black-stroke-text);
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
  }

  .header__nav-item-contact {
    display: block;
  }

  .header__nav-item-contact .h5 {
    font-size: 14px;
    text-transform: none;
  }

  .header__nav-item-contact p {
    padding-top: 24px;
  }

  .header__menu .header__nav>div>ul>.header__nav-item-contact a {
    padding: 16px 0 24px;
  }

  .header__menu .header__nav>div>ul>.header__nav-item-contact a:hover {
    color: var(--color-red);
  }

  .header__nav-contacts {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* END Mobile menu */
}

@media (max-width: 959px) {
  .header__menu .header__checkbox-toggle {
    right: 22px;
  }

  .header__menu .header__hamburger {
    right: 22px;
  }

  .header__menu .header__checkbox-toggle:checked~.header__nav>div {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 679px) {
  .header__menu .header__checkbox-toggle {
    top: 27px;
    right: 22px;
    width: 40px;
    height: 40px;
  }

  .header__menu .header__hamburger {
    top: 27px;
    right: 22px;
    width: 40px;
    height: 40px;
  }

  .header__menu .header__checkbox-toggle:checked~.header__nav>div {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--color-black);
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 700px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin-bottom: 16px;
}

.hero__title span {
  color: var(--color-red);
}

.hero__description {
  color: var(--color-grey-stroke-text);
  margin-bottom: 48px;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

@media (max-width: 959px) {

  .hero {
    padding-top: 92px;
    padding-bottom: 32px;
    overflow: visible;
    height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__content {
    order: 1;
  }

  .hero__title {
    margin-bottom: 8px;
  }

  .hero__description {
    margin-bottom: 32px;
  }

  .hero__content .btn-primary {
    width: 100%;
  }

  .hero__image {
    order: 0;
    aspect-ratio: 2000 / 1560;
    position: relative;
    margin: 0 -24px;
    width: calc(100% + 48px);
  }

}

@media (max-width: 679px) {
  .hero__image {
    margin: 0 -16px;
    width: calc(100% + 32px);
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--color-black);
  padding-top: 80px;
  padding-bottom: 160px;
}

.about__header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.about__label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
  align-items: baseline;
}

.about__label::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.about__title-wrap {
  grid-column: span 3;
}

.about__title {
  margin-bottom: 24px;
}

.about__title span {
  color: var(--color-red);
}

.about__desc {
  color: var(--color-grey-stroke-text);
  max-width: 588px;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about__feature {
  background: var(--color-black-bg);
  border: 1px solid var(--color-black-stroke-text);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  min-height: 262px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

.about__feature-title {
  position: relative;
  padding-bottom: 37px;
  border-bottom: 1px dashed var(--color-black-stroke-text);
}

.about__feature-title::after {
  content: '';
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  right: 0;
  top: 0;
}

.about__feature-text {
  color: var(--color-grey-stroke-text);
}

@media (max-width: 1099px) {
  .about__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .about__feature {
    min-height: 187px;
  }
}

@media (max-width: 959px) {
  .about {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .about__header {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 32px;
  }

  .about__label {
    padding: 0;
  }

  .about__title-wrap {
    grid-column: span 1;
  }

  .about__title {
    margin-bottom: 16px;
  }

  .about__desc {
    max-width: none;
  }

  .about__feature {
    border-radius: 16px;
    padding: 16px;
    gap: 16px;
  }

  .about__feature-title {
    padding-right: 16px;
    padding-bottom: 16px;
  }

  .about__feature-title br {
    display: none;
  }

}

@media (max-width: 679px) {
  .about__features {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }
}

/* ============================================
   PROBLEMS
   ============================================ */
.problems {
  position: relative;
  background: var(--color-grey-bg);
  padding-top: 1px;
  padding-bottom: 60px;
}

.problems::before {
  content: '';
  width: 100%;
  height: 80px;
  background-image: url(../images/topper-grey.svg);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  position: absolute;
  top: -79px;
}

.problems .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.problems__header {
  grid-column: span 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.problems__label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
  align-items: baseline;
  color: var(--color-black);
}

.problems__label::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.problems__title {
  grid-column: span 3;
  color: var(--color-black);
}

.problems__title span {
  color: var(--color-red);
}

.problems__grid {
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problems__card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-stroke-text);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

.problems__card-dots {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.problems__card-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  margin-bottom: 16px;
}

.problems__card:first-child .problems__card-dot:not(:first-child),
.problems__card:nth-child(2) .problems__card-dot:nth-child(n+3),
.problems__card:nth-child(3) .problems__card-dot:nth-child(n+4) {
  background: var(--color-secondary-red);
}

.problems__card-title {
  color: var(--color-black);
  margin-bottom: 12px;
}

.problems__card-text {
  color: var(--color-black-stroke-text);
}

.problems__banner {
  grid-column: 2 / 5;
  background: var(--color-red);
  border-radius: 24px;
  padding: 24px 32px;
}

.problems__banner-text {
  color: var(--color-white);
}

@media (max-width: 959px) {
  .problems {
    padding-bottom: 32px;
  }

  .problems::before {
    height: 40px;
    top: -39px;
  }

  .problems .container {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
  }

  .problems__header {
    grid-column: span 1;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 0;
  }

  .problems__label {
    padding: 0;
  }

  .problems__title {
    grid-column: span 1;
  }

  .problems__grid {
    grid-column: span 1;
    gap: 16px;
  }

  .problems__card {
    border-radius: 16px;
    padding: 24px 16px 16px;
    gap: 16px;
  }

  .problems__card-title {
    margin-bottom: 8px;
  }

  .problems__banner {
    grid-column: span 1;
    border-radius: 16px;
    padding: 16px 24px;
  }
}

@media (max-width: 679px) {
  .problems__grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }

  .problems__banner {
    margin-top: -16px;
  }
}

/* ============================================
   SYSTEM
   ============================================ */
.system {
  background: var(--color-grey-bg);
  padding-top: 60px;
  padding-bottom: 160px;
}

.system__header {
  grid-column: span 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.system__label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
  align-items: baseline;
  color: var(--color-black);
}

.system__label::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.system__title-wrap {
  grid-column: span 3;
}

.system__title {
  color: var(--color-black);
  margin-bottom: 16px;
}

.system__title span {
  color: var(--color-red);
}

.system__desc {
  color: var(--color-black-stroke-text);
  max-width: 800px;
}

.system__diagram {
  position: relative;
  margin-bottom: 24px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--color-grey-stroke-text)
}

.system__diagram-img {
  width: 100%;
  max-width: 100%;
}

.system__diagram-poins {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.system__diagram-num {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-headlines);
  font-weight: 500;
  font-size: 14px;
  border: 2px solid var(--color-red-stroke);
  cursor: pointer;
}

.system__diagram-poin:nth-child(1) .system__diagram-num {
  top: 257px;
  left: 262px;
}

.system__diagram-poin:nth-child(2) .system__diagram-num {
  top: 480px;
  left: 285px;
}

.system__diagram-poin:nth-child(3) .system__diagram-num {
  top: 385px;
  left: 365px;
}

.system__diagram-poin:nth-child(4) .system__diagram-num {
  top: 320px;
  right: 110px;
}

.system__diagram-poin:nth-child(5) .system__diagram-num {
  top: 30px;
  right: 274px;
}

.system__diagram-poin-info {
  background: var(--color-red);
  padding: 16px;
  border-radius: 8px;
  max-width: 224px;
  z-index: 1;
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system__diagram-poin-info h3 {
  font-weight: 500;
}

.system__diagram-poin:hover .system__diagram-poin-info {
  opacity: 1;
}

.system__diagram-poin:nth-child(1) .system__diagram-poin-info {
  top: 257px;
  left: 28px;
}

.system__diagram-poin:nth-child(2) .system__diagram-poin-info {
  top: 480px;
  left: 327px;
}

.system__diagram-poin:nth-child(3) .system__diagram-poin-info {
  top: 385px;
  left: 407px;
}

.system__diagram-poin:nth-child(4) .system__diagram-poin-info {
  top: 320px;
  right: 152px;
}

.system__diagram-poin:nth-child(5) .system__diagram-poin-info {
  top: 30px;
  right: 316px;
}

.system__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.system__step {
  grid-column: span 2;
  position: relative;
  background: var(--color-white);
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--color-grey-stroke-text);
  min-height: 268px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.system__step:first-child,
.system__step:nth-child(2) {
  grid-column: span 3;
}

.system__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-headlines);
  font-weight: 500;
  font-size: 16px;
  border: 2px solid var(--color-red-stroke)
}

.system__step-title {
  color: var(--color-black);
  margin-bottom: 8px;
}

.system__step-text {
  color: var(--color-black-stroke-text);
  letter-spacing: -1%;
}

@media (max-width: 1279px) {
  .system__diagram-poin-info {
    max-width: 315px;
  }

  .system__diagram-poin:nth-child(1) .system__diagram-num {
    top: 20.094vw;
    left: 20.485vw;
  }

  .system__diagram-poin:nth-child(2) .system__diagram-num {
    top: 37.529vw;
    left: 22.283vw;
  }

  .system__diagram-poin:nth-child(3) .system__diagram-num {
    top: 30.102vw;
    left: 28.538vw;
  }

  .system__diagram-poin:nth-child(4) .system__diagram-num {
    top: 25.02vw;
    right: 8.6vw;
  }

  .system__diagram-poin:nth-child(5) .system__diagram-num {
    top: 2.346vw;
    right: 21.423vw;
  }

  .system__diagram-poin:nth-child(1) .system__diagram-poin-info {
    top: 20.094vw;
    left: 24.5vw;
  }

  .system__diagram-poin:nth-child(2) .system__diagram-poin-info {
    top: auto;
    bottom: 12.9vw;
    left: 26.3vw;
  }

  .system__diagram-poin:nth-child(3) .system__diagram-poin-info {
    top: 30.102vw;
    left: 32.5vw;
  }

  .system__diagram-poin:nth-child(4) .system__diagram-poin-info {
    top: 25.02vw;
    right: 12.5vw;
  }

  .system__diagram-poin:nth-child(5) .system__diagram-poin-info {
    top: 2.346vw;
    right: 25vw;
  }
}

@media (max-width: 959px) {
  .system {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .system__header {
    grid-column: span 1;
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 32px;
  }

  .system__label {
    padding: 0;
  }

  .system__title-wrap {
    grid-column: span 1;
  }

  .system__diagram {
    margin-bottom: 16px;
    border-radius: 16px;
  }

  .system__diagram-poins {
    display: none;
  }

  .system__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .system__step {
    padding: 16px;
    border-radius: 16px;
    min-height: 250px;
    gap: 16px;
  }

  .system__step:first-child,
  .system__step:nth-child(2) {
    grid-column: span 2;
  }

  .system__step:nth-child(5) {
    grid-column: span 4;
  }

  .system__step-num {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

@media (max-width: 679px) {
  .system__steps {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }

  .system__step,
  .system__step:first-child,
  .system__step:nth-child(2),
  .system__step:nth-child(5) {
    grid-column: span 1;
  }
}

/* ============================================
   TECHNOLOGIES
   ============================================ */
.tech {
  position: relative;
  background: var(--color-black);
  padding-top: 1px;
  padding-bottom: 60px;
}

.tech::before {
  content: '';
  width: 100%;
  height: 80px;
  background-image: url(../images/topper.svg);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  position: absolute;
  top: -79px;
}

.tech__header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.tech__label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
  align-items: baseline;
}

.tech__label::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.tech__title-wrap {
  grid-column: span 3;
}

.tech__title {
  margin-bottom: 16px;
}

.tech__title span {
  color: var(--color-red);
}

.tech__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.tech__item {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--color-black-bg);
  border: 1px solid var(--color-black-stroke-text);
  border-radius: 32px;
  padding: 24px 0;
}

.tech__item-num {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-white);
  line-height: 140%;
  letter-spacing: 1%;
  padding: 0 24px;
}

.tech__item-info {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.tech__item-title {
  margin-bottom: 16px;
}

.tech__item-text {
  color: var(--color-grey-stroke-text);
}

.tech__item-link {
  color: var(--color-white);
}

.tech__item-link-icon {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gradient-red-linear-btn);
  background-size: 200% 200%;
  background-position: 100% 100%;
  transition: background-position 0.5s ease;
}

.tech__item-link:hover {
  color: var(--color-white);
}

.tech__item-link:hover .tech__item-link-icon {
  background-position: 0% 0%;
}

.tech__item-image {
  aspect-ratio: 1 / 1;
  margin-right: 24px;
  border-radius: 16px;
  overflow: hidden;
  height: auto;
}

.tech__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tech__cta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tech__cta .btn-primary {
  grid-column: 2 / 4;
  width: fit-content;
}

@media (max-width: 959px) {
  .tech {
    padding-bottom: 32px;
  }

  .tech::before {
    height: 40px;
    top: -39px;
  }

  .tech__header {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 32px;
  }

  .tech__label {
    padding: 0;
  }

  .tech__title-wrap {
    grid-column: span 1;
  }

  .tech__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 0;
  }

  .tech__item {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 16px;
  }

  .tech__item-num {
    display: none;
  }

  .tech__item-info {
    grid-column: span 1;
    order: 1;
    margin: 0;
  }

  .tech__item-title {
    margin-bottom: 8px;
  }

  .tech__item-image {
    grid-column: span 1;
    margin: 0;
  }

  .tech__cta {
    display: none;
  }
}

@media (max-width: 679px) {
  .tech__list {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ============================================
   APPLICATION
   ============================================ */
.application {
  position: relative;
  background: var(--color-black);
  padding-top: 60px;
  padding-bottom: 160px;
}

.application__header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.application__label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
  align-items: baseline;
}

.application__label::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.application__title-wrap {
  grid-column: span 3;
}

.application__title {
  margin-bottom: 16px;
}

.application__title span {
  color: var(--color-red);
}

.application__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
  background: var(--color-black-bg);
  border-radius: 32px;
}

.application__info {
  height: 100%;
  padding: 24px 0 24px 24px;
  color: var(--color-grey-stroke-text);
  letter-spacing: -1%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.application__info-block,
.application__info-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.application__info-title {
  color: var(--color-white);
}

.application__info-block li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}

.application__info-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-red);
  border-radius: 50%;
}

.application__visual {
  grid-column: span 3;
  margin: 24px 24px 24px 0;
  overflow: hidden;
  border-radius: 24px;
}

.application__visual-image {
  border-radius: 16px;
  overflow: hidden;
}

.application__visual-img {
  width: 100%;
  object-fit: cover;
}

.application__arrows {
  position: absolute;
  display: flex;
  flex-direction: row;
  gap: 8px;
  bottom: 16px;
  right: 16px;
}

.application__arrow {
  appearance: none;
  border: none;
  background: var(--color-black-stroke-text);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.application__arrow:hover {
  background: var(--color-red);
}

.application__pagination {
  position: absolute;
  display: none;
  gap: 4px;
  justify-content: center;
  margin-top: 20px;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

.application__pagination-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--color-secondary-violet);
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  border: none;
  padding: 0;
  transition: all 0.3s ease-in-out;
}

.application__pagination-dot.is-active {
  width: 56px;
}

.application__pagination-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-white);
  border-radius: 5px;
  transition: none;
}

.application__pagination-dot.is-active::after {
  animation: progress-fill 5s linear forwards;
}

.application__visual:hover .application__pagination-dot.is-active::after {
  animation-play-state: paused;
}

@keyframes progress-fill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.application__pagination-dot.is-completed::after {
  width: 100%;
  animation: none;
}


@media (max-width: 1179px) {
  .application__content {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    border-radius: 24px;
  }

  .application__info {
    padding: 24px 16px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .application__visual {
    grid-column: span 1;
    margin: 0 0 32px;
    border-radius: 24px;
  }
}

@media (max-width: 959px) {
  .application {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .application__header {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 32px;
  }

  .application__label {
    padding: 0;
  }

  .application__title-wrap {
    grid-column: span 1;
  }

  .application__arrows {
    display: none;
  }

  .application__pagination {
    display: flex;
  }
}

@media (max-width: 679px) {
  .application__info {
    grid-template-columns: repeat(1, 1fr);
  }

  .application__visual {
    margin: 0 0 16px;
  }
}

/* ============================================
   ENGINEERING
   ============================================ */
.engineering {
  position: relative;
  background: var(--color-grey-bg);
  padding-top: 1px;
  padding-bottom: 60px;
}

.engineering::before {
  content: '';
  width: 100%;
  height: 80px;
  background-image: url(../images/topper-grey.svg);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  position: absolute;
  top: -79px;
}

.engineering__header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.engineering__label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
  color: var(--color-black);
  align-items: baseline;
}

.engineering__label::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.engineering__title-wrap {
  grid-column: span 3;
}

.engineering__title {
  color: var(--color-black);
  margin-bottom: 16px;
  letter-spacing: -1%;
}

.engineering__title span {
  color: var(--color-red);
}

.engineering__desc {
  color: var(--color-black);
}

.engineering__steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.engineering__step {
  position: relative;
  top: 24px;
  overflow: hidden;
  border: 1px solid var(--color-grey-stroke-text);
  background: var(--color-white);
  border-radius: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  transition: all 0.3s ease-in-out;
}

.engineering__step-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 24px 24px;
}

.engineering__step-info::before,
.engineering__step-info::after {
  content: '';
  width: 350px;
  height: 350px;
  position: absolute;
  background-size: cover;
  background-position: center;
}

.engineering__step-info::before {
  background-image: url(../images/engineering-bg01.svg);
  left: -200px;
  bottom: 50px;
}

.engineering__step-info::after {
  background-image: url(../images/engineering-bg02.svg);
  left: -118px;
  bottom: -110px;
}

.engineering__step-title {
  color: var(--color-black);
}

.engineering__step-text {
  color: var(--color-black);
  letter-spacing: -1%;
}

.engineering__step-image {
  aspect-ratio: 16 / 9;
  grid-column: span 3;
  margin: 24px 24px 24px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-grey-stroke-text);
}

.engineering__step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 959px) {
  .engineering {
    padding-bottom: 32px;
  }

  .engineering::before {
    height: 40px;
    top: -39px;
  }

  .engineering__header {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 32px;
  }

  .engineering__label {
    padding: 0;
  }

  .engineering__title-wrap {
    grid-column: span 1;
  }

  .engineering__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .engineering__step {
    top: 0;
    border-radius: 16px;
    padding: 24px 16px 16px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .engineering__step-info {
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
  }

  .engineering__step-image {
    grid-column: span 1;
    margin: 0;
    border-radius: 8px;
  }
}

@media (max-width: 679px) {
  .engineering__steps {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }
}

/* ============================================
   PRODUCTION
   ============================================ */
.production {
  background: var(--color-grey-bg);
  padding-top: 60px;
  padding-bottom: 160px;
}

.production .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.production__header {
  grid-column: span 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.production__label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
  color: var(--color-black);
  align-items: baseline;
}

.production__label::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.production__title-wrap {
  grid-column: span 3;
}

.production__title {
  color: var(--color-black);
  margin-bottom: 16px;
  letter-spacing: -1%;
}

.production__title span {
  color: var(--color-red);
}

.production__desc {
  color: var(--color-black);
}

.production__grid {
  grid-column: 2 / span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.production__card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-bg);
  border-radius: 24px;
  padding: 24px;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

.production__card-title {
  color: var(--color-black);
  position: relative;
  padding-bottom: 28px;
}

.production__card-title::before {
  content: '';
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-secondary-red);
  border-radius: 50%;
  right: 0;
  top: 0;
}

.production__card-title::after {
  content: '';
  position: absolute;
  display: block;
  width: 100%;
  height: 1px;
  bottom: 0;
  background-image: repeating-linear-gradient(to right,
      var(--color-secondary-red) 0px,
      var(--color-secondary-red) 6px,
      transparent 6px,
      transparent 12px);
}

.production__card-text {
  color: var(--color-black-bg);
}

.production__card-image {
  padding: 0;
}

.production__card-image img,
.production__card-image picture,
.production__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1179px) {
  .production__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .production__card-title br {
    display: none;
  }
}

@media (max-width: 959px) {
  .production {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .production .container {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
  }

  .production__header {
    grid-column: span 1;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 0;
  }

  .production__label {
    padding: 0;
  }

  .production__title-wrap {
    grid-column: span 1;
  }

  .production__grid {
    grid-column: span 1;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .production__card {
    order: 1;
    min-height: 240px;
    border-radius: 16px;
    padding: 16px;
    gap: 16px;
  }

  .production__card.production__card-image {
    padding: 0;
    order: 0;
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }

  .production__card.production__card-image:nth-child(4) {
    order: 2;
  }

  .production__card-title {
    padding-bottom: 16px;
  }
}

@media (max-width: 679px) {
  .production__grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }

  .production__card.production__card-image {
    grid-column: span 1;
    aspect-ratio: 2 / 1.5;
  }
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  position: relative;
  background-color: var(--color-black);
  background-image: url(../images/block-bg.png);
  background-size: cover;
  background-position: right top;
  padding-top: 1px;
  padding-bottom: 160px;
}

.process::before {
  content: '';
  width: 100%;
  height: 80px;
  background-image: url(../images/topper.svg);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  position: absolute;
  top: -79px;
}

.process__header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.process__label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
  align-items: baseline;
}

.process__label::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.process__title-wrap {
  grid-column: span 3;
}

.process__title {
  margin-bottom: 16px;
}

.process__title span {
  color: var(--color-red);
}

.process__desc {
  color: var(--color-grey-stroke-text);
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process__item {
  position: relative;
  grid-column: span 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 24px;
  align-items: center;
  border-bottom: 1px solid;
  border-image-source: linear-gradient(90deg, rgba(55, 56, 99, 0.6) 0%, rgba(18, 19, 43, 0) 73.47%);
}

.process__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(55, 56, 99, 0.6) 0%, rgba(18, 19, 43, 0) 73.47%);
}

.process__item-num {
  color: var(--color-secondary-violet);
  font-family: var(--font-headlines);
  font-weight: 500;
  font-size: 100px;
  line-height: 100%;
  letter-spacing: -1%;
}

.process__item-content {
  grid-column: span 3;
}

.process__item-title {
  margin-bottom: 16px;
}

.process__item-text {
  color: var(--color-grey-stroke-text);
  max-width: 588px;
}

@media (max-width: 959px) {
  .process {
    padding-bottom: 64px;
  }

  .process::before {
    height: 40px;
    top: -39px;
  }

  .process__header {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 32px;
  }

  .process__label {
    padding: 0;
  }

  .process__title-wrap {
    grid-column: span 1;
  }

  .process__timeline {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  .process__item {
    grid-column: span 1;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    padding-bottom: 16px;
  }

  .process__item-num {
    font-size: 52px;
  }

  .process__item-content {
    grid-column: span 1;
  }

  .process__item-title {
    margin-bottom: 8px;
  }
}

@media (max-width: 679px) {}

/* ============================================
   CONTACTS
   ============================================ */
.contacts {
  position: relative;
  background: var(--color-grey-bg);
  padding-top: 1px;
  padding-bottom: 160px;
}

.contacts::before {
  content: '';
  width: 100%;
  height: 80px;
  background-image: url(../images/topper-grey.svg);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  position: absolute;
  top: -79px;
}

.contacts__header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.contacts__label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
  color: var(--color-black);
  align-items: baseline;
}

.contacts__label::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.contacts__title-wrap {
  grid-column: span 3;
}

.contacts__title {
  color: var(--color-black);
  margin-bottom: 16px;
}

.contacts__title span {
  color: var(--color-red);
}

.contacts__desc {
  color: var(--color-black);
}

.contacts__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contacts__info {
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contacts__block {
  background: var(--color-white);
  border: 1px solid var(--color-grey-stroke-text);
  border-radius: 24px;
  padding: 24px;
}

.contacts__block-title {
  color: var(--color-black);
  margin-bottom: 16px;
}

.contacts__link {
  display: block;
  color: var(--color-black);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.contacts__link:hover {
  color: var(--color-red);
}

.contacts__address {
  color: var(--color-black);
  line-height: 156%;
}

.contacts__map {
  grid-column: 2 / 5;
  aspect-ratio: 900 / 500;
  border-radius: 24px;
  overflow: hidden;
}

@media (max-width: 959px) {
  .contacts {
    padding-bottom: 64px;
  }

  .contacts::before {
    height: 40px;
    top: -39px;
  }

  .contacts__header {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 32px;
  }

  .contacts__label {
    padding: 0;
  }

  .contacts__title-wrap {
    grid-column: span 1;
  }

  .contacts__content {
    grid-template-columns: repeat(1, 1fr);
  }

  .contacts__info {
    grid-column: span 1;
    gap: 16px;
  }

  .contacts__block {
    border-radius: 16px;
    padding: 16px;
  }

  .contacts__map {
    grid-column: span 1;
    border-radius: 16px;
  }
}

@media (max-width: 679px) {
  .contacts__info {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background-color: var(--color-black);
  background-image: url(../images/footer-bg.jpg);
  background-position: center top;
  background-size: cover;
  padding-top: 1px;
  min-height: 346px;
  gap: 24px;
}

.footer::before {
  content: '';
  width: 100%;
  height: 80px;
  background-image: url(../images/topper.svg);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  position: absolute;
  top: -79px;
}

.footer__inner {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer__logo-img {
  height: 80px;
  width: auto;
}

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

.footer__nav-title {
  color: var(--color-grey-stroke-text);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-link {
  line-height: 100%;
  color: var(--color-white);
  transition: color 0.2s ease;
}

.footer__nav-link:hover {
  color: var(--color-red);
}

.footer__contacts {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__contacts-title {
  color: var(--color-grey-stroke-text);
}

.footer__contacts-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__phone {
  color: var(--color-white);
  transition: color 0.2s ease;
}

.footer__phone:hover {
  color: var(--color-red);
}

.footer__email {
  color: var(--color-grey-stroke-text);
  transition: color 0.2s ease;
}

.footer__email:hover {
  color: var(--color-red);
}

.footer__bottom {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer__copyright,
.footer__dev {
  color: var(--color-grey-stroke-text);
  transition: color 0.2s ease;
}

.footer__dev:hover {
  color: var(--color-red);
}

.footer__copyright {
  grid-column-start: 2;
}

@media (max-width: 959px) {
  .footer::before {
    height: 40px;
    top: -39px;
  }

  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 24px;
  }

  .footer__logo {
    grid-column: span 2;
  }

  .footer__logo-img {
    height: 42px;
  }

  .footer__contacts {
    grid-column: span 1;
  }

  .footer__bottom {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .footer__copyright,
  .footer__dev {
    grid-column-start: auto;
  }
}

@media (max-width: 679px) {
  .footer {
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: repeat(1, 1fr);
    gap: 42px;
  }

  .footer__logo {
    grid-column: span 1;
  }

  .footer__bottom {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }
}

.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-black-stroke-text);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scroll-top-btn svg {
    transform: rotate(-90deg);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--color-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.modal-close {
  text-decoration: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 7, 27, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10000;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--color-white);
  border-radius: 28px;
  max-width: 860px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close__btn {
  position: absolute;
  top: 40px;
  right: 20px;
  background: none;
  font-size: 0;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  transform: rotate(0deg);
}

.modal-close__btn:hover { 
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px 32px;
}

.modal-body__content {
    display: flex;
    flex-direction: column;
}

.modal-body__title {
  font-family: var(--font-headlines);
  color: var(--color-red);
  font-weight: 500;
  font-size: 32px;
  line-height: 106%;
  letter-spacing: -1%;
  margin-bottom: 24px;
}

.modal-body__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 16px 0 32px;
  border-top: 1px solid #E9E9E9;
}

.modal-body__subtitle {
  font-family: var(--font-headlines);
  color: var(--color-black);
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
}

.modal-body__subtitle::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
}

.modal-body__subtitle span {
    flex: 1;
}

.modal-body__text {
  grid-column: span 2;
  color: var(--color-black);
  font-weight: 400;
  font-size: 16px;
  line-height: 152%;
}

.modal-body__btn {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.modal-body__btn .btn-primary {
  grid-column: 2 / 4;
  width: fit-content;
}

@media (max-width: 959px) {
    .modal-body {
        padding: 40px 24px 24px;
    }
    
    .modal-body__title {
        font-size: 26px;
        margin-right: 30px;
    }
    
    .modal-body__row {
        grid-template-columns: repeat(1, 1fr);
        gap: 8px;
        padding: 24px 0;
    }
    
    .modal-body__subtitle {
        font-size: 14px;
        align-items: center;
    }
    
    .modal-body__subtitle::before {
        width: 8px;
        height: 8px;
    }
    
    .modal-body__text {
        grid-column: span 1;
    }
    
    .modal-body__btn {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .modal-body__btn .btn-primary {
        grid-column: span 1;
        width: 100%;
    }
}

@media (max-width: 679px) {
    .modal-overlay {
        padding: 20px 16px;
    }
}

.error404 {
    position: relative;
    padding-top: 130px;
    padding-bottom: 130px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url(../images/404-bg.jpg);
    background-size: cover;
    background-position: center top;
}

.error404 .container {
    width: 100%;
}

.error404__info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.error404__label {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 16px 0;
    align-items: baseline;
}

.error404__content {
    grid-column: span 3;
}

.error404__title {
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 110%;
}

.error404__title span {
    color: var(--color-red);
}

.error404__desc {
    margin-bottom: 48px;
}

@media (max-width: 959px) {
    
    .error404__info {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .error404__content {
        grid-column: span 1;
    }
    
    .error404__content a {
        width: 100%;
        min-height: 56px;
    }
    
}

@media (max-width: 679px) {
    
    .error404__content br {
        display: none;
    }
    
}