:root {
    --bg-main: #f6f8fc;
    --bg-soft: #edf3fb;
    --panel: #ffffff;
    --panel-soft: #f8fbff;
    --text-main: #1d2734;
    --text-soft: #5f6f82;
    --brand: #e94d11;
    --brand-deep: #c6400d;
    --brand-tint: #ffe8dd;
    --teal: #10879d;
    --line: rgba(37, 56, 84, 0.14);
    --radius: 22px;
    --shadow-soft: 0 12px 35px rgba(20, 44, 76, 0.08);
    --shadow-panel: 0 20px 40px rgba(25, 48, 80, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    line-height: 1.58;
    background:
        radial-gradient(850px 520px at -4% -7%, rgba(16, 135, 157, 0.2), transparent 62%),
        radial-gradient(950px 560px at 101% 8%, rgba(233, 77, 17, 0.18), transparent 63%),
        linear-gradient(180deg, #f8fbff 0%, #f6f8fc 36%, #eef3f8 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
}

body::before {
    inset: 0;
    background-image:
        linear-gradient(125deg, transparent 0 47%, rgba(16, 135, 157, 0.05) 47% 48%, transparent 48%),
        linear-gradient(38deg, transparent 0 57%, rgba(233, 77, 17, 0.06) 57% 58%, transparent 58%);
}

body::after {
    width: 390px;
    height: 390px;
    right: -180px;
    bottom: -170px;
    transform: rotate(24deg);
    border-radius: 58px;
    border: 1px solid rgba(16, 135, 157, 0.24);
}

.container {
    width: min(1140px, calc(100% - 3rem));
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    line-height: 1.12;
    letter-spacing: -0.012em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.65rem);
    margin-bottom: 0.95rem;
}

h2 {
    font-size: clamp(1.58rem, 3vw, 2.7rem);
    margin-bottom: 0.95rem;
}

p {
    margin-top: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(11px);
    background: rgba(246, 250, 255, 0.82);
    border-bottom: 1px solid rgba(30, 53, 82, 0.11);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-weight: 700;
}

.brand-logo {
    width: 108px;
    height: auto;
    display: block;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(140deg, var(--brand), #ff8a3f);
    box-shadow: 0 7px 15px rgba(233, 77, 17, 0.25);
    font-family: "Space Grotesk", sans-serif;
}

.brand-text {
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-nav {
    display: flex;
    gap: 1.4rem;
    color: var(--text-soft);
    font-size: 0.96rem;
}

.main-nav a {
    position: relative;
    padding-bottom: 0.2rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(120deg, var(--teal), var(--brand));
    transition: transform 0.24s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text-main);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(120deg, var(--brand), #ff7a2f);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(233, 77, 17, 0.18);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(233, 77, 17, 0.22);
}

.btn-small {
    min-height: 39px;
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
}

.btn-ghost {
    background: #fff;
    border-color: rgba(28, 44, 68, 0.2);
    color: var(--text-main);
    box-shadow: none;
}

.hero,
.page-hero {
    padding: 5rem 0 3.2rem;
}

.hero {
    min-height: clamp(660px, 84vh, 860px);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 2.1rem;
    align-items: center;
}

.eyebrow {
    color: #b85526;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.86rem;
    margin-bottom: 0.75rem;
}

.hero-text,
.subhead {
    color: var(--text-soft);
    max-width: 64ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.hero-points span {
    font-size: 0.82rem;
    color: #3f556e;
    border: 1px solid rgba(30, 53, 82, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.62rem;
    background: rgba(255, 255, 255, 0.72);
}

.hero-visual {
    position: relative;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

.hero-visual::before {
    content: none;
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -25deg,
        transparent 0,
        transparent 23px,
        rgba(16, 135, 157, 0.05) 23px,
        rgba(16, 135, 157, 0.05) 24px
    );
    opacity: 0.5;
    pointer-events: none;
}

.accounting-illustration {
    position: relative;
    z-index: 1;
    margin-bottom: 0.9rem;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    aspect-ratio: 16 / 10;
}

.accounting-illustration svg {
    width: 100%;
    height: 100%;
    display: block;
}

#hero-lottie {
    width: 106%;
    height: 100%;
    min-height: clamp(260px, 39vw, 445px);
    margin-left: -3%;
}

#hero-lottie > svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 2rem;
}

.hero-stats article {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 0.8rem;
}

.hero-stats h3 {
    margin-bottom: 0.15rem;
    font-size: 1.1rem;
}

.hero-stats p {
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 0.84rem;
}

.section {
    padding: 4.6rem 0;
}

.service-grid,
.pricing-grid,
.course-grid {
    display: grid;
    gap: 1.15rem;
}

.service-grid {
    margin-top: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    border: 1px solid rgba(26, 48, 78, 0.12);
    border-radius: 18px;
    background: linear-gradient(170deg, #ffffff, var(--panel-soft));
    padding: 1.35rem;
    box-shadow: var(--shadow-soft);
}

.card h3 {
    margin-bottom: 0.56rem;
}

.card p {
    color: var(--text-soft);
    margin-bottom: 0;
}

.service-card {
    display: grid;
    gap: 0.72rem;
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(23, 43, 67, 0.06);
}

.service-card h3 {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.28;
}

.service-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(233, 77, 17, 0.14), rgba(233, 77, 17, 0.05));
}

.service-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.pricing-grid {
    margin-top: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
    border-radius: 24px;
    border: 1px solid rgba(30, 52, 83, 0.16);
    padding: 1.7rem;
    background: linear-gradient(172deg, #fff, #f4f7fb);
    box-shadow: var(--shadow-soft);
}

.price-card.dark {
    background: linear-gradient(170deg, #f7f9fd, #edf2f8);
}

.price-card.featured {
    position: relative;
    background: linear-gradient(180deg, #fff8f4, #fff);
    border: 1px solid rgba(233, 77, 17, 0.32);
}

.price-card.featured::after {
    content: "Популярный";
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #fff;
    background: linear-gradient(120deg, var(--brand), #ff8033);
    border-radius: 999px;
    padding: 0.3rem 0.5rem;
}

.price {
    margin: 0.85rem 0 0.35rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.75rem);
    font-weight: 700;
}

.price span {
    display: block;
    font-size: 0.98rem;
    color: var(--text-soft);
    font-family: "IBM Plex Sans", sans-serif;
}

.price-card ul,
.check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.price-card li,
.check-list li {
    position: relative;
    padding-left: 1.45rem;
    margin: 0.63rem 0;
}

.price-card li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.54rem;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--brand), #ff8033);
}

.seo-copy {
    border-top: 1px solid rgba(16, 135, 157, 0.2);
    border-bottom: 1px solid rgba(16, 135, 157, 0.2);
    background:
        linear-gradient(145deg, rgba(16, 135, 157, 0.08), rgba(255, 255, 255, 0.8)),
        #f6fbff;
}

.two-col {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
}

.register-wrap {
    display: grid;
    grid-template-columns: 1.18fr 1fr;
    gap: 2rem;
    align-items: start;
}

.form-box {
    border: 1px solid rgba(30, 52, 84, 0.15);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #f5f9ff);
    padding: 1.3rem;
    box-shadow: var(--shadow-soft);
}

.form-box label {
    display: block;
    margin: 0.72rem 0 0.4rem;
    color: #324255;
    font-size: 0.92rem;
}

.form-box input {
    width: 100%;
    min-height: 45px;
    border: 1px solid rgba(32, 53, 84, 0.2);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    padding: 0.64rem 0.82rem;
}

.form-box input:focus {
    outline: none;
    border-color: rgba(233, 77, 17, 0.55);
    box-shadow: 0 0 0 3px rgba(233, 77, 17, 0.14);
}

.form-box .btn {
    width: 100%;
    margin-top: 1rem;
}

.form-alert {
    border-radius: 10px;
    padding: 0.64rem 0.76rem;
    font-size: 0.93rem;
}

.form-alert.success {
    border: 1px solid rgba(31, 170, 102, 0.34);
    background: rgba(31, 170, 102, 0.12);
}

.form-alert.error {
    border: 1px solid rgba(218, 70, 70, 0.34);
    background: rgba(218, 70, 70, 0.11);
}

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

.course-card {
    border-radius: 20px;
    border: 1px solid rgba(16, 135, 157, 0.18);
    background: linear-gradient(162deg, #fff, #f3f8ff);
    padding: 1.55rem;
    box-shadow: var(--shadow-soft);
}

.course-card p {
    color: var(--text-soft);
}

.promo-box {
    border: 1px solid rgba(233, 77, 17, 0.3);
    border-radius: 24px;
    padding: 2rem;
    background:
        linear-gradient(120deg, rgba(233, 77, 17, 0.14), rgba(16, 135, 157, 0.12)),
        #fff;
}

.promo-box p {
    max-width: 70ch;
}

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(20, 43, 74, 0.14);
    background: linear-gradient(180deg, #f4f8fe, #ecf2f9);
}

.footer-grid {
    padding: 2.7rem 0 1.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.3rem;
}

.footer-grid h4,
.footer-grid h3 {
    margin-bottom: 0.62rem;
}

.footer-grid p,
.footer-grid a {
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.phone-lines span {
    display: block;
}

.phone-lines .phone-sub {
    padding-left: 5.3666rem;
}

.footer-bottom {
    border-top: 1px solid rgba(20, 43, 74, 0.14);
    padding: 1rem 0;
    color: #76879b;
    font-size: 0.93rem;
}

@media (max-width: 1024px) {
    .hero-grid,
    .register-wrap,
    .two-col,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .container {
        width: min(1140px, calc(100% - 1.6rem));
    }

    .main-nav,
    .site-header .btn-small {
        display: none;
    }

    .hero,
    .page-hero,
    .section {
        padding: 3.4rem 0;
    }

    .hero {
        min-height: auto;
    }

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

    .hero-visual {
        padding: 1rem;
    }

    .accounting-illustration {
        aspect-ratio: 16 / 11;
    }

    #hero-lottie {
        width: 104%;
        min-height: clamp(250px, 64vw, 390px);
        margin-left: -2%;
    }

    .price-card.featured::after {
        right: 1rem;
    }
}
