:root {
  --blue: #0170ba;
  --blue-dark: #015f9e;
  --blue-deep: #01497a;
  --ink: #1c2836;
  --muted: #5e6d7e;
  --line: #e5edf5;
  --soft: #f5f8fb;
  --card: #ffffff;
  --orange: #f15a24;
  --wa: #25d366;
  --tg: #5b4bdb;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(18, 55, 96, 0.08);
  --container: 1180px;
  --header: 118px;
  --font: "Roboto", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
}

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

button, input { font: inherit; }

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

button { cursor: pointer; }

ul { margin: 0; padding: 0; list-style: none; }

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus { top: 12px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(16, 42, 74, 0.06);
}

.header > .container {
  width: min(1400px, calc(100% - 40px));
}

.header__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
  min-height: 74px;
  padding-top: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header .logo {
  --logo-h: 87px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.logo img { height: 62px; width: auto; }
.header .logo img { height: var(--logo-h); }

.logo__tag {
  display: block;
  max-width: 180px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.header .logo__tag {
  margin-left: 0;
  max-width: none;
  color: #0170BA;
  font-family: "Play", "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.header__calc {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
  color: #6b8094;
}

.header__calc-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.header__calc-arrow {
  flex: none;
  color: #8ea2b4;
}

.header__calc-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue);
}

.header__calc-icons svg {
  width: 36px;
  height: 36px;
  flex: none;
  fill: currentColor;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
}

.icon-btn:hover { background: var(--soft); }

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: "Play", "Roboto", sans-serif;
  line-height: 1.2;
}

.header__work {
  color: var(--blue);
  font-size: 14px;
}

.header__phone {
  color: var(--blue);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
}

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

.header__socials {
  display: flex;
  gap: 10px;
  margin: 4px 0 2px;
}

.hsoc {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.hsoc svg { display: block; }

.hsoc--wa {
  background: #25d366;
  color: #fff;
}

.hsoc--wa svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.hsoc--max { color: #8931d9; }

.hsoc--max svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.header__email {
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
}

.header__email:hover { color: var(--blue-dark); }

.linkish {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}

.linkish:hover { color: var(--blue); }

.soc {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
}

.soc--wa { background: var(--wa); }
.soc--tg { background: var(--tg); }
.soc:hover { transform: translateY(-1px); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding-bottom: 8px;
}

.nav__item { position: relative; }

.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #314255;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav__btn svg { opacity: 0.7; }

.nav__btn:hover,
.nav__item.is-open .nav__btn,
.nav__item:hover .nav__btn { color: var(--blue); background: #f3f8fc; }

.nav__drop {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 42, 74, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.16s ease;
}

.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop,
.nav__item.is-open .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__drop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.nav__drop a:hover { background: var(--soft); color: var(--blue); }

.nav__drop img { width: 28px; height: 28px; object-fit: contain; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  background: #d9d3c8;
  overflow: hidden;
}

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

.hero__copies { display: none; }

.hero__card .checks { gap: 8px; margin-top: 16px; }

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

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

.hero__card {
  position: relative;
  z-index: 2;
  width: 30%;
  margin-left: 20%;
  min-height: 560px;
  padding: 58px 56px 52px max(28px, 2vw);
  background: rgba(1, 112, 186, 0.72);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.hero__card h1 {
  max-width: 100%;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__card .checks li {
  max-width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.checks { margin-top: 26px; display: grid; gap: 12px; }

.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  max-width: 390px;
  font-size: 15px;
  line-height: 1.35;
}

.checks svg { margin-top: 1px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.15s ease;
}

.btn--white { margin-top: 28px; background: #fff; color: var(--blue); }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--wide { min-width: 148px; }

.hero__photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__btn {
  position: absolute;
  top: 42%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(16, 42, 74, 0.16);
  pointer-events: auto;
}

.hero__btn--prev { left: 18px; }
.hero__btn--next { right: 28px; }

.hero__dots {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
}

.hero__dots button.is-on { width: 22px; background: #fff; }

.hero__slogan {
  position: absolute;
  right: 6%;
  bottom: 14%;
  max-width: 340px;
  color: #fff;
  font-family: "Marck Script", cursive;
  font-weight: 400;
  font-size: 54px;
  line-height: 1.05;
  text-align: right;
  text-shadow: 0 2px 12px rgba(40, 30, 10, 0.28);
}

.steps-wrap { background: #fff; }

.steps {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  min-height: 58px;
  padding-right: 6vw;
}

.steps li {
  display: flex;
  align-items: center;
  color: #6b7c8e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.steps li + li::before {
  content: "";
  width: 1px;
  height: 16px;
  margin: 0 22px;
  background: #d5dee8;
}

/* Directions */
.section { padding: 72px 0; }
.section--tight { padding-top: 36px; }

.directions {
  width: min(1420px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: start;
}

.directions h2,
.section h2 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.directions__intro p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.directions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dir-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 12px 12px 56px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.dir-card:hover {
  box-shadow: 0 16px 36px rgba(18, 55, 96, 0.16);
}

.dir-card img {
  height: 168px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.dir-card h3 {
  margin: 16px 12px 8px;
  font-size: 20px;
  line-height: 1.25;
}

.dir-card ul {
  margin: 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.dir-card li + li { margin-top: 2px; }

.dir-card li a {
  display: inline-block;
  white-space: nowrap;
  color: inherit;
}

.dir-card li a:hover { color: var(--blue); }

.round-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.round-link:hover { background: var(--blue-dark); }

/* Lead */
.lead {
  background:
    linear-gradient(90deg, rgba(1, 90, 158, 0.28), rgba(1, 112, 186, 0.05) 46%, transparent 62%),
    url("../images/background-form.png") center right / cover no-repeat;
  color: #fff;
}

.lead__grid {
  display: grid;
  grid-template-columns: 0.9fr 0.8fr 1fr;
  gap: 28px;
  align-items: center;
  min-height: 280px;
  padding: 42px 0;
}

.lead h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lead__text { max-width: 420px; margin-top: 16px; color: rgba(255, 255, 255, 0.92); }

.lead form { display: grid; gap: 10px; max-width: 320px; }

.lead input[type="text"],
.lead input[type="email"],
.lead input[type="tel"],
.modal input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  background: transparent;
  color: #fff;
}

.lead input::placeholder { color: rgba(255, 255, 255, 0.85); }

.lead__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.3;
}

.consent input { margin-top: 2px; accent-color: #fff; }

.form-note { min-height: 18px; font-size: 13px; }
.form-note.is-error { color: #ffe1a8; }
.modal .form-note.is-error { color: #b45309; }

.form-success {
  display: none;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.form-success.is-on { display: block; }
.lead.is-sent form { display: none; }

/* Advantages */
.advantages {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 28px;
  align-items: center;
}

.advantages h2 { margin-bottom: 26px; }

.adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
}

.adv {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
}

.adv h3 { font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
.adv p { color: var(--muted); font-size: 14px; }

.adv__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
}

.adv__icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.idea-card {
  position: relative;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #d7e3ef url("../images/background-banner2.png") center / cover no-repeat;
}

.idea-card__label {
  position: absolute;
  left: 22px;
  top: 28px;
  max-width: 180px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.idea-card__label::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 14px;
  background: #fff;
}

/* Objects */
.objects { background: #fff; }

.obj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.obj-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 12px;
  align-items: start;
  min-height: 148px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: #f7fafc;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.obj-card:hover {
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 55, 96, 0.14);
  transform: translateY(-2px);
}

.obj-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  grid-row: 1 / span 2;
}

.obj-card h3 { font-size: 16px; line-height: 1.3; }
.obj-card p { color: var(--muted); font-size: 13.5px; }

.obj-card .text-link {
  grid-column: 2;
  justify-self: end;
  color: var(--blue);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.text-link:hover { gap: 10px; }

/* Solutions */
.solutions h2 { margin-bottom: 28px; }

.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.sol h3 {
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.3;
}

.sol__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: center;
}

.sol__body img { width: 100%; height: auto; }

.legend { display: grid; gap: 7px; }

.legend li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  color: #3e4d5e;
  font-size: 13.5px;
}

.legend span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.crane {
  display: grid;
  grid-template-columns: 1.1fr 1.15fr 0.8fr;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  padding: 28px 32px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, #f7fafc 0%, rgba(247, 250, 252, 0.88) 34%, rgba(247, 250, 252, 0.2) 58%, rgba(247, 250, 252, 0.92) 78%),
    url("../images/background-banner3.png") 62% center / cover no-repeat;
}

.crane h3 {
  max-width: 420px;
  color: var(--blue-deep);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.crane .btn { margin-top: 22px; }

.crane__list { display: grid; gap: 14px; justify-self: end; }

.crane__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  color: #314255;
  font-weight: 700;
  font-size: 14.5px;
}

/* Projects */
.projects__head,
.news__head,
.clients {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carousel { position: relative; margin-top: 22px; }

.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  min-width: 0;
  cursor: grab;
}

.carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }

.carousel__track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.project {
  flex: 0 0 auto;
  width: calc((100% - 36px) / 3);
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.project img {
  width: 100%;
  height: 210px;
  user-select: none;
  -webkit-user-drag: none;
  object-fit: cover;
  border-radius: 16px;
  background: var(--soft);
}

.project span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.carousel__btn {
  position: absolute;
  top: 86px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(16, 42, 74, 0.12);
}

.carousel__btn--prev { left: -18px; }
.carousel__btn--next { right: -18px; }
.carousel__btn:disabled { opacity: 0.4; cursor: default; }

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.pager button {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: #d7e0ea;
}

.pager button.is-on { width: 42px; background: var(--blue); }

/* News */
.news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.news-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.news-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.news-card time {
  color: var(--muted);
  font-size: 13px;
}

.news-card h3 {
  margin: 6px 0 8px;
  color: var(--blue-deep);
  font-size: 18px;
  line-height: 1.3;
}

.news-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

/* Clients */
.clients-band {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.clients__label {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
}

.clients__viewport { overflow: hidden; flex: 1; }

.clients__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.clients.is-expanded .clients__track {
  width: auto;
  flex-wrap: wrap;
  animation: none;
}

.clients__viewport.is-expanded { overflow: visible; }

.clients__track img {
  height: 46px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(0.2);
}

.clients__track img:hover { filter: none; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer */
.footer {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(1, 92, 160, 0.2), rgba(1, 112, 186, 0.05)),
    url("../images/background-footer.png") center / cover no-repeat;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.8fr 1.15fr 0.85fr;
  gap: 24px;
  padding: 42px 0 36px;
}

.footer .logo img { height: 42px; }

.footer__tag,
.footer__note,
.footer a { color: rgba(255, 255, 255, 0.88); }

.footer__tag { margin-top: 10px; font-size: 14px; }
.footer__note { margin-top: 18px; max-width: 260px; font-size: 12px; line-height: 1.4; }

.footer h3 { margin-bottom: 10px; font-size: 15px; }
.footer li + li { margin-top: 6px; }
.footer a:hover { color: #fff; }

.footer__contacts { display: grid; gap: 8px; align-content: start; }
.footer__contacts strong { font-size: 20px; }

.footer__soc { display: flex; gap: 8px; margin-top: 8px; }

.footer__slogan {
  align-self: center;
  justify-self: end;
  max-width: 280px;
  font-family: "Marck Script", cursive;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.05;
  text-align: right;
}

.footer__slogan::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 12px 0 0 auto;
  background: rgba(255, 255, 255, 0.7);
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 32, 52, 0.46);
}

.overlay.is-on { display: flex; }

.modal {
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.modal--wide { width: min(880px, 100%); }

.modal h2 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 8px; }
.modal p { color: var(--muted); margin-bottom: 12px; }

.modal__close {
  float: right;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
}

.modal form { display: grid; gap: 10px; margin-top: 14px; }

.modal input {
  border: 1px solid #d5e0ea;
  background: #fff;
  color: var(--ink);
}

.modal .consent { color: var(--muted); }

.modal .form-success { background: #eef7ff; color: var(--blue-deep); }

.search-list { display: grid; gap: 6px; margin-top: 14px; }
.search-list a { padding: 10px 12px; border-radius: 10px; background: var(--soft); font-weight: 700; }
.search-list a:hover { background: #e7f3fb; color: var(--blue); }

.lightbox img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0e2236;
}

.article-body p { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clients__track, .carousel__track, .hero__slide { animation: none; transition: none; }
}

@media (max-width: 1280px) {
  .header__calc { display: none; }
}

@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .hero__card {
    width: 100%;
    margin-left: 0;
    min-height: 0;
    clip-path: none;
    padding: 36px 20px 32px;
    background: var(--blue);
  }
  .hero__photo {
    position: relative;
    min-height: 280px;
  }
  .hero__slides {
    top: auto;
    bottom: 0;
    height: 280px;
  }
  .hero__btn--prev { left: 12px; }
  .hero__btn--next { right: 12px; }
  .hero__slogan { font-size: 42px; }
  .directions, .advantages, .sol-grid, .news__grid, .lead__grid, .footer__grid, .crane {
    grid-template-columns: 1fr;
  }
  .lead__grid { min-height: 0; }
  .crane__list { justify-self: start; }
  .footer__slogan { justify-self: start; text-align: left; }
  .footer__slogan::after { margin-left: 0; }
  .obj-grid { grid-template-columns: 1fr 1fr; }
  .project { width: calc((100% - 18px) / 2); }
  .directions__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header .logo { --logo-h: 44px; }
  .logo__tag, .header__work, .header__email { display: none; }
  .header__phone { font-size: 16px; }
  .hsoc, .hsoc--max svg { width: 32px; height: 32px; }
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav__drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    padding-left: 12px;
  }
  .nav__item.is-open .nav__drop { display: block; }
  .steps { justify-content: flex-start; flex-wrap: wrap; gap: 8px 0; padding: 8px 0 18px; }
  .news-card { grid-template-columns: 1fr; }
  .sol__body { grid-template-columns: 1fr; }
  .carousel__btn--prev { left: 6px; }
  .carousel__btn--next { right: 6px; }
  .clients { flex-wrap: wrap; }
  .header__phone strong { font-size: 15px; }
}

@media (max-width: 720px) {
  .dir-card li a { white-space: normal; }
}

@media (max-width: 640px) {
  .obj-grid, .adv-grid { grid-template-columns: 1fr; }
  .project { width: 100%; }
  .hero__card h1, .directions h2, .section h2, .lead h2 { font-size: 28px; }
  .lead__row { flex-wrap: wrap; }
  .header__phone .linkish { display: none; }
  .header__phone strong { font-size: 14px; white-space: nowrap; }
  .header__tools { gap: 8px; }
}

body.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}
