:root {
  --container-padding: 30px;
  --radius-lg: 60px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --color-bg: #f7f8fc;
  --color-soft: #f3f4fb;
  --color-white: #ffffff;
  --color-primary: #041b4e;
  --color-text: #1c1c1c;
  --color-muted: #33456e;
  --color-input: #edf3fc;
}

.container {
  width: 100%;
  max-width: 1920px;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin: 0 auto;
}

body {
  overflow-x: hidden;
  position: relative;
  background: url("../img/layout-bg.png") center 910px / 1920px 2589px no-repeat;
  background-color: var(--color-bg);
}

main {
  position: relative;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: url("../img/header-bg.png") center top / 1920px 85px no-repeat, var(--color-white);
  border-bottom: 0.5px solid rgba(4, 27, 78, 0.12);
}

.header__inner {
  height: 85px;
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.brand__logo {
  width: 96px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 10px;
}

.brand__divider {
  width: 2px;
  height: 40px;
  object-fit: contain;
}

.brand__tagline {
  width: 117px;
  font-weight: 800;
  font-size: 10px;
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 50px;
}

.nav__link {
  font-weight: 600;
  font-size: 20px;
  color: var(--color-primary);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav__caret {
  display: inline-block;
  width: 9.596px;
  height: 4.798px;
  margin-left: 15px;
  object-fit: contain;
  flex: 0 0 auto;
}

.header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.header__phone {
  font-weight: 600;
  font-size: 20px;
  color: var(--color-primary);
  white-space: nowrap;
}

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

.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.burger {
  display: none;
}

.mobile-menu {
  display: none;
}

.icon-btn {
  width: 51px;
  height: 51px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn__img {
  width: 51.19px;
  height: 51.19px;
  object-fit: contain;
}


.btn__arrow {
  width: 18.385px;
  height: 7.364px;
  object-fit: contain;
  max-width: none;
}

.btn--hero {
  height: 45px;
  width: 455px;
  max-width: 100%;
  padding: 0 22px;
  justify-content: flex-start;
  position: relative;
}

.btn--header {
  width: 312px;
  height: 45px;
}

.btn__label {
  display: inline-block;
}

.btn--hero .btn__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.btn {
  height: 45px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  line-height: 21.7px;
  border: 1px solid transparent;
  transition: filter 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: rgba(4, 27, 78, 0.35);
}

.btn--block {
  width: 100%;
}


.btn:hover {
  filter: brightness(0.98);
}

.btn--secondary:hover {
  border-color: rgba(4, 27, 78, 0.6);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.service__more:focus-visible,
.nav__link:focus-visible,
.footer__link:focus-visible,
.field__input:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid #4081fd;
  outline-offset: 2px;
}

.service__more,
.nav__link,
.footer__link {
  transition: opacity 150ms ease, border-color 150ms ease;
}

.service__more:hover,
.nav__link:hover,
.footer__link:hover {
  opacity: 0.85;
}

.hero {
  position: relative;
  min-height: 882px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 882px;
  background: url("../img/hero-bg.png") center top / 1923px 882px no-repeat;
}

.hero__inner {
  position: relative;
  display: block;
  align-items: end;
  min-height: 882px;
}

.hero__content {
  padding-top: 230px;
}

.hero__kicker {
  max-width: 634px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.hero__title {
  font-size: 60px;
  font-weight: 400;
  line-height: 0.9;
  margin-bottom: 42px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero__media {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 85px;
}

.hero__image {
  width: min(920px, 100%);
  height: auto;
  object-fit: contain;
}

.section {
  padding: 90px 0;
}

.section--white {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: min(1920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section--soft {
  background: url("../img/process-bg.png") center / 100% 100% no-repeat;
  background-color: var(--color-soft);
  border-radius: var(--radius-lg);
  width: min(1920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

#advantages.section--white {
  background: transparent;
}

#clients.section--white {
  background: url("../img/clients-bg.png") center / 100% 100% no-repeat;
  background-color: var(--color-white);
}

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 42px;
}

.section__title {
  font-size: 30px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 35px;
}

.section__label {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text);
}

.section__lead {
  font-size: 40px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.4px;
}

.section__lead--left {
  font-size: 40px;
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--advantages {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: transparent;
}

.card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.card__num {
  position: absolute;
  top: 28px;
  left: 30px;
  font-size: 30px;
  font-weight: 800;
  color: var(--color-primary);
}

.card__title {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 26px;
  font-size: 15px;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 1281px) {
  .grid--services .service:nth-child(1) {
    grid-column: span 2;
  }

  .grid--services .service:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

.service__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service__img {
  width: 100%;
  height: 349px;
  object-fit: cover;
  object-position: center;
}

.service:nth-child(1) .service__img {
  object-position: 88% 60%;
}

.service:nth-child(5) .service__img {
  object-position: 62% 55%;
}

.service__top {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  max-width: calc(100% - 60px);
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
  min-width: 0;
}

.service__icon {
  width: 31px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
  max-width: none;
}

.service__icon--w30 {
  width: 30px;
  height: 32px;
}

.service__more {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  background: #fff;
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 600;
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.service__title {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  margin-top: 0;
  z-index: 1;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: #111;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: calc(1.1em * 3);
  word-break: break-word;
}

.grid--process {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.process__content {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.process__img {
  width: 100%;
  height: 597px;
  object-fit: cover;
}

.process__stage {
  position: absolute;
  top: 30px;
  left: 30px;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-muted);
  border-radius: 6px;
  background: #fff;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 15px;
  z-index: 2;
}

.process__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.3px;
  text-align: left;
  margin-top: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: calc(1.1em * 2);
  word-break: break-word;
}

.process__text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  max-height: calc(1.35em * 4);
  word-break: break-word;
}

.section__split {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

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

.products__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  position: relative;
}

.products__nav {
  width: min(450px, 100%);
  display: flex;
  gap: 10px;
}

.products__nav-btn {
  flex: 1 0 0;
  height: 45px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #27044e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.products__nav-btn .products__nav-arrow {
  width: 26px !important;
  height: 10px !important;
  flex: 0 0 auto;
  display: block;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.products__nav-btn > img {
  width: 26px !important;
  height: 10px !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  flex: 0 0 auto;
}

.products__nav-arrow {
  width: 26px !important;
  height: 10px !important;
  object-fit: contain;
  max-width: none;
}

.products__nav-btn--prev .products__nav-arrow {
  transform: rotate(180deg);
}

.product-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-card__title {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 26px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.3px;
  text-align: center;
  color: #1c1c1c;
}

.section__media {
  width: 100%;
  height: 597px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.grid--clients {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client {
  height: 150px;
  border-radius: var(--radius-md);
  background: var(--color-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client img {
  max-height: 128px;
  width: auto;
}

.contact {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.contact__left {
  background: linear-gradient(57.7516deg, #041b4e 0%, #093eb4 102.39%);
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding: clamp(56px, 8vw, 150px) clamp(32px, 7vw, 125px);
}

.contact__left .section__title,
.contact__left .section__label {
  color: #fff;
}

.contact__title {
  margin-top: 22px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.4px;
}

.contact__text {
  margin-top: 42px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.contact__text p + p {
  margin-top: 18px;
}

.contact__right {
  background: url("../img/contact-bg.png") center / 100% 100% no-repeat;
  background-color: var(--color-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  min-height: 600px;
  padding: clamp(56px, 10vw, 205px) clamp(32px, 7vw, 135px);
}

.form {
  display: grid;
  gap: 16px;
}

.contact__right .form {
  max-width: 649.59px;
}

.consent {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 42px;
}

.consent__input {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(28, 28, 28, 0.6);
  border-radius: 0;
  background: transparent;
  appearance: none;
  display: inline-block;
  flex: 0 0 auto;
}

.consent__input:checked {
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.5 8.2 6.4 11 12.7 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  border-color: var(--color-primary);
}

.consent__text {
  font-size: 10px;
  line-height: 16px;
  color: #1c1c1c;
}

.consent__link {
  color: #27044e;
}

.btn--contact {
  position: relative;
}

.btn--contact .btn__arrow {
  position: absolute;
  left: min(419px, calc(100% - 34px));
  top: 16px;
  transform: rotate(-45deg);
}

.field {
  display: grid;
  gap: 11px;
}

.field__label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.field__input {
  width: 100%;
  height: 70px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--color-input);
  font-size: 15px;
  color: var(--color-text);
}

.field__phone {
  height: 70px;
  border-radius: 8px;
  background: var(--color-input);
  display: grid;
  grid-template-columns: 32px 46px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
}

.field__flag {
  width: 28.8px;
  height: 20.8px;
  object-fit: cover;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.field__code {
  font-size: 15px;
  font-weight: 500;
}

.field__input--phone {
  height: 70px;
  background: transparent;
  padding: 0;
}

.footer {
  padding: 60px 0;
}

.footer__inner {
  display: grid;
  gap: 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 60px;
}

.footer__contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  grid-column: span 2;
  min-width: 0;
}

.footer__brand {
  align-items: center;
}

.footer__services {
  padding-top: 8px;
}

.footer__contact {
  padding-top: 8px;
}

.footer__contact-card {
  width: 100%;
  height: 209.59px;
  border-radius: 16px;
  background: #ebedff;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__contact-label {
  font-size: 10px;
  line-height: 16px;
  color: var(--color-text);
  margin: 0 0 8px;
  padding: 0;
}

.footer__pill {
  display: block;
  background: transparent;
  color: var(--color-text);
  font-size: 16px;
  line-height: 24.8px;
  margin: 0;
  padding: 0;
  width: 344px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer__icon {
  position: static;
  width: 51.19px;
  height: 51.19px;
  margin: 0 0 54px;
}

.footer__icon .icon-btn__img {
  width: 51.19px;
  height: 51.19px;
  max-width: none;
}

.footer__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer__link {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 12px;
  color: #111;
}

.footer__bottom {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.footer__small {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-primary);
}

@media (max-width: 1440px) {
  .container {
    max-width: 1440px;
  }

  .section__lead,
  .contact__title {
    font-size: 36px;
  }

  .hero__title {
    font-size: 54px;
  }

  .grid--advantages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .container {
    max-width: 1280px;
  }

  .section__head {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-top: 180px;
  }

  .hero__bg {
    background-size: cover;
    background-position: 75% 50%;
  }

  .grid--advantages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--clients {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__split {
    grid-template-columns: 1fr;
  }

  .section__media {
    height: 420px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact__left {
    min-height: auto;
    padding: 64px 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__contacts {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 1200px) {
  .header__inner {
    gap: 18px;
  }

  .brand__tagline {
    display: none;
  }

  .nav {
    gap: 24px;
  }

  .nav__link {
    font-size: 18px;
  }

  .header__phone {
    display: none;
  }

  .header__right {
    gap: 12px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .icon-btn__img {
    width: 44px;
    height: 44px;
  }

  .btn--header {
    width: auto;
    padding: 0 16px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --radius-lg: 30px;
  }

  .header__inner {
    gap: 14px;
  }

  .hero__bg {
    background-size: cover;
    background-position: 75% 50%;
  }

  .menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .burger {
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(4, 27, 78, 0.18);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    flex: 0 0 auto;
  }

  .burger span {
    width: 18px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    display: block;
  }

  .nav,
  .header__right {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms ease, visibility 150ms ease;
  }

  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 27, 78, 0.25);
  }

  .mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 100%);
    background: #fff;
    padding: 20px;
    transform: translateX(100%);
    max-width: 100vw;
    box-sizing: border-box;
    transition: transform 150ms ease;
    display: grid;
    align-content: start;
    gap: 16px;
  }

  .mobile-menu__close {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(4, 27, 78, 0.18);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    font-size: 22px;
    line-height: 1;
    color: var(--color-primary);
  }

  .mobile-menu__nav {
    display: grid;
    gap: 14px;
  }

  .mobile-menu__link {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
  }

  .mobile-menu__actions {
    display: grid;
    gap: 12px;
  }

  .mobile-menu__phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
  }

  .menu-toggle:checked ~ .mobile-menu {
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle:checked ~ .mobile-menu .mobile-menu__panel {
    transform: translateX(0);
  }

  #advantages {
    display: none;
  }

  .service__media,
  .process__media,
  .product-card {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .service__title,
  .process__title,
  .process__text,
  .product-card__title {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 12px;
    padding: 0 20px;
    text-align: left;
  }

  .process__text {
    margin-top: 10px;
    padding-bottom: 20px;
  }

  .service__title,
  .product-card__title {
    padding-bottom: 20px;
  }

  .nav {
    display: none;
  }

  .header__phone {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .section__lead,
  .contact__title {
    font-size: 28px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__content {
    padding-top: 140px;
  }

  .hero__bg {
    height: 640px;
    background-position: 85% 60%;
  }

  .hero {
    min-height: 640px;
  }

  .btn--hero {
    width: 100%;
  }

  .grid--advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--services {
    grid-template-columns: 1fr;
  }

  .service__img,
  .process__img {
    height: 320px;
  }

  .service__top {
    top: 20px;
    left: 20px;
  }

  .process__stage {
    top: 20px;
    left: 20px;
  }

  .process__title,
  .process__text {
    left: 20px;
    right: 20px;
  }

  .process__title {
    bottom: 78px;
  }

  .process__text {
    bottom: 20px;
  }

  .section__media {
    height: 320px;
  }

  .contact__right {
    min-height: auto;
    padding: 40px 24px;
  }

  .footer__top {
    grid-template-columns: 150px 1fr;
    gap: 20px;
    grid-template-areas:
      "brand services"
      "contacts contacts";
    justify-items: stretch;
    align-items: stretch;
  }

  .footer {
    padding: 40px 0;
  }

  .footer__top > .footer__col {
    min-width: 0;
  }

  .footer__col--brand {
    grid-area: brand;
  }

  .footer__services {
    grid-area: services;
  }

  .footer__contacts {
    grid-area: contacts;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 3vw, 12px);
    justify-items: stretch;
    justify-self: stretch;
    align-self: stretch;
  }

  .footer__contact-card {
    width: 100%;
    height: auto;
    min-width: 0;
    padding: clamp(12px, 3.5vw, 18px);
    justify-self: stretch;
  }

  .footer__link {
    white-space: normal;
    overflow: visible;
    font-size: 12px;
    line-height: 1.2;
    word-break: break-word;
  }

  .footer__icon {
    width: clamp(36px, 10vw, 44px);
    height: clamp(36px, 10vw, 44px);
    margin: 0 0 12px;
  }

  .footer__pill {
    width: 100%;
    font-size: clamp(10px, 3.2vw, 12px);
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  :root {
    --hero-mobile-content-min-height: 590px;
    --hero-mobile-buttons-gap: 22px;
  }

  .brand__tagline {
    display: none;
  }

  .header__inner {
    gap: 14px;
  }

  .header__right {
    gap: 10px;
  }

  .btn--header {
    width: auto;
    padding: 0 14px;
    font-size: 12px;
    white-space: nowrap;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .icon-btn__img {
    width: 44px;
    height: 44px;
  }

  .grid--services,
  .grid--process {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: 620px;
    padding-bottom: 0;
    display: flex;
    align-items: flex-end;
  }

  .hero__content {
    padding-top: 0;
    padding-bottom: 90px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: var(--hero-mobile-content-min-height);
  }

  .hero__buttons {
    margin-top: auto;
    padding-top: var(--hero-mobile-buttons-gap);
  }

  .hero__kicker {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
  }

  .hero__title {
    display: none;
  }

  .hero__title-prefix {
    display: none;
  }

  .hero__bg {
    height: 620px;
    background-position: 88% 65%;
  }

  .hero {
    min-height: 620px;
  }
}

@media (max-width: 320px) {
  :root {
    --container-padding: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section__lead,
  .contact__title {
    font-size: 24px;
  }

  .hero__title {
    font-size: 34px;
  }

  .btn {
    width: 100%;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .grid--services,
  .grid--process {
    grid-template-columns: 1fr;
  }

  .btn--hero {
    width: 100%;
  }
}
