* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --paper-beige: #f5f1e8;
    --paper-cream: #faf8f3;
    --ink-dark: #2c2416;
    --ink-medium: #4a4339;
    --book-red: #8b4513;
    --book-brown: #6b4423;
    --accent-gold: #d4af37;
    --accent-burgundy: #722f37;
    --border-light: #e8e0d4;
    --shadow-soft: 0 4px 12px rgba(44, 36, 22, 0.08);
    --shadow-medium: 0 8px 24px rgba(44, 36, 22, 0.12);
    --shadow-strong: 0 12px 36px rgba(44, 36, 22, 0.16);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.9;
    color: var(--ink-dark);
    background: var(--paper-beige);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(139, 69, 19, 0.03) 39px,
            rgba(139, 69, 19, 0.03) 40px
        );
    animation: fadeIn 0.3s ease-out;
    font-size: 1.05rem;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    color: var(--ink-medium);
    font-size: 1.05rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Header - Creative Book Design */
header {
    background: linear-gradient(135deg, var(--book-brown) 0%, var(--book-red) 100%);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-gold);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    min-height: 70px;
    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--paper-cream);
    text-decoration: none;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
    height: auto;
    line-height: 1;
}

.logo:hover {
    transform: scale(1.05);
    color: #ffffff;
    background: rgba(212, 175, 55, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
}


.logo-text {
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.nav-links li {
    position: relative;
    z-index: 1000;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--paper-cream);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 1000;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    background: rgba(212, 175, 55, 0.35);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.nav-links a:hover::after {
    width: 70%;
}

.nav-links a.active {
    background: rgba(212, 175, 55, 0.4);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.nav-links a.active::after {
    width: 80%;
    background: var(--accent-gold);
}

.nav-text {
    display: inline-block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.8rem;
    z-index: 10002;
    position: relative;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--paper-cream);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--accent-gold);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--accent-gold);
}

body.menu-open {
    overflow: hidden;
}

/* Hero Section - Book Cover Style */
.hero {
    background: linear-gradient(135deg, var(--book-brown) 0%, var(--book-red) 50%, var(--accent-burgundy) 100%);
    color: var(--paper-cream);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.5);
    letter-spacing: 3px;
    color: var(--paper-cream);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2.2;
    color: rgba(250, 248, 243, 0.95);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comparison Section - Notebook Page Style */
.comparison-section {
    background: var(--paper-cream);
    border-radius: 12px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    position: relative;
    border-left: 5px solid var(--book-red);
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-out;
}

.comparison-section:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.comparison-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(139, 69, 19, 0.1), transparent);
    border-radius: 12px 0 0 12px;
    transition: width 0.3s ease;
}

.comparison-section:hover::before {
    width: 50px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--paper-cream);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--book-brown) 0%, var(--book-red) 100%);
    color: var(--paper-cream);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.comparison-table tr {
    transition: all 0.3s ease;
}

.comparison-table tr:hover {
    background: rgba(139, 69, 19, 0.08);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.comparison-table td strong {
    color: var(--book-red);
    font-weight: 600;
}

/* Cards - Book Card Style */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: var(--paper-cream);
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image {
    transform: scale(1.1);
}

.card a.btn {
    margin: 0 2rem 2rem 2rem;
    padding: 0.9rem 2rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--book-red), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
    border-color: var(--book-red);
}

.card:active {
    transform: translateY(-5px) scale(1.01);
}

.card h3 {
    color: var(--book-red);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.5rem;
    padding: 0 2rem 0.5rem 2rem;
}

.card h4 {
    color: var(--book-brown);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    padding: 0 2rem;
}

.card h5 {
    color: var(--accent-burgundy);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0 2rem;
}

.card p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--ink-medium);
    padding: 0 2rem;
    flex-grow: 1;
}

.card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    line-height: 2;
}

.card ul li {
    margin-bottom: 0.5rem;
    color: var(--ink-medium);
}

/* Info Blocks - Bookmark Style */
.info-block {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 69, 19, 0.05) 100%);
    border-left: 5px solid var(--accent-gold);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.info-block::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    opacity: 0.2;
    border-radius: 50%;
}

.info-block h3 {
    color: var(--book-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.info-block h4 {
    color: var(--book-brown);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-block p {
    line-height: 1.9;
    color: var(--ink-medium);
    margin-bottom: 1rem;
}

.info-block ul {
    line-height: 2;
    margin-left: 1.5rem;
    color: var(--ink-medium);
}

.info-block ul li {
    margin-bottom: 0.5rem;
}

.info-block a {
    color: var(--book-red);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.info-block a:hover {
    border-bottom-color: var(--book-red);
}

/* Buttons - Bookmark Button Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--book-red) 0%, var(--book-brown) 100%);
    color: var(--paper-cream);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    width: auto;
    min-width: fit-content;
    min-height: 44px;
    height: auto;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, var(--book-brown) 0%, var(--book-red) 100%);
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-primary {
    background: var(--accent-burgundy) !important;
    color: var(--paper-cream) !important;
}

.btn-primary:hover {
    background: var(--accent-burgundy) !important;
    color: var(--paper-cream) !important;
    opacity: 0.9;
    transform: translateY(-3px) scale(1.05);
}

.btn-primary::before,
.btn-primary::after {
    display: none !important;
}

/* Forms - Manuscript Style */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--book-brown);
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    background: var(--paper-cream);
    color: var(--ink-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--book-red);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.8;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Cookie Banner - Bookmark Style */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--paper-cream);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 2rem;
    z-index: 10000;
    display: none;
    border-top: 4px solid var(--accent-gold);
    width: 100%;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
    color: var(--ink-medium);
    line-height: 1.8;
}

.cookie-banner-text a {
    color: var(--book-red);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.cookie-banner-text a:hover {
    border-bottom-color: var(--book-red);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-settings {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
}

.cookie-settings.show {
    display: block;
}

.cookie-category {
    margin-bottom: 1rem;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: var(--ink-medium);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--paper-cream);
    padding: 1.2rem 1.8rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    z-index: 10001;
    display: none;
    min-width: 320px;
    max-width: 450px;
    border-left: 5px solid var(--book-red);
    animation: slideInRight 0.4s ease-out;
}

.toast.show {
    display: block;
}

.toast.success {
    border-left-color: #27ae60;
}

.toast.error {
    border-left-color: var(--accent-burgundy);
}

.toast.test-result {
    border-left-color: var(--accent-gold);
    padding: 1.5rem 2rem;
    max-width: 500px;
}

.toast.test-result h3 {
    margin: 0 0 0.8rem 0;
    color: var(--book-red);
    font-size: 1.3rem;
}

.toast.test-result p {
    margin: 0 0 1rem 0;
    color: var(--ink-dark);
    line-height: 1.8;
}

.toast.test-result .toast-genre {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-burgundy);
    display: inline-block;
    margin: 0.3rem 0;
}

.toast.test-result .toast-button {
    margin-top: 1rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast p {
    margin: 0;
    color: var(--ink-dark);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        width: calc(100% - 20px);
    }
    
    .toast.test-result {
        max-width: none;
        padding: 1.2rem 1.5rem;
    }
}

/* Footer - Book End Style */
footer {
    background: linear-gradient(135deg, var(--book-brown) 0%, var(--ink-dark) 100%);
    color: var(--paper-cream);
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
    border-top: 4px solid var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    padding-left: 0;
}

.footer-section ul li::before {
    display: none !important;
}

.footer-section a {
    color: rgba(245, 241, 232, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

.footer-bottom p {
    color: var(--accent-gold);
}

/* Test Page Styles */
.test-container {
    max-width: 900px;
    margin: 3rem auto;
}

.test-question {
    background: var(--paper-cream);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    border-left: 5px solid var(--book-red);
    position: relative;
}

.test-question::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    opacity: 0.1;
    border-radius: 0 8px 0 50%;
}

.test-question h3 {
    margin-bottom: 1.5rem;
    color: var(--book-red);
    font-size: 1.4rem;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.test-option {
    padding: 1.2rem;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--paper-cream);
}

.test-option:hover {
    border-color: var(--book-red);
    background: rgba(139, 69, 19, 0.05);
    transform: translateX(5px);
}

.test-option input[type="radio"] {
    margin-right: 0.8rem;
    cursor: pointer;
}

.test-result {
    background: var(--paper-cream);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    margin-top: 3rem;
    display: none;
    border: 2px solid var(--accent-gold);
    border-left: 8px solid var(--accent-gold);
}

.test-result.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-result h2 {
    color: var(--book-red);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Book Review Cards */
.review-card {
    background: var(--paper-cream);
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border-left: 6px solid var(--book-red);
    position: relative;
    border: 1px solid var(--border-light);
    animation: fadeIn 0.3s ease-out;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    opacity: 0.1;
    border-radius: 50%;
}

.review-card h3 {
    color: var(--book-red);
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.review-card .book-meta {
    color: var(--ink-medium);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.8rem;
}

.review-card .review-text {
    line-height: 2;
    color: var(--ink-medium);
}

.review-card .review-text p {
    margin-bottom: 1.2rem;
}

/* Lists Styling - красивые списки */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

ul li, ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.9rem;
    line-height: 1.9;
    color: var(--ink-medium);
    font-size: 1.05rem;
    padding-top: 0.1rem;
}

ul li::before {
    content: '▪';
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--book-red);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.9;
}

ol {
    counter-reset: list-counter;
}

ol li {
    counter-increment: list-counter;
    padding-left: 2.5rem;
}

ol li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--book-red);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* Nested lists */
ul ul, ol ol, ul ol, ol ul {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    margin-left: 1.5rem;
}

ul ul li::before {
    content: '▫';
    font-size: 0.9rem;
}

ol ol li::before {
    content: counter(list-counter, lower-alpha) '.';
    font-size: 0.95rem;
}

/* Typography - стилизация всего текста */
p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    color: var(--ink-medium);
    font-size: 1.05rem;
}

strong {
    color: var(--book-red);
    font-weight: 600;
}

em {
    color: var(--book-brown);
    font-style: italic;
}

a {
    color: var(--book-red);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-burgundy);
    border-bottom-color: var(--book-red);
}

/* Section Headings */
h1 {
    color: var(--book-red);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

h2 {
    color: var(--book-brown);
    margin-bottom: 1.2rem;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

h3 {
    color: var(--book-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
}

h4 {
    color: var(--book-brown);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
}

h5 {
    color: var(--accent-burgundy);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Fade In Animation for Content - без тиков */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.comparison-section,
.card,
.info-block,
.review-card,
.test-question {
    animation: fadeIn 0.2s ease-out;
}

/* Hover Effects for Cards */
.card {
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 1.2rem 0;
        min-height: 60px;
    }
    
    .logo {
        display: flex !important;
    }
    
    .logo-text {
        font-size: 1.1rem;
        display: inline-block !important;
        white-space: nowrap;
    }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: none;
        height: 100vh;
        background: linear-gradient(180deg, var(--book-brown) 0%, var(--book-red) 100%);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        border-left: 3px solid var(--accent-gold);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 10001;
        overflow-y: auto;
        gap: 0.5rem;
        margin-top: 0;
    }

    .nav-links.active {
        right: 0;
        margin-top: 0;
    }
    
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(180deg, rgba(0,0,0,0.2), transparent);
        pointer-events: none;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 1.2rem;
        border-radius: 10px;
        font-size: 1.1rem;
        justify-content: flex-start;
        margin-bottom: 0.5rem;
        border: 2px solid transparent;
    }
    
    .nav-links a:hover {
        border-color: var(--accent-gold);
        transform: translateX(5px);
    }
    
    .nav-links a.active {
        border-color: var(--accent-gold);
        background: rgba(212, 175, 55, 0.3);
    }
    
    .nav-text {
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        animation: fadeInUp 0.8s ease-out;
    }

    .hero p {
        font-size: 1.1rem;
        animation: fadeInUp 1s ease-out;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td,
    .comparison-table th {
        display: block;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tr {
        margin-bottom: 1.5rem;
        border: 2px solid var(--border-light);
        border-radius: 6px;
        padding: 1rem;
        background: var(--paper-cream);
    }

    .comparison-table td {
        border-bottom: 1px solid var(--border-light);
        padding-left: 50%;
        position: relative;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .comparison-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--book-red);
    }

    .comparison-table td:last-child {
        border-bottom: none;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-banner-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .comparison-section {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
        width: 100%;
        white-space: normal;
        word-wrap: break-word;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        max-width: 100%;
        min-height: 44px;
    }
    
    .card .btn {
        width: calc(100% - 4rem);
        margin: 0 2rem 2rem 2rem;
        min-height: 44px;
    }
    
    .hero .btn {
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        display: inline-flex;
        min-height: 44px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .test-question {
        padding: 1.5rem;
    }

    .review-card {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .logo {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }

    .comparison-section {
        padding: 1.5rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }
    
    .nav-links {
        width: 100%;
        padding: 4rem 1.5rem 2rem;
    }
    
    .nav-links a {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        white-space: normal;
        word-wrap: break-word;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 44px;
    }
    
    .card .btn {
        width: calc(100% - 4rem);
        margin: 0 2rem 2rem 2rem;
        min-height: 44px;
    }
}
