:root {
  --color-primary: #5488F2;
  --color-primary-dark: #3A6CE8;
  --color-primary-light: #47A9F8;
  --color-accent: #ED1C39;
  --color-accent-dark: #C71530;
  --color-bg: #FFFFFF;
  --color-bg-secondary: #F0F4FB;
  --color-bg-tint: #EEF3FD;
  --color-text: #222222;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-border: #DDE3F0;
  --color-footer-bg: #1E2A3B;
  --color-footer-text: #A0AFBF;

  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;

  --shadow-card: 0 2px 12px rgba(84,136,242,0.08);
  --shadow-card-hover: 0 12px 36px rgba(84,136,242,0.20);
  --shadow-header: 0 2px 16px rgba(0,0,0,0.06);

  --max-width: 1200px;
  --header-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-text); }
h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 16px; }
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
@media (max-width: 1200px) { .container { padding: 0 24px; } }
@media (max-width: 768px)  { .container { padding: 0 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; padding: 12px 28px; border-radius: var(--radius-btn); transition: all 0.2s ease; white-space: nowrap; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(84,136,242,0.32); }
.btn-secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); padding: 10px 26px; }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(237,28,57,0.32); }
.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { background: #f5f5f5; transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: #fff; height: var(--header-height); display: flex; align-items: center; transition: box-shadow 0.2s; border-bottom: 1px solid transparent; }
.header.scrolled { box-shadow: var(--shadow-header); }
.header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.logo-text { display:flex; flex-direction:column; line-height: 1.1; }
.logo-text .logo-title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--color-text); letter-spacing: -0.01em; }
.logo-text .logo-sub { font-size: 11px; color: var(--color-text-muted); font-family: var(--font-body); margin-top: 2px; }

.nav { display:flex; align-items:center; gap: 2px; }
.nav-item { font-family: var(--font-heading); font-weight: 500; font-size: 13px; color: var(--color-text); padding: 7px 9px; border-radius: 6px; transition: all 0.2s; position: relative; cursor: pointer; white-space: nowrap; }
.nav-item:hover { color: var(--color-primary); }
.nav-item.active { color: var(--color-primary); }
.nav-item.active::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: -4px; height: 2px; background: var(--color-primary); border-radius: 2px; }
.nav-item.pdf { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-secondary); }
.nav-item.pdf .pdf-tag { font-size: 10px; background: var(--color-accent); color: #fff; padding: 2px 6px; border-radius: 3px; font-weight: 700; letter-spacing: 0.05em; }

.header-cta { display:flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phones { display: none; flex-direction: column; gap: 2px; }
.header-phones a { font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: var(--color-text); display: flex; align-items: center; gap: 5px; line-height: 1.2; }
.header-phones a:first-child { color: var(--color-primary); }
@media (min-width: 1200px) { .header-phones { display: flex; } }

.burger { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav, .header-cta .btn-accent { display: none; }
  .burger { display: flex; }
}

.mobile-menu { position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: #fff; z-index: 99; transform: translateX(100%); transition: transform 0.3s ease; padding: 24px; overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .nav-item { display: block; font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.mobile-menu .btn { margin-top: 24px; width: 100%; }

/* Hero */
.hero { position: relative; padding: 72px 0 80px; background: linear-gradient(120deg, var(--color-bg-tint) 0%, #fff 65%); overflow: hidden; }
.hero::before { content:''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(84,136,242,0.10) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 32px; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--color-primary); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 520px; }
.hero-photo { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(30,42,59,0.22), 0 0 0 1px rgba(255,255,255,0.5); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 8s ease; }
.hero-photo:hover img { transform: scale(1.08); }
.hero-photo-tint { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(30,42,59,0) 30%, rgba(30,42,59,0.18) 100%); pointer-events: none; }

@media (max-width: 1024px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; }
}
@media (max-width: 600px) {
  .hero-visual { height: 320px; }
  .hero-photo { border-radius: 20px; }
}

/* Sections */
section.block { padding: 80px 0; }
@media (max-width: 768px) { section.block { padding: 48px 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker { display: inline-block; font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: var(--color-primary); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head p { color: var(--color-text-secondary); margin-top: 14px; font-size: 17px; }

/* Why Us */
.whyus { background: var(--color-bg-secondary); }
.whyus-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 28px; transition: all 0.25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--color-bg-tint); color: var(--color-primary); display:flex; align-items:center; justify-content:center; margin-bottom: 18px; }
.feature h4 { margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--color-text-secondary); }

@media (max-width: 1024px) { .whyus-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .whyus-grid { grid-template-columns: 1fr; } }

/* Course cards */
.courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 1024px) { .courses-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .courses-grid { grid-template-columns: 1fr; } }

.course-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: all 0.25s ease; cursor: pointer; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.course-card:hover .course-img-inner { transform: scale(1.05); }
.course-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.course-img-inner { width:100%; height:100%; position: relative; transition: transform 0.4s ease; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.96); font-family: var(--font-heading); font-weight: 700; font-size: 22px; padding: 24px; text-align: center; line-height: 1.2; }
.course-img-inner::before { content:''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.18) 0%, transparent 50%); pointer-events: none; z-index: 1; }
.course-img-inner .cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.course-img-inner .cover-photo + .cover-text { display: none; }
.course-img-inner .cover-text { position: relative; z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge { display: inline-block; background: var(--color-bg-tint); color: var(--color-primary); font-family: var(--font-heading); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.02em; }
.badge-format { background: #EEF6FF; color: var(--color-text-secondary); display: inline-flex; align-items: center; gap: 4px; }
.course-card h4 { margin-bottom: 10px; line-height: 1.3; }
.course-card .desc { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 18px; }
.course-meta { display:flex; justify-content: space-between; align-items: flex-end; padding-top: 16px; border-top: 1px dashed var(--color-border); margin-top: auto; margin-bottom: 18px; }
.course-meta .duration { font-size: 13px; color: var(--color-text-muted); }
.course-meta .duration b { font-family: var(--font-heading); color: var(--color-text); font-weight: 600; font-size: 15px; display: block; margin-top: 2px; }
.course-meta .price { text-align: right; font-size: 12px; color: var(--color-text-muted); }
.course-meta .price b { font-family: var(--font-heading); color: var(--color-accent); font-weight: 700; font-size: 20px; display: block; }

/* Pills filter */
.pills { display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.pill { font-family: var(--font-heading); font-weight: 500; font-size: 14px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--color-border); background: #fff; color: var(--color-text-secondary); transition: all 0.2s; cursor: pointer; }
.pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pill.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; position: relative; }
.step { background: #fff; padding: 32px 24px; border-radius: var(--radius-card); border: 1px solid var(--color-border); position: relative; transition: all 0.25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.step-num { position: absolute; top: -22px; left: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color:#fff; font-family: var(--font-heading); font-weight: 700; font-size: 18px; display:flex; align-items:center; justify-content:center; box-shadow: 0 8px 20px rgba(84,136,242,0.28); }
.step h4 { margin: 14px 0 8px; }
.step p { font-size: 14px; color: var(--color-text-secondary); }
.step-arrow { position: absolute; top: 50%; right: -16px; width: 32px; height: 32px; transform: translateY(-50%); color: var(--color-primary); display: flex; align-items: center; justify-content: center; z-index: 2; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; gap: 32px; } .step-arrow { display: none; } }

/* CTA banner */
.cta-banner { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; padding: 64px 48px; border-radius: 24px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-banner::before { content:''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 60%); border-radius: 50%; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 17px; }
.cta-banner .right { display:flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cta-banner .right small { color: rgba(255,255,255,0.75); font-size: 13px; }
@media (max-width: 768px) { .cta-banner { grid-template-columns: 1fr; padding: 40px 24px; } .cta-banner .right { align-items: flex-start; } }

/* Footer */
.footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: 64px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .logo-text .logo-title { color: #fff; }
.footer .logo-text .logo-sub { color: var(--color-footer-text); }
.footer h5 { color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--color-footer-text); font-size: 14px; transition: color 0.2s; cursor: pointer; }
.footer ul a:hover { color: #fff; }
.footer-about { font-size: 14px; line-height: 1.7; max-width: 320px; margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,22,38,0.55); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 480px; background: #fff; border-radius: 20px; padding: 36px; position: relative; transform: scale(0.95); transition: transform 0.25s ease; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; display:flex; align-items:center; justify-content:center; color: var(--color-text-muted); transition: all 0.2s; }
.modal-close:hover { background: var(--color-bg-secondary); color: var(--color-text); }
.modal h3 { margin-bottom: 6px; }
.modal .modal-sub { color: var(--color-text-secondary); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 13px; color: var(--color-text-secondary); margin-bottom: 6px; }
.field label .req { color: var(--color-accent); }
.field input, .field select { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--color-border); border-radius: var(--radius-input); font-family: inherit; font-size: 15px; color: var(--color-text); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(84,136,242,0.12); }
.field input.error { border-color: var(--color-accent); }
.field .error-text { color: var(--color-accent); font-size: 12px; margin-top: 6px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--color-text-secondary); cursor: pointer; user-select: none; margin-bottom: 20px; }
.checkbox input { display: none; }
.checkbox .check { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--color-border); flex-shrink: 0; display:flex; align-items:center; justify-content:center; transition: all 0.2s; margin-top: 2px; }
.checkbox input:checked + .check { background: var(--color-primary); border-color: var(--color-primary); }
.checkbox input:checked + .check::after { content:'✓'; color:#fff; font-size: 13px; font-weight: bold; }
.checkbox.error .check { border-color: var(--color-accent); }
.checkbox a { color: var(--color-primary); text-decoration: underline; }

.modal-success { text-align: center; padding: 16px 0; }
.modal-success .ok { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #1FB97A, #16A268); color:#fff; display:flex; align-items:center; justify-content:center; margin: 0 auto 20px; font-size: 36px; }
.modal-success p { color: var(--color-text-secondary); margin-top: 8px; }

/* Page hero */
.page-hero { background: var(--color-bg-secondary); padding: 48px 0 40px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--color-text-muted); margin-bottom: 14px; }
.crumbs a { color: var(--color-text-muted); cursor: pointer; }
.crumbs a:hover { color: var(--color-primary); }
.crumbs .sep { opacity: 0.5; }
.crumbs .current { color: var(--color-text); }
.page-hero p.sub { color: var(--color-text-secondary); margin-top: 8px; font-size: 17px; }

/* Course detail */
.course-detail { display: grid; grid-template-columns: 8fr 4fr; gap: 40px; align-items: start; }
@media (max-width: 1024px) { .course-detail { grid-template-columns: 1fr; } .course-side { order: -1; } }
.course-cover { aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; margin-bottom: 28px; position: relative; }
.course-cover .course-img-inner { font-size: 32px; }
.course-detail h1 { margin-bottom: 16px; font-size: 40px; }
@media (max-width: 768px) { .course-detail h1 { font-size: 26px; } }
.course-detail .lead { font-size: 17px; color: var(--color-text-secondary); margin: 16px 0 32px; }
.course-detail h3 { margin: 32px 0 16px; }
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bullet-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--color-text-secondary); }
.bullet-list li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--color-bg-tint); color: var(--color-primary); flex-shrink: 0; margin-top: 2px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235488F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); background-size: 14px; background-repeat: no-repeat; background-position: center; }

.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; transition: all 0.2s; }
.acc-item.open { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.acc-head { width:100%; display:flex; align-items: center; justify-content: space-between; padding: 18px 22px; gap: 16px; text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-text); cursor: pointer; }
.acc-head .num { color: var(--color-primary); font-size: 13px; font-weight: 700; margin-right: 8px; }
.acc-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--color-bg-secondary); display:flex; align-items:center; justify-content:center; color: var(--color-primary); transition: transform 0.2s; flex-shrink: 0; }
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--color-primary); color: #fff; }
.acc-body { padding: 0 22px 18px; color: var(--color-text-secondary); font-size: 15px; display: none; }
.acc-item.open .acc-body { display: block; }

.course-side { position: sticky; top: 88px; }
.course-side-card { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-card); }
.course-side-card .price-label { font-size: 13px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.course-side-card .price-val { font-family: var(--font-heading); font-size: 36px; font-weight: 800; color: var(--color-accent); margin: 6px 0 24px; letter-spacing: -0.02em; }
.course-side-card .price-val small { font-size: 14px; color: var(--color-text-muted); font-weight: 400; }
.spec-list { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; border-top: 1px dashed var(--color-border); border-bottom: 1px dashed var(--color-border); margin-bottom: 20px; }
.spec-list .spec { display: grid; grid-template-columns: 24px 100px 1fr; align-items: center; gap: 10px; font-size: 14px; }
.spec-list .spec .ic { color: var(--color-primary); }
.spec-list .spec .lbl { color: var(--color-text-muted); }
.spec-list .spec .val { color: var(--color-text); font-weight: 600; }
.course-side-card .phone-block { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--color-border); display:flex; align-items: center; gap: 12px; }
.course-side-card .phone-block .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--color-bg-tint); color: var(--color-primary); display:flex; align-items:center; justify-content:center; flex-shrink: 0; }
.course-side-card .phone-block .ph-num { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--color-text); display: block; text-decoration: none; }
.course-side-card .phone-block .ph-num:hover { color: var(--color-primary); }

.cert-preview { aspect-ratio: 4/3; background: linear-gradient(135deg,#fff,#F8FAFE); border: 2px solid var(--color-border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.cert-preview::before { content: ''; position: absolute; top: 14px; left: 14px; right: 14px; bottom: 14px; border: 1px solid var(--color-bg-tint); border-radius: 10px; pointer-events: none; }
.cert-preview .cert-title { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.cert-preview .cert-h { font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1.2; max-width: 80%; }
.cert-preview .cert-line { height: 8px; width: 60%; background: var(--color-border); border-radius: 4px; }
.cert-preview .cert-line.short { width: 40%; }
.cert-preview .cert-bottom { display:flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.cert-preview .seal { width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid var(--color-accent); color: var(--color-accent); display:flex; align-items:center; justify-content: center; font-size: 9px; font-weight: 800; text-align: center; line-height: 1.1; padding: 4px; }
.cert-pair { display: flex; gap: 16px; flex-wrap: wrap; }
.cert-pair > * { flex: 1 1 280px; min-width: 0; }
.cert-image-wrap { border-radius: 16px; overflow: hidden; border: 2px solid var(--color-border); margin-bottom: 8px; }
.cert-image { display: block; width: 100%; height: auto; }

/* Svedeniya */
.svedeniya-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
@media (max-width: 1024px) { .svedeniya-layout { grid-template-columns: 1fr; } }
.side-nav { position: sticky; top: 88px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 12px; }
.side-nav a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--color-text-secondary); transition: all 0.2s; cursor: pointer; }
.side-nav a:hover { background: var(--color-bg-tint); color: var(--color-primary); }
.side-nav a.active { background: var(--color-primary); color: #fff; font-weight: 600; }
.sved-section { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 32px; margin-bottom: 24px; }
.sved-section h2 { font-size: 26px; margin-bottom: 18px; }
.sved-section h2 .anchor { display: inline-block; width: 6px; height: 28px; background: var(--color-primary); border-radius: 3px; vertical-align: middle; margin-right: 12px; transform: translateY(-3px); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }
.info-grid .row { font-size: 14px; }
.info-grid .row .lbl { color: var(--color-text-muted); margin-bottom: 4px; }
.info-grid .row .val { color: var(--color-text); font-weight: 500; }

.file-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--color-bg-secondary); border-radius: 10px; margin-bottom: 10px; transition: all 0.2s; cursor: pointer; }
.file-row:hover { background: var(--color-bg-tint); transform: translateX(2px); }
.file-row .file-ic { width: 40px; height: 48px; border-radius: 4px; background: linear-gradient(135deg, var(--color-accent), #C71530); color:#fff; display:flex; align-items:center; justify-content:center; font-family: var(--font-heading); font-size: 9px; font-weight: 800; flex-shrink: 0; position: relative; }
.file-row .file-ic::after { content: ''; position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: #fff; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.file-row .file-name { flex: 1; font-size: 15px; font-weight: 500; color: var(--color-text); }
.file-row .file-meta { font-size: 12px; color: var(--color-text-muted); }
.file-row .file-dl { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--color-primary); display:flex; align-items:center; justify-content:center; transition: all 0.2s; flex-shrink: 0; }
.file-row:hover .file-dl { background: var(--color-primary); color: #fff; }
.doc-card-expanded { border: 1px solid var(--color-border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.doc-card-header { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--color-bg-secondary); }
.doc-card-header .file-ic { width: 40px; height: 48px; border-radius: 4px; background: linear-gradient(135deg, var(--color-accent), #C71530); color:#fff; display:flex; align-items:center; justify-content:center; font-family: var(--font-heading); font-size: 9px; font-weight: 800; flex-shrink: 0; position: relative; }
.doc-card-header .file-ic::after { content: ''; position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: #fff; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.doc-card-header .file-dl { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--color-primary); display:flex; align-items:center; justify-content:center; transition: all 0.2s; flex-shrink: 0; text-decoration: none; }
.doc-card-header .file-dl:hover { background: var(--color-primary); color: #fff; }
.doc-embed-wrap { border-top: 1px solid var(--color-border); }
.doc-embed { width: 100%; height: 520px; border: none; display: block; }

/* Conditions */
.cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .cond-grid { grid-template-columns: 1fr; } }
.cond-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 32px; transition: all 0.2s; }
.cond-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.cond-card .ic-circle { width: 56px; height: 56px; border-radius: 14px; background: var(--color-bg-tint); color: var(--color-primary); display:flex; align-items:center; justify-content:center; margin-bottom: 18px; }
.cond-card h3 { margin-bottom: 12px; }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
@media (max-width: 1024px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); transition: all 0.2s; }
.contact-row:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.contact-row .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg-tint); color: var(--color-primary); display:flex; align-items:center; justify-content:center; flex-shrink: 0; }
.contact-row .lbl { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.contact-row .val { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-text); margin-top: 2px; }
.contact-row .val small { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--color-text-secondary); display: block; margin-top: 4px; }
.map-frame { background: var(--color-bg-secondary); border-radius: var(--radius-card); height: 480px; position: relative; overflow: hidden; border: 1px solid var(--color-border); }
.map-2gis-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-frame .map-bg { position: absolute; inset: 0; background-image:
  linear-gradient(rgba(84,136,242,0.06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(84,136,242,0.06) 1px, transparent 1px),
  linear-gradient(rgba(84,136,242,0.10) 1px, transparent 1px),
  linear-gradient(90deg, rgba(84,136,242,0.10) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  background-color: #F0F4FB;
}
.map-roads { position: absolute; inset: 0; }
.map-roads svg { width:100%; height: 100%; }
.map-pin { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -100%); }
.map-pin .pin-shape { width: 44px; height: 56px; position: relative; }
.map-pin .pin-shape::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 8px 24px rgba(237,28,57,0.45); }
.map-pin .pin-shape::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-style: solid; border-width: 14px 8px 0 8px; border-color: var(--color-accent) transparent transparent transparent; }
.map-pin .pin-dot { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.map-pin .pin-pulse { position: absolute; top: 0; left: 50%; transform: translate(-50%, 0); width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent); opacity: 0.4; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: translate(-50%, 0) scale(1); opacity: 0.4; } 100% { transform: translate(-50%, 0) scale(2.5); opacity: 0; } }
.map-label { position: absolute; top: 55%; left: 50%; transform: translateX(-50%); background: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.10); font-family: var(--font-heading); font-weight: 600; font-size: 13px; white-space: nowrap; }

/* Loading state */
.loading-courses { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 0; gap: 16px; color: var(--color-text-muted); }
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.anim { animation: fadeUp 0.5s ease both; }

/* Misc */
.hr-soft { height: 1px; background: var(--color-border); margin: 48px 0; border: none; }

/* List-mode courses block */
.courses-list-section { margin-top: 48px; background: var(--color-bg-secondary); border-radius: var(--radius-card); padding: 32px 40px; }
.courses-list-section h3 { font-size: 18px; color: var(--color-text); margin-bottom: 20px; }
.courses-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.courses-list-item { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); cursor: pointer; transition: color 0.15s; }
.courses-list-item:last-child { border-bottom: none; }
.courses-list-item:hover { color: var(--color-primary); }
.courses-list-item-num { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); min-width: 64px; }
.courses-list-item-title { font-size: 15px; line-height: 1.5; }
.courses-list-action { margin-top: 24px; }
@media (max-width: 768px) { .courses-list-section { padding: 24px 20px; } }
.tag { display: inline-block; background: var(--color-bg-tint); color: var(--color-primary); font-family: var(--font-heading); font-weight: 600; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
