/* =========================================
   Salem Visa — Mobile-First CSS
   ========================================= */

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --border: #e5e7eb;
    --success: #22c55e;
    --danger: #ef4444;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: .2s ease;
    --container: 1200px;
    --header-h: 70px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* =========================================
   Header
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 18px; color: var(--primary); }
.logo-text small { font-size: 11px; color: var(--text-light); }

.nav { display: none; }
.nav-link {
    padding: 8px 12px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 220px;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-size: 14px;
}
.nav-dropdown-menu a:hover { background: var(--bg-gray); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }

.header-phone { display: none; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text); }
.header-cta { display: none; }

.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================
   Hero
   ========================================= */
.hero {
    padding: calc(var(--header-h) + 32px) 0 48px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    color: #fff;
}
.hero-grid { display: grid; gap: 32px; }
.hero-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero-subtitle { font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.hero-text { font-size: 15px; opacity: .85; margin-bottom: 24px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trust-item {
    background: rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

.hero-form-wrapper { display: flex; justify-content: center; }
.hero-form-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}
.hero-form-card h3 { color: var(--text); font-size: 18px; margin-bottom: 16px; text-align: center; }

/* =========================================
   Forms
   ========================================= */
.form-group { margin-bottom: 12px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition);
    background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.form-group textarea { resize: vertical; }
.form-privacy { font-size: 12px; color: var(--text-light); margin-top: 8px; text-align: center; }

.form-success { text-align: center; padding: 20px 0; }
.success-icon { width: 48px; height: 48px; background: var(--success); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 12px; }

/* =========================================
   Sections
   ========================================= */
.section { padding: 48px 0; }
.section-gray { background: var(--bg-gray); }
.section-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; font-size: 15px; }
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }

/* =========================================
   Calculator — Modern Redesign
   ========================================= */
.calculator-section { padding-top: 0; margin-top: -24px; position: relative; z-index: 10; }

.calculator-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 36px 28px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26,86,219,.06);
}
.calculator-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #6366f1, #a855f7);
}

.calc-header { margin-bottom: 32px; }

.calc-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -.02em;
}

/* Progress Bar */
.calc-progress { position: relative; max-width: 320px; margin: 0 auto; }

.calc-progress-track {
    position: absolute;
    top: 50%; left: 24px; right: 24px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    transform: translateY(-50%);
    overflow: hidden;
}
.calc-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    border-radius: 3px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
}

.calc-progress-dots {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.calc-progress-dot {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--border);
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.calc-progress-dot span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    transition: all .3s;
    line-height: 1;
}
.calc-progress-dot.active {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(26,86,219,.12);
}
.calc-progress-dot.active span { color: #fff; }
.calc-progress-dot.done {
    border-color: var(--success);
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(34,197,94,.12);
}
.calc-progress-dot.done span { color: #fff; font-size: 16px; }

/* Steps */
.calc-step {
    margin-bottom: 0;
    opacity: .35;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .4s ease, transform .4s ease, margin .3s ease;
}
.calc-step.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    margin-bottom: 28px;
}
.calc-step:last-child.active { margin-bottom: 0; }

.calc-step-label {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 14px;
}

/* Card Options — Step 1 (grid) */
.calc-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.calc-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 10px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.calc-option-card:hover {
    border-color: rgba(26,86,219,.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26,86,219,.1);
}
.calc-option-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(26,86,219,.14);
}

.calc-option-emoji {
    font-size: 32px;
    line-height: 1;
    transition: transform .3s;
}
.calc-option-card:hover .calc-option-emoji,
.calc-option-card.selected .calc-option-emoji { transform: scale(1.15); }

.calc-option-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: color .25s;
}
.calc-option-card.selected .calc-option-text { color: var(--primary); }

/* Pill Options — Step 2 & 3 (inline) */
.calc-options-duo {
    display: flex;
    gap: 12px;
}
.calc-option-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 60px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.calc-option-pill .calc-option-emoji { font-size: 20px; }
.calc-option-pill .calc-option-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: color .25s;
}
.calc-option-pill:hover {
    border-color: rgba(26,86,219,.4);
    box-shadow: 0 4px 14px rgba(26,86,219,.08);
}
.calc-option-pill.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    box-shadow: 0 4px 16px rgba(26,86,219,.12);
}
.calc-option-pill.selected .calc-option-text { color: var(--primary); }

/* Result Section */
.calc-result {
    margin-top: 8px;
    animation: calcSlideUp .5s cubic-bezier(.4,0,.2,1);
}
@keyframes calcSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.calc-result-inner {
    background: linear-gradient(135deg, #f0f9ff 0%, #eef2ff 50%, #faf5ff 100%);
    border: 1px solid rgba(26,86,219,.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}
.calc-result-badge {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 10px;
    animation: calcBounce .6s cubic-bezier(.36,.07,.19,.97);
}
@keyframes calcBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.25); }
    70% { transform: scale(.9); }
    100% { transform: scale(1); }
}
.calc-result-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    margin-bottom: 20px;
}
.calc-result-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}
.calc-phone-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 60px;
    transition: all .25s;
}
.calc-phone-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,86,219,.08);
}
.calc-phone-icon {
    flex-shrink: 0;
    color: var(--text-light);
}
.calc-phone-wrap input {
    flex: 1;
    padding: 14px 0;
    border: none;
    background: none;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    outline: none;
}
.calc-cta {
    border-radius: 60px !important;
    padding: 14px 28px !important;
    white-space: nowrap;
    font-weight: 700 !important;
    font-size: 15px !important;
}

/* Calculator Responsive */
@media (min-width: 769px) {
    .calculator-card { padding: 44px 40px 36px; }
    .calc-title { font-size: 26px; margin-bottom: 28px; }
    .calc-progress { max-width: 360px; }
}
@media (max-width: 640px) {
    .calculator-card { padding: 28px 18px 24px; }
    .calc-title { font-size: 19px; }
    .calc-options-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .calc-option-card { padding: 18px 8px 14px; }
    .calc-option-emoji { font-size: 26px; }
    .calc-option-text { font-size: 13px; }
    .calc-options-duo { flex-direction: column; gap: 10px; }
    .calc-progress { max-width: 260px; }
    .calc-progress-dot { width: 34px; height: 34px; }
    .calc-progress-dot span { font-size: 13px; }
    .calc-result-form { flex-direction: column; }
    .calc-result-inner { padding: 24px 16px; }
    .calc-result-text { font-size: 16px; }
    .calc-cta { width: 100%; }
}

/* =========================================
   Visa Cards
   ========================================= */
.visa-grid { display: grid; gap: 16px; }
.visa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    color: var(--text);
    text-decoration: none;
}
.visa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text); }
/* Flags */
.flag { border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); object-fit: cover; vertical-align: middle; }
.flag-sm { border-radius: 2px; }
.flag-lg { border-radius: 4px; }
.flag-xl { border-radius: 5px; }

.visa-card-flag { margin-bottom: 12px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.visa-card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.visa-card-subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.visa-card-price { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.visa-card-days { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }

/* =========================================
   Advantages
   ========================================= */
.advantages-grid { display: grid; gap: 16px; }
.advantage-card {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.advantage-icon { margin-bottom: 12px; }
.advantage-card h3 { font-size: 16px; margin-bottom: 8px; }
.advantage-card p { font-size: 14px; color: var(--text-light); }

/* =========================================
   Process
   ========================================= */
.process-grid { display: grid; gap: 20px; counter-reset: process; }
.process-step {
    text-align: center;
    padding: 24px 16px;
    position: relative;
}
.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.process-step h3 { font-size: 16px; margin-bottom: 6px; }
.process-step p { font-size: 14px; color: var(--text-light); }

/* =========================================
   Reviews
   ========================================= */
.reviews-grid { display: grid; gap: 16px; }
.review-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}
.review-stars { color: var(--accent); font-size: 16px; margin-bottom: 8px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.review-author strong { display: block; font-size: 14px; }
.review-author span { font-size: 12px; color: var(--text-light); }

/* =========================================
   Countries
   ========================================= */
.countries-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.country-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}
.country-card:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--primary); }
.country-flag { display: flex; align-items: center; }
.country-name { font-weight: 600; font-size: 14px; }

.countries-grid-full { grid-template-columns: repeat(2, 1fr); }
.country-card-lg {
    padding: 20px;
    justify-content: space-between;
}
.country-flag-lg { display: flex; align-items: center; }
.country-name-lg { font-weight: 700; font-size: 16px; flex: 1; }
.country-arrow { color: var(--text-light); }

/* =========================================
   FAQ
   ========================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    color: var(--text);
    gap: 12px;
}
.faq-question svg { flex-shrink: 0; transition: transform .3s; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 0 16px; }
.faq-item.active .faq-answer { display: block; }
.faq-answer p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* =========================================
   CTA Section
   ========================================= */
.cta-section { padding: 48px 0; }
.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 40px 24px;
    text-align: center;
    color: #fff;
}
.cta-card h2 { font-size: 24px; margin-bottom: 10px; }
.cta-card p { opacity: .9; margin-bottom: 24px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* =========================================
   Page Hero
   ========================================= */
.page-hero {
    padding: calc(var(--header-h) + 32px) 0 32px;
    background: linear-gradient(135deg, #0f172a, #1a56db);
    color: #fff;
    text-align: center;
}
.page-hero h1 { font-size: 28px; font-weight: 800; }
.page-hero p { opacity: .85; margin-top: 8px; }
.page-hero-sm { padding-bottom: 20px; }

.page-hero-visa { text-align: left; }
.page-hero-content { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.visa-flag-large { display: flex; align-items: center; }

.breadcrumb { font-size: 13px; margin-bottom: 16px; opacity: .7; }
.breadcrumb a { color: #fff; }
.breadcrumb span { margin: 0 6px; }

/* =========================================
   Visa Detail
   ========================================= */
.visa-detail-grid { display: grid; gap: 32px; }
.content-block { margin-bottom: 32px; }
.content-block h2 { font-size: 20px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }
.visa-description { font-size: 16px; line-height: 1.8; color: var(--text-light); }

.check-list, .doc-list { list-style: none; }
.check-list li, .doc-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 15px; }
.check-list li svg, .doc-list li svg { flex-shrink: 0; margin-top: 2px; }

.price-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: none; }
.price-row-accent { background: var(--primary-light); }
.price-row span { font-size: 14px; }
.price-row strong { font-size: 16px; color: var(--primary); }

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.sidebar-card h3, .sidebar-card h4 { font-size: 18px; margin-bottom: 16px; }
.sticky { position: sticky; top: calc(var(--header-h) + 16px); }

.sidebar-post {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { color: var(--primary); }

/* =========================================
   Services
   ========================================= */
.services-grid { display: grid; gap: 24px; }
.service-card-lg {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: box-shadow var(--transition);
}
.service-card-lg:hover { box-shadow: var(--shadow-lg); }
.service-icon { margin-bottom: 16px; }
.service-card-lg h2 { font-size: 20px; margin-bottom: 8px; }
.service-card-lg p { color: var(--text-light); margin-bottom: 16px; }
.service-features { list-style: none; margin-bottom: 20px; }
.service-features li { padding: 4px 0; font-size: 14px; color: var(--text); }

/* =========================================
   Blog
   ========================================= */
.blog-grid { display: grid; gap: 24px; }
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 180px; overflow: hidden; background: var(--bg-gray); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.blog-card-body { padding: 16px; }
.blog-date { font-size: 12px; color: var(--text-light); }
.blog-card-title { font-size: 17px; font-weight: 700; margin: 6px 0; }
.blog-card-excerpt { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.blog-read-more { font-size: 14px; font-weight: 600; color: var(--primary); }

.blog-detail-grid { display: grid; gap: 32px; }
.blog-detail-content h1 { font-size: 26px; margin-bottom: 8px; }
.blog-body { margin-top: 24px; line-height: 1.8; }
.blog-body h2 { font-size: 22px; margin: 24px 0 12px; }
.blog-body h3 { font-size: 18px; margin: 20px 0 10px; }
.blog-body p { margin-bottom: 14px; }
.blog-body ul, .blog-body ol { margin: 10px 0 14px 20px; }
.blog-body li { margin-bottom: 6px; }

/* =========================================
   Contact
   ========================================= */
.contact-grid { display: grid; gap: 24px; margin-bottom: 40px; }
.contact-info { display: grid; gap: 16px; }
.contact-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.contact-card-icon { flex-shrink: 0; }
.contact-card h3 { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.contact-card p { font-size: 15px; }
.contact-card a { color: var(--text); font-weight: 600; }
.contact-card a:hover { color: var(--primary); }

.contact-map { margin-top: 32px; }
.contact-map h2 { font-size: 20px; margin-bottom: 16px; }
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }

/* =========================================
   Footer
   ========================================= */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 0 0;
}
.footer-grid { display: grid; gap: 32px; padding-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #94a3b8; font-size: 14px; transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; }
.footer-logo { text-decoration: none; display: inline-block; margin-bottom: 12px; }
.footer-logo strong { color: #60a5fa; font-size: 20px; }
.footer-about p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.footer-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-stats .stat-item { background: rgba(255,255,255,.05); padding: 6px 12px; border-radius: var(--radius); font-size: 12px; }
.footer-stats .stat-item strong { color: #fff; }
.footer-contacts li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.footer-contacts svg { flex-shrink: 0; margin-top: 2px; color: #60a5fa; }
.footer-contacts a { color: #94a3b8; }
.footer-contacts a:hover { color: #fff; }
.footer-contacts span { font-size: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .footer { padding: 64px 0 0; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; padding-bottom: 48px; }
}

/* =========================================
   404 Page
   ========================================= */
.error-page { padding: calc(var(--header-h) + 60px) 0 60px; min-height: 60vh; display: flex; align-items: center; }
.error-code { font-size: 100px; font-weight: 800; color: var(--primary-light); line-height: 1; }
.error-page h1 { font-size: 28px; margin: 12px 0; }
.error-page p { color: var(--text-light); margin-bottom: 24px; }

/* =========================================
   Modal
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.5);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    width: 100%;
    max-width: 420px;
    position: relative;
    animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}
.modal-content h3 { font-size: 20px; margin-bottom: 16px; }

/* =========================================
   WhatsApp Float
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,.4);
    transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* =========================================
   Mobile Bottom Bar
   ========================================= */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    padding: 8px 16px;
    gap: 8px;
}
.mobile-bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 11px;
    color: var(--text);
    text-decoration: none;
}
.mobile-bottom-btn.whatsapp { color: #25D366; }
.mobile-bottom-btn.cta-btn { background: var(--primary); color: #fff; border-radius: var(--radius); }

/* =========================================
   Empty State
   ========================================= */
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state p { color: var(--text-light); margin-bottom: 16px; }

/* =========================================
   Utilities
   ========================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* =========================================
   TABLET: 640px+
   ========================================= */
@media (min-width: 640px) {
    .container { padding: 0 24px; }
    .hero-title { font-size: 34px; }
    .hero-actions { flex-direction: row; }
    .hero-trust { grid-template-columns: repeat(4, 1fr); }
    .visa-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .countries-grid { grid-template-columns: repeat(3, 1fr); }
    .countries-grid-full { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info { grid-template-columns: repeat(2, 1fr); }
    .cta-actions { flex-direction: row; justify-content: center; }
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
}

/* =========================================
   DESKTOP: 1024px+
   ========================================= */
@media (min-width: 1024px) {
    body { padding-bottom: 0; font-size: 16px; }

    .nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .header-phone { display: flex; }
    .header-cta { display: inline-flex; }
    .burger { display: none; }
    .mobile-bottom-bar { display: none; }
    .whatsapp-float { bottom: 32px; right: 32px; }

    .hero { padding: calc(var(--header-h) + 60px) 0 80px; }
    .hero-grid { grid-template-columns: 1fr 400px; align-items: center; gap: 48px; }
    .hero-title { font-size: 42px; }

    .section { padding: 80px 0; }
    .section-title { font-size: 32px; }

    .visa-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .visa-grid-full { grid-template-columns: repeat(4, 1fr); }
    .advantages-grid { grid-template-columns: repeat(4, 1fr); }
    .process-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
    .countries-grid { grid-template-columns: repeat(4, 1fr); }
    .countries-grid-full { grid-template-columns: repeat(4, 1fr); }
    .blog-grid { grid-template-columns: repeat(3, 1fr); }

    .visa-detail-grid { grid-template-columns: 1fr 380px; }
    .blog-detail-grid { grid-template-columns: 1fr 340px; }
    .contact-grid { grid-template-columns: 1fr 400px; }
    .contact-info { grid-template-columns: 1fr; }

    .cta-card { padding: 60px 48px; }
    .cta-card h2 { font-size: 32px; }

    .page-hero { padding: calc(var(--header-h) + 40px) 0 40px; }
    .page-hero h1 { font-size: 36px; }

    /* Mobile nav overlay */
    .nav.mobile-open { display: flex; }
}

/* Mobile nav overlay */
@media (max-width: 1023px) {
    .nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 16px;
        z-index: 999;
        overflow-y: auto;
    }
    .nav.mobile-open .nav-link { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--border); }
    .nav.mobile-open .nav-dropdown-menu { display: block; position: static; box-shadow: none; padding-left: 16px; }
}

/* =========================================
   LARGE DESKTOP: 1280px+
   ========================================= */
@media (min-width: 1280px) {
    .container { padding: 0 32px; }
    .hero-title { font-size: 48px; }
    .hero-grid { grid-template-columns: 1fr 440px; }
    .countries-grid { grid-template-columns: repeat(5, 1fr); }
    .visa-grid-full { grid-template-columns: repeat(5, 1fr); }
}
