@font-face {
    font-family: "Poppins";
    src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("assets/fonts/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mulish";
    src: url("assets/fonts/Mulish-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mulish";
    src: url("assets/fonts/Mulish-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    color: #1a1a1a;
    background-color: #ffffff;
    padding: 0;
    margin: 0 auto;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: Mulish, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
}

footer a,
header a,
.button {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a {
    color: inherit;
}

a:visited {
    color: inherit;
}

ul {
    list-style: none;
    counter-reset: list-counter;
    border-radius: 12px;
    padding: 0;
    margin: 0;
}

ul > li {
    counter-increment: list-counter;
    margin-bottom: 16px;
    position: relative;
    padding-left: 34px;
}

ul > li > strong {
    font-size: 16px;
}

ul > li::before {
    content: counter(list-counter);
    font-family: Poppins, sans-serif;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -2px;
    left: -4px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

ul > li:last-child {
    margin-bottom: 0;
}

h1 {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 6vw, 48px);
    line-height: 1.15;
    letter-spacing: clamp(-0.3px, -0.4vw, -2.5px);
}

h2 {
    font-family: Poppins, sans-serif;
    font-size: clamp(24px, 5vw, 44px);
    font-weight: 600;
    line-height: 1.2;
}

h3 {
    font-family: Poppins, sans-serif;
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 600;
    line-height: 1.2;
}

h4 {
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

h5 {
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

h6 {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.button {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: Poppins, sans-serif;
    line-height: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: scale(1.05);
}

.button.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    box-shadow: 0px 4px 15px rgba(147, 51, 234, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2) inset;
    text-transform: uppercase;
    border-radius: 12px;
}

.button.primary:hover {
    box-shadow: 0px 6px 25px rgba(147, 51, 234, 0.6);
}

strong {
    max-width: 100%;
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
}

table {
    font-family: Mulish, sans-serif;
    font-size: 18px;
    color: #1a1a1a;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    border-spacing: 0;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

th {
    text-align: left;
    height: 50px;
    padding: 12px 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #ffffff;
}

th:first-child {
    border-radius: 12px 0 0 0;
}

th:last-child {
    border-radius: 0 12px 0 0;
}

td {
    text-align: left;
    padding: 12px 16px;
    height: 60px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

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

tr:nth-child(even) {
    background-color: rgba(168, 85, 247, 0.06);
}

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

header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-bottom: 3px solid #a855f7;
    padding: 2px 0;
}

header .primary {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.5);
    border-radius: 10px;
    padding: 14px 24px;
    color: #ffffff;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
}

header img {
    display: block;
    width: auto;
    height: auto;
    max-height: 54px;
}

.header-wrapper {
    max-width: 1440px;
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    color: #ffffff;
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-nav a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.header-nav a:hover {
    color: #a855f7;
}

.mobile-menu {
    display: none;
}

.mobile-menu summary {
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.burger {
    font-size: 32px;
    cursor: pointer;
    color: #a855f7;
    background: none;
    border: none;
    padding: 8px;
    line-height: 1;
}

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

.section-hero {
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
    padding: 160px 20px 100px 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #0a0a0a 100%);
}

.section-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.section-hero > .container {
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-hero__text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 50%;
    color: #f5f5f5;
    font-size: 20px;
}

.section-hero__text-wrapper p {
    font-size: 20px;
    color: #e0e0e0;
    line-height: 1.6;
}

.section-hero h1 {
    color: #ffffff;
    text-shadow: 0 0 40px rgba(147, 51, 234, 0.6), 0 2px 20px rgba(168, 85, 247, 0.4);
}

.section-hero__image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(50% + 50px);
    max-width: calc(50% - 250px);
    width: 400px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.section-hero__btns-wrapper {
    display: flex;
    gap: 20px;
}

.section-hero__btns-wrapper > a {
    display: flex;
    text-align: center;
    justify-content: center;
    min-width: 180px;
}

.section-hero .primary {
    font-size: 18px;
    padding: 16px 32px;
}

/*============ SECTION TEXT ============*/

.section-text {
    padding: 30px 20px;
}

.section-text > .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-text p {
    font-family: Mulish, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
}

.section-text h2 {
    color: #0a0a0a;
    margin-top: 20px;
}

.section-text h3 {
    color: #1a1a1a;
    margin-top: 10px;
}

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

section .container {
    max-width: 1000px;
    margin: 0 auto;
}

/*============ INBLOCK IMAGE ============*/

.inblock-image {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/*============ CARDS ============*/

.section-cards {
    padding: 20px;
}

.section-cards > .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card__content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.card__text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card__text strong {
    font-size: 16px;
    color: #1a1a1a;
}

.card__btn {
    align-self: center;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    border-radius: 10px;
    padding: 12px 32px;
}

/*============ TOC ============*/

.section-horizontal-ul {
    background: rgba(168, 85, 247, 0.08);
    border-radius: 12px;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

.table-wrapper {
    max-width: 100%;
    margin: 20px auto;
    font-family: sans-serif;
}

.toc-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.table-header {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    user-select: none;
    cursor: pointer;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    font-family: Poppins, sans-serif;
    font-weight: 600;
    color: #1a1a1a;
}

.table-header .arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #a855f7;
    border-bottom: 2px solid #a855f7;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.toc-toggle:checked + .table-header .arrow {
    transform: rotate(-135deg);
}

.toc-toggle:checked + .table-header {
    border-bottom: none;
}

.toc-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.toc-content > * {
    overflow: hidden;
}

.toc-toggle:checked ~ .toc-content {
    grid-template-rows: 1fr;
}

.toc-toggle:checked ~ .toc-content .table-list {
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    padding: 12px 18px 12px 30px;
}

.table-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 18px 0 30px;
    list-style: disc;
    border-radius: 0;
}

.table-list li {
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.table-list li::before {
    content: "";
    background: none;
}

.table-list a {
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.table-list a:hover {
    color: #7c3aed;
}

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

footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-top: 3px solid #a855f7;
}

footer img {
    display: block;
    width: auto;
    height: auto;
    max-height: 54px;
}

.footer-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    padding: 24px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-family: Poppins, sans-serif;
    font-weight: 500;
    gap: 16px;
}

.footer-wrapper > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-wrapper > div > p {
    font-size: 14px;
    font-weight: 400;
    color: #999999;
}

/*============ MEDIA QUERIES ============*/

@media screen and (max-width: 1440px) {
    body {
        display: flex;
        flex-direction: column;
    }
    
    section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 1210px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
        position: relative;
    }
    
    .mobile-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: #0a0a0a;
        border: 2px solid #a855f7;
        border-radius: 10px;
        padding: 10px;
        min-width: 180px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 5px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    }
    
    .mobile-nav a {
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        padding: 12px 16px;
        border-radius: 8px;
        display: block;
        transition: background-color 0.2s ease;
    }
    
    .mobile-nav a:hover {
        background-color: rgba(168, 85, 247, 0.2);
    }
}

@media screen and (max-width: 980px) {
    .section-cards > .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-hero__image {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 350px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    .section-hero__text-wrapper {
        max-width: 100%;
    }
    
    .section-hero__btns-wrapper {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 768px) {
    .header-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px;
        height: auto;
        padding: 12px 14px;
        align-items: center;
        width: 100%;
    }
    
    .header-wrapper > a:first-child {
        grid-column: 1;
        grid-row: 1;
    }
    
    .header-wrapper .header-button {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 400px;
        text-align: center;
        margin: 0 auto;
        justify-self: center;
    }
    
    .header-wrapper .mobile-menu {
        grid-column: 3;
        grid-row: 1;
    }
    
    .section-hero {
        padding: 170px 20px 80px 20px;
    }
    
    .section-hero h1 {
        font-size: clamp(28px, 5.5vw, 36px);
    }
    
    h2 {
        font-size: clamp(22px, 4.5vw, 32px);
    }
    
    h3 {
        font-size: clamp(18px, 3.5vw, 26px);
    }
    
    .section-text .container table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .section-cards > .container {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}

@media screen and (max-width: 600px) {
    .section-hero__btns-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .section-hero__btns-wrapper .button,
    .section-hero__btns-wrapper > a {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 425px) {
    .section-hero {
        padding-top: 160px;
    }
    
    .section-hero__text-wrapper {
        gap: 20px;
    }
    
    .section-hero__text-wrapper p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .section-text {
        padding: 20px 16px;
    }
    
    .section-horizontal-ul {
        margin: 10px 16px;
        padding: 0 10px;
    }
    
    .section-cards {
        padding: 10px 16px;
    }
    
    h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .container {
        gap: 24px;
    }
}
