:root {
  --ink: #15243b;
  --muted: #65738a;
  --blue: #315ee7;
  --blue-dark: #2447b7;
  --violet: #7957e8;
  --mint: #24b894;
  --sun: #ffca57;
  --coral: #f67469;
  --paper: #f6f8fc;
  --line: #e3e8f1;
  --white: #fff;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 55px rgba(33, 54, 105, .11);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 5vw, 4.65rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.2em; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 800px); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 16px; color: var(--white); background: var(--ink); border-radius: 10px; }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -.18em; }

.site-header { position: sticky; z-index: 1000; top: 0; height: 78px; border-bottom: 1px solid rgba(227,232,241,.8); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 8px 32px rgba(33,54,105,.08); }
.header-row { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand__mark { display: grid; place-items: center; width: 39px; height: 39px; color: var(--white); background: linear-gradient(145deg,var(--blue),var(--violet)); border-radius: 13px 13px 13px 5px; font-weight: 900; transform: rotate(-3deg); }
.brand__name { font-size: 1.18rem; font-weight: 850; letter-spacing: -.04em; }
.brand__name span { color: var(--blue); }
.main-nav { margin: 0 auto; }
.main-nav ul { display: flex; align-items: center; gap: 5px; padding: 0; margin: 0; list-style: none; }
.main-nav a { display: block; padding: 9px 10px; color: #35435a; border-radius: 9px; font-size: .91rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); background: #f0f4ff; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-login { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.menu-toggle { display: none; color: var(--ink); background: transparent; border: 0; }
.menu-toggle__close { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 23px; color: var(--white); background: var(--blue); border: 1px solid var(--blue); border-radius: 13px; box-shadow: 0 9px 24px rgba(49,94,231,.2); font-weight: 780; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { color: var(--white); background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 13px 30px rgba(49,94,231,.28); transform: translateY(-2px); }
.button--small { min-height: 42px; padding: 10px 16px; border-radius: 11px; font-size: .88rem; }
.button--large { min-height: 58px; padding: 16px 27px; }
.button--ghost { color: var(--ink); background: var(--white); border-color: var(--line); box-shadow: none; }
.button--ghost:hover { color: var(--blue); background: #f7f9ff; border-color: #cbd6fa; }
.button--white { color: var(--blue); background: var(--white); border-color: var(--white); }
.button--white:hover { color: var(--blue-dark); background: #f3f6ff; border-color: #f3f6ff; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; text-decoration: none; }
.text-link:hover .icon { transform: translateX(3px); }

.breadcrumbs { display: flex; align-items: center; gap: 8px; padding-top: 18px; color: #8290a4; font-size: .82rem; overflow: hidden; white-space: nowrap; }
.breadcrumbs a { color: #68778e; text-decoration: none; }
.breadcrumbs > * { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.home .breadcrumbs { display: none; }

.hero { position: relative; overflow: hidden; padding: clamp(54px,6vw,80px) 0 68px; background: radial-gradient(circle at 84% 22%,#e9e3ff 0,transparent 26%), radial-gradient(circle at 63% 84%,#dff9f3 0,transparent 22%), linear-gradient(180deg,#f8faff,#fff); }
.hero::before { content: ""; position: absolute; width: 550px; height: 550px; right: -310px; top: -330px; border: 1px solid rgba(49,94,231,.16); border-radius: 50%; box-shadow: 0 0 0 55px rgba(49,94,231,.025),0 0 0 110px rgba(49,94,231,.025); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(340px,.82fr); align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; margin-bottom: 19px; color: var(--blue); background: #eaf0ff; border-radius: 999px; font-size: .78rem; font-weight: 820; letter-spacing: .05em; text-transform: uppercase; }
.eyebrow--mint { color: #137a64; background: #ddf8f1; }
.eyebrow--sun { color: #8b5b00; background: #fff2ce; }
.eyebrow--light { color: var(--white); background: rgba(255,255,255,.16); }
.hero h1 { max-width: 780px; }
.hero h1 .accent { position: relative; color: var(--blue); }
.hero h1 .accent::after { content: ""; position: absolute; z-index: -1; height: 12px; right: 1%; bottom: 4px; left: 1%; background: var(--sun); border-radius: 50%; transform: rotate(-1deg); opacity: .7; }
.hero__lead { max-width: 660px; color: #53637b; font-size: clamp(1.08rem,2vw,1.3rem); }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { display: flex; align-items: center; gap: 10px; margin-top: 23px; color: #64738b; font-size: .88rem; }
.hero__note span { display: inline-flex; align-items: center; gap: 4px; }
.hero__note .icon { color: var(--mint); }
.hero-card { position: relative; padding: 28px; background: var(--white); border: 1px solid #e5eafb; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(40,61,121,.15); transform: rotate(1.5deg); }
.hero-card::before { content: ""; position: absolute; z-index: -1; inset: 14px -16px -14px 16px; background: #eae4ff; border-radius: var(--radius-lg); transform: rotate(-3deg); }
.hero-card--image { min-height: 420px; padding: 0; overflow: hidden; }
.hero-card__image { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.hero-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.hero-card__label { font-weight: 800; }
.hero-card__step { color: var(--blue); background: #eef2ff; padding: 5px 9px; border-radius: 99px; font-size: .75rem; font-weight: 800; }
.hero-card__question { margin-bottom: 16px; font-size: 1.08rem; font-weight: 750; }
.answer-preview { display: grid; gap: 9px; }
.answer-preview span { display: flex; align-items: center; gap: 9px; padding: 11px 13px; color: #53637b; background: var(--paper); border: 1px solid transparent; border-radius: 11px; font-size: .86rem; }
.answer-preview span:nth-child(2) { color: var(--blue); background: #eef2ff; border-color: #ccd7fb; }
.answer-preview i { display: grid; place-items: center; width: 22px; height: 22px; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 50%; font-size: .68rem; font-style: normal; }
.hero-progress { display: flex; align-items: center; gap: 11px; padding-top: 22px; color: #66758c; font-size: .8rem; }
.hero-progress__bar { flex: 1; height: 7px; overflow: hidden; background: #edf0f5; border-radius: 99px; }
.hero-progress__bar i { display: block; width: 42%; height: 100%; background: linear-gradient(90deg,var(--blue),var(--violet)); border-radius: inherit; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); font-size: .8rem; font-weight: 750; transform: rotate(-1.5deg); }
.float-chip--score { right: -32px; bottom: 40px; }
.float-chip--score strong { display: grid; place-items: center; width: 38px; height: 38px; color: #127c64; background: #ddf8f1; border-radius: 50%; }

.trust-strip { position: relative; z-index: 2; margin-top: -1px; border-block: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { display: flex; align-items: center; gap: 13px; padding: 24px 20px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .icon { width: 30px; height: 30px; color: var(--blue); }
.trust-item strong { display: block; font-size: 1.04rem; }
.trust-item span { color: var(--muted); font-size: .78rem; }

.section { padding: clamp(70px,9vw,112px) 0; }
.section--soft { background: var(--paper); }
.section--dark { color: var(--white); background: var(--ink); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight { padding-block: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2 { max-width: 760px; margin-bottom: 0; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.section-intro { max-width: 650px; color: var(--muted); font-size: 1.1rem; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.card-grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { position: relative; padding: 25px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border .2s,box-shadow .2s,transform .2s; }
a.card:hover { color: var(--ink); border-color: #cdd8fa; box-shadow: var(--shadow); transform: translateY(-5px); }
.card__icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 25px; color: var(--blue); background: #eaf0ff; border-radius: 15px; }
.card__icon--violet { color: var(--violet); background: #efeaff; }
.card__icon--mint { color: #14846b; background: #ddf8f1; }
.card__icon--sun { color: #8b5b00; background: #fff1c7; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .93rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { display: inline-flex; padding: 5px 9px; color: #5c6a80; background: var(--paper); border-radius: 8px; font-size: .72rem; font-weight: 750; }
.card__arrow { position: absolute; top: 25px; right: 23px; color: #9ba8ba; }

.exam-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.exam-card { min-height: 235px; padding: 23px; overflow: hidden; }
.exam-card::after { content: attr(data-short); position: absolute; right: -10px; bottom: -34px; color: rgba(255,255,255,.19); font-size: 5.6rem; font-weight: 900; line-height: 1; transform: rotate(-8deg); }
.exam-card:nth-child(4n+1) { color: var(--white); background: linear-gradient(145deg,#315ee7,#4b76ed); border-color: transparent; }
.exam-card:nth-child(4n+2) { color: var(--white); background: linear-gradient(145deg,#7652df,#9979ec); border-color: transparent; }
.exam-card:nth-child(4n+3) { color: var(--white); background: linear-gradient(145deg,#1ba582,#35c7a2); border-color: transparent; }
.exam-card:nth-child(4n+4) { color: var(--ink); background: linear-gradient(145deg,#ffd466,#ffe59d); border-color: transparent; }
.exam-card h3, .exam-card:nth-child(-n+3) p, .exam-card:nth-child(-n+3) .text-link { color: var(--white); }
.exam-card p { position: relative; z-index: 1; opacity: .86; }
.exam-card .text-link { position: absolute; z-index: 2; left: 23px; bottom: 22px; color: inherit; }

.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.feature { padding: 5px 10px; }
.feature__num { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 21px; color: var(--blue); background: #eaf0ff; border-radius: 15px; font-size: .87rem; font-weight: 900; }
.feature p { color: var(--muted); }

.results-wrap { display: grid; grid-template-columns: .78fr 1.22fr; gap: 44px; align-items: stretch; }
.score-big { display: flex; flex-direction: column; justify-content: center; padding: 40px; color: var(--white); background: linear-gradient(145deg,var(--blue),var(--violet)); border-radius: var(--radius-lg); }
.score-big__value { font-size: clamp(4rem,9vw,7rem); font-weight: 900; line-height: .9; letter-spacing: -.08em; }
.score-big__value small { font-size: .27em; letter-spacing: -.02em; }
.score-big p { margin: 22px 0 0; color: rgba(255,255,255,.82); }
.case-list { display: grid; gap: 13px; }
.case-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 15px; padding: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 17px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; color: var(--white); background: linear-gradient(145deg,var(--blue),var(--violet)); border-radius: 16px; font-weight: 850; }
.case-row:nth-child(2) .avatar { background: linear-gradient(145deg,#17a17f,#4ccca9); }
.case-row:nth-child(3) .avatar { color: #704600; background: linear-gradient(145deg,#ffc849,#ffe49b); }
.case-row strong { display: block; }
.case-row span { color: var(--muted); font-size: .82rem; }
.case-row__score { color: var(--mint); font-size: 1.2rem; font-weight: 900; white-space: nowrap; }

.diagnostic-panel { display: grid; grid-template-columns: 1fr .85fr; gap: 60px; align-items: center; padding: clamp(30px,5vw,60px); background: #edf2ff; border: 1px solid #dce5ff; border-radius: var(--radius-lg); }
.diagnostic-panel__steps { display: grid; gap: 12px; }
.mini-step { display: flex; align-items: center; gap: 13px; padding: 15px 17px; background: rgba(255,255,255,.8); border-radius: 14px; }
.mini-step span { display: grid; place-items: center; width: 31px; height: 31px; color: var(--white); background: var(--blue); border-radius: 9px; font-size: .75rem; font-weight: 850; }

.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.course-card__visual { position: relative; min-height: 155px; padding: 23px; color: var(--white); background: linear-gradient(145deg,#315ee7,#7957e8); }
.course-card:nth-child(2) .course-card__visual { background: linear-gradient(145deg,#13866e,#2fc4a0); }
.course-card:nth-child(3) .course-card__visual { color: var(--ink); background: linear-gradient(145deg,#ffc84f,#ffe18b); }
.course-card__badge { display: inline-flex; padding: 6px 9px; color: inherit; background: rgba(255,255,255,.18); border-radius: 9px; font-size: .72rem; font-weight: 800; }
.course-card__subject { position: absolute; right: 20px; bottom: 8px; font-size: 3.3rem; font-weight: 900; line-height: 1; opacity: .16; }
.course-card__body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.course-card__body p { color: var(--muted); font-size: .88rem; }
.course-card__features { display: grid; gap: 7px; padding: 0; margin: 3px 0 22px; list-style: none; color: #42516a; font-size: .82rem; }
.course-card__features li { display: flex; gap: 7px; }
.course-card__features .icon { color: var(--mint); }
.course-card__price { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-top: 17px; margin-top: auto; border-top: 1px solid var(--line); }
.course-card__price strong { font-size: 1.2rem; }
.course-card__price small { display: block; color: var(--muted); }

.teacher-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.teacher-card { overflow: hidden; padding: 0; }
.teacher-card__photo { display: grid; place-items: end center; height: 220px; background: linear-gradient(160deg,#e8eeff,#f5f7fd); }
.teacher-card__image { width: 100%; height: 100%; object-fit: cover; }
.teacher-card:nth-child(2) .teacher-card__photo { background: linear-gradient(160deg,#e2f8f2,#f5fbf9); }
.teacher-card:nth-child(3) .teacher-card__photo { background: linear-gradient(160deg,#f0eaff,#faf7ff); }
.teacher-card:nth-child(4) .teacher-card__photo { background: linear-gradient(160deg,#fff1c9,#fffaf0); }
.teacher-card__initials { display: grid; place-items: center; width: 145px; height: 165px; color: var(--white); background: linear-gradient(160deg,var(--blue),var(--violet)); border-radius: 70px 70px 15px 15px; font-size: 2rem; font-weight: 900; }
.teacher-card:nth-child(2) .teacher-card__initials { background: linear-gradient(160deg,#159576,#39cba7); }
.teacher-card:nth-child(3) .teacher-card__initials { background: linear-gradient(160deg,#6e4bd5,#a184ef); }
.teacher-card:nth-child(4) .teacher-card__initials { color: #744900; background: linear-gradient(160deg,#ffc340,#ffde80); }
.teacher-card__body { padding: 19px; }
.teacher-card__body h3 { margin-bottom: 4px; font-size: 1.05rem; }
.teacher-card__body p { margin: 0; color: var(--muted); font-size: .78rem; }

.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.review-card { padding: 28px; }
.stars { color: #f1aa16; letter-spacing: .12em; }
.review-card blockquote { margin: 17px 0 21px; color: #3f4f67; font-size: 1.02rem; }
.review-author { display: flex; align-items: center; gap: 11px; }
.review-author .avatar { width: 43px; height: 43px; border-radius: 50%; font-size: .78rem; }
.review-author strong { display: block; }
.review-author span { color: var(--muted); font-size: .77rem; }

.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 29px; }
.price-card--popular { color: var(--white); background: linear-gradient(160deg,#315ee7,#614fd0); border-color: transparent; transform: translateY(-12px); }
.price-card--popular h3, .price-card--popular .price, .price-card--popular p { color: var(--white); }
.price-card__flag { align-self: flex-start; padding: 5px 9px; margin-bottom: 15px; color: #714a00; background: var(--sun); border-radius: 8px; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.price { margin: 13px 0; font-size: 2.2rem; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.price small { color: var(--muted); font-size: .36em; font-weight: 600; letter-spacing: 0; }
.price-card--popular .price small { color: rgba(255,255,255,.7); }
.price-card ul { display: grid; gap: 10px; padding: 0; margin: 16px 0 28px; list-style: none; font-size: .88rem; }
.price-card li { display: flex; gap: 8px; }
.price-card li .icon { color: var(--mint); }
.price-card--popular li .icon { color: #86f0d4; }
.price-card .button { margin-top: auto; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px 2px; font-weight: 780; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; color: var(--blue); background: #edf2ff; border-radius: 50%; font-size: 1.1rem; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__answer { max-width: 790px; padding: 0 45px 21px 2px; color: var(--muted); }

.section--cta { padding-top: 20px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: clamp(32px,5vw,60px); color: var(--white); background: linear-gradient(130deg,#315ee7,#704edb 72%,#7957e8); border-radius: var(--radius-lg); box-shadow: 0 28px 75px rgba(49,94,231,.25); }
.cta-panel h2 { max-width: 700px; color: var(--white); }
.cta-panel p { max-width: 670px; margin: 0; color: rgba(255,255,255,.8); }

.page-hero { padding: clamp(55px,8vw,90px) 0 65px; background: linear-gradient(180deg,#f6f8ff,#fff); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 55px; align-items: center; }
.page-hero h1 { font-size: clamp(2.55rem,5vw,4.4rem); }
.page-hero__lead { color: var(--muted); font-size: 1.18rem; }
.page-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 35px rgba(37,58,112,.07); }
.stat-card strong { display: block; color: var(--blue); font-size: 1.7rem; line-height: 1.1; }
.stat-card span { color: var(--muted); font-size: .8rem; }

.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 50px; align-items: start; }
.entry-content { color: #3f4f67; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: 800px; }
.entry-content li { margin-bottom: .5em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 13px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--paper); }
.content-sidebar { position: sticky; top: 100px; }
.sidebar-card { padding: 25px; background: #f4f7ff; border: 1px solid #dfe7ff; border-radius: var(--radius); }
.sidebar-card p { color: var(--muted); font-size: .9rem; }
.sidebar-card .button { width: 100%; }
.meta-line { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 17px 0 0; color: var(--muted); font-size: .84rem; }
.meta-line span { display: inline-flex; align-items: center; gap: 5px; }

.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { padding: 8px 13px; color: #536178; background: var(--white); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
.filter-pill.is-active, .filter-pill:hover { color: var(--blue); background: #edf2ff; border-color: #ccd8fa; }
.search-box { position: relative; }
.search-box .icon { position: absolute; top: 50%; left: 13px; color: #8090a6; transform: translateY(-50%); }
.search-box input { min-height: 45px; padding: 10px 13px 10px 41px; border: 1px solid var(--line); border-radius: 12px; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 40px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding-inline: 9px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pagination .current { color: var(--white); background: var(--blue); border-color: var(--blue); }

.diagnostic-shell { max-width: 820px; margin: 0 auto; }
.diagnostic-card { padding: clamp(24px,5vw,43px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.diagnostic-card__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 26px; }
.diagnostic-progress { flex: 1; height: 8px; overflow: hidden; background: #edf0f5; border-radius: 99px; }
.diagnostic-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--blue),var(--violet)); transition: width .25s; }
.diagnostic-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.diagnostic-question h2 { font-size: clamp(1.45rem,3vw,2rem); }
.diagnostic-question__topic { color: var(--blue); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.diagnostic-answers { display: grid; gap: 10px; margin-top: 25px; }
.diagnostic-answer { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 13px; text-align: left; cursor: pointer; }
.diagnostic-answer:hover, .diagnostic-answer.is-selected { color: var(--blue); background: #f2f5ff; border-color: #bccafb; }
.diagnostic-answer span { display: grid; place-items: center; width: 29px; height: 29px; background: var(--paper); border-radius: 9px; font-size: .76rem; font-weight: 850; }
.diagnostic-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 27px; }
.diagnostic-result { text-align: center; }
.result-ring { display: grid; place-items: center; width: 150px; height: 150px; margin: 0 auto 25px; background: conic-gradient(var(--mint) var(--score,70%),#ebeff4 0); border-radius: 50%; }
.result-ring::before { content: ""; grid-area: 1/1; width: 116px; height: 116px; background: var(--white); border-radius: 50%; }
.result-ring strong { z-index: 1; grid-area: 1/1; font-size: 2rem; }
.weak-topics { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 18px 0 25px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; margin-top: 22px; }
.lead-form--stack { grid-template-columns: 1fr; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid #d8deea; border-radius: 12px; outline: none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,94,231,.12); }
.form-field label { display: block; margin-bottom: 5px; font-size: .78rem; font-weight: 750; }
#loginform p { margin-bottom: 14px; }
#loginform label { display: block; font-size: .8rem; font-weight: 750; }
#loginform input[type="text"], #loginform input[type="password"] { width: 100%; min-height: 50px; margin-top: 5px; padding: 12px 14px; border: 1px solid #d8deea; border-radius: 12px; }
.form-consent { grid-column: 1/-1; color: var(--muted); font-size: .69rem; }
.form-status { grid-column: 1/-1; padding: 9px 12px; border-radius: 9px; font-size: .82rem; }
.form-status.is-error { color: #9d332b; background: #fff0ef; }
.form-status.is-success { color: #14715d; background: #e3f8f2; }
.hp-field { position: absolute !important; left: -9999px !important; }

.account-grid { display: grid; grid-template-columns: 220px 1fr; gap: 25px; }
.account-nav { padding: 15px; background: var(--paper); border-radius: 18px; }
.account-nav a { display: block; padding: 10px 12px; color: var(--ink); border-radius: 9px; text-decoration: none; }
.account-nav a:hover, .account-nav a.is-active { color: var(--blue); background: var(--white); }
.progress-card { padding: 22px; border: 1px solid var(--line); border-radius: 17px; }
.progress-bar { height: 9px; overflow: hidden; background: #edf0f5; border-radius: 99px; }
.progress-bar span { display: block; height: 100%; background: var(--mint); border-radius: inherit; }

.empty-state { padding: 55px 25px; text-align: center; background: var(--paper); border: 1px dashed #ccd4e1; border-radius: var(--radius); }
.empty-state .icon { width: 55px; height: 55px; color: var(--blue); }
.error-404 { min-height: 64vh; display: grid; place-items: center; padding: 70px 20px; text-align: center; }
.error-code { color: var(--blue); font-size: clamp(7rem,20vw,14rem); font-weight: 900; line-height: .8; letter-spacing: -.1em; opacity: .13; }

.site-footer { padding: 70px 0 25px; margin-top: 90px; color: #aeb9c8; background: #111d30; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3,1fr); gap: 45px; }
.brand--footer { color: var(--white); }
.footer-brand p { max-width: 390px; margin-top: 18px; font-size: .88rem; }
.footer-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: #cad3df; font-size: .72rem; }
.footer-badge .icon { color: var(--mint); }
.footer-title { color: var(--white); font-size: .95rem; letter-spacing: 0; }
.footer-links { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.footer-links a { color: #aeb9c8; font-size: .82rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 24px; margin-top: 55px; border-top: 1px solid rgba(255,255,255,.1); font-size: .7rem; }
.footer-bottom a { color: inherit; }

@media (max-width: 1060px) {
  .header-login { display: none; }
  .main-nav a { padding-inline: 7px; font-size: .84rem; }
  .hero-grid { gap: 35px; }
  .float-chip--score { right: -8px; }
  .teacher-grid { grid-template-columns: repeat(2,1fr); }
  .card-grid--4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .site-header { height: 68px; }
  .menu-toggle { display: grid; place-items: center; width: 43px; height: 43px; margin-left: auto; padding: 8px; cursor: pointer; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
  .main-nav { position: fixed; top: 68px; right: 0; bottom: 0; left: 0; display: none; padding: 17px 20px; margin: 0; overflow-y: auto; background: var(--white); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; }
  .main-nav a { padding: 13px; font-size: 1rem; }
  .header-actions { order: 2; }
  .menu-toggle { order: 3; }
  .hero-grid, .page-hero__grid, .diagnostic-panel, .results-wrap { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; margin: 0 auto; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .exam-grid { grid-template-columns: repeat(2,1fr); }
  .course-grid, .pricing-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .price-card--popular { transform: none; }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1.08rem; }
  .header-actions .button { min-height: 39px; padding: 9px 12px; font-size: .78rem; }
  .hero { padding-top: 45px; }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: clamp(2.55rem,13vw,4rem); }
  .hero__actions, .hero__actions .button { width: 100%; }
  .hero__note { align-items: flex-start; flex-direction: column; }
  .hero-card { padding: 21px; border-radius: 24px; transform: none; }
  .hero-card::before, .float-chip { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { align-items: flex-start; padding: 17px 8px; border-right: 0; }
  .trust-item .icon { width: 24px; height: 24px; }
  .trust-item strong { font-size: .88rem; }
  .trust-item span { font-size: .69rem; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 27px; }
  .exam-grid, .course-grid, .pricing-grid, .card-grid, .card-grid--4, .feature-grid, .teacher-grid, .reviews-grid { grid-template-columns: 1fr; }
  .exam-card { min-height: 205px; }
  .case-row { grid-template-columns: 44px 1fr auto; padding: 13px; }
  .case-row .avatar { width: 44px; height: 44px; }
  .case-row__score { font-size: 1rem; }
  .diagnostic-panel { gap: 30px; }
  .teacher-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .teacher-card__photo { height: 160px; }
  .teacher-card__initials { width: 105px; height: 125px; }
  .cta-panel { align-items: flex-start; flex-direction: column; gap: 26px; }
  .cta-panel .button { width: 100%; }
  .page-hero__stats { grid-template-columns: 1fr 1fr; }
  .archive-toolbar { align-items: stretch; flex-direction: column; }
  .search-box input { width: 100%; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form .button { width: 100%; }
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { display: flex; overflow-x: auto; }
  .account-nav a { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header,.site-footer,.button,.content-sidebar,.breadcrumbs { display: none !important; }
  body { color: #000; }
  .section { padding: 20px 0; }
}
