/* Общая тема трёх входных страниц. Встроенные стили остаются запасным
   оформлением; тема загружается после них. Иллюстрация — из пакета сторис. */
.wsg-site {
  --ink: #141a33;
  --muted: #5b6480;
  --border: #e1e4f1;
  --accent: #4f56d8;
  --accent-mid: #6b72df;
  --accent-light: #eeedff;
  --soft-indigo: #f3f1ff;
  --soft-blue: #edf7fc;
  --grad: linear-gradient(115deg, #4f56d8, #6765df);
  background: #f8f9fd;
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wsg-site .wrap { max-width: 1240px; padding-left: 32px; padding-right: 32px; }
.wsg-site header { background: rgba(248,249,253,.88); border-color: rgba(79,86,216,.09); backdrop-filter: blur(18px); }
.wsg-site .nav { height: 80px; }
.wsg-site .brand { font-size: 21px; color: var(--ink); letter-spacing: -.8px; }
.wsg-site .brand-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; box-shadow: 0 5px 14px #4f56d820; }
.wsg-site .nav-links { gap: 26px; }
.wsg-site .nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 13px; }
.wsg-site .btn { height: auto; min-height: 50px; padding: 14px 21px; border-radius: 14px; font-size: 14px; font-weight: 650; line-height: 1.4; text-align: center; }
.wsg-site .btn-primary { box-shadow: 0 7px 18px #4f56d820; background: var(--grad); color: #fff; }
.wsg-site .btn-primary:hover { box-shadow: 0 10px 24px #4f56d830; transform: translateY(-2px); }
.wsg-site .btn-ghost { background: #ffffffb3; border: 1px solid #dcdfee; color: var(--ink); }
.wsg-site .nav-links a.btn-primary { min-height: 44px; padding: 11px 20px; font-size: 13px; color: #fff; white-space: nowrap; }
.wsg-site a:focus-visible, .wsg-site button:focus-visible, .wsg-site summary:focus-visible { outline: 3px solid #4f56d8; outline-offset: 5px; }
.wsg-site section { padding: 88px 0; scroll-margin-top: 96px; }
.wsg-site .section-head { max-width: 780px; margin-bottom: 44px; }
.wsg-site .section-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 650; line-height: 1.16; letter-spacing: -1.7px; margin-bottom: 16px; }
.wsg-site .section-head p { font-size: 17px; line-height: 1.65; }
.wsg-site .section-label { display: block; margin-bottom: 18px; color: var(--accent); font: 600 10px/1.4 ui-monospace, SFMono-Regular, monospace; letter-spacing: 2.3px; }
.wsg-site .hero h1 { font-size: clamp(38px, 5.1vw, 68px); font-weight: 650; line-height: 1.08; letter-spacing: -2.9px; }
.wsg-site .hero h1 .hl { background: none; color: var(--accent); -webkit-text-fill-color: currentColor; }
.wsg-site .eyebrow { padding: 0; background: none; border-radius: 0; font-size: 11px; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; }
.wsg-site .eyebrow-ic { width: 15px; height: 15px; }
.wsg-site .hero p.sub { line-height: 1.7; font-size: 17px; }
.wsg-site .hero-meta { font-size: 12px; gap: 12px 20px; }
.wsg-site .hero-meta svg { color: var(--accent); }
.wsg-site .android-line { font-size: 12px; line-height: 1.7; }
.wsg-site .apk-note { font-size: 12px; line-height: 1.7; }
.wsg-site .apk-note summary { min-height: 44px; padding-top: 8px; }
.wsg-main .hero-band { padding: 0; background: radial-gradient(ellipse at 80% 45%, #e8e5ff80, transparent 55%), radial-gradient(ellipse at 0 80%, #d9f1fa66, transparent 46%), #f8f9fd; }
.wsg-main .hero-band::before { display: none; }
.wsg-main .hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 12px; padding: 70px 0 54px; text-align: left; }
.wsg-main .hero-copy { position: relative; z-index: 1; min-width: 0; }
.wsg-main .hero h1 { margin: 0 0 20px; }
.wsg-main .hero-lead { font-size: 25px; font-weight: 500; letter-spacing: -.6px; margin-bottom: 17px; }
.wsg-main .hero p.sub { margin: 0 0 26px; max-width: 510px; }
.wsg-main .hero-cta { justify-content: flex-start; gap: 10px; }
.wsg-main .hero-cta .btn:nth-child(3) { flex-basis: 100%; justify-content: flex-start; width: fit-content; min-height: 44px; padding: 8px 0; background: none; border: 0; color: var(--accent); }
.wsg-main .hero .android-line { margin-left: 0; max-width: 510px; }
.wsg-main .hero .apk-note { margin: 6px 0 0; max-width: 510px; }
.wsg-main .hero .apk-note summary { text-align: left; }
.wsg-main .hero-meta { justify-content: flex-start; margin-top: 22px; }
.wsg-main .hero-art { min-width: 0; position: relative; align-self: stretch; display: flex; align-items: center; }
.wsg-main .hero-art img { display: block; width: 100%; height: 580px; object-fit: cover; object-position: 50% 15%; mix-blend-mode: multiply; mask-image: linear-gradient(transparent, #000 8%, #000 88%, transparent); }
.wsg-main .art-caption { position: absolute; bottom: 25px; left: 0; right: 0; text-align: center; color: #767ba0; font: 500 9px/1.5 ui-monospace, SFMono-Regular, monospace; letter-spacing: 1.6px; }
.wsg-main .stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; padding: 30px 0 36px; border-top: 1px solid #dce0ef; }
.wsg-main .stat { text-align: left; padding: 0 28px; border-left: 1px solid #dce0ef; }
.wsg-main .stat:first-child { padding-left: 0; border-left: 0; }
.wsg-main .stat .big { background: none; color: var(--accent); font-size: 37px; font-weight: 600; letter-spacing: -1.2px; }
.wsg-main .stat .lbl { font-size: 12px; font-weight: 500; }
.wsg-main .product-showcase { background: linear-gradient(180deg, #f8f9fd, #f0f1fd); padding-bottom: 0; overflow: hidden; }
.wsg-main .vitrina { align-items: flex-start; gap: 36px; margin-top: 55px; padding-bottom: 0; }
.wsg-main .phone { height: 440px; width: 235px; border: 5px solid #fff; border-radius: 30px 30px 0 0; box-shadow: 0 20px 50px #333b6b17; mask-image: linear-gradient(#000 70%, transparent); }
.wsg-main .phone-main { height: 500px; width: 270px; margin-top: -20px; }
.wsg-main .phone-side { opacity: .9; margin-top: 26px; }
.wsg-site .cards { gap: 28px; }
.wsg-site .card, .wsg-site .feat { border-color: #e3e6f3; box-shadow: 0 14px 40px #26326205; background: linear-gradient(135deg, #fff, #f7f7ff); }
.wsg-site .card { border-radius: 28px; padding: 36px; }
.wsg-site .card h3 { font-size: 28px; font-weight: 650; letter-spacing: -.7px; }
.wsg-site .card p { font-size: 16px; }
.wsg-site .card-icon { background: #eeedff; width: 52px; height: 52px; border-radius: 16px; }
.wsg-site .card li { font-size: 14px; }
.wsg-site .card .go { font-size: 14px; font-weight: 650; margin-top: 18px; }
.wsg-site .card-art { display: block; width: min(100%,330px); height: auto; object-fit: contain; margin: -10px auto 24px; mix-blend-mode: multiply; }
.wsg-site .card-art, .wsg-site .section-art, .wsg-role .role-hero-art img {
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent),linear-gradient(transparent,#000 6%,#000 94%,transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent),linear-gradient(transparent,#000 6%,#000 94%,transparent);
  mask-composite: intersect;
}
.wsg-site .illustrated-features { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: 38px; }
.wsg-site .section-art { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.wsg-site .illustrated-features .features { grid-template-columns: repeat(2,minmax(0,1fr)); }
.wsg-site .card-shot { height: 280px; border-radius: 18px; margin: 18px 0 0; background: #f8f9fd; }
.wsg-site .card:hover, .wsg-site .feat:hover { transform: translateY(-3px); box-shadow: 0 20px 40px #2632620c; }
.wsg-site .features { gap: 20px; }
.wsg-site .feat { border-radius: 22px; padding: 28px; }
.wsg-site .feat h3 { font-size: 19px; font-weight: 650; letter-spacing: -.35px; }
.wsg-site .feat p { font-size: 14px; line-height: 1.7; }
.wsg-site .feat-icon { border: 1px solid #ffffff; box-shadow: inset 0 2px 8px #ffffff; border-radius: 15px; }
.wsg-site .fipi-block { max-width: none; border-color: #e1e3f2; border-radius: 28px; background: linear-gradient(115deg, #f0effe, #f7fbff); padding: 40px; align-items: flex-start; flex-wrap: nowrap; }
.wsg-site .fipi-content { min-width: 0; }
.wsg-site .fipi-content p { line-height: 1.75; }
.wsg-site .fipi-content .btn { margin-top: 16px; }
.wsg-site .fipi-icon { width: 48px; height: 48px; border-radius: 15px; font-size: 22px; }
.wsg-site .subject-tags { max-width: 990px; gap: 12px; }
.wsg-site .tag { border-radius: 12px; padding: 13px 18px; font-size: 13px; font-weight: 550; }
.wsg-site .price-grid { flex-wrap: nowrap; gap: 12px; max-width: none; }
.wsg-site .price-grid .price { flex: 1 1 0; min-width: 0; }
.wsg-site .price { border-color: #e1e3f0; padding: 30px 16px; border-radius: 20px; }
.wsg-site .price .rub { font-size: clamp(25px, 2.8vw, 35px); font-weight: 600; white-space: nowrap; letter-spacing: -1px; }
.wsg-site .price .plan { font-size: 12px; font-weight: 550; margin-bottom: 16px; }
.wsg-site .price .per { font-size: 12px; }
.wsg-site .price.pop { border: 1px solid #7b7ce1; background: #f0efff; box-shadow: 0 12px 30px #4f56d80a; }
.wsg-site .price .pop-tag { background: #4f56d8; box-shadow: 0 3px 8px #4f56d820; font-weight: 600; }
.wsg-site .faq { max-width: 900px; }
.wsg-site .faq details { border: 0; border-bottom: 1px solid #e1e4f0; border-radius: 0; padding: 22px 0; margin: 0; background: transparent; }
.wsg-site .faq summary { font-size: 17px; font-weight: 550; gap: 18px; min-height: 44px; }
.wsg-site .faq summary::after { color: var(--accent); }
.wsg-site .faq details p { font-size: 15px; line-height: 1.8; padding-right: 30px; }
.wsg-site .author { max-width: 1020px; padding: 40px; gap: 36px; border-radius: 28px; background: #f7f8fe; }
.wsg-site .author-photo { border-radius: 24px; width: 128px; height: 150px; box-shadow: none; }
.wsg-site .author-name { font-size: 24px; font-weight: 650; }
.wsg-site .author-role { font-size: 12px; font-weight: 500; }
.wsg-site .author-body p { font-size: 15px; line-height: 1.85; }
.wsg-site .author-fact { border-radius: 7px; font-size: 11px; font-weight: 500; }
.wsg-site .cta { padding: 68px 44px; color: var(--ink); border: 1px solid #e1e1f5; border-radius: 32px; background: radial-gradient(ellipse at 80% 20%, #dedafa88, transparent 70%), linear-gradient(120deg, #f1f1ff, #edf8fc); }
.wsg-site .cta h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 650; letter-spacing: -1.8px; }
.wsg-site .cta p { color: var(--muted); font-size: 16px; opacity: 1; }
.wsg-site .cta .btn-primary { background: var(--grad); color: #fff; box-shadow: 0 7px 18px #4f56d820; }
.wsg-site .cta .btn-ghost { background: #ffffffb3; border: 1px solid #d8dbea; color: var(--ink); }
.wsg-site .cta .android-line { font-size: 12px; color: var(--muted); }
.wsg-site .cta .android-line a { color: var(--accent); border-color: #4f56d840; }
.wsg-site .cta p a { color: var(--accent) !important; }
.wsg-site footer { background: #f8f9fd; padding: 35px 0; font-size: 12px; }
.wsg-site .foot { gap: 22px; }
/* Окно поддержки помещается и на коротком экране; содержимое прокручивается
   внутри окна, поэтому кнопка закрытия не уходит выше области просмотра. */
.wsg-site .chat-fab-popup { display: flex; flex-direction: column; max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px); overflow: hidden; }
.wsg-site .chat-popup-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.wsg-site .chat-fab-popup h4 { padding-right: 24px; }
.wsg-site .chat-fab-close { z-index: 2; top: 0; right: 0; width: 44px; height: 44px; padding: 0; font-size: 0; background: #fff; border-radius: 0 16px 0 8px; }
.wsg-site .chat-fab-close::before, .wsg-site .chat-fab-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transform: translate(-50%,-50%) rotate(45deg); }
.wsg-site .chat-fab-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.wsg-site .student-app-link { min-height: 44px; }
@media (max-width: 1024px) {
  .wsg-site .chat-input, .wsg-site .chat-contact, .wsg-site .chat-contact::placeholder { font-size: 16px; }
  .wsg-site .foot a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 720px) {
  .wsg-site .nav-links a.lk { display: none; }
  .wsg-site .nav-links a.lk[href='/parents'] { display: inline-flex; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .wsg-main .vitrina { gap: 16px; }
  .wsg-main .phone { width: 190px; height: 356px; }
  .wsg-main .phone-main { width: 230px; height: 426px; }
}
/* Страницы родителей и репетиторов используют ту же тему. */
.wsg-role { background: radial-gradient(ellipse at 85% 8%, #e7e5ff90, transparent 30%), #f8f9fd; }
.wsg-role .hero { padding-top: 80px; padding-bottom: 50px; }
.wsg-role .hero h1 { max-width: 950px; }
.wsg-role .hero-illustrated { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 36px; align-items: center; text-align: left; }
.wsg-role .hero-illustrated h1 { font-size: clamp(38px,4.1vw,54px); letter-spacing: -2px; margin-left: 0; }
.wsg-role .hero-illustrated p.sub { margin-left: 0; }
.wsg-role .hero-illustrated .hero-cta, .wsg-role .hero-illustrated .hero-meta { justify-content: flex-start; }
.wsg-role .role-hero-copy, .wsg-role .role-hero-art { min-width: 0; }
.wsg-role .role-hero-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.wsg-role .hero-illustrated .hero-video { grid-column: 1 / -1; }
.wsg-role .mock-row { gap: 36px; }
.wsg-role .phone, .wsg-role .laptop { border-color: #dfe2f1; box-shadow: 0 18px 50px #35427512; }
.wsg-role .hero-video video { border-radius: 24px; }
.wsg-role .compare, .wsg-role .ba, .wsg-role .flow, .wsg-role .partner { max-width: 1040px; }
.wsg-role .ba-col, .wsg-role .compare > div { padding: 32px; border-radius: 22px; }
.wsg-role .ba-after { background: #eeedff; border: 1px solid #d8d5fa; color: var(--ink); }
.wsg-role .col-us { background: #eeedff; color: var(--ink); border-color: #d8d5fa; }
.wsg-role .col-us li .mk { color: var(--accent); }
.wsg-role .flow-step { padding: 26px; border-radius: 20px; }
.wsg-role .flow-num { font-size: 30px; color: #b6b8e9; }
.wsg-role .flow-actor { font-weight: 550; }
.wsg-role .partner { border-radius: 28px; background: linear-gradient(120deg,#fff,#f2f1ff); }
.wsg-role .partner-card { background: #e9e7fb; border-radius: 20px; }
@media (max-width: 1000px) {
  .wsg-site .illustrated-features { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 24px; }
  .wsg-site .illustrated-features .feat { padding: 20px; }
  .wsg-main .hero { grid-template-columns: 1.15fr 1fr; }
  .wsg-main .hero h1 { font-size: 52px; letter-spacing: -2.2px; }
  .wsg-main .hero-art img { height: 500px; }
  .wsg-main .hero-lead { font-size: 22px; }
  .wsg-site .price-grid { flex-wrap: wrap; }
  .wsg-site .price-grid .price { flex: 0 1 calc(33.333% - 12px); min-width: 190px; }
}
@media (max-width: 760px) {
  .wsg-role .hero-illustrated { grid-template-columns: 1fr; gap: 24px; }
  .wsg-role .hero-illustrated h1 { font-size: clamp(38px,7.8vw,52px); }
  .wsg-role .role-hero-art { width: min(100%,420px); margin: 0 auto; }
  .wsg-site .illustrated-features { grid-template-columns: 1fr; gap: 26px; }
  .wsg-site .section-art { width: min(100%,360px); margin: 0 auto; }
  .wsg-site .wrap { padding-left: 22px; padding-right: 22px; }
  .wsg-site .nav { height: 68px; }
  .wsg-site .nav-links { gap: 14px; }
  .wsg-site section { padding: 60px 0; }
  .wsg-site .section-head { margin-bottom: 30px; }
  .wsg-site .section-head h2 { letter-spacing: -1px; }
  .wsg-main .hero { grid-template-columns: 1fr; gap: 0; padding: 45px 0 20px; }
  .wsg-main .hero h1 { font-size: clamp(40px, 9vw, 60px); letter-spacing: -1.8px; }
  .wsg-main .hero-copy { max-width: 600px; }
  .wsg-main .hero-art { margin: 0 auto; max-width: 460px; width: 100%; }
  .wsg-main .hero-art img { height: 350px; object-position: 50% 26%; }
  .wsg-main .art-caption { bottom: 8px; font-size: 8px; }
  .wsg-main .stats { padding: 26px 0; gap: 24px 0; grid-template-columns: repeat(2,1fr); }
  .wsg-main .stat { padding: 0 22px; }
  .wsg-main .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .wsg-main .stat .big { font-size: 32px; }
  .wsg-main .vitrina { gap: 0; margin-top: 40px; }
  .wsg-main .phone-main { width: min(300px, 82vw); height: 460px; }
  .wsg-site .card { padding: 28px; }
  .wsg-site .fipi-block { padding: 28px; gap: 20px; }
  .wsg-site .author { padding: 28px; }
  .wsg-site .cta { padding: 44px 26px; border-radius: 24px; }
  .wsg-site .cta .cta-btns { gap: 10px; }
  .wsg-site .features { grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }
  .wsg-role .hero { padding: 48px 0 30px; }
  .wsg-role .hero h1 { letter-spacing: -1.5px; }
}
@media (max-width: 520px) {
  .wsg-site .card-art { height: auto; max-height: 300px; margin-top: 0; }
  .wsg-site .illustrated-features .features { grid-template-columns: 1fr; }
  .wsg-role .role-hero-art { max-width: 340px; }
  .wsg-site .wrap { padding-left: 18px; padding-right: 18px; }
  .wsg-site .nav-links { gap: 10px; }
  .wsg-site .nav-links a { font-size: 12px; }
  .wsg-site .nav-links a.btn-primary { padding: 10px 13px; font-size: 12px; }
  .wsg-site .brand { font-size: 17px; gap: 7px; }
  .wsg-site .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .wsg-main .hero-cta .btn { width: 100%; flex-basis: 100%; }
  .wsg-main .hero-cta .btn:nth-child(3) { justify-content: center; }
  .wsg-main .hero-lead { font-size: 21px; }
  .wsg-site .hero p.sub { font-size: 15px; }
  .wsg-site .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .wsg-main .hero-meta { gap: 10px 14px; font-size: 11px; }
  .wsg-site .fipi-block { flex-direction: column; text-align: left; }
  .wsg-site .fipi-content .btn { max-width: 100%; }
  .wsg-site .price-grid { gap: 14px 10px; }
  .wsg-site .price-grid .price { flex: 0 1 calc(50% - 5px); min-width: 0; padding: 26px 12px; }
  .wsg-site .price-grid .price:last-child { flex-basis: 100%; }
  .wsg-site .price .rub { font-size: 29px; }
  .wsg-site .price .per { font-size: 12px; }
  .wsg-site .price .plan { margin-bottom: 10px; }
  .wsg-site .faq summary { font-size: 16px; }
  .wsg-site .faq details p { padding-right: 0; font-size: 14px; }
  .wsg-site .author-body p { font-size: 14px; }
  .wsg-site .cta-btns .btn { width: 100%; }
  .wsg-role .hero-cta .btn { width: 100%; }
  .wsg-role .ba-col, .wsg-role .compare > div { padding: 24px; }
  .wsg-role .mock-row { gap: 20px; }
  .wsg-role .phone { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wsg-site .btn, .wsg-site .card, .wsg-site .feat { transition: none; }
  .wsg-site .btn:hover, .wsg-site .card:hover, .wsg-site .feat:hover { transform: none; }
}
