* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #15211c;
    background: #f7faf6;
    line-height: 1.6;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

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

picture {
    display: block;
}

picture img {
    width: 100%;
}

a {
    color: #178141;
    text-decoration: none;
}

a:hover {
    color: #0b5c2a;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(23, 129, 65, 0.35);
    outline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 999px;
    background: #15211c;
    color: #fff;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(239,248,238,.94));
    border-bottom: 1px solid rgba(32, 91, 49, .12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header__inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 12px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(23,129,65,.15);
    box-shadow: 0 14px 34px rgba(35,65,45,.12);
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7faf6, #e8f5ea);
}

.brand img {
    width: 228px;
}

.brand__text {
    max-width: 100px;
    color: #153f24;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    padding: 10px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #24362d;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: #e8f5ea;
    color: #117337;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    white-space: nowrap;
    font-size: 12px;
    color: #5a6f63;
}

.header-contact a {
    color: #15211c;
    font-size: 18px;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #e8f5ea;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    border-radius: 4px;
    background: #153f24;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.section-pad {
    padding: 92px 0;
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 116px;
    min-height: 720px;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(247,250,246,.98) 0%, rgba(247,250,246,.84) 42%, rgba(247,250,246,.35) 72%, rgba(247,250,246,.76) 100%), url('../images/fon1-optimized.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

@supports (background-image: image-set(url('../images/fon1.webp') type('image/webp'))) {
    .hero__bg {
        background-image: linear-gradient(90deg, rgba(247,250,246,.98) 0%, rgba(247,250,246,.84) 42%, rgba(247,250,246,.35) 72%, rgba(247,250,246,.76) 100%), image-set(url('../images/fon1.webp') type('image/webp'), url('../images/fon1-optimized.jpg') type('image/jpeg'));
    }
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: #178141;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .13em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 840px;
    margin-bottom: 22px;
    color: #102118;
    font-size: clamp(42px, 7vw, 76px);
    line-height: .98;
    letter-spacing: -.05em;
}

h1 span,
h2 span {
    color: #178141;
}

h2 {
    color: #102118;
    font-size: clamp(32px, 4.7vw, 52px);
    line-height: 1.05;
    letter-spacing: -.04em;
    margin-bottom: 18px;
}

h3 {
    color: #102118;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero__lead,
.section-head p,
.split__content > p,
.contact-panel p,
.doc-panel p,
.calc-copy p,
.case-card p {
    color: #4a6254;
    font-size: 19px;
}

.hero__lead {
    max-width: 680px;
    margin-bottom: 30px;
}

.hero__actions,
.inline-actions,
.contact-actions,
.calc-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

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

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #178141, #79b82f);
    box-shadow: 0 18px 36px rgba(23,129,65,.25);
}

.btn--primary:hover {
    color: #fff;
    box-shadow: 0 22px 44px rgba(23,129,65,.32);
}

.btn--ghost {
    color: #14371e;
    background: rgba(255,255,255,.72);
    border-color: rgba(23,129,65,.16);
}

.btn--secondary {
    color: #fff;
    background: #15211c;
    box-shadow: 0 16px 30px rgba(21,33,28,.15);
}

.btn--secondary:hover {
    color: #fff;
    background: #21392c;
}

.btn--light {
    color: #14371e;
    background: #eef8ee;
    border-color: rgba(23,129,65,.1);
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-top: 34px;
}

.trust-row div,
.mini-grid div {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(23,129,65,.12);
    box-shadow: 0 12px 36px rgba(35,65,45,.08);
}

.trust-row strong,
.mini-grid strong {
    display: block;
    color: #102118;
    font-size: 25px;
    line-height: 1.1;
}

.trust-row span,
.mini-grid span {
    color: #597063;
    font-size: 14px;
}

.hero-card {
    padding: 34px;
    border-radius: 32px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 28px 80px rgba(25,55,38,.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-card__badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #0d6f30;
    background: #e8f5ea;
    font-weight: 900;
    font-size: 13px;
}

.check-list {
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #314b3a;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #178141;
    box-shadow: inset 0 0 0 5px #d9f1dd;
}

.contact-link {
    display: inline-flex;
    color: #15211c;
    font-size: 20px;
    font-weight: 900;
}

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

.cards-grid {
    display: grid;
    gap: 22px;
}

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

.feature-card,
.step-card,
.cert-card,
.case-card,
.video-card,
.accordion,
.wide-video {
    border: 1px solid rgba(23,129,65,.12);
    background: #fff;
    box-shadow: 0 18px 60px rgba(35,65,45,.08);
}

.feature-card {
    min-height: 300px;
    padding: 28px;
    border-radius: 30px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(35,65,45,.14);
}

.feature-card p {
    color: #536a5d;
}

.feature-card a,
.step-card a {
    font-weight: 900;
}

.icon-badge {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #178141, #7dbb34);
    font-weight: 900;
    font-size: 20px;
}

.quality,
.video {
    background: #fff;
}

.programs {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f5fbff 0%, #ffffff 52%, #f4fbf2 100%);
}

.programs::before,
.programs::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: .65;
}

.programs::before {
    width: 340px;
    height: 340px;
    left: -130px;
    top: 48px;
    background: radial-gradient(circle, rgba(120, 204, 198, .18), transparent 66%);
}

.programs::after {
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(125, 187, 52, .16), transparent 68%);
}

.calculator {
    background: radial-gradient(circle at 20% 15%, rgba(121,184,47,.18), transparent 34%), #102118;
    color: #fff;
}

.calc-panel {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: 34px;
    align-items: center;
}

.calc-copy h2,
.calc-copy p,
.calc-copy .eyebrow {
    color: #fff;
}

.calc-copy p {
    max-width: 640px;
    opacity: .86;
}

.calc-note {
    display: inline-flex;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    font-size: 15px !important;
}

.calc-widget {
    padding: 30px;
    border-radius: 32px;
    background: rgba(255,255,255,.96);
    color: #102118;
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 28px 80px rgba(0,0,0,.22);
}

.calc-widget label {
    display: block;
    margin-bottom: 10px;
    font-weight: 950;
}

.calc-input-row {
    gap: 10px;
}

.calc-input-row input {
    min-width: 0;
    flex: 1 1 180px;
    height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(23,129,65,.18);
    color: #102118;
    background: #f7faf6;
    font: inherit;
    font-weight: 900;
}

.calc-widget > span {
    display: block;
    margin-top: 8px;
    color: #647568;
    font-size: 13px;
}

.calc-result {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 16px;
}

.calc-result div {
    padding: 16px;
    border-radius: 20px;
    background: #f0f8ef;
}

.calc-result span {
    display: block;
    color: #5b6f61;
    font-size: 13px;
    line-height: 1.25;
}

.calc-result strong {
    display: block;
    margin-top: 8px;
    color: #102118;
    font-size: 24px;
    line-height: 1;
}

.calc-recommendation {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7dc;
    color: #5b4812;
    font-weight: 800;
}

.cases {
    background: linear-gradient(180deg, #f7faf6 0%, #fff 100%);
}

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

.case-card {
    min-height: 250px;
    padding: 28px;
    border-radius: 30px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(35,65,45,.14);
}

.case-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 16px;
    color: #178141;
    background: #e8f5ea;
    font-weight: 950;
}

.case-card--accent {
    background: linear-gradient(135deg, #13351f, #178141);
}

.case-card--accent span {
    color: #14371e;
    background: #fff;
}

.case-card--accent h3,
.case-card--accent p,
.case-card--accent a {
    color: #fff;
}

.case-card--accent a {
    font-weight: 950;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 58px;
    align-items: center;
}

.split--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.split--reverse .split__media {
    order: 2;
}

.split__media {
    border-radius: 36px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5ea, #f7faf6);
    box-shadow: 0 22px 70px rgba(35,65,45,.1);
}

.split__media img {
    width: 100%;
    object-fit: contain;
    padding: 24px;
}

.quality .split__media img {
    max-height: 480px;
    margin: 0 auto;
}

.programs .split__media {
    background: linear-gradient(135deg, #dff5ff 0%, #f0fbff 48%, #f6fff2 100%);
    border: 1px solid rgba(120, 204, 198, .28);
    box-shadow: 0 22px 70px rgba(48, 115, 97, .12);
}

.programs .split__media img {
    max-height: 480px;
    margin: 0 auto;
    padding: 18px;
    filter: drop-shadow(0 18px 22px rgba(40, 92, 110, .18));
}

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

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    counter-reset: steps;
}

.step-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 32px;
}

.step-card::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -44px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #e8f5ea;
}

.step-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 40px;
    color: #178141;
    font-size: 44px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.05em;
}

.step-card h3,
.step-card p,
.step-card a {
    position: relative;
    z-index: 1;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
}

.tag-list span {
    padding: 10px 14px;
    border-radius: 999px;
    background: #e8f5ea;
    color: #153f24;
    font-weight: 800;
}

.doc-panel,
.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(135deg, #13351f, #178141);
    box-shadow: 0 22px 70px rgba(23,129,65,.22);
}

.doc-panel h3,
.doc-panel p,
.contact-panel h2,
.contact-panel p,
.contact-panel .eyebrow {
    color: #fff;
}

.doc-panel p,
.contact-panel p {
    opacity: .86;
    margin-bottom: 0;
}

.doc-panel .btn--primary,
.contact-panel .btn--primary {
    background: #fff;
    color: #14371e;
    box-shadow: none;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.cert-card {
    overflow: hidden;
    border-radius: 28px;
    color: #102118;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(35,65,45,.14);
}

.cert-card picture,
.cert-card img {
    width: 100%;
    height: 280px;
}

.cert-card img {
    object-fit: cover;
    object-position: top center;
}

.cert-card span {
    display: block;
    padding: 18px 20px 22px;
    font-weight: 900;
}

.info-list {
    margin: 28px 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(23,129,65,.13);
}

.info-list dt {
    color: #102118;
    font-weight: 900;
}

.info-list dd {
    margin: 0;
    color: #536a5d;
}

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

.video-card,
.wide-video {
    overflow: hidden;
    border-radius: 28px;
    background: #102118;
}

.video-card iframe,
.wide-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.wide-video {
    margin-top: 22px;
}

.accordion {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
}

.accordion__item + .accordion__item {
    border-top: 1px solid rgba(23,129,65,.12);
}

.accordion button {
    width: 100%;
    padding: 22px 26px;
    border: 0;
    background: #fff;
    color: #102118;
    text-align: left;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.accordion button::after {
    content: "+";
    color: #178141;
    font-size: 24px;
    line-height: 1;
}

.accordion button[aria-expanded="true"]::after {
    content: "−";
}

.accordion__panel {
    display: none;
    padding: 0 26px 24px;
    color: #536a5d;
}

.accordion button[aria-expanded="true"] + .accordion__panel {
    display: block;
}

.contacts {
    padding-top: 44px;
}

.contact-panel {
    align-items: flex-start;
}

.contact-panel > div:first-child {
    max-width: 640px;
}

.contact-actions {
    justify-content: flex-end;
}

.site-footer {
    padding: 34px 0;
    background: #0e1c15;
    color: rgba(255,255,255,.72);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    font-weight: 800;
}

.floating-call {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 800;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #178141, #79b82f);
    box-shadow: 0 16px 40px rgba(23,129,65,.32);
    font-size: 24px;
}

.floating-call:hover {
    color: #fff;
    transform: translateY(-2px);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1080px) {
    .header-contact {
        display: none;
    }

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

    .split--reverse .split__media {
        order: 0;
    }

    .hero-card {
        max-width: 620px;
    }

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

    .calc-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .header__inner {
        min-height: 78px;
    }

    .brand {
        padding: 8px 10px;
        border-radius: 18px;
    }

    .brand img {
        width: 178px;
    }

    .brand__text {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 88px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border-radius: 24px;
        background: #fff;
        border: 1px solid rgba(23,129,65,.12);
        box-shadow: 0 24px 70px rgba(35,65,45,.16);
    }

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

    .main-nav a {
        padding: 14px 16px;
        border-radius: 16px;
    }

    .hero {
        min-height: auto;
        padding-top: 88px;
    }

    .section-pad {
        padding: 70px 0;
    }

    .trust-row,
    .steps,
    .cert-grid,
    .case-grid,
    .cards-grid--4,
    .video-grid,
    .mini-grid,
    .calc-result {
        grid-template-columns: 1fr;
    }

    .doc-panel,
    .contact-panel,
    .footer__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions {
        justify-content: flex-start;
    }

    .info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    .hero__lead,
    .section-head p,
    .split__content > p,
    .contact-panel p,
    .doc-panel p {
        font-size: 17px;
    }

    .hero-card,
    .feature-card,
    .step-card,
    .case-card,
    .calc-widget,
    .doc-panel,
    .contact-panel {
        padding: 24px;
        border-radius: 26px;
    }

    .hero__actions .btn,
    .inline-actions .btn,
    .contact-actions .btn,
    .doc-panel .btn,
    .calc-input-row .btn,
    .calc-widget > .btn {
        width: 100%;
    }

    .brand img {
        width: 150px;
    }

    .brand__mark {
        padding: 3px 5px;
    }

    .floating-call {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }
}
