@font-face {
    font-family: "MagistralC";
    src: url("/static/fonts/MagistralC_B.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --deep: #071f19;
    --deep-2: #0c3028;
    --green: #d7ff44;
    --mint: #8fe7bc;
    --teal: #24745f;
    --paper: #f4f6ef;
    --card: rgba(255, 255, 255, .86);
    --ink: #10231e;
    --muted: #5b6f67;
    --line: rgba(7, 31, 25, .11);
    --shadow: 0 22px 70px rgba(7, 31, 25, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(rgba(244, 246, 239, .50), rgba(244, 246, 239, .58)),
        url("/static/img/backgrounds/site-network-bg.webp") center top / cover fixed no-repeat,
        var(--paper);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px clamp(16px, 4vw, 58px);
    color: #edf7f1;
    background: rgba(16, 35, 31, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}
.brand,
.site-footer > div {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand {
    min-width: 220px;
}
.brand-mark {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(215, 255, 68, .55);
    border-radius: 10px;
    color: var(--deep);
    background: linear-gradient(135deg, var(--green), var(--mint) 58%, #1f8b75);
    box-shadow: 0 12px 34px rgba(143, 231, 188, .22);
    transform: skew(-4deg);
    font-family: "MagistralC", Inter, "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .2px;
}
.brand-mark span {
    transform: skew(4deg);
    line-height: 1;
}
.brand strong,
.site-footer strong { display: block; font-size: 17px; }
.brand-wordmark {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1;
}
.brand-logo-text {
    font-family: "MagistralC", Inter, "Segoe UI", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #f8fff9;
    text-transform: uppercase;
}
.brand-slogan {
    margin-top: 5px;
    color: var(--green);
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}
.brand-slogan .slogan-line {
    display: inline;
}
.brand small,
.site-footer span { display: block; color: #aab8b2; font-size: 13px; }
.top-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}
.top-nav a,
.header-phone {
    padding: 10px 12px;
    border-radius: 999px;
    color: #e7f1ec;
    text-decoration: none;
    font-size: 14px;
}
.top-nav a:hover,
.header-phone {
    background: rgba(255, 255, 255, .07);
}
.header-phone {
    border: 1px solid rgba(255, 255, 255, .12);
    white-space: nowrap;
}
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    gap: 4px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #edf7f1;
    transition: transform .2s ease, opacity .2s ease;
}
.site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    overflow: hidden;
    padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 80px);
    color: #edf7f1;
    background:
        linear-gradient(90deg, rgba(8, 28, 23, .90), rgba(8, 28, 23, .74) 48%, rgba(8, 28, 23, .42)),
        url("/static/img/backgrounds/site-network-bg.webp") center center / cover no-repeat,
        linear-gradient(135deg, #071f19 0%, #0c3028 52%, #174f42 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 88%, transparent);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -28% 38%;
    z-index: -1;
    height: 520px;
    background:
        radial-gradient(circle at 72% 32%, rgba(215,255,68,.32), transparent 28%),
        radial-gradient(circle at 36% 70%, rgba(143,231,188,.2), transparent 36%);
    filter: blur(6px);
}
.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(38px, 4.35vw, 56px);
    line-height: 1.05;
    letter-spacing: 0;
}
.hero-lead {
    max-width: 780px;
    color: #d8e7e0;
    font-size: clamp(17px, 1.6vw, 20px);
}
.hero-actions,
.section-action {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.section > .section-action {
    max-width: 1180px;
    margin: 26px auto 0;
    justify-content: center;
}
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.hero-proof span {
    min-width: 150px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
}
.hero-proof strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}
.hero-panel {
    min-height: 360px;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045)), rgba(7,31,25,.56);
    box-shadow: 0 28px 80px rgba(0,0,0,.22);
    backdrop-filter: blur(10px);
}
.hero-panel h2 {
    margin: 14px 0 24px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
}
.hero-panel ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hero-panel li {
    padding-left: 18px;
    border-left: 3px solid var(--mint);
    color: #d8e7e0;
}
.panel-status,
.eyebrow {
    color: var(--green);
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: 0;
    text-transform: uppercase;
}
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid rgba(36, 116, 95, .18);
    border-radius: 999px;
    color: #0b5a49;
    background: rgba(215, 255, 68, .28);
    box-shadow: 0 8px 22px rgba(7, 31, 25, .06);
}
.hero .eyebrow,
.hero-panel .eyebrow,
.trust-panel .eyebrow,
.expert-section .eyebrow,
.lab-section .eyebrow,
.pricing-note .eyebrow,
.cta-card .eyebrow,
.service-hero .eyebrow {
    border-color: rgba(215, 255, 68, .22);
    color: var(--green);
    background: rgba(7, 31, 25, .24);
    box-shadow: none;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
}
.button-primary {
    color: #071f19;
    background: linear-gradient(135deg, var(--green), var(--mint));
}
.button-ghost {
    color: #edf7f1;
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
}
.button-ghost-light {
    color: var(--deep);
    border-color: var(--line);
    background: #fff;
}

.section,
.page-hero,
.article-page {
    padding: clamp(46px, 6vw, 76px) clamp(18px, 5vw, 80px);
    scroll-margin-top: 96px;
}
.section-tight { padding-top: 52px; }
.section-heading {
    max-width: 1180px;
    margin: 0 auto 30px;
}
.section-heading h2,
.page-hero h1,
.article-page h1 {
    max-width: 820px;
    margin: 8px 0 0;
    color: #071f19;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: 0;
}
.info-tip {
    position: relative;
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    margin-left: 5px;
    border: 1px solid rgba(36,116,95,.26);
    border-radius: 50%;
    color: var(--teal);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 1000;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}
.info-tip:hover,
.info-tip:focus,
.info-tip.is-open {
    border-color: rgba(36,116,95,.58);
    color: var(--deep);
    background: var(--green);
    outline: none;
}
.info-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    right: -8px;
    bottom: calc(100% + 10px);
    z-index: 30;
    width: min(320px, calc(100vw - 42px));
    padding: 12px 13px;
    border: 1px solid rgba(7,31,25,.12);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 18px 45px rgba(7,31,25,.18);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.42;
    text-align: left;
    text-transform: none;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    pointer-events: none;
}
.info-tip::before {
    content: "";
    position: absolute;
    right: 6px;
    bottom: calc(100% + 4px);
    z-index: 31;
    width: 12px;
    height: 12px;
    border-right: 1px solid rgba(7,31,25,.12);
    border-bottom: 1px solid rgba(7,31,25,.12);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: rotate(45deg) translateY(4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    pointer-events: none;
}
.info-tip:hover::after,
.info-tip:focus::after,
.info-tip.is-open::after,
.info-tip:hover::before,
.info-tip:focus::before,
.info-tip.is-open::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.info-tip:hover::before,
.info-tip:focus::before,
.info-tip.is-open::before {
    transform: rotate(45deg) translateY(0);
}
.page-hero {
    color: #edf7f1;
    background: linear-gradient(135deg, #071f19, #174f42);
}
.page-hero h1,
.page-hero p { color: #edf7f1; }

.benefit-grid,
.service-grid,
.steps,
.expert-grid,
.article-teasers,
.article-list,
.team-grid,
.case-grid,
.contact-grid,
.admin-stats {
    display: grid;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
}
.benefit-grid,
.steps,
.expert-grid,
.article-teasers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid,
.team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    grid-auto-flow: row dense;
    align-items: stretch;
}
.contact-grid { grid-template-columns: .8fr 1.2fr; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.benefit-grid article,
.steps article,
.expert-grid article,
.article-teasers a,
.article-card,
.team-grid article,
.person-card,
.map-card,
.admin-card,
.login-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}
.benefit-grid article,
.steps article,
.expert-grid article,
.article-teasers a {
    padding: 24px;
}
.service-grid a {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--deep);
    background: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 1000;
}
.steps article {
    min-height: 220px;
}
.checklist-section {
    padding-top: 34px;
}
.checklist-panel {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(340px, .78fr);
    gap: clamp(22px, 4vw, 46px);
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(36, 116, 95, .18);
    border-radius: 8px;
    color: #edf7f1;
    background:
        linear-gradient(135deg, rgba(7,31,25,.96), rgba(12,48,40,.91)),
        url("/static/img/backgrounds/site-network-bg.webp") center / cover no-repeat;
    box-shadow: 0 28px 90px rgba(7, 31, 25, .18);
}
.checklist-copy h2 {
    max-width: 680px;
    margin: 14px 0 16px;
    font-size: clamp(30px, 3.8vw, 48px);
    line-height: 1.06;
}
.checklist-copy p {
    max-width: 720px;
    color: #d8e7e0;
    font-size: 17px;
}
.checklist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.checklist-actions .button {
    min-width: 140px;
}
.checklist-preview {
    display: grid;
    gap: 16px;
}
.checklist-sheet {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255,255,255,.92);
}
.checklist-sheet-head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}
.checklist-sheet-head strong {
    color: var(--deep);
    font-size: 13px;
}
.checklist-sheet::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(215,255,68,.42);
}
.checklist-sheet span {
    color: var(--teal);
    font-size: 13px;
    font-weight: 1000;
    text-transform: uppercase;
}
.checklist-sheet h3 {
    margin: 8px 0 16px;
    font-size: 26px;
    line-height: 1.12;
}
.checklist-progress {
    height: 8px;
    overflow: hidden;
    margin: 0 0 16px;
    border-radius: 999px;
    background: rgba(7,31,25,.1);
}
.checklist-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--green));
    transition: width .2s ease;
}
.checklist-sheet ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.checklist-sheet li {
    min-width: 0;
}
.checklist-sheet label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(7,31,25,.1);
    border-radius: 8px;
    background: rgba(244,246,239,.64);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.checklist-sheet label:hover {
    border-color: rgba(36,116,95,.35);
    background: #fff;
    transform: translateY(-1px);
}
.checklist-sheet label .info-tip {
    margin: -1px 0 0;
}
.checklist-sheet input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--teal);
}
.checklist-sheet label:has(input:checked) {
    border-color: rgba(36,116,95,.38);
    background: rgba(215,255,68,.18);
}
.checklist-hint {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.checklist-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.97), rgba(244,246,239,.94));
    box-shadow: 0 18px 46px rgba(0,0,0,.16);
}
.checklist-form-head {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    padding-bottom: 4px;
}
.checklist-form-head strong {
    color: var(--deep);
    font-size: 19px;
    line-height: 1.2;
}
.checklist-form-head span {
    color: var(--muted);
    font-size: 14px;
}
.checklist-form label {
    gap: 5px;
    color: var(--deep);
}
.checklist-form input {
    min-height: 42px;
    background: #fff;
}
.checklist-form .button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
}
.service-grid span,
.article-teasers span,
.article-card span {
    display: block;
    margin-top: 12px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 900;
}

.lab-section,
.expert-section,
.pricing-note,
.cta-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
    max-width: 1280px;
    margin: clamp(42px, 5vw, 70px) auto;
    padding: clamp(34px, 5vw, 58px);
    color: #edf7f1;
    background: linear-gradient(135deg, #071f19, #10382f);
    border-radius: 8px;
}
.pricing-note {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}
.pricing-note .button {
    justify-self: end;
    width: auto;
    white-space: nowrap;
}
.lab-cards {
    display: grid;
    gap: 12px;
}
.lab-cards div {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
}

.modern-calculator {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid rgba(215,255,68,.28);
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 24px 80px rgba(0,0,0,.14);
}
.calc-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}
.calc-field,
.calc-toggle,
.calc-mode {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.calc-field div,
.calc-breakdown div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.calc-field div span,
.calc-toggle span,
.calc-mode button strong {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 4px;
}
.calc-field strong {
    min-width: 48px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #071f19;
    background: var(--green);
    text-align: center;
}
.calc-field input[type="range"] {
    width: 100%;
    accent-color: var(--teal);
}
.calc-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
}
.calc-mode button {
    display: grid;
    gap: 5px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--deep);
    text-align: left;
    cursor: pointer;
}
.calc-mode button strong {
    font-size: 16px;
    line-height: 1.1;
}
.calc-mode button small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.28;
}
.calc-mode button.is-active {
    border-color: rgba(215,255,68,.42);
    color: #edf7f1;
    background: linear-gradient(135deg, var(--deep), #155142);
    box-shadow: 0 12px 28px rgba(7,31,25,.12);
}
.calc-mode button.is-active .info-tip {
    border-color: rgba(215,255,68,.42);
    color: var(--green);
    background: rgba(255,255,255,.08);
}
.calc-mode button.is-active .info-tip:hover,
.calc-mode button.is-active .info-tip:focus,
.calc-mode button.is-active .info-tip.is-open {
    color: var(--deep);
    background: var(--green);
}
.calc-mode button.is-active small {
    color: #cfe0d9;
}
.calc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
    font-weight: 900;
}
.calc-result {
    padding: 26px;
    border-radius: 14px;
    color: #edf7f1;
    background: var(--deep);
}
.calc-result strong {
    display: block;
    margin: 8px 0 18px;
    font-size: clamp(38px, 5vw, 58px);
}
.calc-breakdown {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
}
.calc-lead-note,
.form-note {
    display: block;
    margin-top: 12px;
    color: rgba(237,247,241,.76);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}
.form-note {
    margin-top: -2px;
    color: var(--muted);
}

.next-after-lead {
    padding-top: clamp(42px, 5vw, 72px);
}
.after-lead-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
}
.after-lead-grid article {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(36,116,95,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 16px 42px rgba(7,31,25,.08);
}
.after-lead-grid span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--deep);
    background: var(--green);
    font-weight: 1000;
}
.after-lead-grid h3 {
    margin: 0;
    font-size: 20px;
}
.after-lead-grid p {
    margin: 0;
    color: var(--muted);
}

.trusted-marquee,
.reviews-marquee {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    padding: 6px 0 18px;
}
.yandex-review-reader {
    width: 100%;
    max-width: 1180px;
    margin: 18px auto 30px;
    padding: 16px;
    border: 1px solid rgba(7,31,25,.10);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 16px 42px rgba(7,31,25,.08);
    box-sizing: border-box;
}
.yandex-review-reader-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.yandex-review-reader-head strong {
    display: block;
    color: var(--deep);
    font-size: 18px;
    line-height: 1.2;
}
.yandex-review-reader-head span {
    display: block;
    margin-top: 4px;
    color: #5a6c66;
    font-size: 14px;
}
.yandex-review-reader-head a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--deep);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}
.yandex-widget {
    display: grid;
    place-items: center;
    width: calc(100% + 32px);
    margin: 0 -16px;
    position: relative;
}
.yandex-widget > div {
    width: 100% !important;
    max-width: 100% !important;
    height: 360px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
    border-radius: 18px !important;
    border: 1px solid rgba(7, 31, 25, .10) !important;
    background: linear-gradient(180deg, #fff, #f8fbf4);
    box-shadow: 0 18px 48px rgba(7, 31, 25, .10);
}
.yandex-widget iframe {
    display: block;
    width: calc(100% + 18px) !important;
    height: 800px !important;
    min-height: 800px !important;
    max-width: none !important;
    margin-right: -18px;
    border: 0 !important;
    border-radius: 18px !important;
    background: #fff;
}
.local-reviews-widget {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 18px auto 30px;
    height: auto;
    overflow: hidden;
    border: 1px solid rgba(7,31,25,.09);
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 16px 42px rgba(7,31,25,.07);
    box-sizing: border-box;
}
.local-reviews-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    min-height: 96px;
    padding: 14px 18px;
    border-radius: 10px 10px 4px 4px;
    background: #fafafa;
}
.local-review-score {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 6px 10px;
    align-content: center;
    align-items: center;
    justify-items: start;
    color: #212121;
}
.local-review-score strong {
    font-size: 30px;
    line-height: 1;
}
.local-review-score span {
    color: #212121;
    font-size: 16px;
    font-weight: 700;
}
.local-review-score small {
    grid-column: 1 / -1;
    color: #757575;
    font-size: 13px;
    font-weight: 700;
}
.local-review-stars,
.local-review-card-stars {
    display: flex;
    gap: 3px;
}
.local-review-stars i,
.local-review-card-stars i {
    display: block;
    width: 18px;
    height: 18px;
    clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 35%);
    background: #f6c343;
}
.local-review-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
}
.local-review-actions span {
    color: #4f5d58;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}
.local-review-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 18px;
    border: 1px solid rgba(7,31,25,.12);
    border-radius: 4px;
    color: #212121;
    background: #fff;
    box-shadow: 0 8px 18px rgba(7,31,25,.06);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.local-review-actions a:hover {
    border-color: rgba(36,116,95,.28);
    color: #071f19;
    background: var(--green);
}
.local-review-nav {
    display: flex;
    gap: 8px;
}
.local-review-nav button {
    position: absolute;
    top: calc(50% + 48px);
    z-index: 5;
    display: grid;
    width: 28px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 0;
    color: rgba(7,31,25,.62);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    transform: translateY(-50%);
    transition: color .16s ease, transform .16s ease, opacity .16s ease;
    opacity: .72;
}
.local-review-nav button:first-child {
    left: 8px;
}
.local-review-nav button:last-child {
    right: 8px;
}
.local-review-nav button:hover {
    color: var(--teal);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}
.local-review-list {
    height: auto;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 14px 18px 18px;
    background: transparent;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.local-review-list::-webkit-scrollbar {
    display: none;
}
.local-review-track {
    display: flex;
    gap: 16px;
    min-width: max-content;
}
.local-review-card {
    width: 340px;
    height: 222px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 16px;
    border: 1px solid rgba(7,31,25,.08);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(7,31,25,.08);
    box-sizing: border-box;
}
.local-review-card-head {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}
.local-review-avatar {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--deep));
    font-size: 18px;
    font-weight: 1000;
}
.local-review-card-head strong {
    display: block;
    overflow: hidden;
    color: #212121;
    font-size: 16px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.local-review-card-head small,
.local-review-card > span {
    color: #757575;
    font-size: 13px;
}
.local-review-card-stars {
    margin-bottom: 8px;
}
.local-review-card-stars i {
    width: 14px;
    height: 14px;
}
.local-review-card p {
    display: -webkit-box;
    min-height: 0;
    max-height: 84px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #263b35;
    font-size: 15px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.trust-section .section-heading {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
    gap: 24px;
    align-items: end;
}
.trust-section .section-heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 1180px;
    margin: 0 auto 20px;
}
.trust-strip span {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 10px 28px rgba(7,31,25,.045);
}
.trust-strip strong {
    color: var(--teal);
    font-size: 24px;
}
.trusted-marquee::before,
.trusted-marquee::after,
.reviews-marquee::before,
.reviews-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 86px;
    pointer-events: none;
}
.trusted-marquee::before,
.reviews-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--paper), rgba(244,246,239,0));
}
.trusted-marquee::after,
.reviews-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--paper), rgba(244,246,239,0));
}
.trusted-track,
.reviews-track {
    display: flex;
    width: max-content;
    gap: 14px;
}
.trusted-track { animation: marquee 46s linear infinite; }
.reviews-track { animation: marquee 76s linear infinite; }
.trusted-marquee:hover .trusted-track,
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
.trusted-logo {
    display: grid;
    width: 230px;
    min-height: 110px;
    place-items: center;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f9fbf4);
    color: var(--deep);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(7,31,25,.055);
    font-weight: 1000;
}
.trusted-logo img {
    width: 170px;
    max-height: 68px;
    object-fit: contain;
}
.trusted-logo span {
    color: var(--deep);
    font-size: 20px;
    line-height: 1.1;
    text-align: center;
}
.review-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto 26px;
    padding: 14px 18px;
    border: 1px solid rgba(7,31,25,.1);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(7,31,25,.06);
}
.review-summary strong {
    color: var(--teal);
    font-size: 28px;
}
.review-summary a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #071f19;
    background: var(--green);
    text-decoration: none;
    font-weight: 900;
}
.reviews-track article {
    width: 360px;
    min-height: 224px;
    padding: 24px;
    border: 1px solid rgba(7,31,25,.09);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f9fbf4);
    box-shadow: 0 10px 28px rgba(7,31,25,.06);
}
.reviews-track strong {
    display: inline-grid;
    min-width: 62px;
    min-height: 40px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #071f19;
    background: linear-gradient(135deg, var(--green), var(--mint));
}
.reviews-track p {
    min-height: 96px;
    margin: 0 0 16px;
    color: #243b34;
}
.reviews-track span {
    color: var(--teal);
    font-size: 13px;
    font-weight: 900;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.team-page-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
}
.person-card,
.team-grid article {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
}
.team-group-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,250,243,.96)),
        radial-gradient(circle at 88% 12%, rgba(215,255,68,.22), transparent 32%);
}
.person-avatar {
    display: grid;
    width: 100%;
    aspect-ratio: 1 / .82;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green), var(--mint));
}
.person-avatar span {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 22px;
    color: var(--green);
    background: var(--deep);
    font-size: 42px;
    font-weight: 1000;
}
.person-photo,
.team-grid img {
    width: 100%;
    aspect-ratio: 1 / .82;
    object-fit: cover;
    border-radius: 14px;
}
.upload-card {
    display: grid;
    gap: 14px;
}
.upload-card img {
    width: min(420px, 100%);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.person-body,
.article-card-body,
.case-card > div {
    display: grid;
    gap: 10px;
}
.person-body > span,
.person-card > span,
.team-grid article > span,
.case-card span {
    color: var(--teal);
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.person-body h2,
.person-card h3,
.team-grid h3 {
    margin: 0;
    color: var(--deep);
    font-size: 28px;
    line-height: 1.05;
}
.person-body p,
.person-card p,
.team-grid p {
    margin: 0;
    color: var(--muted);
}
.join-team-card {
    min-height: 100%;
    padding: 0;
    border-style: dashed;
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,250,243,.98)),
        radial-gradient(circle at 86% 12%, rgba(215,255,68,.28), transparent 34%);
}
.join-team-button {
    display: grid;
    width: 100%;
    min-height: 100%;
    gap: 12px;
    align-content: center;
    justify-items: start;
    padding: 22px;
    border: 0;
    color: var(--deep);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.join-team-button:hover .join-team-plus,
.join-team-button:focus .join-team-plus {
    transform: scale(1.06);
}
.join-team-plus {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 18px;
    color: var(--deep);
    background: var(--green);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    transition: transform .16s ease;
}
.join-team-button strong {
    font-size: 26px;
    line-height: 1.05;
}
.join-team-button small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.42;
}
.person-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.person-tags b {
    padding: 7px 9px;
    border-radius: 999px;
    color: #0c3a30;
    background: rgba(36,116,95,.1);
    font-size: 12px;
}

.case-card {
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    color: #edf7f1;
    background: var(--deep);
    text-decoration: none;
    box-shadow: var(--shadow);
}
.case-grid .case-card:first-child {
    grid-row: span 2;
    min-height: 560px;
}
.case-card img,
.article-cover img,
.article-mini img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.case-grid .case-card:first-child img { height: 280px; }
.case-grid .case-card:not(:first-child) img { height: 150px; }
.case-card > div {
    display: grid;
    align-content: start;
    padding: 24px;
}
.case-grid .case-card:not(:first-child) > div { padding: 20px; }
.case-card h3 {
    margin: 0;
    color: #edf7f1;
    font-size: 26px;
    line-height: 1.12;
}
.case-grid .case-card:not(:first-child) h3 { font-size: 21px; }
.case-grid .case-card:not(:first-child) p { margin: 0; }
.case-card p { color: #bfd0ca; }
.case-card strong {
    padding: 14px;
    border-left: 3px solid var(--green);
    color: var(--green);
    background: rgba(255,255,255,.06);
}
.case-grid .case-card:not(:first-child) strong { padding: 12px; }

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1180px;
    margin: 0 auto 24px;
}
.category-pills a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    font-weight: 800;
}
.category-pills a.is-active,
.category-pills a:hover {
    background: var(--green);
}
.article-magazine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.article-card {
    display: grid;
    grid-template-rows: 190px 1fr;
    min-height: 430px;
    padding: 0;
    overflow: hidden;
    color: var(--deep);
    text-decoration: none;
}
.article-cover {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #09261f, #1c715e);
}
.article-cover span {
    color: var(--green);
    font-size: 42px;
    font-weight: 1000;
}
.article-card-body { padding: 22px; }
.article-card-body h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.14;
}
.article-card-body p { color: var(--muted); }
.article-page {
    max-width: 1100px;
    margin: 0 auto;
}
.article-page header a { color: var(--teal); font-weight: 900; }
.article-body {
    max-width: 860px;
    margin: 0 auto;
    font-size: 18px;
}
.article-body h2 { margin-top: 34px; font-size: 32px; }
.article-hero-image {
    width: min(980px, 100%);
    max-height: 460px;
    margin: 0 auto 34px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.lead-form,
.admin-form,
.login-card {
    display: grid;
    gap: 14px;
}
.lead-form label,
.admin-form label,
.login-card label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}
.lead-form input,
.lead-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select,
.login-card input {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
}
.lead-form textarea,
.admin-form textarea { resize: vertical; }
.lead-form input:focus,
.lead-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.login-card input:focus {
    outline: 3px solid rgba(67, 210, 166, .22);
    border-color: var(--teal);
}
.lead-form input.is-invalid,
.lead-form textarea.is-invalid {
    border-color: #d94444;
    background: #fff7f7;
}
.form-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.map-card {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    overflow: hidden;
}
.map-card > div { padding: 26px; }
.map-card iframe { width: 100%; min-height: 420px; border: 0; }

.stats-row,
.value-grid {
    display: grid;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
}
.stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats-row div,
.value-grid article,
.contact-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.stats-row div {
    padding: 22px;
}
.stats-row strong {
    display: block;
    color: var(--teal);
    font-size: 38px;
    line-height: 1;
}
.stats-row span {
    color: var(--muted);
    font-weight: 800;
}
.about-intro {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 34px;
    max-width: 1180px;
    margin: 0 auto;
}
.about-intro h2 {
    margin: 8px 0 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
}
.about-intro p {
    margin-top: 0;
    color: var(--muted);
    font-size: 18px;
}
.value-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.value-grid article {
    padding: 22px;
}
.value-grid span {
    color: var(--teal);
    font-weight: 1000;
}
.value-grid h3 {
    margin: 16px 0 10px;
    font-size: 22px;
    line-height: 1.15;
}
.value-grid p {
    margin: 0;
    color: var(--muted);
}
.contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.contact-card {
    display: grid;
    gap: 8px;
    min-height: 160px;
    padding: 22px;
    color: var(--deep);
    text-decoration: none;
}
.contact-card span {
    color: var(--teal);
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.contact-card strong {
    font-size: 22px;
    line-height: 1.14;
}
.contact-card small {
    color: var(--muted);
}
.map-card {
    grid-template-columns: minmax(320px, .45fr) minmax(0, .55fr);
    border-radius: 16px;
}
.map-card > div {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 34px;
}
.map-card > div strong {
    color: var(--deep);
    font-size: 32px;
    line-height: 1.08;
}
.map-card > div span {
    color: var(--muted);
    font-size: 17px;
}
.map-card > div .button {
    justify-self: start;
}
.contact-cta {
    align-items: start;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 34px clamp(18px, 5vw, 80px);
    color: #d8e7e0;
    background: var(--deep);
}
.site-footer a { color: #edf7f1; }

body.admin-body {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
    background:
        linear-gradient(rgba(244, 246, 239, .70), rgba(244, 246, 239, .78)),
        url("/static/img/backgrounds/site-network-bg.webp") center top / cover fixed no-repeat,
        #eef3ef;
    color: var(--ink);
}
.admin-sidebar {
    position: sticky;
    top: 0;
    display: grid;
    align-content: start;
    gap: 22px;
    height: 100vh;
    padding: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(215,255,68,.16), transparent 30%),
        linear-gradient(180deg, #071f19, #0d3128 58%, #124a3d);
    overflow-y: auto;
}
.admin-logo {
    padding: 16px;
    border: 1px solid rgba(215,255,68,.22);
    border-radius: 16px;
    color: #edf7f1;
    background: rgba(255,255,255,.06);
    text-decoration: none;
    font-size: 20px;
    font-weight: 1000;
}
.admin-sidebar nav {
    display: grid;
    gap: 7px;
}
.admin-sidebar a,
.admin-sidebar button {
    width: 100%;
    min-height: 42px;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    color: #dbe8e3;
    background: rgba(255,255,255,.055);
    text-align: left;
    text-decoration: none;
    font-weight: 800;
}
.admin-sidebar form {
    margin: 0;
}
.admin-sidebar a:hover,
.admin-sidebar button:hover {
    color: #071f19;
    background: var(--green);
}
.admin-main {
    width: min(1280px, 100%);
    padding: 34px;
}
.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.admin-head h1 {
    margin: 0;
    color: var(--deep);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
}
.admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}
.admin-stats div,
.admin-card,
.admin-form,
.login-card {
    border: 1px solid rgba(7,31,25,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.admin-stats div,
.admin-card,
.admin-form { padding: 18px; }
.admin-stats strong {
    display: block;
    color: var(--deep);
    font-size: 34px;
    line-height: 1;
}
.admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(7,31,25,.08);
    color: var(--deep);
    text-decoration: none;
}
.admin-row span { font-weight: 900; }
.admin-row small { color: var(--muted); }
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}
.admin-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(7,31,25,.10);
    border-radius: 999px;
    color: var(--deep);
    background: rgba(255,255,255,.82);
    text-decoration: none;
    font-weight: 900;
}
.admin-tabs a.is-active {
    border-color: rgba(36,116,95,.36);
    background: linear-gradient(135deg, var(--green), var(--mint));
}
.admin-tabs span {
    display: inline-grid;
    min-width: 28px;
    min-height: 24px;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(7,31,25,.10);
    font-size: 12px;
}
.leads-card {
    display: grid;
    gap: 12px;
}
.lead-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(7,31,25,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.72);
}
.lead-item__main {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.lead-item__top,
.lead-meta,
.lead-actions,
.lead-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.lead-item__top strong {
    color: var(--deep);
    font-size: 18px;
}
.lead-status {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--deep);
    background: rgba(36,116,95,.10);
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}
.lead-status--new { background: rgba(215,255,68,.42); }
.lead-status--in_work { background: rgba(143,231,188,.38); }
.lead-status--done { background: rgba(7,31,25,.12); }
.lead-meta {
    color: var(--muted);
    font-size: 14px;
}
.lead-meta a {
    color: var(--teal);
    font-weight: 900;
    text-decoration: none;
}
.lead-item p {
    margin: 0;
    color: var(--ink);
    white-space: pre-line;
}
.lead-item small {
    color: var(--muted);
    overflow-wrap: anywhere;
}
.lead-actions {
    justify-content: flex-end;
}
.lead-actions select {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
}
.lead-actions button,
.button-danger {
    min-height: 40px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--deep);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.button-danger {
    background: #8e1515;
}
.admin-form { max-width: 980px; }
.admin-form.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    margin-bottom: 18px;
}
.admin-form.compact label:has(textarea) {
    grid-column: span 2;
}
.admin-form.compact button {
    align-self: end;
}
.blocks-editor {
    max-width: 1180px;
}
.block-page-card {
    display: grid;
    gap: 18px;
}
.block-page-card h2 {
    margin: 0;
    color: var(--deep);
}
.block-editor-item {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8faf5;
}
.block-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.block-fields label:has(textarea) {
    grid-column: 1 / -1;
}
.admin-image-preview {
    display: block;
    width: min(260px, 100%);
    max-height: 170px;
    object-fit: contain;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.check-row {
    display: flex !important;
    flex-direction: row;
    align-items: center;
}
.check-row input { width: auto; min-height: 0; }
.flash {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--deep);
    background: var(--green);
    font-weight: 900;
}
.site-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 18px;
}
.site-modal.is-open {
    display: grid;
}
.site-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 24, 20, .62);
    backdrop-filter: blur(4px);
}
.site-modal__panel {
    position: relative;
    width: min(520px, 100%);
    max-height: min(92vh, 860px);
    overflow: auto;
    padding: 26px;
    border: 1px solid rgba(67, 210, 166, .22);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(5, 24, 20, .22);
}
.resume-modal .site-modal__panel {
    width: min(680px, 100%);
}
.site-modal__panel h2 {
    margin: 8px 42px 8px 0;
    color: var(--deep);
    font-size: 32px;
    line-height: 1.08;
}
.modal-lead {
    margin: 0 0 18px;
    color: var(--muted);
}
.resume-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.resume-form label:has(textarea),
.resume-form label:has(input[type="file"]),
.resume-form button {
    grid-column: 1 / -1;
}
.site-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--deep);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.site-notice {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
}
.site-notice__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: var(--deep);
    font-size: 26px;
    font-weight: 1000;
}
.site-notice--error .site-notice__icon {
    background: #ffd8d8;
    color: #8e1515;
}
.site-notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 24px;
}
.site-notice p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.site-notice small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.45;
}
.mobile-cta-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 70;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(7,31,25,.94);
    box-shadow: 0 18px 50px rgba(7,31,25,.34);
    backdrop-filter: blur(12px);
}
.mobile-cta-bar a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: #edf7f1;
    font-weight: 1000;
    text-decoration: none;
}
.mobile-cta-bar a:first-child {
    background: rgba(255,255,255,.09);
}
.mobile-cta-bar a:last-child {
    color: var(--deep);
    background: linear-gradient(135deg, var(--green), #8fe7bc);
}
.article-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-top: 34px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(215,255,68,.26);
    border-radius: 14px;
    color: #edf7f1;
    background: linear-gradient(135deg, var(--deep), #155142);
    box-shadow: var(--shadow);
}
.article-cta h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(26px, 3vw, 36px);
}
.article-cta p {
    margin: 0;
    color: #d7e8e0;
}
.article-cta .button {
    white-space: nowrap;
}
.login-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 18px;
    background: linear-gradient(135deg, #071f19, #174f42);
}
.login-card {
    width: min(440px, 100%);
    padding: 28px;
}

@media (max-width: 1180px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-page-grid,
    .article-magazine,
    .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .site-header {
        gap: 12px;
    }
    .brand {
        min-width: 170px;
        gap: 10px;
    }
    .brand-logo-text {
        font-size: 19px;
        letter-spacing: .25px;
    }
    .brand-slogan {
        margin-top: 3px;
        font-size: 7px;
        line-height: 1;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }
    .hero,
    .modern-calculator,
    .lab-section,
    .expert-section,
    .pricing-note,
    .cta-card,
    .checklist-panel,
    .contact-grid,
    .map-card {
        grid-template-columns: 1fr;
    }
    .benefit-grid,
    .expert-grid,
    .article-teasers,
    .case-grid,
    .article-magazine,
    .after-lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid,
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-section .section-heading,
    .about-intro,
    .map-card {
        grid-template-columns: 1fr;
    }
    .stats-row,
    .value-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pricing-note {
        grid-template-columns: 1fr;
    }
    .pricing-note .button {
        justify-self: start;
    }
}
@media (max-width: 760px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        padding: 10px 14px;
    }
    .brand { min-width: 0; gap: 9px; }
    .brand-slogan {
        display: block;
        margin-top: 2px;
        font-size: 7px;
        line-height: 1.05;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
    .brand-slogan .slogan-line {
        display: block;
        white-space: nowrap;
    }
    .yandex-widget > div {
        height: 340px !important;
    }
    .yandex-widget iframe { width: calc(100% + 18px) !important; height: 800px !important; min-height: 800px !important; }
    .yandex-review-reader { width: 100%; padding: 10px; border-radius: 18px; }
    .yandex-widget { width: calc(100% + 20px); margin: 0 -10px; }
    .yandex-review-reader-head { display: grid; gap: 10px; }
    .yandex-review-reader-head a { justify-self: start; }
    .local-reviews-widget {
        height: auto;
        border-radius: 10px;
    }
    .local-reviews-head {
        grid-template-columns: 1fr;
        min-height: 118px;
        padding: 12px 14px;
        gap: 12px;
        align-items: center;
    }
    .local-review-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-content: center;
    }
    .local-review-score,
    .local-review-actions {
        min-height: 0;
    }
    .local-review-score strong { font-size: 28px; }
    .local-review-score span { font-size: 13px; }
    .local-review-score small { font-size: 11px; }
    .local-review-stars i { width: 14px; height: 14px; }
    .local-review-actions span { font-size: 13px; line-height: 1.35; }
    .local-review-actions a {
        min-height: 34px;
        padding: 8px 12px;
        font-size: 13px;
    }
    .local-review-actions a { justify-self: start; }
    .local-review-nav {
        display: block;
    }
    .local-review-nav button {
        top: calc(50% + 42px);
        width: 24px;
        height: 38px;
        font-size: 26px;
    }
    .local-review-list {
        height: auto;
        padding: 12px 14px 16px;
    }
    .local-review-card {
        width: min(318px, calc(100vw - 64px));
        height: 218px;
    }
    .brand-logo-text { font-size: 18px; letter-spacing: .25px; }
    .brand-mark { width: 34px; height: 34px; font-size: 14px; }
    .header-phone { padding: 8px 9px; font-size: 12px; }
    .menu-toggle { display: grid; }
    .top-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 14px;
        right: 14px;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        border: 0 solid rgba(255,255,255,.1);
        border-radius: 16px;
        background: rgba(7,31,25,.98);
        box-shadow: 0 24px 70px rgba(0,0,0,.28);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, max-height .2s ease, padding .2s ease, border-width .2s ease;
    }
    .site-header.menu-open .top-nav {
        max-height: 360px;
        padding: 12px;
        border-width: 1px;
        opacity: 1;
        transform: translateY(0);
    }
    .top-nav a {
        padding: 12px;
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
        background: rgba(255,255,255,.07);
        text-align: center;
    }
    .hero {
        gap: 18px;
        padding: 24px 16px 30px;
    }
    .hero h1,
    .page-hero h1,
    .article-page h1 { font-size: 32px; }
    .hero-lead { font-size: 16px; line-height: 1.5; }
    .hero-proof { gap: 8px; margin-top: 20px; }
    .hero-proof span {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        padding: 10px 11px;
        font-size: 12px;
    }
    .hero-proof strong { font-size: 26px; }
    .hero-panel {
        min-height: 0;
        padding: 16px;
    }
    .hero-panel h2 {
        margin: 10px 0 16px;
        font-size: 28px;
    }
    .hero-panel ul { gap: 10px; }
    .hero-panel li { font-size: 14px; }
    .section,
    .page-hero,
    .article-page {
        padding-inline: 18px;
        scroll-margin-top: 124px;
    }
    .section-heading h2,
    .page-hero h1,
    .article-page h1 {
        font-size: 30px;
    }
    .benefit-grid,
    .steps,
    .expert-grid,
    .article-teasers,
    .service-grid,
    .team-grid,
    .team-page-grid,
    .case-grid,
    .article-magazine,
    .after-lead-grid,
    .admin-stats,
    .admin-form.compact,
    .resume-form,
    .block-fields { grid-template-columns: 1fr; }
    .case-grid .case-card:first-child {
        grid-row: auto;
        min-height: 0;
    }
    .case-grid .case-card:first-child img,
    .case-grid .case-card:not(:first-child) img {
        height: 190px;
    }
    .case-grid .case-card:not(:first-child) h3 { font-size: 23px; }
    .trust-section .section-heading,
    .trust-strip,
    .stats-row,
    .value-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .calc-controls { grid-template-columns: 1fr; padding: 10px; }
    .calc-toggle { grid-column: auto; }
    .review-summary { display: grid; justify-items: start; border-radius: 16px; }
    .checklist-panel { padding: 22px; }
    .checklist-copy h2 { font-size: 30px; }
    .checklist-actions .button { width: 100%; }
    .checklist-form { grid-template-columns: 1fr; }
    .info-tip::after {
        right: 0;
        width: min(280px, calc(100vw - 44px));
    }
    .reviews-track article { width: 300px; }
    .trusted-marquee::before,
    .trusted-marquee::after,
    .reviews-marquee::before,
    .reviews-marquee::after {
        width: 34px;
    }
    body.admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-main { padding: 18px; }
    .admin-row { grid-template-columns: 1fr; gap: 6px; }
    .lead-item { grid-template-columns: 1fr; }
    .lead-actions { justify-content: flex-start; }
    .site-footer { display: grid; }
    body {
        padding-bottom: 82px;
    }
    .mobile-cta-bar {
        display: grid;
    }
    .article-cta {
        grid-template-columns: 1fr;
    }
    .article-cta .button {
        width: 100%;
    }
}
@media (max-width: 520px) {
    .admin-sidebar nav { grid-template-columns: 1fr; }
}

/* Final polish for the trusted companies block */
.trust-section {
    padding-top: clamp(38px, 5vw, 72px);
    padding-bottom: clamp(38px, 5vw, 72px);
}
.trust-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.6vw, 28px);
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    color: #edf7f1;
    background:
        radial-gradient(circle at 84% 4%, rgba(202,255,64,.18), transparent 28%),
        linear-gradient(135deg, #071f19 0%, #10382f 58%, #174f42 100%);
    box-shadow: 0 28px 90px rgba(7,31,25,.16);
}
.trust-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.15), rgba(0,0,0,.75), rgba(0,0,0,.2));
}
.trust-copy {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(300px, .7fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: end;
    max-width: none;
}
.trust-copy .eyebrow {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--green);
}
.trust-copy h2 {
    grid-column: 1;
    max-width: 620px;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1;
}
.trust-copy p:last-child {
    grid-column: 2;
    grid-row: 2;
    max-width: 520px;
    margin: 0 0 4px;
    color: #cfe0d9;
    font-size: 17px;
    line-height: 1.58;
}
.trust-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.trust-facts span {
    display: grid;
    gap: 5px;
    min-height: 78px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.075);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.trust-facts strong {
    color: var(--green);
    font-size: clamp(27px, 2.7vw, 36px);
    line-height: 1;
}
.trust-facts small {
    color: #d8e6df;
    font-size: 14px;
    font-weight: 850;
}
.trust-panel .trusted-marquee {
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    padding: 8px 0 2px;
}
.trust-panel .trusted-marquee::before {
    background: linear-gradient(90deg, #0b281f, rgba(11,40,31,0));
}
.trust-panel .trusted-marquee::after {
    background: linear-gradient(270deg, #123c33, rgba(18,60,51,0));
}
.trust-panel .trusted-track {
    gap: 14px;
    animation-duration: 52s;
}
.trust-panel .trusted-logo {
    width: 220px;
    min-height: 104px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.trust-panel .trusted-logo img {
    width: 216px;
    max-height: 92px;
    object-fit: contain;
}
.trust-panel .trusted-logo span {
    color: var(--deep);
}

/* Final polish for the "Почему нам доверяют" proof block */
.expert-section {
    align-items: start;
    border: 1px solid rgba(255,255,255,.12);
    background:
        radial-gradient(circle at 88% 12%, rgba(215,255,68,.2), transparent 30%),
        radial-gradient(circle at 8% 100%, rgba(143,231,188,.16), transparent 34%),
        linear-gradient(135deg, #071f19 0%, #0f3a30 58%, #1f6f5d 100%);
    box-shadow: 0 26px 80px rgba(7, 31, 25, .18);
}
.expert-section > div:first-child {
    max-width: 440px;
}
.expert-section > div:first-child h2 {
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(34px, 3.8vw, 50px);
    line-height: 1.02;
}
.expert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.expert-grid article {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 8px 14px;
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 18px 42px rgba(0,0,0,.14);
}
.expert-grid article::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-top: 3px solid rgba(215,255,68,.95);
    pointer-events: none;
}
.expert-grid article i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    color: #0c3228;
    background: linear-gradient(135deg, var(--green), var(--mint));
    font-size: 13px;
    font-style: normal;
    font-weight: 1000;
    letter-spacing: 0;
}
.expert-grid article strong {
    align-self: center;
    color: var(--deep);
    font-size: 18px;
    line-height: 1.18;
}
.expert-grid article span {
    grid-column: 2;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .trust-copy {
        grid-template-columns: 1fr;
    }
    .trust-copy p:last-child {
        grid-column: 1;
        grid-row: auto;
    }
    .trust-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .expert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .trust-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .trust-panel {
        padding: 22px;
        border-radius: 18px;
    }
    .trust-copy h2 {
        font-size: 30px;
        line-height: 1.06;
    }
    .trust-copy p:last-child {
        font-size: 16px;
    }
    .trust-facts {
        grid-template-columns: 1fr;
    }
    .trust-facts span {
        min-height: 0;
    }
    .trust-panel .trusted-logo {
        width: 186px;
        min-height: 92px;
        padding: 8px 10px;
    }
    .trust-panel .trusted-logo img {
        width: 184px;
        max-height: 78px;
    }
    .expert-section {
        padding: 24px;
    }
    .expert-section > div:first-child h2 {
        font-size: 30px;
    }
    .expert-grid {
        grid-template-columns: 1fr;
    }
    .expert-grid article {
        min-height: 0;
        padding: 18px;
    }
}

/* SEO service landing pages */
.service-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: end;
    padding: clamp(74px, 10vw, 132px) clamp(18px, 5vw, 80px) clamp(44px, 6vw, 74px);
    color: #edf7f1;
    background:
        radial-gradient(circle at 82% 12%, rgba(215,255,68,.2), transparent 30%),
        linear-gradient(135deg, #071f19, #10382f 56%, #1f6f5d);
}
.service-hero > div,
.service-hero > aside,
.service-content,
.service-faq,
.service-cta {
    width: min(1180px, 100%);
    margin-inline: auto;
}
.service-hero h1 {
    max-width: 880px;
    margin: 10px 0 18px;
    color: #fff;
    font-size: clamp(44px, 6.8vw, 86px);
    line-height: .94;
}
.service-hero p {
    max-width: 740px;
    margin: 0;
    color: #d9e9e2;
    font-size: 20px;
    line-height: 1.58;
}
.service-hero aside {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.service-hero aside span {
    color: var(--green);
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.service-hero aside ul,
.service-checks {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.service-hero aside li,
.service-checks span {
    position: relative;
    padding-left: 24px;
}
.service-hero aside li::before,
.service-checks span::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green), var(--mint));
}
.service-content,
.service-faq {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(18px, 3vw, 34px);
    padding: clamp(44px, 6vw, 74px) clamp(18px, 5vw, 80px);
}
.service-content-alt {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    padding-top: 0;
}
.service-text,
.service-result,
.service-panel {
    min-width: 0;
}
.service-text {
    font-size: 19px;
    line-height: 1.72;
}
.service-text p:first-child {
    margin-top: 0;
}
.service-panel,
.service-result,
.faq-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(7,31,25,.06);
}
.service-panel h2,
.service-result h2 {
    margin: 0 0 18px;
    color: var(--deep);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
}
.service-checks span {
    color: #273f38;
    line-height: 1.45;
}
.service-result {
    align-self: start;
    background:
        radial-gradient(circle at 94% 0%, rgba(215,255,68,.18), transparent 34%),
        #fff;
}
.service-result p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.62;
}
.service-faq {
    grid-template-columns: 1fr;
    padding-top: 0;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.faq-grid h3 {
    margin: 0 0 10px;
    color: var(--deep);
    font-size: 22px;
    line-height: 1.15;
}
.faq-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.service-cta {
    margin-top: 0;
}
.service-related a {
    font-size: 18px;
}
.service-related span {
    min-height: 44px;
}
@media (max-width: 980px) {
    .service-hero,
    .service-content,
    .service-content-alt {
        grid-template-columns: 1fr;
    }
    .service-hero {
        padding-top: 98px;
    }
}
@media (max-width: 760px) {
    .service-hero {
        padding-inline: 18px;
    }
    .service-hero h1 {
        font-size: 32px;
        line-height: 1.02;
    }
    .service-hero p,
    .service-text,
    .service-result p:last-child {
        font-size: 16px;
    }
    .service-content,
    .service-faq {
        padding-inline: 18px;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Motion polish */
@keyframes heroDrift {
    0% { transform: translate3d(-1.2%, -1%, 0) scale(1.02); }
    100% { transform: translate3d(1.2%, 1%, 0) scale(1.06); }
}

@keyframes ambientPulse {
    0%, 100% { opacity: .68; filter: blur(6px); }
    50% { opacity: .92; filter: blur(10px); }
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(215, 255, 68, 0); }
    50% { box-shadow: 0 0 28px rgba(215, 255, 68, .28); }
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.motion-ready .scroll-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .58s ease var(--reveal-delay, 0ms),
        transform .58s ease var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.motion-ready .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.hero::before {
    animation: heroDrift 18s ease-in-out infinite alternate;
    will-change: transform;
}

.hero::after {
    animation: ambientPulse 7s ease-in-out infinite;
}

.hero-panel,
.modern-calculator,
.checklist-panel,
.local-reviews-widget,
.yandex-review-reader,
.trust-panel,
.cta-card,
.map-card,
.contact-card,
.service-hero aside {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.button,
.top-nav a,
.header-phone,
.calc-mode button,
.checklist-sheet label,
.local-review-actions a,
.local-review-nav button,
.join-team-button,
.lead-actions button,
.button-danger {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}

.button:hover,
.top-nav a:hover,
.header-phone:hover,
.local-review-actions a:hover,
.join-team-button:hover {
    transform: translateY(-2px);
}

.button-primary:hover,
.local-review-actions a:hover {
    box-shadow: 0 14px 34px rgba(36, 116, 95, .24);
}

.hero-panel:hover,
.modern-calculator:hover,
.checklist-panel:hover,
.local-reviews-widget:hover,
.yandex-review-reader:hover,
.trust-panel:hover,
.cta-card:hover,
.map-card:hover,
.contact-card:hover,
.service-hero aside:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 80px rgba(7, 31, 25, .14);
}

.benefit-grid article,
.service-grid a,
.steps article,
.expert-grid article,
.article-teasers a,
.article-card,
.case-card,
.person-card,
.trusted-logo,
.local-review-card,
.review-summary,
.pricing-note,
.service-card,
.demand-card {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.benefit-grid article:hover,
.service-grid a:hover,
.steps article:hover,
.expert-grid article:hover,
.article-teasers a:hover,
.article-card:hover,
.case-card:hover,
.person-card:hover,
.trusted-logo:hover,
.local-review-card:hover,
.review-summary:hover,
.pricing-note:hover,
.service-card:hover,
.demand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(7, 31, 25, .12);
}

.case-card img,
.article-card img,
.article-teasers img,
.person-card img {
    transition: transform .35s ease, filter .35s ease;
}

.case-card:hover img,
.article-card:hover img,
.article-teasers a:hover img,
.person-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.05) contrast(1.03);
}

.calc-mode button:hover,
.checklist-sheet label:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(7, 31, 25, .10);
}

.calc-mode button.is-active {
    animation: progressGlow 2.8s ease-in-out infinite;
}

.checklist-progress i {
    transition: width .35s ease, box-shadow .35s ease;
}

.checklist-sheet label:has(input:checked) {
    animation: progressGlow 2.6s ease-in-out 1;
}

.trusted-logo img {
    transition: transform .28s ease, filter .28s ease;
}

.trusted-logo:hover img {
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.05);
}

.local-review-nav button:hover {
    transform: translateY(-50%) scale(1.12);
}

.local-review-list {
    scroll-behavior: smooth;
}

.site-modal.is-open .site-modal__panel {
    animation: modalPop .2s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .motion-ready .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero::before,
    .hero::after,
    .calc-mode button.is-active,
    .checklist-sheet label:has(input:checked),
    .site-modal.is-open .site-modal__panel {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 760px) {
    .trusted-marquee,
    .reviews-marquee {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }

    .trusted-marquee::-webkit-scrollbar,
    .reviews-marquee::-webkit-scrollbar,
    .local-review-list::-webkit-scrollbar {
        display: none;
    }

    .trusted-marquee::before,
    .trusted-marquee::after,
    .reviews-marquee::before,
    .reviews-marquee::after {
        display: none;
    }

    .trusted-track,
    .reviews-track {
        animation: none !important;
        transform: none !important;
        padding: 0 6px 8px;
    }

    .trusted-logo,
    .reviews-track article {
        scroll-snap-align: start;
    }

    .trusted-logo {
        width: min(72vw, 250px);
        flex: 0 0 auto;
    }

    .trust-panel .trusted-logo {
        width: min(74vw, 258px);
    }

    .local-review-list {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        cursor: grab;
    }

    .local-review-list:active {
        cursor: grabbing;
    }

    .local-review-track {
        min-width: 0;
        width: max-content;
        padding-inline: 2px;
    }

    .local-review-card {
        scroll-snap-align: center;
    }
}
.error-page {
    min-height: min(680px, calc(100vh - 180px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: clamp(64px, 9vw, 120px) var(--page-padding, 24px);
    text-align: center;
}

.error-page__content {
    width: min(100%, 760px);
    margin: 0 auto;
}

.error-page .eyebrow {
    margin-inline: auto;
}

.error-page h1 {
    margin: 0 auto;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1;
}

.error-page__content > p:not(.eyebrow) {
    max-width: 620px;
    margin: 24px auto 0;
    color: var(--muted, #64726c);
    font-size: 20px;
    line-height: 1.55;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.error-page__links {
    width: min(100%, 720px);
    margin: 0 auto;
    padding-top: 2px;
}

.error-page__links h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.error-page__links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.error-page__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--line, rgba(7, 31, 25, 0.12));
    border-radius: 8px;
    color: inherit;
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.error-page__links a:hover {
    border-color: rgba(15, 123, 95, 0.34);
    color: var(--accent, #0f7b5f);
    background: #ffffff;
}

@media (max-width: 760px) {
    .error-page {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .error-page__content > p:not(.eyebrow) {
        font-size: 17px;
    }

    .error-page__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .error-page__actions .button {
        width: 100%;
    }
}


.form-consents {
    display: grid;
    gap: 7px;
    margin: 0 0 4px;
    justify-items: start;
}
.lead-form .form-consent {
    width: 100%;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: start;
    justify-items: start;
    gap: 7px;
    color: var(--muted, #64726c);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.42;
    text-align: left;
}
.lead-form .form-consent input[type="checkbox"] {
    appearance: auto;
    box-sizing: border-box;
    width: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    height: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border-radius: 2px;
    accent-color: var(--teal, #24745f);
}
.form-consent a {
    color: var(--teal, #24745f);
    font-weight: 800;
}
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(44px, 7vw, 88px) var(--page-padding, 24px);
}
.legal-page h1 {
    max-width: 860px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
}
.legal-page h2 {
    margin: 34px 0 12px;
    font-size: 24px;
}
.legal-page p {
    color: var(--muted, #64726c);
    font-size: 17px;
    line-height: 1.7;
}
.legal-updated {
    margin-bottom: 28px;
}
.lead-consents {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
}
.lead-consents small {
    color: var(--muted, #64726c);
}

.legal-content {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}
.legal-content h2 {
    margin: 30px 0 4px;
    padding-top: 18px;
    border-top: 1px solid var(--line, rgba(7, 31, 25, 0.12));
    color: var(--ink, #10231e);
    font-weight: 900;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
}
.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.legal-content p {
    margin: 0;
}
.legal-bullet {
    position: relative;
    display: grid;
    grid-template-columns: 9px 1fr;
    gap: 12px;
    align-items: start;
    padding-left: 4px;
}
.legal-bullet span {
    width: 6px;
    height: 6px;
    margin-top: 11px;
    border-radius: 999px;
    background: var(--teal, #24745f);
}
@media (max-width: 760px) {
    .legal-content {
        gap: 10px;
    }
    .legal-content h2 {
        margin-top: 24px;
    }
}
