:root {
  --ink: #14243f;
  --muted: #5b687d;
  --forest: #0b3d82;
  --forest-2: #1261b5;
  --mint: #a9e7df;
  --mint-soft: #e8f7f5;
  --cream: #eef4fb;
  --sun: #f3aa78;
  --white: #fff;
  --line: rgba(20, 45, 85, .14);
  --shadow: 0 22px 60px rgba(21, 54, 101, .13);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f5f7fa; font-family: "DM Sans", sans-serif; line-height: 1.65; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.accessibility-tools { position: fixed; z-index: 55; top: 98px; right: 14px; width: min(230px, calc(100vw - 28px)); }
.accessibility-tools summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 13px; border: 1px solid rgba(20,45,85,.18); border-radius: 12px; color: #fff; background: var(--forest); box-shadow: 0 10px 26px rgba(18,55,47,.16); font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.accessibility-tools summary::-webkit-details-marker { display: none; }
.accessibility-tools summary::after { content: "+"; margin-left: auto; font-size: 16px; }
.accessibility-tools[open] summary::after { content: "−"; }
.accessibility-panel { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.98); backdrop-filter: blur(12px); box-shadow: 0 14px 34px rgba(18,55,47,.15); }
.accessibility-tools button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.accessibility-tools button:hover, .accessibility-tools button[aria-pressed="true"] { background: var(--mint-soft); }
.accessibility-tools button:disabled { cursor: not-allowed; opacity: .45; }
.accessibility-tools button span { min-width: 20px; font-weight: 800; text-align: center; }
.site-languages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.site-languages button { justify-content: center; min-width: 38px; }
.site-languages button.active { color: #fff; background: var(--forest); }
.speech-rate { grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 3px 8px; color: var(--muted); font-size: 10px; }
.speech-rate select { padding: 3px 5px; border-radius: 7px; font-size: 10px; }
.font-large { font-size: 118%; }
.high-contrast { --ink: #000; --muted: #181818; --forest: #002d6a; --forest-2: #004c9d; --mint: #c9fff8; --cream: #fff; --line: rgba(0,0,0,.35); }
.high-contrast .site-header, .high-contrast .service-card, .high-contrast .contact-form, .high-contrast .accessibility-tools { border-width: 2px; }
:focus-visible { outline: 3px solid #e5a527; outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { 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 { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; background: #fff; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transition: .25s ease; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(15,48,40,.05); }
.nav-wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 14px; background: var(--forest); color: #fff; font: 800 21px/1 "DM Sans", sans-serif; box-shadow: 0 8px 22px rgba(11,61,130,.2); }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { color: var(--forest); font: 800 22px "DM Sans", sans-serif; letter-spacing: -.7px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; }
nav { display: flex; align-items: center; gap: 21px; font-weight: 600; font-size: 13px; }
nav a { position: relative; }
nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--forest); transition: width .2s; }
nav a:hover::after, nav a:focus-visible::after { width: 100%; }
.nav-cta { padding: 12px 20px; border: 1px solid var(--forest); border-radius: 10px; color: #fff; background: var(--forest); }
.menu-toggle { display: none; background: none; border: 0; }

.hero { position: relative; min-height: 760px; padding: 152px 0 48px; overflow: hidden; color: #fff; background: linear-gradient(125deg, #102451 0%, #0b3d82 62%, #1261b5 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(to top, rgba(9,32,75,.35), transparent); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55; }
.hero-glow-one { width: 460px; height: 460px; right: -120px; top: 60px; background: radial-gradient(circle, rgba(100,220,209,.45), transparent 68%); }
.hero-glow-two { width: 360px; height: 360px; left: 25%; bottom: -160px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); }
.eyebrow, .section-kicker { margin: 0 0 20px; color: var(--forest-2); font: 700 12px "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: 1.8px; }
.hero .eyebrow { color: var(--mint); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--sun); }
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; line-height: 1.07; letter-spacing: -.035em; }
h1 { margin: 0; max-width: 720px; font-size: clamp(54px, 6.2vw, 88px); font-weight: 700; }
h1 em { color: var(--mint); font-style: normal; }
.hero-lead { max-width: 650px; margin: 28px 0 34px; color: rgba(255,255,255,.82); font-size: 19px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 24px; border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--forest); box-shadow: 0 14px 30px rgba(11,61,130,.22); }
.hero .button-primary { color: var(--forest); background: #fff; }
.button-primary:hover { background: #082f68; box-shadow: 0 20px 42px rgba(11,61,130,.27); }
.button-ghost { border: 1px solid rgba(18,55,47,.23); background: rgba(255,255,255,.82); }
.hero .button-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.button-accent { color: var(--forest); background: var(--mint); }
.button-dark { color: #fff; background: var(--ink); }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; color: #fff; font-size: 13px; font-weight: 600; }
.trust-row li { padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.08); }
.trust-row span { color: var(--forest-2); margin-right: 5px; }
.hero-visual { position: relative; min-height: 525px; display: grid; place-items: center; }
.hero-photo { position: relative; width: min(540px, 100%); margin: 0; overflow: hidden; border: 8px solid rgba(255,255,255,.18); border-radius: 36px 36px 100px 36px; background: #fff; box-shadow: 0 30px 70px rgba(4,24,64,.34); }
.hero-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 52% center; }
.hero-photo figcaption { position: absolute; right: 18px; bottom: 18px; left: 18px; display: grid; gap: 3px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(5,31,72,.88); backdrop-filter: blur(10px); }
.hero-photo figcaption span { color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.hero-photo figcaption strong { font-size: 15px; line-height: 1.35; }
.hero-visual-card { position: relative; width: min(440px, 94%); min-height: 390px; display: flex; flex-direction: column; justify-content: flex-end; padding: 42px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 38px 38px 110px 38px; color: #fff; background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); box-shadow: 0 30px 70px rgba(4,24,64,.28); }
.hero-visual-card::before, .hero-visual-card::after { content: ""; position: absolute; border: 1px solid rgba(188,232,215,.3); border-radius: 50%; }
.hero-visual-card::before { width: 360px; height: 360px; top: -145px; right: -120px; }
.hero-visual-card::after { width: 260px; height: 260px; top: -95px; right: -70px; }
.hero-visual-kicker { position: relative; z-index: 1; margin-bottom: 22px; color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: 1.8px; }
.hero-visual-card strong { position: relative; z-index: 1; max-width: 320px; font: 700 clamp(30px, 4vw, 48px)/1.06 "Source Serif 4", Georgia, serif; }
.hero-visual-card p { position: relative; z-index: 1; max-width: 320px; margin: 18px 0 0; color: rgba(255,255,255,.76); font-size: 16px; }
.hero-visual-lines { position: relative; z-index: 1; display: grid; gap: 9px; margin-top: 28px; }
.hero-visual-lines span { display: block; height: 3px; border-radius: 999px; background: var(--mint); opacity: .8; }
.hero-visual-lines span:nth-child(1) { width: 62%; }
.hero-visual-lines span:nth-child(2) { width: 44%; opacity: .55; }
.hero-visual-lines span:nth-child(3) { width: 74%; opacity: .35; }
.portrait-card { position: relative; width: min(410px, 92%); height: 500px; overflow: hidden; border: 8px solid rgba(255,255,255,.92); border-radius: 28px; background: linear-gradient(160deg, #dbeafa, #5276a8); box-shadow: 0 28px 70px rgba(4,24,64,.38); }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-meta { display: grid; gap: 5px; width: min(410px, 92%); margin-top: 16px; color: #fff; text-align: center; }
.portrait-meta strong { font-size: 23px; }
.portrait-meta span { color: rgba(255,255,255,.78); font-size: 14px; }
.hero-note { position: relative; z-index: 3; margin-top: 46px; color: rgba(255,255,255,.64); font-size: 12px; text-align: center; letter-spacing: 1.4px; text-transform: uppercase; }

.selko-view { min-height: 100vh; padding: 150px 0 90px; background: #fffdf7; }
.selko-container { max-width: 780px; }
.selko-view h1 { max-width: 760px; font-size: clamp(44px, 7vw, 72px); }
.selko-view h2 { margin: 0 0 16px; font-size: 30px; }
.selko-lead { max-width: 620px; font-size: 23px; line-height: 1.55; }
.selko-view section, .selko-emergency { margin-top: 28px; padding: 28px; border: 2px solid var(--forest); border-radius: 20px; background: #fff; }
.selko-view p, .selko-view li { max-width: 62ch; font-size: 19px; line-height: 1.7; }
.selko-view li { margin: 10px 0; }
.selko-view a { color: #004d40; font-weight: 800; text-decoration: underline; }
.selko-emergency { border-color: #852525; background: #fff1f1; }

.section { padding: 112px 0; }
.intro { padding: 92px 0; border-bottom: 1px solid var(--line); }
.split-heading { display: grid; grid-template-columns: .85fr 2.15fr; gap: 70px; }
.split-heading h2, .section-head h2, .arki-heading h2, .lecture-copy h2, .story h2, .contact h2 { margin: 0; font-size: clamp(37px, 4.4vw, 62px); }
.split-heading > div > p { max-width: 760px; color: var(--muted); font-size: 19px; }
.section-head { display: grid; grid-template-columns: 1.45fr .75fr; align-items: end; gap: 60px; margin-bottom: 48px; }
.section-head > p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.remote-service-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; margin-bottom: 20px; padding: 30px 34px; border: 1px solid rgba(11,61,130,.16); border-radius: var(--radius); background: linear-gradient(120deg, #f7fbff, var(--mint-soft)); box-shadow: 0 14px 38px rgba(21,54,101,.08); }
.remote-service-card .section-kicker { margin-bottom: 8px; }
.remote-service-card h3 { margin: 0 0 8px; color: var(--forest); font-size: clamp(25px, 3vw, 36px); }
.remote-service-card p:not(.section-kicker) { max-width: 780px; margin: 0; color: var(--muted); }
.remote-service-card .button { min-width: 190px; }
.service-card { position: relative; min-height: 360px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-7px); border-color: rgba(18,55,47,.25); box-shadow: var(--shadow); }
.service-card.delay-3 { transition-delay: .12s; }
.service-card.featured { color: #fff; background: var(--forest); }
.service-card.featured::after { content: ""; position: absolute; width: 220px; height: 220px; right: -95px; bottom: -80px; border-radius: 50%; background: rgba(188,232,215,.1); }
.card-number { position: absolute; top: 28px; right: 30px; color: #728198; font: 600 12px "DM Sans", sans-serif; }
.icon-box { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: 64px; border-radius: 17px; color: var(--forest); background: var(--mint-soft); font-size: 25px; }
.featured .icon-box { color: var(--mint); background: rgba(255,255,255,.1); }
.service-card h3 { margin: 0 0 15px; font-size: 25px; }
.service-card p { color: var(--muted); font-size: 15px; }
.featured p { color: rgba(255,255,255,.68); }
.text-link { padding: 0; border: 0; background: none; font-weight: 700; cursor: pointer; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.service-more { margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured .service-more { border-color: rgba(255,255,255,.2); }
.service-more summary { padding: 10px 0; color: var(--forest-2); font-size: 13px; font-weight: 800; cursor: pointer; }
.featured .service-more summary { color: var(--mint); }
.service-more ul { margin: 0 0 13px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.featured .service-more ul { color: rgba(255,255,255,.78); }
.service-more li { margin: 5px 0; }

.arki-section { position: relative; color: #fff; background: var(--forest); overflow: hidden; }
.arki-section::before { content: ""; position: absolute; width: 660px; height: 660px; left: -300px; top: -250px; border-radius: 50%; border: 1px solid rgba(188,232,215,.12); box-shadow: 0 0 0 70px rgba(188,232,215,.035), 0 0 0 150px rgba(188,232,215,.02); }
.light { color: var(--mint); }
.arki-heading { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; margin-bottom: 48px; }
.arki-heading > p { color: rgba(255,255,255,.67); font-size: 17px; }
.arki-app { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 34px; background: #fff; box-shadow: 0 34px 90px rgba(0,0,0,.22); }
.arki-app:has(.plan-result) { grid-template-columns: minmax(310px, .7fr) minmax(0, 1.3fr); }
.arki-form-panel { padding: 42px; color: var(--ink); }
.step-indicator { display: flex; align-items: center; width: 180px; margin-bottom: 34px; }
.step-indicator span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #75827d; background: #edf1ef; font-size: 11px; font-weight: 700; }
.step-indicator span.active { color: #fff; background: var(--forest); }
.step-indicator i { flex: 1; height: 1px; background: #dce4e0; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 16px; font: 700 18px "DM Sans", sans-serif; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.choice-grid input { position: absolute; opacity: 0; }
.choice-grid label { display: flex; flex-direction: column; gap: 7px; min-height: 84px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; color: #45564f; font-size: 12px; font-weight: 600; cursor: pointer; }
.choice-grid label:has(input:checked) { border-color: var(--forest-2); background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--forest-2); }
.choice-grid label span { color: var(--forest-2); font-size: 19px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compact-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid rgba(19,33,29,.18); border-radius: 13px; background: #fff; color: var(--ink); outline: none; }
input:not([type=checkbox]):not([type=range]), select, textarea { padding: 13px 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 4px rgba(28,81,69,.1); }
input[type=range] { accent-color: var(--forest); }
label output { float: right; color: var(--forest-2); }
.command-label { margin-top: 3px; }
.privacy-hint { color: #70807a; font-size: 11px; }
.arki-details { margin: 14px 0 6px; }
.arki-form-panel .button { width: 100%; margin-top: 8px; }
.arki-result-panel { min-height: 590px; padding: 42px; color: #fff; background: linear-gradient(145deg, #204e43, #0b2922); }
.result-empty { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.result-orbit { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 35px; border: 1px solid rgba(188,232,215,.34); border-radius: 50%; color: var(--sun); font-size: 25px; box-shadow: 0 0 0 13px rgba(188,232,215,.04); }
.result-empty h3, .plan-result h3 { margin: 0 0 14px; font-size: 31px; }
.result-empty p { color: rgba(255,255,255,.66); }
.result-empty ul { padding: 0; list-style: none; }
.result-empty li { margin: 10px 0; color: rgba(255,255,255,.85); }
.result-empty li::before { content: "✓"; margin-right: 9px; color: var(--mint); }
.plan-pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--mint); background: rgba(188,232,215,.1); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.plan-focus { display: grid; gap: 8px; margin: 22px 0; }
.plan-focus span { padding: 11px 13px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 13px; }
.week-plan { display: grid; gap: 7px; }
.day-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 12px; }
.day-row strong { color: var(--mint); }
.day-task { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; font-weight: 400; }
.day-task input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--mint); }
.day-minimum { display: block; margin-top: 4px; color: rgba(255,255,255,.65); font-size: 10px; }
.plan-meta { display: grid; gap: 7px; margin: 14px 0; }
.plan-meta p { margin: 0; color: rgba(255,255,255,.8); font-size: 12px; }
.plan-meta strong { color: var(--mint); }
.plan-actions { display: flex; gap: 8px; margin-top: 20px; }
.plan-actions { flex-wrap: wrap; }
.plan-actions button { padding: 9px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #fff; background: transparent; cursor: pointer; }
.plan-actions button:hover, .plan-actions button:focus-visible { background: rgba(255,255,255,.1); }
.plan-task-card { display: grid; gap: 12px; margin: 12px 0; padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.07); }
.plan-task-card.status-done { border-color: rgba(169,231,223,.65); background: rgba(169,231,223,.12); }
.plan-task-card.status-moved { border-style: dashed; }
.task-card-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.task-card-head > strong { color: var(--mint); font-size: 16px; }
.task-card-head label { min-width: 160px; }
.plan-task-card label { gap: 5px; color: rgba(255,255,255,.72); font-size: 11px; }
.plan-task-card label > span { font-weight: 800; }
.plan-task-card input, .plan-task-card textarea, .plan-task-card select { min-height: 44px; color: var(--ink); border-color: rgba(255,255,255,.2); background: #fff; font-size: 13px; }
.plan-task-card textarea { resize: vertical; }
.task-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.task-card-actions { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: end; gap: 8px; }
.task-card-actions button { min-height: 44px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #fff; background: transparent; cursor: pointer; }
.task-card-actions .delete-task { color: #ffd7d7; }
.plan-actions button { min-height: 44px; }
.tool-disclaimer { position: relative; max-width: 850px; margin: 24px auto 0; color: rgba(255,255,255,.52); font-size: 11px; text-align: center; }
.aino-banner { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 36px; padding: 24px 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.065); }
.aino-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px 18px 18px 5px; color: var(--forest); background: var(--mint); font: 800 24px "DM Sans", sans-serif; }
.aino-banner h3 { margin: 3px 0 5px; font-size: 21px; }
.aino-banner p { margin: 0; color: rgba(255,255,255,.63); font-size: 12px; }
.aino-banner > div:nth-child(2) > span { color: var(--mint); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }

.service-facts { background: var(--cream); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fact-card { min-height: 340px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(21,54,101,.07); }
.fact-card h3 { margin: 22px 0 14px; color: var(--forest); font-size: 27px; }
.fact-card p, .fact-card li { color: var(--muted); font-size: 14px; }
.fact-card ul { padding-left: 20px; }
.fact-card li { margin: 9px 0; }
.fact-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--forest); background: var(--mint-soft); }
.fact-icon svg, .icon-box svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact-card-status { border-color: #e1a177; background: #fffaf6; }
.status-label { display: inline-flex; margin: 0 0 8px; padding: 5px 9px; border-radius: 6px; color: #713812 !important; background: #ffe5d3; font-weight: 800; }
.status-ready { color: #0b503f !important; background: #dff5ee; }
.portal-section { padding-top: 54px; padding-bottom: 54px; background: #fff; }
.portal-callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; margin-top: 0; padding: 38px; border-radius: 20px; color: #fff; background: linear-gradient(125deg, #102451, var(--forest)); }
.portal-callout h3 { margin: 0 0 8px; font-size: 29px; }
.portal-callout p:not(.section-kicker) { max-width: 760px; margin-bottom: 0; color: rgba(255,255,255,.68); }
.portal-callout .section-kicker { color: var(--mint); }

.lecture-grid { display: grid; grid-template-columns: 1fr; align-items: center; gap: 80px; }
.story-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.image-tag { position: absolute; right: -24px; bottom: 28px; padding: 15px 20px; border-radius: 14px; background: var(--sun); font-size: 12px; font-weight: 800; }
.lecture-copy > p:not(.section-kicker) { color: var(--muted); font-size: 17px; }
.lecture-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 34px 0; }
.lecture-topics div { padding-top: 16px; border-top: 1px solid var(--line); }
.lecture-topics span { display: block; margin-bottom: 6px; color: #9a7a38; font-size: 10px; }
.lecture-topics strong { font: 700 15px "DM Sans", sans-serif; }
.lecture-topics p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.story { background: var(--cream); }
.story-copy .story-lead { margin-top: 28px; font-size: 19px; }
.story-copy > p:not(.section-kicker) { color: #4f5d58; }
.credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.credentials span { padding: 8px 12px; border: 1px solid rgba(18,55,47,.16); border-radius: 999px; background: rgba(255,255,255,.45); font-size: 11px; font-weight: 700; }
.story-visual { display: grid; place-items: center; }
.story-visual img { width: min(180px, 58%); height: auto; aspect-ratio: 1/1; margin: 0 auto; object-fit: contain; border: 5px solid #fff; border-radius: 28px; background: #fff; box-shadow: 0 18px 42px rgba(21,54,101,.14); }

.pricing { background: #fff; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; min-width: 0; padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: var(--cream); box-shadow: 0 18px 48px rgba(21,54,101,.09); }
.price-card-featured { color: #fff; border-color: transparent; background: linear-gradient(145deg, #102451, var(--forest)); }
.price-type { margin: 0 0 12px; color: var(--forest-2); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.price-card-featured .price-type { color: var(--mint); }
.price-card h3 { margin: 0 0 20px; color: var(--ink); font-size: 28px; }
.price-card-featured h3 { display: flex; align-items: end; justify-content: space-between; gap: 20px; color: #fff; }
.price-card-featured h3 span { font-size: 24px; }
.price-card-featured h3 strong { color: var(--mint); font-size: clamp(48px, 6vw, 72px); line-height: .9; }
.price-lead { margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.price-card ul { margin: 0 0 20px; padding-left: 20px; }
.price-card li { margin: 7px 0; }
.price-card-featured li, .price-card-featured .price-note { color: rgba(255,255,255,.78); }
.price-note { color: var(--muted); font-size: 13px; }
.service-boundary { margin: 8px 0 24px; padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.86); font-size: 13px; }
.price-card .button { align-self: flex-start; margin-top: auto; }
.price-card-featured .button-primary { color: var(--forest); background: #fff; }
.price-list { display: grid; gap: 8px; margin: 0 0 22px; }
.price-list div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 15px; border-radius: 12px; background: #fff; }
.price-list dt { font-weight: 700; }
.price-list dd { margin: 0; color: var(--forest); font-size: 19px; font-weight: 800; }
.travel-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; padding: 15px; border: 1px solid rgba(11,61,130,.18); border-radius: 14px; background: #fff; }
.travel-price strong { width: 100%; color: var(--forest); }
.travel-price span { font-size: 13px; }

.contact { color: #fff; background: #0c2822; }
.contact-grid { align-items: start; }
.contact-copy > p:not(.section-kicker) { color: rgba(255,255,255,.65); font-size: 17px; }
.contact-details { display: grid; gap: 10px; margin-top: 35px; }
.contact-details a { display: grid; }
.contact-details span { color: var(--mint); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.contact-details strong { font-size: 16px; }
.contact-form { display: grid; gap: 16px; padding: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.065); }
.contact-form input, .contact-form select, .contact-form textarea { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.contact-form option { color: var(--ink); background: #fff; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.4); }
.consent { display: grid; grid-template-columns: 18px 1fr; align-items: start; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 400; }
.consent input { margin-top: 3px; accent-color: var(--mint); }
.honeypot { position: absolute; left: -9999px; }
.form-status { min-height: 20px; margin: 0; font-size: 12px; }

footer { padding: 68px 0 24px; color: rgba(255,255,255,.7); background: #071d18; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr .7fr; gap: 55px; }
.brand-light strong { color: #fff; }
.brand-light small { color: rgba(255,255,255,.5); }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid > div:first-child p { max-width: 290px; }
.footer-grid strong { color: #fff; }
.footer-grid button { padding: 0; border: 0; color: inherit; background: none; cursor: pointer; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }

.chat-launcher { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 17px 12px 11px; border: 0; border-radius: 999px; color: #fff; background: var(--forest); box-shadow: 0 15px 40px rgba(10,42,34,.3); font-weight: 700; cursor: pointer; transition: opacity .18s ease, transform .18s ease; }
.aino-open .chat-launcher { opacity: 0; transform: translateY(10px); pointer-events: none; }
.aino-open .accessibility-tools { display: none; }
.chat-launcher > span:first-child { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--forest); background: var(--mint); }
.chat-panel { position: fixed; z-index: 70; top: 102px; right: 24px; bottom: 30px; display: flex; flex-direction: column; width: min(700px, calc(100vw - 48px)); height: auto; min-height: 500px; overflow: hidden; border: 1px solid rgba(18,55,47,.12); border-radius: 24px; background: #fff; box-shadow: 0 28px 90px rgba(8,33,27,.3); opacity: 0; transform: translateY(20px) scale(.97); pointer-events: none; transition: .22s ease; }
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; color: #fff; background: var(--forest); }
.chat-head > div { display: flex; align-items: center; gap: 10px; }
.chat-head > div > div { display: grid; }
.chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; color: var(--forest); background: var(--mint); font-weight: 800; }
.chat-head small { color: rgba(255,255,255,.65); font-size: 10px; }
.chat-head small i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #51d49d; }
.chat-close { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; color: #fff; background: none; font-size: 25px; cursor: pointer; }
.chat-notice { padding: 9px 14px; color: #53635d; background: var(--mint-soft); font-size: 10px; line-height: 1.45; }
.knowledge-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.knowledge-strip span { padding: 3px 6px; border-radius: 999px; color: var(--forest); background: #edf6f2; font-size: 8px; font-weight: 800; }
.knowledge-strip button { margin-left: auto; padding: 0; border: 0; color: var(--forest-2); background: none; font-size: 8px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.chat-context { display: grid; grid-template-columns: minmax(190px, .75fr) minmax(330px, 1.25fr); align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #f7f9fc; }
.language-picker, .age-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.language-picker > span, .age-picker > span { min-width: 57px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.language-picker button, .age-picker button { min-height: 44px; padding: 7px 10px; border: 1px solid #cfdaea; border-radius: 7px; color: var(--forest); background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.language-picker button.active, .age-picker button.active { color: #fff; border-color: var(--forest); background: var(--forest); }
.chat-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-modes button { min-height: 44px; padding: 7px 4px; border: 1px solid #d8e2de; border-radius: 9px; background: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }
.chat-modes button.active { color: #fff; border-color: var(--forest); background: var(--forest); }
.chat-messages { flex: 1 1 0; min-height: 140px; overflow-y: auto; overscroll-behavior: contain; padding: 20px; background: #f7faf8; }
.message { max-width: 90%; margin-bottom: 12px; padding: 13px 15px; border-radius: 15px; font-size: 15px; line-height: 1.55; }
.message p { margin: 0; }
.message.bot { border-radius: 15px 15px 15px 4px; background: #fff; box-shadow: 0 4px 14px rgba(18,55,47,.07); }
.chat-source-links { margin: 7px 0 0; padding-left: 20px; overflow-wrap: anywhere; }
.chat-source-links li { margin-top: 5px; }
.chat-source-links a { color: #164c72; text-decoration: underline; text-underline-offset: 2px; }
.message.bot strong { display: block; margin-top: 11px; }
.message.user { margin-left: auto; border-radius: 15px 15px 4px 15px; color: #fff; background: var(--forest-2); }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.quick-replies button { min-height: 44px; padding: 7px 12px; border: 1px solid #cfdcd6; border-radius: 999px; background: #fff; font-size: 10px; cursor: pointer; }
.chat-tools { display: flex; flex: 0 0 auto; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-tools button { min-height: 40px; padding: 8px 10px; border: 0; color: #63736c; background: transparent; font-size: 11px; text-decoration: underline; cursor: pointer; }
#chat-to-plan { margin-right: auto; border-radius: 7px; color: #fff; background: var(--forest); text-decoration: none; }
.crisis-card { margin: 8px 0; padding: 12px; border: 1px solid #e8b8b8; border-radius: 13px; background: #fff4f4; color: #6f2727; font-size: 12px; }
.crisis-card strong { display: block; margin-bottom: 4px; }
.crisis-card a { display: inline-block; margin: 8px 6px 0 0; padding: 7px 10px; border-radius: 999px; color: #fff; background: #8d2d2d; font-weight: 700; }
.chat-form { display: grid; flex: 1 1 0; grid-template-columns: 1fr 54px; align-items: stretch; gap: 9px; min-height: 140px; padding: 13px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { height: 100%; min-height: 0; max-height: none; padding: 13px 14px; line-height: 1.5; resize: none; }
.chat-form button { align-self: end; min-width: 54px; min-height: 54px; border: 0; border-radius: 12px; color: #fff; background: var(--forest); cursor: pointer; }

dialog { width: min(700px, calc(100% - 30px)); padding: 42px; border: 0; border-radius: 24px; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(6,24,20,.7); backdrop-filter: blur(5px); }
.modal-close { position: absolute; top: 15px; right: 18px; border: 0; background: none; font-size: 26px; cursor: pointer; }
#modal-content h2 { margin-top: 0; }
#modal-content h3 { margin-top: 25px; }
#modal-content p, #modal-content li { color: var(--muted); font-size: 14px; }

.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.motion-ready .reveal { opacity: 0; transform: translateY(18px); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@media (max-width: 960px) {
  .accessibility-tools { top: 80px; right: 10px; width: min(230px, calc(100vw - 20px)); }
  .accessibility-panel { max-height: calc(100vh - 145px); overflow-y: auto; }
  .site-languages { display: flex; }
  .accessibility-tools button { white-space: nowrap; }
  .menu-toggle { display: grid; gap: 4px; padding: 10px; }
  .menu-toggle > span:not(.sr-only) { width: 22px; height: 2px; background: var(--ink); }
  nav { position: absolute; top: 82px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  .hero { padding-top: 130px; }
  .hero-grid, .arki-heading, .lecture-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .trust-row { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-visual { margin-top: 25px; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .remote-service-card { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .icon-box { margin-bottom: 32px; }
  .arki-app { grid-template-columns: 1fr; }
  .arki-app:has(.plan-result) { grid-template-columns: 1fr; }
  .arki-result-panel { min-height: 500px; }
  .aino-banner { grid-template-columns: auto 1fr; }
  .aino-banner .button { grid-column: 1 / -1; }
  .facts-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .portal-callout { grid-template-columns: 1fr; }
  .story-grid { gap: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .compact-row { grid-template-columns: 1fr; }
  .task-card-actions { grid-template-columns: 1fr; }
  .task-card-actions button { width: 100%; }
  .price-card-featured h3 strong { font-size: 54px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-wrap { height: 72px; }
  nav { top: 72px; }
  .hero { min-height: auto; padding-top: 112px; }
  h1 { font-size: 49px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 455px; }
  .portrait-card { height: 430px; }
  .section { padding: 78px 0; }
  .split-heading { grid-template-columns: 1fr; gap: 10px; }
  .split-heading h2, .section-head h2, .arki-heading h2, .lecture-copy h2, .story h2, .contact h2 { font-size: 38px; }
  .arki-heading { gap: 10px; }
  .arki-form-panel, .arki-result-panel { padding: 25px 20px; }
  .aino-banner { grid-template-columns: 1fr; text-align: center; }
  .aino-mark { margin: 0 auto; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .compact-row, .form-row, .lecture-topics { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .image-tag { right: 12px; }
  .story-visual img { width: min(170px, 58%); }
  .contact-grid { gap: 45px; }
  .contact-form { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .chat-launcher { right: 14px; bottom: 16px; }
  .chat-panel { top: 76px; right: 8px; bottom: 16px; left: 8px; width: auto; min-height: 0; border-radius: 18px; }
  .chat-head { padding: 12px 14px; }
  .chat-context { grid-template-columns: 1fr; }
  .chat-notice, .knowledge-strip, .chat-context, .chat-modes { flex: 0 0 auto; }
  .chat-messages, .chat-form { min-height: 118px; }
  .price-card { padding: 28px 22px; }
  .price-card-featured h3 { align-items: start; flex-direction: column; }
  .task-card-head { align-items: stretch; flex-direction: column; }
  .task-card-head label { min-width: 0; }
  .task-meta-grid { grid-template-columns: 1fr; }
}

@supports (height: 100dvh) {
  @media (max-width: 640px) {
    .chat-panel { height: calc(var(--visual-viewport-height, 100dvh) - 92px); }
  }
}

@media (max-width: 640px) {
  .virtual-keyboard-open .chat-notice,
  .virtual-keyboard-open .knowledge-strip,
  .virtual-keyboard-open .chat-context,
  .virtual-keyboard-open .chat-modes { display: none; }
  .virtual-keyboard-open .chat-messages,
  .virtual-keyboard-open .chat-form { min-height: 72px; }
}

@media (max-height: 700px) and (min-width: 641px) {
  .chat-panel { top: 92px; bottom: 18px; }
  .chat-notice, .knowledge-strip { display: none; }
  .chat-messages, .chat-form { min-height: 110px; }
}

@media (min-width: 641px) and (max-width: 1100px) {
  nav { gap: 14px; font-size: 12px; }
}

@media print {
  body.print-plan-only > :not(#main), body.print-plan-only #main > :not(#arki) { display: none !important; }
  body.print-plan-only #arki { padding: 0; color: #000; background: #fff; }
  body.print-plan-only #arki .arki-heading, body.print-plan-only #arki .arki-form-panel, body.print-plan-only #arki .aino-banner, body.print-plan-only #arki .tool-disclaimer { display: none !important; }
  body.print-plan-only #arki .arki-app { display: block; border: 0; box-shadow: none; }
  body.print-plan-only #arki .arki-result-panel { min-height: 0; padding: 0; color: #000; background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.tools-section{background:#eaf5f7}.tools-section .container>p:not(.section-kicker){max-width:650px}.tools-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:22px}.tools-preview a{display:flex;flex-direction:column;gap:6px;text-decoration:none;background:#fff;border:1px solid #cbdfe6;border-radius:18px;padding:18px;color:#173c4c;font-size:1.6rem;box-shadow:0 8px 20px #163a5010}.tools-preview a strong{font-size:1.05rem}.tools-preview a span{font-size:.87rem;color:#4a6674}.tools-preview a:hover,.tools-preview a:focus-visible{border-color:#087d93;outline:3px solid #f3b343;outline-offset:2px}@media(max-width:800px){.tools-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.tools-preview a{padding:12px}}

.chat-tool-link{display:inline-block;margin:8px 0 0;padding:9px 12px;background:#def3eb;border:1px solid #88c5ad;border-radius:10px;color:#075b48;font-weight:800;text-decoration:none}.chat-tool-link:focus-visible{outline:3px solid #f3ae3e}

.arki-tools-link{margin:20px 0 0}.arki-tools-link .button{display:inline-block}
/* Aino: toimintopainikkeet samaan kokoon */
.chat-tools .chat-tool-link,
.chat-tools #chat-to-plan {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin:0;
  padding:8px 14px;
  border-radius:10px;
  line-height:1.2;
  white-space:nowrap;
}
.chat-tools .chat-tool-link { border:1px solid #88c5ad; }
@media (max-width:600px){
  .chat-tools .chat-tool-link,
  .chat-tools #chat-to-plan { flex:1 1 100%; min-height:48px; }
}
/* Ainon alatyökalut: tasainen neljän painikkeen rivi */
.chat-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:8px;justify-content:end}
.chat-tools .chat-tool-link,
.chat-tools #chat-to-plan,
.chat-tools #chat-voice,
.chat-tools #chat-clear{width:100%;min-height:48px;margin:0;padding:8px 10px;border:1px solid #c8d8d2;border-radius:10px;text-align:center;text-decoration:none;white-space:normal}
.chat-tools .chat-tool-link{background:#def3eb;color:#075b48;border-color:#88c5ad}
.chat-tools #chat-to-plan{background:var(--forest);color:#fff;border-color:var(--forest)}
.chat-tools #chat-voice,.chat-tools #chat-clear{color:#536a62;background:#fff;text-decoration:underline}
@media(max-width:600px){.chat-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.chat-tools .chat-tool-link,.chat-tools #chat-to-plan,.chat-tools #chat-voice,.chat-tools #chat-clear{min-height:48px}}

/* Mobiilinäkymän viimeistely: kuva kokonaan näkyviin ja kelluvat työkalut pois tekstin päältä */
@media (max-width: 960px) { .accessibility-tools { top: auto !important; bottom: 104px !important; right: 12px !important; z-index: 45 !important; max-width: calc(100% - 24px); } }
@media (max-width: 640px) { .portrait-card { width: min(100%, 300px); height: auto; aspect-ratio: 1 / 1; margin-inline: auto; } .portrait-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; } .story-visual img { width: min(180px, 58%); max-height: 180px; object-fit: contain; } }

/* Pidä alatunniste yhtenäisenä, vaikka skripti käynnistyisi useammin kuin kerran */
footer > .toimedi-footer-strip ~ .toimedi-footer-strip { display: none !important; }


/* Etusivun mobiiliasettelu: otsikko ensin, kuva vasta tekstin jälkeen */
@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: 104px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .hero-copy { position: relative; z-index: 2; width: 100%; margin: 0; }
  .hero-copy h1 { max-width: 100%; margin: 0 auto; font-size: clamp(40px, 10vw, 49px); line-height: 1.08; }
  .hero-visual { position: relative; inset: auto; z-index: 1; display: grid; width: 100%; min-height: 0; margin: 8px auto 0; }
  .hero-photo { position: relative; width: min(100%, 420px); height: auto; min-height: 0; margin: 0 auto; }
  .hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
  .site-header #main-nav { top: calc(100% + 8px); z-index: 60; max-height: calc(100vh - 160px); overflow-y: auto; }
  .site-header #main-nav:not(.open) { display: none; }
  .site-header #main-nav.open { display: flex; }
}


/* Saavutettavuustyökalut mobiilissa sisältövirtaan, jotta ne eivät peitä tekstiä. */
@media (max-width: 640px) {
  .accessibility-tools { position: relative; top: auto; right: auto; bottom: auto; left: auto; z-index: 2; width: min(calc(100% - 28px), 560px); margin: 12px auto 18px; }
  .accessibility-tools summary { justify-content: flex-start; min-height: 48px; padding: 10px 14px; font-size: 13px; }
  .accessibility-panel { position: static; width: 100%; max-height: none; overflow: visible; }
}

/* Saavutettavuusvalikko pysyy sivun normaalissa kulussa eikä kellu sisällön päällä. */
.accessibility-tools { position: relative; top: auto; right: auto; bottom: auto; left: auto; z-index: 2; width: min(230px, calc(100vw - 28px)); margin: 10px max(14px, calc((100vw - 1180px) / 2)) 14px auto; }
@media (max-width: 640px) {
  .accessibility-tools { width: min(calc(100% - 28px), 560px); margin: 12px auto 18px; }
}

/* Käyttäjän toive: saavutettavuus- ja selkokielivalikko kelluu näytön yläreunassa. */
.accessibility-tools { position: fixed; top: 98px; right: 14px; bottom: auto; left: auto; z-index: 55; width: min(230px, calc(100vw - 28px)); margin: 0; }
@media (max-width: 640px) {
  .accessibility-tools { top: 98px; right: 14px; width: min(230px, calc(100vw - 28px)); margin: 0; }
  .accessibility-panel { max-height: calc(100vh - 160px); overflow-y: auto; }
}

/* Päävalikon ja Toimedi-tunnuksen väli pysyy selkeänä myös kapealla työpöytänäytöllä. */
@media (min-width: 1100px) and (max-width: 1500px) {
  .nav-wrap { gap: 18px; }
  .nav-wrap .brand { flex: 0 0 auto; }
  #main-nav { flex: 1 1 auto; justify-content: flex-end; gap: 10px; font-size: 12px; }
  #main-nav .nav-cta { padding: 10px 12px; }
}
