/* ===== Шрифт ===== */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic.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-weight: 300 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.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 {
  --navy: #0b2a5e;
  --green: #3a8a3c;
  --navy-deep: #071c42;
  --green-light: #7cc04f;
  --ink: #14284a;
  --muted: #5a6a82;
  --line: #e2e9f1;
  --tint: #f3f7fb;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(11, 42, 94, .12);
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --navy-deep: color-mix(in srgb, var(--navy) 78%, #000);
    --green-light: color-mix(in srgb, var(--green) 62%, #d8f26a);
    --ink: color-mix(in srgb, var(--navy) 88%, #222);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.ico { width: 24px; height: 24px; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); font-size: 14px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 28px; border-radius: 12px;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn .ico { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-navy { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #fff; box-shadow: 0 8px 20px rgba(11, 42, 94, .28); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: rgba(255, 255, 255, .55); }
.btn-outline:hover { background: #fff; }
.btn-grad { background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 35%, var(--green) 100%); color: #fff; box-shadow: 0 8px 20px rgba(11, 42, 94, .22); }
.btn-sm { min-height: 40px; padding: 9px 24px; border-radius: 999px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--navy); transition: background-color .2s;
}
.icon-btn:hover { background: rgba(11, 42, 94, .08); }

/* ===== Шапка ===== */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .25s, box-shadow .25s; }
.header.scrolled { background: rgba(255, 255, 255, .93); box-shadow: 0 4px 24px rgba(11, 42, 94, .1); backdrop-filter: blur(10px); }
.header-in { display: flex; align-items: center; gap: 24px; height: 84px; transition: height .25s; }
.header.scrolled .header-in { height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--navy); flex: none; }
.brand-badge {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--navy), 0 6px 16px rgba(11, 42, 94, .25);
  transition: width .25s, height .25s;
}
.brand-badge img { width: 68%; height: auto; }
.header.scrolled .brand-badge { width: 46px; height: 46px; }
.brand-name {
  position: relative; font-size: 22px; font-weight: 400; letter-spacing: .01em; line-height: 1.2; padding-bottom: 5px; white-space: nowrap;
}
.brand-name b { font-weight: 800; }
.brand-name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--green) 70%, transparent);
}
.brand-light { color: #fff; }
.brand-light .brand-badge { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.brand-light .brand-name::after { background: linear-gradient(90deg, #fff, var(--green-light) 70%, transparent); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); margin-left: auto; }
.nav a { position: relative; font-size: 14px; font-weight: 500; color: var(--navy); padding: 8px 0; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }
.header-act { display: flex; align-items: center; gap: 10px; margin-left: clamp(8px, 3vw, 40px); }

/* ===== Боковое меню ===== */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-bg { position: absolute; inset: 0; background: rgba(7, 28, 66, .5); backdrop-filter: blur(3px); animation: fade .25s; }
.drawer-panel {
  position: absolute; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; padding: 76px 30px 30px;
  display: flex; flex-direction: column; gap: 26px; overflow-y: auto; box-shadow: -20px 0 60px rgba(7, 28, 66, .25);
  animation: slide-in .3s cubic-bezier(.2, .8, .2, 1);
}
.drawer-x { position: absolute; top: 18px; right: 18px; }
.drawer-nav { display: grid; }
.drawer-nav a { padding: 13px 0; font-size: 19px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.drawer-nav a:hover { color: var(--green); }
.drawer-contacts { display: grid; gap: 12px; font-size: 15px; margin-top: auto; }
.drawer-contacts > * { display: flex; align-items: center; gap: 12px; }
.drawer-contacts .ico { width: 20px; height: 20px; color: var(--green); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* ===== Главный экран ===== */
.hero { position: relative; min-height: 600px; padding: 160px 0 150px; background: linear-gradient(180deg, #dcebf8, #eef5ea); overflow: hidden; }
.hero-photo, .hero-haze { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-haze {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92) 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(98deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .86) 30%, rgba(255, 255, 255, .35) 52%, rgba(255, 255, 255, 0) 70%);
}
.hero-waves { position: absolute; right: 0; bottom: -1px; width: min(62%, 900px); height: 68%; }
.hw-stop-green-light { stop-color: var(--green-light); }
.hw-stop-green { stop-color: var(--green); }
.hw-stop-navy-light { stop-color: var(--navy); }
.hw-stop-navy { stop-color: var(--navy-deep); }
.w-green { fill: var(--green); }
.w-navy { fill: var(--navy); }
.hero-mark {
  position: absolute; right: max(4vw, calc(50% - 560px)); top: 110px; width: clamp(180px, 26vw, 360px); height: auto;
  opacity: .92; filter: drop-shadow(0 6px 24px rgba(11, 42, 94, .25));
}
.hero-in { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(40px, 5.4vw, 70px); line-height: 1; font-weight: 300; letter-spacing: -.01em;
  color: var(--navy); overflow-wrap: anywhere;
}
.hero-title b { font-weight: 800; }
.hero-rule { display: block; width: min(210px, 40%); height: 4px; margin: 14px 0 22px; border-radius: 4px; background: linear-gradient(90deg, var(--navy), var(--green) 65%, transparent); }
.hero-sub { font-size: clamp(18px, 2.5vw, 28px); line-height: 1.25; font-weight: 500; color: var(--ink); max-width: 20em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* ===== Преимущества и цифры ===== */
.sky { position: relative; z-index: 3; background: linear-gradient(180deg, #e9f2fa 0%, #f2f7fb 45%, #eef4e6 100%); padding-bottom: 250px; }
.sky-empty { padding-bottom: 200px; }
.sky-photo { position: absolute; inset: auto 0 0; height: 430px; }
.sky-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 70%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 55%); mask-image: linear-gradient(180deg, transparent 0, #000 55%);
}
.sky-in { position: relative; }
.features {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: -66px; padding: 24px 12px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.features[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.features[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.features[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.features[data-count="1"] { grid-template-columns: 1fr; }
.features li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 18px; font-weight: 600; font-size: 15.5px; line-height: 1.25; color: var(--ink); }
.features li + li { border-left: 1px solid #c9d4e2; }
.features .ico { width: 46px; height: 46px; color: var(--green); stroke-width: 1.4; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1040px; margin: 36px auto 0; }
.stats li {
  display: flex; align-items: center; justify-content: center; gap: 20px; padding: 22px 26px; border-radius: 16px;
  background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 30px rgba(11, 42, 94, .08); backdrop-filter: blur(10px);
}
.stats .ico { width: 54px; height: 54px; color: var(--green); stroke-width: 1.4; }
.stats b { display: block; font-size: clamp(30px, 3.6vw, 38px); font-weight: 800; line-height: 1.05; color: var(--navy); white-space: nowrap; }
.stats small { font-size: .78em; font-weight: 700; }
.stats span { display: block; font-size: 16px; font-weight: 500; color: var(--ink); margin-top: 2px; }

/* ===== Секции ===== */
.page-body { position: relative; z-index: 4; margin-top: -60px; background: #fff; border-radius: 60px 0 0 0; padding-top: 8px; }
.section { padding: 44px 0; }
.section-tint { background: var(--tint); margin-top: 30px; padding: 70px 0; }
.h2 { display: flex; align-items: center; gap: 22px; font-size: clamp(24px, 3vw, 33px); font-weight: 700; line-height: 1.2; color: var(--navy); margin-bottom: 26px; }
.h2::after { content: ""; flex: none; width: 70px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--navy), var(--green)); }
.h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 34px 0 16px; }
.h2-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.more { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; color: var(--navy); white-space: nowrap; padding-top: 6px; }
.more .ico { transition: transform .2s; }
.more:hover .ico, a:hover > .more .ico { transform: translateX(5px); }
.section-sub { max-width: 640px; color: var(--muted); margin: -10px 0 30px; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; font-weight: 500; color: var(--navy); }
.prose { display: grid; gap: 14px; }
.prose h2 { font-size: 20px; color: var(--navy); margin-top: 14px; }
.back { margin-top: 34px; }

/* Направления */
.dir-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.dir-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.dir-grid[data-count="3"], .dir-grid[data-count="6"] { grid-template-columns: repeat(3, 1fr); }
.dir-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.dir-card {
  position: relative; display: block; aspect-ratio: 1.12; min-height: 190px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, var(--green), var(--navy)); color: #fff; isolation: isolate;
  box-shadow: 0 8px 22px rgba(11, 42, 94, .12); transition: transform .3s, box-shadow .3s;
}
.dir-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.dir-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 50, 24, 0) 30%, rgba(14, 50, 24, .82) 72%, rgba(10, 40, 20, .96) 100%); }
.dir-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(11, 42, 94, .22); }
.dir-card:hover img { transform: scale(1.07); }
.dir-card { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 16px 54px 16px 18px; }
.dir-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 10px; flex: none;
  background: rgba(58, 138, 60, .6); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(4px);
}
.dir-ico .ico { width: 26px; height: 26px; }
.dir-title { font-size: 17px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.dir-go {
  position: absolute; right: 14px; bottom: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--navy); transition: transform .25s;
}
.dir-go .ico { width: 17px; height: 17px; stroke-width: 2; }
.dir-card:hover .dir-go { transform: translateX(4px); }

/* Кейсы */
.cases-banner { position: relative; display: block; height: 150px; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.cases-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; z-index: -2; transition: transform .8s; }
.cases-banner:hover img { transform: scale(1.04); }
.cases-banner-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(60, 40, 10, .55), rgba(60, 40, 10, .12) 55%, transparent); }
.cases-banner-wave { position: absolute; right: 0; bottom: 0; width: 300px; height: 100%; opacity: .92; }
.cases-banner-in { position: absolute; left: clamp(22px, 5vw, 58px); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 22px; }
.cases-banner-in .ico { width: 62px; height: 62px; stroke-width: 1.3; }
.cases-banner-in b { font-size: clamp(20px, 2.6vw, 27px); font-weight: 600; line-height: 1.2; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 28px; }
.case-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-card-img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(160deg, var(--green), var(--navy)); overflow: hidden; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.case-card-body b { font-size: 18px; line-height: 1.3; color: var(--navy); }
.case-card-text { font-size: 14.500px; color: var(--muted); line-height: 1.5; }
.case-card .more { font-size: 14.500px; margin-top: auto; padding-top: 6px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.500px; font-weight: 600; color: var(--green); background: rgba(58, 138, 60, .1); }

/* О компании */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 64px); align-items: center; padding-top: 30px; }
.about-media { position: relative; }
.about-media::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 26px; background: linear-gradient(135deg, var(--green-light), var(--navy)); opacity: .2; }
.about-media img { position: relative; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.about-text { display: grid; gap: 18px; justify-items: start; }
.about-text .h2 { margin-bottom: 0; }
.ticks { display: grid; gap: 12px; }
.ticks-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.ticks .ico { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: rgba(58, 138, 60, .14); color: var(--green); stroke-width: 2.6; margin-top: 1px; }

/* Эксперты */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.expert { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); padding-bottom: 22px; transition: transform .3s, box-shadow .3s; }
.expert:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.expert-photo { aspect-ratio: 1 / 1.05; background: linear-gradient(150deg, var(--navy), var(--green)); display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.expert-photo span { font-size: 64px; font-weight: 300; color: rgba(255, 255, 255, .9); letter-spacing: .04em; }
.expert h3 { font-size: 18px; color: var(--navy); padding: 0 22px; line-height: 1.3; }
.expert-role { font-size: 14px; font-weight: 600; color: var(--green); padding: 4px 22px 0; line-height: 1.4; }
.expert-bio { font-size: 14px; color: var(--muted); padding: 10px 22px 0; line-height: 1.5; }

/* Контакты */
.contacts { position: relative; margin-top: 50px; padding: 80px 0 110px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, var(--green) 160%); color: #fff; overflow: hidden; }
.contacts::before {
  content: ""; position: absolute; right: -6%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 192, 79, .28), transparent);
}
.contacts-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(30px, 6vw, 80px); align-items: center; }
.contacts-info h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; font-weight: 700; margin-bottom: 18px; }
.contacts-info p { font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 30em; }
.contact-list { display: grid; gap: 16px; margin-top: 34px; font-size: 17px; font-weight: 500; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: var(--green-light); }
.contact-list a:hover { text-decoration: underline; }
.form-card { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 70px rgba(0, 0, 0, .28); }
.form-card h3 { font-size: 24px; color: var(--navy); margin-bottom: 18px; }

/* ===== Формы ===== */
.lead-form { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.500px; font-weight: 600; color: var(--ink); }
.field i { color: #d0342c; font-style: normal; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #cfd8e3; border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(58, 138, 60, .16); }
.field.bad input, .field.bad textarea { border-color: #d0342c; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.check a { color: var(--navy); text-decoration: underline; }
.form-msg { font-size: 14.500px; font-weight: 600; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #1f7a2a; background: #e9f6ea; padding: 12px 14px; border-radius: 12px; }
.form-msg.err { color: #b3261e; background: #fdecea; padding: 12px 14px; border-radius: 12px; }

/* ===== Всплывающее окно ===== */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-bg { position: fixed; inset: 0; background: rgba(7, 28, 66, .6); backdrop-filter: blur(4px); animation: fade .25s; }
.modal-box { position: relative; width: min(480px, 100%); background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 38px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: pop .3s cubic-bezier(.2, .8, .2, 1); }
.modal-x { position: absolute; top: 12px; right: 12px; }
.modal-title { font-size: 26px; font-weight: 700; color: var(--navy); padding-right: 40px; line-height: 1.2; }
.modal-text { color: var(--muted); margin: 8px 0 20px; font-size: 15px; }

/* ===== Внутренние страницы ===== */
.page-head { position: relative; padding: 150px 0 56px; background: linear-gradient(180deg, #dfecf8 0%, #eef5f0 100%); overflow: hidden; }
.page-head-wave { position: absolute; right: 0; bottom: -1px; width: min(48%, 640px); height: 80%; opacity: .9; }
.page-head .container { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.page-head h1 { font-size: clamp(28px, 5vw, 50px); line-height: 1.1; font-weight: 800; color: var(--navy); max-width: 16em; overflow-wrap: anywhere; }
.page-head-sub { margin-top: 16px; font-size: clamp(16px, 2vw, 19px); font-weight: 500; max-width: 36em; color: var(--ink); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-img { margin-bottom: 28px; }
.detail-img img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.detail-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.side-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.side-card p { font-size: 14.500px; color: var(--muted); margin-bottom: 16px; }
.side-cta { background: var(--tint); border-color: transparent; }
.side-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--green); margin-bottom: 14px; box-shadow: 0 6px 16px rgba(11, 42, 94, .1); }
.side-phone { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-weight: 700; color: var(--navy); }
.side-phone .ico { width: 18px; height: 18px; }
.side-list { display: grid; gap: 4px; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; font-weight: 500; font-size: 15px; transition: background-color .2s; }
.side-list a:hover { background: var(--tint); }
.side-list .ico { width: 22px; height: 22px; color: var(--green); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-weight: 600; margin-bottom: 12px; }

/* ===== Подвал ===== */
.footer { position: relative; z-index: 5; margin-top: -70px; color: rgba(255, 255, 255, .78); }
main > .section:last-child { padding-bottom: 110px; }
.footer-wave { position: relative; display: block; width: 100%; height: 70px; pointer-events: none; }
.footer-wave .w-navy { fill: var(--navy-deep); }
.footer-body { background: var(--navy-deep); padding: 26px 0 0; margin-top: -1px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-about { margin-top: 18px; font-size: 14.500px; max-width: 26em; }
.footer-nav, .footer-contacts { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand:hover { text-decoration: none; }
.footer-phone { font-size: 20px; font-weight: 700; color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 600; color: var(--green-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.500px; }
.credit { color: rgba(255, 255, 255, .62); }

/* ===== Плавное появление ===== */
.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim .reveal { opacity: 1; transform: none; }
}

/* ===== Адаптация ===== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-act { margin-left: auto; }
  .features { grid-template-columns: repeat(3, 1fr) !important; row-gap: 20px; }
  .features li:nth-child(3n + 1) { border-left: 0; }
  .dir-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 860px) {
  .about, .contacts-in { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero-mark { opacity: .5; top: 96px; }
  .hero-waves { width: 90%; height: 40%; }
}
@media (max-width: 680px) {
  .container { width: min(1180px, 100% - 32px); }
  .header-in { height: 68px; gap: 10px; }
  .brand-badge { width: 44px; height: 44px; }
  .brand-name { font-size: 16px; }
  .header-cta { display: none; }
  .hero { min-height: 0; padding: 120px 0 120px; }
  .hero-haze { background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, .8) 45%, rgba(255, 255, 255, .15) 80%); }
  .hero-mark { display: none; }
  .hero-title { font-size: clamp(26px, 8.3vw, 52px); }
  .hero-btns .btn { flex: 1 1 100%; }
  .features { grid-template-columns: repeat(2, 1fr) !important; padding: 18px 6px; margin-top: -50px; }
  .features li { justify-content: flex-start; padding: 4px 10px; font-size: 13px; gap: 9px; min-width: 0; }
  .features li span { min-width: 0; overflow-wrap: anywhere; }
  .features li:nth-child(n) { border-left: 0; }
  .features li:nth-child(2n) { border-left: 1px solid #c9d4e2; }
  .features .ico { width: 30px; height: 30px; }
  .stats { gap: 14px; margin-top: 22px; }
  .stats li { justify-content: flex-start; padding: 16px 20px; }
  .stats .ico { width: 44px; height: 44px; }
  .sky { padding-bottom: 180px; }
  .sky-photo { height: 300px; }
  .page-body { border-radius: 34px 0 0 0; margin-top: -40px; }
  .section { padding: 32px 0; }
  .h2 { gap: 14px; margin-bottom: 20px; }
  .h2::after { width: 40px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .dir-card { aspect-ratio: 1 / 1.1; min-height: 0; }
  .dir-card { padding: 12px 42px 12px 12px; }
  .dir-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2.1; }
  .dir-title { font-size: 14px; }
  .dir-title br { display: none; }
  .dir-ico { width: 38px; height: 38px; margin-bottom: 8px; }
  .icon-btn[href^="tel"] { display: none; }
  .brand { min-width: 0; }
  .h2-row { flex-wrap: wrap; gap: 0 20px; }
  .h2-row .h2 { margin-bottom: 6px; }
  .h2-row .more { margin-bottom: 16px; padding-top: 0; font-size: 15px; }
  .dir-ico .ico { width: 21px; height: 21px; }
  .dir-go { right: 10px; bottom: 12px; width: 28px; height: 28px; }
  .cases-banner { height: 124px; }
  .cases-banner-in .ico { width: 44px; height: 44px; }
  .cases-banner-wave { width: 150px; }
  .contacts { padding: 56px 0 90px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .page-head { padding: 110px 0 40px; }
  .page-head-wave { opacity: .35; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 14px; }
  .features { grid-template-columns: 1fr !important; }
  .features li:nth-child(n) { border-left: 0; }
  .stats b { font-size: 28px; }
}
