/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --bg: #0f0f1a;
    --surface: #1a1a2e;
    --primary: #ffd700;
    --text: #e0e0e0;
    --text2: #a0a0b0;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 215, 0, 0.2);
}

.light {
    --bg: #f5f5fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text2: #555;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 215, 0, 0.08);
    --border: rgba(0, 0, 0, 0.08);
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s, color 0.4s;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a2e;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    text-align: center;
    color: var(--text2);
    font-size: 18px;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.15);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.card p {
    color: var(--text2);
    line-height: 1.7;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 28px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.4s;
}

header.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.light header.scrolled {
    background: rgba(245, 245, 250, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--text);
}

nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

nav a:hover {
    color: var(--primary);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary);
    color: #1a1a2e;
    border-color: var(--primary);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 215, 0, 0.08), transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(255, 215, 0, 0.05), transparent 60%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
}

.hero-stat .label {
    color: var(--text2);
    font-size: 14px;
    margin-top: 4px;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-top: 40px;
    max-width: 500px;
}

.banner-slide {
    display: none;
    width: 100%;
}

.banner-slide.active {
    display: block;
    animation: fadeIn 0.8s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.banner-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--text2);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots button.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 36px;
    }
}

.about-text p {
    color: var(--text2);
    line-height: 1.9;
    margin-bottom: 16px;
    font-size: 16px;
}

.about-image {
    background: var(--glass);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
}

.about-image .big-icon {
    font-size: 100px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg);
}

.timeline-item .year {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
}

.timeline-item h4 {
    font-size: 18px;
    margin: 4px 0 6px;
}

.timeline-item p {
    color: var(--text2);
    font-size: 14px;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    text-align: center;
    padding: 36px 20px;
}

.product-card .icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.7;
}

/* Advantages */
.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.advantage-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
}

.advantage-item .check {
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

/* Partners */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.partner-logo {
    width: 120px;
    height: 60px;
    background: var(--glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    font-weight: 700;
    color: var(--text2);
    font-size: 14px;
    transition: all 0.3s;
}

.partner-logo:hover {
    background: var(--primary);
    color: #1a1a2e;
    border-color: var(--primary);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 28px;
    position: relative;
}

.testimonial-card .quote {
    font-size: 32px;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: 16px;
    left: 20px;
}

.testimonial-card p {
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary);
}

.testimonial-card .role {
    font-size: 13px;
    color: var(--text2);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    padding: 4px 0;
}

.faq-question .arrow {
    transition: transform 0.3s;
    font-size: 20px;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: var(--text2);
    line-height: 1.7;
    padding: 0 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 12px 0 4px;
}

/* HowTo */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.howto-step {
    text-align: center;
    padding: 30px 16px;
    position: relative;
}

.howto-step .step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1a2e;
    font-weight: 900;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.howto-step h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.howto-step p {
    color: var(--text2);
    font-size: 14px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 30px;
}

.contact-card .icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.contact-card p {
    color: var(--text2);
    font-size: 15px;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 50px 0 20px;
}

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

.footer-col h4 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text2);
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text2);
    gap: 12px;
}

.footer-bottom a {
    color: var(--text2);
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Back to Top */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1a2e;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

/* Search Box */
.search-box {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto 40px;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box button {
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--primary);
    color: #1a1a2e;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    padding: 24px;
}

.news-card .date {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 8px;
}

.news-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-card p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.7;
}

.news-card .tag {
    display: inline-block;
    background: var(--primary);
    color: #1a1a2e;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* EEAT */
.eeat-section {
    background: var(--glass);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 40px;
    border: 1px solid var(--border);
}

.eeat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.eeat-item {
    text-align: center;
    padding: 16px;
}

.eeat-item .label {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 4px;
}

.eeat-item .value {
    font-weight: 700;
    color: var(--primary);
}

.schema-hidden {
    display: none;
}