*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:430 17px/1.45 "Onest Variable",Onest,sans-serif;color:#17171c;background:#f5f5f7}a{color:inherit}section,header,footer{padding-inline:max(5vw,calc((100% - 1190px)/2))}header,footer,.actions,.meta,nav{display:flex;align-items:center;gap:16px}header,footer{justify-content:space-between;padding-block:22px}header,.dark,footer{background:#09090d;color:#f5f5f7}header{border-bottom:1px solid #ffffff25}.brand{display:inline-flex;align-items:center;gap:11px;font-size:12px;font-weight:680;line-height:1.04;text-decoration:none}.brand img{width:34px;height:34px}nav a,footer a{font-size:14px;text-decoration:none}nav{gap:28px}.hero,.practice,.school{display:grid;grid-template-columns:1.35fr 1fr;align-items:center;gap:clamp(24px,5vw,80px)}section{padding-block:clamp(52px,7vw,100px)}.dark{background:radial-gradient(ellipse at 4% 0%,#ffd51f09,transparent 45%),radial-gradient(ellipse at 98% 0%,#886acd16,transparent 45%),radial-gradient(ellipse at 0 100%,#ffd51f08,transparent 45%),radial-gradient(ellipse at 100% 100%,#886acd12,transparent 45%),#09090d}.hero{padding-block:45px 60px}.meta{font-size:14px;color:#c8c5cd}.meta:before{content:"";width:8px;height:8px;background:#ffd51f;border-radius:50%}h1,h2,h3,p,figure{margin:0}h1,h2{font-weight:590;letter-spacing:-.052em;line-height:1.13;text-wrap:balance}h1{font-size:clamp(38px,4.55vw,69px);margin:20px 0}h2{font-size:clamp(34px,4vw,60px);margin-bottom:32px}.mark{display:inline-grid;vertical-align:baseline;white-space:nowrap;color:#17171c}.mark span{grid-area:1/1;padding:0 .12em}.mark span:first-child{border-radius:.19em;background:#ffd51f;color:transparent}h3{font-size:22px;line-height:1.17;font-weight:580;letter-spacing:-.035em;margin-bottom:9px}.intro{color:#dedbe1}.hero ul{list-style:none;padding:0;margin:20px 0}.hero li{display:flex;align-items:flex-start;gap:11px;padding:4px 0}.hero li svg{width:21px;height:21px;flex:none;margin-top:2px;color:#ffd51f}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;align-items:stretch;gap:10px;margin-top:27px}button,.action{font:580 15px/1.2 "Onest Variable",Onest,sans-serif;border:0;cursor:pointer}.action{padding:17px 19px;border-radius:14px;background:#ffd51f;color:#17171c;text-decoration:none}.action.secondary{background:transparent;color:inherit;border:1px solid #808087}.action:hover{filter:brightness(.93)}.offer{display:flex;flex-wrap:wrap;gap:8px 15px;font-size:14px;align-items:center;margin-top:16px;color:#d2cfd5}.offer del{color:#aaa5af}.offer time{font-variant-numeric:tabular-nums}figure img,.portrait{width:100%;height:auto;display:block;border-radius:22px}.hero figure{padding:12px;background:#222229;border:1px solid #484750;border-radius:32px;transform:rotate(1.5deg)}figcaption{display:flex;justify-content:space-between;gap:8px;padding:12px 6px 1px;font-size:13px}.grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.card{grid-column:span 2;background:white;border-radius:22px;padding:26px}.topics .card:nth-child(-n+2){grid-column:span 3}.practice{grid-template-columns:1fr 1fr;align-items:start}.lesson{padding:17px 0;border-top:1px solid #ffffff38;display:grid;grid-template-columns:56px 1fr;gap:12px}.lesson b{font-size:38px;line-height:1;color:transparent;-webkit-text-stroke:1px #ffffff6b;font-weight:580}.lesson:nth-child(even) b{-webkit-text-stroke-color:#ffd51fb8}.lesson p,.dark .card p{color:#ccc9d0}.dark .card{background:linear-gradient(135deg,#ffffff14,#0c0e1670 40%,#07080c94);border:1px solid #ffffff38}.practice figure{margin-bottom:16px}.practice .card+.card{margin-top:12px}.criteria{border-bottom:1px solid #ddd}.school{grid-template-columns:.85fr 1.15fr}.stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.stats strong{display:block;color:#f5f5f7;font-size:clamp(24px,2.2vw,28px);font-weight:580;line-height:1.2;letter-spacing:-.025em;margin-bottom:4px}.stats span{font-size:15px}.results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.results a{display:flex;flex-direction:column;text-decoration:none;background:white;border-radius:22px;padding:22px}.results h3{margin:14px 0 25px}.results small{margin-top:auto;text-decoration:underline}dialog{border:0;border-radius:22px;padding:28px;max-width:min(420px,90vw)}dialog::backdrop{background:#09090dbb}dialog button{margin-top:16px;padding:12px;border-radius:10px}
@media(max-width:850px){.hero,.school{grid-template-columns:1.1fr .9fr;gap:24px}.actions{gap:8px}.results{grid-template-columns:1fr 1fr}.action{padding:15px 12px}.card{padding:20px}}
@media(max-width:680px){section,header,footer{padding-inline:20px}nav{gap:15px}nav a:last-child{display:none}.hero,.practice,.school{grid-template-columns:1fr}.hero{padding-top:30px}.hero figure{margin:8px 3px 0}.grid,.results{grid-template-columns:1fr}.grid .card,.topics .card:nth-child(-n+2){grid-column:auto}.hero h1{font-size:clamp(35px,9.5vw,55px)}.actions{align-items:stretch}.action{text-align:center;flex:1 1 135px}h2{margin-bottom:24px}.stats{gap:16px}.results h3{margin-bottom:16px}footer{gap:8px}section{padding-block:48px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.rail-controls{display:flex;align-items:center;gap:10px;justify-content:flex-end;margin-bottom:16px;font-size:14px}.rail-controls button{width:42px;height:42px;border-radius:50%;background:#17171c;color:white}.rail-controls button:disabled{opacity:.36}.rail-track{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:min(88%,440px);align-items:start;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;margin:0;padding:0 0 16px;list-style:none}.story-card{min-width:0;scroll-snap-align:start;border-radius:22px;background:white;overflow:hidden}.story-cover{border-radius:22px;overflow:hidden}.story-cover img{display:block;width:100%;height:auto}.story-copy{display:grid;gap:9px;padding:20px 22px 22px}.story-copy h3{margin:0;font-size:21px;line-height:1.26;font-weight:580;letter-spacing:-.025em}.story-author{font-size:14px;line-height:1.35;font-weight:540;color:#625e69}.all-stories{display:block;text-align:center;text-decoration:none;background:#ffd51f;padding:16px;border-radius:14px;font-weight:580}
@media(min-width:781px){.rail-track{grid-auto-columns:calc((100% - 16px)/2)}}
@media(min-width:1050px){.rail-track{grid-auto-columns:calc((100% - 32px)/3)}}
@media(max-width:680px){.story-copy{padding:18px}}

/* Materials used in the course and test-drive outcome cards. */
.grid .panel{border-radius:32px;padding:30px;color:#fff}
.panel i{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#ffffff24;margin-bottom:18px}
.panel svg{width:20px;height:20px}
.panel h3{font-size:25px;line-height:1.22;margin-bottom:12px}
.panel-yellow{background:linear-gradient(145deg,#ffe467,#ffd51f 58%,#e4b900)}
.grid .panel-yellow{color:#17171c}
.panel-yellow i{background:#17171c12}
.panel-graphite{background:linear-gradient(145deg,#2b2a31,#17171c)}
.panel-coral{background:linear-gradient(145deg,#ff928b,#e06a72 55%,#b95068)}
.panel-violet{background:linear-gradient(145deg,#9586f0,#7c69df 64%,#6854ca)}
.panel-green{background:linear-gradient(145deg,#63c99b,#4baa7f 62%,#328563)}
.panel-blue{background:linear-gradient(145deg,#5ca8ff,#3d6fd4 60%,#3159c8)}
.title-mark{position:relative;line-height:1.06}
.title-mark-bg,.title-mark-fg{display:block;line-height:inherit}
.title-mark-bg{position:absolute;inset:0;color:transparent;pointer-events:none;user-select:none}
.title-mark mark{border-radius:.19em;padding:.02em .1em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.title-mark-bg mark{color:transparent;background:#ffd51f}
.title-mark-fg{position:relative;background:linear-gradient(108deg,#101014,#252329 58%,#4b474e);background-clip:text;color:transparent}
.dark .title-mark-fg{background-image:linear-gradient(108deg,#fff,#f4f1eb 52%,#c9c5c0)}
.title-mark-fg mark{color:#101014;background:transparent}
.action,.all-stories{display:flex;align-items:center;justify-content:center;min-height:52px;padding:12px 18px;border:0;border-radius:14px;background:#ffd51f;color:#17171c;font-size:17px;font-weight:580;line-height:1.45}
.action.secondary{background:#ffd51f;color:#17171c;border:0}
.action:hover,.all-stories:hover{background:#ffe04b;filter:none}
.action:focus-visible,.all-stories:focus-visible,.rail-controls button:focus-visible,.rail-track:focus-visible{outline:2px solid #946cf7;outline-offset:3px}
.rail-controls{gap:7px}
.rail-hint{font-size:14px;line-height:1;font-weight:580;margin-right:3px}
.rail-controls button{display:grid;place-items:center;padding:0;border:1px solid #17171c29;background:#fff;color:#17171c;font-size:23px;line-height:1}
.rail-controls button:disabled{opacity:.45;cursor:default}
.dark .card{border-radius:32px;box-shadow:inset 0 1px 1px #ffffff4d,inset 0 -1px 1px #00000059,0 20px 48px -12px #00000073}
.lesson b{font-size:56.32px;line-height:.85;letter-spacing:-.065em}
.lesson{grid-template-columns:80px 1fr}
@media(max-width:780px){.grid .panel{padding:25px;border-radius:26px}.panel h3{font-size:24px}.lesson b{font-size:38px}.lesson{grid-template-columns:48px 1fr}.title-mark{line-height:1.08}}
.track-system{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0 22px}
.track-system strong{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:4px 11px 4px 5px;border:1px solid #ffffff38;border-radius:999px;font-size:10px;font-weight:620}
.track-system strong>span{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#9586f0,#6854ca);color:white}
.track-system strong:nth-child(2)>span{background:linear-gradient(145deg,#5ca8ff,#3159c8)}
.track-system strong:last-child>span{background:#ffd51f;color:#17171c}
.track-system svg{width:16px;height:16px}
.hero .offer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-block:1px solid #ffffff30;color:#f5f5f7}
.offer-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.offer-price strong{font-size:clamp(18px,2vw,24px);line-height:1.15;font-weight:580}
.offer-price del{color:#bcb7c1;font-size:16px}
#deadline{display:grid;justify-items:end;gap:2px;flex:none;font-size:12px;color:#c8c5cd}
#deadline time{font-size:24px;line-height:1.1;font-weight:580;color:#ffd51f}
@media(max-width:420px){.offer-price{flex-direction:column}}

.actions .action{position:relative;gap:9px;padding-inline:22px 28px}
.channel-icon{width:20px;height:20px;flex:none}
.channel-arrow{position:absolute;right:9px;top:5px;width:16px;height:16px}
@media(max-width:780px){.actions .action{padding-inline:10px 20px;gap:6px;font-size:15px}.channel-icon{width:17px;height:17px}.channel-arrow{right:6px;top:4px}}

.actions .action {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #ffe467 0%, #ffd51f 58%, #eebe08 100%);
}
.actions .action::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -35% auto -35% 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #fff9 50%, transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: lesson-button-shine 5s ease-in-out infinite;
}
.actions .action.secondary::before { animation-delay: .3s; }
.actions .action:hover { filter: brightness(1.04); }
@keyframes lesson-button-shine {
  0%, 65% { transform: translateX(-160%) skewX(-18deg); }
  92%, 100% { transform: translateX(340%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
  .actions .action::before { animation: none; }
}

.hero-gallery{display:grid;grid-template-columns:3fr 4fr;gap:8px;align-items:start}
.hero-gallery img{display:block;width:100%;height:auto;border-radius:8px}
.hero-gallery .hero-work{margin:0;padding:0;min-width:0;border:0;border-radius:0;background:transparent;transform:none}
.hero-work:last-child{grid-column:1/-1}
 .hero-gallery{gap:22px 14px}
.hero-gallery .hero-work{position:relative}
.hero-work figcaption{position:absolute;z-index:1;bottom:-8px;left:-6px;display:grid;gap:1px;padding:5px 9px;border-radius:9px;background:#ffd51f;color:#17171c;font-size:11px;line-height:1.15;box-shadow:0 2px 8px #0003}
.hero-work:nth-child(2) figcaption,.hero-work:last-child figcaption{left:auto;right:-6px}
.hero-work figcaption strong{font-size:15px;line-height:1.15;font-weight:580;white-space:nowrap}

.hero-gallery .hero-work:nth-child(2) figcaption{bottom:-20px}
.hero-gallery{row-gap:28px}

.offer-price mark,.stats strong mark{background:#ffd51f;color:#101014;border-radius:.19em;padding:.02em .1em}

.hero{grid-template-areas:"meta gallery" "title gallery" "details gallery";grid-template-rows:auto auto auto;row-gap:0}
.hero h1{grid-area:title}
.hero-gallery{grid-area:gallery}
.hero-details{display:contents}
.hero-details>.meta{grid-area:meta;align-self:end}
.hero-body{grid-area:details;align-self:start}
@media(max-width:680px){
  .hero{grid-template-areas:"title" "gallery" "details";grid-template-rows:auto;gap:24px}
  .hero h1{margin:0}
  .hero-details{grid-area:details;display:block;padding-top:12px}
  .hero-details>.meta{margin-bottom:12px}
}

.practice-works figcaption{display:block;padding:0;margin:0 0 16px;font-size:21px;font-weight:580;line-height:1.25;text-wrap:balance}
.practice-works>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.practice-works img{border-radius:12px;width:100%;height:auto}

.practice-works>.practice-audits{margin-top:10px}

.practice-works .practice-roadtrip{grid-column:2;grid-row:1 / span 2;align-self:center;height:auto;min-height:0}

@media (min-width: 851px) {
  .practice { row-gap: 16px; }
  .practice .practice-prompts { grid-area: 2 / 2; }
  .practice > div:first-child { grid-area: 1 / 1 / 3 / 2; align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
  .practice-broadcasts { margin-top: auto; }
  .practice > div:nth-child(2) { grid-area: 1 / 2; }
  .practice-prompts { align-self: end; }
  .practice .practice-works { margin-bottom: 0; }
}
@media (max-width: 850px) {
  .practice { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .practice > div:first-child { display: contents; }
  .practice > div:nth-child(2) { margin-top: clamp(24px,5vw,80px); }
  .practice-broadcasts { order: 1; margin-top: 12px; }
}
.practice > div { min-width: 0; }

.practice .card :is(h3,p) { text-wrap: balance; }


/* Распределяем текст по строкам с учётом ширины каждой карточки. */
main :is(h1,h2,h3,p,li,figcaption), section :is(h1,h2,h3,p,li,figcaption), .title-mark > span { text-wrap: balance; }
@media (min-width: 681px) and (max-width: 1100px) {
  .topics .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topics .grid > .card { grid-column: auto; }
  .topics .grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Let each card keep its content height and share the row by intrinsic width. */
:is(.criteria, .audience) .grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
:is(.criteria, .audience) .grid > .card {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  width: max-content;
}
@media (min-width: 1101px) {
  :is(.criteria, .audience) .grid { flex-wrap: nowrap; }
}
@media (min-width: 681px) and (max-width: 1100px) {
  :is(.criteria, .audience) .grid > .card { max-width: calc(50% - 7px); }
}
.rail-controls .student-swipe-hint {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #6554c8;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-work figcaption {
    --swing: 5deg;
    transform-origin: 85% 10%;
    animation: price-tag-swing 8s ease-in-out infinite;
  }
  .hero-work:nth-of-type(n+2) figcaption { --swing: -5deg; transform-origin: 15% 10%; }
  .hero-work:nth-of-type(2) figcaption { animation-delay: 1s; }
  .hero-work:nth-of-type(3) figcaption { animation-delay: 2s; }
}
@keyframes price-tag-swing {
  0%, 12%, 100% { transform: none; }
  3% { transform: rotate(var(--swing)) scale(1.045); }
  6.5% { transform: rotate(calc(var(--swing) * -.52)) scale(1.015); }
  9% { transform: rotate(calc(var(--swing) * .19)); }
}

.rail-controls { justify-content: space-between; }
.story-arrows {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #eeedf0;
  border-radius: 999px;
}
.story-arrows button {
  width: 44px;
  height: 44px;
  border: 0;
  background: #17171c;
  color: white;
}
.story-arrows button:disabled { opacity: 1; color: #87858d; background: transparent; }
@media (hover: hover) {
  .story-arrows button:enabled:hover { background: #ffd51f; color: #17171c; }
}
