:root{--navy:#10294d;--blue:#225bd6;--light-blue:#edf3ff;--ink:#172b4d;--muted:#68778e;--line:#e4eaf3;--bg:#f7f9fc;--white:#fff;--green:#16845b;--orange:#f4a261;--shadow:0 14px 35px rgba(25,50,90,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Segoe UI,Arial,sans-serif;line-height:1.55}a{color:inherit}.site-header{height:auto;min-height:76px;padding:15px max(5%,calc((100% - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:21px;letter-spacing:-.5px}.brand-icon{display:grid;place-items:center;width:36px;height:36px;background:var(--blue);color:white;border-radius:11px;font-weight:800}.site-header nav{display:flex;gap:26px;flex-wrap:wrap}.site-header nav a{text-decoration:none;color:#50617a;font-size:14px;font-weight:650}.site-header nav a:hover,.text-link:hover{color:var(--blue)}.page{max-width:1180px;margin:auto;padding:0 24px 60px}.hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:55px;padding:72px 0 64px}.eyebrow{font-size:11px;letter-spacing:1.7px;color:var(--blue);font-weight:800}.hero h1{font-size:clamp(36px,5vw,57px);line-height:1.08;letter-spacing:-2px;margin:18px 0}.hero h1 span{color:var(--blue)}.hero-copy>p{font-size:17px;max-width:570px;color:var(--muted);line-height:1.8}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:26px 0}.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;border-radius:9px;padding:12px 18px;font-size:14px;font-weight:750;cursor:pointer;transition:.15s}.button:disabled{opacity:.55;cursor:not-allowed}.primary{background:var(--blue);color:#fff;box-shadow:0 5px 12px #225bd626}.primary:hover{background:#1748b2}.secondary{background:#fff;border:1px solid #dce4f1;color:var(--ink)}.secondary:hover{border-color:#9bb4e8}.small{padding:9px 12px;font-size:12px}.full-width{width:100%;margin:10px 0}.trust-row{display:flex;gap:15px;flex-wrap:wrap;color:#5b6b80;font-size:12px}.hero-card{min-height:360px;position:relative;border-radius:26px;background:linear-gradient(145deg,#e6eeff,#f4f7ff);padding:27px;overflow:hidden}.paper-top{display:flex;justify-content:space-between;color:#6a7fa2;font-size:11px;font-weight:800;letter-spacing:1px}.paper-dot{letter-spacing:3px;color:#9bb0d0}.paper-lines{margin-top:45px;display:grid;gap:14px}.paper-lines i{display:block;height:9px;border-radius:8px;background:#cbd8ed;width:90%}.paper-lines i:nth-child(2){width:70%}.paper-lines i:nth-child(3){width:82%}.score-card{position:absolute;left:20px;bottom:100px;background:white;display:flex;gap:12px;align-items:center;padding:15px 18px;border-radius:13px;box-shadow:var(--shadow)}.score-check{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e2f8ee;color:var(--green);font-size:20px}.score-card strong,.score-card small{display:block}.score-card small{color:var(--muted);font-size:11px}.book-illustration{position:absolute;right:30px;bottom:-2px;display:flex;align-items:end;gap:7px;transform:rotate(-7deg)}.book{width:44px;border-radius:5px 5px 0 0;box-shadow:inset 5px 0 #ffffff40}.book-blue{height:100px;background:#356bd8}.book-orange{height:130px;background:#ed9b5c}.book-green{height:82px;background:#46a58c}.section{padding:32px 0 55px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.section h2,.category-band h2{font-size:28px;letter-spacing:-.8px;margin:7px 0}.section-heading>p{color:var(--muted);font-size:13px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card{background:white;border:1px solid var(--line);border-radius:16px;padding:25px;text-decoration:none;transition:.2s}.feature-card:hover,.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.feature-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:850;font-size:13px}.purple{background:#f0eaff;color:#7951c8}.blue{background:#e8f0ff;color:#225bd6}.orange{background:#fff0e4;color:#bd6828}.feature-card h3{margin:18px 0 8px}.feature-card p{color:var(--muted);font-size:14px;min-height:62px}.text-link{color:var(--blue);font-size:13px;font-weight:800;text-decoration:none}.category-band{padding:30px;background:#eaf0fc;border-radius:20px;display:grid;grid-template-columns:.7fr 1.3fr;gap:30px;align-items:start}.category-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.category-list a{display:flex;justify-content:space-between;background:white;padding:13px 15px;border-radius:9px;text-decoration:none;font-size:13px;font-weight:700}.category-list a span{color:var(--blue)}.notice{margin-top:28px;border:1px solid #f0d8ad;background:#fff9ed;color:#6d5834;border-radius:10px;padding:15px 17px;font-size:13px}.footer{display:flex;justify-content:space-between;gap:20px;align-items:center;background:var(--navy);color:#fff;padding:25px max(5%,calc((100% - 1180px)/2));font-size:13px}.footer p{color:#b6c5da;margin:4px 0}.footer-note{color:#b6c5da}.page-intro{padding:48px 0 25px}.page-intro h1{font-size:40px;letter-spacing:-1.5px;margin:8px 0}.page-intro p{color:var(--muted);max-width:650px}.filter-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:14px 0 24px}.search-input{width:min(420px,100%);padding:13px 15px;border:1px solid #d9e1ee;border-radius:9px;font-size:14px;background:white}.muted{font-size:12px;color:var(--muted)}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product-card{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;transition:.2s}.product-card[hidden]{display:none}.product-art{height:185px;position:relative;display:grid;place-items:center;overflow:hidden}.art-paper{background:linear-gradient(140deg,#eaf0ff,#d9e5ff)}.art-ebook{background:linear-gradient(140deg,#fff0e4,#f9d7bc)}.art-label{position:absolute;top:14px;left:14px;background:#ffffffbd;padding:5px 9px;border-radius:5px;font-size:10px;font-weight:800;color:#52637c}.art-document{width:105px;height:132px;background:white;border-radius:4px;box-shadow:0 12px 25px #243b5b20;padding:18px 12px;transform:rotate(-4deg);display:flex;flex-direction:column;gap:9px}.art-document span{height:4px;background:#dce4f1;border-radius:4px}.art-document span:nth-child(2){width:75%}.art-document span:nth-child(3){width:88%}.art-document span:nth-child(4){width:55%}.art-document b{font-size:8px;color:var(--blue);margin-top:auto}.product-info{padding:20px}.product-kind{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--blue);font-weight:800}.product-info h3{font-size:17px;line-height:1.35;margin:8px 0}.product-info p{font-size:12px;color:var(--muted);min-height:55px}.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px}.product-bottom strong{font-size:19px}.breadcrumbs{font-size:12px;color:var(--muted);padding:24px 0}.breadcrumbs a{color:var(--blue)}.product-detail{display:grid;grid-template-columns:.9fr 1.1fr;gap:55px;padding:15px 0 55px;align-items:center}.detail-art{background:linear-gradient(140deg,#e8efff,#f8e9dc);border-radius:22px;min-height:440px;display:grid;place-items:center}.large-document{width:230px;height:310px;background:white;border-radius:7px;box-shadow:0 20px 45px #25385825;padding:25px;display:flex;flex-direction:column;gap:15px;transform:rotate(-3deg)}.doc-label{font-size:11px;color:var(--blue);font-weight:800}.large-document h2{font-size:25px;line-height:1.1;margin:24px 0 8px}.large-document i{height:7px;border-radius:5px;background:#e1e7f1}.large-document i:nth-of-type(2){width:80%}.large-document i:nth-of-type(3){width:90%}.large-document small{margin-top:auto;color:#9aa8bd;letter-spacing:2px;font-weight:800}.detail-copy h1{font-size:38px;line-height:1.15;letter-spacing:-1.2px;margin:10px 0}.detail-copy>p{color:var(--muted)}.detail-price{font-size:30px;font-weight:850;margin:20px 0}.benefits{padding-left:20px;color:#52637b;font-size:13px;line-height:2.2}.payment-message{font-size:12px;color:var(--muted);min-height:35px}.empty-state{text-align:center;padding:70px 10px;max-width:600px;margin:auto}.empty-state .feature-icon{margin:auto}.empty-state p{color:var(--muted)}.test-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.quiz-panel,.test-sidebar,.results-panel{background:white;border:1px solid var(--line);border-radius:16px;padding:24px}.quiz-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.pill{background:#eef3ff;color:var(--blue);padding:6px 10px;border-radius:30px;font-size:11px;font-weight:800}.timer{font-variant-numeric:tabular-nums;font-weight:850;color:#b75a24;background:#fff2e8;border-radius:8px;padding:7px 12px}.progress-track{height:6px;background:#edf1f7;border-radius:8px;overflow:hidden;margin-bottom:25px}.progress-track div{height:100%;width:0;background:var(--blue);transition:width .2s}.question-card{border:0;padding:0;margin:0;min-width:0}.question-card[hidden]{display:none}.question-meta{display:flex;justify-content:space-between;gap:15px;color:#8491a5;font-size:10px;letter-spacing:1px;font-weight:800}.question-card h2{font-size:21px;line-height:1.4;margin:20px 0}.options{display:grid;gap:10px}.option{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e0e7f1;border-radius:10px;cursor:pointer;font-size:14px}.option:has(input:checked){border-color:#7297ee;background:#f1f5ff}.option input{accent-color:var(--blue);width:16px;height:16px}.question-nav{display:flex;justify-content:space-between;gap:12px;margin-top:25px}.quiz-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:22px;padding-top:17px;color:var(--muted);font-size:12px}.text-button{border:0;background:none;color:var(--blue);font-weight:800;cursor:pointer}.test-sidebar h3{margin-top:0}.test-sidebar ul{padding-left:18px;color:var(--muted);font-size:13px;line-height:2}.mini-note{background:#fff8eb;border-radius:9px;padding:12px;color:#7a6032;font-size:11px;margin-top:20px}.results-panel{margin-top:25px}.result-header{text-align:center;background:#f3f6ff;padding:25px;border-radius:12px}.result-header h1{font-size:52px;margin:5px}.result-header p{color:var(--muted)}.review-card{padding:18px 0;border-bottom:1px solid var(--line)}.review-card h3{font-size:16px}.review-card p{font-size:13px;color:#5d6d83}.review-status{display:inline-block;padding:4px 8px;border-radius:5px;font-size:10px;font-weight:850}.review-status.right{background:#e1f8ed;color:#08784e}.review-status.wrong{background:#fff0e7;color:#a95323}.explanation{background:#f5f8fd;padding:12px;border-radius:8px}.empty-state code,.notice code{background:#f0f3f8;padding:2px 5px;border-radius:4px}
@media(max-width:800px){.hero{grid-template-columns:1fr;padding-top:45px;gap:25px}.hero-card{min-height:310px}.feature-grid,.product-grid{grid-template-columns:repeat(2,1fr)}.category-band{grid-template-columns:1fr}.product-detail{grid-template-columns:1fr;gap:25px}.detail-art{min-height:350px}.test-layout{grid-template-columns:1fr}.test-sidebar{order:-1}.site-header{align-items:flex-start;flex-direction:column}.site-header nav{gap:18px}}@media(max-width:540px){.page{padding-left:16px;padding-right:16px}.feature-grid,.product-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column;gap:0}.category-list{grid-template-columns:1fr}.hero h1{letter-spacing:-1.2px}.hero-card{min-height:290px}.footer{flex-direction:column;align-items:flex-start}.filter-row{align-items:flex-start;flex-direction:column}.detail-copy h1{font-size:31px}.quiz-panel,.test-sidebar,.results-panel{padding:16px}.question-nav .button{padding:10px 12px}.question-card h2{font-size:18px}}

/* Admin product management */
.admin-wrap{padding:42px 0 30px}.admin-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:25px}.admin-heading h1{font-size:clamp(30px,4vw,42px);letter-spacing:-1.2px;margin:7px 0}.admin-heading p,.admin-list-heading p{color:var(--muted);margin:0}.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0 35px}.admin-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:21px;box-shadow:0 5px 18px #19325a08}.admin-stat span{display:block;color:var(--muted);font-size:13px}.admin-stat strong{display:block;font-size:29px;margin-top:6px;letter-spacing:-.5px}.admin-list-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}.admin-list-heading h2{margin:0 0 4px;font-size:24px}.admin-list-heading p{font-size:13px}.admin-count{background:#eaf0ff;color:var(--blue);border-radius:30px;padding:7px 11px;font-size:12px;font-weight:800}.admin-table-wrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:14px}.admin-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.admin-table th{background:#f4f7fc;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.7px}.admin-table th,.admin-table td{padding:15px 17px;border-bottom:1px solid var(--line);vertical-align:middle}.admin-table tr:last-child td{border-bottom:0}.admin-table td strong,.admin-table td small{display:block}.admin-table td small{color:var(--muted);margin-top:3px}.admin-table code{font-size:11px;overflow-wrap:anywhere}.admin-actions{display:flex;gap:7px;align-items:center}.admin-actions form{margin:0}.danger{background:#fff0f0;color:#b42318;border:1px solid #ffd0cc}.danger:hover{background:#ffe2e0}.admin-footer-links{display:flex;gap:20px;flex-wrap:wrap;margin:25px 0}.admin-footer-links a{color:var(--blue);font-size:13px;font-weight:750}.admin-messages{display:grid;gap:8px;margin:15px 0}.admin-message{padding:12px 15px;border-radius:9px;font-size:13px}.admin-message.success{background:#e8f8ef;color:#12643e;border:1px solid #b9e8cb}.admin-message.error{background:#fff0ee;color:#9f2f24;border:1px solid #ffc9c2}.admin-empty{background:white;border:1px dashed #cbd5e1;border-radius:14px;text-align:center;padding:40px 20px}.admin-empty p{color:var(--muted)}.admin-product-form{max-width:780px;background:white;border:1px solid var(--line);border-radius:16px;padding:25px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-product-form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750}.admin-product-form input:not([type=checkbox]),.admin-product-form select,.admin-product-form textarea{width:100%;padding:12px;border:1px solid #d5deeb;border-radius:8px;background:white;color:var(--ink);font:inherit;font-weight:400}.admin-product-form input:focus,.admin-product-form select:focus,.admin-product-form textarea:focus{outline:2px solid #b8ccff;border-color:var(--blue)}.admin-product-form small{color:var(--muted);font-size:11px;font-weight:400}.admin-product-form label:nth-child(6),.admin-product-form .upload-field,.admin-product-form .admin-form-actions{grid-column:1/-1}.admin-product-form .check-row{flex-direction:row;align-items:center}.check-row input{accent-color:var(--blue);width:16px;height:16px}.admin-form-actions{display:flex;gap:10px;padding-top:8px}.admin-form-wrap{max-width:900px;margin:auto}
@media(max-width:760px){.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-heading{align-items:flex-start;flex-direction:column}.admin-product-form{grid-template-columns:1fr;padding:18px}.admin-product-form label:nth-child(6),.admin-product-form .upload-field,.admin-product-form .admin-form-actions{grid-column:auto}.admin-table{min-width:760px}}
.product-cover {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    padding: 8px;
}


.detail-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
}


.detail-art {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .detail-art {
        min-height: 320px;
    }

    .detail-cover {
        max-height: 360px;
    }
}
