:root {
    --primary: #841DA2;
    --secondary: #120E14;
    --accent: #6C9ECA;
    --background: #0F0B11;
    --surface: #211926;
    --text: #EAE7EB;
    --text-muted: #75607E;
    --border: #53335C;
    --success: #2EC65D;
    --danger: #DA481B;
    --gold: #D4A843;
    --font-th: 'Prompt', sans-serif;
    --font-en: 'Playfair Display', serif;
    --radius: 12px;
    --transition: .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-th);
    background: var(--background);
    color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-en); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .8rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: .6rem; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ========== HEADER ========== */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(15, 11, 17, .95); backdrop-filter: blur(12px);
    z-index: 1000; border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}

.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-en); font-size: 1.5rem; font-weight: 800; color: var(--text); }
.logo svg { width: 36px; height: 36px; }
.logo span { background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-menu { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-menu li { position: relative; }
.nav-menu li a {
    display: block; padding: .8rem 1.1rem; color: var(--text-muted);
    font-size: .95rem; font-weight: 500; transition: color var(--transition);
}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--accent); }

.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem 0; z-index: 100; }
.nav-dropdown a { padding: .6rem 1.2rem; font-size: .9rem; white-space: nowrap; }
.nav-menu li:hover .nav-dropdown { display: block; }

.header-social { display: flex; gap: .6rem; }
.header-social a { color: var(--text-muted); font-size: 1rem; transition: color var(--transition); }
.header-social a:hover { color: var(--accent); }

.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: none; padding: .5rem;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text); transition: var(--transition); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO BANNER ========== */
.hero-banner { position: relative; width: 100%; height: 520px; overflow: hidden; margin-top: 70px; }
.banner-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity .8s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(15,11,17,.3), rgba(15,11,17,.85));
    display: flex; align-items: flex-end; padding: 3rem 0;
}
.banner-content { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.banner-content h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.banner-content p { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 600px; }

.banner-dots {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: .5rem; z-index: 10;
}
.banner-dots .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.3); cursor: pointer; transition: var(--transition); border: none;
}
.banner-dots .dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

.banner-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(132,29,162,.6); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; font-size: 1.2rem; z-index: 10; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.banner-nav:hover { background: var(--primary); }
.banner-nav.prev { left: 1.5rem; }
.banner-nav.next { right: 1.5rem; }

/* ========== SECTIONS ========== */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--secondary); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { color: var(--text); }
.section-title h2 em { font-style: normal; color: var(--accent); }
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 700px; margin: .5rem auto 0; }
.section-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); margin: 1rem auto; border-radius: 2px; }

.content-block { max-width: 900px; margin: 0 auto; }
.content-block p { margin-bottom: 1.2rem; font-size: 1.05rem; color: var(--text); }
.content-block strong { color: var(--accent); }
.content-block ul, .content-block ol { margin: 1rem 0 1.5rem 1.5rem; }
.content-block li { margin-bottom: .5rem; color: var(--text); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 2rem; border-radius: var(--radius);
    font-family: var(--font-th); font-size: 1rem; font-weight: 600;
    cursor: pointer; border: none; transition: all var(--transition);
    text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(132,29,162,.4); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e8c268); color: var(--secondary); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,168,67,.4); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ========== CARDS ========== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 40px rgba(132,29,162,.15); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { color: var(--text-muted); font-size: .95rem; margin-bottom: 1rem; }
.card-meta { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-size: .85rem; }

/* ========== REVIEWS ========== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.review-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; transition: var(--transition);
}
.review-card:hover { border-color: var(--primary); }
.review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.review-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: #fff;
}
.review-name { font-weight: 600; color: var(--text); }
.review-date { font-size: .85rem; color: var(--text-muted); }
.star-rating { color: var(--gold); display: flex; align-items: center; gap: .2rem; margin-bottom: .5rem; }
.star-rating .rating-number { color: var(--text-muted); font-size: .85rem; margin-left: .5rem; }

/* ========== FORMS ========== */
.form-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem; max-width: 500px; margin: 0 auto 3rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 500; color: var(--text); font-size: .95rem; }
.form-control {
    width: 100%; padding: .8rem 1rem;
    background: var(--background); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-family: var(--font-th);
    font-size: 1rem; transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(132,29,162,.15); }
.form-control::placeholder { color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 0; background: none; border: none;
    color: var(--text); font-family: var(--font-th); font-size: 1.05rem;
    font-weight: 600; cursor: pointer; text-align: left;
}
.faq-question i { color: var(--primary); transition: transform var(--transition); font-size: .85rem; }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 0 1.2rem; color: var(--text-muted); line-height: 1.8; }

/* ========== PROMO CARDS ========== */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.promo-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; transition: var(--transition);
    position: relative; overflow: hidden;
}
.promo-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.promo-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.promo-card h3 { color: var(--accent); margin-bottom: .5rem; }
.promo-badge {
    display: inline-block; padding: .3rem .8rem; border-radius: 20px;
    font-size: .8rem; font-weight: 600; margin-bottom: 1rem;
}
.promo-badge-hot { background: rgba(218,72,27,.15); color: var(--danger); }
.promo-badge-new { background: rgba(46,198,93,.15); color: var(--success); }

/* ========== STEPS ========== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; counter-reset: step; }
.step-card {
    text-align: center; padding: 2rem 1.5rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); position: relative; counter-increment: step;
}
.step-card::before {
    content: counter(step); display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 1.3rem; font-weight: 700;
    margin: 0 auto 1rem; font-family: var(--font-en);
}
.step-card h3 { font-size: 1.1rem; }

/* ========== FEATURES ========== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
    padding: 2rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); transition: var(--transition); text-align: center;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-card {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.5rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 1rem; transition: var(--transition);
}
.contact-info-card:hover { border-color: var(--primary); }
.contact-info-card i { font-size: 1.5rem; color: var(--primary); margin-top: .2rem; }

/* ========== FOOTER ========== */
.main-footer { background: var(--secondary); border-top: 1px solid var(--border); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); margin-top: .5rem; font-size: .95rem; }
.footer-heading { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--border); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* ========== BREADCRUMB ========== */
.breadcrumb { padding: 1rem 0; margin-top: 70px; }
.breadcrumb-list { display: flex; align-items: center; gap: .5rem; list-style: none; flex-wrap: wrap; }
.breadcrumb-list li { font-size: .9rem; color: var(--text-muted); }
.breadcrumb-list li a { color: var(--text-muted); }
.breadcrumb-list li a:hover { color: var(--accent); }
.breadcrumb-list li + li::before { content: '/'; margin-right: .5rem; color: var(--border); }

/* ========== TABLE ========== */
.styled-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.styled-table th, .styled-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.styled-table th { background: var(--primary); color: #fff; font-weight: 600; }
.styled-table tr:hover { background: rgba(132,29,162,.05); }

/* ========== PAGE HEADER ========== */
.page-header { background: var(--secondary); padding: 4rem 0 3rem; margin-top: 70px; text-align: center; }
.page-header h1 { margin-bottom: .5rem; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ========== CTA SECTION ========== */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius); padding: 3rem; text-align: center; margin: 2rem 0;
}
.cta-box h3 { color: #fff; font-size: 1.8rem; margin-bottom: .5rem; }
.cta-box p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

/* ========== ARTICLE PAGE ========== */
.article-header { text-align: center; margin-bottom: 2rem; }
.article-header h1 { margin-bottom: .5rem; }
.article-meta { color: var(--text-muted); font-size: .95rem; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; }
.article-content { max-width: 800px; margin: 0 auto; }
.article-content p { margin-bottom: 1.2rem; font-size: 1.05rem; }
.article-content h2 { margin-top: 2rem; }
.article-content h3 { margin-top: 1.5rem; }
.article-content strong { color: var(--accent); }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: .5rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        display: none; position: fixed; top: 70px; left: 0;
        width: 100%; height: calc(100vh - 70px);
        background: var(--background); flex-direction: column;
        padding: 1rem 0; overflow-y: auto;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li a { padding: 1rem 1.5rem; font-size: 1.05rem; }
    .nav-dropdown {
        position: static; display: none; border: none;
        background: rgba(132,29,162,.1); border-radius: 0;
    }
    .nav-menu li.dropdown-active .nav-dropdown { display: block; }
    .header-social { display: none; }
    .hero-banner { height: 350px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .card-grid, .review-grid, .promo-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-banner { height: 280px; }
    .section { padding: 3rem 0; }
    .form-card { padding: 1.5rem; }
    .btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
}
