:root {
  --ink: #14181f;
  --graphite: #1b212b;
  --panel: #242b36;
  --blue: #1f6fe5;
  --blue-dark: #1558b8;
  --paper: #f4f6f8;
  --white: #fff;
  --line: #d7dee8;
  --muted: #5c6775;
  --header-h: 88px;
  --shadow: 0 18px 40px rgba(20, 24, 31, 0.12);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
body.nav-lock,
body.modal-lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  background: rgba(20, 24, 31, 0.96);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header.is-scrolled { background: #10141b; }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1440px, calc(100% - 16px));
  margin: 0 auto;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 72px; width: auto; }

.nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav a, .nav-drop > button {
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 8px;
  font-size: 0.76rem;
  font-weight: 650;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover, .nav-drop > button:hover, .nav a.is-active { color: #8eb7ff; }
.nav-drop { position: relative; }
.nav-drop__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
}
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { display: grid; }
.nav-drop__menu a { color: var(--ink); padding: 9px 10px; }
.nav-drop__menu a:hover { background: #eef4ff; color: var(--blue-dark); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
  margin: 0 auto;
}
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

body { padding-top: var(--header-h); }
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 80px) 0 88px;
  color: #fff;
  background: #2a3038 url("img/hero-main.jpg?v=6") center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 32, 40, 0.28) 0%, rgba(26, 32, 40, 0.12) 38%, rgba(26, 32, 40, 0.78) 100%);
}
.hero__panel {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: min(42%, 520px);
  height: 34%;
  background: rgba(42, 48, 56, 0.92);
  clip-path: polygon(0 42%, 72% 0, 100% 28%, 100% 100%, 0 100%);
}
.hero__panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 100%;
  background: var(--blue);
}
.hero .wrap { position: relative; z-index: 2; }
.kicker {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 14ch; }
.hero .lede { max-width: 46ch; margin-top: 18px; font-size: 1.12rem; color: #e6ebf2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero {
  background: var(--graphite);
  color: #fff;
  padding: 54px 0 42px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 18ch; }
.page-hero .lede { margin-top: 14px; max-width: 62ch; color: #d5dbe3; }
.rule { width: 72px; height: 4px; background: var(--blue); margin: 16px 0 0; border: 0; }

.section { padding: 72px 0; }
.section--white { background: #fff; }
.section--ink { background: var(--graphite); color: #fff; }
.section__head { display: grid; gap: 12px; margin-bottom: 28px; max-width: 760px; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.lede { color: var(--muted); }
.section--ink .lede, .page-hero .lede { color: #d5dbe3; }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack { display: grid; gap: 16px; }
.prose { display: grid; gap: 14px; font-size: 1.02rem; }
.prose strong { font-weight: 750; }

.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.photo-frame { border-radius: 16px; overflow: hidden; background: #d7dee6; min-height: 240px; }
.about-hero-photo { border-radius: 18px; overflow: hidden; margin-bottom: 28px; min-height: 280px; }
.about-hero-photo img { width: 100%; height: 360px; object-fit: cover; display: block; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.about-stats article {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.about-stats strong { display: block; font-size: 1.35rem; color: var(--blue-dark); font-weight: 800; margin-bottom: 6px; }
.about-stats span { color: var(--muted); font-size: 0.9rem; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.video-frame { border-radius: 16px; overflow: hidden; background: #12161c; }
.video-frame video { width: 100%; display: block; max-height: 640px; object-fit: cover; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.advantage-list { display: grid; gap: 12px; max-width: 860px; }
.advantage-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 18px;
  align-items: start;
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--blue);
}
.advantage-list span { color: var(--blue); font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.advantage-list h3 { font-size: 1.15rem; margin-bottom: 6px; }
.advantage-list p { color: var(--muted); }
.card, .offer, .license, .news, .project, .type {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.card, .offer { padding: 22px; }
.card h3, .offer h3, .type h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p, .offer p, .type p { color: var(--muted); }
.index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.index--dark { background: var(--ink); }

.bullets { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.bullets li + li { margin-top: 6px; }

.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer { border-top: 4px solid var(--blue); }
.offer a { color: var(--blue); font-weight: 800; text-decoration: none; }
.more-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
}
.more-link:hover { color: var(--blue-dark); }

.type { overflow: hidden; }
.type img { width: 100%; height: 280px; object-fit: contain; background: #f7f8fa; margin: 16px 0; border-radius: 12px; }
.type__body { padding: 22px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 14px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 58%; color: var(--muted); font-weight: 650; }

.project { overflow: hidden; }
.project img { width: 100%; height: 320px; object-fit: cover; object-position: center; background: #1b212b; display: block; }
.project__body { padding: 18px 18px 22px; }
.project h3 { font-size: 1.12rem; margin-bottom: 8px; }
.project p { color: var(--muted); }
.city { margin: 28px 0 14px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-dark); font-weight: 800; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-grid img { width: 100%; height: 320px; object-fit: cover; object-position: center; background: #1b212b; display: block; }
.clients-wall {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
.clients-wall img { width: 100%; height: auto; object-fit: contain; margin: 0 auto; }
.toc { display: grid; margin-top: 36px; max-width: 720px; }
.toc a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; font-weight: 750; }
.toc a span { color: #8eb7ff; }
.page-hero--photo { background: #12161c url("img/hero-back.jpg") center/cover no-repeat; position: relative; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,16,22,.88), rgba(12,16,22,.45)); }
.page-hero--photo .wrap { position: relative; z-index: 1; }
dl.specs { display: grid; margin-top: 14px; }
dl.specs div { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
dl.specs dt { color: var(--muted); }
dl.specs dd { margin: 0; font-weight: 750; }
.offer h2, .prose h2, .prose h3 { font-size: 1.35rem; }
.prose ul { margin: 0; padding-left: 18px; }
.type { display: grid; grid-template-columns: .85fr 1.15fr; }

.licenses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.license {
  min-height: 210px;
  padding: 20px 20px 16px;
  border-left: 6px solid var(--blue);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(#e7edf5 1px, transparent 1px) 0 0 / 100% 28px,
    #fff;
}
.license__index { display: flex; justify-content: space-between; font-weight: 800; letter-spacing: 0.06em; }
.license h3 { margin: 28px 0 8px; }
.license p { color: var(--muted); }
.license__org { margin-top: auto; padding-top: 16px; font-size: 0.86rem; font-weight: 700; }

.news { padding: 28px; display: grid; gap: 12px; }
.news h2 { font-size: 1.7rem; }
.cta-row, .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}
.qr {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.qr img { width: 180px; height: 180px; }
.qr a { color: var(--blue-dark); font-weight: 750; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cta-band .btn--line { border-color: transparent; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 650; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.consent input { margin-top: 4px; }
.consent a { color: var(--blue-dark); }
.form-error { color: #9d1c1c; }
.form-success { color: #146c43; }
.section--ink .field span, .section--ink .consent { color: #d5dbe3; }

.contacts {
  min-height: calc(100vh - var(--header-h));
  background: #12161c center/cover no-repeat;
  color: #fff;
  position: relative;
}
.contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 27, 0.55), rgba(16, 20, 27, 0.88));
}
.contacts .wrap { position: relative; z-index: 1; padding: 64px 0 48px; }
.contacts h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.contact-grid h2 { font-size: 1rem; color: #8eb7ff; margin-bottom: 8px; }
.contact-grid a { color: #fff; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: 18px; margin-top: 28px; background: #0e1218; }

.footer { background: #10141b; color: #c5ced8; padding: 36px 0 22px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.footer a { color: #fff; text-decoration: none; }
.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.88rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer__legal a { color: #c5ced8; }

.cookie-bar {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: #10141b;
  color: #e8edf3;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.cookie-bar.is-open { display: flex; }
.cookie-bar p { margin: 0; max-width: 720px; font-size: 0.92rem; line-height: 1.45; }
.cookie-bar a { color: #8eb7ff; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-wait { margin-top: 28px; padding: 22px; border-radius: 18px; background: #0e1218; color: #d5dbe3; }

.modal { position: fixed; inset: 0; z-index: 50; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, .62); }
.modal__dialog {
  position: relative;
  width: min(520px, calc(100% - 28px));
  margin: 8vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
}
.modal__close { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; }
.modal__topic { color: var(--blue-dark); font-weight: 750; margin: 6px 0 14px; }

@media (max-width: 1320px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: fixed;
    z-index: 40;
    inset: var(--header-h) 0 0 0;
    background: #10141b;
    padding: 12px 18px 28px;
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav-drop > button { text-align: left; font-size: 1.05rem; padding: 12px 8px; white-space: normal; }
  .nav-drop__menu { position: static; display: none; box-shadow: none; background: transparent; padding: 0 0 0 10px; }
  .nav-drop.is-open .nav-drop__menu { display: grid; }
  .nav-drop__menu a { color: #fff; }
  .grid-2, .grid-3, .grid-4, .cards, .licenses, .offer-grid, .contact-grid, .footer__grid, .qr, .fields, .type, .project-grid { grid-template-columns: 1fr; }
  .cta-band, .footer__bottom { flex-direction: column; align-items: flex-start; }
  .logo img { height: 64px; }
  .hero__panel { width: 88%; height: 52%; }
  .project-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-hero-photo img { height: 240px; }
}
