:root {
    --color-ink: #f3f5f4;
    --color-muted: #c3cbc7;
    --color-gray: #202624;
    --color-gray-deep: #26312e;
    --color-gray-soft: #33423c;
    --color-emerald: #07845f;
    --color-emerald-soft: #55c996;
    --color-green: var(--color-emerald);
    --color-green-soft: var(--color-emerald-soft);
    --color-gold: #e0b83f;
    --color-gold-dark: #bf8918;
    --color-surface: #2a312f;
    --color-line: rgba(15, 122, 90, .16);
    --shadow-soft: 0 24px 70px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:where(main section[id]) {
    scroll-margin-top: 96px;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-gray);
    font-family: "Montserrat", Arial, sans-serif;
    overflow-x: hidden;
}

.site-shell {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    background: rgba(32, 38, 36, .94);
    border-bottom: 1px solid rgba(216, 173, 66, .18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    backdrop-filter: blur(16px);
}

.top-strip {
    border-bottom: 1px solid rgba(216, 173, 66, .14);
    color: var(--color-muted);
    font-size: 12px;
}

.top-strip__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    min-height: 34px;
}

.top-strip__item:first-child {
    color: var(--color-green);
    font-weight: 600;
}

.header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
}

.brand__logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 6px;
}

.brand__fallback {
    display: inline-block;
    color: var(--color-green);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand__logo + .brand__fallback {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #e5ebe8;
    font-size: 13px;
    font-weight: 600;
}

.main-nav a {
    position: relative;
    white-space: nowrap;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    background: var(--color-gold);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.telegram-link {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--color-green-soft);
    border-radius: 50%;
}

.telegram-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.whatsapp-link img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.header-phone {
    color: var(--color-green);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--small {
    min-height: 42px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    box-shadow: 0 14px 30px rgba(185, 133, 26, .22);
    font-size: 12px;
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    box-shadow: 0 20px 38px rgba(185, 133, 26, .3);
}

.button--ghost {
    color: #f7f0dc;
    background: linear-gradient(135deg, rgba(7, 132, 95, .24), rgba(224, 184, 63, .12));
    border-color: rgba(224, 184, 63, .55);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px auto;
    background: var(--color-green);
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 158px 0 74px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(32, 38, 36, .98) 0%, rgba(32, 38, 36, .94) 48%, rgba(32, 38, 36, .74) 100%),
        var(--hero-bg) center right / cover no-repeat;
}

.hero::before {
    position: absolute;
    inset: 126px auto auto -180px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(216, 173, 66, .46);
    border-radius: 50%;
    content: "";
}

.hero::after {
    position: absolute;
    right: 8vw;
    bottom: 42px;
    width: 260px;
    height: 260px;
    border: 48px solid rgba(15, 122, 90, .1);
    border-radius: 50%;
    content: "";
}

.hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(47, 55, 53, .2), rgba(32, 38, 36, .96));
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: center;
    gap: 54px;
    min-width: 0;
}

.hero__content {
    max-width: 760px;
    min-width: 0;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--color-green);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    flex-wrap: wrap;
}

.hero__kicker::before {
    width: 34px;
    height: 2px;
    background: var(--color-gold);
    content: "";
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    color: var(--color-ink);
    font-size: clamp(34px, 4.45vw, 56px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero__subtitle {
    max-width: 670px;
    margin: 24px 0 0;
    color: var(--color-muted);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 38px;
}

.benefit {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(7, 132, 95, .26), rgba(224, 184, 63, .08));
    border: 1px solid rgba(85, 201, 150, .24);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.benefit__icon {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    background: rgba(15, 122, 90, .11);
    border-radius: 50%;
    color: var(--color-green);
}

.benefit__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.leader-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 500px;
    padding: 18px;
    background: rgba(47, 55, 53, .78);
    border: 1px solid rgba(15, 122, 90, .18);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.leader-card__image {
    position: relative;
    height: calc(100% - 145px);
    min-height: 340px;
    aspect-ratio: auto;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 122, 90, .14), rgba(216, 173, 66, .2)), #171c1a;
    border-radius: 6px;
}

.leader-card__image--fit {
    display: grid;
    place-items: center;
}

.leader-card__image--portrait {
    display: block;
}

.leader-card__image--fit::before,
.leader-section__photo::before {
    position: absolute;
    inset: -28px;
    background-image: var(--portrait-src);
    background-position: center;
    background-size: cover;
    content: "";
    filter: blur(18px);
    opacity: .22;
    transform: scale(1.08);
}

.leader-card__image--fit::after,
.leader-section__photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 28, 26, .18), rgba(23, 28, 26, .62));
    content: "";
}

.leader-card__image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.leader-card__image--fit img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border: 1px solid rgba(216, 173, 66, .18);
    border-radius: 6px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .24);
}

.buh-page .leader-card__image--portrait img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 50% 34%;
    border: 1px solid rgba(216, 173, 66, .18);
    border-radius: 6px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .24);
}

.leader-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: inherit;
    place-items: center;
    color: var(--color-green);
    text-align: center;
}

.leader-card__placeholder span {
    display: grid;
    width: 156px;
    height: 156px;
    place-items: center;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(15, 122, 90, .18);
    border-radius: 50%;
    box-shadow: 0 16px 42px rgba(15, 122, 90, .14);
    font-size: 52px;
    font-weight: 800;
}

.leader-card__placeholder small {
    margin-top: -58px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.leader-card__caption {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 14px;
    padding: 18px;
    color: #26312e;
    background: rgba(244, 246, 245, .95);
    border-left: 4px solid var(--color-gold);
    border-radius: 6px;
    box-shadow: 0 18px 36px rgba(28, 54, 47, .16);
}

.leader-card__caption strong,
.leader-card__caption span,
.leader-card__caption em {
    display: block;
}

.leader-card__caption strong {
    font-size: 18px;
    line-height: 1.3;
    color: #26312e;
}

.leader-card__caption span {
    margin-top: 6px;
    color: var(--color-green);
    font-size: 14px;
    font-weight: 800;
}

.leader-card__caption em {
    margin-top: 6px;
    color: #69736f;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
}

.leader-card__badge {
    position: static;
    z-index: 3;
    order: -1;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 12px 16px;
    color: #fff;
    background: var(--color-green);
    border-radius: 5px;
    box-shadow: 0 14px 34px rgba(15, 122, 90, .28);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.section {
    position: relative;
    padding: 96px 0;
    background: linear-gradient(135deg, rgba(7, 132, 95, .11), rgba(32, 38, 36, 1) 42%, rgba(224, 184, 63, .08));
}

.section--muted,
.section--split,
.section--faq {
    background: linear-gradient(135deg, rgba(224, 184, 63, .13), rgba(38, 49, 46, 1) 42%, rgba(7, 132, 95, .16));
}

.section-head {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-head--left {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.section-head span,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--color-gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-head span::before,
.eyebrow::before {
    width: 32px;
    height: 2px;
    background: var(--color-emerald-soft);
    content: "";
}

.section h2,
.consultation h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: 0;
}

.section-head p,
.solution-panel p,
.leader-section p,
.consultation p,
.footer p,
.mini-card p,
.service-card p,
.trust-list p,
.faq-list p {
    color: var(--color-muted);
    line-height: 1.65;
}

.card-grid,
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-card,
.service-card,
.case-grid article,
.trust-list div,
.faq-list details,
.workflow div {
    min-width: 0;
    padding: 22px;
    background: linear-gradient(145deg, rgba(7, 132, 95, .2), rgba(42, 49, 47, .9) 44%, rgba(224, 184, 63, .1));
    border: 1px solid rgba(224, 184, 63, .26);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
}

.problem-slider {
    position: relative;
    margin-top: 10px;
}

.problem-slider__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.problem-slider__head > span {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-controls button {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    background: rgba(42, 49, 47, .88);
    border: 1px solid rgba(216, 173, 66, .28);
    border-radius: 50%;
    cursor: pointer;
}

.slider-controls button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-gold);
    border-right: 2px solid var(--color-gold);
    content: "";
}

.slider-controls [data-slider-prev]::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.slider-controls [data-slider-next]::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.problem-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 2px 18px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) rgba(42, 49, 47, .72);
}

.problem-track::-webkit-scrollbar {
    height: 6px;
}

.problem-track::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 999px;
}

.problem-track::-webkit-scrollbar-track {
    background: rgba(42, 49, 47, .72);
}

.problem-card {
    display: grid;
    flex: 0 0 calc((100% - 32px) / 3);
    min-height: 238px;
    align-content: start;
    scroll-snap-align: start;
}

.problem-icon {
    position: relative;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    background: rgba(15, 122, 90, .16);
    border: 1px solid rgba(85, 185, 141, .24);
    border-radius: 14px;
}

.problem-icon::before,
.problem-icon::after {
    position: absolute;
    content: "";
}

.problem-icon--bank::before {
    inset: 14px 10px 12px;
    border: 2px solid var(--color-gold);
    border-top-width: 8px;
    border-radius: 3px;
}

.problem-icon--tax::before {
    inset: 10px 12px;
    border-left: 4px solid var(--color-gold);
    border-bottom: 4px solid var(--color-gold);
    transform: skew(-12deg);
}

.problem-icon--check::before {
    inset: 12px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
}

.problem-icon--check::after {
    left: 20px;
    top: 24px;
    width: 14px;
    height: 7px;
    border-left: 3px solid var(--color-gold);
    border-bottom: 3px solid var(--color-gold);
    transform: rotate(-45deg);
}

.problem-icon--error::before {
    left: 24px;
    top: 11px;
    width: 4px;
    height: 23px;
    background: var(--color-gold);
    border-radius: 999px;
}

.problem-icon--error::after {
    left: 24px;
    bottom: 11px;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
}

.problem-icon--report::before {
    inset: 10px 13px;
    border: 2px solid var(--color-gold);
    border-radius: 4px;
}

.problem-icon--report::after {
    left: 18px;
    right: 18px;
    top: 20px;
    height: 14px;
    border-top: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
}

.problem-icon--base::before {
    left: 12px;
    right: 12px;
    top: 11px;
    height: 11px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
}

.problem-icon--base::after {
    left: 12px;
    right: 12px;
    top: 17px;
    height: 22px;
    border: 2px solid var(--color-gold);
    border-top: 0;
    border-radius: 0 0 50% 50%;
}

.problem-icon--import::before {
    left: 12px;
    top: 18px;
    width: 28px;
    height: 16px;
    border: 2px solid var(--color-gold);
    border-radius: 4px;
}

.problem-icon--import::after {
    left: 22px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-right: 3px solid var(--color-gold);
    border-bottom: 3px solid var(--color-gold);
    transform: rotate(45deg);
}

.mini-card b,
.service-card b,
.case-grid b,
.trust-list b,
.workflow span,
.faq-list summary {
    display: block;
    color: var(--color-ink);
    font-weight: 800;
    line-height: 1.35;
}

.service-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    position: relative;
    display: block;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(7, 132, 95, .42), rgba(224, 184, 63, .18));
    border: 1px solid rgba(224, 184, 63, .3);
    border-radius: 16px;
}

.service-icon::before,
.service-icon::after {
    position: absolute;
    content: "";
}

.service-icon::before {
    inset: 15px;
    border: 3px solid var(--color-gold);
    border-radius: 6px;
}

.service-icon--consult::before {
    border-radius: 50%;
}

.service-icon--unlock::before {
    top: 24px;
    border-radius: 5px;
}

.service-icon--unlock::after {
    left: 19px;
    top: 11px;
    width: 18px;
    height: 18px;
    border: 3px solid var(--color-gold);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}

.service-icon--restore::before {
    border-radius: 50%;
    border-right-color: transparent;
}

.service-icon--audit::after,
.service-icon--chief::after {
    left: 20px;
    top: 20px;
    width: 16px;
    height: 8px;
    border-left: 3px solid var(--color-gold);
    border-bottom: 3px solid var(--color-gold);
    transform: rotate(-45deg);
}

.expertise-card {
    min-height: 280px;
    justify-content: flex-start;
}

.expertise-card > b {
    min-height: 66px;
}

.expertise-card > p {
    margin-top: 0;
}

.expertise-card > .details-link {
    margin-top: auto;
}

.expertise-image,
.case-image,
.photo-placeholder,
.logo-row span {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 20%, rgba(224, 184, 63, .34), transparent 34%),
        radial-gradient(circle at 78% 70%, rgba(7, 132, 95, .45), transparent 38%),
        linear-gradient(135deg, rgba(7, 132, 95, .35), rgba(224, 184, 63, .16));
    border: 1px solid rgba(224, 184, 63, .28);
    border-radius: 8px;
}

.expertise-image {
    height: 118px;
    margin: -4px -4px 18px;
}

.expertise-image::before,
.case-image::before {
    color: rgba(243, 245, 244, .72);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    content: "Изображение";
}

.service-card a,
.case-grid a {
    color: var(--color-gold);
    font-weight: 800;
}

.solution-panel {
    display: grid;
    grid-template-columns: .72fr 1fr;
    gap: 34px;
    margin-top: 42px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(15, 122, 90, .2), rgba(42, 49, 47, .95));
    border: 1px solid rgba(85, 185, 141, .22);
    border-radius: 8px;
}

.solution-panel h3 {
    margin: 0;
    color: var(--color-ink);
    font-size: 32px;
    line-height: 1.16;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.steps-grid div {
    padding: 18px;
    background: rgba(32, 38, 36, .72);
    border: 1px solid rgba(216, 173, 66, .16);
    border-radius: 8px;
}

.steps-grid b,
.workflow b {
    color: var(--color-gold);
}

.steps-grid b {
    color: #765900;
    font-weight: 800;
}

.steps-grid span {
    display: block;
    margin-top: 8px;
    color: var(--color-ink);
    font-weight: 800;
}

.trust-layout,
.faq-layout {
    display: grid;
    grid-template-columns: .62fr 1fr;
    gap: 42px;
    align-items: start;
}

.trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.section--leader {
    background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-gray-deep) 100%);
}

.leader-section {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 52px;
    align-items: center;
}

.leader-section__photo {
    position: relative;
    display: grid;
    width: 100%;
    width: 100%;
    aspect-ratio: 4 / 5;
    place-items: center;
    overflow: hidden;
    background: #171c1a;
    border: 1px solid rgba(216, 173, 66, .2);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.leader-section__photo img {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    height: auto;
    max-height: calc(100% - 32px);
    object-fit: cover;
    object-position: 50% 34%;
    border: 1px solid rgba(216, 173, 66, .18);
    border-radius: 8px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .24);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.stats-row b {
    padding: 16px 12px;
    color: #f7f0dc;
    background: rgba(216, 173, 66, .12);
    border: 1px solid rgba(216, 173, 66, .2);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
}

.case-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-grid article {
    min-height: 300px;
}

.case-image {
    height: 118px;
    margin: -2px -2px 18px;
}

.case-grid span {
    display: block;
    margin-bottom: 12px;
    color: var(--color-gold);
    font-weight: 800;
}

.question-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 26px;
    background: rgba(15, 122, 90, .18);
    border: 1px solid rgba(85, 185, 141, .24);
    border-radius: 8px;
}

.question-strip b {
    color: var(--color-ink);
    font-size: 20px;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.workflow div {
    min-height: 156px;
}

.workflow b {
    display: block;
    margin-bottom: 20px;
    font-size: 28px;
}

.logo-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.logo-row span {
    flex: 0 0 220px;
    min-height: 94px;
    color: var(--color-muted);
    font-weight: 800;
    text-align: center;
    scroll-snap-align: start;
}

.photo-slider,
.logo-slider {
    margin-top: 30px;
}

.photo-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.photo-placeholder {
    flex: 0 0 220px;
    min-height: 148px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    scroll-snap-align: start;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list summary {
    cursor: pointer;
}

.faq-list p {
    margin-bottom: 0;
}

.consultation {
    padding: 92px 0;
    background: linear-gradient(135deg, rgba(185, 133, 26, .2), rgba(15, 122, 90, .2)), var(--color-gray);
}

.consultation__grid {
    display: grid;
    grid-template-columns: .82fr 1fr;
    gap: 42px;
    align-items: center;
}

.lead-form {
    display: grid;
    gap: 12px;
    padding: 28px;
    background: rgba(42, 49, 47, .9);
    border: 1px solid rgba(216, 173, 66, .2);
    border-radius: 8px;
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    color: var(--color-ink);
    background: rgba(32, 38, 36, .9);
    border: 1px solid rgba(195, 203, 199, .18);
    border-radius: 6px;
    font: inherit;
}

.lead-form textarea {
    min-height: 118px;
    padding-top: 16px;
    resize: vertical;
}

.footer {
    padding: 54px 0;
    background: #171c1a;
    border-top: 1px solid rgba(216, 173, 66, .16);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 28px;
}

.footer b {
    display: block;
    margin-bottom: 14px;
    color: var(--color-ink);
}

.footer nav {
    display: grid;
    gap: 10px;
}

.footer a {
    color: var(--color-muted);
    font-size: 14px;
}

.footer-contacts p {
    margin-bottom: 16px;
}

.footer .telegram-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--color-emerald);
    background: #fffaf0;
    border: 1px solid rgba(255, 250, 240, .72);
    border-radius: 50%;
}

.footer .telegram-link svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.footer .telegram-link:hover {
    color: #fffaf0;
    background: #229ed9;
    border-color: #229ed9;
}

.footer .telegram-link:focus-visible {
    outline: 3px solid rgba(255, 250, 240, .7);
    outline-offset: 3px;
}

.footer-contacts .telegram-link {
    display: inline-grid;
    margin-right: 8px;
    vertical-align: top;
}

.footer .whatsapp-link,
.contact-telegram.whatsapp-link {
    background: #fffaf0;
    border-color: rgba(255, 250, 240, .72);
}

.footer .whatsapp-link:hover,
.contact-telegram.whatsapp-link:hover {
    background: #fff;
    border-color: #fff;
}

.header-actions .whatsapp-link {
    background: #fff;
}

@media (max-width: 1120px) {
    .header-top,
    .top-strip {
        display: none;
    }

    .header-main {
        grid-template-columns: auto auto;
        min-height: 70px;
    }

    .menu-toggle {
        position: relative;
        display: block;
        justify-self: end;
    }

    .menu-toggle span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        margin: 0;
        transform: translate(-50%, -50%);
        transform-origin: center;
    }

    .menu-toggle span:nth-child(1) {
        transform: translate(-50%, -9px);
    }

    .menu-toggle span:nth-child(3) {
        transform: translate(-50%, 7px);
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .main-nav {
        position: absolute;
        top: 70px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        background: #fff;
        border: 1px solid var(--color-line);
        border-radius: 8px;
        box-shadow: var(--shadow-soft);
    }

    .main-nav.is-open {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .hero {
        padding-top: 116px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }

    .leader-card {
        min-height: 520px;
        max-width: 520px;
    }

    .card-grid--five,
    .case-grid,
    .workflow,
    .logo-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-layout,
    .faq-layout,
    .leader-section,
    .consultation__grid,
    .solution-panel,
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :where(main section[id]) {
        scroll-margin-top: 80px;
    }

    .container {
        width: auto;
        margin-right: 14px;
        margin-left: 14px;
    }

    .brand {
        min-width: 62px;
    }

    .brand__logo {
        width: 58px;
        height: 58px;
    }

    .hero {
        min-height: auto;
        padding: 104px 0 46px;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: 24px;
        line-height: 1.16;
    }

    .hero__kicker {
        font-size: 12px;
        line-height: 1.35;
    }

    .hero__subtitle {
        font-size: 14px;
        line-height: 1.55;
    }

    .hero__buttons {
        display: grid;
    }

    .button {
        width: 100%;
        min-height: 54px;
        padding: 0 16px;
        font-size: 13px;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .leader-card {
        min-height: 500px;
        padding: 12px;
    }

    .leader-card__image {
        min-height: 330px;
    }

    .leader-card__badge {
        top: 22px;
        left: 22px;
    }

    .leader-card__caption {
        right: auto;
        bottom: auto;
        left: auto;
    }

    .section {
        padding: 62px 0;
    }

    .section h2,
    .consultation h2 {
        font-size: 28px;
    }

    .card-grid,
    .card-grid--five,
    .case-grid,
    .trust-list,
    .steps-grid,
    .workflow,
    .logo-row,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .problem-card {
        flex-basis: min(86vw, 320px);
        min-height: 220px;
    }

    .problem-slider__head {
        align-items: flex-start;
    }

    .solution-panel,
    .question-strip,
    .lead-form {
        padding: 20px;
    }

    .question-strip {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Keep informational photography fully visible in cards and detail blocks. */
.expertise-image,
.case-image,
.detail-hero__image,
.service-detail-hero__media,
.case-card,
.image-card {
    background-color: #f5efdf;
}

.expertise-image img,
.case-image img,
.case-card > img,
.image-card > img,
.detail-hero__image img,
.service-detail-hero__media img {
    object-fit: contain !important;
    object-position: center center !important;
}

/* Forms, reviews and cost calculator */
.form-consent,
.quiz-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: inherit;
    font-size: 12px;
    line-height: 1.45;
}
.form-consent { grid-column: 1 / -1; margin: 2px 0 4px; }
.form-consent input,
.quiz-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #d8ad42; }
.form-consent a,
.quiz-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner {
    position: fixed;
    z-index: 2000;
    right: 24px;
    bottom: 24px;
    display: none;
    width: min(560px, calc(100vw - 48px));
    padding: 20px;
    color: #24312a;
    background: #fffaf0;
    border: 1px solid rgba(216, 173, 66, .65);
    border-radius: 16px;
    box-shadow: 0 22px 70px rgba(18, 31, 24, .28);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
.cookie-banner div { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.cookie-banner a { color: #275317; font-weight: 700; }
.cookie-banner button { padding: 10px 22px; color: #fff; background: #275317; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 600px) {
    .cookie-banner { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 16px; }
    .cookie-banner p { font-size: 12px; }
}

.form-trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-status {
    min-height: 20px;
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.45;
}

.form-status.is-success { color: #b8e7b0; }
.form-status.is-error { color: #ffb4a8; }
.form-status.is-pending { color: #f4dda0; }

.reviews-slider { position: relative; }
.reviews-controls { position: absolute; top: 8px; right: 0; }
.reviews-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 520px;
    gap: 22px;
    overflow-x: auto;
    padding: 8px 2px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-shot {
    min-height: 360px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(39, 83, 23, .16);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(30, 50, 35, .12);
    scroll-snap-align: start;
}
.review-shot__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    color: #24312a;
    background: #f5f1e7;
    border-bottom: 1px solid #e5dfd1;
}
.review-shot__bar span {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #d8ad42, #275317);
    border-radius: 50%;
}
.review-shot__placeholder {
    display: grid;
    place-content: center;
    gap: 10px;
    min-height: 290px;
    padding: 32px;
    color: #607067;
    text-align: center;
    background: repeating-linear-gradient(-45deg, #fff, #fff 14px, #faf8f2 14px, #faf8f2 28px);
}
.review-shot__placeholder strong { color: #275317; font-size: 20px; }
.review-shot__image {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center top;
    background: #fff;
}

.quiz-open { overflow: hidden; }
.quiz-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    place-items: center;
    padding: 24px;
}
.quiz-modal.is-open { display: grid; }
.quiz-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 24, 19, .76);
    backdrop-filter: blur(6px);
}
.quiz-dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 36px;
    color: #202624;
    background: #fffaf0;
    border: 1px solid rgba(216, 173, 66, .5);
    border-radius: 18px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
}
.quiz-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    color: #275317;
    background: #efe9dc;
    border: 0;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}
.quiz-heading { padding-right: 50px; }
.quiz-heading h2 { margin: 8px 0; color: #202624; font-size: clamp(26px, 4vw, 38px); }
.quiz-heading p { margin: 0 0 18px; color: #59645e; }
.quiz-heading small { display: block; margin-top: 8px; color: #69756e; }
.quiz-progress { height: 8px; overflow: hidden; background: #e5dfd1; border-radius: 99px; }
.quiz-progress span { display: block; width: 16.67%; height: 100%; background: linear-gradient(90deg, #275317, #d8ad42); transition: width .25s ease; }
.quiz-form { margin-top: 24px; }
.quiz-step { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.quiz-step.is-active { display: grid; }
.quiz-step legend { grid-column: 1 / -1; width: 100%; margin-bottom: 8px; color: #202624; font-size: 22px; font-weight: 800; }
.quiz-step > label:not(.quiz-consent) { display: block; cursor: pointer; }
.quiz-step > label:not(.quiz-consent) input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-step > label:not(.quiz-consent) span {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 12px 16px;
    color: #344039;
    background: #fff;
    border: 1px solid #d9d7ce;
    border-radius: 10px;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.quiz-step > label:not(.quiz-consent) input:checked + span { color: #214813; background: #edf5e9; border-color: #275317; box-shadow: 0 0 0 2px rgba(39, 83, 23, .12); }
.quiz-step--contacts { grid-template-columns: 1fr; }
.quiz-step--contacts > input { width: 100%; min-height: 56px; padding: 0 16px; color: #202624; background: #fff; border: 1px solid #d9d7ce; border-radius: 10px; font: inherit; }
.quiz-consent { display: flex; align-items: flex-start; gap: 10px; color: #4c5a52; font-size: 14px; }
.quiz-consent input { margin-top: 3px; }
.quiz-consent a { color: #275317; text-decoration: underline; }
.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-actions [hidden] { display: none !important; }
.quiz-back { color: #275317; background: transparent; border: 1px solid rgba(39, 83, 23, .35); }
.quiz-back:disabled { opacity: .45; cursor: default; }

.about-page .leader-section {
    grid-template-columns: minmax(420px, .9fr) minmax(0, 1.3fr);
    gap: clamp(34px, 5vw, 72px);
}
.about-page .about-team-photo {
    min-height: 0;
    aspect-ratio: 1 / 1;
    align-self: start;
}
.about-page .about-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
}
.about-page .leader-section__content { max-width: none; }

.buh-page .leader-card__image--portrait img {
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 900px) {
    .about-page .leader-section { grid-template-columns: 1fr; }
    .about-page .about-team-photo { min-height: 0; }
}

@media (max-width: 640px) {
    .reviews-controls { position: static; margin-top: 18px; }
    .reviews-track { grid-auto-columns: 88%; }
    .review-shot { min-height: 320px; }
    .quiz-modal { padding: 10px; }
    .quiz-dialog { max-height: calc(100vh - 20px); padding: 28px 18px 22px; border-radius: 14px; }
    .quiz-heading { padding-right: 34px; }
    .quiz-step { grid-template-columns: 1fr; }
    .quiz-actions { position: sticky; bottom: -22px; padding: 14px 0 4px; background: #fffaf0; }
    .quiz-actions .button { flex: 1; padding-inline: 14px; }
}

/* Visiting card palette override */
:root {
    --color-ink: #171813;
    --color-muted: #5f6157;
    --color-gray: #faf6f0;
    --color-gray-deep: #faefc6;
    --color-gray-soft: #fffaf0;
    --color-emerald: #275317;
    --color-emerald-soft: #39a31e;
    --color-green: var(--color-emerald);
    --color-green-soft: var(--color-emerald-soft);
    --color-gold: #faefc6;
    --color-gold-dark: #e1c65d;
    --color-surface: #fffaf0;
    --color-line: rgba(39, 83, 23, .22);
    --shadow-soft: 0 24px 70px rgba(39, 83, 23, .18);
    --triangle-cluster:
        linear-gradient(135deg, rgba(39, 83, 23, .22) 0 48%, transparent 48% 100%),
        linear-gradient(45deg, transparent 0 42%, rgba(250, 239, 198, .86) 42% 68%, transparent 68% 100%),
        linear-gradient(225deg, transparent 0 46%, rgba(57, 163, 30, .16) 46% 70%, transparent 70% 100%),
        linear-gradient(315deg, rgba(23, 24, 19, .075) 0 34%, transparent 34% 100%);
}

body,
.section {
    background-color: #faf6f0;
}

.section {
    background-image:
        var(--triangle-cluster),
        var(--triangle-cluster);
    background-position: calc(100% + 110px) 58px, -120px calc(100% - 70px);
    background-repeat: no-repeat;
    background-size: 300px 300px, 240px 240px;
}

.site-header {
    background: rgba(250, 246, 240, .96);
    border-bottom-color: rgba(39, 83, 23, .22);
    box-shadow: 0 10px 30px rgba(39, 83, 23, .12);
}

.top-strip {
    border-bottom-color: rgba(39, 83, 23, .16);
}

.main-nav {
    color: var(--color-ink);
}

.hero {
    background-color: #faf6f0;
    background-image:
        linear-gradient(90deg, rgba(250, 246, 240, .9) 0%, rgba(250, 246, 240, .78) 48%, rgba(250, 239, 198, .2) 100%),
        var(--hero-bg),
        var(--triangle-cluster),
        var(--triangle-cluster),
        var(--triangle-cluster);
    background-position: 0 0, center right, -70px 118px, 42% 76px, 92% 82%;
    background-repeat: no-repeat;
    background-size: auto, cover, 300px 300px, 220px 220px, 360px 360px;
}

.hero__shade {
    background: linear-gradient(180deg, rgba(250, 246, 240, .08), rgba(250, 246, 240, .86));
}

.section--muted,
.section--split,
.section--faq,
.section--leader {
    background-color: #faf6f0;
    background-image:
        linear-gradient(135deg, rgba(250, 239, 198, .72), rgba(250, 246, 240, .62) 54%, rgba(39, 83, 23, .12)),
        var(--triangle-cluster),
        var(--triangle-cluster);
    background-position: 0 0, -90px 70px, calc(100% + 80px) calc(100% - 120px);
    background-repeat: no-repeat;
    background-size: auto, 280px 280px, 340px 340px;
}

.button--small,
.button--primary,
.leader-card__badge {
    color: #fffaf0;
    background: var(--color-emerald);
    box-shadow: 0 18px 36px rgba(39, 83, 23, .22);
}

.button--ghost {
    color: var(--color-emerald);
    background: rgba(250, 239, 198, .72);
    border-color: rgba(39, 83, 23, .36);
}

.section-head span,
.eyebrow {
    color: var(--color-emerald);
}

.section-head span::before,
.eyebrow::before {
    background: var(--color-emerald-soft);
}

.service-card a,
.case-grid a {
    color: var(--color-emerald);
    text-decoration-color: rgba(39, 83, 23, .36);
    text-underline-offset: 4px;
}

.service-card a:hover,
.case-grid a:hover {
    color: var(--color-emerald-soft);
}

.benefit,
.mini-card,
.service-card,
.case-grid article,
.trust-list div,
.faq-list details,
.workflow div,
.lead-form {
    color: var(--color-ink);
    background: rgba(255, 250, 240, .92);
    border-color: rgba(39, 83, 23, .22);
    box-shadow: 0 18px 45px rgba(39, 83, 23, .1);
}

.leader-card {
    background: rgba(255, 250, 240, .9);
    border-color: rgba(39, 83, 23, .22);
}

.leader-card__image {
    background: linear-gradient(135deg, rgba(39, 83, 23, .18), rgba(250, 239, 198, .55)), #faefc6;
}

.leader-card__caption {
    background: rgba(250, 246, 240, .96);
    border-left-color: var(--color-emerald);
}

.problem-icon {
    display: grid;
    place-items: center;
    color: #fffaf0;
    background: var(--color-emerald);
    border-color: rgba(39, 83, 23, .26);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.problem-icon::before,
.problem-icon::after {
    display: none;
}

.solution-panel,
.question-strip,
.consultation {
    background: linear-gradient(135deg, rgba(39, 83, 23, .16), rgba(250, 239, 198, .72));
    border-color: rgba(39, 83, 23, .24);
}

.steps-grid div,
.photo-placeholder,
.logo-row span,
.expertise-image,
.case-image {
    background:
        radial-gradient(circle at 25% 20%, rgba(250, 239, 198, .76), transparent 34%),
        radial-gradient(circle at 78% 70%, rgba(39, 83, 23, .34), transparent 38%),
        #fffaf0;
    border-color: rgba(39, 83, 23, .22);
}

.lead-form input,
.lead-form textarea {
    color: var(--color-ink);
    background: #fffaf0;
    border-color: rgba(39, 83, 23, .24);
}

.footer {
    background: var(--color-emerald);
    border-top-color: rgba(250, 239, 198, .45);
}

.footer b,
.footer a,
.footer p {
    color: #fffaf0;
}

.leader-section {
    min-width: 0;
}

.leader-section > div {
    min-width: 0;
}

.leader-section h2,
.leader-section p {
    overflow-wrap: anywhere;
}

.stats-row b {
    overflow-wrap: normal;
    word-break: normal;
}

.expertise-image,
.case-image {
    overflow: hidden;
}

.expertise-image img,
.case-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expertise-image::before,
.case-image::before {
    content: none;
}

.stats-row b {
    color: var(--color-ink);
    background: rgba(255, 250, 240, .94);
    border-color: rgba(39, 83, 23, .24);
    border-left: 4px solid var(--color-emerald);
}

.workflow b,
.case-grid span {
    color: var(--color-emerald);
}

.workflow div {
    border-color: rgba(39, 83, 23, .22);
}

@media (max-width: 760px) {
    .leader-section {
        display: block;
        overflow: hidden;
    }

    .leader-section__photo {
        width: min(100%, 320px);
        height: min(72vh, 430px);
        margin: 0 auto 24px;
        aspect-ratio: auto;
        background: linear-gradient(135deg, rgba(250, 239, 198, .72), rgba(255, 250, 240, .96));
    }

    .leader-section__photo::before,
    .leader-section__photo::after {
        display: none;
    }

    .leader-section__photo img {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        max-height: none;
        padding: 12px;
        object-fit: contain;
        object-position: center top;
        border: 0;
        box-shadow: none;
    }

    .leader-section h2 {
        font-size: 27px;
        line-height: 1.14;
    }

    .leader-section p {
        font-size: 14px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .photo-slider {
        margin-top: 24px;
        overflow: hidden;
    }

    .photo-track {
        margin-right: -14px;
        padding-right: 14px;
    }

    .photo-placeholder {
        flex-basis: min(78vw, 260px);
        min-height: 180px;
        aspect-ratio: 3 / 4;
    }
}

/* Business card geometry */
:root {
    --color-ink: #101010;
    --color-muted: #5f6157;
    --color-gray: #faf6f0;
    --color-gray-deep: #faefc6;
    --color-gray-soft: #fff8f0;
    --color-emerald: #275317;
    --color-emerald-soft: #39a31e;
    --color-gold: #faefc6;
    --color-gold-dark: #d8c06a;
    --color-surface: #fff8f0;
    --color-line: rgba(39, 83, 23, .24);
}

body,
.section {
    background-color: #faf6f0;
    background-image: none;
}

.section,
.hero,
.consultation {
    isolation: isolate;
}

.section::before,
.section::after,
.hero::before,
.hero::after,
.consultation::before,
.consultation::after {
    position: absolute;
    inset: auto;
    z-index: 0;
    border: 0;
    border-radius: 0;
    transform: none;
    pointer-events: none;
    content: "";
}

.section > .container,
.hero > .container,
.consultation > .container {
    position: relative;
    z-index: 2;
}

.consultation {
    position: relative;
    overflow: hidden;
}

.hero__shade {
    z-index: 1;
}

.section::before,
.hero::before,
.consultation::before {
    top: 0;
    left: 0;
    width: min(44vw, 520px);
    height: min(26vw, 310px);
    background: #275317;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.section::after,
.hero::after,
.consultation::after {
    right: 0;
    bottom: 0;
    width: min(52vw, 620px);
    height: min(22vw, 260px);
    background: #275317;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.section:nth-of-type(even)::before {
    top: auto;
    bottom: 0;
    background: #faefc6;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.section:nth-of-type(even)::after {
    top: 0;
    bottom: auto;
    background: #faefc6;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.section:nth-of-type(3n)::before {
    top: 34px;
    bottom: auto;
    width: min(32vw, 390px);
    height: min(22vw, 260px);
    background: #275317;
    clip-path: polygon(0 0, 78% 0, 0 100%);
}

.section:nth-of-type(3n)::after {
    right: -1px;
    bottom: 18px;
    width: min(38vw, 450px);
    height: min(18vw, 220px);
    background: #faefc6;
    clip-path: polygon(100% 0, 100% 100%, 16% 100%);
}

.section:nth-of-type(4n)::before {
    top: auto;
    bottom: 0;
    width: min(42vw, 500px);
    height: min(18vw, 220px);
    background: #faefc6;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.section:nth-of-type(4n)::after {
    top: 0;
    bottom: auto;
    width: min(28vw, 340px);
    height: min(24vw, 290px);
    background: #275317;
    clip-path: polygon(22% 0, 100% 0, 100% 100%);
}

.section:nth-of-type(5n)::before {
    top: 0;
    left: -1px;
    width: min(25vw, 320px);
    height: min(30vw, 360px);
    background: #faefc6;
    clip-path: polygon(0 0, 100% 0, 0 68%);
}

.section:nth-of-type(5n)::after {
    right: 0;
    bottom: 0;
    width: min(48vw, 570px);
    height: min(20vw, 245px);
    background: #275317;
    clip-path: polygon(100% 18%, 100% 100%, 0 100%);
}

.section--muted,
.section--split,
.section--faq,
.section--leader,
.consultation {
    background-color: #faf6f0;
    background-image: linear-gradient(135deg, rgba(250, 239, 198, .72), rgba(250, 246, 240, .68));
}

.hero {
    background-color: #faf6f0;
    background-image:
        linear-gradient(90deg, rgba(250, 246, 240, .9) 0%, rgba(250, 246, 240, .78) 48%, rgba(250, 239, 198, .18) 100%),
        var(--hero-bg);
    background-position: 0 0, center right;
    background-repeat: no-repeat;
    background-size: auto, cover;
}

.hero::before {
    width: min(52vw, 680px);
    height: min(30vw, 390px);
    box-shadow: 0 4px 0 #39a31e;
}

.hero::after {
    width: min(58vw, 760px);
    height: min(24vw, 320px);
    box-shadow: 0 -4px 0 #39a31e;
}

@media (max-width: 760px) {
    .section::before,
    .hero::before,
    .consultation::before {
        width: 72vw;
        height: 150px;
    }

    .section::after,
    .hero::after,
    .consultation::after {
        width: 78vw;
        height: 130px;
    }

    .section:nth-of-type(3n)::before,
    .section:nth-of-type(4n)::before,
    .section:nth-of-type(5n)::before {
        width: 58vw;
        height: 112px;
    }

    .section:nth-of-type(3n)::after,
    .section:nth-of-type(4n)::after,
    .section:nth-of-type(5n)::after {
        width: 66vw;
        height: 118px;
    }
}

/* Services polish */
#services .section-head {
    max-width: 860px;
}

#services .section-head h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.16;
}

#services .section-head p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
    line-height: 1.6;
}

#services .service-card {
    gap: 12px;
    justify-content: flex-start;
    padding: 24px;
}

#services .service-card b {
    font-size: 17px;
    line-height: 1.34;
}

#services .service-card p {
    margin: 0 0 8px;
    color: #4b4f45;
    font-size: 15px;
    line-height: 1.55;
}

#services .service-card a {
    margin-top: auto;
}

#services .service-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
    place-items: center;
    color: #faf6f0;
    background:
        linear-gradient(135deg, #39a31e 0%, #275317 74%),
        #275317;
    border: 2px solid rgba(250, 239, 198, .95);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(39, 83, 23, .26);
}

#services .service-icon::before,
#services .service-icon::after {
    content: none;
}

#services .service-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

#services .service-icon--consult,
#services .service-icon--audit {
    background: linear-gradient(135deg, #faefc6 0%, #39a31e 42%, #275317 100%);
}

#services .service-icon--unlock,
#services .service-icon--chief {
    background: linear-gradient(135deg, #275317 0%, #39a31e 100%);
}

@media (max-width: 760px) {
    #services .section-head h2 {
        font-size: 27px;
    }

    #services .service-card {
        min-height: 0;
    }
}

/* Global typography balance */
.hero h1 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.1;
}

.section h2,
.consultation h2 {
    font-size: clamp(28px, 3.25vw, 42px);
    line-height: 1.14;
}

.section-head p,
.hero__subtitle,
.solution-panel p,
.leader-section p,
.consultation p,
.footer p,
.mini-card p,
.service-card p,
.trust-list p,
.faq-list p,
.case-grid b,
.workflow span {
    font-size: 16px;
    line-height: 1.58;
}

.mini-card b,
.service-card b,
.trust-list b,
.faq-list summary,
.question-strip b {
    font-size: 17px;
    line-height: 1.36;
}

.case-grid b {
    font-weight: 750;
}

.steps-grid span,
.workflow span {
    font-weight: 750;
}

.section-head {
    max-width: 840px;
}

.section-head p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.section-head--left p {
    margin-left: 0;
}

@media (max-width: 760px) {
    .hero h1 {
        font-size: 26px;
    }

    .section h2,
    .consultation h2,
    .leader-section h2,
    #services .section-head h2 {
        font-size: 26px;
        line-height: 1.16;
    }

    .section-head p,
    .hero__subtitle,
    .solution-panel p,
    .leader-section p,
    .consultation p,
    .mini-card p,
    .service-card p,
    .trust-list p,
    .faq-list p,
    .case-grid b,
    .workflow span {
        font-size: 15px;
        line-height: 1.55;
    }

    .mini-card b,
    .service-card b,
    .trust-list b,
    .faq-list summary,
    .question-strip b {
        font-size: 16px;
    }
}

/* Compact first screen */
.hero {
    min-height: auto;
    padding-top: clamp(118px, 10vw, 142px);
    padding-bottom: 42px;
}

.hero__grid {
    align-items: start;
}

.hero__buttons {
    margin-top: 24px;
}

.benefits {
    margin-top: 24px;
}

@media (max-width: 760px) {
    .hero {
        padding-top: 94px;
        padding-bottom: 34px;
    }

    .hero__buttons,
    .benefits {
        margin-top: 18px;
    }
}

/* Tighter global text scale */
.hero h1 {
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.12;
}

.section h2,
.consultation h2,
#services .section-head h2 {
    font-size: clamp(26px, 2.75vw, 36px);
    line-height: 1.18;
}

.section-head p,
.hero__subtitle,
.solution-panel p,
.leader-section p,
.consultation p,
.footer p,
.mini-card p,
.service-card p,
.trust-list p,
.faq-list p,
.case-grid b,
.workflow span,
.steps-grid p,
.steps-grid span,
.benefit span,
.top-strip__item,
.header-phone,
.main-nav a {
    font-size: 17px;
    line-height: 1.58;
}

.mini-card b,
.service-card b,
.trust-list b,
.faq-list summary,
.question-strip b,
.steps-grid b {
    font-size: 18px;
    line-height: 1.34;
}

.section-head span,
.eyebrow,
.problem-slider__head span,
.case-grid span,
.service-card a,
.case-grid a {
    font-size: 14px;
}

@media (max-width: 760px) {
    .hero h1 {
        font-size: 24px;
    }

    .section h2,
    .consultation h2,
    .leader-section h2,
    #services .section-head h2 {
        font-size: 24px;
        line-height: 1.18;
    }

    .section-head p,
    .hero__subtitle,
    .solution-panel p,
    .leader-section p,
    .consultation p,
    .mini-card p,
    .service-card p,
    .trust-list p,
    .faq-list p,
    .case-grid b,
    .workflow span,
    .steps-grid p,
    .steps-grid span,
    .benefit span {
        font-size: 16px;
    }

    .mini-card b,
    .service-card b,
    .trust-list b,
    .faq-list summary,
    .question-strip b,
    .steps-grid b {
        font-size: 17px;
    }
}

/* Restore card text, tune headings only */
.mini-card p,
.service-card p,
.trust-list p,
.faq-list p {
    font-size: 16px;
    line-height: 1.65;
}

.mini-card b,
.service-card b,
.trust-list b,
.faq-list summary {
    font-size: 16px;
    line-height: 1.35;
}

#services .service-card b {
    font-size: 17px;
}

#services .service-card p {
    font-size: 15px;
    line-height: 1.55;
}

.case-grid b {
    font-size: 16px;
    line-height: 1.35;
}

.workflow span,
.steps-grid span {
    font-size: 16px;
}

.hero h1 {
    font-size: clamp(30px, 3.4vw, 43px);
}

.section h2,
.consultation h2,
#services .section-head h2 {
    font-size: clamp(26px, 2.65vw, 35px);
}

.section-head p,
.hero__subtitle {
    font-size: 17px;
    line-height: 1.58;
}

.section-head span,
.eyebrow {
    font-size: 14px;
}

@media (max-width: 760px) {
    .mini-card p,
    .service-card p,
    .trust-list p,
    .faq-list p,
    .case-grid b,
    .workflow span,
    .steps-grid span {
        font-size: 16px;
    }

    .mini-card b,
    .service-card b,
    .trust-list b,
    .faq-list summary,
    #services .service-card b {
        font-size: 16px;
    }

    #services .service-card p {
        font-size: 15px;
    }

    .hero h1,
    .section h2,
    .consultation h2,
    .leader-section h2,
    #services .section-head h2 {
        font-size: 24px;
    }

    .section-head p,
    .hero__subtitle {
        font-size: 16px;
    }
}

/* First screen benefit cards */
.benefit span {
    font-size: 14px;
    line-height: 1.42;
}

.hero__subtitle {
    font-size: 19px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .hero__subtitle {
        font-size: 17px;
    }

    .benefit span {
        font-size: 13px;
    }
}

/* Header sizing */
.main-nav {
    gap: 14px;
}

.main-nav a {
    font-size: 12px;
    line-height: 1.3;
}

.header-actions {
    flex-shrink: 0;
}

.telegram-link {
    width: 40px;
    min-width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.telegram-link svg {
    width: 20px;
    min-width: 20px;
    height: 20px;
}

/* Match site headings to first screen */
.site-shell main section h2,
.site-shell main section h3,
.consultation h2,
.leader-section h2,
#services .section-head h2,
.solution-panel h3,
.question-strip b {
    font-size: clamp(30px, 3.4vw, 43px);
    line-height: 1.12;
}

.site-shell main section > .container > .section-head p,
.section-head p,
.consultation p,
.leader-section > div > p,
.solution-panel > div > p,
.question-strip p {
    font-size: 19px;
    line-height: 1.55;
}

.site-shell main section > .container > .section-head span,
.section-head span,
.eyebrow {
    font-size: 14px;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .site-shell main section h2,
    .site-shell main section h3,
    .consultation h2,
    .leader-section h2,
    #services .section-head h2,
    .solution-panel h3,
    .question-strip b {
        font-size: 24px;
        line-height: 1.18;
    }

    .site-shell main section > .container > .section-head p,
    .section-head p,
    .consultation p,
    .leader-section > div > p,
    .solution-panel > div > p,
    .question-strip p {
        font-size: 17px;
    }

    .site-shell main section > .container > .section-head span,
    .section-head span,
    .eyebrow {
        font-size: 13px;
    }
}

/* Final visible heading scale */
.site-shell main section h2,
.site-shell main section h3,
.site-shell main .section-head h2,
.site-shell main .solution-panel h3,
.site-shell main .consultation h2 {
    font-size: clamp(28px, 2.6vw, 36px) !important;
    line-height: 1.16 !important;
}

.site-shell main .section-head p,
.site-shell main .hero__subtitle,
.site-shell main .consultation p,
.site-shell main .leader-section > div > p,
.site-shell main .solution-panel > div > p {
    font-size: 19px !important;
    line-height: 1.55 !important;
}

@media (max-width: 760px) {
    .site-shell main section h2,
    .site-shell main section h3,
    .site-shell main .section-head h2,
    .site-shell main .solution-panel h3,
    .site-shell main .consultation h2 {
        font-size: 24px !important;
    }

    .site-shell main .section-head p,
    .site-shell main .hero__subtitle,
    .site-shell main .consultation p,
    .site-shell main .leader-section > div > p,
    .site-shell main .solution-panel > div > p {
        font-size: 17px !important;
    }
}

/* Background triangle cleanup */
.section::before,
.section::after,
.consultation::before,
.consultation::after {
    opacity: .92;
}

#trust::after,
#cases::after,
.site-shell main section:nth-of-type(9)::after,
.section--faq::after {
    right: -48px;
    bottom: 0;
    width: min(30vw, 360px);
    height: min(12vw, 145px);
    background: #275317;
    clip-path: polygon(100% 12%, 100% 100%, 0 100%);
}

#trust::before,
#cases::before,
.site-shell main section:nth-of-type(9)::before,
.section--faq::before {
    left: -44px;
    width: min(28vw, 330px);
    height: min(12vw, 140px);
}

#about::before {
    top: 0;
    bottom: auto;
    width: min(24vw, 300px);
    height: min(13vw, 150px);
}

#about::after {
    right: -56px;
    bottom: 0;
    width: min(32vw, 390px);
    height: min(13vw, 155px);
}

.site-shell main section:nth-of-type(9)::before {
    background: #faefc6;
    clip-path: polygon(0 0, 82% 0, 0 100%);
}

.site-shell main section:nth-of-type(9)::after {
    bottom: -1px;
}

.section--faq::before {
    bottom: -1px;
    background: #faefc6;
}

.section--faq::after {
    top: auto;
    bottom: -1px;
}

.question-strip,
.faq-list details,
.trust-list div {
    background: rgba(255, 250, 240, .98);
}

/* Requested triangle orientation tweaks */
#about::after {
    top: 0;
    right: 0;
    bottom: auto;
    width: min(34vw, 410px);
    height: min(16vw, 190px);
    background: #faefc6;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

#workflow::after,
.section--faq::after {
    top: 0;
    right: 0;
    bottom: auto;
    width: min(34vw, 410px);
    height: min(16vw, 190px);
    background: #275317;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

@media (max-width: 760px) {
    #about::after,
    #workflow::after,
    .section--faq::after {
        width: 62vw;
        height: 110px;
    }
}

/* Section-specific triangle fixes */
#cases::after {
    background: #faefc6;
    width: min(34vw, 410px);
    height: min(15vw, 180px);
    clip-path: polygon(100% 0, 100% 100%, 24% 100%);
}

#workflow::before {
    background: #faefc6;
    width: min(30vw, 360px);
    height: min(15vw, 180px);
    clip-path: polygon(0 0, 100% 0, 0 72%);
}

#workflow::after {
    background: #275317;
    width: min(28vw, 340px);
    height: min(16vw, 190px);
    clip-path: polygon(100% 22%, 100% 100%, 8% 100%);
}

.section--faq::before {
    top: auto;
    bottom: 0;
    background: #faefc6;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.section--faq::after {
    top: 0;
    bottom: auto;
    background: #275317;
    clip-path: polygon(100% 0, 100% 78%, 22% 0);
}

#consultation::before {
    top: auto;
    bottom: 0;
    width: min(38vw, 440px);
    height: min(14vw, 170px);
    background: #275317;
    clip-path: polygon(0 24%, 0 100%, 100% 100%);
}

#consultation::after {
    top: 0;
    right: 0;
    bottom: auto;
    width: min(30vw, 360px);
    height: min(14vw, 170px);
    background: #faefc6;
    clip-path: polygon(28% 0, 100% 0, 100% 100%);
}

#consultation .eyebrow {
    position: relative;
    z-index: 3;
    padding: 6px 10px;
    background: rgba(250, 246, 240, .92);
    border-radius: 6px;
}

@media (max-width: 760px) {
    #cases::after,
    #workflow::before,
    #workflow::after,
    .section--faq::before,
    .section--faq::after,
    #consultation::before,
    #consultation::after {
        width: 58vw;
        height: 96px;
    }
}

/* Final top-edge triangle override */
#workflow::after,
.section--faq::after {
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: min(34vw, 410px) !important;
    height: min(16vw, 190px) !important;
    background: #275317 !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%) !important;
}

@media (max-width: 760px) {
    #workflow::after,
    .section--faq::after {
        width: 62vw !important;
        height: 110px !important;
    }
}

/* FAQ triangle moved to bottom */
.section--faq::after {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    clip-path: polygon(100% 0, 100% 100%, 0 100%) !important;
}

/* WordPress templates */
.page-hero {
    padding-top: clamp(96px, 12vw, 148px);
}

.page-hero h1 {
    margin: 0;
    font-size: var(--section-title-size);
    line-height: 1.08;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
}

.contact-telegram {
    margin-top: 16px;
    color: #fff;
    background: #229ed9;
}

.contact-telegram:hover {
    background: #1688bd;
}

.contact-telegram:focus-visible {
    outline: 3px solid rgba(34, 158, 217, .28);
    outline-offset: 3px;
}

/* Content pages aligned with the approved brief */
.about-team-photo img {
    object-fit: cover !important;
}

.leader-section--reverse {
    grid-template-columns: 1fr 1.05fr;
}

.leader-section--reverse .leader-section__photo {
    order: 2;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 28px;
}

.principles-grid article {
    padding: 26px 0;
    border-bottom: 1px solid rgba(39, 83, 23, .2);
}

.principle-icon {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    place-items: center;
    color: #fffaf0;
    background: var(--color-emerald);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
}

.principles-grid h3 {
    margin: 0 0 10px;
    color: var(--color-ink);
    font-size: 18px;
}

.principles-grid p {
    margin: 0;
    color: #4b4f45;
    line-height: 1.6;
}

.about-trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-trust-list li {
    position: relative;
    padding: 18px 18px 18px 34px;
    border-bottom: 1px solid rgba(39, 83, 23, .18);
    color: var(--color-ink);
    font-weight: 700;
}

.about-trust-list li::before {
    position: absolute;
    top: 18px;
    left: 4px;
    color: var(--color-emerald);
    content: "✓";
}

.slider-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.slider-section-head .section-heading {
    margin: 0;
}

.case-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.case-slider-track::-webkit-scrollbar {
    display: none;
}

.service-case-slide {
    display: flex;
    flex: 0 0 min(360px, 82vw);
    min-height: 390px;
    flex-direction: column;
    scroll-snap-align: start;
}

.service-case-slide img {
    width: 100%;
    height: 190px;
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 8px;
}

.service-case-slide b {
    display: block;
    margin-bottom: 10px;
    color: var(--color-ink);
    font-size: 18px;
    line-height: 1.35;
}

.service-case-slide span {
    color: #4b4f45;
    line-height: 1.55;
}

.service-price-table {
    max-width: 760px;
    margin: 0 auto 18px;
    border-top: 2px solid var(--color-emerald);
}

.service-price-table > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(39, 83, 23, .2);
}

.service-price-table__head {
    color: #566157;
    font-size: 14px;
}

.service-price-table strong {
    color: var(--color-emerald);
}

.price-note {
    margin: 0 auto 24px;
    color: #4b4f45;
    text-align: center;
}

.service-price-section .button {
    display: flex;
    width: max-content;
    margin-right: auto;
    margin-left: auto;
}

.project-question {
    padding: 42px 0;
    color: #fffaf0;
    background: var(--color-emerald);
}

.project-question__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.project-question h2 {
    margin: 0 0 8px;
    color: inherit;
    font-size: clamp(26px, 3vw, 38px);
}

.project-question p {
    margin: 0;
    color: rgba(255, 250, 240, .88);
}

.project-question .button {
    flex: 0 0 auto;
    color: var(--color-emerald);
    background: #fffaf0;
}

.trust-slider-controls {
    display: none;
    margin-top: 24px;
}

.home-cases-controls {
    display: none;
    margin-top: 22px;
    justify-content: center;
}

@media (max-width: 760px) {
    .service-cases-section::before,
    .service-cases-section::after {
        display: none;
    }

    .service-cases-section .section-heading h2,
    .service-cases-section .section-heading p {
        color: var(--color-ink);
    }

    .leader-section--reverse .leader-section__photo {
        order: 0;
    }

    .principles-grid,
    .about-trust-list {
        grid-template-columns: 1fr;
    }

    .slider-section-head,
    .project-question__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-price-table > div {
        grid-template-columns: minmax(0, 1fr) 120px;
    }

    .trust-slider {
        display: block;
    }

    .trust-slider-controls {
        display: flex;
    }

    .trust-slider-track {
        display: flex;
        gap: 12px;
        margin-top: 28px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .trust-slider-track::-webkit-scrollbar {
        display: none;
    }

    .trust-slider-track > div {
        flex: 0 0 min(86vw, 340px);
        min-height: 168px;
        scroll-snap-align: start;
    }

    .home-cases-controls {
        display: flex;
    }

    .home-cases-slider .case-grid {
        display: flex;
        gap: 12px;
        margin-top: 26px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .home-cases-slider .case-grid::-webkit-scrollbar {
        display: none;
    }

    .home-cases-slider .case-card {
        flex: 0 0 min(86vw, 340px);
        scroll-snap-align: start;
    }
}

.map-frame {
    min-height: 360px;
    border: 1px solid rgba(34, 91, 24, .24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(249, 202, 25, .22), rgba(34, 91, 24, .12)),
        #fffdf6;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #42483f;
    font-weight: 700;
    text-align: center;
    padding: 24px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.map-frame--interactive {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.map-frame--interactive iframe {
    flex: 1 1 auto;
    min-height: 380px;
}

.map-frame__link {
    display: block;
    padding: 14px 18px;
    color: var(--color-emerald);
    background: rgba(255, 250, 240, .96);
    border-top: 1px solid rgba(34, 91, 24, .18);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.price-table {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.price-table div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(34, 91, 24, .2);
    border-radius: 8px;
    background: rgba(255, 253, 246, .92);
}

.price-table b {
    color: #225b18;
    text-align: right;
}

.price-note {
    max-width: 720px;
    color: #4d524a;
}

.image-card > img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

@media (max-width: 760px) {
    .contact-grid,
    .price-table div {
        grid-template-columns: 1fr;
    }

    .price-table b {
        text-align: left;
    }
}

/* Detail pages and clickable cards */
.section-heading {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--color-emerald);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-heading span::before {
    width: 32px;
    height: 2px;
    background: var(--color-emerald-soft);
    content: "";
}

.section-heading h2 {
    margin: 0;
}

.section-heading p {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.trust-grid,
.workflow-grid,
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.workflow-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.detail-grid {
    align-items: stretch;
}

.trust-card,
.workflow-card,
.achievement-card,
.section-cta,
.case-card,
.image-card {
    min-width: 0;
    padding: 22px;
    background: rgba(255, 250, 240, .96);
    border: 1px solid rgba(34, 91, 24, .2);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(39, 83, 23, .12);
}

.trust-card h3,
.workflow-card b,
.case-card h3,
.image-card h3,
.section-cta h3 {
    margin: 0 0 12px;
    color: var(--color-ink);
    line-height: 1.3;
}

.trust-card p,
.trust-card li,
.trust-card div,
.workflow-card p,
.case-card p,
.image-card p,
.section-cta p {
    color: var(--color-muted);
    line-height: 1.65;
}

.trust-card ul {
    margin: 0;
    padding-left: 20px;
}

.workflow-card b {
    display: block;
    color: var(--color-emerald);
}

.workflow-card p {
    margin: 0;
}

.slider-row,
.case-slider,
.image-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.image-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card,
.image-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.case-card > img,
.image-card > img {
    width: calc(100% + 44px);
    max-width: none;
    height: 170px;
    margin: -22px -22px 0;
    object-fit: cover;
}

.case-card > div,
.image-card > div {
    display: grid;
    gap: 8px;
}

.case-card span:first-child,
.case-card .case-image + span {
    color: var(--color-emerald);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.details-link {
    color: var(--color-emerald);
    font-weight: 800;
}

.service-card--link,
.image-card--link,
.case-card--link {
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-card--link:hover,
.image-card--link:hover,
.case-card--link:hover {
    border-color: rgba(34, 91, 24, .42);
    box-shadow: 0 24px 58px rgba(39, 83, 23, .18);
    transform: translateY(-3px);
}

.service-card__icon {
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    background: rgba(39, 83, 23, .1);
    border: 1px solid rgba(39, 83, 23, .24);
    border-radius: 8px;
}

.service-card__icon::before,
.service-card__icon::after {
    position: absolute;
    content: "";
}

.service-card__icon::before {
    inset: 14px;
    border: 3px solid var(--color-emerald);
    border-radius: 6px;
}

.service-card__icon::after {
    right: 12px;
    bottom: 12px;
    width: 12px;
    height: 12px;
    border-right: 3px solid var(--color-gold-dark);
    border-bottom: 3px solid var(--color-gold-dark);
}

.detail-hero__image {
    padding: 0;
    min-height: 360px;
}

.detail-hero__image img {
    height: 100%;
    min-height: 360px;
    margin: 0;
    border-radius: 8px;
}

.detail-hero__client {
    color: var(--color-emerald);
    font-weight: 800;
}

.service-detail-hero {
    padding-top: clamp(112px, 12vw, 154px);
}

.service-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    background: rgba(255, 250, 240, .96);
    border: 1px solid rgba(34, 91, 24, .22);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(39, 83, 23, .16);
}

.service-detail-hero__media {
    min-height: 430px;
    background: #f5efdf;
}

.service-detail-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.service-detail-hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: clamp(30px, 5vw, 62px);
}

.service-detail-hero__content .hero__kicker {
    margin: 0;
}

.service-detail-hero__content h1 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: 0;
}

.service-detail-hero__content p {
    margin: 0;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.65;
}

.section-cta {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.section-cta .button {
    margin-top: 14px;
}

.hero::before {
    top: 0 !important;
    left: 0 !important;
    width: min(32vw, 360px) !important;
    height: min(16vw, 190px) !important;
    background: #275317 !important;
    box-shadow: none !important;
    clip-path: polygon(0 0, 100% 0, 0 100%) !important;
}

.hero .hero__kicker {
    margin-left: clamp(16px, 2vw, 34px);
}

@media (max-width: 1120px) {
    .trust-grid,
    .slider-row,
    .case-slider,
    .image-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-detail-hero__grid {
        grid-template-columns: 1fr;
    }

    .service-detail-hero__media,
    .service-detail-hero__media img {
        min-height: 300px;
    }
}

@media (max-width: 760px) {
    .trust-grid,
    .workflow-grid,
    .slider-row,
    .case-slider,
    .image-card-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .hero::before {
        width: 58vw !important;
        height: 96px !important;
    }

    .hero .hero__kicker {
        margin-left: 10px;
    }

    .service-detail-hero__content {
        padding: 24px;
    }

    .service-detail-hero__content .button {
        width: 100%;
    }

    .service-detail-hero__media,
    .service-detail-hero__media img {
        min-height: 220px;
    }
}

/* Final mobile and media QA fixes */
.mobile-nav-contacts {
    display: none;
}

.hero {
    background:
        linear-gradient(135deg, rgba(250, 246, 240, .98), rgba(250, 239, 198, .72)),
        #faf6f0 !important;
}

.hero__shade {
    display: none;
}

.workflow-card b {
    color: #275317 !important;
    opacity: 1 !important;
    font-size: 22px;
    line-height: 1;
}

.trust-list div {
    position: relative;
    padding-top: 62px;
}

.trust-list div::before {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fffaf0;
    background: #275317;
    border: 1px solid rgba(39, 83, 23, .22);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(39, 83, 23, .18);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    content: "";
}

.trust-list div:nth-child(1)::before {
    content: "\2713";
}

.trust-list div:nth-child(2)::before {
    content: "20";
    font-size: 13px;
}

.trust-list div:nth-child(3)::before {
    content: "\20BD";
}

.trust-list div:nth-child(4)::before {
    content: "\2022\2022";
    letter-spacing: -2px;
}

.trust-list div:nth-child(5)::before {
    content: "\2197";
}

.trust-list div:nth-child(6)::before {
    content: "!";
}

.leader-card__image img,
.leader-section__photo img,
.service-detail-hero__media img,
.case-card > img,
.image-card > img,
.expertise-image img,
.case-image img,
.detail-hero__image img {
    object-position: center center !important;
}

.leader-card__image--portrait img,
.leader-section__photo img {
    object-fit: contain !important;
}

.leader-card__image,
.leader-section__photo {
    background: linear-gradient(135deg, rgba(39, 83, 23, .16), rgba(250, 239, 198, .55)), #f5efdf !important;
}

@media (max-width: 1120px) {
    .site-header {
        min-height: 72px;
    }

    .header-main {
        grid-template-columns: 1fr auto;
        align-items: center;
        min-height: 72px;
    }

    .brand {
        display: flex;
        align-items: center;
        align-self: center;
        justify-content: flex-start;
        justify-self: start;
    }

    .brand__logo {
        display: block;
        width: 56px !important;
        height: 56px !important;
        object-fit: contain;
    }

    .menu-toggle {
        align-self: center;
    }

    .main-nav {
        top: 72px;
        gap: 14px;
        padding: 20px;
    }

    .main-nav a {
        font-size: 16px;
        line-height: 1.35;
    }

    .mobile-nav-contacts {
        display: grid;
        width: 100%;
        gap: 12px;
        margin-top: 6px;
        padding-top: 14px;
        border-top: 1px solid rgba(39, 83, 23, .18);
    }

    .mobile-nav-phone {
        color: #275317 !important;
        font-weight: 800;
    }

    .mobile-nav-messengers {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .mobile-nav-messengers a {
        padding: 9px 12px;
        color: #fffaf0 !important;
        background: #275317;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 800;
    }
}

@media (max-width: 760px) {
    .hero::before,
    .hero::after {
        content: none !important;
    }

    .workflow-card b {
        margin-bottom: 14px;
        color: #275317 !important;
        font-size: 24px;
    }

    .case-card > img,
    .image-card > img,
    .expertise-image,
    .case-image {
        height: auto;
        min-height: 160px;
    }

    .expertise-image img,
    .case-image img,
    .case-card > img,
    .image-card > img {
        min-height: 160px;
        object-fit: cover;
        object-position: center center !important;
    }
}

.policy-document {
    color: var(--color-ink);
}

.policy-document__body {
    display: grid;
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
    padding: 34px;
    background: #fffaf0;
    border: 1px solid rgba(39, 83, 23, .18);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.policy-document h2 {
    margin: 14px 0 2px;
    padding-bottom: 10px;
    color: #275317;
    border-bottom: 1px solid rgba(39, 83, 23, .18);
    font-size: 28px;
    line-height: 1.25;
}

.policy-document h3 {
    margin: 8px 0 0;
    color: #202624;
    font-size: 20px;
    line-height: 1.35;
}

.policy-document p,
.policy-document li {
    margin: 0;
    color: #3b443f;
    font-size: 16px;
    line-height: 1.75;
}

.policy-document ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
}

.policy-document li::marker {
    color: #275317;
}

@media (max-width: 760px) {
    .policy-document__body {
        padding: 22px 18px;
    }

    .policy-document h2 {
        font-size: 22px;
    }

    .policy-document h3 {
        font-size: 18px;
    }

    .policy-document p,
    .policy-document li {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* Final crop override after all responsive card rules. */
.expertise-image img,
.case-image img,
.case-card > img,
.image-card > img,
.detail-hero__image img,
.service-detail-hero__media img {
    object-fit: contain !important;
    object-position: center center !important;
}
