/* Mentio — blogger landing.
   World: the new Tashkent metro wayfinding (light sand and white signs, pointed-arch sign shapes,
   black geometric type with the second language in grey, eight-point line badges). */

:root {
  --page: #FBF9F5;
  --white: #FFFFFF;
  --sand: #F3EBDD;
  --sand-edge: #E0D3BC;
  --frame: #DCD8D0;
  --ink: #141210;
  --text: #2A2621;
  --grey: #6B655C;
  --brand: #4F6BED;
  --brand-dark: #3A52C9;
  --a1: #D21F4C;
  --a2: #3567D6;
  --b1: #16967B;
  --ph: #FFF1A8;
  --ph-ink: #4A3F12;
  --ok: #157A45;
  --ok-bg: #E4F4EA;
  --err: #B3261E;
  --err-bg: #FFF6F5;
  --placeholder: #77716A;

  --font: "Onest", ui-sans-serif, system-ui, sans-serif;
  --r: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 16px;
  --hd-h: 60px;
  --tip: 26px;
}
@media (min-width: 900px) { :root { --gutter: 32px; --hd-h: 72px; --tip: 40px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 12px); scrollbar-color: #CBC3B5 var(--page); }
body { margin: 0; background: var(--page); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; caret-color: var(--brand); }
::selection { background: var(--brand); color: #fff; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
.ic { width: 22px; height: 22px; flex: none; }
.wrap { width: 100%; max-width: calc(1200px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }
:where(a, button, input, [tabindex]):focus-visible { outline: 3px solid var(--a2); outline-offset: 2px; }
.ph { background: var(--ph); color: var(--ph-ink); border-radius: 4px; padding: 6px 10px; }
.tr { color: var(--grey); font-weight: 500; }

/* line badge: eight-point star with the level inside */
.badge { --c: var(--a1); position: relative; width: 46px; height: 46px; flex: none; color: var(--c); display: inline-grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge i { position: relative; font-style: normal; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.badge.sm { width: 34px; height: 34px; }
.badge.sm i { font-size: 12px; }
.badge.xs { width: 24px; height: 24px; }
.badge.xs i { font-size: 9.5px; }
.b-a1 { --c: var(--a1); }
.b-a2 { --c: var(--a2); }
.b-b1 { --c: var(--b1); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--r); border: 0; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--brand); color: #fff; }
.btn-go:hover { background: var(--brand-dark); }
.btn-lg { height: 58px; padding: 0 28px; font-size: 18px; }
.btn-sm { height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .ic { width: 20px; height: 20px; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 30; background: var(--page); transition: box-shadow .2s; }
.hd.is-stuck { box-shadow: 0 1px 0 var(--sand-edge); }
.hd-row { height: var(--hd-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.nav { display: none; gap: 4px; margin-left: 24px; }
.nav a { height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--r); font-size: 15.5px; font-weight: 700; color: var(--grey); }
.nav a:hover { color: var(--ink); background: var(--sand); }
.hd .btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- hanging sign (pointed ends) ---------- */
.hero { padding: 6px 0 56px; }
.sign-wrap { background: var(--sand-edge); padding: 3px; clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%); }
.sign { background: var(--sand); clip-path: polygon(calc(var(--tip) - 1px) 0, calc(100% - var(--tip) + 1px) 0, 100% 50%, calc(100% - var(--tip) + 1px) 100%, calc(var(--tip) - 1px) 100%, 0 50%); padding: 20px calc(var(--tip) + 6px) 18px; }
.sign-main { display: flex; align-items: center; gap: 14px; }
h1 { font-size: clamp(32px, 9vw, 88px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.sign .tr { margin-top: 4px; font-size: clamp(18px, 4.8vw, 36px); line-height: 1.2; }
.sign-route { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }

.hero-grid { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
.poster { order: -1; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text); max-width: 32em; }

.facts { margin-top: 18px; background: var(--white); border-radius: var(--r); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.facts li + li { box-shadow: 0 -1px 0 #EFEAE1; }
.facts .ic { width: 26px; height: 26px; color: var(--ink); }
.facts span { display: grid; }
.facts b { font-size: 17.5px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.facts em { font-style: normal; font-size: 14.5px; color: var(--grey); }
.btn-hero { margin-top: 20px; width: 100%; }

/* blogger poster: a metro lightbox frame */
.poster { background: var(--frame); padding: 8px; border-radius: 14px; }
@media (max-width: 359px) {
  .poster-photo { width: 84px !important; height: 84px !important; }
  .ticket-l { display: none !important; }
  .poster-name { font-size: 20px; }
}
.poster-in { background: var(--white); border-radius: 8px; padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.poster-photo { grid-row: span 3; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--brand); }
.poster-kicker { font-size: 14.5px; font-weight: 700; color: var(--brand-dark); align-self: end; }
.poster-name { font-size: 23px; line-height: 1.1; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.poster-handle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14.5px; font-weight: 700; color: var(--grey); align-self: start; }
.poster-handle .ic { width: 18px; height: 18px; }
.poster-handle:hover { color: var(--ink); }
.ticket { grid-column: 1 / -1; margin-top: 16px; display: flex; align-items: stretch; min-height: 50px; border-radius: 8px; overflow: hidden; font-weight: 800; }
.ticket[hidden] { display: none; }
.ticket-l { background: var(--sand); color: var(--ink); display: flex; align-items: center; padding: 0 12px; font-size: 14px; }
.ticket-code { flex: 1; background: var(--brand); color: #fff; display: flex; align-items: center; padding: 0 14px; font-size: 20px; letter-spacing: .05em; border-left: 3px dotted var(--white); }
.ticket-ok { background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 14px; }
.ticket-ok .ic { width: 16px; height: 16px; }
.poster-sub { grid-column: 1 / -1; margin-top: 12px; font-size: 15.5px; line-height: 1.45; color: var(--text); }

@media (min-width: 900px) {
  .hero { padding: 12px 0 104px; }
  .sign { padding: 34px calc(var(--tip) + 18px) 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .sign-main { gap: 26px; }
  .sign-main .badge { width: 84px; height: 84px; }
  .sign-main .badge i { font-size: 26px; }
  .sign-route { margin: 0; }
  .sign-route .badge { width: 46px; height: 46px; }
  .sign-route .badge i { font-size: 15px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; margin-top: 48px; align-items: start; }
  .poster { order: 0; }
  .lead { font-size: 21px; }
  .facts { margin-top: 24px; max-width: 520px; }
  .btn-hero { width: auto; padding: 0 34px; }
  .poster-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 24px; }
  .poster-photo { width: 150px; height: 150px; margin-bottom: 18px; }
  .poster-name { font-size: 28px; margin-top: 2px; }
  .poster-kicker, .poster-handle { align-self: center; }
  .poster-handle { margin-top: 4px; }
  .ticket { width: 100%; }
}

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec-h { font-size: clamp(30px, 2.6vw + 14px, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.tr-h { margin-top: 6px; font-size: clamp(18px, 1vw + 12px, 26px); }
.sec-sub { margin-top: 16px; font-size: 17.5px; line-height: 1.6; max-width: 34em; }
@media (min-width: 900px) { .sec { padding: 112px 0; } .sec-sub { font-size: 19px; } }

/* vertical pillar sign (pointed top and bottom) */
.pillar, .route { background: var(--sand); clip-path: polygon(16% 0, 84% 0, 100% 22px, 100% calc(100% - 22px), 84% 100%, 16% 100%, 0 calc(100% - 22px), 0 22px); }

/* ---------- lesson ---------- */
.lesson { background: var(--white); }
.lesson-grid { display: grid; gap: 40px; }
.pillar { margin-top: 28px; padding: 30px 26px 30px; max-width: 360px; }
.pillar-h { font-size: 20px; font-weight: 800; color: var(--ink); }
.pillar-list { margin-top: 14px; }
.pillar-list li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 9px 32px; font-size: 17px; }
.pillar-list li::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 6px; background: var(--brand); }
.pillar-list li:first-child::before { top: 50%; }
.pillar-list li:last-child::before { bottom: 50%; }
.pillar-list li::after { content: ""; position: absolute; left: 2px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--brand); }
.pillar-list b { font-weight: 800; color: var(--ink); }
.pillar-list span { color: var(--grey); font-weight: 600; }
.pillar-foot { margin-top: 14px; font-size: 15.5px; font-weight: 800; color: var(--brand-dark); }

/* video call mockup (data-ui), light */
.call-fig { justify-self: center; width: 100%; max-width: 420px; }
.call { background: var(--white); border: 2px solid var(--sand-edge); border-radius: 18px; padding: 10px; box-shadow: 0 24px 50px -24px rgba(60, 45, 20, .35); }
.call-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; font-size: 14px; font-weight: 800; color: var(--ink); }
.call-ttl { display: inline-flex; align-items: center; gap: 8px; }
.call-time { font-variant-numeric: tabular-nums; color: var(--grey); font-weight: 700; }
.call-main { position: relative; height: 390px; border-radius: 12px; background: #DCD3C4; overflow: hidden; }
.call-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.pip .call-photo { object-position: 50% 30%; }
/* the mascot artwork has a white ground: multiply it onto a soft blue tile so it reads as his room */
.call-main:has(.call-mascot) { background: #EAF4FF; }
.call-mascot { object-fit: contain; object-position: 50% 30%; mix-blend-mode: multiply; padding: 40px 6px 92px; }
.call-name { position: absolute; left: 12px; top: 12px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 6px; }
.pip { position: absolute; right: 12px; top: 12px; width: 88px; height: 114px; border-radius: 10px; background: #CFC4B2; box-shadow: 0 0 0 3px var(--white); overflow: hidden; }
.pip span { position: absolute; left: 6px; bottom: 6px; background: var(--white); color: var(--ink); font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.sub-line { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--white); border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px; }
.sub-ru { font-size: 18.5px; font-weight: 800; color: var(--ink); }
.sub-uz { font-size: 14px; color: var(--grey); }
.call-ctl { display: flex; justify-content: center; gap: 12px; padding: 12px 0 4px; }
.call-ctl b { width: 46px; height: 46px; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; }
.call-ctl .end { background: #E5484D; color: #fff; }
.cap { margin-top: 12px; font-size: 14px; color: var(--grey); text-align: center; }
@media (min-width: 900px) {
  .lesson-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
}

/* ---------- levels ---------- */
.lv-grid { display: grid; gap: 40px; }
.start { margin-top: 28px; background: var(--white); border-radius: var(--r); padding: 18px; }
.start-q { font-size: 17.5px; font-weight: 800; color: var(--ink); }
.start-opts { margin-top: 12px; display: grid; gap: 8px; }
.start-opts button { min-height: 50px; padding: 8px 16px; border-radius: var(--r); border: 2px solid var(--sand-edge); background: var(--white); color: var(--ink); font-size: 16.5px; font-weight: 700; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.start-opts button:hover { border-color: var(--ink); }
.start-opts button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.start-out { margin-top: 12px; font-size: 16px; color: var(--grey); min-height: 1.55em; }
.start-out b { color: var(--ink); }

.route { padding: 34px 22px 36px; }
.route-h { font-size: 22px; font-weight: 800; color: var(--ink); text-align: center; }
.line { margin-top: 22px; }
.line > li { position: relative; --c: var(--a1); }
.line > li:nth-child(3), .line > li:nth-child(4) { --c: var(--a2); }
.line > li:nth-child(5), .line > li:nth-child(6) { --c: var(--b1); }
.line > li::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 6px; background: var(--c); transform-origin: top; }
.line > li:first-child::before { top: 22px; }
.line > li.last::before { bottom: 50%; }
.stn { display: flex; gap: 16px; padding-bottom: 22px; }
.stn .badge { z-index: 1; }
.stn-info { flex: 1; min-width: 0; padding-top: 8px; }
.stn h3 { display: inline-block; font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--ink); padding: 2px 8px; margin-left: -8px; border-radius: 6px; transition: background .25s, color .25s; }
.stn .ph { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; }
.xfer { display: flex; align-items: center; gap: 16px; padding: 0 0 22px 12px; }
.xfer-dot { position: relative; z-index: 1; width: 22px; height: 30px; flex: none; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 4px var(--ink); }
.xfer p { font-size: 16px; font-weight: 700; color: var(--ink); padding-left: 12px; }
.stn.is-start h3 { background: var(--c); color: #fff; }
.line.has-start .stn.is-before { opacity: .4; }
.route-foot { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--grey); text-align: center; }
@media (min-width: 900px) {
  .lv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 80px; align-items: center; }
  .route { padding: 44px 40px 48px; }
}

/* ---------- form ---------- */
.lead-sec { background: var(--white); padding-bottom: 72px; }
.kassa { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 14px; overflow: hidden; border: 3px solid var(--sand-edge); background: var(--white); }
.kassa > * { min-width: 0; }
.kassa-head { background: var(--sand); padding: 24px 20px; }
.kassa-head h2 { font-size: clamp(32px, 8.6vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.kassa-head .tr { margin-top: 4px; font-size: clamp(18px, 4.6vw, 26px); }
.kassa-sub { margin-top: 16px; font-size: 16.5px; line-height: 1.55; max-width: 30em; }
.kassa-body { padding: 24px 20px 28px; }

.field + .field { margin-top: 18px; }
.field label { display: block; font-size: 15.5px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.opt { font-weight: 500; color: var(--grey); }
.field input[type="text"], .tel { width: 100%; height: 56px; border: 2px solid var(--sand-edge); border-radius: var(--r); background: #fff; font-size: 17px; transition: border-color .15s, box-shadow .15s; }
.field input[type="text"] { padding: 0 16px; }
.field input:hover, .tel:hover { border-color: #BFAF93; }
.field input[type="text"]:focus, .tel:focus-within { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 18, 16, .1); }
.tel { display: flex; align-items: center; }
.tel-cc { padding: 0 2px 0 16px; font-weight: 800; color: var(--ink); }
.field .tel input, .field .tel input[aria-invalid="true"] { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 16px 0 8px; font-size: 17px; letter-spacing: .02em; }
.tel input:focus { outline: none; }
input::placeholder { color: var(--placeholder); opacity: 1; }
.field input[aria-invalid="true"], .tel:has(input[aria-invalid="true"]) { border-color: var(--err); background: var(--err-bg); }
.hint { margin-top: 6px; font-size: 14px; color: var(--grey); }
.err { margin-top: 6px; font-size: 14.5px; font-weight: 700; color: var(--err); }
.err[hidden] { display: none; }
.field:has(.err:not([hidden])) .hint { display: none; }
#f-promo { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
#f-promo.is-applied { border-color: #8BCBA4; background: var(--ok-bg); }
.promo-ok { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ok); }
.promo-ok[hidden] { display: none; }
.ok-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.ok-dot .ic { width: 14px; height: 14px; }
#lead-form .btn-block { margin-top: 26px; }
.form-err { margin-top: 12px; }
button[aria-busy="true"] { cursor: progress; background: var(--brand-dark); }
button[aria-busy="true"] .btn-label::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { outline: none; }
.done-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--b1); color: #fff; display: grid; place-items: center; }
.done-dot .ic { width: 28px; height: 28px; }
.done h3 { margin-top: 16px; font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.done p { margin-top: 8px; font-size: 17px; line-height: 1.55; }
@media (min-width: 900px) {
  .kassa { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .kassa-head { padding: 44px 40px; }
  .kassa-body { padding: 44px 40px; }
}

/* ---------- footer ---------- */
.ft { padding: 28px 0 calc(100px + env(safe-area-inset-bottom)); }
.ft-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ft .logo { font-size: 16px; }
.ft .mark { width: 26px; height: 26px; font-size: 15px; border-radius: 6px; }
.ft-note { font-size: 14px; color: var(--grey); }
@media (min-width: 900px) { .ft { padding: 32px 0; } }

/* ---------- mobile dock ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -1px 0 var(--sand-edge), 0 -8px 24px rgba(60, 45, 20, .08); transform: translateY(110%); transition: transform .35s var(--ease); }
.dock.is-on { transform: none; }
@media (min-width: 900px) { .dock { display: none; } }
/* one action on screen at a time: on phones the bottom dock replaces the header button */
@media (max-width: 899px) {
  .hd .btn { display: none; }
}

/* ---------- motion ---------- */
.js.rv-on .rv { opacity: 0; transform: translateY(20px); }
.js.rv-on .rv.in { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
/* signature: the route draws itself station by station */
.js.rv-on .route .line > li::before { transform: scaleY(0); }
.js.rv-on .route.in .line > li::before { transform: none; transition: transform .4s linear; }
.js.rv-on .route.in .line > li:nth-child(2)::before { transition-delay: .3s; }
.js.rv-on .route.in .line > li:nth-child(3)::before { transition-delay: .6s; }
.js.rv-on .route.in .line > li:nth-child(4)::before { transition-delay: .9s; }
.js.rv-on .route.in .line > li:nth-child(5)::before { transition-delay: 1.2s; }
.js.rv-on .route.in .line > li:nth-child(6)::before { transition-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js.rv-on .rv { opacity: 1; transform: none; transition: none; }
  .js.rv-on .route .line > li::before { transform: none !important; transition: none !important; }
  .dock { transition: none; }
  .btn:active { transform: none; }
}
