/* D54: hero-only composition. No selectors outside .hero-d54. */
.hero-d54{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);grid-template-areas:"heading teacher" "method teacher" "offer teacher" "action teacher";column-gap:65px;row-gap:0;padding-top:48px;padding-bottom:64px;align-items:start}
.hero-d54 .d54-heading{grid-area:heading}.hero-d54 .eyebrow{font-size:12px;letter-spacing:.07em;margin:0 0 25px;color:var(--muted)}
.hero-d54 h1{font-size:57px;line-height:1.12;letter-spacing:-.055em;max-width:none;margin:0;color:var(--ink)}.hero-d54 h1>span{display:block}.hero-d54 .d54-subject{font-size:42px;line-height:1.3;letter-spacing:-.045em;margin:6px 0 14px}.hero-d54 .d54-result{display:inline-block;position:relative;color:white;background:var(--purple);padding:3px 15px 10px 10px;border-radius:9px;transform:rotate(-1.7deg);transform-origin:left center}
.hero-d54 .d54-teacher{grid-area:teacher;margin:0;padding-top:4px;position:relative;align-self:center;min-width:0}.hero-d54 .d54-portrait{position:relative;margin:0 0 24px;background:var(--lilac);border-radius:180px 180px 28px 28px;transform:rotate(3deg)}.hero-d54 .d54-portrait img{width:100%;height:480px;object-fit:cover;object-position:50% 30%;border-radius:inherit}.hero-d54 .d54-star{position:absolute;right:-23px;top:43px;font-size:103px;color:var(--coral);line-height:1;transform:rotate(8deg)}.hero-d54 figcaption{font-size:20px;line-height:1.6;color:var(--ink);max-width:360px;margin-left:10px}.hero-d54 figcaption strong{font-weight:800}.hero-d54 figcaption>span{display:block;font-size:16px;color:var(--muted);margin-top:3px}
.hero-d54 .d54-method{grid-area:method;font-size:17px;line-height:1.75;color:var(--ink);margin:30px 0 28px;max-width:540px}.hero-d54 .d54-method strong{font-weight:800;text-decoration:underline;text-decoration-color:var(--coral);text-decoration-thickness:3px;text-underline-offset:5px}
.hero-d54 .d54-offer{grid-area:offer;padding-top:23px;border-top:1px solid var(--line);max-width:540px}.hero-d54 .d54-price{display:flex;align-items:center;gap:23px;color:var(--ink)}.hero-d54 .d54-price>strong{font-size:66px;font-weight:800;line-height:1;letter-spacing:-.065em;white-space:nowrap}.hero-d54 .d54-price>strong>span{font-size:23px;letter-spacing:-.03em}.hero-d54 .d54-period{font-size:15px;line-height:1.5}.hero-d54 .d54-per-lesson{font-size:13px;line-height:1.65;margin-top:12px;color:var(--muted)}.hero-d54 .d54-continuation{font-size:14px;line-height:1.65;margin-top:15px;color:var(--muted)}.hero-d54 .d54-continuation strong{color:var(--ink);font-weight:600}
.hero-d54 .d54-actions{grid-area:action;margin-top:26px;display:block}.hero-d54 .d54-actions .button{font-size:16px;min-height:59px;padding:18px 25px;gap:42px;border-radius:13px}.hero-d54 .d54-actions .button:focus-visible{outline:3px solid var(--ink);outline-offset:5px}
@media(min-width:801px) and (max-width:1100px){.hero-d54{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);column-gap:35px}.hero-d54 h1{font-size:44px}.hero-d54 .d54-subject{font-size:34px}.hero-d54 .d54-portrait img{height:410px}.hero-d54 .d54-star{font-size:75px;right:-16px}.hero-d54 figcaption{font-size:18px}}
@media(max-width:800px){.hero-d54{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "teacher" "method" "offer" "action";padding-top:29px;padding-bottom:38px;gap:0}.hero-d54 .eyebrow{font-size:11px;line-height:1.6;margin:0 0 19px;letter-spacing:.04em}.hero-d54 h1{font-size:37px;line-height:1.13;letter-spacing:-.055em;margin:0}.hero-d54 .d54-subject{font-size:28px;line-height:1.3;margin:5px 0 10px}.hero-d54 .d54-result{font-size:35px;padding:3px 9px 8px 7px;border-radius:7px}.hero-d54 .d54-teacher{display:flex;align-items:center;gap:21px;margin:28px 0 0;padding:0;max-width:100%}.hero-d54 .d54-portrait{width:102px;min-width:102px;margin:0;border-radius:50%;transform:rotate(-5deg)}.hero-d54 .d54-portrait img{width:102px;height:108px;object-position:50% 26%}.hero-d54 .d54-star{font-size:41px;right:-9px;top:-5px}.hero-d54 figcaption{margin:0;font-size:16px;line-height:1.5;max-width:235px}.hero-d54 figcaption>span{display:inline;font-size:14px;line-height:1.6;margin:0}.hero-d54 .d54-method{font-size:16px;line-height:1.7;margin:24px 0;max-width:none}.hero-d54 .d54-offer{max-width:none;padding-top:22px}.hero-d54 .d54-price{gap:20px}.hero-d54 .d54-price>strong{font-size:62px}.hero-d54 .d54-price>strong>span{font-size:20px}.hero-d54 .d54-period{font-size:14px;line-height:1.55}.hero-d54 .d54-per-lesson{font-size:13px;line-height:1.65;margin-top:12px}.hero-d54 .d54-continuation{font-size:14px;line-height:1.65;margin-top:16px}.hero-d54 .d54-actions{margin-top:23px}.hero-d54 .d54-actions .button{width:100%;font-size:16px;min-height:58px;justify-content:space-between;padding:18px 22px;gap:14px}}
@media(max-width:360px){.hero-d54 h1{font-size:34px}.hero-d54 .d54-subject{font-size:25px}.hero-d54 .d54-result{font-size:31px}.hero-d54 .d54-teacher{gap:16px}.hero-d54 .d54-portrait{width:86px;min-width:86px}.hero-d54 .d54-portrait img{width:86px;height:94px}.hero-d54 figcaption{font-size:15px}.hero-d54 .d54-price{gap:15px}.hero-d54 .d54-price>strong{font-size:56px}.hero-d54 .d54-period{font-size:14px}.hero-d54 .d54-method{font-size:16px}}

.hero-d54 .d54-mobile-break{display:none}.hero-d54 .d54-no-wrap{white-space:nowrap}.hero-d54 .d54-per-lesson{font-size:14px}
@media(max-width:800px){.hero-d54 .d54-mobile-break{display:initial}}
