/**
 * BirthdayCardMaker - Core Design System & Stylesheet
 */

:root {
    --primary: #ec4899;
    --primary-hover: #db2777;
    --primary-light: #fdf2f8;
    --primary-rgb: 236, 72, 153;

    --secondary: #8b5cf6;
    --secondary-hover: #7c3aed;
    --secondary-light: #f5f3ff;

    --accent: #f59e0b;
    --accent-hover: #d97706;

    --dark: #0f172a;
    --dark-muted: #334155;
    --slate: #64748b;
    --slate-light: #94a3b8;
    --border: #e2e8f0;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.12);

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Containers */
.section-container, .header-container, .footer-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Typography Utilities */
.section-header {
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 680px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.45);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #ffffff;
    color: var(--dark);
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-page);
    border-color: var(--slate-light);
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.15rem;
}

.btn-block {
    width: 100%;
}

/* ================= HEADER ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-wrapper {
    width: 40px;
    height: 40px;
}

.logo-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    margin-left: 6px;
    padding: 2px 8px;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-muted);
    position: relative;
    padding: 6px 0;
}

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

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

/* Dropdown Menu */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.nav-dropdown-wrapper:hover .chevron-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -100px;
    width: 440px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 150;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-grid-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-muted);
}

.category-menu-item:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dropdown-footer {
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding-top: 10px;
    text-align: right;
}

.view-all-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector */
.lang-selector-wrapper {
    position: relative;
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-selector-btn:hover {
    background: #ffffff;
    border-color: var(--slate-light);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 150;
    max-height: 380px;
    overflow-y: auto;
}

.lang-selector-wrapper:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--bg-page);
}

.lang-option.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.lang-opt-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lang-opt-native {
    font-weight: 600;
}

.lang-opt-en {
    font-size: 0.75rem;
    color: var(--slate);
}

.check-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.4);
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger-bar {
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.25s;
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99;
}

.mobile-drawer.open {
    display: block;
}

.mobile-drawer-content {
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    padding: 8px 0;
}

.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.mobile-lang-chip {
    padding: 8px 12px;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.mobile-lang-chip.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    background: radial-gradient(circle at 50% 20%, #fdf2f8 0%, #f8fafc 70%);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #ffffff;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate);
    line-height: 1.6;
    max-width: 740px;
    margin: 0 auto 36px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.4);
    transition: all 0.25s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(var(--primary-rgb), 0.5);
    color: #ffffff;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #ffffff;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
}

.btn-hero-secondary:hover {
    background: var(--bg-page);
    border-color: var(--slate-light);
    transform: translateY(-2px);
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-muted);
}

/* ================= TEMPLATE GALLERY ================= */
.gallery-section, .catalog-grid-section {
    padding: 60px 0;
}

.category-filter-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cat-chip {
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-muted);
    transition: all 0.2s;
}

.cat-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.3);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.template-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.template-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
}

.template-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.template-card:hover .template-thumbnail {
    transform: scale(1.04);
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.btn-use-template {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.template-card:hover .btn-use-template {
    transform: translateY(0);
}

.template-cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.template-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.template-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.template-desc {
    font-size: 0.88rem;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.tmpl-size {
    color: var(--slate);
    font-weight: 500;
}

.tmpl-free {
    color: #059669;
    font-weight: 700;
}

.gallery-footer-cta {
    margin-top: 48px;
}

.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s;
}

.btn-outline-lg:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(var(--primary-rgb), 0.35);
}

.btn-arrow {
    width: 20px;
    height: 20px;
}

/* ================= STEPS SECTION ================= */
.steps-section {
    padding: 70px 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.step-card {
    position: relative;
    padding: 32px 24px;
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
}

.step-icon-box {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.step-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-card-desc {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.6;
}

/* ================= WISHES TEASER SECTION ================= */
.wishes-teaser-section {
    padding: 70px 0;
}

.wishes-teaser-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: #ffffff;
    box-shadow: var(--shadow-xl);
}

.wishes-teaser-header .section-title {
    color: #ffffff;
}

.wishes-teaser-header .section-subtitle {
    color: #c7d2fe;
}

.wishes-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 36px 0;
}

.control-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0e7ff;
    margin-bottom: 8px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.form-select option {
    background: #1e1b4b;
    color: #ffffff;
}

.wish-result-box {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 36px;
    text-align: center;
}

.wish-quote-icon {
    font-size: 4rem;
    font-family: var(--font-serif);
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: -15px;
}

.wish-text {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.6;
    color: #f8fafc;
    margin-bottom: 28px;
    font-style: italic;
}

.wish-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-wish-generate {
    padding: 10px 22px;
    background: #ffffff;
    color: #1e1b4b;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
}

.btn-wish-copy {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
}

.btn-wish-editor {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.wish-toast {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #86efac;
    font-weight: 600;
    min-height: 20px;
}

/* ================= FEATURES SECTION ================= */
.features-section {
    padding: 70px 0;
    background: var(--bg-page);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.6;
}

/* ================= FAQ SECTION ================= */
.faq-section {
    padding: 70px 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.faq-accordion {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    gap: 16px;
}

.faq-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--slate);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 1rem;
    color: var(--dark-muted);
    line-height: 1.6;
}

/* ================= AD CONTAINER ================= */
.ad-placement-wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 28px auto;
    padding: 0 24px;
    text-align: center;
}

.ad-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--slate-light);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.ad-container {
    min-height: 90px;
    background: #ffffff;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-placeholder-box {
    padding: 16px;
    color: var(--slate);
}

.ad-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ad-placeholder-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-muted);
}

.ad-placeholder-sub {
    font-size: 0.78rem;
    color: var(--slate-light);
}

/* ================= BOTTOM CTA ================= */
.bottom-cta-section {
    padding: 60px 0 80px;
}

.bottom-cta-box {
    background: radial-gradient(circle at 50% 50%, #fdf2f8 0%, #fae8ff 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-lg);
    padding: 60px 32px;
}

.bottom-cta-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.bottom-cta-subtitle {
    font-size: 1.15rem;
    color: var(--slate);
    margin-bottom: 32px;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--slate);
    margin: 16px 0 20px;
    line-height: 1.6;
    max-width: 380px;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trust-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-muted);
}

.footer-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--slate);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-languages {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-bottom: 24px;
}

.lang-matrix-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 12px;
    display: block;
}

.lang-matrix-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lang-matrix-item {
    font-size: 0.88rem;
    color: var(--slate);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-matrix-item:hover, .lang-matrix-item.active {
    color: var(--primary);
    font-weight: 700;
}

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

/* ================= CATALOG & INFO PAGES ================= */
.catalog-page-header, .category-hero-section, .wishes-page-hero, .info-hero-section {
    padding: 60px 0 40px;
    background: radial-gradient(circle at 50% 30%, #fdf2f8 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--slate);
    max-width: 720px;
    margin: 0 auto;
}

.catalog-search-wrapper {
    max-width: 620px;
    margin: 32px auto 24px;
}

.catalog-search-form {
    display: flex;
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.15);
}

.catalog-search-input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    outline: none;
    font-size: 1rem;
}

.catalog-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 28px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.category-chips-matrix {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.cat-matrix-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
}

.cat-matrix-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Info Articles */
.info-body-section {
    padding: 60px 0;
}

.info-article-card {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.info-article-card h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 28px 0 14px;
}

.info-article-card h2:first-child {
    margin-top: 0;
}

.info-article-card p {
    font-size: 1.05rem;
    color: var(--dark-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.info-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

.info-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.info-feature-item {
    background: var(--bg-page);
    padding: 20px;
    border-radius: var(--radius-md);
}

.info-feature-item h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.info-feature-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.info-cta-box {
    margin-top: 40px;
    padding: 32px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

/* Contact Layout */
.contact-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-perks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.perk-icon {
    font-size: 1.6rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.alert-box {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.alert-box.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-box.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Error 404 */
.error-page-section {
    padding: 100px 0;
}

.error-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 800;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.error-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.error-subtitle {
    font-size: 1.2rem;
    color: var(--slate);
    margin-bottom: 36px;
}

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .contact-card-wrapper {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
