/* ===== Шрифт (Montserrat, лицензия SIL OFL 1.1 — static/fonts/OFL.txt) ===== */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Токены ===== */
:root {
  --blue: #005aa6;
  --blue-dark: #00467f;
  --blue-deep: #003866;
  --blue-soft: #e8f0f8;
  --ink: #101828;
  --text: #2b3443;
  --muted: #5d6878;
  --line: #dfe5ec;
  --bg: #ffffff;
  --soft: #f3f6f9;
  --white: #ffffff;
  --ok: #157f3b;
  --err: #c0262d;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(16, 24, 40, .10);
  --shadow-sm: 0 2px 10px rgba(16, 24, 40, .08);
  --header-h: 88px;
  --container: 1200px;
  --font: "Montserrat", "Segoe UI", Roboto, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.icon { flex-shrink: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 920px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); border-color: currentColor; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: wait; }
.round-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); background: transparent; color: var(--white);
  transition: background-color .2s, color .2s;
}
.round-btn:hover { background: var(--white); color: var(--blue); }

/* ===== Шапка ===== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: var(--blue); color: var(--white); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .18); }
.header-row { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.logo img { height: 64px; width: auto; }
.site-header .logo { justify-self: center; }
.nav-list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; background: none;
  color: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: var(--radius); white-space: nowrap;
}
.nav-link { position: relative; border-radius: 999px; padding: 10px 14px; transition: background-color .2s; }
.nav-link:hover, .has-drop.is-open > .nav-link { color: var(--white); background: rgba(255, 255, 255, .12); }
.nav-link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--white); }
.nav-link .caret { transition: transform .2s; }
.has-drop { position: relative; }
.has-drop.is-open .caret { transform: rotate(180deg); }
.drop {
  position: absolute; left: 0; top: calc(100% + 10px); background: var(--white); color: var(--text);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-drop.is-open .drop { opacity: 1; visibility: visible; transform: none; }
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.drop-small { min-width: 200px; display: grid; }
.drop-small a { padding: 10px 14px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 500; }
.drop-small a:hover { background: var(--soft); color: var(--blue); }
.drop-services { width: min(720px, 80vw); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.service-link { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.service-link:hover { background: var(--soft); }
.service-link strong { display: block; font-size: 14px; line-height: 1.3; }
.service-link small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.service-icon { color: var(--blue); width: 44px; height: 44px; display: grid; place-items: center; background: var(--blue-soft); border-radius: 10px; flex-shrink: 0; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.header-phone { color: var(--white); text-decoration: none; text-align: right; line-height: 1.25; }
.header-phone strong { display: block; font-size: 16px; font-weight: 700; }
.header-phone small { font-size: 12px; opacity: .85; }
.header-phone:hover { color: var(--white); opacity: .9; }
.lang-switch { display: flex; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 5px 9px; font-size: 12px; font-weight: 700; color: var(--white); text-decoration: none; line-height: 1.2; }
.lang-switch a:hover { background: rgba(255, 255, 255, .15); color: var(--white); }
.lang-switch a.is-current { background: var(--white); color: var(--blue); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--white); padding: 0; place-items: center; }
.mobile-menu { background: var(--blue-dark); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu-inner { padding: 12px 16px 24px; }
.mobile-title { margin: 8px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.mobile-services, .mobile-links { list-style: none; margin: 0 0 12px; padding: 0; }
.mobile-services a, .mobile-links a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; color: var(--white); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mobile-links a { font-weight: 700; }
.mobile-phone { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--white); font-size: 20px; font-weight: 700; text-decoration: none; }

@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .main-nav, .header-phone, .header-right > .round-btn { display: none; }
  .header-row { grid-template-columns: auto 1fr; }
  .site-header .logo { justify-self: start; }
  .logo img { height: 50px; }
  .burger { display: inline-grid; }
}
@media (min-width: 1101px) { .mobile-menu { display: none !important; } }
@media (max-width: 400px) { .lang-switch a { padding: 5px 7px; } }

/* ===== Секции ===== */
main { padding-top: var(--header-h); }
.section { padding: 88px 0; }
.section.is-first { padding-top: 64px; }
@media (max-width: 760px) { .section { padding: 56px 0; } .section.is-first { padding-top: 40px; } }
.section-title { text-align: center; font-size: clamp(26px, 3.4vw, 38px); color: var(--blue); margin-bottom: 18px; }
.section-title.on-dark, .on-dark { color: var(--white); }
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 36px; color: var(--muted); }
.section-lead.on-dark { color: rgba(255, 255, 255, .85); }
.title-bar { display: block; width: 48px; height: 3px; background: var(--blue); margin: 4px 0 24px; border-radius: 2px; }
.title-bar.center { margin-left: auto; margin-right: auto; }
.band-blue { background: var(--blue); color: var(--white); }
.band-soft { background: var(--soft); }
.rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 1em; }
.rich li { margin-bottom: .35em; }
.rich h2 { font-size: clamp(22px, 2.6vw, 28px); }
.rich h3 { font-size: 20px; }
.rich-on-dark, .rich-on-dark h2, .rich-on-dark h3 { color: var(--white); }
.rich-on-dark a { color: var(--white); }

/* Первый экран главной */
.hero { position: relative; min-height: min(calc(100vh - var(--header-h)), 860px); display: flex; align-items: center; color: var(--white); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 25, 50, .86) 0%, rgba(0, 25, 50, .62) 55%, rgba(0, 25, 50, .25) 100%); }
.hero-content { padding-top: 64px; padding-bottom: 96px; }
.hero-title { color: var(--white); font-size: clamp(32px, 5.4vw, 64px); font-weight: 800; text-transform: uppercase; max-width: 820px; letter-spacing: .01em; margin-bottom: 24px; }
.hero-lead { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 6px; font-size: 17px; }
.hero-list li { display: flex; gap: 10px; align-items: baseline; }
.hero-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white); flex-shrink: 0; transform: translateY(-2px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-size: 20px; font-weight: 700; text-decoration: none; }
.hero-phone:hover { color: var(--white); opacity: .85; }
.hero-down { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--white); opacity: .85; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }
@media (max-width: 640px) { .hero-list { font-size: 15px; } .hero-down { display: none; } .hero-content { padding-bottom: 56px; } }

/* Фото + карточка */
.split-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius-lg); }
.split-card { background: var(--blue); color: var(--white); padding: 56px; margin-left: -80px; border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; }
.split-card .split-title { color: var(--white); font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 8px; }
.split-card .title-bar { background: var(--white); }
.split-card .rich { margin-bottom: 32px; }
.split-light .split-card { background: var(--white); color: var(--text); }
.split-light .split-card .split-title { color: var(--ink); }
.split-light .split-card .title-bar { background: var(--blue); }
.split-light .split-grid { grid-template-columns: 1fr 1.1fr; }
.split-light .split-media { order: 2; }
.split-light .split-card { margin-left: 0; margin-right: -80px; z-index: 1; }
@media (max-width: 900px) {
  .split-grid, .split-light .split-grid { grid-template-columns: 1fr; }
  .split-card, .split-light .split-card { margin: -48px 16px 0; padding: 32px 24px; }
  .split-light .split-media { order: 0; }
}

/* Цифры */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.stat { border-top: 1px solid rgba(255, 255, 255, .45); padding-top: 18px; }
.stat-value { font-size: clamp(40px, 5vw, 60px); font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 16px; color: rgba(255, 255, 255, .9); margin: 0; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Преимущества */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 40px; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.benefit { display: flex; gap: 20px; }
.benefit h3 { font-size: 20px; margin-bottom: 4px; }
.benefit p { margin: 0; color: var(--muted); }
.benefit-icon, .icon-item-icon, .card-icon { color: var(--blue); width: 60px; height: 60px; border-radius: 14px; background: var(--blue-soft); display: grid; place-items: center; flex-shrink: 0; }
.benefits-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Клиенты: бегущая строка логотипов */
.clients { overflow: hidden; }
.marquee { display: grid; gap: 28px; margin-top: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-track { list-style: none; display: flex; align-items: center; gap: 56px; margin: 0; padding: 0 28px; }
.marquee-track img { height: 60px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track[aria-hidden], .marquee-row.reverse { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .hero-down { animation: none; }
  html { scroll-behavior: auto; }
}

/* Проекты: карусель */
.projects-head { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 32px; }
.projects-head .section-title { margin: 0; }
.carousel-nav { position: absolute; right: 0; display: flex; gap: 10px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.projects-more { text-align: center; margin-top: 36px; }
@media (max-width: 960px) { .carousel { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .carousel { grid-auto-columns: 86%; } .carousel-nav { display: none; } }

/* Карточка поста */
.post-card { background: var(--white); color: var(--text); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.post-card-title { font-size: 17px; line-height: 1.35; margin: 0; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card-title a:hover { color: var(--blue); }
.post-card-text { font-size: 14px; color: var(--muted); margin: 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
@media (max-width: 960px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 44px; }
.page-num { color: var(--muted); font-weight: 600; }
.empty { text-align: center; color: var(--muted); }

/* Формы заявки */
.lead-form { position: relative; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-fields { display: grid; gap: 16px; align-items: start; }
.inline .lead-fields { grid-template-columns: repeat(var(--cols, 3), 1fr) auto; }
.inline .lead-fields.cols-2 { --cols: 2; }
.inline .lead-submit { margin-top: 27px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input {
  width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 90, 166, .15); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13px; min-height: 0; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.lead-form.is-sent .lead-fields, .lead-form.is-sent .consent { display: none; }
.lead-form.is-sent .form-status { font-size: 18px; padding: 20px; background: #eaf6ee; border-radius: var(--radius); }
.stacked .lead-fields { grid-template-columns: 1fr; }
.on-dark .field-label, .on-dark .consent { color: rgba(255, 255, 255, .9); }
.on-dark .consent a { color: var(--white); }
.on-dark .field input { border-color: transparent; }
.on-dark .lead-submit { background: var(--white); color: var(--blue); }
.on-dark .form-status.ok { color: var(--white); }
.on-dark.is-sent .form-status { background: rgba(255, 255, 255, .15); }
@media (max-width: 860px) { .inline .lead-fields { grid-template-columns: 1fr; } .inline .lead-submit { margin-top: 4px; } }

/* Первый экран услуги */
.cover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cover-title { font-size: clamp(30px, 4vw, 46px); color: var(--blue); margin-bottom: 8px; }
.cover-text .rich { margin-bottom: 32px; font-size: 16.5px; }
.cover-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 900px) { .cover-grid { grid-template-columns: 1fr; gap: 32px; } .cover-media { order: -1; } }

/* Выделенная карточка */
.highlight-card { max-width: 860px; margin: 0 auto; background: var(--blue); color: var(--white); padding: 52px 56px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.highlight-card h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); }
@media (max-width: 640px) { .highlight-card { padding: 32px 22px; } }

/* Текстовая полоса */
.text-band .rich { max-width: 920px; font-size: 16.5px; }
.text-band .rich h2 { margin-bottom: .8em; }

/* Список с галочками */
.check-list { list-style: none; margin: 40px auto 0; padding: 0; display: grid; gap: 28px; max-width: 720px; }
.check-list li { display: flex; gap: 20px; align-items: flex-start; }
.check-mark { color: var(--blue); width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.check-list h3 { font-size: 19px; margin-bottom: 4px; }
.check-list p { margin: 0; color: var(--muted); }

/* Сетка с иконками */
.icon-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.icon-item { display: flex; gap: 20px; }
.icon-item h3 { font-size: 18px; margin-bottom: 4px; }
.icon-item p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .icon-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Нумерованный список */
.numbered { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.numbered li { position: relative; padding: 28px 28px 30px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); }
.numbered .num { display: block; font-size: 44px; font-weight: 800; line-height: 1; color: var(--blue); opacity: .18; margin-bottom: 14px; }
.numbered li { isolation: isolate; }
.numbered h3 { font-size: 19px; color: var(--blue); margin-bottom: 8px; }
.numbered p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .numbered { grid-template-columns: 1fr; gap: 24px; } }

/* Карточки */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); padding: 32px 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card .card-icon { margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Карта */
.map-section { position: relative; padding: 0; min-height: 560px; display: flex; align-items: center; background: #dfe7ee; }
.map { position: absolute; inset: 0; z-index: 0; }
.map-overlay { position: relative; z-index: 1; pointer-events: none; padding-top: 40px; padding-bottom: 40px; }
.map-card { pointer-events: auto; max-width: 420px; background: var(--white); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.map-card h2 { color: var(--blue); font-size: 26px; }
.map-places { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.map-places li { font-size: 13px; padding: 3px 10px; background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; }
.map-pin { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.leaflet-tooltip { font-family: var(--font); font-weight: 600; }
@media (max-width: 760px) {
  .map-section { display: block; min-height: 0; }
  .map { position: relative; height: 380px; }
  .map-overlay { padding: 0 16px; margin-top: -40px; padding-bottom: 40px; }
  .map-card { padding: 24px; }
}

/* Видео */
.video-cover { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; isolation: isolate; }
.video-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 20, 40, .82), rgba(0, 20, 40, .15) 70%); z-index: -1; }
.video-content { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 56px; }
.video-content h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 40px); max-width: 640px; margin: 0; }
.play-btn { width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--white); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 10px rgba(255, 255, 255, .25); transition: transform .2s; }
.play-btn:hover { transform: scale(1.06); }
.play-btn .icon { margin-left: 4px; }

/* Анкета водителя */
.driver-grid { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.driver-form { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); padding: 52px; }
.driver-form h2 { color: var(--white); font-size: 30px; margin-bottom: 24px; }
.driver-faq { background: var(--soft); padding: 52px; display: grid; gap: 16px; align-content: start; }
.faq-item { background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.faq-item h3 { color: var(--blue); font-size: 18px; margin-bottom: 6px; }
.faq-item .rich { font-size: 15px; }
.on-dark .consent input { accent-color: var(--white); }
@media (max-width: 860px) { .driver-grid { grid-template-columns: 1fr; } .driver-form, .driver-faq { padding: 32px 22px; } }

/* Контакты */
.contacts .section-title { margin-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 24px; background: var(--soft); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: background-color .2s; }
.contact-card:hover { background: var(--blue-soft); color: var(--ink); }
.contact-card small { display: block; color: var(--muted); font-size: 13px; }
.contact-card strong { display: block; font-size: 17px; word-break: break-word; }
.contact-icon { color: var(--blue); }
.requisites { margin-top: 48px; padding: 36px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); }
.requisites h2 { font-size: 24px; color: var(--blue); }
.requisites dl { margin: 0; display: grid; gap: 12px; }
.requisites dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } .requisites { padding: 24px 18px; } .requisites dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* Пост */
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-bottom: 24px; }
.post-title { font-size: clamp(26px, 3.6vw, 40px); margin-top: 10px; }
/* Галерея проекта: листалка с миниатюрами */
.pgallery { max-width: 1040px; margin: 32px auto 48px; }
.pg-main { position: relative; border-radius: 18px; overflow: hidden; background: #0c1c2e; box-shadow: var(--shadow); }
.pg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pg-track::-webkit-scrollbar { display: none; }
.pg-slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 10; scroll-snap-align: start; overflow: hidden; display: block; cursor: zoom-in; }
.pg-slide::before { content: ""; position: absolute; inset: -40px; background: var(--bg) center / cover; filter: blur(28px) brightness(.55); }
.pg-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.pg-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: background-color .2s, opacity .2s, transform .2s;
}
.pg-nav:hover { background: var(--white); color: var(--blue); transform: translateY(-50%) scale(1.06); }
.pg-nav[disabled] { opacity: 0; pointer-events: none; }
.pg-prev { left: 16px; }
.pg-next { right: 16px; }
.pg-count { position: absolute; right: 16px; bottom: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: var(--white); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pg-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.pg-thumb { flex: 0 0 116px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--soft); opacity: .55; outline: 3px solid transparent; outline-offset: -3px; transition: opacity .2s, outline-color .2s; }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg-thumb:hover { opacity: .85; }
.pg-thumb.is-active { opacity: 1; outline-color: var(--blue); }
@media (max-width: 760px) {
  .pgallery { margin: 20px -16px 36px; }
  .pg-main { border-radius: 0; }
  .pg-slide { aspect-ratio: 4 / 3; }
  .pg-nav { width: 40px; height: 40px; }
  .pg-prev { left: 10px; }
  .pg-next { right: 10px; }
  .pg-thumbs { padding: 2px 16px 6px; }
  .pg-thumb { flex-basis: 78px; border-radius: 10px; }
}
.post-body { font-size: 17px; }
.post-body img { border-radius: var(--radius); margin: 1em 0; }
.post-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); color: var(--ink); font-style: italic; }
.post-cta { margin-top: 48px; padding: 28px 32px; background: var(--blue-soft); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.post-cta p { margin: 0; color: var(--ink); max-width: 520px; }
.draft-badge { display: inline-block; background: #fff4d6; color: #7a5300; padding: 4px 10px; border-radius: var(--radius); font-size: 13px; font-weight: 600; }

/* Юридические страницы */
.legal-text { font-size: 15.5px; }
.legal-text h1 { font-size: clamp(26px, 3.2vw, 36px); color: var(--blue); }
.legal-text h2 { font-size: 20px; margin-top: 1.6em; }
.legal-date, .legal-note { color: var(--muted); font-size: 14px; }
.legal-note { padding: 12px 16px; background: var(--soft); border-radius: var(--radius); }

/* 404 */
.not-found { text-align: center; min-height: 50vh; }
.big-404 { font-size: 120px; font-weight: 800; color: var(--blue-soft); line-height: 1; margin: 0; }

/* Подвал */
.site-footer { background: var(--blue); color: var(--white); padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr 1fr; gap: 32px; }
.footer-brand .logo img { height: 70px; }
.socials { list-style: none; display: flex; gap: 10px; margin: 20px 0 14px; padding: 0; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--white); border: 1.5px solid rgba(255, 255, 255, .5); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--white); color: var(--blue); }
.copyright { opacity: .8; font-size: 13px; margin: 0; }
.footer-title { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .footer-legal a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Всплывающие окна */
dialog { border: 0; padding: 0; color: var(--text); }
dialog::backdrop { background: rgba(5, 15, 30, .72); }
.popup { width: min(880px, calc(100% - 24px)); max-height: calc(100% - 24px); border-radius: var(--radius-lg); overflow: auto; }
.popup[open] { display: grid; grid-template-columns: .9fr 1.1fr; animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.popup-media { background-size: cover; background-position: center; min-height: 100%; }
.popup-body { position: relative; padding: 44px 40px 32px; }
.popup-body h2 { color: var(--blue); font-size: 28px; margin-bottom: 8px; padding-right: 32px; }
.popup-text { color: var(--muted); margin-bottom: 24px; }
.popup-phone { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: var(--muted); }
.popup-phone a { font-weight: 700; text-decoration: none; }
.popup-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); display: grid; place-items: center; z-index: 2; }
.popup-close:hover { background: var(--line); }
.popup .lead-submit { width: 100%; }
@media (max-width: 700px) { .popup[open] { grid-template-columns: 1fr; } .popup-media { display: none; } .popup-body { padding: 36px 20px 24px; } }
.popup-video { width: min(1100px, calc(100% - 24px)); background: #000; overflow: visible; }
.popup-video[open] { display: block; }
.popup-video .popup-close { top: -48px; right: 0; background: rgba(255, 255, 255, .9); }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(5, 10, 18, .96); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox figure { margin: 0; height: 100vh; display: grid; place-items: center; padding: 56px 8px; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: 14px; margin-top: 10px; }
.lightbox .popup-close { background: rgba(255, 255, 255, .12); color: var(--white); }
.lb-nav { width: 56px; height: 56px; margin: 0 12px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255, 255, 255, .25); }
@media (max-width: 640px) { .lb-nav { position: absolute; bottom: 16px; margin: 0; } .lb-prev { left: 16px; } .lb-next { right: 16px; } .lightbox[open] { grid-template-columns: 1fr; } }

/* Cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-left: auto; background: var(--white); padding: 20px 22px; border-radius: var(--radius-lg); box-shadow: 0 10px 40px rgba(0, 0, 0, .2); font-size: 14px; }
.cookie p { margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

body.no-scroll { overflow: hidden; }
