:root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --text: #111111;
    --muted: #737373;
    --border: #e5e5e2;
    --accent: #111111;
    --accent-hover: #2a2a2a;
    --success: #35a66f;

    --container: 1180px;
    --radius: 24px;
    --radius-small: 14px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--bg);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Inter",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}


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


button,
input {
    font: inherit;
}


button {
    border: 0;
    cursor: pointer;
}


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


/* ================================
   HEADER
================================ */

.header {
    padding: 28px 0;
}


.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.06em;
}


.header__link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}


.header__link:hover {
    color: var(--text);
}


/* ================================
   HERO
================================ */

.hero {
    padding: 90px 0 120px;
}


.hero__inner {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 80px;
    align-items: center;
}


.hero__content {
    max-width: 650px;
}


.eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}


.hero h1 {
    max-width: 700px;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.065em;
}


.hero h1 span {
    display: block;
    color: #8a8a8a;
}


.hero__description {
    max-width: 510px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.button span {
    font-size: 20px;
    line-height: 1;
}


.button--primary {
    margin-top: 36px;
    background: var(--accent);
    color: #ffffff;
}


.button--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}


/* ================================
   HERO VISUAL
================================ */

.hero__visual {
    display: flex;
    justify-content: center;
}


/* ================================
   SECTIONS
================================ */

.section {
    padding: 120px 0;
}


.section--border {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.section-heading {
    max-width: 650px;
}


.section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}


.section-heading h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.055em;
}


.section-heading p {
    max-width: 540px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}


/* ================================
   STEPS
================================ */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 70px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border);
}


.step {
    min-height: 280px;
    padding: 34px;
    background: var(--bg);
}


.step__number {
    display: block;
    margin-bottom: 70px;
    color: #a0a0a0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}


.step h3 {
    font-size: 21px;
    letter-spacing: -0.03em;
}


.step p {
    max-width: 290px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ================================
   FEATURES
================================ */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 70px;
}


.feature {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}


.feature__icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 55px;
    place-items: center;
    border-radius: 13px;
    background: #f1f1ef;
    font-size: 20px;
}


.feature h3 {
    font-size: 21px;
    letter-spacing: -0.03em;
}


.feature p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ================================
   PRICING
================================ */

.section--pricing {
    padding-top: 100px;
    padding-bottom: 140px;
}


.pricing-card {
    padding: 36px;
    border-radius: 28px;
    background: var(--surface);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.07);
}


.pricing-card h3 {
    font-size: 25px;
    letter-spacing: -0.04em;
}


.pricing-card__price {
    text-align: right;
}


.pricing-card__price strong {
    display: block;
    font-size: 32px;
    letter-spacing: -0.05em;
}


.pricing-card__price span {
    color: var(--muted);
    font-size: 13px;
}


.pricing-card__features {
    display: grid;
    gap: 14px;
    list-style: none;
}


.pricing-card__features li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #414141;
    font-size: 14px;
}


.pricing-card__features li span {
    color: var(--success);
    font-weight: 700;
}


/* ================================
   CONSENTS
================================ */

.consents {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}


.consent {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}


.consent input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}


.consent__box {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    border: 1px solid #cfcfcb;
    border-radius: 5px;
    background: #ffffff;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.consent input:checked + .consent__box {
    border-color: var(--text);
    background: var(--text);
}


.consent input:checked + .consent__box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}


.consent__text {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}


.consent__text a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: #c8c8c8;
    text-underline-offset: 3px;
}


.consent__text a:hover {
    text-decoration-color: var(--text);
}


.button--payment {
    width: 100%;
    margin-top: 30px;
    background: var(--text);
    color: #ffffff;
}


.button--payment:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}


.button--payment:not(:disabled):hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}


/* ================================
   FOOTER
================================ */

.footer {
    padding: 38px 0;
    border-top: 1px solid var(--border);
}


.footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
}


.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 24px;
}


.footer__links a {
    color: var(--muted);
    font-size: 12px;
    transition: color 0.2s ease;
}


.footer__links a:hover {
    color: var(--text);
}


.footer__bottom {
    margin-top: 45px;
    color: #999999;
    font-size: 11px;
}


/* ================================
   MODAL
================================ */

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


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


.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}


.modal__content {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(80vh, 760px);
    padding: 44px;
    overflow-y: auto;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
}


.modal__close {
    position: absolute;
    top: 18px;
    right: 20px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #f2f2f0;
    color: var(--text);
    font-size: 25px;
}


.modal__close:hover {
    background: #e7e7e4;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 900px) {

    .hero {
        padding: 60px 0 90px;
    }


    .hero__inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }


    .hero__visual {
        justify-content: flex-start;
    }


    .pricing__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }


    .steps,
    .features {
        grid-template-columns: 1fr;
    }


    .step {
        min-height: auto;
    }


    .step__number {
        margin-bottom: 40px;
    }
}


@media (max-width: 600px) {

    .container {
        width: min(
            calc(100% - 32px),
            var(--container)
        );
    }


    .header {
        padding: 20px 0;
    }


    .hero {
        padding: 45px 0 70px;
    }


    .hero h1 {
        font-size: clamp(44px, 13vw, 64px);
    }


    .hero__description {
        font-size: 17px;
    }


    .section {
        padding: 80px 0;
    }


    .section--pricing {
        padding-top: 70px;
        padding-bottom: 90px;
    }


    .section-heading h2 {
        font-size: 40px;
    }


    .download-card {
        padding: 20px;
        border-radius: 22px;
    }


    .step,
    .feature {
        padding: 26px;
    }


    .pricing-card {
        padding: 24px;
        border-radius: 22px;
    }


    .pricing-card__header {
        flex-direction: column;
        gap: 20px;
    }


    .pricing-card__price {
        text-align: left;
    }


    .footer__top {
        flex-direction: column;
        gap: 30px;
    }


    .footer__links {
        justify-content: flex-start;
        flex-direction: column;
        gap: 14px;
    }


    .modal {
        padding: 12px;
    }


    .modal__content {
        padding: 30px 24px;
        border-radius: 20px;
    }
}


/* ================================
   PRICING GRID
================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 65px;
}


.pricing-card--compact {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: none;
}


.pricing-card--compact h3 {
    margin-top: 4px;
    font-size: 25px;
    letter-spacing: -0.04em;
}


.pricing-card--compact .pricing-card__price {
    margin-top: 30px;
    text-align: left;
}


.pricing-card--compact .pricing-card__price strong {
    font-size: 36px;
}


.pricing-card--compact .pricing-card__features {
    margin-top: 30px;
}


.pricing-card--compact .button--tariff {
    width: 100%;
    margin-top: auto;
}


.button--tariff {
    min-height: 50px;
    background: #f1f1ef;
    color: var(--text);
}


.button--tariff:hover {
    background: var(--text);
    color: #ffffff;
    transform: translateY(-2px);
}


@media (max-width: 900px) {

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


    .pricing-card--compact {
        min-height: auto;
    }


    .pricing-card--compact .button--tariff {
        margin-top: 30px;
    }
}


@media (max-width: 600px) {

    .pricing-grid {
        gap: 14px;
        margin-top: 45px;
    }


    .pricing-card--compact {
        padding: 26px;
    }
}

/* ================================
   HERO — PROCESS
================================ */

.process-card {
    width: min(100%, 440px);
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
}


.process-step {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
}


.process-step__number {
    display: grid;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    background: #f1f1ef;
    color: #888888;
    font-size: 10px;
    font-weight: 700;
}


.process-step__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.process-step__label {
    color: #999999;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
}


.process-step__content strong {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}


.process-line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
    padding-left: 12px;
    color: #b0b0b0;
}


.process-line::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--border);
}


.process-line span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 12px;
    height: 12px;
    place-items: center;
    background: var(--surface);
    color: #999999;
    font-size: 14px;
}


.process-step--brand .process-step__number {
    background: var(--text);
    color: #ffffff;
}


.process-step--brand .process-step__label {
    color: var(--text);
}


.process-step--result {
    position: relative;
    padding: 16px;
    margin: 0 -16px;
    border-radius: 16px;
    background: #f5f5f3;
}


.process-step--result .process-step__number {
    background: #ffffff;
}


.process-check {
    display: grid;
    width: 36px;
    height: 36px;
    margin-left: auto;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    background: var(--text);
    color: #ffffff;
    font-size: 15px;
}


@media (max-width: 600px) {

    .process-card {
        padding: 26px;
        border-radius: 22px;
    }


    .process-step--result {
        margin: 0 -10px;
        padding: 12px 10px;
    }
}

/* ================================
   FEATURES — ALIGNMENT
================================ */

.features {
    align-items: stretch;
}


.feature {
    display: flex;
    flex-direction: column;
    min-height: 235px;
}


.feature__icon {
    flex-shrink: 0;
    margin-bottom: 42px;
}


.feature h3 {
    margin: 0;
}


.feature p {
    margin-top: 10px;
    max-width: 300px;
}

/* ================================
   CENTERED SECTION HEADING
================================ */

.section-heading--center p {
    margin: 22px auto 0;
}

/* ================================
   PRICING — HOVER
================================ */

.pricing-card--compact {
    border: 1px solid var(--border);
    box-shadow: none;
    transform: scale(1);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.pricing-card--compact:hover {
    border-color: var(--text);
    transform: scale(1.025);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
}


/* ================================
   ORDER MODAL
================================ */

.order-modal {
    width: min(560px, 100%);
    max-height: min(88vh, 820px);
}


.order__header {
    padding-right: 35px;
}


.order__header .eyebrow {
    margin-bottom: 16px;
}


.order__header h2 {
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.055em;
}


.order__header p {
    max-width: 430px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}


.order__tariff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: #f7f7f5;
}


.order__tariff > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.order__label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


#order-tariff-name {
    font-size: 18px;
    letter-spacing: -0.02em;
}


#order-tariff-price {
    font-size: 20px;
    letter-spacing: -0.03em;
}


#order-form {
    margin-top: 30px;
}


.form-field {
    display: grid;
    gap: 8px;
}


.form-field + .form-field {
    margin-top: 18px;
}


.form-field label {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}


.form-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    outline: none;
    background: #ffffff;
    color: var(--text);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-field input::placeholder {
    color: #a0a0a0;
}


.form-field input:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}


.button--telegram {
    width: 100%;
    margin-top: 26px;
    background: #f1f1ef;
    color: var(--text);
}


.button--telegram:hover {
    background: #e7e7e4;
    transform: translateY(-2px);
}


.button--telegram:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}


.telegram-status {
    min-height: 20px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}


.telegram-status.is-success {
    color: var(--success);
}


.telegram-status.is-error {
    color: #b04444;
}


.telegram-status.is-loading {
    color: var(--muted);
}


@media (max-width: 600px) {

    .order-modal {
        max-height: 92vh;
    }


    .order__header h2 {
        font-size: 34px;
    }


    .order__tariff {
        padding: 16px;
    }

}
