/* ИТ Модел — стили сайта */

:root {
    --bg: #FBF8FF;
    --tint: #F3ECFC;
    --card: #FFFFFF;
    --ink: #1C1228;
    --muted: #6E6480;
    --line: #E9E0F4;
    --accent: #9B1DF0;
    --accent-dark: #7A12C4;
    --accent-soft: #EBDCFF;
    --pink: #E85BB8;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 18px 50px -24px rgba(76, 22, 128, .35);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 28px; border-radius: 999px;
    font-weight: 700; font-size: 15px; letter-spacing: .01em;
    transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s;
    white-space: nowrap; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -12px rgba(155, 29, 240, .7); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; white-space: normal; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(232, 91, 184, .18); }

/* ---------- шапка ---------- */
.header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(251, 248, 255, .82); backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--accent-dark); flex-shrink: 0; }
.logo img { width: 44px; height: 44px; }
.nav { display: flex; gap: 26px; margin-inline: auto; }
.nav a { font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .2s; position: relative; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-phone { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; font-size: 15px; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
.hero::before {
    content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(circle, rgba(196, 140, 255, .35), rgba(232, 91, 184, .12) 45%, transparent 70%);
    z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; min-height: min(720px, calc(100vh - var(--header-h) - 90px)); }
.hero h1 { font-size: clamp(42px, 6vw, 80px); margin-bottom: 24px; }
.hero h1 em { display: block; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.stats { display: flex; gap: 40px; margin: 0; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13.5px; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--ink); }

.hero-media { position: relative; height: min(640px, 72vh); min-height: 460px; }
.hero-media .ph {
    position: absolute; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius);
    box-shadow: var(--shadow); background: var(--tint);
    opacity: 0; transform: translateY(24px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero-media .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-media .ph-1 { left: 18%; top: 0; width: 56%; height: 86%; z-index: 2; }
.hero-media .ph-2 { left: 0; bottom: 0; width: 34%; height: 46%; border-radius: var(--radius); animation-delay: .15s; z-index: 3; border: 6px solid var(--bg); }
.hero-media .ph-3 { right: 0; top: 14%; width: 30%; height: 44%; border-radius: var(--radius); animation-delay: .3s; z-index: 1; }
.hero-badge {
    position: absolute; right: 4%; bottom: 6%; z-index: 4; background: var(--card); border-radius: 18px; padding: 14px 18px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600;
    opacity: 0; animation: rise .8s .5s forwards;
}
.hero-badge img { width: 40px; height: 40px; }
.hero-badge small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
@keyframes rise { to { opacity: 1; transform: none; } }

.ticker { margin-top: 56px; border-block: 1px solid var(--line); overflow: hidden; background: var(--card); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { padding: 18px 28px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.ticker span::after { content: '✦'; font-style: normal; font-size: 12px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.section { padding: 110px 0; }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(34px, 4.4vw, 56px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.section-note { color: var(--muted); max-width: 440px; font-size: 16.5px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.split h2 { margin-bottom: 20px; }

/* ---------- фильтры ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 30px; }
.chips { display: flex; gap: 6px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.chip { padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; }
.select { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 18px; height: 48px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: 14.5px; }
.select span { color: var(--muted); }
.select select { border: 0; background: transparent; font-weight: 600; padding: 8px 6px; cursor: pointer; outline: none; }
.found { margin-left: auto; color: var(--muted); font-size: 14.5px; }

/* ---------- карточки моделей ---------- */
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.model-card { text-align: left; display: block; width: 100%; }
.model-card .pic { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.model-card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.model-card:hover .pic img { transform: scale(1.05); }
.model-card .badge {
    position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px;
    background: rgba(255,255,255,.9); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 700;
}
.model-card .open {
    position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px; border-radius: 999px; text-align: center;
    background: rgba(28, 18, 40, .78); color: #fff; font-size: 14px; font-weight: 700; backdrop-filter: blur(6px);
    opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.model-card:hover .open, .model-card:focus-visible .open { opacity: 1; transform: none; }
.model-card h3 { font-family: var(--serif); font-size: 22px; margin: 16px 0 4px; }
.model-card .meta { color: var(--muted); font-size: 14.5px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* ---------- формы ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form { padding: 34px; display: grid; gap: 16px; }
.form-title { font-family: var(--serif); font-size: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: 1.3fr 1fr 1fr; }
.field { display: grid; gap: 7px; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
    background: #FDFBFF; outline: none; transition: border-color .2s, box-shadow .2s; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #E5484D; }
.checks { display: grid; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check.invalid { color: #E5484D; }
.check a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-dark); }
.legal { padding: 28px 0 72px; }
.legal-card { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 44px 48px; }
.legal-card h1 { font-family: var(--serif); font-size: 40px; line-height: 1.15; margin: 10px 0 8px; }
.legal-card h2 { font-size: 22px; margin: 28px 0 8px; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.legal-card .edition { font-size: 14px; }
.legal .back { color: var(--accent-dark); font-weight: 700; }
.form-hint { font-size: 13px; color: var(--muted); text-align: center; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; counter-increment: s; }
.steps li::before {
    content: counter(s); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; background: var(--card); border: 1px solid var(--line);
    font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--accent);
}
.steps b { font-size: 17px; padding-top: 2px; }
.steps span { color: var(--muted); }

/* ---------- школа ---------- */
.school-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.school-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 34px; transition: transform .3s, box-shadow .3s; }
.school-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.school-card .num { font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--accent); line-height: 1; }
.school-card h3 { font-size: 19px; margin: 26px 0 10px; }
.school-card p { color: var(--muted); font-size: 15px; }
.cta-band {
    margin-top: 28px; padding: 44px 48px; border-radius: var(--radius); color: #fff;
    background: linear-gradient(120deg, #7A12C4, #9B1DF0 50%, #D24FB4);
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.cta-band::after { content: ''; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); }
.cta-band h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta-band p { opacity: .85; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- мероприятия, уроки ---------- */
.events-grid, .videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.event-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.event-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.event-card div { padding: 22px 24px 26px; }
.event-card time { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.event-card h3 { font-size: 20px; margin: 8px 0; }
.event-card p { color: var(--muted); font-size: 15px; white-space: pre-line; }
.video-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-card .frame { aspect-ratio: 16 / 9; background: #000; }
.video-card iframe, .video-card video { width: 100%; height: 100%; border: 0; display: block; }
.video-card h3 { padding: 18px 22px; font-size: 18px; }

/* ---------- кастинг ---------- */
.photo-tips { margin-top: 32px; padding: 28px 30px; border-radius: var(--radius); background: var(--tint); }
.photo-tips h3 { font-size: 18px; margin-bottom: 14px; }
.photo-tips ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.photo-tips li { padding-left: 30px; position: relative; }
.photo-tips li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 3px; }
.photo-tips p { color: var(--muted); font-size: 14.5px; }

.form .form-title + .form-row, .form .form-title { margin-top: 4px; }
.form .form-title:not(:first-child) { margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.muted { color: var(--muted); font-weight: 500; }
.field span small { float: right; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.uploader { border: 1.5px dashed #D5C3EC; border-radius: var(--radius-sm); padding: 12px; background: #FDFBFF; transition: border-color .2s, background .2s; }
.uploader.drag { border-color: var(--accent); background: var(--accent-soft); }
.field.invalid .uploader { border-color: #E5484D; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.up-grid:not(:empty) { margin-bottom: 12px; }
.up-item { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--tint); cursor: pointer; }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .up-del { position: absolute; right: 5px; top: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(28,18,40,.75); color: #fff; font-size: 16px; line-height: 1; }
.up-item .up-cover { position: absolute; left: 5px; bottom: 5px; right: 5px; padding: 3px 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }
.up-item.loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.1s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.up-add { width: 100%; padding: 18px 12px; border-radius: 10px; display: grid; gap: 4px; text-align: center; color: var(--accent-dark); }
.up-add:hover { background: var(--accent-soft); }
.up-add small { color: var(--muted); font-size: 13px; }
.progress { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--pink)); transition: width .2s; }
.form-done { padding: 48px 34px; text-align: center; display: grid; gap: 14px; justify-items: center; align-self: start; }
.form-done h3 { font-family: var(--serif); font-size: 30px; }
.form-done p { color: var(--muted); max-width: 420px; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 36px; display: grid; place-items: center; }

/* ---------- контакты ---------- */
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list a, .contact-list b { font-weight: 700; font-size: 17px; text-align: right; }
.contact-list a:hover { color: var(--accent); }

.footer { padding: 36px 0 40px; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.logo-footer { font-size: 19px; }
.logo-footer img { width: 36px; height: 36px; }

.mobile-bar { display: none; }

/* ---------- анкета модели (модальное окно) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(20, 10, 32, .62); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .25s; }
.modal.open { opacity: 1; }
.modal-box { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 48px); background: var(--bg); border-radius: 28px; overflow: auto; transform: translateY(16px) scale(.98); transition: transform .3s; }
.modal.open .modal-box { transform: none; }
.modal-close { position: absolute; right: 16px; top: 16px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 28px; line-height: 1; }
.modal-close:hover { color: var(--accent); }
.modal-close:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.profile { display: grid; grid-template-columns: 1.25fr 1fr; }
.viewer { padding: 20px; min-width: 0; }
.viewer-main { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 190px); width: 100%; border-radius: 20px; overflow: hidden; background: #EDE6F5; }
.viewer-main img { width: 100%; height: 100%; object-fit: contain; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 30px; line-height: 1; box-shadow: var(--shadow); }
.viewer-nav:hover { color: var(--accent); }
.viewer-nav.prev { left: 14px; }
.viewer-nav.next { right: 14px; }
.viewer-count { position: absolute; left: 14px; bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(28,18,40,.72); color: #fff; font-size: 13px; font-weight: 600; }
.viewer-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; }
.viewer-thumbs button { flex: 0 0 64px; height: 84px; border-radius: 10px; overflow: hidden; opacity: .55; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s; }
.viewer-thumbs button.active { opacity: 1; outline-color: var(--accent); }
.viewer-thumbs button:hover { opacity: 1; }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { padding: 56px 40px 36px 20px; display: flex; flex-direction: column; }
.profile-info h2 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 26px; }
.params { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 24px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.params div { background: var(--card); padding: 14px 18px; }
.params div:last-child:nth-child(odd) { grid-column: span 2; }
.params dt { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.params dd { margin: 2px 0 0; font-size: 19px; font-weight: 700; }
.profile-about { color: var(--muted); margin-bottom: 18px; white-space: pre-line; }
.profile-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.profile-skills span { padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 13.5px; font-weight: 600; }
.profile-video { margin-bottom: 20px; }
.profile-video .frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.profile-video iframe, .profile-video video { width: 100%; height: 100%; border: 0; display: block; }
.profile-actions { margin-top: auto; display: grid; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
    .nav { gap: 18px; }
    .header-phone { display: none; }
    .school-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
    :root { --header-h: 66px; }
    .burger { display: block; }
    .header-actions .btn { display: none; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; margin: 0;
        background: var(--bg); padding: 8px 20px 24px; border-bottom: 1px solid var(--line);
        transform: translateY(-110%); transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s .35s; z-index: -1;
        box-shadow: 0 30px 40px -30px rgba(0,0,0,.25); visibility: hidden;
    }
    .nav.open { transform: none; visibility: visible; transition-delay: 0s; }
    .nav a { padding: 15px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
    .nav a.active::after { display: none; }
    .nav-phone { display: block; color: var(--accent) !important; border: 0 !important; }
    .header-actions { margin-left: auto; }
    .hero { padding-top: 28px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; min-height: 0; }
    .hero-media { height: 480px; min-height: 0; order: -1; }
    .hero-buttons { margin-bottom: 36px; }
    .section { padding: 76px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .profile { grid-template-columns: 1fr; }
    .profile-info { padding: 8px 22px 28px; }
    .viewer { padding: 12px; }
    .viewer-main { max-height: 70vh; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; padding-bottom: 72px; }
    .container { width: calc(100% - 32px); }
    .logo span { font-size: 20px; }
    .hero h1 { font-size: 44px; }
    .hero-media { height: 400px; }
    .hero-badge { display: none; }
    .hero-buttons .btn { width: 100%; }
    .stats { gap: 26px; }
    .stats dd { font-size: 32px; }
    .ticker { margin-top: 40px; }
    .ticker span { font-size: 18px; padding: 14px 20px; gap: 40px; }
    .filters { gap: 10px; }
    .chips { width: 100%; }
    .chip { flex: 1; padding: 9px 8px; }
    .select { flex: 1; min-width: 0; padding-left: 14px; }
    .select select { min-width: 0; flex: 1; }
    .found { width: 100%; margin: 0; }
    .models-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .model-card h3 { font-size: 18px; margin-top: 12px; }
    .model-card .meta { font-size: 13px; }
    .model-card .open { display: none; }
    .school-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 32px 24px; }
    .cta-actions, .cta-actions .btn { width: 100%; }
    .form { padding: 24px 20px; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .events-grid, .videos-grid { grid-template-columns: 1fr; }
    .contact-list li { flex-direction: column; gap: 2px; }
    .contact-list a, .contact-list b { text-align: left; }
    .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .legal-card { padding: 24px 18px 32px; }
    .legal-card h1 { font-size: 32px; }
    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 248, 255, .94);
        backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    }
    .mobile-bar a { min-height: 48px; display: grid; place-items: center; border-radius: 999px; font-weight: 700; border: 1.5px solid var(--line); background: #fff; }
    .mobile-bar .mobile-bar-wa { background: var(--accent); border-color: var(--accent); color: #fff; }
    .modal { padding: 0; place-items: stretch; }
    .modal-box { max-height: 100vh; height: 100%; border-radius: 0; }
    .modal-close { position: fixed; right: 12px; top: 12px; }
    .viewer { padding: 0; }
    .viewer-main { border-radius: 0; max-height: 72vh; }
    .viewer-thumbs { padding: 10px 12px 4px; }
    .params dd { font-size: 17px; }
    .toast { bottom: 90px; width: max-content; max-width: calc(100% - 32px); text-align: center; }
}
