/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-dark-primary: #023774;
    --blue-dark-secondary: #01386B;
    --blue-surface: #053261;
    --blue-surface-light: #0E427C;
    --gray-background: #C0C7CE;
    --yellow-accent: #FEBA01;
    --orange-accent: #DF9840;
    --green-accent: #5CCF6A;
    --white-primary: #F9FEFE;
    --text-muted: #9FB3C8;
    --divider: rgba(255, 255, 255, 0.12);
    
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-button: 0 2px 6px rgba(0, 0, 0, 0.18);
    --shadow-active-inset: inset 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-nav: 0 2px 6px rgba(0, 0, 0, 0.25);
    
    --radius-card: 10px;
    --radius-button: 24px;
    --radius-pill: 999px;
    --radius-small: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--blue-surface);
    color: var(--white-primary);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--white-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--white-primary);
}

a {
    color: var(--white-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Visually Hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    min-width: 60px;
    border: none;
    border-radius: var(--radius-button);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: inherit;
}

.btn--primary {
    background-color: var(--blue-surface-light);
    color: var(--white-primary);
    box-shadow: var(--shadow-button);
}

.btn--primary:hover {
    background-color: #14508F;
    filter: brightness(1.06);
}

.btn--primary:active {
    background-color: #0A3565;
    box-shadow: var(--shadow-active-inset);
}

.btn--accent {
    background-color: var(--orange-accent);
    color: var(--white-primary);
    box-shadow: var(--shadow-button);
}

.btn--accent:hover {
    background-color: #E6A657;
    filter: brightness(1.06);
}

.btn--yellow {
    background-color: var(--yellow-accent);
    color: var(--blue-dark-primary);
    box-shadow: var(--shadow-button);
    font-weight: 600;
}

.btn--yellow:hover {
    background-color: #E0A800;
    filter: brightness(1.06);
}

.btn--yellow:active {
    background-color: #D19A00;
    box-shadow: var(--shadow-active-inset);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn:focus {
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Header */
.header {
    background: linear-gradient(180deg, var(--blue-dark-primary) 0%, var(--blue-dark-secondary) 100%);
    box-shadow: var(--shadow-nav);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.header__top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header__logo img {
    height: 36px;
    width: auto;
    display: block;
}

.header__cta-group {
    display: flex;
    gap: 12px;
}



/* ToC */
.header__toc-wrapper {
    overflow: hidden;
    border-top: 1px solid var(--divider);
}

.header__toc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.toc {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.toc::-webkit-scrollbar {
    display: none;
}

.toc__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 12px 0;
    gap: 16px;
    white-space: nowrap;
}

.toc__item {
    display: inline-block;
}

.toc__link {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: var(--radius-small);
    transition: all 0.2s;
    white-space: nowrap;
}

.toc__link:hover {
    color: var(--white-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.toc__link.active {
    color: var(--yellow-accent);
    background-color: rgba(254, 186, 1, 0.1);
}

/* Hero Section */
.hero {
    padding: 40px 0;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.hero__text h1 {
    margin-bottom: 1.5rem;
}

.hero__lead {
    margin-bottom: 1.5rem;
}

.hero__meta {
    margin-top: 1.5rem;
}

.reading-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.reading-time__label {
    margin-right: 4px;
}

.hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero__figure {
    width: 100%;
    margin: 0;
}

.hero__image {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    border-radius: var(--radius-card);
    object-fit: contain;
}

.hero__cta {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero__cta--mobile {
    display: none;
}

.hero__cta--desktop {
    display: flex;
}

.hero__fact-check {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--divider);
    color: var(--text-muted);
    font-size: 0.875rem;
}


/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    margin-bottom: 24px;
}

.content-section__figure {
    margin: 0 0 24px 0;
    text-align: center;
}

.content-section__image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: var(--radius-card);
    object-fit: contain;
}

.content-section__content {
    max-width: 800px;
    margin: 0 auto;
}

.content-section__content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background-color: var(--blue-surface-light);
    border-radius: var(--radius-small);
    overflow: hidden;
}

.content-section__content th,
.content-section__content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--divider);
}

.content-section__content th {
    background-color: var(--blue-dark-primary);
    font-weight: 600;
    color: var(--white-primary);
}

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

/* Bonus Slider */
.bonus-slider {
    position: relative;
    margin: 32px 0;
    padding: 0 40px;
}

.bonus-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

.bonus-cards::-webkit-scrollbar {
    display: none;
}

.bonus-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    background-color: var(--blue-surface-light);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
    scroll-snap-align: start;
    position: relative;
}

.bonus-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--yellow-accent);
    color: var(--blue-dark-primary);
    padding: 4px 8px;
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    font-weight: 600;
}

.bonus-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    padding-right: 80px;
}

.bonus-card__desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.bonus-card__cta {
    width: 100%;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--blue-surface-light);
    color: var(--white-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-button);
    transition: all 0.2s;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: #14508F;
    filter: brightness(1.06);
}

.slider-prev:focus,
.slider-next:focus {
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px 0;
}

.pros-cons__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pros-cons__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background-color: var(--blue-surface-light);
    border-radius: var(--radius-small);
}

.pros-cons__list--pros li {
    border-left: 3px solid var(--green-accent);
}

.pros-cons__list--cons li {
    border-left: 3px solid var(--orange-accent);
}

.icon-check,
.icon-cross {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Author Section */
.author-section {
    padding: 40px 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.author-section__content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
}

.author-section__avatar {
    flex-shrink: 0;
}

.author-section__image {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.author-section__bio {
    color: var(--white-primary);
    margin-bottom: 8px;
}

.author-section__update {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
}

.faq-section h2 {
    margin-bottom: 24px;
}

.faq-section__content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--blue-surface-light);
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.faq-item__question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--yellow-accent);
    transition: transform 0.3s;
}

.faq-item[open] .faq-item__question::after {
    transform: rotate(45deg);
}

.faq-item__answer {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--blue-dark-primary);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}

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

.footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer__nav-list a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer__nav-list a:hover {
    color: var(--white-primary);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.payment-icon {
    padding: 8px 12px;
    background-color: var(--blue-surface-light);
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.footer__copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 20px;
    border-top: 1px solid var(--divider);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--blue-surface-light);
    color: var(--white-primary);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #14508F;
    filter: brightness(1.06);
}

.back-to-top:focus {
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero__content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    
    .hero__visual {
        align-items: flex-start;
    }
    
    .hero__cta {
        justify-content: flex-start;
    }
    
    .pros-cons {
        grid-template-columns: 1fr 1fr;
    }
    
    .author-section__content {
        align-items: center;
    }
    
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    
    .footer__nav-list {
        justify-content: flex-start;
    }
    
    .footer__copyright {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .header__top-container {
        padding: 16px 20px;
    }
    
    .header__logo img {
        height: 36px;
    }
    
    .bonus-card {
        flex: 0 0 calc(25% - 15px);
    }
    
    .footer__content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .header__cta-group {
        display: flex;
        gap: 8px;
    }
    
    .header__cta-group .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .hero__cta--mobile {
        display: flex;
        margin-bottom: 24px;
    }
    
    .hero__cta--desktop {
        display: none;
    }
    
    .bonus-slider {
        padding: 0;
    }
    
    .slider-prev,
    .slider-next {
        display: none;
    }
    
    .bonus-card {
        flex: 0 0 85%;
    }
}

/* Table Responsive */
@media (max-width: 767px) {
    .content-section__content table {
        display: block;
        overflow-x: auto;
    }
    
    .content-section__content thead {
        display: none;
    }
    
    .content-section__content tbody {
        display: block;
    }
    
    .content-section__content tr {
        display: block;
        margin-bottom: 16px;
        background-color: var(--blue-surface-light);
        border-radius: var(--radius-small);
        padding: 12px;
    }
    
    .content-section__content td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border-bottom: 1px solid var(--divider);
    }
    
    .content-section__content td:last-child {
        border-bottom: none;
    }
    
    .content-section__content td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--yellow-accent);
    }
}
