/* ==================== RESET & BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
    background: #fff;
    font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0066b3; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #d62a2a; outline: none; }
a:focus-visible { outline: 2px solid #0066b3; outline-offset: 2px; }
button:focus-visible { outline: 2px solid #0066b3; outline-offset: 2px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ==================== ACCESSIBILITY MODE ==================== */
body.a11y-on { font-size: 18px; }
body.a11y-on.a11y-size-md { font-size: 20px; }
body.a11y-on.a11y-size-lg { font-size: 22px; }
body.a11y-on.a11y-size-xl { font-size: 26px; }

body.a11y-theme-bw { background: #fff !important; color: #000 !important; }
body.a11y-theme-bw * { background: #fff !important; color: #000 !important; border-color: #000 !important; }
body.a11y-theme-bw a, body.a11y-theme-bw a * { color: #0000ff !important; text-decoration: underline; }
body.a11y-theme-bw img { filter: grayscale(100%); }

body.a11y-theme-wb { background: #000 !important; color: #fff !important; }
body.a11y-theme-wb * { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.a11y-theme-wb a, body.a11y-theme-wb a * { color: #ffff00 !important; text-decoration: underline; }

body.a11y-theme-blue { background: #9DD1FF !important; color: #063462 !important; }
body.a11y-theme-blue * { background: #9DD1FF !important; color: #063462 !important; border-color: #063462 !important; }

body.a11y-spacing-md { letter-spacing: 0.05em; word-spacing: 0.1em; }
body.a11y-spacing-lg { letter-spacing: 0.1em; word-spacing: 0.2em; }

body.a11y-no-images img { display: none !important; }
body.a11y-no-images [style*="background-image"] { background-image: none !important; }

/* ==================== A11Y PANEL ==================== */
.a11y-panel {
    background: #1a4d7a;
    color: #fff;
    padding: 10px 0;
    display: none;
    border-bottom: 3px solid #ffd966;
}
.a11y-panel.show { display: block; }
.a11y-panel .container {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.a11y-group { display: flex; align-items: center; gap: 6px; }
.a11y-group strong { font-size: 13px; margin-right: 4px; opacity: 0.85; }
.a11y-btn {
    background: transparent; border: 1px solid #fff; color: #fff;
    padding: 4px 10px; border-radius: 4px; font-size: 13px; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
}
.a11y-btn:hover, .a11y-btn.active { background: #ffd966; color: #1a4d7a; border-color: #ffd966; }
.a11y-close { margin-left: auto; }

/* ==================== TOP BAR ==================== */
.top-bar { background: #1a4d7a; color: #fff; padding: 8px 0; font-size: 13px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.top-bar a { color: #fff; }
.top-bar a:hover { color: #ffd966; }
.top-info { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

.a11y-toggle {
    background: transparent; border: 1px solid #fff; color: #fff;
    padding: 4px 10px; border-radius: 4px; font-size: 13px; cursor: pointer;
    font-family: inherit; display: flex; align-items: center; gap: 6px;
}
.a11y-toggle:hover { background: rgba(255,255,255,0.15); }
.a11y-toggle::before { content: '👁'; }

/* ==================== HEADER ==================== */
.header {
    background: #fff; border-bottom: 3px solid #0066b3; padding: 18px 0;
    position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.logo-mark {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #0066b3 0%, #1a4d7a 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 18px; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,102,179,0.3);
}
.logo-text strong { display: block; font-size: 16px; color: #1a4d7a; line-height: 1.2; font-weight: 700; }
.logo-text small { font-size: 11px; color: #6c7a89; display: block; margin-top: 2px; }
.header-contacts { text-align: right; line-height: 1.3; }
.header-phone { font-size: 22px; font-weight: 700; color: #1a4d7a; display: block; }
.header-phone:hover { color: #d62a2a; }
.header-cta {
    display: inline-block; font-size: 13px; color: #0066b3;
    border-bottom: 1px dashed #0066b3; cursor: pointer; margin-top: 4px;
    background: none; border-top: 0; border-left: 0; border-right: 0;
    font-family: inherit;
}

/* ==================== NAVIGATION ==================== */
.nav { background: #1a4d7a; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.nav-list li a {
    display: block; padding: 14px 18px; color: #fff;
    font-weight: 500; font-size: 14px; transition: background 0.2s;
}
.nav-list li a:hover, .nav-list li.active a { background: #0066b3; color: #fff; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: #1a4d7a; margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs { background: #f4f7fa; padding: 12px 0; font-size: 13px; color: #6c7a89; border-bottom: 1px solid #e0e6ed; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 8px; color: #b0bdc8; }

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, #1a4d7a 0%, #0066b3 100%);
    color: #fff; padding: 60px 0; position: relative; overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 18px; font-weight: 700; max-width: 800px; }
.hero p { font-size: 1.125rem; margin-bottom: 28px; max-width: 700px; opacity: 0.95; }
.hero-features { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.hero-feature {
    background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
    padding: 14px 22px; border-radius: 8px; border-left: 3px solid #ffd966; font-size: 0.94rem;
}
.hero-feature strong { display: block; font-size: 1.4rem; color: #ffd966; margin-bottom: 2px; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block; padding: 14px 32px; background: #d62a2a; color: #fff !important;
    border: 0; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s; text-align: center; text-decoration: none; font-family: inherit;
}
.btn:hover { background: #b81d1d; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(214,42,42,0.3); }
.btn-secondary { background: #fff; color: #1a4d7a !important; border: 2px solid #fff; }
.btn-secondary:hover { background: #ffd966; color: #1a4d7a !important; border-color: #ffd966; }
.btn-outline {
    background: transparent; color: #0066b3 !important; border: 2px solid #0066b3;
}
.btn-outline:hover { background: #0066b3; color: #fff !important; }

/* ==================== SECTIONS ==================== */
.section { padding: 60px 0; }
.section-alt { background: #f4f7fa; }
.section-title { font-size: 1.875rem; color: #1a4d7a; margin-bottom: 12px; font-weight: 700; line-height: 1.2; }
.section-subtitle { color: #6c7a89; font-size: 1.0625rem; margin-bottom: 36px; max-width: 800px; }

/* ==================== COURSE CARDS ==================== */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin-top: 30px; }
.course-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: all 0.3s;
    border: 1px solid #e0e6ed; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,102,179,0.15); border-color: #0066b3; }
.course-image {
    height: 180px;
    background: linear-gradient(135deg, #1a4d7a 0%, #0066b3 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.course-image svg { width: 80px; height: 80px; opacity: 0.85; }
.course-tag {
    position: absolute; top: 12px; left: 12px;
    background: #ffd966; color: #1a4d7a; padding: 4px 12px;
    border-radius: 4px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.course-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-title { font-size: 1.125rem; font-weight: 600; color: #1a4d7a; margin-bottom: 14px; line-height: 1.3; min-height: 70px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: 0.8125rem; }
.course-meta span { background: #f4f7fa; padding: 4px 10px; border-radius: 4px; color: #1a4d7a; }
.course-price { font-size: 1.5rem; font-weight: 700; color: #d62a2a; margin-bottom: 18px; }
.course-price small { font-size: 0.875rem; color: #6c7a89; font-weight: 400; }
.course-card .btn { margin-top: auto; padding: 12px 20px; font-size: 0.875rem; }

/* ==================== SVEDEN LAYOUT ==================== */
.sveden-wrap { padding: 40px 0; }
.sveden-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.sveden-sidebar {
    background: #fff; border-radius: 10px; padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1px solid #e0e6ed;
    align-self: start; position: sticky; top: 100px;
}
.sveden-sidebar h2 { font-size: 1rem; color: #1a4d7a; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #ffd966; }
.sveden-menu { list-style: none; }
.sveden-menu li { margin-bottom: 2px; }
.sveden-menu li a {
    display: block; padding: 8px 12px; color: #2c3e50;
    border-radius: 4px; font-size: 0.875rem; line-height: 1.3;
    border-left: 3px solid transparent;
}
.sveden-menu li a:hover { background: #f4f7fa; color: #0066b3; }
.sveden-menu li.active a { background: #f4f7fa; color: #1a4d7a; font-weight: 600; border-left-color: #0066b3; }

.sveden-content {
    background: #fff; border-radius: 10px; padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1px solid #e0e6ed;
}
.sveden-content h1 { color: #1a4d7a; font-size: 1.75rem; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid #ffd966; }
.sveden-content h2 { color: #1a4d7a; font-size: 1.375rem; margin: 26px 0 14px; }
.sveden-content h3 { color: #0066b3; font-size: 1.125rem; margin: 20px 0 10px; }
.sveden-content p { margin-bottom: 12px; line-height: 1.7; }
.sveden-content ul, .sveden-content ol { margin: 12px 0 12px 24px; }
.sveden-content li { margin-bottom: 6px; line-height: 1.6; }
.sveden-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9375rem; }
.sveden-content th, .sveden-content td { border: 1px solid #d0d8e0; padding: 10px 12px; text-align: left; vertical-align: top; }
.sveden-content th { background: #f4f7fa; color: #1a4d7a; font-weight: 600; }
.sveden-content table.striped tr:nth-child(even) td { background: #fafbfc; }

.doc-item {
    display: flex; align-items: center; gap: 14px; padding: 14px;
    background: #f4f7fa; border-radius: 6px; margin-bottom: 10px;
    border-left: 4px solid #0066b3;
}
.doc-item .doc-icon {
    width: 40px; height: 40px; background: #d62a2a; color: #fff;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}
.doc-item .doc-info { flex: 1; }
.doc-item .doc-title { font-weight: 500; color: #1a4d7a; margin-bottom: 2px; line-height: 1.3; }
.doc-item .doc-meta { font-size: 0.8125rem; color: #6c7a89; }
.doc-item .doc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.doc-actions a {
    padding: 6px 12px; background: #fff; border: 1px solid #0066b3;
    color: #0066b3; border-radius: 4px; font-size: 0.8125rem;
}
.doc-actions a:hover { background: #0066b3; color: #fff; }

.info-block {
    background: #fafbfc; padding: 16px 20px; border-radius: 6px;
    border-left: 4px solid #ffd966; margin: 16px 0;
}
.info-block strong { color: #1a4d7a; }

.no-info {
    padding: 24px; background: #f4f7fa; border-radius: 6px;
    color: #6c7a89; text-align: center; font-style: italic;
    border: 1px dashed #b0bdc8;
}

/* Employee card */
.employee-card {
    border: 1px solid #e0e6ed; border-radius: 8px; padding: 18px;
    margin-bottom: 14px; background: #fff;
}
.employee-card h3 { color: #1a4d7a; margin-bottom: 4px; font-size: 1.0625rem; }
.employee-card .position { color: #0066b3; font-weight: 500; margin-bottom: 10px; font-size: 0.9375rem; }
.employee-card dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 0.9375rem; }
.employee-card dt { color: #6c7a89; }
.employee-card dd { color: #2c3e50; }

/* ==================== FORMS ==================== */
.contact-form { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.875rem; color: #1a4d7a; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #d0d8e0; border-radius: 6px;
    font-size: 0.9375rem; font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #0066b3; box-shadow: 0 0 0 3px rgba(0,102,179,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-checkbox { display: flex; align-items: start; gap: 8px; font-size: 0.8125rem; color: #6c7a89; margin-bottom: 18px; }
.form-checkbox input { width: auto; margin-top: 3px; }

/* ==================== MODAL ==================== */
.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.6);
    z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal.show { display: flex; }
.modal-content {
    background: #fff; border-radius: 10px; padding: 30px;
    max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 26px; cursor: pointer; color: #6c7a89; line-height: 1; }
.modal h3 { color: #1a4d7a; margin-bottom: 18px; }

/* ==================== FAQ ==================== */
.faq-list { margin-top: 30px; max-width: 900px; }
.faq-item { background: #fff; margin-bottom: 12px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; border: 1px solid #e0e6ed; }
.faq-question { padding: 18px 56px 18px 22px; cursor: pointer; font-weight: 600; color: #1a4d7a; position: relative; transition: background 0.2s; }
.faq-question:hover { background: #f4f7fa; }
.faq-question::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; color: #0066b3; transition: transform 0.2s; line-height: 1; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 22px; color: #4a5a6a; }
.faq-item.open .faq-answer { max-height: 800px; padding: 0 22px 18px; }

/* ==================== CTA SECTION ==================== */
.cta-section { background: linear-gradient(135deg, #1a4d7a 0%, #0066b3 100%); color: #fff; padding: 60px 0; text-align: center; }
.cta-section h2 { font-size: 1.875rem; margin-bottom: 14px; }
.cta-section p { font-size: 1.0625rem; margin-bottom: 28px; max-width: 700px; margin-left: auto; margin-right: auto; opacity: 0.95; }

/* ==================== FOOTER ==================== */
.footer { background: #1a2e42; color: #b8c4d0; padding: 50px 0 20px; font-size: 0.875rem; }
.footer a { color: #b8c4d0; }
.footer a:hover { color: #ffd966; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; }
.footer-logo strong { color: #fff; font-size: 1rem; }
.footer-bottom { padding-top: 20px; border-top: 1px solid #2c4258; text-align: center; color: #7a8a9a; font-size: 0.8125rem; }

/* ==================== ADVANTAGES ==================== */
.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 30px; }
.advantage { background: #fff; padding: 28px 22px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); text-align: center; border-top: 3px solid #ffd966; }
.advantage-icon { width: 64px; height: 64px; background: linear-gradient(135deg, #0066b3 0%, #1a4d7a 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: #fff; font-size: 1.75rem; font-weight: 700; }
.advantage h3 { color: #1a4d7a; font-size: 1.0625rem; margin-bottom: 10px; }
.advantage p { color: #6c7a89; font-size: 0.875rem; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .sveden-grid { grid-template-columns: 1fr; }
    .sveden-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .header .container { flex-wrap: wrap; gap: 12px; }
    .header-contacts { display: none; }
    .burger { display: block; }
    .nav { display: none; }
    .nav.open { display: block; }
    .nav-list { flex-direction: column; }
    .nav-list li a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .footer-grid { grid-template-columns: 1fr; }
    .top-info { font-size: 0.75rem; gap: 12px; }
    .doc-item { flex-wrap: wrap; }
    .doc-item .doc-actions { width: 100%; margin-top: 8px; }
    .employee-card dl { grid-template-columns: 1fr; gap: 2px; }
    .employee-card dt { font-weight: 600; margin-top: 6px; }
    .a11y-panel .container { flex-direction: column; align-items: flex-start; }
}

/* ==================== PRINT ==================== */
@media print {
    .header, .nav, .top-bar, .footer, .a11y-panel, .a11y-toggle, .btn, .breadcrumbs { display: none; }
    .sveden-grid { grid-template-columns: 1fr; }
    .sveden-content { box-shadow: none; border: none; padding: 0; }
}
