:root {
  --bg: #0a0a0a;
  --bg-soft: #111;
  --bg-card: #ffffff;
  --border: #d9dfea;
  --text: #1a2433;
  --text-dim: #5c6b82;
  --accent: #19e7ff;
  --accent-soft: rgba(25, 231, 255, 0.1);
  --green: #00a878;
  --red: #d93025;
  --orange: #d4a017;
  --radius: 12px;
  --maxw: 1160px;
  --shadow: 0 10px 30px rgba(26, 36, 51, 0.1);
}

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

html { scroll-behavior: smooth; }

@font-face {
  font-family: 'Magistral';
  src: url('../fonts/Magistral-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Magistral';
  src: url('../fonts/Magistral-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Magistral';
  src: url('../fonts/Magistral-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Magistral';
  src: url('../fonts/Magistral-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Magistral';
  src: url('../fonts/Magistral-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}


/* Фоновые изображения на весь сайт */
body {
  position: relative;
}




  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: 40%;
  opacity: 1;
  z-index: 5;
  filter: brightness(1);
  pointer-events: none;
}


body {
  background: #222;
}



body {
  font-family: "Magistral", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #000;
  
  
  
  
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(34, 34, 34, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #d9dfea;
}
.header-inner { display: flex; align-items: center; height: 72px; gap: 16px; }
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-img { height: 65px; width: auto; display: block; }
.logo span { color: var(--accent); }
.nav-toggle { display: none; }
.nav { display: flex; align-items: center; justify-content: center; gap: 22px; flex: 1 1 auto; min-width: 0; }
.header-phones { flex-shrink: 0; }
.nav a { color: #ccc; font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active { color: var(--accent); }
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-toggle::after { content: '\25BE'; font-size: 0.7em; margin-left: 4px; vertical-align: middle; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px; z-index: 60;
  background: var(--bg-soft); border: 1px solid #d9dfea; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6); padding: 6px; display: none; flex-direction: column;
}
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a { padding: 8px 12px; border-radius: 6px; font-size: 0.9rem; white-space: nowrap; color: #45536b; }
.dropdown-menu a:hover { background: var(--accent-soft); }
.nav-toggle {
  display: none; background: none; border: 1px solid #c9d1df; border-radius: 8px;
  color: #fff; width: 42px; height: 42px; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.nav-user { color: #ccc; font-size: 0.85rem; }
.header-phones { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; padding-left: 16px; }
.header-phones a { color: #ddd; font-size: 0.92rem; line-height: 1.35; white-space: nowrap; }
.header-phones a:hover { color: var(--accent); text-decoration: none; }
.header-phones b { font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 24px; border-radius: 5px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s; text-align: center;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 6px 20px rgba(25, 231, 255, 0.35); }
.btn-primary:hover { background: #5cedff; }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { background: #fff; border-color: var(--accent); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #ff6a63; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #46c85a; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 50px 0 56px; text-align: center;
  background: radial-gradient(700px 320px at 50% -10%, var(--accent-soft), transparent 70%);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; max-width: 780px; margin: 0 auto 18px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), #b18cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-dim); font-size: 1.12rem; max-width: 640px; margin: 0 auto 32px; }
.hero-img { margin-top: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #d9dfea; box-shadow: var(--shadow); }

/* ---------- Slider ---------- */
.slider { position: relative; width: 100%; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.6s ease; }
.slider-slide { flex: 0 0 100%; min-width: 100%; position: relative; }
.slider-slide img { width: 100%; display: block; aspect-ratio: 21/9; object-fit: cover; cursor: zoom-in; }
.slider-slide .slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; font-weight: 700; font-size: 1.35rem; text-align: left; text-shadow: 2px 2px 8px rgba(0,0,0,0.85); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); background: rgba(0,0,0,0.35); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: rgba(0,0,0,0.6); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; }
.slider-dots button.active { background: #fff; }
@media (max-width: 720px) { .slider-slide .slide-caption { font-size: 1rem; padding: 24px 14px 12px; } }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding: 48px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; color: #fff; }
.section-title-center { text-align: center; }
.section-sub { color: var(--text-dim); margin-bottom: 28px; max-width: 660px; }
.section-center .section-title { text-align: center; }
.section-center .grid { margin: 0 auto; }
.section-center .grid-3 { max-width: var(--maxw); }
.section-center .grid-4 { max-width: var(--maxw); }
.section-center > .container { text-align: center; }
.section-center .grid { text-align: left; }
.page-hero { padding: 56px 0 24px; color: #fff; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.page-hero p { color: var(--text-dim); max-width: 680px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; z-index: 1; background: #222; border: 1px solid #333; border-radius: var(--radius);
  padding: 24px; transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(25, 231, 255, 0.15); color: #19e7ff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; color: #fff; }
.card, .card p, .card .author, .card .date, .card .card-icon, .card h3, .card .badge, .card div, .card span, .card a, .card small, .card * { color: #fff !important; }

.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin: 24px 0 10px; color: #fff; }
.prose h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.prose p, .prose li { color: #ccc; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose b, .prose strong { color: #fff; }
.prose .cms-block { white-space: pre-wrap; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid #444; border-radius: var(--radius); background: #222; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th { text-align: left; padding: 12px 14px; border-bottom: 1px solid #444; color: #aaa; font-weight: 600; white-space: nowrap; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
table.data td { padding: 11px 14px; border-bottom: 1px solid #444; vertical-align: middle; color: #ccc; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(124, 140, 255, 0.04); }
table.data .actions { white-space: nowrap; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-blue { background: rgba(25, 231, 255, 0.15); color: #19e7ff; }
.badge-green { background: rgba(63, 185, 80, 0.15); color: var(--green); }
.badge-red { background: rgba(248, 81, 73, 0.15); color: var(--red); }
.badge-orange { background: rgba(210, 153, 34, 0.15); color: var(--orange); }

/* ---------- Forms ---------- */
.form-card {
  background: #222; border: 1px solid #333; border-radius: var(--radius);
  padding: 28px; max-width: 520px; margin: 0 auto;
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-size: 0.88rem; font-weight: 600; display: block; margin-bottom: 6px; color: #fff; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg); border: 1px solid #d9dfea; border-radius: 10px;
  padding: 11px 14px; color: var(--text); font: inherit; font-size: 0.95rem; transition: border-color 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 110px; }
.form-hint { color: #aaa; font-size: 0.83rem; }
.form-msg { display: none; font-size: 0.93rem; text-align: center; padding: 10px; border-radius: 10px; }
.form-msg.ok { display: block; background: rgba(63, 185, 80, 0.12); color: var(--green); }
.form-msg.err { display: block; background: rgba(248, 81, 73, 0.12); color: var(--red); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 0.92rem; margin-bottom: 14px; border: 1px solid #d9dfea; }
.alert-error { background: rgba(248, 81, 73, 0.12); color: var(--red); border-color: rgba(248, 81, 73, 0.3); }
.alert-success { background: rgba(63, 185, 80, 0.12); color: var(--green); border-color: rgba(63, 185, 80, 0.3); }
.alert-info { background: var(--accent-soft); color: var(--accent); border-color: rgba(124, 140, 255, 0.3); }

/* ---------- Dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #222; border: 1px solid #333; border-radius: var(--radius); padding: 16px 18px; }
.stat .num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat .lbl { color: var(--text-dim); font-size: 0.82rem; margin-top: 2px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { padding: 8px 18px; border-radius: 5px; border: 1px solid #d9dfea; background: transparent; color: var(--text-dim); cursor: pointer; font: inherit; font-size: 0.9rem; }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.schedule-card { margin-bottom: 14px; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid #d9dfea; border-radius: 10px; background: #fff; margin-bottom: 10px; flex-wrap: wrap; }
.lesson-row .when { min-width: 130px; font-weight: 700; }
.lesson-row .who { flex: 1; min-width: 160px; }
.lesson-row .who small { display: block; color: var(--text-dim); }
.slot-btn { flex: 0 0 auto; }
.branch-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.controls input, .controls select { background: #fff; border: 1px solid #d9dfea; color: var(--text); border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 0.9rem; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; }

.section-hr { border: none; border-top: 1px solid var(--border); max-width: var(--maxw); margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid #333; margin-top: 40px; padding: 30px 0 20px; color: #bbb; font-size: 0.9rem; background-color: #222222; }
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.footer-col p, .footer-col li { color: #bbb; font-size: 0.9rem; margin-bottom: 6px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { color: #ccc; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: center; border-top: 1px solid #333; padding-top: 16px; }
.footer-meta-item { display: flex; align-items: center; }
.footer-meta-item:first-child { justify-content: flex-start; }
.footer-meta-item:nth-child(2) { justify-content: center; }
.footer-meta-item:last-child { justify-content: flex-end; }
.social-links { display: flex; gap: 14px; }
.social-links a { color: #ccc; }
.social-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- WYSIWYG editor ---------- */
.editor-toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px 8px; border: 1px solid #d9dfea; border-bottom: none; border-radius: 8px 8px 0 0; background: var(--bg-soft); }
.editor-toolbar button { background: none; border: 1px solid #d9dfea; border-radius: 4px; color: var(--text); min-width: 30px; height: 30px; padding: 0 6px; cursor: pointer; font-size: 0.85rem; font-family: inherit; }
.editor-toolbar button:hover { background: var(--accent-soft); border-color: var(--accent); }
.editor-toolbar button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.editor-body { border: 1px solid #d9dfea; border-radius: 0 0 8px 8px; background: var(--bg); color: var(--text); min-height: 140px; padding: 12px 14px; font-size: 0.95rem; line-height: 1.6; overflow-y: auto; }
.editor-body:focus { outline: none; border-color: var(--accent); }
.editor-body h1, .editor-body h2, .editor-body h3 { margin: 10px 0 6px; }
.editor-body p { margin: 0 0 8px; }
.editor-body ul, .editor-body ol { padding-left: 22px; margin: 0 0 8px; }
.editor-body a { color: var(--accent); }
.editor-body img { max-width: 100%; }
.editor-mode-toggle { display: inline-block; margin-top: 6px; font-size: 0.82rem; color: var(--accent); cursor: pointer; border: none; background: none; padding: 0; }
.editor-mode-toggle:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
img.lightbox { cursor: zoom-in; transition: filter 0.2s; }
img.lightbox:hover { filter: brightness(0.92); }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--bg-soft); border-top: 1px solid var(--border);
  padding: 16px 24px; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}
.cookie-banner-inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-banner-inner p { color: var(--text-dim); font-size: 0.9rem; flex: 1; min-width: 260px; }
.cookie-banner-inner .btn-row { flex-shrink: 0; }

/* ---------- Content editor layout ---------- */
.content-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.content-pages { display: flex; flex-direction: column; gap: 6px; background: #222; border: 1px solid #333; border-radius: var(--radius); padding: 10px; position: sticky; top: 88px; }
.content-page-btn { text-align: left; padding: 10px 14px; border: none; border-radius: 8px; background: transparent; color: var(--text-dim); font: inherit; font-size: 0.92rem; cursor: pointer; }
.content-page-btn:hover { background: var(--accent-soft); color: var(--text); }
.content-page-btn.active { background: var(--accent); color: #fff; }
.content-editor-area { min-width: 0; }
.tox-tinymce { border-radius: 8px !important; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } .content-pages { position: static; flex-direction: row; flex-wrap: wrap; } .content-page-btn { flex: 1 1 auto; min-width: 130px; } }

/* ---------- Messenger FAB ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 5px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); border: none; cursor: pointer;
}
.fab:hover { transform: translateY(-2px); background: #1fbd5a; text-decoration: none; color: #fff; }

/* ---------- 2GIS ---------- */
.map-frame { border: 1px solid #d9dfea; border-radius: var(--radius); overflow: hidden; background: #fff; }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .header-inner { display: flex; justify-content: space-between; }
  .header-phones { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: transparent; border-bottom: 1px solid #d9dfea; padding: 0 24px;
    transform: translateY(-130%); transition: transform 0.25s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid #e3e8f0; width: 100%; }
  .nav a:last-child { border-bottom: none; }
  .dropdown { width: 100%; }
  .dropdown-toggle { width: 100%; display: block; padding: 14px 0; border-bottom: 1px solid #e3e8f0; }
  .dropdown.open .dropdown-toggle { border-bottom: none; }
  .dropdown-menu { position: static; width: 100%; min-width: 0; box-shadow: none; border: none; padding: 0 0 6px 12px; }
  .dropdown-menu a { padding: 12px 0; border-bottom: 1px solid #e3e8f0; border-radius: 0; }
  .dropdown-menu a:last-child { border-bottom: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .fab { right: 14px; bottom: 14px; padding: 11px 16px; font-size: 0.88rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 18px; }
  .footer-meta { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .footer-meta-item { justify-content: center !important; }
}


@font-face {
  font-family: 'Magistral';
  src: url(/fonts/Magistral-Light.ttf);
}
@font-face {
  font-family: 'Magistral';
  src: url(/fonts/Magistral-Medium.ttf);
}

.intro_section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: transparent;
  padding-top: 10px;
}


.intro_bg_0_l,
.intro_bg_0_r {
  display: block;
  position: absolute;
  height: 100%;
  width: auto;
  opacity: 0.8;
  z-index: 5;
  filter: brightness(1.3);
  pointer-events: none;
}
.intro_bg_0_r {
  right: 0;
}
.intro_bg_1 {
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.06;
  z-index: 3;
  pointer-events: none;
}

.intro_cent {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  margin: 0 0 10px;
}
.intro_line_1 {
  position: absolute;
  top: 20%;
  height: 1px;
  width: 102%;
  background: #007ea7;
  box-shadow: 0 0 5px 1px #007ea7;
  transform: translate3d(-102%,0,0);
  animation: intro_bg_line 7s cubic-bezier(0.76, 0, 0.24, 1) 2.5s infinite;
  z-index: 0;
}
.intro_line_2 {
  position: absolute;
  top: 36%;
  height: 10px;
  width: 102%;
  border-radius: 50px;
  background: #19e7ff;
  box-shadow: 0 0 10px 5px #19e7ff;
  transform: translate3d(-102%,0,0);
  animation: intro_bg_line 7s cubic-bezier(0.76, 0, 0.24, 1) 3s infinite;
  z-index: 0;
}
.intro_line_3 {
  position: absolute;
  top: 100%;
  height: 2px;
  width: 102%;
  background: #00a878;
  box-shadow: 0 0 7px 3px #00a878;
  transform: translate3d(-102%,0,0);
  animation: intro_bg_line 7s cubic-bezier(0.76, 0, 0.24, 1) 2s infinite;
  z-index: 0;
}
@keyframes intro_bg_line {
  15% { transform: translate3d(-1%,0,0); }
  50% { transform: translate3d(-1%,0,0); }
  65% { transform: translate3d(102%,0,0); }
  100% { transform: translate3d(102%,0,0); }
}
.intro_car {
  position: relative;
  width: 80%;
  max-width: 650px;
  min-height: 185px;
  z-index: 4;
}
.intro_car img:first-child {
  display: block;
  position: absolute;
  height: auto;
  width: 100%;
  z-index: 1;
  animation: intro_car_glow 14s cubic-bezier(0.65, 0, 0.35, 1) 2s infinite;
  filter: drop-shadow(0 0 0 transparent);
}
@keyframes intro_car_glow {
  0% { opacity: 0; filter: drop-shadow(0 0 0 transparent); }
  10% { opacity: 1; filter: drop-shadow(0 0 5px rgba(25, 231, 255, 0.3)); }
  20% { opacity: 1; filter: drop-shadow(0 0 20px rgba(25, 231, 255, 0.4)); }
  25% { transform: translate3d(-10%,0,0); }
  40% { opacity: 1; filter: drop-shadow(0 0 20px rgba(25, 231, 255, 0.4)); }
  50% { transform: translate3d(0,0,0); }
  65% { opacity: 1; filter: drop-shadow(0 0 20px rgba(25, 231, 255, 0.4)); }
  75% { transform: translate3d(10%,0,0); }
  85% { opacity: 1; filter: drop-shadow(0 0 20px rgba(25, 231, 255, 0.4)); }
  100% { transform: translate3d(0,0,0); opacity: 1; filter: drop-shadow(0 0 20px rgba(25, 231, 255, 0.4)); }
}
.intro_car img:last-child {
  display: block;
  position: relative;
  height: auto;
  width: 100%;
  opacity: 0;
  z-index: 4;
  animation: intro_car_1 7s linear 2s infinite, intro_car_glow 14s cubic-bezier(0.65, 0, 0.35, 1) 2s infinite;
}
@keyframes intro_car_1 {
  6% { opacity: 0; }
  10% { opacity: 0.2; }
  18% { opacity: 0.4; }
  22% { opacity: 1; }
  56% { opacity: 1; }
  60% { opacity: 0.8; }
  68% { opacity: 0.6; }
  72% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes intro_car_move {
  25% { transform: translate3d(-10%,0,0); }
  50% { transform: translate3d(0,0,0); }
  75% { transform: translate3d(10%,0,0); }
  100% { transform: translate3d(0,0,0); }
}
.intro_text {
  position: relative;
  height: 90px;
  min-width: 400px;
  font-family: 'Magistral', sans-serif;
  font-size: 48px;
  color: #fff;
}
.intro_text::before {
  display: block;
  position: absolute;
  top: -10px;
  left: 0;
  opacity: 0;
  transform: translate3d(-15%,0,0);
  content: 'СОВРЕМЕННЫЙ';
  animation: intro_text_bef 21s cubic-bezier(0.76, 0, 0.24, 1) 0.7s infinite;
}
@keyframes intro_text_bef {
  5% { opacity: 1; transform: translate3d(0,0,0); }
  17% { opacity: 1; transform: translate3d(0,0,0); }
  22% { opacity: 0; transform: translate3d(15%,0,0); content: 'СОВРЕМЕННЫЙ'; }
  34% { opacity: 0; transform: translate3d(-15%,0,0); content: 'ОПЫТНЫЕ'; }
  39% { opacity: 1; transform: translate3d(0,0,0); }
  50% { opacity: 1; transform: translate3d(0,0,0); }
  55% { opacity: 0; transform: translate3d(15%,0,0); content: 'ОПЫТНЫЕ'; }
  67% { opacity: 0; transform: translate3d(-15%,0,0); content: 'ВЫСОКИЙ %'; }
  72% { opacity: 1; transform: translate3d(0,0,0); }
  84% { opacity: 1; transform: translate3d(0,0,0); }
  89% { opacity: 0; transform: translate3d(15%,0,0); content: 'ВЫСОКИЙ %'; }
  100% { opacity: 0; transform: translate3d(-15%,0,0); content: 'СОВРЕМЕННЫЙ'; }
}
.intro_text::after {
  display: block;
  position: absolute;
  bottom: -10px;
  left: 3px;
  opacity: 0;
  transform: translate3d(-15%,0,0);
  content: 'АВТОПАРК';
  animation: intro_text_aft 21s cubic-bezier(0.76, 0, 0.24, 1) 1.2s infinite;
}
@keyframes intro_text_aft {
  5% { opacity: 1; transform: translate3d(0,0,0); }
  17% { opacity: 1; transform: translate3d(0,0,0); }
  22% { left: 3px; opacity: 0; transform: translate3d(15%,0,0); content: 'АВТОПАРК'; }
  34% { left: -4px; opacity: 0; transform: translate3d(-15%,0,0); content: 'ИНСТРУКТОРЫ'; }
  39% { opacity: 1; transform: translate3d(0,0,0); }
  50% { opacity: 1; transform: translate3d(0,0,0); }
  55% { left: -4px; opacity: 0; transform: translate3d(15%,0,0); content: 'ИНСТРУКТОРЫ'; }
  67% { left: 4px; opacity: 0; transform: translate3d(-15%,0,0); content: 'СДАЧИ'; }
  72% { opacity: 1; transform: translate3d(0,0,0); }
  84% { opacity: 1; transform: translate3d(0,0,0); }
  89% { left: 4px; opacity: 0; transform: translate3d(15%,0,0); content: 'СДАЧИ'; }
  100% { left: 3px; opacity: 0; transform: translate3d(-15%,0,0); content: 'АВТОПАРК'; }
}
@media (max-width: 768px) {
  .intro_car { max-width: 90%; }
  .intro_text { font-size: 32px; min-width: 280px; height: 60px; }
  .intro_text::before { top: -8px; }
  .intro_text::after { bottom: -8px; }
  .intro_line_2 { height: 5px; }
}
@media (max-width: 544px) {
  .intro_car { max-width: 100%; }
  .intro_text { font-size: 24px; min-width: 200px; height: 50px; }
}

















.bg-side {
  position: fixed;
  top: 0;
  height: 100vh;
  width: auto;
  max-width: 30%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  filter: brightness(1.4) drop-shadow(0 0 10px rgba(0,200,230,0.3));
}
.bg-side-left {
  left: 0;
}
.bg-side-right {
  right: 0;
}
