@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; font-size: 14px; color: #333; background: #efefef; }
a { color: inherit; text-decoration: none; }

/* TOP BAR */
.topbar { background: #1a1a1a; color: #bbb; font-size: 11.5px; padding: 7px 0; text-align: center; letter-spacing: 0.2px; }

/* HEADER */
.header { background: #fff; border-bottom: 1px solid #ddd; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.vm-logo { display: flex; align-items: center; gap: 10px; }
.vm-monogram { width: 46px; height: 46px; background: #8b0000; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -1px; flex-shrink: 0; }
.vm-name { font-size: 19px; font-weight: 700; color: #1a1a1a; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1; }
.vm-tagline { font-size: 10px; color: #999; letter-spacing: 0.3px; margin-top: 3px; }

.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-flags { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #666; }
.flag-badge { background: #f5f5f5; border: 1px solid #ddd; border-radius: 3px; padding: 3px 9px; display: flex; align-items: center; gap: 5px; font-weight: 500; font-size: 12px; }
.lang-selector { display: flex; gap: 2px; font-size: 12px; }
.lang-selector a { padding: 4px 8px; border-radius: 3px; color: #666; border: 1px solid transparent; transition: all 0.15s; }
.lang-selector a.active { background: #8b0000; color: #fff; border-color: #8b0000; font-weight: 500; }
.lang-selector a:hover:not(.active) { background: #f0f0f0; }

/* NAV */
nav { background: #8b0000; box-shadow: 0 2px 5px rgba(0,0,0,0.25); position: relative; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; }
nav > .nav-inner > ul > li { position: relative; }
nav > .nav-inner > ul > li > a { display: block; padding: 13px 17px; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background 0.2s; border-right: 1px solid rgba(255,255,255,0.1); letter-spacing: 0.2px; }
nav > .nav-inner > ul > li > a:hover, nav > .nav-inner > ul > li.active > a { background: rgba(0,0,0,0.22); }
nav > .nav-inner > ul > li:hover .dropdown { display: block; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 200; background: #fff; min-width: 270px; box-shadow: 0 6px 18px rgba(0,0,0,0.18); border-top: 3px solid #8b0000; }
.dropdown a { display: block; padding: 10px 18px; color: #333; font-size: 13px; border-bottom: 1px solid #f2f2f2; transition: background 0.15s, padding-left 0.15s; }
.dropdown a:hover, .dropdown a.active { background: #fdf0f0; color: #8b0000; padding-left: 24px; font-weight: 500; }
.font-btns { margin-left: auto; padding: 0 14px; display: flex; gap: 4px; align-items: center; }
.font-btns a { color: rgba(255,255,255,0.75); font-size: 12px; background: rgba(255,255,255,0.1); padding: 3px 8px; border-radius: 3px; cursor: pointer; transition: background 0.15s; }
.font-btns a:hover { background: rgba(255,255,255,0.2); }

/* HERO */
.hero { background: linear-gradient(135deg, #5a0000 0%, #8b0000 50%, #a00000 100%); color: #fff; padding: 50px 20px 38px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 80px); }
.hero h1 { font-size: 27px; font-weight: 700; margin-bottom: 6px; position: relative; letter-spacing: 0.3px; }
.hero p { font-size: 13.5px; opacity: 0.8; margin-bottom: 32px; position: relative; font-weight: 300; }
.hero-steps { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; margin-bottom: 28px; }
.hero-step { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 5px; padding: 20px 22px; max-width: 210px; text-align: left; transition: transform 0.2s, background 0.2s; cursor: pointer; }
.hero-step:hover { transform: translateY(-4px); background: rgba(255,255,255,0.15); }
.hero-step .step-num { font-size: 34px; font-weight: 700; color: rgba(255,255,255,0.2); line-height: 1; margin-bottom: 8px; }
.hero-step .step-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.hero-step .step-desc { font-size: 11.5px; opacity: 0.75; line-height: 1.5; }
.schengen-banner { display: inline-block; background: #fff; color: #8b0000; padding: 12px 32px; border-radius: 3px; font-weight: 700; font-size: 13.5px; position: relative; transition: all 0.2s; letter-spacing: 0.3px; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.schengen-banner:hover { background: #6a0000; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }

/* MAIN */
.main { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }

/* NEWS */
.news-box { background: #fffbf0; border: 1px solid #e0c060; border-left: 4px solid #f0a500; border-radius: 3px; padding: 12px 16px; margin-bottom: 18px; font-size: 13px; color: #5a4000; }
.news-box strong { display: block; margin-bottom: 4px; font-size: 13px; }
.news-item { padding: 4px 0; border-bottom: 1px dotted #ddd; }
.news-item:last-child { border-bottom: none; }
.news-item a { color: #8b0000; }
.news-item a:hover { text-decoration: underline; }

/* HOME GRID */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 18px; }
@media(max-width:640px){ .home-grid { grid-template-columns:1fr; } }
.card { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 18px 20px; display: flex; gap: 14px; border-top: 3px solid #8b0000; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.13); transform: translateY(-2px); }
.card-icon { font-size: 26px; flex-shrink: 0; width: 38px; text-align: center; margin-top: 2px; opacity: 0.8; }
.card h3 { font-size: 13.5px; color: #8b0000; margin-bottom: 5px; font-weight: 600; }
.card p { font-size: 12.5px; color: #666; line-height: 1.6; }

/* STATUS BOX */
.status-box { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 22px; margin-bottom: 18px; }
.status-box h3 { font-size: 15px; color: #1a1a1a; border-bottom: 2px solid #8b0000; padding-bottom: 9px; margin-bottom: 13px; font-weight: 600; }
.status-box p { font-size: 13px; color: #666; margin-bottom: 12px; line-height: 1.6; }
.status-form { display: flex; gap: 8px; flex-wrap: wrap; }
.status-form input { flex: 1; min-width: 150px; padding: 9px 12px; border: 1px solid #ccc; border-radius: 3px; font-size: 13px; font-family: inherit; }
.status-form input:focus { outline: none; border-color: #8b0000; }
.status-form button { background: #8b0000; color: #fff; border: none; padding: 9px 20px; border-radius: 3px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; font-family: inherit; white-space: nowrap; }
.status-form button:hover { background: #6a0000; }
.captcha-box { margin-top: 12px; background: #fafafa; border: 1px solid #e0e0e0; border-radius: 3px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #666; flex-wrap: wrap; }
.captcha-code { background: #ede0e0; border: 1px solid #c09090; border-radius: 3px; padding: 5px 13px; font-family: monospace; font-size: 18px; letter-spacing: 5px; color: #8b0000; user-select: none; font-weight: 700; }

/* VISA CARDS */
.visa-types { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 18px; }
@media(max-width:640px){ .visa-types { grid-template-columns:1fr; } }
.visa-card { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden; transition: box-shadow 0.2s; }
.visa-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.visa-card-header { background: #8b0000; color: #fff; padding: 12px 18px; font-weight: 600; font-size: 13.5px; }
.visa-card-body { padding: 15px 18px; font-size: 13px; color: #555; line-height: 1.7; }

.offices-card { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 18px 20px; margin-bottom: 18px; border-left: 4px solid #8b0000; }
.offices-card h3 { font-size: 14px; color: #1a1a1a; margin-bottom: 7px; font-weight: 600; }
.offices-card p { font-size: 13px; color: #666; }

/* PAGE LAYOUT */
.page-wrapper { max-width: 1200px; margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: 230px 1fr; gap: 18px; }
@media(max-width:720px){ .page-wrapper { grid-template-columns:1fr; } }

/* SIDEBAR */
.sidebar { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden; align-self: start; }
.sidebar-title { background: #8b0000; color: #fff; font-size: 13px; font-weight: 600; padding: 11px 16px; letter-spacing: 0.3px; }
.sidebar ul { list-style: none; }
.sidebar ul li a { display: block; padding: 10px 16px; font-size: 13px; color: #444; border-bottom: 1px solid #f2f2f2; transition: all 0.15s; }
.sidebar ul li a:hover, .sidebar ul li a.active { background: #fdf0f0; color: #8b0000; padding-left: 20px; font-weight: 500; border-left: 3px solid #8b0000; }

/* BREADCRUMB */
.breadcrumb { font-size: 12px; color: #999; margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: #8b0000; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #ccc; }

/* CONTENT BOX */
.content-box { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 24px 28px; }
.content-box h1 { font-size: 19px; color: #1a1a1a; border-bottom: 2px solid #8b0000; padding-bottom: 10px; margin-bottom: 20px; font-weight: 600; }
.content-box h2 { font-size: 15px; color: #8b0000; margin: 20px 0 9px; font-weight: 600; }
.content-box h3 { font-size: 13.5px; color: #333; margin: 14px 0 7px; font-weight: 600; }
.content-box p { line-height: 1.75; color: #444; margin-bottom: 11px; font-size: 13.5px; }
.content-box ul, .content-box ol { padding-left: 22px; margin-bottom: 12px; }
.content-box li { line-height: 1.75; color: #444; margin-bottom: 4px; font-size: 13.5px; }
.content-box a { color: #8b0000; }
.content-box a:hover { text-decoration: underline; }
.content-box strong { color: #222; }
.content-box hr { border: none; border-top: 1px solid #eee; margin: 20px 0; }

.notice { background: #fffbf0; border-left: 4px solid #f0a500; padding: 11px 15px; border-radius: 0 3px 3px 0; margin-bottom: 13px; font-size: 13px; line-height: 1.65; color: #5a4000; }
.info-box { background: #fdf0f0; border-left: 4px solid #8b0000; padding: 11px 15px; border-radius: 0 3px 3px 0; margin-bottom: 13px; font-size: 13px; line-height: 1.65; color: #5a0000; }

table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
table th { background: #8b0000; color: #fff; padding: 10px 12px; text-align: left; font-weight: 500; }
table td { padding: 9px 12px; border-bottom: 1px solid #f0f0f0; }
table tr:nth-child(even) td { background: #fdf8f8; }
table tr:hover td { background: #fdf0f0; }

.btn { display: inline-block; background: #8b0000; color: #fff !important; text-decoration: none !important; padding: 9px 20px; border-radius: 3px; font-size: 13px; font-weight: 500; margin: 4px 4px 4px 0; transition: background 0.2s, transform 0.15s; }
.btn:hover { background: #6a0000 !important; transform: translateY(-1px); }
.btn-outline { background: transparent !important; border: 1px solid #8b0000; color: #8b0000 !important; }
.btn-outline:hover { background: #8b0000 !important; color: #fff !important; }

/* STATUS RESULT */
.status-result { display: none; margin-top: 20px; }
.status-result.show { display: block; }
.status-header { background: #4caf50; color: #fff; border-radius: 5px; padding: 17px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 13px; }
.status-header .check-circle { width: 46px; height: 46px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 21px; color: #4caf50; flex-shrink: 0; }
.status-header h3 { font-size: 14.5px; margin: 0; font-weight: 600; }
.status-header p { font-size: 12px; margin: 4px 0 0; opacity: .9; }
.stages-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 5px; padding: 17px 20px; }
.stages-box h4 { font-size: 14px; font-weight: 600; margin-bottom: 13px; color: #333; }
.stage-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #eee; }
.stage-item:last-child { border-bottom: none; }
.stage-dot { width: 13px; height: 13px; border-radius: 50%; background: #222; flex-shrink: 0; margin-top: 4px; }
.stage-info { flex: 1; }
.stage-info strong { display: block; font-size: 13px; color: #222; font-weight: 600; }
.stage-info span { font-size: 12px; color: #888; }
.stage-status { font-size: 12px; font-weight: 700; white-space: nowrap; }
.stage-status.done { color: #4caf50; }
.stage-status.pending-pay { color: #ff9800; }
.stage-status.waiting { color: #aaa; }
.status-note { color: #c00; font-size: 12px; margin-top: 12px; }

/* OFFICES */
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:640px){ .office-grid { grid-template-columns:1fr; } }
.office-card { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 17px; border-top: 3px solid #8b0000; }
.office-card h3 { color: #8b0000; font-size: 14px; margin-bottom: 9px; font-weight: 600; }
.office-card p { font-size: 13px; color: #555; line-height: 1.75; }
.office-card .phone { font-weight: 600; color: #8b0000; }

/* FAQ */
.faq-item { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 7px; overflow: hidden; }
.faq-q { padding: 13px 18px; font-weight: 500; color: #333; font-size: 13.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-q:hover { background: #fdf8f8; color: #8b0000; }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; font-size: 13px; color: #555; line-height: 1.75; }
.faq-item.open .faq-a { max-height: 400px; padding: 13px 18px; border-top: 1px solid #f0f0f0; }
.faq-arrow { transition: transform 0.3s; color: #8b0000; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* APPOINTMENT */
.appt-form { background: #fafafa; border: 1px solid #e0e0e0; border-radius: 3px; padding: 22px; }
.appt-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: #333; }
.appt-form select, .appt-form input { width: 100%; padding: 9px 12px; border: 1px solid #ccc; border-radius: 3px; font-size: 13px; margin-bottom: 14px; font-family: inherit; }
.appt-form select:focus, .appt-form input:focus { outline: none; border-color: #8b0000; }
.appt-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:500px){ .appt-form .row { grid-template-columns:1fr; } }
.appt-form .submit-btn { background: #8b0000; color: #fff; border: none; padding: 11px 28px; border-radius: 3px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.appt-form .submit-btn:hover { background: #6a0000; }
.step-bar { display: flex; margin-bottom: 22px; border-radius: 3px; overflow: hidden; }
.step-bar-item { flex: 1; text-align: center; padding: 10px 4px; font-size: 12px; font-weight: 500; background: #e0e0e0; color: #888; border-right: 2px solid #fff; }
.step-bar-item.active { background: #8b0000; color: #fff; }
.step-bar-item.done { background: #4caf50; color: #fff; }

.anketa-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 3px; color: #333; }
.anketa-form input, .anketa-form select, .anketa-form textarea { width: 100%; padding: 8px 12px; border: 1px solid #ccc; border-radius: 3px; font-size: 13px; margin-bottom: 12px; font-family: inherit; }
.anketa-form textarea { resize: vertical; min-height: 70px; }
.anketa-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.anketa-form input:focus, .anketa-form select:focus { outline: none; border-color: #8b0000; }
.section-title { background: #8b0000; color: #fff; padding: 8px 14px; border-radius: 3px; font-size: 13px; font-weight: 600; margin: 20px 0 13px; }

.hol-table td:first-child { white-space: nowrap; font-weight: 500; color: #8b0000; }
.hol-table td.closed { color: #8b0000; font-weight: 700; }

/* FOOTER */
footer { background: #1a1a1a; color: #aaa; padding: 34px 20px 18px; margin-top: 22px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
@media(max-width:640px){ .footer-inner { grid-template-columns:1fr; } }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.footer-vm-box { width: 36px; height: 36px; background: #8b0000; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: -0.5px; }
.footer-vm-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-desc { font-size: 12px; line-height: 1.75; color: #777; max-width: 440px; }
.footer-links h4 { color: #ddd; font-size: 12px; margin-bottom: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 7px; }
.footer-links ul li a { font-size: 12.5px; color: #777; transition: color 0.15s; }
.footer-links ul li a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 18px auto 0; border-top: 1px solid #2a2a2a; padding-top: 13px; font-size: 11.5px; color: #555; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #777; transition: color 0.15s; }
.footer-bottom a:hover { color: #fff; }
.bottom-cta { background: #8b0000; color: #fff; text-align: center; padding: 13px 20px; font-size: 13.5px; font-weight: 500; }
.bottom-cta a { color: #fff; }
.bottom-cta a:hover { text-decoration: underline; }
.back-to-top { position: fixed; bottom: 24px; right: 24px; background: #8b0000; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: background 0.2s, transform 0.2s; z-index: 99; }
.back-to-top:hover { background: #6a0000; transform: scale(1.1); }
