*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

a {
    color: inherit;
}

.top {
    display: flex;
    justify-content: center;
    padding: 1.25rem 1.25rem 0;
}

.top a {
    display: block;
    line-height: 0;
}

.top img {
    width: 9.5rem;
    height: auto;
}

.page {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .185rem;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}

.back svg {
    flex: none;
    transition: transform .2s;
}

.back:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.back:hover svg {
    transform: translateX(-3px);
}

h1 {
    margin: 2rem 0 1.5rem;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.2;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.facts li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.1rem .7rem .9rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    background: #0b0b0b;
}

.facts svg {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
}

.fact-label {
    display: block;
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
    line-height: 1.3;
}

.fact-value {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
}

.facts-note {
    margin: .9rem 0 0;
    color: rgba(255, 255, 255, .55);
    font-size: .9rem;
}

.lead {
    margin-top: 2.25rem;
}

.lead p {
    margin: 0 0 1.1rem;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.65;
}

.lead strong,
.content strong {
    color: #fff;
    font-weight: 500;
}

.toc {
    margin: 2.25rem 0 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: #0b0b0b;
}

.toc-title {
    margin: 0 0 .6rem;
    color: rgba(255, 255, 255, .55);
    font-size: .95rem;
}

.toc ol {
    margin: 0;
    padding-left: 1.4rem;
}

.toc li {
    margin: .4rem 0;
    color: rgba(255, 255, 255, .55);
    font-size: 1.05rem;
    line-height: 1.45;
}

.toc a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    transition: border-color .2s;
}

.toc a:hover {
    border-bottom-color: #fff;
}

.content {
    counter-reset: section;
}

.content h2 {
    margin: 3.5rem 0 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.3;
    scroll-margin-top: 1.5rem;
}

.content h2::before {
    counter-increment: section;
    content: counter(section, decimal-leading-zero);
    display: block;
    margin-bottom: .5rem;
    color: rgba(255, 255, 255, .5);
    font-size: .85rem;
    letter-spacing: .12em;
}

.content.stages h2::before {
    content: "Этап " counter(section);
    letter-spacing: .04em;
}

.content h3 {
    margin: 2rem 0 .9rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.content p {
    margin: 0 0 1.1rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.125rem;
    line-height: 1.75;
}

.content ul {
    margin: 0 0 1.5rem;
    padding: 0 0 0 1.4rem;
    border-left: 2px solid #fff;
    list-style: none;
}

.content li {
    position: relative;
    margin: 0 0 1.1rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.125rem;
    line-height: 1.7;
}

.content li:last-child {
    margin-bottom: 0;
}

.content ul > li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: -1.4rem;
    width: .7rem;
    height: .7rem;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #000;
    transform: translateX(calc(-50% - 1px));
}

.content li ul {
    margin: .55rem 0 0;
    padding-left: 1.15rem;
    border-left: none;
}

.content li li {
    margin-bottom: .45rem;
    color: rgba(255, 255, 255, .75);
    font-size: 1.05rem;
    line-height: 1.65;
}

.content ul ul > li::before {
    top: .82em;
    left: -1.15rem;
    width: .55rem;
    height: 1px;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, .6);
    transform: none;
}

.content li p,
.content li .formula {
    margin: .75rem 0 0;
}

.formula {
    margin: 0 0 1rem;
    padding: .95rem 1.25rem;
    border-left: 3px solid #fff;
    border-radius: 0 6px 6px 0;
    background: #141414;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.formula strong {
    font-weight: 500;
}

.table-wrap {
    margin: 0 0 1.5rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}

th,
td {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    text-align: left;
    vertical-align: top;
}

thead th {
    background: #141414;
    font-weight: 500;
}

tbody th {
    font-weight: 500;
}

td {
    color: rgba(255, 255, 255, .82);
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: none;
}

.cta {
    margin: 4rem 0 0;
    padding: 2rem 1.75rem;
    border: 1px solid #fff;
    border-radius: 10px;
}

.cta h2 {
    margin: 0 0 .5rem;
    font-size: 1.65rem;
    font-weight: 400;
}

.cta p {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, .8);
    font-size: 1.125rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 3rem;
    padding: .7rem 1.4rem;
    border-radius: .185rem;
    font-size: 1.125rem;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

.btn svg {
    flex: none;
    transition: transform .2s;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #dcdcdc;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
}

.back-bottom {
    margin-top: 2.5rem;
}

.others {
    margin: 3.5rem 0 0;
}

.others h2 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.others ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.others a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    height: 100%;
    padding: .85rem 1rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}

.others a svg {
    flex: none;
}

.others a:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.footer {
    margin-top: 2rem;
    padding: 2rem 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .55);
    font-size: .95rem;
    text-align: center;
}

.footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: .75rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .top {
        padding: 1rem 1rem 0;
    }

    .top img {
        width: 7.25rem;
    }

    .page {
        padding: 1.75rem 1.25rem 2.5rem;
    }

    h1 {
        margin: 1.5rem 0 1.25rem;
        font-size: 1.75rem;
    }

    .facts {
        gap: .5rem;
    }

    .lead p {
        font-size: 1.125rem;
    }

    .toc {
        padding: 1.1rem 1.15rem;
    }

    .toc li {
        font-size: 1rem;
    }

    .content h2 {
        margin-top: 2.75rem;
        font-size: 1.35rem;
    }

    .content h3 {
        font-size: 1.15rem;
    }

    .content p,
    .content li {
        font-size: 1.0625rem;
    }

    .content li li {
        font-size: 1rem;
    }

    .content ul {
        padding-left: 1.15rem;
    }

    .content ul > li::before {
        left: -1.15rem;
    }

    .content li ul {
        padding-left: 1rem;
    }

    .content ul ul > li::before {
        left: -1rem;
    }

    .formula {
        padding: .85rem 1rem;
        font-size: 1rem;
    }

    .table-wrap {
        overflow: visible;
        border: none;
        border-radius: 0;
    }

    table,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    thead {
        display: none;
    }

    tbody tr {
        margin-bottom: .75rem;
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 10px;
        overflow: hidden;
    }

    tbody th {
        padding: .75rem 1rem;
        background: #141414;
        font-size: 1.05rem;
    }

    td {
        padding: .7rem 1rem;
        font-size: 1rem;
    }

    td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: .2rem;
        color: rgba(255, 255, 255, .5);
        font-size: .8rem;
    }

    tbody tr:last-child th,
    tbody tr:last-child td {
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    tbody tr td:last-child {
        border-bottom: none;
    }

    .cta {
        margin-top: 3rem;
        padding: 1.5rem 1.25rem;
    }

    .cta h2 {
        font-size: 1.4rem;
    }

    .btn {
        width: 100%;
    }
}
