: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: 1fr auto 1fr;
  align-items: start;
  column-gap: 22px;
  min-height: 74px;
  padding-top: 18px;
}

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

.header .logo {
  --logo-h: 87px;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  gap: 2px;
  width: calc(var(--logo-h) * 560 / 122);
  margin-bottom: 22px;
}

.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 {
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  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: center;
  gap: 16px;
  margin-top: 26px;
  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;
  justify-self: end;
  gap: 14px;
  margin-top: 11px;
}

.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;
  justify-content: flex-start;
  gap: 4px;
  min-height: 44px;
  padding-bottom: 8px;
}

.nav__item:first-child .nav__btn { padding-left: 0; }

.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: 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 > .container { width: calc(100% - 20px); }
  .header .logo { --logo-h: 32px; width: auto; max-width: 100%; min-width: 0; margin-bottom: 0; justify-self: stretch; }
  .header .logo img { width: auto; max-width: 100%; height: auto; max-height: 32px; }
  .header__top {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .header__calc { display: none; }
  .header__tools { flex: none; flex-wrap: nowrap; gap: 8px; margin-top: 0; }
  .header__contacts { flex-direction: row; align-items: center; gap: 8px; }
  .header__socials { gap: 4px; margin: 0; }
  .logo__tag, .header__work, .header__email { display: none; }
  .header__phone { font-size: 14px; white-space: nowrap; }
  .hsoc { width: 20px; height: 20px; }
  .hsoc--wa svg { width: 13px; height: 13px; }
  .hsoc--max svg { width: 20px; height: 20px; }
  .burger { display: block; width: 34px; height: 34px; border-radius: 10px; }
  .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; }
}

.catalog-page { padding: 36px 0 72px; }
.catalog-page h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.catalog-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #8aa0b4;
  font-size: 14px;
}
.catalog-crumbs > * { max-width: 100%; }
.catalog-crumbs a:hover { color: var(--blue); }
.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 14px;
}
.catalog-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.catalog-title h1 { margin: 0; }
.catalog-count { color: #8aa0b4; font-size: 16px; font-weight: 500; }
.catalog-page__lead { max-width: 640px; margin-top: 8px; color: #5e6d7e; }
.catalog-perks { display: flex; gap: 22px; margin: 0; }
.catalog-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 128px;
  color: #314255;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.catalog-perks span {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f3fb;
  color: var(--blue);
}
.catalog-perks svg { width: 22px; height: 22px; }
.catalog-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 600;
}
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.catalog-story {
  max-width: 860px;
  margin: 48px auto 0;
  color: #243140;
  font-size: 16px;
  line-height: 1.65;
}
.catalog-story h2 {
  margin: 28px 0 12px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
}
.catalog-story h2:first-child { margin-top: 0; }
.catalog-story h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.catalog-story p { margin: 0 0 14px; }
.catalog-story ul { margin: 0 0 14px; padding-left: 20px; }
.catalog-story li + li { margin-top: 6px; }
.catalog-story a { color: var(--blue); font-weight: 700; }
.catalog-story img {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 18px;
  border-radius: 14px;
}
.catalog-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e6eef5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 55, 96, 0.06);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.catalog-card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(1, 112, 186, 0.16);
}
.catalog-card__main {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
}
.catalog-card__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.catalog-card__photo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f7fb;
  padding: 8px;
  cursor: zoom-in;
  font: inherit;
}
.catalog-card__photo img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  object-position: center;
}
.catalog-card__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #5d7388;
  box-shadow: 0 4px 12px rgba(18, 55, 96, 0.12);
}
.catalog-card__body h3 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  transition: color 0.16s ease;
}
.catalog-card:hover .catalog-card__body h3 { color: var(--blue); }
.catalog-card__body h3 a:hover,
.catalog-back:hover { color: var(--blue-dark); }
.catalog-card__spec { display: grid; gap: 8px; margin-top: 14px; }
.catalog-card__spec li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #5d7388;
  font-size: 13px;
}
.catalog-card__spec img { width: 18px; height: 18px; }
.catalog-card__spec b { color: #243140; font-weight: 600; }
.catalog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.catalog-card__thumb {
  position: relative;
  z-index: 2;
  display: block;
  width: 72px;
  height: 52px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e6eef5;
  background: #f3f7fb;
  cursor: zoom-in;
  font: inherit;
}
.photo-view {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: rgba(14, 32, 52, 0.72);
}
.photo-view[hidden] { display: none; }
.photo-view img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 96px);
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
}
.photo-view__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #243140;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.catalog-card__thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f3f7fb; }
.catalog-card__actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
}
.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.catalog-btn img { width: 18px; height: 18px; }
.catalog-btn--fill { background: var(--blue); color: #fff; }
.catalog-btn--fill:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 14px rgba(1, 112, 186, 0.32);
  transform: translateY(-1px);
}
.catalog-btn--ghost { border: 1.5px solid var(--blue); color: var(--blue); background: #fff; }
.catalog-btn--ghost:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(1, 112, 186, 0.32);
  transform: translateY(-1px);
}
.catalog-btn--ghost:hover img { filter: brightness(0) invert(1); }
.catalog-single > img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: var(--soft);
  border-radius: 12px;
}
.catalog-spec { display: grid; gap: 6px; margin-top: 12px; }
.catalog-spec div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.catalog-spec dt { color: var(--muted); }
.catalog-spec dd { margin: 0; text-align: right; font-weight: 600; }
.catalog-card__price {
  margin-top: 12px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
}
.catalog-single {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}
.catalog-single > img { height: 280px; }
.catalog-notes {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.catalog-notes li + li { margin-top: 4px; }
.catalog-top-link { color: var(--blue); font-weight: 700; justify-self: end; }
.product {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}
.product__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 360px;
  padding: 24px;
  border: 0;
  border-radius: 18px;
  background: #f4f8fb;
  cursor: zoom-in;
}
.product__photo img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
}
.product__info h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
}
.product__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: #3d5166;
  font-size: 14px;
  font-weight: 600;
}
.product__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  margin-top: 18px;
  align-items: stretch;
}
.product__specs {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e6eef5;
  border-radius: 16px;
  overflow: hidden;
}
.product__specs li {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #5d7388;
  font-size: 14px;
}
.product__specs li + li { border-top: 1px solid #e6eef5; }
.product__specs img { width: 20px; height: 20px; }
.product__specs b { color: #243140; font-weight: 700; }
.product__mark {
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #9eb0c2;
}
.product__buy {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border: 1px solid #e6eef5;
  border-radius: 16px;
}
.product__price {
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.product__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
}
.product__btn img { width: 18px; height: 18px; }
.product__btn--fill { border: 0; background: var(--blue); color: #fff; }
.product__btn--fill img { filter: brightness(0) invert(1); }
.product__btn--fill:hover { background: var(--blue-dark); }
.product__btn--ghost { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); }
.product__btn--ghost:hover { background: #f3f8fc; }
.product__notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
.product__notes li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
  color: #5d7388;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}
.product__notes img { width: 18px; height: 18px; }
.product__perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.product__perks li {
  padding: 14px 16px;
  border: 1px solid #e6eef5;
  border-radius: 14px;
}
.product__perks b { display: block; font-size: 14px; }
.product__perks span { display: block; margin-top: 4px; color: #5d7388; font-size: 13px; }
.product-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  align-items: stretch;
}
.product-options__box {
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid #d9e3ee;
  border-radius: 8px;
}
.product-options__box h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.product-options__grid,
.product-options__grid--one {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.product-options label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #243140;
  font-size: 14px;
}
.product-options select,
.product-options input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #b7c9dc;
  border-radius: 2px;
  background: #fff;
  font-size: 14px;
}
.product-options select { color: var(--blue); }
.product-options input { color: #243140; }
.product-more { margin-top: 36px; }
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  border-bottom: 1px solid #e6eef5;
}
.product-tabs button {
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5d7388;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.product-tabs button.is-on { color: var(--blue); border-bottom-color: var(--blue); }
.product-panel { padding-top: 18px; }
.product-panel[hidden] { display: none; }
.product-panel h2 { margin-bottom: 12px; font-size: 20px; }
.product-scroll { overflow-x: auto; }
.product-spec { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.product-spec th,
.product-spec td { padding: 10px 12px; border-bottom: 1px solid #e6eef5; text-align: left; vertical-align: top; }
.product-spec th { color: #5d7388; font-size: 13px; font-weight: 600; white-space: nowrap; }
.product-spec .num { text-align: right; white-space: nowrap; }
.product-spec tfoot td { font-weight: 700; }
.product-params { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.product-params li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e6eef5;
}
.product-params span { color: #5d7388; }
.product-desc p { margin: 0 0 8px; color: #3d5166; font-size: 15px; line-height: 1.55; }
.product-gallery { margin-top: 36px; }
.product-rail-head { margin-bottom: 14px; }
.product-rail-head h2 { font-size: 22px; }
.product-rail-wrap { position: relative; }
.product-rail-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 1px solid #d5e2ee;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(20, 40, 70, 0.12);
  cursor: pointer;
}
.product-rail-btn--prev { left: -18px; }
.product-rail-btn--next { right: -18px; }
.product-rail-btn:hover { border-color: var(--blue); background: #f3f8fc; }
.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 12px;
  position: relative;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.product-rail::-webkit-scrollbar { display: none; height: 0; }
.product-rail-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 16px;
  margin-top: 14px;
}
.product-rail-bar button {
  width: 14px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d5dde6;
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}
.product-rail-bar button.is-on { width: 26px; background: var(--blue); }
.product-card {
  display: block;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #e6eef5;
  border-radius: 14px;
  background: #fff;
  color: inherit;
}
a.product-card:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(1, 112, 186, 0.12); }
.product-card img { width: 100%; height: 140px; object-fit: contain; background: #f4f8fb; }
.product-card b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: 58px;
  padding: 10px 12px 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.product-card span { display: block; padding: 0 12px 12px; color: var(--blue); font-weight: 700; }
@media (max-width: 1100px) {
  .catalog-card__main { grid-template-columns: 140px 1fr; }
  .catalog-card__photo img { height: 112px; }
  .product-options { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .catalog-head { grid-template-columns: 1fr; }
  .catalog-perks { flex-wrap: wrap; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card__main,
  .catalog-single,
  .product,
  .product__layout,
  .product__perks,
  .product-params { grid-template-columns: 1fr; }
  .product__photo { min-height: 0; }
  .product__photo img { height: 220px; }
  .product__notes li { white-space: normal; }
  .product__specs li { flex: none; }
  .product-options__grid,
  .product-options__grid--one { grid-template-columns: 1fr; }
  .product-rail-btn--prev { left: 6px; }
  .product-rail-btn--next { right: 6px; }
  .catalog-card__foot { align-items: flex-start; flex-direction: column; }
}

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