/* =========================================================
   Строй Сервис 36 РУС
   ========================================================= */

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

:root {
  --navy: #16243B;
  --navy-2: #1C2E4A;
  --navy-3: #223858;
  --yellow: #F5C33A;
  --yellow-dark: #E5B226;
  --yellow-soft: #FFF6D9;
  --white: #FFFFFF;
  --soft: #F7F8FA;
  --text: #2B3544;
  --gray: #66707E;
  --gray-light: #99A1AC;
  --border: #E7EAF0;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(22, 36, 59, .08);
  --shadow-sm: 0 4px 16px rgba(22, 36, 59, .06);
  --container: 1180px;
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }

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

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 100px;
  font-size: .9063rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }

.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--yellow-dark); }

.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: #EFEFEF; }

.btn--sm { min-height: 42px; padding: 0 22px; font-size: .8125rem; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow .2s;
}
.header--scrolled { box-shadow: 0 4px 20px rgba(22, 36, 59, .08); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.logo { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.logo__icon { width: 42px; height: 42px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.14; }
.logo__name { font-size: .9375rem; font-weight: 800; color: var(--navy); letter-spacing: -.015em; white-space: nowrap; }
.logo__sub { font-size: .5938rem; font-weight: 500; color: var(--gray-light); letter-spacing: .07em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.55rem; margin-left: auto; }
.nav__link { font-size: .8438rem; font-weight: 500; color: var(--text); transition: color .15s; white-space: nowrap; }
.nav__link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--yellow); }

.header__actions { display: flex; align-items: center; gap: 1.35rem; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8438rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.header__phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.header__phone:hover { color: var(--navy-3); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  padding: 0 10px;
  margin-left: auto;
}
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 21, 35, .58) 0%, rgba(12, 21, 35, .22) 52%, rgba(12, 21, 35, .04) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero__content { max-width: 700px; }
.hero h1 {
  font-size: clamp(2.15rem, 3.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.025em;
  margin-bottom: 1.1rem;
}
.hero p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
  max-width: 540px;
  margin-bottom: 1.9rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ===== Секции ===== */
.section { padding: 4.75rem 0; }
.section--reqs { background: var(--soft); }

.section-head { margin-bottom: 2.2rem; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(1.55rem, 2.3vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.section-title::after {
  content: '';
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: var(--yellow);
  margin-top: .7rem;
}

/* ===== О компании ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}
.about__text p { color: var(--gray); font-size: .9688rem; line-height: 1.75; margin-bottom: .9rem; }
.about__text .btn { margin-top: 1rem; }
.about__media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Услуги ===== */
.services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card img { width: 100%; height: 168px; object-fit: cover; }
.service-card__body { padding: 1rem 1rem 1.25rem; }
.service-card__body h3 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: .35rem;
}
.service-card__body p { font-size: .7813rem; color: var(--gray); line-height: 1.5; }

/* ===== Как мы работаем ===== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.process__step { position: relative; }
.process__step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 14px;
  right: -1.45rem;
  font-size: 1.15rem;
  color: #C6CDD6;
  line-height: 1;
}
.process__top { display: flex; align-items: center; gap: .9rem; }
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1;
}
.process__icon {
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.process__icon svg { width: 30px; height: 30px; }
.process__step h3 {
  font-size: .9688rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 1.35rem 0 .35rem;
}
.process__step p { font-size: .8125rem; color: var(--gray); line-height: 1.55; }

/* ===== Почему к нам обращаются ===== */
.why {
  display: grid;
  grid-template-columns: 1.55fr .85fr;
  gap: 3rem;
  align-items: center;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem 1.6rem;
}
.why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #DCE1E8;
  background: #fff;
  color: var(--navy);
  margin-bottom: .75rem;
  flex-shrink: 0;
}
.why__icon svg { width: 24px; height: 24px; }
.why__item h3 { font-size: .875rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: .25rem; }
.why__item p { font-size: .7813rem; color: var(--gray); line-height: 1.5; }
.why__media img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Проекты ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.project {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project img { width: 100%; height: 248px; object-fit: cover; }
.project__caption {
  padding: .85rem 1.1rem .95rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
}

/* ===== Реквизиты ===== */
.reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
}
.reqs__item {
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}
.reqs__item span { display: block; font-size: .75rem; color: var(--gray-light); margin-bottom: .1rem; }
.reqs__item strong { font-size: .8438rem; font-weight: 600; color: var(--navy); line-height: 1.45; }
.reqs__item a:hover { text-decoration: underline; }

/* ===== CTA ===== */
.cta-band {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.cta-band__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(22, 36, 59, .9) 32%, rgba(22, 36, 59, .45) 62%, rgba(22, 36, 59, .12) 100%);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
  color: #fff;
}
.cta-band__text h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .45rem; }
.cta-band__text p { font-size: .875rem; color: rgba(255,255,255,.76); max-width: 620px; line-height: 1.55; }
.cta-band .btn { flex-shrink: 0; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 1.55fr;
  gap: 2rem;
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 2.25rem;
}
.logo--footer .logo__name { color: #fff; }
.logo--footer .logo__sub { color: rgba(255,255,255,.42); }

.footer__contacts { display: flex; flex-direction: column; gap: .8rem; }
.footer__contact {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: rgba(255,255,255,.85);
}
.footer__contact:first-child { font-size: 1rem; font-weight: 700; color: #fff; }
.footer__contact--addr { align-items: flex-start; }
.footer__contact:hover { color: var(--yellow); }
.footer__icon {
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.footer__icon svg { width: 16px; height: 16px; }
.footer__contact--addr .footer__icon { margin-top: 1px; }

.footer__right {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer__nav { display: flex; flex-wrap: nowrap; gap: .85rem 1.15rem; padding-top: .35rem; }
.footer__nav a { font-size: .8125rem; color: rgba(255,255,255,.72); transition: color .15s; white-space: nowrap; }
.footer__nav a:hover { color: var(--yellow); }

.footer__socials { display: flex; gap: .55rem; }
.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  transition: background .15s, border-color .15s, color .15s;
}
.footer__social:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.09); }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .9rem;
  padding-bottom: .9rem;
  font-size: .7188rem;
  color: rgba(255,255,255,.42);
}
.footer__bottom-inner a:hover { color: rgba(255,255,255,.75); }
.footer__legal { display: flex; gap: 1.25rem; }

/* ===== Модальное окно ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 18, 30, .62);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  transform: translateY(16px) scale(.98);
  transition: transform .25s;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: background .15s, color .15s;
}
.modal__close:hover { background: var(--soft); color: var(--navy); }
.modal__close svg { width: 20px; height: 20px; }
.modal__title { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: .5rem; }
.modal__sub { font-size: .9063rem; color: var(--gray); margin-bottom: 1.5rem; line-height: 1.55; }
.modal__form { display: flex; flex-direction: column; gap: .8rem; }
.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.modal__input {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--soft);
  font-size: .9375rem;
  color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s;
}
.modal__input::placeholder { color: var(--gray-light); }
.modal__input:focus { border-color: var(--yellow); background: #fff; }
.modal__textarea { min-height: 96px; resize: vertical; }
.modal__submit { width: 100%; margin-top: .35rem; }
.modal__privacy { font-size: .75rem; color: var(--gray-light); text-align: center; }
.modal__privacy a { color: var(--gray); text-decoration: underline; }

/* ===== Тост ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: .9rem 1.5rem;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast--error { background: #B3261E; }

/* ===== Виджет чата ===== */
.chat-widget { position: fixed; right: 20px; bottom: 0; z-index: 800; font-family: 'Inter', system-ui, sans-serif; }

.chat-widget__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px 16px 0 0;
  background: var(--navy);
  color: var(--yellow);
  box-shadow: 0 -4px 24px rgba(22, 36, 59, .25);
  transition: background .2s;
}
.chat-widget__btn:hover { background: var(--navy-3); }
.chat-widget__btn-icon { width: 27px; height: 27px; transition: opacity .2s, transform .2s; position: absolute; }
.chat-widget__btn-icon--close { opacity: 0; transform: rotate(-90deg); }
.chat-widget.is-open .chat-widget__btn-icon--chat { opacity: 0; transform: rotate(90deg); }
.chat-widget.is-open .chat-widget__btn-icon--close { opacity: 1; transform: rotate(0); }
.chat-widget__badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--navy);
  font-size: .6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.chat-widget__badge[hidden] { display: none; }

.chat-widget__popup {
  position: absolute;
  right: 74px;
  bottom: 0;
  width: 380px;
  max-width: calc(100vw - 110px);
  height: 560px;
  max-height: calc(100vh - 24px);
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 20px 60px rgba(22, 36, 59, .28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.chat-widget.is-open .chat-widget__popup { opacity: 1; visibility: visible; transform: translateX(0); }

.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem 1rem 1.1rem;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}
.chat-widget__header-info { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.chat-widget__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-widget__avatar svg { width: 24px; height: 24px; }
.chat-widget__header-name { font-size: .875rem; font-weight: 700; line-height: 1.2; }
.chat-widget__header-status {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .7188rem;
  color: rgba(255,255,255,.6);
  margin-top: .15rem;
}
.chat-widget__online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}
.chat-widget__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.chat-widget__close:hover { background: rgba(255,255,255,.12); color: #fff; }
.chat-widget__close svg { width: 18px; height: 18px; }

.chat-widget__body { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #F4F6F9; }
.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  scroll-behavior: smooth;
}

.chat-msg { display: flex; flex-direction: column; max-width: 84%; }
.chat-msg--bot { align-self: flex-start; }
.chat-msg--user { align-self: flex-end; align-items: flex-end; }
.chat-msg__bubble {
  padding: .7rem .95rem;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg--bot .chat-msg__bubble { background: #fff; color: var(--text); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(22,36,59,.08); }
.chat-msg--user .chat-msg__bubble { background: var(--yellow); color: var(--navy); border-bottom-right-radius: 4px; }
.chat-msg__time { font-size: .6875rem; color: var(--gray-light); margin-top: .25rem; padding: 0 .25rem; }

.chat-msg--typing .chat-msg__bubble { display: flex; gap: .3rem; align-items: center; padding: .85rem 1rem; }
.chat-msg--typing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-light);
  animation: chatDot 1.2s infinite ease-in-out;
}
.chat-msg--typing .dot:nth-child(2) { animation-delay: .15s; }
.chat-msg--typing .dot:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem 1rem .9rem; }
.chat-quick[hidden] { display: none; }
.chat-quick__btn {
  padding: .5rem .9rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.chat-quick__btn:hover { background: var(--yellow-soft); border-color: var(--yellow); }

.chat-widget__form {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem .8rem;
  background: #fff;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-widget__input {
  flex: 1;
  min-width: 0;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--soft);
  font-size: .875rem;
  outline: none;
  transition: border-color .15s, background .15s;
}
.chat-widget__input:focus { border-color: var(--yellow); background: #fff; }
.chat-widget__input:disabled { opacity: .55; }
.chat-widget__send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.chat-widget__send:hover { background: var(--yellow-dark); }
.chat-widget__send:disabled { opacity: .5; cursor: default; }
.chat-widget__send svg { width: 20px; height: 20px; }

.chat-widget__footer { text-align: center; padding: .55rem .8rem .65rem; background: #fff; flex-shrink: 0; }
.chat-widget__footer a { font-size: .75rem; color: var(--gray); text-decoration: underline; }
.chat-widget__footer a:hover { color: var(--navy); }

/* ===== Адаптив ===== */
@media (max-width: 1120px) {
  .nav { gap: 1.1rem; }
  .header__actions { gap: 1rem; }
  .header__phone { font-size: .8125rem; }
  .logo__name { font-size: .875rem; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .service-card img { height: 190px; }
}

@media (max-width: 1000px) {
  .header__phone { display: none; }
  .burger { display: flex; }
  .header__actions { margin-left: 0; }
  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(22,36,59,.12);
    padding: .5rem 24px 1rem;
    margin-left: 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav__link { padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: .9375rem; }
  .nav__link:last-child { border-bottom: none; }

  .about { gap: 2.5rem; }
  .why { grid-template-columns: 1fr; gap: 2.2rem; }
  .why__media { order: -1; }
  .why__media img { height: 300px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer__right { grid-column: 1 / -1; }
  .footer__socials { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .section { padding: 3.75rem 0; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about__media img { height: 320px; }
  .process { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .process__step:nth-child(2)::after { display: none; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why__media img { height: 280px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project img { height: 230px; }
  .project:last-child { display: none; }
  .reqs { grid-template-columns: 1fr; }
  .cta-band__bg { width: 100%; }
  .cta-band__bg::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(22,36,59,.88) 55%, rgba(22,36,59,.55) 100%); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .cta-band .btn { width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header__inner { min-height: 66px; }
  .nav { top: 66px; }
  .logo__icon { width: 36px; height: 36px; }
  .logo__name { font-size: .8125rem; }
  .logo__sub { font-size: .5313rem; }
  .header__actions .btn { display: none; }

  .hero { min-height: 520px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(12,21,35,.35) 0%, rgba(12,21,35,.75) 100%); }
  .hero__inner { display: flex; align-items: flex-end; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: .9375rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .section { padding: 3rem 0; }
  .section-head { margin-bottom: 1.6rem; }

  .services { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { flex-direction: row; align-items: stretch; }
  .service-card img { width: 118px; height: auto; min-height: 112px; flex-shrink: 0; }
  .service-card__body { padding: .85rem 1rem; display: flex; flex-direction: column; justify-content: center; }
  .service-card__body p { font-size: .7813rem; }

  .process { grid-template-columns: 1fr; gap: 1.9rem; }
  .process__step::after { display: none !important; }

  .why__grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .why__media img { height: 240px; }

  .projects { grid-template-columns: 1fr; }
  .project:last-child { display: block; }
  .project img { height: 240px; }

  .cta-band__inner { padding-top: 2rem; padding-bottom: 2rem; }
  .cta-band__text h2 { font-size: 1.3rem; }

  .footer__inner { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 2rem; padding-bottom: 1.8rem; }
  .footer__right { flex-direction: column; gap: 1.1rem; }
  .footer__nav { flex-wrap: wrap; padding-top: 0; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: .35rem; }

  .modal { padding: 2rem 1.25rem 1.5rem; }
  .modal__row { grid-template-columns: 1fr; }

  .chat-widget { right: 12px; }
  .chat-widget__btn { width: 54px; height: 54px; }
  .chat-widget__popup {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 76px;
    width: auto;
    max-width: none;
    height: min(540px, calc(100vh - 110px));
    border-radius: 16px;
  }
}
