:root {
    --bg: #080b14;
    --bg-soft: #0d111c;
    --card: #111624;
    --card-hover: #151b2b;

    --text: #f7f8fb;
    --muted: #9ba5b8;
    --muted-light: #c4cad5;

    --line: rgba(255, 255, 255, 0.10);

    --accent: #ff6b2c;
    --accent-hover: #ff7d45;

    --max: 1180px;

    --radius: 20px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    overflow-x: hidden;
}


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


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


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


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


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

.header {
    position: relative;
    z-index: 20;

    border-bottom: 1px solid var(--line);

    background: rgba(8, 11, 20, 0.92);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.nav {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}


.logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--accent);
    color: #fff;

    font-size: 20px;
    font-weight: 800;
}


.brand > span:last-child {
    display: flex;
    flex-direction: column;

    font-size: 15px;
    line-height: 1.15;
}


.brand b {
    font-weight: 800;
}


.brand small {
    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


nav {
    display: flex;
    align-items: center;
    gap: 28px;
}


nav a {
    color: var(--muted-light);

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


nav a:hover {
    color: #fff;
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.call-link,
.max-link {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


.call-link {
    background: rgba(255, 255, 255, 0.07);
}


.call-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}


.max-link {
    background: var(--accent);
    color: #fff;
}


.max-link:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}


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

.hero {
    padding: 90px 0 80px;

    position: relative;
}


.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);

    align-items: center;

    gap: 80px;
}


.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.hero h1 {
    max-width: 720px;

    margin: 22px 0 24px;

    font-size: clamp(52px, 6vw, 82px);
    line-height: 0.98;

    letter-spacing: -0.055em;

    font-weight: 800;
}


.hero h1 em {
    color: var(--accent);

    font-style: normal;
}


.hero p {
    max-width: 620px;

    margin: 0;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.7;
}


.actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


.btn {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 22px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


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


.btn.primary {
    background: var(--accent);
    color: #fff;
}


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


.btn.secondary {
    background: transparent;

    border: 1px solid var(--line);

    color: var(--text);
}


.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);

    border-color: rgba(255, 255, 255, 0.18);
}


.trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    max-width: 600px;

    margin-top: 55px;

    border-top: 1px solid var(--line);

    padding-top: 22px;

    gap: 20px;
}


.trust > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 7px;
}


.trust b {
    color: var(--accent);

    font-size: 10px;
    font-weight: 800;
}


.trust span {
    color: var(--muted-light);

    font-size: 12px;
    line-height: 1.4;
}


/* =========================
   MASTER CARD
========================= */

.master-card {
    min-height: 470px;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(255, 107, 44, 0.16),
            transparent 42%
        ),
        var(--card);
}


.master-glow {
    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background: rgba(255, 107, 44, 0.16);

    filter: blur(70px);
}


.avatar {
    width: 150px;
    height: 150px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #20283a,
            #0e1320
        );

    border: 1px solid rgba(255, 255, 255, 0.14);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    color: var(--accent);

    font-size: 64px;
    font-weight: 900;
}


.master-card > strong {
    position: relative;
    z-index: 2;

    margin-top: 26px;

    font-size: 18px;
    letter-spacing: 0.04em;
}


.master-card > small {
    position: relative;
    z-index: 2;

    margin-top: 7px;

    color: var(--muted);

    font-size: 10px;
    letter-spacing: 0.1em;
}


.floating {
    position: absolute;
    z-index: 4;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 15px;

    border: 1px solid var(--line);
    border-radius: 13px;

    background: rgba(13, 17, 28, 0.9);

    backdrop-filter: blur(10px);
}


.floating.top {
    top: 35px;
    right: 30px;
}


.floating.bottom {
    bottom: 35px;
    left: 30px;
}


.floating > span {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.floating > span b {
    font-size: 12px;
}


.floating > span small {
    color: var(--muted);

    font-size: 10px;
}


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

.section {
    padding: 100px 0;
}


.section-title {
    display: grid;
    grid-template-columns: 1fr 0.75fr;

    gap: 70px;

    align-items: end;

    margin-bottom: 45px;
}


.section h2 {
    max-width: 700px;

    margin: 15px 0 0;

    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.03;

    letter-spacing: -0.045em;
}


.section h2 b {
    display: block;
}


.section h2 em {
    color: var(--accent);
    font-style: normal;
}


.section-title > p {
    max-width: 420px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   SERVICES
========================= */

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

    gap: 16px;
}


.card {
    min-width: 0;

    position: relative;

    padding: 30px;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background: var(--card);

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


.card:hover {
    transform: translateY(-5px);

    background: var(--card-hover);

    border-color: rgba(255, 255, 255, 0.16);
}


.card.accent {
    border-color: rgba(255, 107, 44, 0.35);
}


.card .num {
    color: var(--accent);

    font-size: 10px;
    font-weight: 800;
}


.card .icon {
    margin-top: 45px;

    color: var(--accent);

    font-size: 30px;
}


.card h3 {
    margin: 18px 0 10px;

    font-size: 22px;
    line-height: 1.2;
}


.card p {
    min-height: 72px;

    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.65;
}


.card a {
    display: inline-block;

    margin-top: 24px;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}


.card a:hover {
    color: var(--accent);
}


/* =========================
   ABOUT
========================= */

.about {
    background: var(--bg-soft);

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}


.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    gap: 100px;

    align-items: start;
}


.about-grid > div:first-child p {
    max-width: 520px;

    margin-top: 28px;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.75;
}


.features {
    display: grid;
    grid-template-columns: 1fr 1fr;

    border-top: 1px solid var(--line);
}


.features > div {
    min-width: 0;

    display: flex;
    gap: 18px;

    padding: 24px 0;

    border-bottom: 1px solid var(--line);
}


.features > div:nth-child(odd) {
    padding-right: 25px;
}


.features > div:nth-child(even) {
    padding-left: 25px;

    border-left: 1px solid var(--line);
}


.features > div > b {
    flex: 0 0 auto;

    color: var(--accent);

    font-size: 10px;
}


.features > div > span {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 6px;
}


.features strong {
    font-size: 13px;
    line-height: 1.35;
}


.features small {
    color: var(--muted);

    font-size: 11px;
    line-height: 1.55;
}


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

.steps {
    background: var(--bg);
}


.steps > .container > h2 {
    margin-bottom: 45px;
}


.steps-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin-top: 0;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}


.steps-grid > div {
    min-width: 0;
    min-height: 230px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 30px 28px;

    border-right: 1px solid var(--line);

    overflow: hidden;
}


.steps-grid > div:last-child {
    border-right: none;
}


.steps-grid > div > b {
    display: block;

    flex: 0 0 auto;

    margin: 0;

    color: var(--accent);

    font-size: 11px;
    line-height: 1;

    font-weight: 800;
}


.steps-grid > div > strong {
    display: block;

    flex: 0 0 auto;

    width: 100%;

    margin: 34px 0 12px;

    color: var(--text);

    font-size: 20px;
    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -0.02em;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}


.steps-grid > div > p {
    display: block;

    width: 100%;

    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}


/* =========================
   CONTACT
========================= */

.contact {
    background: var(--bg-soft);

    border-top: 1px solid var(--line);
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.65fr;

    gap: 100px;

    align-items: center;
}


.contact-grid p {
    max-width: 580px;

    margin: 28px 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.7;
}


.phone-big {
    display: inline-block;

    margin-top: 8px;

    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;

    letter-spacing: -0.03em;
}


.phone-big:hover {
    color: var(--accent);
}


.max-big {
    display: inline-block;

    margin-top: 12px;

    color: var(--accent);

    font-size: 14px;
    font-weight: 800;
}


.max-big:hover {
    color: var(--accent-hover);
}


.contact-choice {
    padding: 30px;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background: var(--card);
}


.choice-title {
    margin-bottom: 18px;

    font-size: 14px;
    font-weight: 800;
}


.contact-choice .btn {
    width: 100%;

    margin-top: 10px;
}


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

footer {
    border-top: 1px solid var(--line);

    background: var(--bg);
}


.footer {
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: var(--muted);

    font-size: 12px;
}


.footer a {
    color: var(--text);

    font-weight: 700;
}


.footer a:hover {
    color: var(--accent);
}


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

.mobile-actions {
    display: none;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .master-card {
        min-height: 400px;
    }


    .section-title {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .about-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .contact-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


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


    .steps-grid > div {
        min-height: 210px;
    }


    .steps-grid > div:nth-child(2) {
        border-right: none;
    }


    .steps-grid > div:nth-child(3),
    .steps-grid > div:nth-child(4) {
        border-top: 1px solid var(--line);
    }


    .steps-grid > div:nth-child(4) {
        border-right: none;
    }

}


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

@media (max-width: 700px) {

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


    .nav {
        min-height: 68px;

        gap: 12px;
    }


    nav {
        display: none;
    }


    .nav-actions {
        margin-left: auto;
    }


    .call-link {
        display: none;
    }


    .max-link {
        min-height: 38px;

        padding: 0 13px;
    }


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


    .hero h1 {
        margin-top: 18px;

        font-size: clamp(46px, 14vw, 66px);
    }


    .hero p {
        font-size: 15px;
    }


    .actions {
        flex-direction: column;

        width: 100%;
    }


    .actions .btn {
        width: 100%;
    }


    .trust {
        gap: 12px;

        margin-top: 42px;
    }


    .trust span {
        font-size: 11px;
    }


    .master-card {
        min-height: 350px;

        border-radius: 22px;
    }


    .avatar {
        width: 120px;
        height: 120px;

        font-size: 52px;
    }


    .floating.top {
        top: 20px;
        right: 15px;
    }


    .floating.bottom {
        bottom: 20px;
        left: 15px;
    }


    .section {
        padding: 70px 0;
    }


    .section h2 {
        font-size: 39px;
    }


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


    .card p {
        min-height: auto;
    }


    .about-grid {
        gap: 40px;
    }


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


    .features > div:nth-child(even) {
        padding-left: 0;

        border-left: none;
    }


    .features > div:nth-child(odd) {
        padding-right: 0;
    }


    /* ВАЖНО: мобильный блок шагов */
    .steps-grid {
        grid-template-columns: 1fr;

        border-bottom: 1px solid var(--line);
    }


    .steps-grid > div {
        min-height: auto;

        padding: 25px 20px;

        border-right: none !important;
        border-top: 1px solid var(--line);
    }


    .steps-grid > div:first-child {
        border-top: none;
    }


    .steps-grid > div > strong {
        margin: 20px 0 8px;

        font-size: 21px;
        line-height: 1.25;
    }


    .steps-grid > div > p {
        max-width: none;

        font-size: 13px;
        line-height: 1.6;
    }


    .contact-choice {
        padding: 22px;
    }


    .phone-big {
        font-size: 25px;
    }


    .mobile-actions {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 100;

        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 8px;

        padding: 10px;

        background: rgba(8, 11, 20, 0.95);

        border-top: 1px solid var(--line);

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }


    .mobile-actions a {
        min-height: 48px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 10px;

        font-size: 13px;
        font-weight: 800;
    }


    .mobile-call {
        background: var(--accent);
        color: #fff;
    }


    .mobile-max {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }


    footer {
        padding-bottom: 70px;
    }

}


/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 400px) {

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


    .hero h1 {
        font-size: 44px;
    }


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


    .trust > div {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }


    .master-card {
        min-height: 320px;
    }


    .master-card > strong {
        font-size: 15px;
    }


    .master-card > small {
        font-size: 8px;
    }


    .floating {
        padding: 9px 11px;
    }


    .floating.top {
        top: 15px;
        right: 10px;
    }


    .floating.bottom {
        bottom: 15px;
        left: 10px;
    }


    .section h2 {
        font-size: 35px;
    }

}