*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;color:#3F2305;background:#FFFEF7;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:#DC2626;text-decoration:none;transition:color .2s}
a:hover{color:#B91C1C}
.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* Header */
.header{background:#fff;box-shadow:0 2px 8px rgba(63,35,5,.08);position:sticky;top:0;z-index:100}
.header .container{display:flex;align-items:center;justify-content:space-between;height:68px}
.header-logo{display:flex;align-items:center;gap:10px;font-size:1.3rem;font-weight:800;color:#DC2626}
.header-logo svg{width:36px;height:36px}
.nav{display:flex;align-items:center;gap:24px;list-style:none}
.nav a{color:#3F2305;font-size:.92rem;font-weight:500}
.nav a:hover{color:#DC2626}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px}
.nav-toggle svg{width:28px;height:28px;fill:#3F2305}

/* Hero */
.hero{background:linear-gradient(135deg,#DC2626 0%,#EAB308 100%);color:#fff;padding:80px 0 90px;text-align:center;position:relative;overflow:hidden}
.hero::after{content:'';position:absolute;bottom:-1px;left:0;width:100%;height:60px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23FFFEF7' d='M0,60V30Q360,0,720,30T1440,30V60Z'/%3E%3C/svg%3E");background-size:cover}
.hero h1{font-size:2.8rem;font-weight:800;margin-bottom:16px;letter-spacing:-.02em}
.hero p{font-size:1.15rem;opacity:.95;max-width:560px;margin:0 auto 28px;line-height:1.7}

/* Search */
.search-box{max-width:560px;margin:0 auto;position:relative}
.search-box input{width:100%;padding:16px 56px 16px 20px;border:none;border-radius:12px;font-size:1.05rem;font-family:inherit;box-shadow:0 4px 20px rgba(0,0,0,.15);outline:none}
.search-box input::placeholder{color:#999}
.search-box button{position:absolute;right:6px;top:6px;bottom:6px;width:46px;border:none;border-radius:8px;background:#DC2626;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.search-box button:hover{background:#B91C1C}
.search-box button svg{width:22px;height:22px;fill:#fff}

/* Word of the Day */
.wotd{background:#fff;border-radius:16px;max-width:480px;margin:30px auto 0;padding:20px 28px;box-shadow:0 4px 16px rgba(0,0,0,.08);text-align:left}
.wotd-label{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#EAB308;margin-bottom:6px}
.wotd h3{font-size:1.3rem;font-weight:700;color:#DC2626;margin-bottom:2px}
.wotd .wotd-pron{font-size:.88rem;color:#888;font-style:italic;margin-bottom:6px}
.wotd p{font-size:.95rem;line-height:1.6}

/* Section */
.section{padding:70px 0}
.section-alt{background:#FFF8F0}
.section-title{text-align:center;margin-bottom:44px}
.section-title h2{font-size:2rem;font-weight:700;color:#3F2305;margin-bottom:10px}
.section-title p{color:#7C6349;font-size:1rem;max-width:560px;margin:0 auto}

/* Quick Links Grid */
.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.quick-card{background:#fff;border-radius:14px;padding:32px 24px;text-align:center;box-shadow:0 3px 16px rgba(63,35,5,.06);transition:transform .3s,box-shadow .3s}
.quick-card:hover{transform:translateY(-4px);box-shadow:0 10px 30px rgba(220,38,38,.1)}
.quick-card .qc-icon{width:56px;height:56px;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:linear-gradient(135deg,#DC2626,#EAB308)}
.quick-card .qc-icon svg{width:28px;height:28px;fill:#fff}
.quick-card h3{font-size:1.1rem;font-weight:700;margin-bottom:8px}
.quick-card p{color:#7C6349;font-size:.9rem;line-height:1.6;margin-bottom:14px}
.quick-card .btn-sm{display:inline-block;padding:8px 20px;border-radius:8px;background:#DC2626;color:#fff;font-size:.85rem;font-weight:600;transition:background .2s}
.quick-card .btn-sm:hover{background:#B91C1C;color:#fff}

/* Featured Words */
.featured-words{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.fw-card{background:#fff;border-radius:10px;padding:18px;border-left:4px solid #DC2626;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.fw-card h4{font-size:1rem;font-weight:700;color:#DC2626;margin-bottom:2px}
.fw-card .fw-type{font-size:.78rem;color:#EAB308;font-weight:600;margin-bottom:4px}
.fw-card p{font-size:.88rem;color:#7C6349}

/* Letter Grid */
.letter-grid{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:40px}
.letter-grid a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:#DC2626;color:#fff;font-weight:700;font-size:1.1rem;transition:background .2s,transform .2s}
.letter-grid a:hover{background:#B91C1C;color:#fff;transform:scale(1.1)}

/* Word Entry */
.word-entry{background:#fff;border-radius:14px;padding:28px;margin-bottom:20px;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.word-entry h3{font-size:1.4rem;font-weight:700;color:#DC2626;margin-bottom:4px}
.word-entry .we-pron{font-size:.9rem;color:#888;font-style:italic;margin-bottom:8px}
.word-entry .we-pos{display:inline-block;padding:3px 10px;border-radius:6px;background:#FEF3C7;color:#92400E;font-size:.78rem;font-weight:600;margin-bottom:10px}
.word-entry .we-def{font-size:1rem;margin-bottom:10px}
.word-entry .we-example{font-size:.92rem;color:#7C6349;font-style:italic;padding-left:16px;border-left:3px solid #EAB308}
.word-entry .audio-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border:2px solid #DC2626;border-radius:8px;color:#DC2626;font-size:.82rem;font-weight:600;cursor:pointer;background:none;margin-top:10px;transition:background .2s}
.word-entry .audio-btn:hover{background:#FEF2F2}
.word-entry .audio-btn svg{width:16px;height:16px;fill:#DC2626}

/* Phrases */
.phrase-section{margin-bottom:40px}
.phrase-section h3{font-size:1.3rem;font-weight:700;color:#DC2626;margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid #FEF3C7}
.phrase-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.phrase-table th{background:#DC2626;color:#fff;padding:12px 16px;text-align:left;font-size:.88rem;font-weight:600}
.phrase-table td{padding:12px 16px;font-size:.92rem;border-bottom:1px solid #FEF3C7}
.phrase-table tr:last-child td{border-bottom:none}
.phrase-table tr:hover{background:#FFFBEB}
.phrase-table .pron{color:#888;font-style:italic;font-size:.84rem}

/* Conjugation */
.conj-select{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:30px;justify-content:center}
.conj-select button{padding:10px 22px;border:2px solid #DC2626;border-radius:10px;background:#fff;color:#DC2626;font-weight:600;font-size:.92rem;cursor:pointer;transition:all .2s;font-family:inherit}
.conj-select button.active,
.conj-select button:hover{background:#DC2626;color:#fff}
.conj-table-wrap{overflow-x:auto}
.conj-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.05);margin-bottom:20px}
.conj-table caption{background:#3F2305;color:#fff;padding:12px;font-weight:700;font-size:1rem;text-align:left}
.conj-table th{background:#FEF3C7;padding:10px 14px;text-align:left;font-size:.85rem;font-weight:600;color:#92400E}
.conj-table td{padding:10px 14px;font-size:.92rem;border-bottom:1px solid #FEF3C7}
.conj-table tr:last-child td{border-bottom:none}

/* Lessons */
.lessons-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px}
.lesson-card{background:#fff;border-radius:14px;padding:30px 24px;box-shadow:0 3px 16px rgba(0,0,0,.06);transition:transform .3s}
.lesson-card:hover{transform:translateY(-3px)}
.lesson-card .lc-level{display:inline-block;padding:4px 12px;border-radius:6px;font-size:.75rem;font-weight:700;text-transform:uppercase;margin-bottom:12px}
.lesson-card .lc-level.beginner{background:#DEF7EC;color:#03543F}
.lesson-card .lc-level.intermediate{background:#FEF3C7;color:#92400E}
.lesson-card .lc-level.advanced{background:#FEE2E2;color:#991B1B}
.lesson-card h3{font-size:1.15rem;font-weight:700;margin-bottom:8px}
.lesson-card p{color:#7C6349;font-size:.9rem;margin-bottom:16px;line-height:1.6}
.lesson-card .btn-sm{display:inline-block;padding:8px 20px;border-radius:8px;background:#DC2626;color:#fff;font-size:.85rem;font-weight:600;transition:background .2s}
.lesson-card .btn-sm:hover{background:#B91C1C;color:#fff}

/* Breadcrumb */
.breadcrumb{padding:14px 0;font-size:.85rem;color:#7C6349}
.breadcrumb a{color:#DC2626}
.breadcrumb span{margin:0 6px;color:#ccc}

/* Info page */
.info-page{max-width:800px;margin:0 auto;padding:40px 24px}
.info-page h1{font-size:2rem;font-weight:700;color:#3F2305;margin-bottom:24px}
.info-page h2{font-size:1.4rem;font-weight:700;color:#3F2305;margin:28px 0 12px}
.info-page p,.info-page li{font-size:.95rem;line-height:1.75;margin-bottom:12px;color:#5C4033}
.info-page ul{padding-left:24px}

/* Ad slot */
.ad-slot{background:#f5f0eb;border:2px dashed #ddd;border-radius:10px;padding:20px;text-align:center;color:#aaa;font-size:.85rem}

/* Footer */
.footer{background:#3F2305;color:#E8D5C4;padding:50px 0 0}
.footer-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:32px}
.footer h4{color:#EAB308;font-size:.92rem;font-weight:700;margin-bottom:14px}
.footer ul{list-style:none}
.footer li{margin-bottom:8px}
.footer a{color:#E8D5C4;font-size:.88rem}
.footer a:hover{color:#EAB308}
.footer-bottom{text-align:center;padding:24px 0;margin-top:36px;border-top:1px solid rgba(255,255,255,.1);font-size:.82rem;color:#A0846B}

/* Responsive */
@media(max-width:900px){
.quick-grid,.footer-grid{grid-template-columns:repeat(2,1fr)}
.hero h1{font-size:2rem}
.about-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
.nav{display:none;position:absolute;top:68px;left:0;right:0;background:#fff;flex-direction:column;padding:20px;gap:16px;box-shadow:0 8px 24px rgba(0,0,0,.1)}
.nav.open{display:flex}
.nav-toggle{display:block}
.quick-grid,.featured-words{grid-template-columns:1fr}
.footer-grid{grid-template-columns:1fr}
.hero h1{font-size:1.6rem}
.hero{padding:50px 0 60px}
.conj-select{gap:8px}
.conj-select button{padding:8px 14px;font-size:.82rem}
.letter-grid a{width:38px;height:38px;font-size:.95rem}
.phrase-table th,.phrase-table td{padding:8px 10px;font-size:.82rem}
}
