
/* Один текст — три темы. A «Стикеры» (UGLYCASH), B «Бенто» (Replit + Podia), C «Ночной неон». */
:root { color-scheme: light; --coral: #FF5A3C; }
.tA { --bg: #F3F0E8; --fg: #111; --muted: #4d4a45; --card: #fff; --line: #111; --a1: #FF5A3C; --a2: #FF5FD2; --a3: #19C3FF; --a4: #C8FF3D; --btnfg: #111; --display: 'Unbounded', sans-serif; --r: 28px; --bw: 2px; }
/* 18.10 — палитра «Песок и шалфей» (выбор Самары; до этого была «Золотая середина») */
.tB { --bg: #F4EFE7; --fg: #1E1B17; --muted: #665f55; --card: #ffffff; --line: transparent; --a1: #E2623F; --a2: #E9DAC9; --a3: #DCE3D5; --a4: #EEE2C3; --a5: #D9E1E3; --btnfg: #1A1420; --display: 'Rubik', sans-serif; --soft: #EFC8B4; --r: 40px; --bw: 0px; }
.tC { --bg: #121014; --fg: #F6F1EA; --muted: #b7b0a8; --card: #1E1B21; --line: #3a3540; --a1: #FF5A3C; --a2: #C8FF3D; --a3: #8C7BFF; --a4: #FF5FD2; --btnfg: #121014; --display: 'Unbounded', sans-serif; --r: 24px; --bw: 1px; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 'Golos Text', 'Helvetica Neue', Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.in { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sec { padding-top: 88px; display: grid; gap: 28px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
h2 { font-size: clamp(30px, 5vw, 58px); line-height: 1; letter-spacing: -1px; }
.tA h2, .tC h2 { text-transform: uppercase; font-weight: 800; letter-spacing: -1.5px; }
.tB h2 { font-weight: 800; letter-spacing: -2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 17px 'Golos Text', sans-serif; border-radius: 100px; padding: 16px 28px; text-decoration: none; cursor: pointer; border: var(--bw) solid var(--line); background: var(--card); color: var(--fg); white-space: nowrap; }
.btn.main { background: var(--a1); color: var(--btnfg); border-color: var(--line); }
.tC .btn { border-color: var(--fg); background: transparent; }
.tC .btn.main { background: var(--a2); border-color: var(--a2); }
:focus-visible { outline: 3px solid var(--a3); outline-offset: 3px; }
.ico { width: 22px; height: 22px; }

/* Переключатель */
.switch { position: sticky; top: 0; z-index: 50; background: #111; color: #fff; }
.switch .in { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-block: 10px; }
.switch button { font: 600 15px 'Golos Text', sans-serif; color: #fff; background: transparent; border: 1px solid #777; border-radius: 100px; padding: 7px 16px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #111; }
.switch span { color: #aaa; font-size: 14px; margin-left: auto; }
@media (max-width: 760px) { .switch span { display: none; } }

/* Шапка */
.hdr .in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.tA .hdr .in { margin-top: 14px; border: var(--bw) solid var(--line); border-radius: 100px; background: var(--card); padding: 0 8px 0 24px; min-height: 64px; }
.logo { font: 800 24px var(--display); letter-spacing: -.5px; white-space: nowrap; text-decoration: none; color: var(--fg); }
@media (max-width: 420px) { .logo { font-size: 20px; } }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.hdr .btn { padding: 10px 20px; font-size: 15px; }
@media (max-width: 900px) { .nav { display: none; } .hdr .wa { margin-left: auto; } }
@media (max-width: 480px) { .hdr .btn { display: none; } }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 56px; }
.hero h1 { font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -1.5px; margin-top: 16px; }
.tA .hero h1, .tC .hero h1 { text-transform: uppercase; font-weight: 800; font-size: clamp(34px, 5.2vw, 76px); letter-spacing: -2px; line-height: .98; }
.tA .hero, .tC .hero { grid-template-columns: 1fr 1fr; }
.tB .hero h1 { font-weight: 800; }
.hero h1 .hl { background: var(--a4); padding: 0 .12em; border-radius: 12px; }
.tC .hero h1 .hl { background: none; color: var(--a2); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 32em; margin-top: 22px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag { border: var(--bw) solid var(--line); border-radius: 100px; padding: 6px 14px; font-weight: 700; font-size: 14px; background: var(--card); }
.tB .tag { background: var(--a5); }
.tC .tag { border-color: var(--line); background: var(--card); }
.speak-link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--fg); }
.tC .speak-link { color: var(--a2); }
.hero-vis { position: relative; min-height: 460px; }
.photo { border-radius: var(--r); overflow: hidden; border: var(--bw) solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-vis .photo { position: absolute; inset: 0 0 70px 40px; }
.qcard { position: absolute; left: 0; bottom: 0; width: min(330px, 85%); background: var(--card); border: var(--bw) solid var(--line); border-radius: 22px; padding: 18px 20px; display: grid; gap: 10px; }
.tA .qcard { transform: rotate(-4deg); background: var(--a4); }
.tB .qcard { background: var(--a3); }
.tC .qcard { background: var(--card); border-color: var(--a2); }
.qcard b { font-family: var(--display); font-size: 18px; }
.qcard .o { border: var(--bw) solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--card); font-weight: 600; font-size: 15px; }
.tB .qcard .o { background: #fff; }
.qcard .o.ok { background: var(--a1); color: var(--btnfg); }
.sticker { position: absolute; right: -6px; top: 18px; background: var(--a2); border: var(--bw) solid var(--line); border-radius: 100px; padding: 10px 18px; font: 800 16px var(--display); transform: rotate(8deg); color: var(--btnfg); }
.tB .sticker { background: var(--a4); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-vis { min-height: 380px; } }

/* Бегущая строка */
.marquee { margin-top: 64px; overflow: hidden; white-space: nowrap; border-block: var(--bw) solid var(--line); background: var(--a1); color: var(--btnfg); font: 800 26px var(--display); text-transform: uppercase; padding-block: 12px; }
.tB .marquee { display: none; }
.tC .marquee { background: var(--a2); }
.marquee span { display: inline-block; padding-right: 40px; animation: run 26s linear infinite; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; } }

/* Карточки */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: var(--bw) solid var(--line); border-radius: var(--r); padding: 28px; background: var(--card); display: grid; gap: 10px; align-content: start; min-width: 0; }
.card h3 { font-size: 24px; line-height: 1.15; }
.tA .card h3, .tC .card h3 { font-weight: 800; }
.c1 { background: var(--a1); color: var(--btnfg); } .c2 { background: var(--a2); color: var(--btnfg); } .c3 { background: var(--a3); color: var(--btnfg); } .c4 { background: var(--a4); color: var(--btnfg); }
.tB .c5 { background: var(--a5); }
.tA .grid3 .card:nth-child(2) { transform: rotate(1.5deg); } .tA .grid3 .card:nth-child(3) { transform: rotate(-1.2deg); }
.tC .card { background: var(--card); }
.tC .card.c1 { background: var(--a1); color: #121014; } .tC .card.c2 { background: var(--a2); color: #121014; } .tC .card.c3 { background: var(--a3); color: #121014; } .tC .card.c4 { background: var(--a4); color: #121014; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } .tA .grid3 .card { transform: none !important; } }

/* Два теста */
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.test { border: var(--bw) solid var(--line); border-radius: var(--r); padding: 32px; display: grid; gap: 14px; align-content: start; }
.test ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.test .big { font: 800 clamp(30px, 4vw, 46px)/1 var(--display); letter-spacing: -1px; }
.test.on { background: var(--a1); color: var(--btnfg); } .test.sp { background: var(--a3); color: var(--btnfg); }
.tB .test.sp { background: var(--a5); }
.tC .test.on { background: var(--a2); color: #121014; } .tC .test.sp { background: var(--a3); color: #121014; }
.test .btn { justify-self: start; background: var(--card); color: var(--fg); }
.tC .test .btn { background: #121014; color: #F6F1EA; border-color: #121014; }
@media (max-width: 860px) { .tests { grid-template-columns: 1fr; } }

/* Как проходят уроки */
.feat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feat .card { grid-column: span 2; }
.feat .wide { grid-column: span 3; }
.feat .num { font: 800 64px/1 var(--display); letter-spacing: -2px; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr 1fr; } .feat .card, .feat .wide { grid-column: span 1; } }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { border: var(--bw) solid var(--line); border-radius: var(--r); padding: 24px; background: var(--card); display: grid; gap: 6px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); font: 800 48px/1 var(--display); color: var(--a1); }
.tC .step::before { color: var(--a2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Уровни */
.levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.lv { border: var(--bw) solid var(--line); border-radius: 20px 20px 8px 8px; padding: 16px; display: grid; align-content: end; gap: 2px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.lv span { font-weight: 400; font-size: 14px; opacity: .85; }
.lv:nth-child(1) { height: 130px; background: var(--a4); } .lv:nth-child(2) { height: 170px; background: var(--a3); } .lv:nth-child(3) { height: 210px; background: var(--a2); } .lv:nth-child(4) { height: 250px; background: var(--a1); } .lv:nth-child(5) { height: 290px; background: var(--fg); color: var(--bg); }
.tA .lv, .tB .lv, .tC .lv:not(:nth-child(5)) { color: #111; }
@media (max-width: 700px) { .levels { grid-template-columns: 1fr 1fr; } .lv { height: auto !important; min-height: 110px; } }

/* Доверие */
.trust { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.rate { border: var(--bw) solid var(--line); border-radius: var(--r); padding: 32px; background: var(--a4); color: #111; display: grid; gap: 6px; align-content: center; }
.tB .rate { background: var(--a4); } .tC .rate { background: var(--a2); }
.rate b { font: 800 96px/1 var(--display); letter-spacing: -3px; }
.revs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ph { border: var(--bw) dashed var(--line); border-radius: var(--r); display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 600; padding: 24px; min-height: 160px; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,90,60,.08) 14px 28px); }
.tB .ph { border: 2px dashed #e7c9bd; }
@media (max-width: 860px) { .trust, .revs { grid-template-columns: 1fr; } }

/* Вопросы */
.faq { display: grid; gap: 12px; }
.faq details { border: var(--bw) solid var(--line); border-radius: 20px; background: var(--card); padding: 18px 22px; }
.tB .faq details { border: 0; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; }
.faq p { margin-top: 8px; color: var(--muted); }

/* Форма */
.form { border: var(--bw) solid var(--line); border-radius: var(--r); padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: var(--a1); color: var(--btnfg); }
.tB .form { background: var(--a3); }
.tC .form { background: var(--card); color: var(--fg); border-color: var(--a2); }
.form h2 { text-transform: none; }
.fm { display: grid; gap: 12px; }
.fm label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.fm input, .fm select { font: 400 17px 'Golos Text', sans-serif; color: #111; background: #fff; border: var(--bw) solid var(--line); border-radius: 14px; padding: 13px 14px; width: 100%; min-width: 0; }
.tB .fm input, .tB .fm select { border: 0; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { flex-direction: row; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #111; border: var(--bw) solid var(--line); border-radius: 100px; padding: 9px 16px; cursor: pointer; }
.tB .choice label { border: 0; }
.form .btn.main { background: #111; color: #fff; border-color: #111; justify-self: start; }
.tC .form .btn.main { background: var(--a2); color: #121014; border-color: var(--a2); }
@media (max-width: 860px) { .form { grid-template-columns: 1fr; } }

footer { margin-top: 80px; border-top: var(--bw) solid var(--line); padding-block: 32px; font-size: 14px; color: var(--muted); }
.tB footer { border-top: 1px solid #eadfd6; }
footer .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.soc { display: inline-flex; gap: 6px; align-items: center; color: var(--fg); font-weight: 700; text-decoration: none; margin-right: 14px; }

/* Возрасты и фото-полоса */
.lead-s { font-size: 19px; color: var(--muted); max-width: 40em; }
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.age { border: var(--bw) solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 12px; align-content: start; color: #111; }
.age .who { font: 800 30px/1 var(--display); letter-spacing: -1px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { background: rgba(255,255,255,.75); border-radius: 100px; padding: 6px 14px; font-weight: 700; }
.age.kids { background: var(--a4); } .age.teens { background: var(--a1); } .age.adults { background: var(--a3); }
.tB .age.adults { background: var(--a5); }
.strip { height: 320px; }
@media (max-width: 860px) { .ages { grid-template-columns: 1fr; } .strip { height: 220px; } }

/* Фото в карточках и форме */
.age-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; margin-bottom: 4px; }
.form-img { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 80% 30%; border-radius: 28px; margin-top: 8px; }
@media (max-width: 860px) { .form-img { max-width: 100%; aspect-ratio: 16 / 10; } }

.tB .lv:nth-child(5) { color: #FFF6EE; }

/* Фото без обрезки: всегда в родных пропорциях (18.10 — Самара: «зачем обрезал»). */
.photo.nat { aspect-ratio: auto !important; height: auto; }
.photo.nat img { width: 100%; height: auto; object-fit: initial; }
.hero-vis { min-height: 0; display: grid; }
.hero-vis .photo.nat { position: static; inset: auto; margin-left: 40px; }
.hero-vis .qcard { position: relative; margin-top: -90px; z-index: 2; }
.hero-vis .sticker { z-index: 3; }
.pagehero .photo.nat { aspect-ratio: auto; }
.age-img, .form-img { aspect-ratio: auto !important; height: auto !important; object-fit: initial !important; }
.tests-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.tests-stack { display: grid; gap: 18px; }
.pair { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: stretch; }
.pair .card { align-content: center; }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .tests-photo, .pair { grid-template-columns: 1fr; } .four { grid-template-columns: 1fr 1fr; } .hero-vis .photo.nat { margin-left: 0; } .hero-vis .qcard { margin-top: -60px; } }
@media (max-width: 560px) { .four { grid-template-columns: 1fr; } }

/* Значок 2ГИС; карточка вопроса — на пустом розовом фоне слева, не на лице */
.sticker.gis { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #111; background: #fff; transform: rotate(5deg); padding: 8px 16px 8px 10px; }
.sticker.gis img { width: 28px; height: 28px; border-radius: 8px; }
.sticker.gis small { font: 700 12px 'Golos Text', sans-serif; opacity: .7; margin-left: 4px; }
.hero-vis .qcard { width: min(300px, 70%); }

/* Моушн на первом экране вместо фото: карточки вопросов сменяют друг друга, столбики уровней растут */
.hero-vis.motion { position: relative; background: var(--a3); border-radius: var(--r); padding: 36px 28px 28px; min-height: 460px; display: grid; gap: 22px; align-content: center; overflow: hidden; }
.mo-stage { position: relative; height: 250px; }
.mo-card { position: absolute; inset: 0 auto auto 0; width: min(340px, 100%); background: #fff; border-radius: 22px; padding: 18px 20px; display: grid; gap: 10px; opacity: 0; transform: translateY(24px) rotate(-2deg); animation: mo 9s infinite; }
.mo-card b { font-family: var(--display); font-size: 18px; }
.mo-card .o { border-radius: 12px; padding: 8px 12px; background: var(--bg); font-weight: 600; font-size: 15px; }
.mo-card .o.ok { background: var(--a1); color: #111; }
.mo-card.m2 { animation-delay: 3s; left: 24px; } .mo-card.m3 { animation-delay: 6s; left: 48px; }
@keyframes mo { 0% { opacity: 0; transform: translateY(24px) rotate(-2deg); } 6%, 30% { opacity: 1; transform: translateY(0) rotate(-2deg); } 36%, 100% { opacity: 0; transform: translateY(-24px) rotate(-2deg); } }
.mo-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; height: 120px; }
.mo-ladder i { display: block; border-radius: 12px 12px 4px 4px; background: #fff; animation: grow 3s ease-out infinite alternate; transform-origin: bottom; }
.mo-ladder i:nth-child(1) { height: 30%; } .mo-ladder i:nth-child(2) { height: 55%; animation-delay: .3s; } .mo-ladder i:nth-child(3) { height: 80%; background: var(--a4); animation-delay: .6s; } .mo-ladder i:nth-child(4) { height: 100%; background: var(--a1); animation-delay: .9s; }
.mo-ladder span { text-align: center; font-weight: 800; font-size: 14px; color: #111; }
@keyframes grow { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.hero-vis.motion .sticker { position: absolute; right: 18px; top: 18px; }
.mo-note { position: absolute; left: 28px; bottom: 10px; font-size: 12px; color: #111; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .mo-card { animation: none; } .mo-card.m1 { opacity: 1; transform: none; } .mo-ladder i { animation: none; } }
@media (max-width: 900px) { .hero-vis.motion { min-height: 420px; } }

.hero-vis.motion { padding-top: 84px; }

/* Видео: родные пропорции 16:9, без звука, по кругу */
.vbox { position: relative; border-radius: 22px; overflow: hidden; background: #000; }
.vbox video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.vbox .lic { position: absolute; left: 10px; top: 10px; background: #fff; color: #111; font-size: 11px; font-weight: 700; border-radius: 100px; padding: 3px 10px; }
.hero-vis.vid { display: grid; position: relative; }
.hero-vis.vid .vbox { border-radius: var(--r); margin-left: 40px; }
.hero-vis.vid .qcard { position: relative; margin-top: -90px; z-index: 2; width: min(300px, 70%); }
.hero-vis.vid .sticker { position: absolute; right: -6px; top: -16px; z-index: 3; }
.card .vbox { margin: -8px -8px 6px; }
@media (max-width: 900px) { .hero-vis.vid .vbox { margin-left: 0; } .hero-vis.vid .qcard { margin-top: -60px; } }
@media (prefers-reduced-motion: reduce) { .vbox video { display: none; } .vbox { background: none; } }

/* ===== Сайт целиком: меню, предложения, формы, программы, менторы ===== */
.nav a[aria-current="page"] { color: var(--a1); }
.nav { gap: 18px; font-size: 14px; }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; font-size: 26px; line-height: 1; padding: 6px 10px; border-radius: 12px; background: #fff; }
.burger summary::-webkit-details-marker { display: none; }
.burger .menu { position: absolute; right: 0; top: 48px; z-index: 40; background: #fff; border-radius: 20px; padding: 14px; display: grid; gap: 4px; min-width: 240px; box-shadow: 0 0 0 1px #eadfd6; }
.burger .menu a { text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 12px; }
.burger .menu a:hover { background: var(--bg); }
@media (max-width: 1080px) { .nav { display: none; } .burger { display: block; } .hdr .wa { margin-left: auto; } }
@media (max-width: 480px) { .hdr .btn.main { display: none; } }

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.offer { border-radius: var(--r); padding: 28px; display: grid; gap: 12px; align-content: start; color: #111; }
.offer h3 { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.offer.o1 { background: var(--a1); } .offer.o2 { background: var(--a5); } .offer.o3 { background: var(--a4); }
.offer .btn.main { background: #111; color: #fff; border-color: #111; justify-self: start; }
.tag2 { display: inline-block; justify-self: start; background: rgba(255,255,255,.8); color: #111; border-radius: 100px; padding: 5px 12px; font-weight: 700; font-size: 13px; }
@media (max-width: 960px) { .offers { grid-template-columns: 1fr; } }

form.mini { display: grid; gap: 10px; }
form.mini label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
form.mini input, form.mini select { font: 400 16px 'Golos Text', sans-serif; color: #111; background: #fff; border: 0; border-radius: 12px; padding: 12px 13px; width: 100%; min-width: 0; }
form.mini .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
form.mini .btn.main { background: #111; color: #fff; border-color: #111; justify-self: stretch; justify-content: center; }
.form form.mini .btn.main { justify-self: start; }
@media (max-width: 420px) { form.mini .row2 { grid-template-columns: 1fr; } }
.age .btn { justify-self: start; background: #fff; }

.levels-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lvc h3 { font-size: 26px; }
@media (max-width: 900px) { .levels-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .levels-grid { grid-template-columns: 1fr; } }
.cta-line { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #fff; border-radius: var(--r); padding: 20px 24px; font-weight: 700; font-size: 20px; }

.clients { display: flex; flex-wrap: wrap; gap: 10px; }
.clients span { background: #fff; border-radius: 100px; padding: 12px 20px; font-weight: 700; }

.mentors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mentor .mthumb { position: relative; display: block; border-radius: 20px; overflow: hidden; margin: -8px -8px 6px; }
.mentor .mthumb img { width: 100%; height: auto; display: block; }
.mentor .mthumb span { position: absolute; left: 12px; bottom: 12px; background: #fff; color: #111; border-radius: 100px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
@media (max-width: 900px) { .mentors { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .mentors { grid-template-columns: 1fr; } }

.test .vbox, .test .age-img { margin-bottom: 4px; }
.oferta { max-width: 860px; } .oferta h3 { font-size: 20px; margin-top: 18px; } .oferta p { margin: 0 0 8px; }

/* Страницы: первый экран, цифры, филиалы */
.pagehero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 48px; }
.pagehero h1 { font-size: clamp(38px, 6vw, 80px); line-height: .95; letter-spacing: -2px; font-weight: 800; margin-top: 14px; }
.pagehero .lead { font-size: 20px; color: var(--muted); margin-top: 18px; max-width: 32em; }
.pagehero .photo { aspect-ratio: 4 / 3.6; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats .card b { font: 800 clamp(36px, 4.4vw, 56px)/1 var(--display); letter-spacing: -2px; }
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.branch { border-radius: var(--r); padding: 28px; display: grid; gap: 8px; align-content: start; color: #111; }
.branch .n { font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; opacity: .75; }
.branch h3 { font-size: 28px; }
.branch a { font-weight: 700; }
.note-s { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .pagehero { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } .branches { grid-template-columns: 1fr; } }

/* Телефон: ничего не шире экрана */
.sec > *, .pagehero > *, .hero > *, .offers > *, .ages > *, .tests > *, .four > *, .grid3 > *, .pair > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 960px) { .offers { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .pagehero, .hero, .tests-photo, .pair, .tests { grid-template-columns: minmax(0, 1fr); } .ages { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pagehero h1 { font-size: 36px; letter-spacing: -1px; } h2 { font-size: 28px; } .offer h3 { font-size: 26px; } }

@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } .age > *, .offer > *, .card > * { min-width: 0; } }

/* Карточки возрастов: одинаковая ширина, фото одной высоты (3:2; обрезаются только бока — все фото шире 3:2), кнопка переносится */
.ages { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.age > * { min-width: 0; }
.age .age-img { aspect-ratio: 3 / 2 !important; height: auto !important; object-fit: cover !important; object-position: center top; }
.age .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 900px) { .ages { grid-template-columns: minmax(0, 1fr) !important; } }
/* соцсети */
.hdr .ig { display: inline-flex; color: var(--fg); }
.menu-soc { display: flex; flex-wrap: wrap; gap: 6px 4px; padding-top: 8px; }
.menu-soc .soc { margin-right: 10px; }
.soc-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.soc-btn { display: inline-flex; align-items: center; gap: 8px; }
footer .soc { margin-block: 4px; }

/* Золотая середина: крупные коралловые блоки мягче, чистый коралл — на кнопках */
.tB :is(.test.on, .age.teens, .offer.o1, .lv:nth-child(4)), .tB .card.c1 { background: var(--soft); }
.tB .lv:nth-child(5) { color: var(--bg); }
/* Подвал: номера и соцсети в одну ровную линию */
footer .in > span:nth-of-type(2) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
footer .soc { margin: 0; line-height: 1; }
/* Формы: защита от ботов, сообщения */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 4px 0 0; font-weight: 600; color: #B42318; }
.form-done { display: grid; gap: 6px; padding: 8px 0; }
.form-done h3 { font-size: 24px; }

/* Галочка «Я не робот» (добавляет assets/lead.js) */
form.lead .robot { display: flex !important; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; flex-direction: row !important; }
form.lead .robot input { width: 22px; height: 22px; margin: 0; accent-color: #141210; flex: none; }
/* Логотипы клиентов */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.logo-tile { background: #fff; border-radius: 24px; min-height: 104px; display: grid; place-items: center; padding: 18px; text-align: center; font: 700 16px/1.25 var(--display); color: var(--fg); }
.logo-tile img { max-width: 100%; max-height: 64px; object-fit: contain; }
/* Видео в карточках */
video.age-img { display: block; }
#goals h3 { hyphens: none; -webkit-hyphens: none; }
.logo-tile.dark { background: #0B2A5B; }
/* Плавающая кнопка «Напиши нам» (как на старом сайте) */
.fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 70; }
.fab summary { list-style: none; width: 64px; height: 64px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; cursor: pointer; position: relative; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.fab summary::-webkit-details-marker { display: none; }
.fab summary::before, .fab summary::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: fab-pulse 2.2s ease-out infinite; }
.fab summary::after { animation-delay: 1.1s; }
@keyframes fab-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fab summary::before, .fab summary::after { animation: none; } }
.fab-ico { width: 30px; height: 30px; }
.fab-menu { position: absolute; right: 0; bottom: 78px; width: min(290px, calc(100vw - 36px)); background: #fff; color: #141210; border-radius: 24px; padding: 16px; display: grid; gap: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.18); font-weight: 600; }
.fab-menu b { font: 800 18px var(--display); margin-bottom: 4px; }
.fab-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; background: #F6F1EC; }
.fab-menu a:hover { background: #FCE3DA; }
.logo-tile img { width: 86%; max-height: 84px; object-fit: contain; } .logo-tile { min-height: 116px; padding: 10px; }
/* Телефон: код страны + номер (добавляет assets/lead.js) */
.phone-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 6px; }
.phone-row select.cc { width: auto; min-width: 0; max-width: 150px; }
.phone-row input { margin-top: 0 !important; min-width: 0; }
.hero h1 .hl { white-space: nowrap; }

/* 18.10 — шрифты меньше по всему сайту (Самара: «слишком большой шрифт, особенно заголовки») */
body { font-size: 16px; }
h2 { font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.5px; }
.hero h1 { font-size: clamp(30px, 4vw, 54px); letter-spacing: -1px; }
.pagehero h1 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -1px; line-height: 1; }
.hero .lead, .pagehero .lead { font-size: 18px; }
.lead-s { font-size: 17px; }
.card h3 { font-size: 20px; }
.offer h3 { font-size: 24px; letter-spacing: -.5px; }
.lvc h3, .branch h3 { font-size: 22px; }
.feat .num { font-size: 48px; letter-spacing: -1px; }
.rate b { font-size: 72px; letter-spacing: -2px; }
.age .who { font-size: 24px; }
.step::before { font-size: 40px; }
.btn { font-size: 16px; padding: 14px 24px; }
.faq summary { font-size: 17px; }
.sec { padding-top: 72px; }
.feat .card .age-img { aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 560px) { h2 { font-size: 24px; } .hero h1, .pagehero h1 { font-size: 30px; } .offer h3 { font-size: 22px; } .feat .num { font-size: 40px; } }
/* Вертикальные видео YouTube (Hiking Club, Movie Day) */
.ytgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 300px)); gap: 18px; }
.ytv { position: relative; display: block; padding: 0; border: 0; border-radius: 28px; overflow: hidden; cursor: pointer; aspect-ratio: 9 / 16; background: #111; }
.ytv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ytv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); color: #141210; display: grid; place-items: center; font-size: 26px; padding-left: 4px; }
.ytv-t { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; color: #141210; border-radius: 14px; padding: 8px 12px; font: 700 14px 'Golos Text', sans-serif; text-align: left; }
.ytv-frame { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 28px; background: #111; }
@media (max-width: 520px) { .ytgrid { grid-template-columns: 1fr 1fr; gap: 10px; } .ytv-play { width: 54px; height: 54px; font-size: 20px; } .ytv-t { font-size: 12px; } }
.card .num { font: 800 48px/1 var(--display); letter-spacing: -1px; } @media (max-width: 560px) { .card .num { font-size: 40px; } }
/* 18.10 — меньше пустоты: страница шире, первый экран ниже, фото не выше 520 px (без обрезки) */
.in { max-width: 1440px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.pagehero { grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 32px; }
.pagehero .photo.nat { display: flex; justify-content: flex-end; }
.pagehero .photo.nat img { width: auto; max-width: 100%; max-height: 520px; border-radius: var(--r); }
@media (max-width: 900px) { .pagehero { grid-template-columns: minmax(0, 1fr); } .pagehero .photo.nat { justify-content: center; } .pagehero .photo.nat img { max-height: 420px; } }
@media (max-width: 560px) { .in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
/* Видео: карточка с текстом + два вертикальных ролика в один ряд */
.vidrow { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; align-items: stretch; }
.vid-intro { align-content: center; gap: 14px; }
.vid-facts { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 8px; }
.vid-facts li { background: rgba(255,255,255,.75); border-radius: 14px; padding: 10px 14px; }
.vid-facts b { font: 800 22px var(--display); margin-right: 6px; }
.vid-intro .btn { justify-self: start; }
.vidrow .ytv, .vidrow .ytv-frame { width: 100%; height: 100%; aspect-ratio: 9 / 16; }
@media (max-width: 900px) { .vidrow { grid-template-columns: 1fr 1fr; } .vid-intro { grid-column: 1 / -1; } }
/* Hiking Club: видео на первом экране и «Куда ездим» */
.pagehero .hero-v { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; }
.pagehero .hero-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.place { background: var(--card); border-radius: var(--r); padding: 14px 14px 20px; display: grid; gap: 8px; align-content: start; }
.place video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: var(--a3); display: block; }
.place h3 { font-size: 20px; padding: 0 6px; } .place p { padding: 0 6px; }
@media (max-width: 900px) { .places { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .places { grid-template-columns: 1fr; } }
video.age-img.lazyv { aspect-ratio: 16 / 9; object-fit: cover; background: var(--a3); }
/* Movie Day: трейлеры фильмов */
.films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.film { background: var(--card); border-radius: var(--r); padding: 12px 12px 18px; display: grid; gap: 6px; align-content: start; }
.film h3 { font-size: 18px; padding: 4px 6px 0; } .film p { padding: 0 6px; color: var(--muted); font-size: 15px; }
.ytv.wide, .film .ytv-frame { aspect-ratio: 16 / 9; border-radius: 22px; width: 100%; }
@media (max-width: 900px) { .films { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .films { grid-template-columns: 1fr; } }
.ytv-frame.wide { aspect-ratio: 16 / 9; border-radius: 22px; }
/* Отзывы студентов из 2ГИС */
.trust:has(+ .reviews) { display: block; }
.trust:has(+ .reviews) .rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 24px 32px; }
.trust:has(+ .reviews) .rate b { font-size: 56px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.review { margin: 0; background: var(--card); border-radius: var(--r); padding: 26px; display: grid; gap: 14px; align-content: space-between; }
.review .stars { color: #E2623F; letter-spacing: 3px; font-size: 18px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.review figcaption { display: grid; gap: 2px; } .review figcaption span { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }
/* Отзывы как в 2ГИС: аватар, имя, значок подтверждения, ссылка */
.review { align-content: start; }
.rv-head { display: grid; grid-template-columns: 44px 1fr 22px; gap: 12px; align-items: center; }
.rv-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font: 700 15px 'Golos Text', sans-serif; }
.rv-head b { display: block; font-size: 16px; } .rv-head span { color: var(--muted); font-size: 13px; }
.rv-src { width: 22px; height: 22px; border-radius: 6px; }
.rv-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.review .stars { color: #FFB81C; letter-spacing: 1px; font-size: 16px; }
.review blockquote { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rv-ok { display: inline-flex; align-items: center; gap: 6px; color: #1BA136 !important; font-weight: 700; font-size: 13px; }
.review figcaption a { font-weight: 700; font-size: 14px; margin-top: 6px; }
/* Шапка: WhatsApp и Instagram на одной линии */
.hdr .wa { display: inline-flex; align-items: center; justify-content: center; line-height: 0; width: 40px; height: 40px; color: var(--fg); }
.hdr .wa .ico { width: 24px; height: 24px; display: block; }
/* Видеоотзывы: вертикальные ролики с подписью и ссылкой на оригинал */
.vrevs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.vrev { margin: 0; background: var(--card); border-radius: var(--r); padding: 10px 10px 14px; display: grid; gap: 8px; scroll-snap-align: start; }
.vrev video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: #111; display: block; }
.vrev figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px; }
.vrev figcaption a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.vrev figcaption .ico { width: 16px; height: 16px; }
/* Шапка, вариант 2: «Ещё ▾», номер текстом */
.nav { align-items: center; }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; font-weight: 600; white-space: nowrap; }
.more summary::-webkit-details-marker { display: none; }
.more summary[aria-current] { color: var(--a1); }
.more-menu { position: absolute; top: 34px; left: -14px; z-index: 45; background: #fff; border-radius: 16px; padding: 8px; display: grid; gap: 2px; min-width: 170px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.more-menu a { padding: 9px 12px; border-radius: 10px; }
.more-menu a:hover { background: var(--bg); }
.hdr-phone { font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--fg); }
.hdr .wa.mob { display: none; }
@media (max-width: 1080px) { .hdr-phone { display: none; } .hdr .wa.mob { display: inline-flex; margin-left: auto; } }

/* Вакансии */
.job{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;background:var(--card);border-radius:var(--r);padding:20px;margin-top:18px}
.job img{width:100%;border-radius:28px;display:block}
.job-t{display:grid;gap:12px;align-content:start}.job-t h3{font-size:26px}.job-t ul{margin:0;padding-left:20px}.job-t .btn{justify-self:start}
.facts{display:flex;flex-wrap:wrap;gap:8px}.facts span{background:var(--bg,#F4EFE7);border-radius:999px;padding:6px 12px;font-size:14px;font-weight:600}
.more{border-top:1px solid #e3d8ca;padding-top:10px}.more summary{cursor:pointer;font-weight:700;color:#E2623F}.more h4{margin:14px 0 6px;font:700 16px var(--display)}.more ul{font-size:15px}
.hr-line{margin-top:18px;background:var(--card);border-radius:var(--r);padding:16px 20px;font-size:15px}
@media(max-width:900px){.job{grid-template-columns:1fr}}
.job img{max-height:520px;width:auto;max-width:100%;margin:0 auto;object-fit:contain}

/* уроки менторов своим видео */
.mthumb video { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; background: #141210; }
.mvid span { pointer-events: none; top: 12px; bottom: auto; }
