/* =========================================================
   ALATAU Climate Technical Services — main stylesheet
   Desktop layout follows the original 1200px artboard,
   mobile layout follows the original 320–480px artboard.
   ========================================================= */

:root {
  --blue: #024c7f;
  --blue-light: #5692bc;
  --navy: #002d6d;
  --gray-bg: #f2f2f2;
  --black: #000;
  --white: #fff;
  --font: 'Montserrat', Arial, sans-serif;
  --header-h: 51px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { flex-shrink: 0; }

body.is-locked { overflow: hidden; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 400; line-height: 1.55;
  border-radius: 30px; transition: background-color .2s ease-in-out, opacity .2s;
}
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: #013a62; }

/* ---------------- HEADER ---------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--blue);
}
.header__inner {
  position: relative; max-width: 1200px; height: 100%; margin: 0 auto;
  display: flex; align-items: center;
}
.header__logo { position: absolute; left: 29px; top: 6px; width: 161px; height: 39px; }
.header__logo img { width: 100%; height: 100%; object-fit: cover; }
.header__nav { position: absolute; left: 223px; top: 16px; display: flex; font-size: 12px; line-height: 19px; }
.header__nav a { transition: color .2s; }
.header__nav a:hover, .header__phone:hover { color: var(--blue); }
.header__nav a { text-align: center; }
.header__nav a:nth-child(1) { width: 73px; }
.header__nav a:nth-child(2) { width: 99px; margin-left: 42px; }
.header__nav a:nth-child(3) { width: 99px; margin-left: 36px; }
.header__nav a:nth-child(4) { width: 99px; margin-left: 28px; }
.header__nav a:nth-child(5) { width: 53px; margin-left: 32px; }
.header__phone { position: absolute; left: 860px; top: 13px; display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 19px; transition: color .2s; }
.header__phone-icon { width: 24px; height: 24px; color: var(--blue); }
.header__callback { position: absolute; left: 1019px; top: 11px; width: 141px; height: 29px; }
.header__burger { display: none; }

/* ---------------- HERO ---------------- */
.hero { position: relative; height: 480px; overflow: hidden; color: var(--white); }
.hero__bg {
  position: absolute; inset: 0;
  background: url('/assets/img/hero.jpg') center / cover no-repeat;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0; opacity: .8;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0) 100%);
}
.hero__inner { position: relative; max-width: 1200px; height: 100%; margin: 0 auto; }
.hero__title { position: absolute; left: 60px; top: 57px; width: 421px; font-size: 38px; font-weight: 400; line-height: 59px; }
.hero__btn { position: absolute; left: 60px; top: 228px; width: 154px; height: 40px; }
.hero__text { position: absolute; left: 60px; top: 317px; width: 474px; font-size: 16px; line-height: 25px; }

/* ---------------- BADGES ---------------- */
.badges { background: var(--blue); color: var(--white); }
.badges__list {
  max-width: 1200px; height: 120px; margin: 0 auto; padding: 20px 0 0 21px;
  display: grid; grid-template-columns: repeat(5, 231.5px);
}
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12px; font-weight: 500; line-height: 19px; }
.badge__icon { width: 50px; height: 50px; margin-bottom: 11px; color: var(--white); }
.badge:last-child span { max-width: 156px; }

/* ---------------- SECTION BASICS ---------------- */
.section__title { font-size: 24px; font-weight: 600; line-height: 37px; text-align: center; }
.section__subtitle { margin-top: 10px; font-size: 14px; line-height: 22px; text-align: center; }

/* ---------------- WHAT WE DO ---------------- */
.services { max-width: 1200px; height: 520px; margin: 0 auto; padding-top: 40px; }
.services__grid {
  margin: 40px 0 0 80px;
  display: grid; grid-template-columns: repeat(3, 302px); grid-template-rows: repeat(2, 136px);
  grid-auto-flow: column; column-gap: 67px; row-gap: 44px;
}
.service { background: var(--gray-bg); border-radius: 15px; padding: 17px 31px 0 32px; text-align: center; }
.service:nth-child(-n+2) { padding: 17px 22px 0; }
.service__title { position: relative; font-size: 14px; font-weight: 600; line-height: 22px; padding-bottom: 13px; }
.service__title::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 100px; height: 1px;
  margin-left: -50px; background: var(--blue);
}
.service__text { font-size: 14px; line-height: 22px; }

/* ---------------- CAROUSELS (shared) ---------------- */
.carousel { overflow: hidden; }
.carousel__head { display: flex; align-items: flex-start; justify-content: space-between; }
.carousel__title { font-size: 42px; font-weight: 500; line-height: 52.5px; }
.carousel__controls { display: flex; gap: 5px; flex-shrink: 0; margin-top: 3px; }
.carousel__btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center; transition: opacity .2s;
}
.carousel__btn svg { width: 40px; height: 40px; }
.carousel__btn--next svg { transform: scaleX(-1); }
.carousel__btn:disabled { cursor: default; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex-shrink: 0; }

/* Industries */
.industries { padding: 30px 0 45px; }
.industries__head { padding: 0 30px; margin-bottom: 40px; }
.industries__track { gap: 40px; padding: 0 30px; scroll-padding: 0 30px; }
.industry {
  position: relative; width: 360px; height: 480px; border-radius: 20px; overflow: hidden;
  background: center / cover no-repeat; color: var(--white);
}
.industry__content {
  margin: 10px; padding: 20px 20px 30px; border-radius: 20px;
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.industry__title { font-size: 18px; font-weight: 600; line-height: 24.3px; margin-bottom: 14px; }
.industry ul { padding-left: 20px; font-size: 14px; font-weight: 300; line-height: 21.7px; list-style: disc; }

/* Gallery */
.gallery { padding: 45px 0 15px; }
.gallery__head { max-width: 940px; margin: 0 auto 40px; }
.gallery__track { gap: 20px; padding: 0 30px; scroll-padding: 0 30px; }
.gallery__item { height: 500px; padding: 0; cursor: zoom-in; }
.gallery__item img { height: 100%; width: auto; object-fit: cover; }

/* ---------------- HOW WE WORK ---------------- */
.steps { background: var(--blue); color: var(--white); padding: 40px 0 0; height: 370px; }
.steps__list {
  max-width: 1080px; margin: 45px auto 0;
  display: grid; grid-template-columns: repeat(5, 200px); column-gap: 20px;
}
.step {
  position: relative; height: 150px; background: var(--white); color: var(--black); border-radius: 15px;
  padding: 0 15px 0 20px;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 73px auto; column-gap: 5px;
}
.step__num { grid-row: 1; font-size: 50px; font-weight: 700; line-height: 78px; opacity: .3; }
.step__title { grid-row: 1; align-self: end; margin-bottom: 13px; font-size: 16px; font-weight: 500; line-height: 21px; }
.step:nth-child(2) .step__title { max-width: 91px; }
.step:nth-child(5) .step__title { max-width: 101px; }
.step__text { grid-column: 1 / -1; font-size: 12px; line-height: 19px; max-width: 160px; }

/* ---------------- WHY CHOOSE US ---------------- */
.why { max-width: 1200px; height: 300px; margin: 0 auto; padding-top: 40px; }
.why__list {
  margin: 35px 0 0 60px;
  display: grid; grid-template-columns: 300px 290px 283px 207px;
}
.why__item { display: flex; gap: 10px; }
.why__num { font-size: 60px; font-weight: 700; line-height: 93px; opacity: .3; }
.why__item:nth-child(4) .why__num { margin-right: 0; }
.why__item > div { padding-top: 21px; }
.why__title { font-size: 16px; font-weight: 500; line-height: 25px; margin-bottom: 6px; }
.why__text { font-size: 12px; line-height: 19px; max-width: 210px; }
.why__item:nth-child(2) .why__text { max-width: 189px; }
.why__item:nth-child(3) .why__text { max-width: 185px; }
.why__item:nth-child(4) .why__text { max-width: 156px; }

/* ---------------- REQUEST A SITE VISIT ---------------- */
.visit { max-width: 1200px; height: 250px; margin: 0 auto; padding: 34px 100px 0; }
.visit__box {
  position: relative; height: 181px; border-radius: 20px; color: var(--white);
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex; justify-content: space-between; padding: 31px 47px 0 40px;
}
.visit__title { font-size: 30px; font-weight: 700; line-height: 47px; }
.visit__descr { width: 492px; margin-top: 22px; font-size: 16px; line-height: 25px; }
.visit__form { width: 312px; }
.visit__submit {
  display: block; width: 160px; height: 50px; margin-top: 19px; border-radius: 20px;
  background: var(--black); color: var(--white); font-size: 14px; font-weight: 600; transition: opacity .2s;
}
.visit__submit:hover { opacity: .85; }

/* ---------------- PHONE FIELD (shared) ---------------- */
.phone-field { display: flex; align-items: center; }
.phone-field__flag {
  flex-shrink: 0; width: 18px; height: 12px; margin-right: 8px;
  background:
    linear-gradient(90deg, #ef3340 0 25%, transparent 25%),
    linear-gradient(180deg, #009739 0 33.3%, #fff 33.3% 66.6%, #000 66.6%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.phone-field__flag::after {
  content: ''; position: relative; left: 23px; top: 4px; display: block; width: 0; height: 0;
  border: 4px solid transparent; border-top: 5px solid #999; border-bottom: 0;
}
.phone-field__flag { margin-right: 24px; }
.phone-field__code { flex-shrink: 0; margin-right: 6px; }
.phone-field__input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; color: inherit; padding: 0;
}
.phone-field__input::placeholder { color: inherit; opacity: .5; }
.phone-field--pill { height: 50px; padding: 0 20px; background: var(--white); color: var(--black); border-radius: 20px; font-size: 16px; }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--black); color: var(--white); }
.footer__inner { position: relative; max-width: 1200px; height: 290px; margin: 0 auto; }
.footer__brand { position: absolute; left: 48px; top: 52px; }
.footer__logo { width: 215px; height: 52px; object-fit: cover; }
.footer__tagline { margin: 18px 0 0 12px; font-size: 16px; line-height: 25px; }
.footer__copy { margin: 23px 0 0 12px; width: 238px; font-size: 10px; font-weight: 300; line-height: 16px; }
.footer__col { position: absolute; top: 61px; display: flex; flex-direction: column; font-size: 12px; line-height: 19px; }
.footer__heading { font-size: 16px; font-weight: 500; line-height: 25px; opacity: .5; margin-bottom: 15px; }
.footer__nav { left: 430px; }
.footer__nav a { margin-bottom: 6px; }
.footer__nav a:hover, .footer__contacts a:hover { opacity: .7; }
.footer__contacts { left: 660px; }
.footer__contacts a, .footer__contacts span { display: flex; align-items: center; gap: 6px; height: 20px; margin-bottom: 5px; }
.footer__contacts svg { width: 20px; height: 20px; color: var(--white); }
.footer__feedback { left: 920px; width: 220px; }
.footer__form { display: flex; flex-direction: column; }
.footer__label { font-size: 12px; line-height: 20px; }
.footer__input, .phone-field--line {
  height: 30px; border: 0; border-bottom: 1px solid var(--white); background: transparent; color: var(--white);
  font: inherit; font-size: 12px; outline: 0; margin-bottom: 10px;
}
.phone-field--line { height: 29px; font-size: 12px; }
.footer__submit {
  width: 160px; height: 30px; border-radius: 10px; background: var(--navy); color: var(--white);
  font-size: 12px; transition: opacity .2s;
}
.footer__submit:hover { opacity: .85; }

/* ---------------- FORM MESSAGES ---------------- */
.form-msg { font-size: 13px; line-height: 1.4; margin-top: 8px; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #ff3b30; }
.visit .form-msg.is-error, .footer .form-msg.is-error { color: #ffd2cf; }
.lead-form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.phone-field.is-invalid, .popup__input.is-invalid { box-shadow: inset 0 0 0 1px #ff3b30; }
.phone-field--line.is-invalid { box-shadow: none; border-bottom-color: #ff3b30; }

/* ---------------- MESSENGER WIDGET ---------------- */
.messenger { position: fixed; right: 65px; bottom: 50px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.messenger__toggle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(2,76,127,.5); animation: pulse 2.5s infinite;
}
.messenger__close { display: none; }
.messenger.is-open .messenger__chat { display: none; }
.messenger.is-open .messenger__close { display: block; }
.messenger.is-open .messenger__toggle { animation: none; }
.messenger__link {
  display: flex; align-items: center; gap: 10px; margin-right: 5px;
  opacity: 0; visibility: hidden; transform: translateY(15px); transition: .25s ease;
}
.messenger.is-open .messenger__link { opacity: 1; visibility: visible; transform: none; }
.messenger__label { background: var(--white); padding: 5px 10px; border-radius: 5px; font-size: 12px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.messenger__icon { width: 50px; height: 50px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(2,76,127,.5); }
  70% { box-shadow: 0 0 0 14px rgba(2,76,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(2,76,127,0); }
}

/* ---------------- SIDE MENU ---------------- */
.side-menu { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.side-menu.is-open { visibility: visible; }
.side-menu__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.side-menu.is-open .side-menu__overlay { opacity: 1; }
.side-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 260px;
  background: #111; color: var(--white); padding: 40px 20px 30px;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s ease;
}
.side-menu.is-open .side-menu__panel { transform: none; }
.side-menu__close { position: absolute; top: 5px; right: 5px; width: 40px; height: 40px; }
.side-menu__close span { position: absolute; left: 10px; top: 19px; width: 20px; height: 2px; background: var(--white); }
.side-menu__close span:first-child { transform: rotate(45deg); }
.side-menu__close span:last-child { transform: rotate(-45deg); }
.side-menu__logo { width: 180px; margin-bottom: 25px; }
.side-menu__nav { display: flex; flex-direction: column; gap: 15px; font-size: 16px; }
.side-menu__nav a:hover { opacity: .7; }
.side-menu__bottom { margin-top: auto; padding-top: 30px; }
.side-menu__social { display: flex; gap: 8px; margin-bottom: 20px; }
.side-menu__social svg { width: 30px; height: 30px; }
.side-menu__btn {
  display: inline-flex; align-items: center; justify-content: center; height: 45px; padding: 0 30px;
  border: 1px solid var(--white); border-radius: 30px; font-size: 14px; font-weight: 600; transition: background .2s, color .2s;
}
.side-menu__btn:hover { background: var(--white); color: var(--black); }

/* ---------------- POPUP ---------------- */
.popup { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.popup.is-open { visibility: visible; opacity: 1; }
.popup__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.popup__close { position: absolute; top: 20px; right: 20px; width: 43px; height: 43px; color: var(--white); display: flex; align-items: center; justify-content: center; z-index: 2; }
.popup__box {
  position: relative; width: 100%; max-width: 460px; max-height: 100%; overflow-y: auto;
  background: var(--white); padding: 40px 45px; transform: translateY(20px); transition: transform .3s;
}
.popup.is-open .popup__box { transform: none; }
.popup__title { font-size: 32px; font-weight: 600; line-height: 39.36px; text-align: center; margin-bottom: 30px; }
.popup__form { display: flex; flex-direction: column; }
.popup__label { font-size: 16px; line-height: 1.55; margin-bottom: 5px; }
.popup__input, .phone-field--box {
  height: 60px; border: 1px solid #c9c9c9; border-radius: 5px; padding: 0 20px; font: inherit; font-size: 16px; outline: 0;
  margin-bottom: 25px; background: var(--white); color: var(--black);
}
.popup__input:focus, .phone-field--box:focus-within { border-color: #888; }
.popup__submit {
  height: 54px; border-radius: 5px; background: var(--black); color: var(--white);
  font-size: 16px; font-weight: 600; transition: opacity .2s;
}
.popup__submit:hover { opacity: .85; }
.popup__note { margin-top: 15px; text-align: center; font-size: 14px; opacity: .6; }

/* ---------------- LIGHTBOX ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__img { max-width: calc(100% - 140px); max-height: calc(100% - 80px); object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 43px; height: 43px; color: var(--white); display: flex; align-items: center; justify-content: center; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -25px; width: 50px; height: 50px; color: var(--white); }
.lightbox__nav svg { width: 50px; height: 50px; }
.lightbox__nav--prev { left: 15px; }
.lightbox__nav--next { right: 15px; }
.lightbox__nav--next svg { transform: scaleX(-1); }

/* =========================================================
   WIDE SCREENS (>1200): the 1200px layout is scaled to the
   window width (--z is set in index.html). The two carousels
   are not scaled — they just show more cards, as on Tilda.
   ========================================================= */
@media (min-width: 1201px) {
  :root { --header-h: calc(51px * var(--z, 1)); }
  .header, .hero, .badges, .services, .steps, .why, .visit, .footer { zoom: var(--z, 1); }
  .header { height: 51px; } /* zoom already scales it */

  .industries__head { padding: 0 40px; }
  .industries__track { padding: 0 40px; scroll-padding: 0 40px; }
  .gallery__head { max-width: 1160px; }
  .gallery__track { padding: 0 40px; scroll-padding: 0 40px; }
}

/* =========================================================
   TABLET  (640–1199): fluid version of the desktop layout
   ========================================================= */
@media (max-width: 1199px) {
  .header__nav { left: 205px; }
  .header__nav a:nth-child(n) { width: auto; }
  .header__nav a:nth-child(n+2) { margin-left: 20px; }
  .header__phone { left: auto; right: 175px; }
  .header__callback { left: auto; right: 20px; }
}

@media (max-width: 1023px) {
  .header__nav { display: none; }
  .header__burger { display: block; position: absolute; right: 18px; top: 8px; width: 35px; height: 35px; padding: 4px; }
  .header__burger svg { width: 100%; height: 100%; }
  .header__callback { right: 70px; }
  .header__phone { right: 225px; }
}

@media (max-width: 1199px) {

  .hero__inner, .services, .why, .visit { max-width: 100%; }
  .gallery__head { padding: 0 30px; }
  .badges__list { grid-template-columns: repeat(5, 1fr); padding: 20px 20px 0; }

  .services__grid { margin: 40px 20px 0; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; column-gap: 24px; row-gap: 24px; }
  .services { height: auto; padding-bottom: 55px; }
  .service { padding-bottom: 18px; }

  .steps { height: auto; padding-bottom: 66px; }
  .steps__list { max-width: none; margin: 45px 20px 0; grid-template-columns: repeat(5, 1fr); column-gap: 12px; }
  .step { height: auto; min-height: 150px; padding: 0 12px 16px 14px; }

  .why { height: auto; padding-bottom: 50px; }
  .why__list { margin: 35px 20px 0; grid-template-columns: repeat(4, 1fr); column-gap: 16px; }

  .visit { height: auto; padding: 34px 20px 35px; }
  .visit__box { height: auto; padding: 31px 40px 31px; gap: 30px; }
  .visit__descr { width: auto; }

  .footer__inner { height: auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 20px; padding: 52px 20px 40px; }
  .footer__brand, .footer__col { position: static; }
  .footer__col { padding-top: 9px; }
  .footer__feedback { width: auto; }
}

@media (max-width: 959px) {
  .hero__title { font-size: 34px; line-height: 48px; }
  .hero__text { width: 60%; }

  .steps__list { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .why__list { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .visit__box { flex-direction: column; }
  .visit__form { width: 100%; max-width: 400px; }

  .carousel__title { font-size: 34px; line-height: 1.25; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   MOBILE (<640): follows the original 320–480 artboard
   ========================================================= */
@media (max-width: 639px) {
  :root { --header-h: 54px; }

  .header__logo { left: 8px; top: 7px; width: 163px; height: 40px; }
  .header__phone, .header__callback { display: none; }
  .header__burger { top: 9px; }

  .hero { height: 410px; }
  .hero__bg::after { background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.79) 52%, rgba(0,0,0,0) 100%); }
  .hero__title { left: 23px; top: 29px; width: 299px; font-size: 30.5px; line-height: 39.8px; }
  .hero__btn { left: 23px; top: 255px; width: 135px; height: 35px; border-radius: 15px; font-size: 14px; line-height: 16.9px; }
  .hero__text { left: 23px; top: 323px; width: 274px; font-size: 11.7px; line-height: 15.2px; }

  .badges__list {
    height: auto; padding: 21px 10px 17px; grid-template-columns: none;
    display: flex; flex-wrap: wrap; justify-content: center; row-gap: 22px;
  }
  .badge { width: 33.33%; font-size: 11.7px; line-height: 15.2px; }
  .badge:nth-child(4), .badge:nth-child(5) { width: 38%; }
  .badge__icon { width: 35px; height: 35px; margin-bottom: 12px; }
  .badge:nth-child(1) { order: 1; } .badge:nth-child(3) { order: 2; } .badge:nth-child(2) { order: 3; }
  .badge:nth-child(4) { order: 4; } .badge:nth-child(5) { order: 5; }
  .badge span { max-width: 100px; }

  .section__title { font-size: 23.4px; line-height: 36.3px; }
  .section__subtitle { margin: 9px auto 0; padding: 0 20px; font-size: 14.1px; line-height: 18.8px; }

  .services { padding: 23px 0 35px; }
  .services__grid { margin: 22px 0 0; padding: 0 17px; grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; row-gap: 23px; }
  .service { min-height: 129px; padding: 23px 20px 18px; }
  .service__title { font-size: 14.1px; line-height: 22.3px; padding-bottom: 19px; }
  .service__title::after { width: 117px; margin-left: -58.5px; bottom: 9px; }
  .service__text { font-size: 11.7px; line-height: 18.8px; }

  .industries { padding-bottom: 45px; }
  .industries__head { padding: 0 20px; margin-bottom: 30px; }
  .gallery__head { padding: 0 20px; margin-bottom: 30px; }
  .carousel__title { font-size: 30px; line-height: 37.5px; max-width: 273px; }
  .carousel__controls { display: none; }
  .industries__track { gap: 10px; padding: 0 20px; scroll-padding: 0 20px; }
  .industry { width: 280px; height: 373px; }
  .industry__title { font-size: 16px; line-height: 21.6px; margin-bottom: 14px; }
  .industry ul { font-size: 12px; line-height: 17.4px; }

  .steps { padding: 29px 0 30px; }
  .steps__list { margin: 26px 17px 0; grid-template-columns: 1fr; row-gap: 18px; }
  .step { min-height: 96px; height: auto; padding: 17px 20px 14px 23px; grid-template-rows: auto 1fr; grid-template-columns: auto 1fr; column-gap: 6px; align-items: start; }
  .step__num { grid-row: 1 / 3; font-size: 58.6px; line-height: 58.6px; }
  .step__title { grid-row: 1; align-self: start; margin: 6px 0 6px; font-size: 14.1px; line-height: 18.8px; }
  .step:nth-child(n) .step__title { max-width: none; }
  .step__text { grid-column: 2; max-width: none; font-size: 11.7px; line-height: 15.2px; }

  .gallery { padding: 45px 0 15px; }
  .gallery__track { padding: 0 20px; scroll-padding: 0 20px; gap: 20px; }
  .gallery__item { height: 350px; }

  .why { padding: 29px 0 25px; }
  .why__list { margin: 20px 12px 0 18px; grid-template-columns: 1fr; row-gap: 24px; }
  .why__item { gap: 11px; }
  .why__num { width: 42px; font-size: 70.3px; line-height: 70.3px; }
  .why__item > div { padding-top: 6px; }
  .why__title { font-size: 14.1px; line-height: 22.3px; margin-bottom: 7px; }
  .why__text, .why__item:nth-child(n) .why__text { max-width: none; font-size: 11.7px; line-height: 18.8px; }

  .visit { padding: 16px 17px 29px; }
  .visit__box { padding: 37px 15px 29px; text-align: center; gap: 0; align-items: center; }
  .visit__title { font-size: 23.4px; line-height: 36.3px; }
  .visit__descr { margin-top: 6px; font-size: 14.1px; line-height: 22.3px; }
  .visit__form { margin-top: 24px; max-width: 293px; display: flex; flex-wrap: wrap; gap: 8px; }
  .visit__form .phone-field--pill { flex: 1; min-width: 0; height: 35px; padding: 0 12px; font-size: 14.1px; border-radius: 15px; }
  .visit__form .phone-field__flag { margin-right: 22px; }
  .visit__form .phone-field__flag::after { left: 22px; }
  .visit__submit { margin: 0; width: 94px; flex-shrink: 0; height: 35px; font-size: 14.1px; border-radius: 15px; }
  .visit__form .form-msg { width: 100%; }

  .footer__inner { grid-template-columns: 164px 1fr; gap: 0; padding: 26px 18px 12px; }
  .footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
  .footer__logo { width: 175px; height: 42px; }
  .footer__tagline { margin: 9px 0 22px; font-size: 14.1px; line-height: 22.3px; }
  .footer__copy { order: 3; display: none; }
  .footer__col { padding: 0; font-size: 14.1px; line-height: 22.3px; }
  .footer__heading { font-size: 16.4px; line-height: 25.8px; margin-bottom: 18px; }
  .footer__nav a { margin-bottom: 7px; }
  .footer__contacts a, .footer__contacts span { height: 23px; margin-bottom: 6px; gap: 7px; }
  .footer__contacts svg { width: 23px; height: 23px; }
  .footer__feedback { display: none; }
  .footer::after {
    content: '© 2025 Alatau Climate Technical Services LLC. All rights reserved';
    display: block; max-width: 279px; margin: 0 auto; padding: 4px 0 12px;
    text-align: center; font-size: 9.4px; font-weight: 300; line-height: 14px;
  }

  .messenger { right: 10px; bottom: 10px; }

  .popup { padding: 0; }
  .popup__box { max-width: none; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 60px 20px 30px; }
  .popup__close { color: var(--black); top: 10px; right: 10px; }
  .popup__title { font-size: 26px; line-height: 1.23; }

  .lightbox__img { max-width: 100%; }
  .lightbox__nav { display: none; }
}
