/* ==============================================
   ООО ЛИМА — основные стили
   Минималистичный медицински-чистый стиль
   ============================================== */

:root {
  --bg: #ffffff;
  --surface: #f7f9fa;
  --text: #1a2332;
  --text-muted: #5a6472;
  --accent: #2b6cb0;
  --accent-hover: #1f5490;
  --accent-soft: #e3eef8;
  --border: #e5e9ec;
  --ok: #2e7d5b;
  --bad: #b63b3b;
  --radius: 6px;
  --container: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: #fff; padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { top: 0; color: #fff; }

/* ------ Header ------ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark { font-weight: 700; font-size: 24px; letter-spacing: 0.02em; color: var(--text); }
.brand-sub { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }

.header-cta { margin-left: 16px; }

/* ------ Buttons ------ */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-small { padding: 6px 12px; font-size: 13px; }

/* ------ Hero ------ */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}
.hero-title { font-size: 44px; line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
.hero-lead { font-size: 18px; color: var(--text-muted); max-width: 720px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------ Sections ------ */
.section { padding: 64px 0; }
.section-muted { background: var(--surface); }
.section-title { font-size: 32px; margin: 0 0 32px; font-weight: 700; }
.section-cta { background: var(--text); color: #fff; }
.section-cta .section-title { color: #fff; }
.section-cta .btn-primary { background: #fff; color: var(--text); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ------ Cards ------ */
.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.card-muted { opacity: 0.7; }
.card-title { font-size: 22px; margin: 0 0 12px; }
.card-text { color: var(--text-muted); margin: 0 0 16px; }
.card-link { font-weight: 500; }
.card-link-disabled { color: var(--text-muted); font-weight: 500; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; background: var(--surface); color: var(--text-muted); border-radius: 10px; margin-left: 8px; vertical-align: middle; }

/* ------ Features ------ */
.feature { }
.feature-num { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 8px; }
.feature-title { font-size: 20px; margin: 0 0 8px; }

/* ------ Steps ------ */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 28px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 20px;
  line-height: 1.5;
  font-size: 16px;
}
.steps li::before {
  content: counter(step);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.steps li b { display: block; margin-bottom: 2px; color: var(--text); }

/* ------ Pages ------ */
.page-title { font-size: 36px; margin: 0 0 24px; font-weight: 700; }
.page-lead { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 26px; margin: 32px 0 16px; }
.prose h3 { font-size: 20px; margin: 24px 0 12px; }

/* ------ Forms ------ */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff;
}
.form textarea { resize: vertical; }
.consent { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: 14px; color: var(--text-muted); }

/* ------ Contacts ------ */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ------ Sveden ------ */
.sveden-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sveden-list li { background: var(--surface); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: var(--radius); }
.sveden-list a { color: var(--text); font-weight: 500; }
.sveden-list a:hover { color: var(--accent); text-decoration: none; }
.sveden-nav { margin-bottom: 16px; }
.sveden-nav a { font-size: 14px; color: var(--text-muted); }
.sveden-sidebar { background: var(--surface); padding: 24px; border-radius: var(--radius); margin-top: 32px; }
.sveden-sidebar h3 { margin-top: 0; }
.sveden-sidebar ul { list-style: none; padding: 0; }
.sveden-sidebar li { padding: 6px 0; }
.sveden-sidebar li.active a { color: var(--accent); font-weight: 600; }

/* ------ Footer ------ */
.site-footer { background: var(--text); color: #cbd5e0; padding: 48px 0 24px; margin-top: auto; flex-shrink: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 12px; }
.footer-muted { color: #9aa5b1; font-size: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a, .site-footer a { color: #cbd5e0; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 24px; font-size: 14px; color: #9aa5b1; }

/* ==============================================
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ (ГОСТ Р 52872-2019)
   ============================================== */

.a11y-bar {
  background: var(--text); color: #fff; padding: 8px 0; font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.a11y-bar-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.a11y-toggle { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.a11y-toggle:hover { color: #fff; text-decoration: underline; }
.a11y-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.a11y-controls label { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; }
.a11y-controls select { padding: 4px 8px; border-radius: 4px; border: 1px solid #555; background: #fff; color: var(--text); font-size: 13px; }
.a11y-off { color: #fff; margin-left: auto; font-size: 13px; }

/* Активная версия для слабовидящих */
.a11y .a11y-bar { display: block; }
.a11y .site-header { background: var(--a11y-bg, #fff); border-bottom-color: var(--a11y-border, #000); }
.a11y .site-header .brand-mark,
.a11y .main-nav a { color: var(--a11y-text, #000) !important; }
.a11y .section-muted { background: var(--a11y-bg, #fff) !important; }
.a11y .card { background: var(--a11y-bg, #fff); border-color: var(--a11y-text, #000); }
.a11y .card-title, .a11y .section-title, .a11y .page-title, .a11y .hero-title { color: var(--a11y-text, #000); }
.a11y .hero { background: var(--a11y-bg, #fff); }
.a11y .site-footer { background: var(--a11y-bg, #fff); color: var(--a11y-text, #000); border-top: 2px solid var(--a11y-text, #000); }
.a11y .site-footer a, .a11y .footer-title, .a11y .footer-muted, .a11y .footer-copy { color: var(--a11y-text, #000) !important; }
.a11y body { background: var(--a11y-bg, #fff); color: var(--a11y-text, #000); }
.a11y { background: var(--a11y-bg, #fff); color: var(--a11y-text, #000); }
.a11y a { color: var(--a11y-link, #000); text-decoration: underline; }
.a11y .btn-primary { background: var(--a11y-text, #000); color: var(--a11y-bg, #fff); border-color: var(--a11y-text, #000); }
.a11y .btn-outline { color: var(--a11y-text, #000); border-color: var(--a11y-text, #000); background: transparent; }
.a11y .sveden-list li { background: var(--a11y-bg, #fff); border: 2px solid var(--a11y-text, #000); border-left-width: 6px; }

/* Цветовые схемы */
.a11y-scheme-bow { --a11y-bg: #ffffff; --a11y-text: #000000; --a11y-link: #000000; --a11y-border: #000000; }
.a11y-scheme-wob { --a11y-bg: #000000; --a11y-text: #ffffff; --a11y-link: #ffffff; --a11y-border: #ffffff; }
.a11y-scheme-bol { --a11y-bg: #9dd1ff; --a11y-text: #063462; --a11y-link: #063462; --a11y-border: #063462; }
.a11y-scheme-wobl { --a11y-bg: #063462; --a11y-text: #ffffff; --a11y-link: #ffffff; --a11y-border: #ffffff; }
.a11y-scheme-yob { --a11y-bg: #000000; --a11y-text: #ffe600; --a11y-link: #ffe600; --a11y-border: #ffe600; }

/* Размер шрифта */
.a11y-size-normal { font-size: 18px !important; }
.a11y-size-large { font-size: 22px !important; }
.a11y-size-xlarge { font-size: 26px !important; }

/* Межбуквенный интервал */
.a11y-spacing-medium, .a11y-spacing-medium * { letter-spacing: 0.1em !important; }
.a11y-spacing-large, .a11y-spacing-large * { letter-spacing: 0.2em !important; }

/* Шрифт */
.a11y-font-sans, .a11y-font-sans * { font-family: var(--font-sans) !important; }
.a11y-font-serif, .a11y-font-serif * { font-family: var(--font-serif) !important; }

/* Скрытие изображений */
.a11y-no-images img { display: none !important; }
.a11y-no-images svg:not([aria-hidden="true"]) { display: none !important; }

/* ------ Адаптив ------ */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-nav { order: 3; width: 100%; }
  .main-nav ul { flex-wrap: wrap; gap: 16px; }
  .header-cta { margin-left: auto; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 26px; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 32px; }
}

/* ------ Programs / Teachers / Downloads ------ */
.filters { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-chip { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); color: var(--text); background: #fff; font-size: 14px; }
.filter-chip:hover { border-color: var(--accent); text-decoration: none; }
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.card-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }

.program-meta { display: flex; gap: 24px; flex-wrap: wrap; padding: 16px; background: var(--surface); border-radius: var(--radius); margin-bottom: 24px; font-size: 15px; }

.teacher-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.teacher-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; display: block; }
.teacher-name { font-size: 18px; margin: 0 0 4px; }
.teacher-position { color: var(--text-muted); margin: 0 0 8px; font-size: 14px; }
.teacher-exp, .teacher-edu { font-size: 13px; color: var(--text-muted); margin: 4px 0; }

.downloads { margin-top: 32px; }
.downloads-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.downloads-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); color: var(--text); }
.downloads-list a:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.file-ext { display: inline-block; padding: 4px 8px; background: var(--accent); color: #fff; border-radius: 4px; font-size: 11px; font-weight: 700; min-width: 48px; text-align: center; }

.program-cta { margin-top: 40px; text-align: center; }
.breadcrumbs { margin-bottom: 16px; font-size: 14px; }
.breadcrumbs a { color: var(--text-muted); }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; }
.alert-ok { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.sveden-defs { display: grid; grid-template-columns: 260px 1fr; gap: 12px 24px; margin: 0 0 24px; }
.sveden-defs dt { font-weight: 500; color: var(--text-muted); }
.sveden-defs dd { margin: 0; }
@media (max-width: 640px) { .sveden-defs { grid-template-columns: 1fr; gap: 4px; } .sveden-defs dd { margin-bottom: 12px; } }

.sveden-programs, .sveden-teachers { padding-left: 20px; }
.sveden-programs li, .sveden-teachers li { margin-bottom: 12px; }

/* ------ Sveden: Education ------ */
.edu-intro { background: var(--surface); padding: 24px 28px; border-radius: var(--radius); margin-bottom: 32px; border-left: 4px solid var(--accent); }
.edu-intro .sveden-defs { margin: 0; }
.edu-section-title { font-size: 24px; margin: 40px 0 20px; font-weight: 700; }
.edu-programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.edu-program-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.edu-program-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-color: var(--accent); transform: translateY(-2px); }
.edu-program-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.edu-program-category {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  padding: 4px 10px; border-radius: 12px;
}
.edu-program-category.is-medical { background: #ffe8d6; color: #8a4500; }
.edu-program-category.is-nonmed { background: var(--accent-soft); color: var(--accent); }
.edu-program-hours { color: var(--text-muted); font-size: 14px; }
.edu-program-hours b { color: var(--text); font-size: 20px; }
.edu-program-title { font-size: 18px; margin: 0; line-height: 1.3; font-weight: 600; }
.edu-program-title a { color: var(--text); }
.edu-program-title a:hover { color: var(--accent); text-decoration: none; }
.edu-program-desc { color: var(--text-muted); font-size: 14px; margin: 0; flex: 1; }
.edu-program-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.edu-program-doc { font-size: 12px; color: var(--text-muted); }
.edu-program-price { font-weight: 600; color: var(--text); font-size: 15px; }
.edu-program-link { font-weight: 500; font-size: 14px; }

/* ------ Cookie banner (floating card) ------ */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 900;
  max-width: 420px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.cookie-banner.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner-card {
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 16px 48px rgba(26, 35, 50, 0.35), 0 0 0 1px rgba(255,255,255,0.05);
  padding: 20px 22px;
  position: relative;
}
.cookie-close {
  position: absolute; top: 8px; right: 10px;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.08); border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: #cbd5e0;
  border-radius: 50%;
}
.cookie-close:hover { background: rgba(255,255,255,0.18); color: #fff; }
.cookie-banner-body { display: flex; gap: 14px; align-items: flex-start; }
.cookie-icon { font-size: 28px; flex-shrink: 0; line-height: 1; filter: saturate(1.3); }
.cookie-title { font-weight: 600; font-size: 15px; color: #fff; margin-bottom: 4px; }
.cookie-text { margin: 0 0 14px; font-size: 13px; color: #cbd5e0; line-height: 1.5; }
.cookie-text a { color: #9dc3ea; text-decoration: underline; }
.cookie-text a:hover { color: #fff; }
.cookie-actions { display: flex; align-items: center; gap: 14px; }
.cookie-actions .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-actions .btn-primary:hover { background: var(--accent-hover); }
.cookie-link { font-size: 13px; color: #9aa5b1; }
.cookie-link:hover { color: #fff; }
@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ------ Reviews slider ------ */
.section-reviews { background: var(--surface); }
.reviews-slider { position: relative; }
.reviews-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.reviews-track::-webkit-scrollbar { height: 6px; }
.reviews-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.review-card {
  flex: 0 0 360px; max-width: 360px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.review-rating { color: #e8b017; font-size: 18px; letter-spacing: 2px; }
.review-content { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.review-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-name { font-weight: 600; color: var(--text); }
.review-role { font-size: 13px; color: var(--text-muted); }
.reviews-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; font-size: 24px; line-height: 1; cursor: pointer; color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); z-index: 2;
}
.reviews-btn:hover { border-color: var(--accent); color: var(--accent); }
.reviews-prev { left: -22px; }
.reviews-next { right: -22px; }
@media (max-width: 900px) { .reviews-btn { display: none; } .review-card { flex-basis: 85%; max-width: 85%; } }
