:root {
  --ink: #17211c;
  --muted: #4a5650;
  --line: #d5dbd6;
  --bg: #fbfcfa;
  --card: #ffffff;
  --brand: #14563f;
  --brand-dark: #0b3a2a;
  --soft: #eaf4ee;
  --amber: #b26a00;
  --amber-bg: #fff6e5;
  --red: #b3261e;
  --red-bg: #fcebea;
  --gray: #5b6661;
  --gray-bg: #eef0ef;
  --green: #1e7a50;
  --radius: 14px;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 17px; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 20px; color: var(--brand); text-decoration: none; }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); }
.langs { display: flex; gap: 6px; }
.langs a { text-decoration: none; padding: 6px 8px; border-radius: 8px; font-size: 14px; color: var(--muted); min-width: 36px; text-align: center; }
.langs a[aria-current="page"] { background: var(--soft); color: var(--brand); font-weight: 600; }
.hero { padding: 56px 0 40px; }
.hero-in { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.hero-text { flex: 1 1 380px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0; }
h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 10px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
label, legend { font-weight: 600; font-size: 15px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b9c2bc; border-radius: 10px; background: #fff; min-height: 48px;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #8cc5a9; outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; }
.radio { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 32px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 0;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; margin-top: 8px; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.small { font-size: 14px; color: var(--muted); }
.section { padding: 48px 20px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: s; margin: 0 0 32px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; padding-left: 20px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.price { display: flex; flex-direction: column; gap: 6px; }
.price .btn { margin-top: auto; }
.price.featured { border: 2px solid var(--brand); }
.amount { font-size: 28px; font-weight: 700; margin: 0; }
.lead-card form { display: flex; flex-direction: column; gap: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 20px; }
.hp { position: absolute; left: -9999px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.result { padding: 8px 20px 24px; }
.loading, .error { padding: 20px; border-radius: var(--radius); background: var(--gray-bg); }
.error { background: var(--red-bg); }
.verdict { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid; margin-bottom: 20px; }
.verdict .dot { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; margin-top: 4px; }
.v-label { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.v-addr { margin: 0; color: var(--muted); font-size: 15px; word-break: break-word; }
.v-ambar { background: var(--amber-bg); border-color: #ebcb8b; } .v-ambar .dot { background: var(--amber); }
.v-rojo { background: var(--red-bg); border-color: #e7a9a4; } .v-rojo .dot { background: var(--red); }
.v-insuficiente { background: var(--gray-bg); border-color: #c3c9c5; } .v-insuficiente .dot { background: var(--gray); }
.v-verde { background: var(--soft); border-color: #9cc8af; } .v-verde .dot { background: var(--green); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 8px 0; }
.kpi .k { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.kpi p { margin: 0; }
.kpi .big { font-size: 26px; font-weight: 700; }
.block { margin: 20px 0; }
.block ul { padding-left: 20px; margin: 0; }
.block li { margin: 6px 0; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 24px; }
.legal { max-width: 760px; padding: 40px 20px; }
.legal .placeholder { background: #fff3c4; padding: 0 4px; }
@media (max-width: 640px) {
  .nav { display: none; }
  body { font-size: 16px; }
}

/* --- Картинки, иконки, кнопки --- */
.ico { width: 20px; height: 20px; flex: 0 0 auto; }
.ico-lg { width: 28px; height: 28px; color: var(--brand); }
.btn { gap: 10px; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 86, 63, .18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost:hover { background: var(--soft); color: var(--brand-dark); }
.hero-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-top: 24px; display: block; }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.act { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.act img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.act-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.act-body h3 { display: flex; gap: 10px; align-items: center; font-size: 18px; margin: 0; }
.act-body h3 .ico { color: var(--brand); width: 22px; height: 22px; }
.act-body .btn { margin-top: auto; }
.steps img { width: 100%; max-width: 220px; height: auto; align-self: center; margin: 4px 0 8px; }
.steps li::before { margin-bottom: -4px; }
.checks { list-style: none; padding-left: 0; gap: 16px 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
/* яркие цвета статусов */
.v-ambar .dot { background: #ffb300; box-shadow: 0 0 0 4px rgba(255, 179, 0, .2); }
.v-rojo .dot { background: #e53935; box-shadow: 0 0 0 4px rgba(229, 57, 53, .18); }
.v-verde .dot { background: #22a45d; box-shadow: 0 0 0 4px rgba(34, 164, 93, .2); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
.act-body .btn { width: 100%; justify-content: space-between; white-space: nowrap; font-size: 15px; padding: 10px 16px; }

/* --- Страница «Сотрудничество» --- */
.mail-line { font-size: 18px; }
.mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; word-break: break-all; }
.pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 8px; }
.pcard h3 { margin: 4px 0 0; font-size: 18px; }
.pcard p { margin: 0; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--brand); margin-top: 3px; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.brand .logo { height: 36px; width: auto; display: block; }
@media (max-width: 640px) { .brand .logo { height: 30px; } }

/* --- Меню «Услуги» --- */
.nav { align-items: center; }
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; color: var(--ink); display: flex; align-items: center; gap: 6px; min-height: 40px; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dd[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.dd > summary[aria-current="page"] { color: var(--brand); font-weight: 600; }
.dd-menu { position: absolute; right: -160px; top: calc(100% + 10px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(23, 33, 28, .14); padding: 20px; display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 18px; width: min(780px, 92vw); }
.dd-col { display: flex; flex-direction: column; gap: 8px; }
.dd-h { margin: 0 0 2px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dd-menu a, .mnav-panel a { text-decoration: none; color: var(--ink); font-size: 15px; }
.dd-menu a:hover, .mnav-panel a:hover { color: var(--brand); text-decoration: underline; }
.mnav { display: none; margin-left: auto; }
.mnav > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; border: 1px solid var(--line); }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary span { height: 2px; background: var(--ink); border-radius: 2px; }
.mnav-panel { position: absolute; left: 0; right: 0; top: 64px; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(23, 33, 28, .12);
  padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.mnav-panel .dd-h { margin-top: 8px; }
.top { position: relative; }
@media (max-width: 640px) { .mnav { display: block; } .langs { width: 100%; justify-content: flex-end; padding-bottom: 8px; } }

/* --- Карточки услуг --- */
.svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.svc { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.svc:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 86, 63, .14); color: var(--ink); }
.svc img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.svc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-body strong { font-size: 18px; }
.svc-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.svc-price { font-weight: 700; color: var(--brand); }
.svc-more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 15px; }
.hero-price { font-size: 22px; margin: 4px 0 0; color: var(--brand); }
.limits ul { padding-left: 20px; margin: 0; }
.limits li { margin: 6px 0; }
.order { align-items: start; }

/* --- Цены --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 20px 0; }
.ptable { width: 100%; border-collapse: collapse; min-width: 560px; }
.ptable th, .ptable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable thead th { font-size: 14px; color: var(--muted); background: var(--soft); }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }
.ptable td { color: var(--muted); font-size: 15px; }
.nowrap { white-space: nowrap; }

/* --- Подвал --- */
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 16px; }
.foot-logo { height: 32px; width: auto; display: block; margin-bottom: 8px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
details.dd, details.mnav { border-top: 0; padding: 0; }
.foot-h2 { margin-top: 14px; }
.next-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
#activity:invalid { color: var(--muted, #6b6b6b); }
#activity option { color: initial; }
.ck-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid #d9dfdb; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: 14px 16px; font-size: .92rem; }
.ck-banner p { margin: 0 0 10px; }
.ck-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 0 !important; }
.ck-btns .btn { padding: 8px 16px; }
