/* Modern Notebook / School Grid Theme (Лист в клеточку) */
:root {
    --bg-desktop: #eceae5;
    --paper-bg: #faf9f6;
    --grid-line: rgba(59, 130, 246, 0.12);
    --red-margin: #ef4444;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-blue: #2563eb;
    --accent-yellow: #fef08a;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-hand: 'Caveat', cursive;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-desktop);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    padding: 20px 10px;
    -webkit-font-smoothing: antialiased;
}

.notebook-wrapper {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    border: 1px solid #d1d5db;
}

/* Лист в клеточку (Notebook Grid Pattern) */
.notebook-sheet {
    background-color: var(--paper-bg);
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
    padding: 40px 30px 40px 65px;
    min-height: 100vh;
}

/* Красные поля школьной тетради */
.red-margin {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45px;
    width: 2px;
    background-color: rgba(239, 68, 68, 0.45);
    z-index: 1;
}

.content-area {
    position: relative;
    z-index: 2;
}

/* Хедер */
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.handwritten-date {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: #3b82f6;
    transform: rotate(-1.5deg);
}

.badge-pill {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px dashed #7dd3fc;
}

/* Hero Section */
.hero-section {
    margin-bottom: 35px;
}

.main-title {
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.highlight-yellow {
    background: linear-gradient(120deg, #fef08a 0%, #fef08a 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    padding: 0 4px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #334155;
    margin-bottom: 24px;
    line-height: 1.6;
}

.sticker-quote {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    font-family: var(--font-hand);
    font-size: 1.35rem;
    color: #78350f;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticker-pin {
    font-size: 1.4rem;
}

.hero-cta-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.btn-primary, .btn-buy {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-buy:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.hero-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 500;
}

.pencil-divider {
    border: none;
    border-top: 2px dashed #cbd5e1;
    margin: 45px 0;
}

/* Sections */
.block-section {
    margin-bottom: 40px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 22px;
    line-height: 1.3;
}

.subsection-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 25px 0 15px 0;
    color: #1e293b;
}

.text-lead {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.highlight-box {
    background: #eff6ff;
    border-left: 4px solid var(--accent-blue);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-size: 1.05rem;
}

/* 2-Column Grid for Pain/Dream */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.card-pain {
    border-top: 4px solid #ef4444;
}

.card-dream {
    border-top: 4px solid #10b981;
}

.card-header-bad {
    font-weight: 800;
    color: #dc2626;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.card-header-good {
    font-weight: 800;
    color: #059669;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.notebook-list {
    list-style: none;
}

.notebook-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 10px;
}

/* Roadmap 4 Steps */
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 900;
    color: #93c5fd;
    line-height: 1;
    margin-bottom: 8px;
}

.step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
}

/* Cases */
.cases-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.case-item {
    background: var(--card-bg);
    border: 1px solid #cbd5e1;
    border-left: 4px solid #8b5cf6;
    border-radius: 0 10px 10px 0;
    padding: 20px;
}

.case-badge {
    display: inline-block;
    background: #f3e8ff;
    color: #7e22ce;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.case-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e1b4b;
}

.case-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
}

/* Author Section */
.author-card {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    padding: 24px;
}

.author-bio {
    font-size: 1.05rem;
    margin: 10px 0;
    font-weight: 600;
    color: #334155;
}

.author-credo {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

/* Pricing / Tariff Card */
.pricing-card {
    background: #ffffff;
    border: 2px solid #2563eb;
    border-radius: 14px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
    text-align: center;
    margin-top: 25px;
}

.popular-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 18px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 10px;
    margin-bottom: 15px;
}

.price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.old-price {
    font-size: 1.3rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.current-price {
    font-size: 2.8rem;
    font-weight: 900;
    color: #2563eb;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tariff-features {
    text-align: left;
    list-style: none;
    margin-bottom: 25px;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
    padding: 20px 0;
}

.tariff-features li {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.guarantee-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #166534;
    margin-bottom: 25px;
    text-align: left;
}

.btn-buy {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.3rem;
}

.payment-security {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.faq-q {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.faq-a {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.sheet-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 5px;
    }
    .notebook-sheet {
        padding: 25px 15px 25px 35px;
        background-size: 20px 20px;
    }
    .red-margin {
        left: 24px;
    }
    .main-title {
        font-size: 1.65rem;
    }
    .grid-2-col, .roadmap-grid {
        grid-template-columns: 1fr;
    }
    .current-price {
        font-size: 2.2rem;
    }
}
