:root {
    --ink: #1d2830;
    --muted: #5e6b73;
    --line: #dfe8e6;
    --paper: #ffffff;
    --wash: #f4faf8;
    --mint: #dff4ea;
    --green: #2f8f6f;
    --coral: #e7604c;
    --coral-dark: #c94938;
    --sky: #3575a8;
    --sun: #f5c85f;
    --shadow: 0 18px 50px rgba(29, 40, 48, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(223, 232, 230, 0.9);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 15px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--green);
}

.hero {
    position: relative;
    min-height: min(820px, calc(100svh - 112px));
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
    object-position: center right;
}

.hero-avito .hero-media img {
    object-position: center center;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 38%, rgba(255, 255, 255, 0.3) 66%, rgba(255, 255, 255, 0.04) 100%),
        linear-gradient(180deg, rgba(244, 250, 248, 0.12), rgba(244, 250, 248, 0.38));
}

.hero-shade-strong {
    background:
        linear-gradient(90deg, rgba(16, 33, 50, 0.86) 0%, rgba(25, 55, 79, 0.72) 43%, rgba(25, 55, 79, 0.24) 70%, rgba(25, 55, 79, 0.08) 100%),
        linear-gradient(180deg, rgba(16, 33, 50, 0.2), rgba(16, 33, 50, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(640px, calc(100% - 36px));
    margin-left: clamp(18px, 7vw, 96px);
    padding: 72px 0;
}

.hero-avito .hero-content {
    color: #fff;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-avito .eyebrow {
    color: #b7f1d7;
}

h1,
h2,
h3,
p,
li,
.btn {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 610px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
}

.hero-avito .hero-lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 22px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    line-height: 1.18;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: var(--coral);
    box-shadow: 0 14px 28px rgba(231, 96, 76, 0.3);
}

.btn-primary:hover {
    background: var(--coral-dark);
}

.btn-secondary {
    color: #fff;
    background: var(--sky);
    box-shadow: 0 12px 24px rgba(53, 117, 168, 0.22);
}

.btn-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(223, 232, 230, 0.92);
}

.hero-avito .btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
}

.btn-wide {
    width: 100%;
}

.btn[aria-disabled="true"] {
    cursor: default;
    opacity: 0.72;
}

.btn[aria-disabled="true"]:hover {
    transform: none;
}

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
}

.quick-facts li {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(223, 232, 230, 0.9);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.hero-avito .quick-facts li {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Split hero (Avito) — текст на чистом фоне + фото */
.hero-split {
    background: linear-gradient(180deg, var(--wash), #ffffff 78%);
    border-bottom: 1px solid var(--line);
    padding: 0 clamp(18px, 4vw, 48px);
}

.hero-split-inner {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding-block: clamp(40px, 6vw, 80px);
}

.hero-split-text {
    max-width: 620px;
}

.hero-split .hero-lead {
    margin-top: 18px;
}

.hero-problems {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 13px;
}

.hero-problems li {
    position: relative;
    padding-left: 38px;
    font-size: clamp(16px, 1.6vw, 18px);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
}

.hero-problems li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
}

.hero-note {
    margin: 22px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
}

.hero-split-photo img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: center top;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

@media (max-width: 860px) {
    .hero-split-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-split-text {
        max-width: none;
    }

    .hero-split-photo img {
        max-height: 380px;
        object-position: center 22%;
    }
}

.section {
    padding: clamp(64px, 8vw, 108px) clamp(18px, 4vw, 48px);
}

.container {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(30px, 6vw, 72px);
    align-items: start;
}

.benefit-list,
.task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.benefit,
.task-card,
.credential-card,
.offer-box,
.final-cta {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(29, 40, 48, 0.06);
}

.benefit,
.task-card {
    padding: 24px;
}

.benefit p,
.task-card p,
.teacher-copy p,
.credential-card p,
.final-cta p,
.offer-box p,
.contact-panel p {
    color: var(--muted);
}

.benefit-icon {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--green);
    font-weight: 800;
}

.soft-band {
    background: var(--wash);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading p:last-child {
    color: var(--muted);
    font-size: 18px;
}

.task-card {
    min-height: 210px;
    border-top: 4px solid var(--sun);
}

.teacher-grid,
.credentials-grid,
.offer-grid,
.contact-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 6vw, 70px);
    align-items: center;
}

.credentials-grid {
    grid-template-columns: minmax(320px, 0.92fr) minmax(340px, 1.08fr);
    align-items: stretch;
}

.teacher-grid > *,
.credentials-grid > *,
.offer-grid > *,
.contact-panel > *,
.intro-grid > * {
    min-width: 0;
}

.teacher-photo,
.credential-image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.teacher-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.credential-image img {
    width: 100%;
    height: min(52vw, 620px);
    min-height: 420px;
    object-fit: cover;
}

.teacher-copy {
    max-width: 660px;
}

.large-text {
    font-size: 19px;
}

.trust-points {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.trust-points p {
    margin: 0;
    padding: 16px 18px;
    border-left: 4px solid var(--mint);
    background: var(--wash);
    border-radius: 8px;
}

.credentials-section {
    background: #fff;
}

.credential-card,
.final-cta,
.offer-box {
    padding: clamp(26px, 4vw, 42px);
}

.credential-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.credential-card h2,
.final-cta h2 {
    font-size: clamp(30px, 3.3vw, 44px);
}

.clean-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.clean-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
}

.clean-list li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}

.contact-section {
    background: var(--ink);
    color: #fff;
}

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

.contact-panel .section-kicker {
    color: #b7f1d7;
}

.contact-panel p {
    color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
    display: grid;
    gap: 12px;
}

.contact-note {
    margin: 4px 0 0;
    font-size: 14px;
}

.offer-box {
    background: var(--ink);
    color: #fff;
}

.offer-box p {
    color: rgba(255, 255, 255, 0.78);
}

.offer-box strong {
    display: block;
    margin: 10px 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
}

.offer-label {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--ink);
    background: var(--sun);
    font-weight: 800;
}

.final-cta {
    background: var(--wash);
}

.site-footer {
    background: #142029;
    color: #fff;
    padding: 46px clamp(18px, 4vw, 48px) 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(160px, 0.65fr) minmax(220px, 0.75fr);
    gap: 32px;
}

.footer-brand {
    color: #fff;
    margin-bottom: 14px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
    max-width: 470px;
    margin: 0;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-column h2 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    color: #fff;
}

.footer-column a {
    text-decoration: none;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: 18px;
    align-items: center;
    justify-content: center;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 32, 41, 0.64);
    backdrop-filter: blur(8px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100svh - 36px);
    overflow: auto;
    padding: clamp(24px, 4vw, 34px);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.modal-dialog h2 {
    padding-right: 34px;
    font-size: clamp(26px, 4vw, 36px);
}

.modal-text {
    margin: 14px 0 22px;
    color: var(--muted);
}

.lead-form {
    display: grid;
    gap: 14px;
}

.lead-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.lead-form input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
    color: var(--ink);
    background: var(--wash);
}

.lead-form input:focus {
    outline: 3px solid rgba(47, 143, 111, 0.18);
    border-color: var(--green);
    background: #fff;
}

.form-status {
    min-height: 22px;
    margin: 0;
    color: var(--green);
    font-weight: 700;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .site-header {
        position: static;
    }

    .site-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        display: grid;
        align-items: stretch;
        overflow: visible;
        background: #fff;
    }

    .hero-media {
        position: relative;
        inset: auto;
        order: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background: var(--wash);
    }

    .hero-media img,
    .hero-avito .hero-media img {
        position: static;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 68% center;
    }

    .hero-avito .hero-media img {
        object-fit: contain;
        object-position: center center;
        background: #1e628d;
    }

    .hero-shade,
    .hero-shade-strong {
        display: none;
    }

    .hero-content {
        order: 2;
        width: min(680px, calc(100% - 36px));
        margin: 0 auto;
        padding: 34px 0 46px;
        color: var(--ink);
    }

    .hero-avito .hero-content {
        color: var(--ink);
    }

    .hero-avito .eyebrow {
        color: var(--green);
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-avito .hero-lead {
        color: var(--muted);
    }

    .hero-avito .btn-ghost {
        color: var(--ink);
        background: #fff;
        border-color: var(--line);
    }

    .hero-avito .quick-facts li {
        color: var(--ink);
        background: var(--wash);
        border-color: var(--line);
    }

    .intro-grid,
    .teacher-grid,
    .credentials-grid,
    .offer-grid,
    .contact-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .credential-image img {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .benefit-list,
    .task-grid {
        grid-template-columns: 1fr;
    }

    .task-card {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .brand span:last-child {
        display: none;
    }

    h1 {
        font-size: 32px;
        line-height: 1.08;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-media {
        aspect-ratio: 4 / 3;
    }

    .hero-media img {
        object-position: 67% center;
    }

    .hero-content {
        width: calc(100% - 32px);
        padding: 28px 0 38px;
    }

    .hero-lead,
    .section-heading p:last-child,
    .large-text {
        font-size: 16px;
    }

    .hero-actions {
        margin-top: 24px;
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .btn {
        min-height: 50px;
        padding: 14px 16px;
        border-radius: 14px;
        font-size: 15px;
    }

    .quick-facts li {
        width: 100%;
        white-space: normal;
    }

    .section {
        padding-top: 52px;
        padding-bottom: 52px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .benefit,
    .task-card {
        padding: 20px;
    }

    .credential-card,
    .final-cta,
    .offer-box {
        padding: 22px;
    }

    .credential-card h2,
    .final-cta h2 {
        font-size: 27px;
    }

    .trust-points p {
        padding: 14px 15px;
    }

    .site-footer {
        padding: 38px 16px 22px;
    }

    .modal {
        padding: 10px;
        align-items: end;
    }

    .modal-dialog {
        max-height: calc(100svh - 20px);
        border-radius: 14px 14px 0 0;
    }
}
