/* ==========================================
   MetaKitab - Styles
   Dark editorial theme with warm gold accents
   ========================================== */

:root {
    --bg-primary: #0a0b0f;
    --bg-secondary: #12141a;
    --bg-card: #181b23;
    --bg-card-hover: #1e2130;
    --text-primary: #e8e6e1;
    --text-secondary: #9a978f;
    --text-muted: #6b6860;
    --accent: #d4a853;
    --accent-light: #e8c77b;
    --accent-dark: #b8903a;
    --accent-glow: rgba(212, 168, 83, 0.15);
    --border: rgba(212, 168, 83, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --code-bg: #0d0e12;
    --success: #4ade80;
    --radius: 12px;
    --radius-lg: 20px;
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Noto Kufi Arabic', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-en);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: var(--font-ar);
}

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

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    backdrop-filter: blur(20px);
}

body[dir="rtl"] .lang-toggle {
    right: auto;
    left: 20px;
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-en);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.logo-meta { color: var(--text-primary); }
.logo-kitab { color: var(--accent); }
.logo-ar {
    font-family: var(--font-ar);
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 8px;
}

body[dir="rtl"] .logo-ar {
    margin-left: 0;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 168, 83, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 83, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(212, 168, 83, 0.08), transparent 70%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
    background: var(--accent-glow);
}

.hero-title {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

body[dir="rtl"] .hero-title {
    letter-spacing: 0;
    font-family: var(--font-ar);
}

.hero-accent {
    color: var(--accent);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.hero-formats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 13px;
}

.format-tag {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
}

.format-tag.accent {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.format-arrow { color: var(--accent); font-weight: 700; }
.format-divider { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-family: inherit;
}

body[dir="rtl"] .btn { font-family: var(--font-ar); }

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-lg { padding: 18px 40px; font-size: 16px; }
.btn-block { width: 100%; }

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Hero (inner pages) */
.page-hero {
    padding: 140px 0 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.page-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    margin-top: 12px;
    line-height: 1.2;
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.problem-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
}

.problem-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.platform-card:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), rgba(212, 168, 83, 0.03));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 17px;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

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

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.expertise-card:hover {
    border-color: var(--border);
}

.expertise-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--accent);
}

.expertise-icon svg {
    width: 24px;
    height: 24px;
}

.expertise-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.expertise-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ONIX Explanation */
.onix-explanation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.onix-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.onix-code {
    background: var(--code-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}

.code-dot:first-child { background: #ff5f56; opacity: 0.8; }
.code-dot:nth-child(2) { background: #ffbd2e; opacity: 0.8; }
.code-dot:nth-child(3) { background: #27c93f; opacity: 0.8; }

.code-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.code-block {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    overflow-x: auto;
    margin: 0;
}

/* Services Page */
.service-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-main-content h2 {
    font-size: 32px;
    margin: 12px 0 20px;
}

.service-main-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 8px 0;
}

/* Format Flow Visual */
.format-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.format-input, .format-output {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.format-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.format-item:hover {
    border-color: var(--border);
}

.format-item.onix {
    font-family: var(--font-mono);
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
    font-size: 18px;
    font-weight: 700;
    padding: 24px;
}

.format-transform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
}

.transform-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.transform-arrow svg {
    width: 24px;
    height: 24px;
}

.format-transform span {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* Formats Showcase */
.formats-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.format-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}

.format-card:hover {
    border-color: var(--accent);
}

.format-card .format-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.format-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.format-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(212, 168, 83, 0.06), var(--bg-card));
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing-range {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-amount {
    margin-bottom: 4px;
}

.price {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}

.price-per {
    font-size: 16px;
    color: var(--text-muted);
}

.pricing-minimum {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 20px;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.pricing-feature {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px 32px;
}

.faq-q {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-a {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 16px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-method .contact-icon {
    font-size: 24px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-method h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.contact-method a {
    font-size: 17px;
    font-weight: 600;
}

.contact-steps h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-step-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-step p {
    color: var(--text-secondary);
    font-size: 15px;
    padding-top: 4px;
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.form-note {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

body[dir="rtl"] .form-group input, body[dir="rtl"] .form-group textarea {
    font-family: var(--font-ar);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    gap: 12px;
}

.success-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.1);
    color: var(--success);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
}

.form-success p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: fadeInUp 0.8s ease-out 0.1s both; }
.hero-title { animation: fadeInUp 0.8s ease-out 0.2s both; }
.hero-subtitle { animation: fadeInUp 0.8s ease-out 0.35s both; }
.hero-actions { animation: fadeInUp 0.8s ease-out 0.5s both; }
.hero-formats { animation: fadeInUp 0.8s ease-out 0.65s both; }

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .formats-showcase { grid-template-columns: repeat(3, 1fr); }
    .onix-explanation { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
    }

    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }

    .problem-grid, .steps-grid, .services-grid, .expertise-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .formats-showcase { grid-template-columns: repeat(2, 1fr); }

    .about-content, .service-main, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero { min-height: auto; padding: 120px 24px 60px; }
    .hero-title { font-size: 36px; }
    .hero-formats { display: none; }
    .cta-box { padding: 40px 24px; }

    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-links { flex-wrap: wrap; }

    .lang-toggle { top: 12px; right: 60px; }
    body[dir="rtl"] .lang-toggle { right: auto; left: 60px; }
}

@media (max-width: 480px) {
    .formats-showcase { grid-template-columns: 1fr; }
}
