/* СдалВсё.рф, unified public UI layer. Loaded last to keep legacy pages stable. */
:root {
  --sd-ink: #14201e;
  --sd-copy: #52615d;
  --sd-muted: #75817e;
  --sd-line: #dce4e1;
  --sd-line-strong: #cbd8d4;
  --sd-paper: #ffffff;
  --sd-canvas: #f5f8f6;
  --sd-mist: #eaf4f1;
  --sd-accent: #0b8f82;
  --sd-accent-deep: #08756b;
  --sd-radius: 18px;
  --sd-radius-sm: 11px;
  --sd-ease: cubic-bezier(.16, 1, .3, 1);
  --sd-shadow: 0 28px 80px -56px rgba(21, 54, 47, .46);
}

html, body { overflow-x: clip; }
body { background: var(--sd-paper); color: var(--sd-ink); }
.container { width: min(1240px, calc(100% - 48px)); }
.sd-home h1, .sd-home h2, .sd-home h3, .sd-tools-page h1, .sd-tools-page h2, .sd-tools-page h3 { color: var(--sd-ink); letter-spacing: -.052em; }
.sd-home p, .sd-tools-page p { text-wrap: pretty; }
.sd-kicker { margin: 0 0 17px; color: var(--sd-accent-deep); font-size: .76rem; font-weight: 700; letter-spacing: .01em; }
.sd-link { display: inline-flex; min-height: 48px; align-items: center; gap: 8px; color: var(--sd-ink); font-size: .92rem; font-weight: 650; transition: color 220ms var(--sd-ease), transform 220ms var(--sd-ease); }
.sd-link:hover { color: var(--sd-accent); }
.sd-link:active { transform: translateY(1px); }
.sd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.sd-actions .btn { min-width: 174px; }

/* Navigation is a single visible row on desktop. */
.site-header { border-color: rgba(203, 216, 212, .78); background: rgba(255, 255, 255, .9); backdrop-filter: blur(20px) saturate(130%); }
.top-strip { min-height: 28px; border-bottom: 1px solid var(--sd-line); background: var(--sd-canvas); color: var(--sd-copy); }
.top-strip span { font-size: .66rem; }
.header-inner { min-height: 72px; }
.desktop-nav { gap: 0; }
.desktop-nav a { position: relative; padding-inline: 9px; background: transparent !important; color: #596763; }
.desktop-nav a::after { position: absolute; right: 9px; bottom: 5px; left: 9px; height: 2px; border-radius: 2px; background: var(--sd-accent); content: ""; opacity: 0; transform: scaleX(.5); transition: opacity 180ms ease, transform 180ms var(--sd-ease); }
.desktop-nav a:hover, .desktop-nav a.is-current { color: var(--sd-ink); }
.desktop-nav a:hover::after, .desktop-nav a.is-current::after { opacity: 1; transform: scaleX(1); }
.desktop-nav .nav-neuro { color: var(--sd-accent-deep); }
.header-actions .btn { border-radius: 10px; }

/* Hero */
.sd-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(58px, 7vw, 98px) 0 0; background: var(--sd-paper); }
.sd-hero::before { position: absolute; z-index: -1; top: -12rem; right: -10rem; width: 46rem; height: 46rem; border-radius: 50%; background: radial-gradient(circle, rgba(11, 143, 130, .11), rgba(11, 143, 130, 0) 68%); content: ""; pointer-events: none; }
.sd-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(470px, 1.1fr); gap: clamp(54px, 8vw, 118px); align-items: center; }
.sd-hero-copy { max-width: 620px; padding-bottom: 10px; }
.sd-hero h1 { max-width: 10ch; margin: 0; font-size: clamp(3.5rem, 5.6vw, 6.1rem); line-height: .88; }
.sd-hero-lead { max-width: 51ch; margin: 27px 0 0; color: var(--sd-copy); font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.65; }
.sd-task-board { overflow: hidden; border: 1px solid var(--sd-line-strong); border-radius: var(--sd-radius); background: rgba(255, 255, 255, .86); box-shadow: var(--sd-shadow); backdrop-filter: blur(18px); }
.sd-task-board-head { display: grid; gap: 6px; padding: 22px 24px 18px; border-bottom: 1px solid var(--sd-line); }
.sd-task-board-head span { color: var(--sd-muted); font-size: .7rem; font-weight: 650; }
.sd-task-board-head strong { font-size: 1.04rem; }
.sd-task-board > a { display: grid; min-height: 68px; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 18px; align-items: center; padding: 11px 22px; border-bottom: 1px solid var(--sd-line); color: var(--sd-ink); transition: background-color 220ms ease, padding 220ms var(--sd-ease); }
.sd-task-board > a:last-child { border-bottom: 0; }
.sd-task-board > a:hover { padding-inline: 28px 17px; background: var(--sd-mist); }
.sd-task-board > a span { font-size: .93rem; font-weight: 650; }
.sd-task-board > a small { grid-column: 1; color: var(--sd-muted); font-size: .75rem; }
.sd-task-board > a i { grid-column: 2; grid-row: 1 / 3; color: var(--sd-accent); font-style: normal; }
.sd-hero-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(52px, 7vw, 88px); border-top: 1px solid var(--sd-line); }
.sd-hero-summary > div { display: grid; min-height: 112px; gap: 7px; align-content: center; padding: 23px 30px; border-left: 1px solid var(--sd-line); }
.sd-hero-summary > div:first-child { border-left: 0; padding-left: 0; }
.sd-hero-summary strong { font-size: .78rem; }
.sd-hero-summary span { max-width: 34ch; color: var(--sd-copy); font-size: .82rem; line-height: 1.5; }

/* Tools */
.sd-tools { position: relative; padding: clamp(82px, 10vw, 142px) 0; background: linear-gradient(180deg, var(--sd-canvas), #fff 70%); }
.sd-section-title { max-width: 780px; margin-bottom: 44px; }
.sd-section-title h2 { margin: 0; font-size: clamp(2.75rem, 5.4vw, 5.7rem); line-height: .92; }
.sd-section-title > p:last-child { max-width: 54ch; margin: 21px 0 0; color: var(--sd-copy); line-height: 1.65; }
.sd-tools-grid { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr); gap: 14px; }
.sd-tool-main { position: relative; display: grid; min-height: 560px; overflow: hidden; border-radius: var(--sd-radius); background: #14332f; color: #fff; box-shadow: 0 32px 90px -62px rgba(7, 65, 57, .86); }
.sd-tool-main::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 27, .02) 28%, rgba(8, 28, 25, .88) 100%); content: ""; }
.sd-tool-main picture, .sd-tool-main img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sd-tool-main img { object-fit: cover; transition: transform 700ms var(--sd-ease), filter 700ms ease; }
.sd-tool-main:hover img { transform: scale(1.035); filter: saturate(1.04); }
.sd-tool-main-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 48px); }
.sd-tool-main-copy small { margin-bottom: auto; color: rgba(255, 255, 255, .76); font-size: .76rem; font-weight: 650; }
.sd-tool-main-copy strong { max-width: 13ch; color: #fff; font-size: clamp(2.15rem, 3.55vw, 3.9rem); line-height: .95; letter-spacing: -.052em; }
.sd-tool-main-copy em { margin-top: 26px; color: #fff; font-size: .9rem; font-style: normal; font-weight: 650; }
.sd-tool-main-copy em i { margin-left: 6px; color: #66d4c7; font-style: normal; }
.sd-tool-catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sd-tool-catalog a { position: relative; display: flex; min-height: 171px; align-items: flex-end; justify-content: space-between; gap: 18px; overflow: hidden; padding: 25px; border: 1px solid var(--sd-line); border-radius: var(--sd-radius); background: rgba(255, 255, 255, .8); color: var(--sd-ink); transition: border-color 220ms ease, background-color 220ms ease, transform 250ms var(--sd-ease), box-shadow 250ms ease; }
.sd-tool-catalog a:first-child { grid-column: 1 / -1; min-height: 190px; background: linear-gradient(135deg, #e5f4f0, #f8fbfa 70%); }
.sd-tool-catalog a:hover { z-index: 1; border-color: #a9cfc6; background: #fff; box-shadow: var(--sd-shadow); transform: translateY(-3px); }
.sd-tool-catalog span, .sd-tool-catalog strong, .sd-tool-catalog small { display: block; }
.sd-tool-catalog strong { font-size: 1.05rem; letter-spacing: -.025em; }
.sd-tool-catalog small { max-width: 29ch; margin-top: 7px; color: var(--sd-copy); font-size: .76rem; line-height: 1.5; }
.sd-tool-catalog i { align-self: flex-start; color: var(--sd-accent); font-style: normal; }

/* Route uses sticky cards on wide screens and a compact flow on phones. */
.sd-route { padding: clamp(82px, 10vw, 144px) 0; background: var(--sd-paper); }
.sd-route-shell { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(56px, 9vw, 132px); align-items: start; }
.sd-route-intro { position: sticky; top: 132px; }
.sd-route-intro h2 { max-width: 11ch; margin: 0; font-size: clamp(2.7rem, 4.6vw, 4.8rem); line-height: .94; }
.sd-route-intro > p:not(.sd-kicker) { max-width: 42ch; margin: 22px 0 14px; color: var(--sd-copy); line-height: 1.65; }
.sd-route-steps { display: grid; gap: 18px; padding-top: 28px; }
.sd-route-steps article { position: sticky; top: 128px; min-height: 286px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--sd-line-strong); border-radius: var(--sd-radius); background: rgba(249, 251, 250, .96); box-shadow: 0 26px 70px -58px rgba(20, 55, 48, .58); }
.sd-route-steps article:nth-child(2) { top: 150px; background: #eef6f3; }
.sd-route-steps article:nth-child(3) { top: 172px; background: #e2f1ed; }
.sd-route-steps article > span { color: var(--sd-accent-deep); font-size: .74rem; font-weight: 700; }
.sd-route-steps h3 { max-width: 14ch; margin: 70px 0 12px; font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1; }
.sd-route-steps p { max-width: 45ch; margin: 0; color: var(--sd-copy); line-height: 1.55; }

/* Human help, regions, contact */
.sd-help { padding: clamp(82px, 10vw, 144px) 0; background: linear-gradient(180deg, var(--sd-canvas), #fff); }
.sd-help-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); gap: clamp(52px, 8vw, 116px); align-items: center; }
.sd-help-photo { display: block; overflow: hidden; border-radius: var(--sd-radius); background: #e6eeeb; }
.sd-help-photo img { display: block; width: 100%; aspect-ratio: 4 / 4.35; max-height: 650px; object-fit: cover; }
.sd-help-copy h2 { max-width: 10ch; margin: 0; font-size: clamp(2.8rem, 5vw, 5.1rem); line-height: .92; }
.sd-help-copy > p:not(.sd-kicker) { max-width: 54ch; margin: 23px 0 0; color: var(--sd-copy); line-height: 1.65; }
.sd-service-list { margin-top: 31px; border-top: 1px solid var(--sd-line); }
.sd-service-list div { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--sd-line); }
.sd-service-list span { font-size: .88rem; }
.sd-service-list strong { flex: 0 0 auto; font-size: .8rem; }
.sd-regions { padding: clamp(82px, 10vw, 136px) 0; }
.sd-regions-grid, .sd-contact-grid { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: clamp(54px, 9vw, 130px); align-items: start; }
.sd-region-copy h2, .sd-contact-copy h2 { max-width: 12ch; margin: 0; font-size: clamp(2.65rem, 4.8vw, 4.9rem); line-height: .94; }
.sd-region-copy > p:last-child, .sd-contact-copy > p:not(.sd-kicker) { max-width: 47ch; margin: 21px 0 0; color: var(--sd-copy); line-height: 1.65; }
.sd-region-links { border-top: 1px solid var(--sd-line-strong); }
.sd-region-links a { display: grid; min-height: 100px; grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; border-bottom: 1px solid var(--sd-line); color: var(--sd-ink); transition: padding 220ms var(--sd-ease), color 180ms ease; }
.sd-region-links a:hover { padding-inline: 12px 2px; color: var(--sd-accent-deep); }
.sd-region-links span { color: var(--sd-copy); font-size: .84rem; }
.sd-region-links i { color: var(--sd-accent); font-style: normal; }
.sd-contact { padding: clamp(82px, 9vw, 128px) 0; background: #eaf4f1; }
.sd-contact-copy .btn { margin-top: 28px; }
.sd-social-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sd-social-list a { display: grid; min-height: 92px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 17px; border: 1px solid #ccddd8; border-radius: var(--sd-radius-sm); background: rgba(255, 255, 255, .64); color: var(--sd-ink); transition: border-color 180ms ease, background-color 180ms ease, transform 220ms var(--sd-ease); }
.sd-social-list a:hover { border-color: #a9cac2; background: #fff; transform: translateY(-2px); }
.sd-social-list span, .sd-social-list strong, .sd-social-list small { display: block; }
.sd-social-list strong { font-size: .88rem; }
.sd-social-list small { margin-top: 4px; color: var(--sd-muted); font-size: .72rem; }
.sd-social-list i { color: var(--sd-accent); font-style: normal; }
.sd-faq { padding: clamp(80px, 9vw, 128px) 0; }
.sd-faq .sd-section-title { margin-bottom: 34px; }
.sd-faq-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--sd-line-strong); }
.sd-faq-grid article { min-height: 176px; padding: 25px 24px 20px; border-left: 1px solid var(--sd-line); }
.sd-faq-grid article:first-child { border-left: 0; padding-left: 0; }
.sd-faq-grid h3 { margin: 0 0 12px; font-size: 1rem; letter-spacing: -.025em; }
.sd-faq-grid p { max-width: 31ch; margin: 0; color: var(--sd-copy); font-size: .83rem; line-height: 1.55; }

/* Student tools */
.stw-hero { padding: clamp(58px, 7vw, 96px) 0 clamp(52px, 6vw, 76px); background: linear-gradient(180deg, #fff, var(--sd-canvas)); }
.stw-hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr); gap: clamp(48px, 8vw, 112px); align-items: end; }
.stw-hero-copy h1 { max-width: 10ch; margin: 0; font-size: clamp(3.3rem, 5.5vw, 5.9rem); line-height: .9; }
.stw-hero-copy > p:last-child { max-width: 48ch; margin: 23px 0 0; color: var(--sd-copy); line-height: 1.65; }
.stw-jump-nav { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid var(--sd-line-strong); border-radius: var(--sd-radius); background: rgba(255, 255, 255, .88); }
.stw-jump-nav a { display: flex; min-height: 132px; flex-direction: column; justify-content: flex-end; padding: 20px 16px; border-left: 1px solid var(--sd-line); color: var(--sd-ink); transition: background-color 180ms ease, color 180ms ease; }
.stw-jump-nav a:first-child { border-left: 0; }
.stw-jump-nav a:hover { background: var(--sd-mist); color: var(--sd-accent-deep); }
.stw-jump-nav span, .stw-jump-nav small { display: block; }
.stw-jump-nav span { font-size: .83rem; font-weight: 700; }
.stw-jump-nav small { margin-top: 6px; color: var(--sd-muted); font-size: .67rem; line-height: 1.35; }
.stw-workbench { padding: clamp(68px, 8vw, 116px) 0; }
.stw-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: clamp(44px, 7vw, 96px); align-items: start; }
.stw-sidebar { position: sticky; top: 126px; display: grid; border-top: 1px solid var(--sd-line-strong); }
.stw-sidebar strong { padding: 18px 0 12px; font-size: .78rem; }
.stw-sidebar a { padding: 10px 0; color: var(--sd-copy); font-size: .79rem; transition: color 180ms ease, transform 180ms var(--sd-ease); }
.stw-sidebar a:hover { color: var(--sd-accent-deep); transform: translateX(4px); }
.stw-sidebar span { margin-top: 18px; color: var(--sd-muted); font-size: .7rem; line-height: 1.5; }
.stw-modules { display: grid; gap: 94px; }
.stw-module { scroll-margin-top: 112px; }
.stw-module-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .7fr); gap: 42px; align-items: end; margin-bottom: 24px; }
.stw-module-head h2 { max-width: 14ch; margin: 0; font-size: clamp(2.25rem, 4vw, 4rem); line-height: .95; }
.stw-module-head > p { max-width: 43ch; margin: 0 0 3px; color: var(--sd-copy); font-size: .86rem; line-height: 1.55; }
.stw-tool-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 12px; padding: 12px; border: 1px solid var(--sd-line-strong); border-radius: var(--sd-radius); background: var(--sd-canvas); }
.stw-panel { min-width: 0; min-height: 360px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--sd-line); border-radius: 12px; background: #fff; box-shadow: none; }
.stw-form { display: flex; flex-direction: column; }
.stw-form .btn { align-self: flex-start; margin-top: auto; }
.stw-field-wide { display: grid; gap: 8px; }
.stw-field-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 17px; }
.stw-form label { color: var(--sd-ink); font-size: .77rem; font-weight: 650; }
.stw-form .input, .stw-form .select, .stw-form .textarea { min-height: 48px; border-color: var(--sd-line-strong); border-radius: 9px; background: #fff; font-size: .88rem; }
.stw-form .textarea { min-height: 164px; resize: vertical; }
.stw-form .input:focus, .stw-form .select:focus, .stw-form .textarea:focus { border-color: var(--sd-accent); box-shadow: 0 0 0 3px rgba(11, 143, 130, .12); }
.stw-result { display: flex; flex-direction: column; background: #f9fbfa; }
.stw-result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stw-result-head h3 { margin: 0; font-size: 1rem; letter-spacing: -.025em; }
.stw-copy { min-height: 40px; padding: 0 13px; border: 1px solid var(--sd-line-strong); border-radius: 8px; background: #fff; color: var(--sd-ink); font-size: .72rem; font-weight: 650; transition: border-color 180ms ease, background 180ms ease; }
.stw-copy:hover { border-color: #abcfc6; background: var(--sd-mist); }
.stw-result .tool-output { min-height: 236px; margin: 22px 0 0; overflow: auto; border: 0; background: transparent; color: var(--sd-copy); font-family: "Golos Text", Arial, sans-serif; font-size: .8rem; line-height: 1.58; white-space: pre-wrap; }
.stw-status { min-height: 19px; margin-top: 12px; color: var(--sd-accent-deep); font-size: .73rem; }
.stw-next { padding: clamp(72px, 9vw, 124px) 0; background: #eaf4f1; }
.stw-next-grid { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr); gap: clamp(56px, 9vw, 130px); align-items: center; }
.stw-next h2 { max-width: 10ch; margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.7rem); line-height: .94; }
.stw-next p:not(.sd-kicker) { max-width: 43ch; color: var(--sd-copy); line-height: 1.6; }
.stw-next nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stw-next nav a { display: flex; min-height: 148px; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px; border: 1px solid #ccddd8; border-radius: var(--sd-radius); background: rgba(255, 255, 255, .7); color: var(--sd-ink); transition: background 180ms ease, transform 220ms var(--sd-ease); }
.stw-next nav a:hover { background: #fff; transform: translateY(-3px); }
.stw-next nav span, .stw-next nav strong, .stw-next nav small { display: block; }
.stw-next nav small { margin-top: 7px; color: var(--sd-muted); font-size: .74rem; }
.stw-next nav i { align-self: flex-start; color: var(--sd-accent); font-style: normal; }

/* Promotion popup: light, compact and readable. */
.community-popup { right: 24px; bottom: 24px; width: min(430px, calc(100% - 32px)); max-height: min(760px, calc(100dvh - 48px)); overflow: auto; border: 1px solid var(--sd-line-strong); border-radius: 18px; background: rgba(255, 255, 255, .97); box-shadow: 0 30px 90px -38px rgba(18, 48, 42, .52); backdrop-filter: blur(20px); }
.community-head { padding: 24px 24px 10px; background: transparent; }
.community-kicker { color: var(--sd-accent-deep); font-size: .68rem; letter-spacing: .01em; }
.community-title { max-width: 15ch; margin-top: 9px; color: var(--sd-ink); font-size: 1.55rem; line-height: 1.06; letter-spacing: -.04em; }
.community-close { border-color: var(--sd-line); background: var(--sd-canvas); color: var(--sd-copy); }
.community-text { padding: 0 24px; color: var(--sd-copy); font-size: .82rem; line-height: 1.5; }
.community-benefit { margin: 15px 24px 10px; border-color: #c8dfd9; border-radius: 11px; background: var(--sd-mist); }
.community-benefit span { color: var(--sd-accent-deep); }
.referral-note-featured { margin-inline: 24px; border-radius: 11px; background: var(--sd-canvas); }
.community-referral-note, .community-links-label, .community-links { margin-inline: 24px; }
.community-links { padding-bottom: 22px; }
.community-link { border-color: var(--sd-line); border-radius: 10px; background: #fff; }

@media (max-width: 767px) {
  .mobile-contact-bar { pointer-events: none; opacity: 0; transform: translateY(110%); transition: opacity 220ms ease, transform 300ms var(--sd-ease); }
  .mobile-contact-bar.is-visible { pointer-events: auto; opacity: 1; transform: translateY(0); }
}

/* Reveal inspired by React Bits Animated Content, implemented without a framework dependency. */
.js .sd-reveal { opacity: 0; transform: translateY(26px); }
.js .sd-reveal.premium-reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 680ms var(--sd-ease) var(--reveal-delay, 0ms), transform 680ms var(--sd-ease) var(--reveal-delay, 0ms); }

@media (max-width: 1160px) {
  .desktop-nav a { padding-inline: 7px; font-size: .72rem; }
  .sd-hero-grid, .stw-hero-grid { grid-template-columns: minmax(0, .82fr) minmax(430px, 1.18fr); gap: 54px; }
}

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .sd-hero-grid, .stw-hero-grid, .sd-route-shell, .sd-help-grid, .sd-regions-grid, .sd-contact-grid, .stw-next-grid { grid-template-columns: 1fr; }
  .sd-hero-copy { max-width: 760px; }
  .sd-task-board { max-width: 760px; }
  .sd-tools-grid { grid-template-columns: 1fr; }
  .sd-tool-main { min-height: 500px; }
  .sd-route-intro, .stw-sidebar { position: static; }
  .sd-route-intro { max-width: 760px; }
  .sd-route-steps article, .sd-route-steps article:nth-child(2), .sd-route-steps article:nth-child(3) { top: 104px; }
  .sd-help-photo { max-width: 760px; }
  .sd-faq-grid { grid-template-columns: 1fr 1fr; }
  .sd-faq-grid article:nth-child(3) { border-left: 0; }
  .stw-hero-copy h1 { max-width: 13ch; }
  .stw-layout { grid-template-columns: 1fr; }
  .stw-sidebar { display: none; }
}

@media (max-width: 767px) {
  .container { width: min(100% - 32px, 1240px); }
  .sd-actions { align-items: stretch; flex-direction: column; }
  .sd-actions .btn, .sd-actions .sd-link { width: 100%; justify-content: center; }
  .sd-hero { padding-top: 36px; }
  .sd-hero::before { top: -14rem; right: -19rem; width: 38rem; height: 38rem; }
  .sd-hero-grid { gap: 31px; }
  .sd-hero h1 { max-width: 9.5ch; font-size: clamp(3rem, 14.7vw, 4.4rem); line-height: .9; }
  .sd-hero-lead { margin-top: 20px; font-size: 1rem; line-height: 1.55; }
  .sd-task-board { border-radius: 13px; box-shadow: none; }
  .sd-task-board-head { padding: 18px 18px 14px; }
  .sd-task-board > a { min-height: 62px; padding: 10px 17px; }
  .sd-task-board > a:hover { padding-inline: 17px; }
  .sd-hero-summary { grid-template-columns: 1fr; margin-top: 43px; padding: 12px 0; }
  .sd-hero-summary > div, .sd-hero-summary > div:first-child { min-height: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--sd-line); }
  .sd-hero-summary > div:first-child { border-top: 0; }
  .sd-tools, .sd-route, .sd-help, .sd-regions, .sd-contact, .sd-faq { padding: 64px 0 72px; }
  .sd-section-title { margin-bottom: 28px; }
  .sd-section-title h2 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .sd-tool-main { min-height: 360px; border-radius: 13px; }
  .sd-tool-main-copy { padding: 24px; }
  .sd-tool-main-copy strong { max-width: 14ch; font-size: 2.35rem; }
  .sd-tool-catalog { grid-template-columns: 1fr; gap: 10px; }
  .sd-tool-catalog a, .sd-tool-catalog a:first-child { grid-column: auto; min-height: 116px; padding: 20px; border-radius: 12px; }
  .sd-route-shell { gap: 30px; }
  .sd-route-intro h2, .sd-help-copy h2, .sd-region-copy h2, .sd-contact-copy h2 { font-size: clamp(2.45rem, 11.6vw, 3.5rem); }
  .sd-route-steps { gap: 10px; padding-top: 0; }
  .sd-route-steps article, .sd-route-steps article:nth-child(2), .sd-route-steps article:nth-child(3) { position: relative; top: auto; min-height: 0; padding: 23px; border-radius: 12px; }
  .sd-route-steps h3 { margin-top: 42px; font-size: 1.75rem; }
  .sd-help-grid { gap: 36px; }
  .sd-help-photo img { aspect-ratio: 4 / 3; max-height: 270px; object-position: center; }
  .sd-service-list div { align-items: flex-start; flex-direction: column; gap: 6px; padding: 13px 0; }
  .sd-regions-grid, .sd-contact-grid { gap: 34px; }
  .sd-region-links a { min-height: 82px; grid-template-columns: minmax(100px, .45fr) minmax(0, 1fr) auto; gap: 13px; }
  .sd-social-list, .sd-faq-grid { grid-template-columns: 1fr; }
  .sd-social-list a { min-height: 76px; }
  .sd-faq-grid article, .sd-faq-grid article:first-child, .sd-faq-grid article:nth-child(3) { min-height: 0; padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--sd-line); }

  .stw-hero { padding: 38px 0 42px; }
  .stw-hero-grid { gap: 30px; }
  .stw-hero-copy h1 { max-width: 10ch; font-size: clamp(2.85rem, 13.4vw, 4.1rem); }
  .stw-jump-nav { grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: 12px; }
  .stw-jump-nav a { min-height: 88px; padding: 14px 11px; border-top: 1px solid var(--sd-line); }
  .stw-jump-nav a:nth-child(-n+3) { border-top: 0; }
  .stw-jump-nav a:nth-child(4) { border-left: 0; }
  .stw-workbench { padding: 58px 0 72px; }
  .stw-modules { gap: 72px; }
  .stw-module { scroll-margin-top: 80px; }
  .stw-module-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
  .stw-module-head h2 { font-size: clamp(2.25rem, 10.7vw, 3.2rem); }
  .stw-tool-grid { grid-template-columns: 1fr; padding: 8px; border-radius: 13px; }
  .stw-panel { min-height: 0; padding: 20px; }
  .stw-field-row { grid-template-columns: 1fr; }
  .stw-form .btn { width: 100%; margin-top: 24px; }
  .stw-result { min-height: 300px; }
  .stw-result .tool-output { min-height: 205px; }
  .stw-next { padding: 62px 0 72px; }
  .stw-next-grid { gap: 30px; }
  .stw-next h2 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .stw-next nav { grid-template-columns: 1fr; }
  .stw-next nav a { min-height: 112px; padding: 20px; border-radius: 12px; }

  .community-popup { right: 10px; bottom: 78px; left: 10px; width: auto; max-height: calc(100dvh - 96px); border-radius: 14px; }
  .community-head { padding: 21px 20px 8px; }
  .community-title { max-width: 16ch; font-size: 1.4rem; }
  .community-text { padding-inline: 20px; }
  .community-benefit, .referral-note-featured, .community-referral-note, .community-links-label, .community-links { margin-inline: 20px; }
  .community-links { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 390px) {
  .container { width: min(100% - 24px, 1240px); }
  .sd-hero h1 { font-size: 2.75rem; }
  .sd-task-board > a small { font-size: .7rem; }
  .sd-region-links a { grid-template-columns: 1fr auto; }
  .sd-region-links span { grid-column: 1; }
  .sd-region-links i { grid-column: 2; grid-row: 1 / 3; }
  .community-links { grid-template-columns: 1fr; }
  .community-link em { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .js .sd-reveal, .js .sd-reveal.premium-reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .sd-tool-main img, .sd-tool-catalog a, .sd-social-list a, .stw-next nav a { transition: none; }
}
