/* Air Fryer Guide — site styles. Plain CSS, no build step. */
:root {
  --paper: #f6f0e6;
  --paper-2: #efe5d4;
  --surface: #fffbf5;
  --ink: #1f1914;
  --ink-2: #4a4038;
  --muted: #7a6e62;
  --line: #e3d7c3;
  --terra: #b5471d;
  --terra-d: #8c3414;
  --terra-l: #f3dccd;
  --herb: #3f5348;
  --herb-l: #dfe7df;
  --gold: #e3a33b;
  --bad: #b3261e;
  --bad-l: #f7dcd8;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgb(31 25 20 / .06), 0 8px 24px rgb(31 25 20 / .07);
  --shadow-lg: 0 2px 6px rgb(31 25 20 / .08), 0 24px 60px rgb(31 25 20 / .16);
  --f-head: "Fraunces", "Literata", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --fly-space: 0px;
}
:lang(ja) { --f-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; --f-head: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", var(--f-body); }
:lang(ko) { --f-body: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; --f-head: var(--f-body); }
:lang(hi) { --f-body: "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", Mangal, sans-serif; --f-head: var(--f-body); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--f-body); overflow-x: clip;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
:lang(ja) body, :lang(ko) body, :lang(hi) body { line-height: 1.8; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--terra); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-d); }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(hi) h1, :lang(hi) h2 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem); font-variation-settings: "opsz" 120; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.15rem); font-variation-settings: "opsz" 72; }
h3 { font-size: 1.14rem; font-family: var(--f-body); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 22px; height: 22px; flex: none; }
.ico--sm { width: 17px; height: 17px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin-bottom: 14px; }
:lang(ja) .kicker, :lang(ko) .kicker, :lang(hi) .kicker { letter-spacing: .04em; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font: 700 .95rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; }
.btn--primary { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgb(181 71 29 / .28); }
.btn--primary:hover { background: var(--terra-d); color: #fff; }
.btn--play { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgb(31 25 20 / .22); }
.btn--play .ico { fill: #7ee2a8; stroke: none; }
.btn--play:hover { background: #000; color: #fff; }
.btn--app { background: var(--ink); color: #fff; padding: 8px 16px; min-height: 40px; font-size: .88rem; }
.btn--app .ico { fill: #7ee2a8; stroke: none; width: 15px; height: 15px; }
.btn--app:hover { color: #fff; background: #000; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgb(246 240 230 / .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgb(227 215 195 / .8); }
.topbar__in { max-width: var(--wrap); margin: auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 3px 10px rgb(181 71 29 / .25); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font: 600 1.14rem/1.1 var(--f-head); white-space: nowrap; }
.brand small { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.mainnav { margin-left: auto; }
.mainnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav a { display: block; padding: 8px 11px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.mainnav a:hover, .mainnav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.langmenu { position: relative; }
.flag { display: block; flex-shrink: 0; width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(31 25 20 / .14); }
.langmenu summary { list-style: none; display: flex; align-items: center; gap: 7px; padding: 7px 10px 7px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); font: 800 .76rem/1 var(--f-body); letter-spacing: .07em; transition: border-color .15s, box-shadow .15s, background .15s; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover { border-color: var(--terra); }
.langmenu summary:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.langmenu[open] summary { border-color: var(--terra); box-shadow: 0 0 0 3px rgb(181 71 29 / .13); }
.langmenu__caret { width: 10px; height: 10px; opacity: .55; transition: transform .2s ease; }
.langmenu[open] .langmenu__caret { transform: rotate(180deg); }
.langmenu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 236px; max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; animation: langmenu-in .16s ease; }
@keyframes langmenu-in { from { opacity: 0; transform: translateY(-4px); } }
.langmenu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 600; }
.langmenu a .flag { width: 24px; height: 16px; }
.langmenu__name { flex: 1; }
.langmenu a .langmenu__code { font: 600 .7rem/1 ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", monospace; letter-spacing: .08em; color: var(--muted); }
.langmenu a:hover { background: var(--paper-2); color: var(--ink); }
.langmenu a[aria-current] { background: var(--terra-l); color: var(--terra-d); }
.langmenu a[aria-current] .langmenu__code { color: var(--terra); }
.navtoggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1180px) {
  .navtoggle { display: inline-flex; }
  .mainnav { margin-left: auto; order: 3; }
  .mainnav ul { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 10px var(--gutter) 18px; flex-direction: column; }
  .mainnav ul.is-open { display: flex; }
  .mainnav a { padding: 12px 10px; font-size: 1rem; border-radius: 10px; }
  .langmenu { margin-left: auto; }
}
@media (max-width: 560px) {
  .brand small, .btn--app span { display: none; }
  .btn--app { width: 40px; padding: 0; }
  .topbar__in { gap: 6px; }
  .brand b { font-size: .98rem; white-space: normal; overflow-wrap: anywhere; line-height: 1.08; }
  .brand span { min-width: 0; }
}

.langsuggest { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); font-size: .92rem; }
.langsuggest[hidden] { display: none; }
.langsuggest a { color: #fff; background: var(--terra); padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.langsuggest button { background: transparent; border: 0; color: #d9cfc3; cursor: pointer; padding: 8px; font: inherit; }

/* ---------- home hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 44px); background:
  radial-gradient(900px 500px at 78% 30%, rgb(227 163 59 / .20), transparent 70%),
  radial-gradient(700px 400px at 10% 90%, rgb(63 83 72 / .08), transparent 70%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__text h1 { margin-bottom: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.hero__note { font-size: .9rem; color: var(--muted); max-width: 52ch; }
.stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background:
  radial-gradient(120% 90% at 50% 20%, #fffaf2 0%, #f1e4cf 55%, #e3cfae 100%); box-shadow: var(--shadow-lg); isolation: isolate; }
.stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease; z-index: 1; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; z-index: 2; touch-action: pan-y; cursor: grab; }
.stage__canvas:active { cursor: grabbing; }
.stage.is-3d .stage__canvas { opacity: 1; }
.stage.is-3d .stage__poster { opacity: 0; }
.stage__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 6px; background: rgb(255 251 245 / .85); padding: 6px 12px; border-radius: 999px; font-size: .8rem; color: var(--ink-2); pointer-events: none; transition: opacity .6s; }
.rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: clamp(22px, 3vw, 36px); }
.rail__btn { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s; }
.rail__btn:hover, .rail__btn:focus-visible { transform: translateY(-3px); border-color: var(--terra); box-shadow: var(--shadow-lg); color: var(--ink); }
.rail__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--terra-l); color: var(--terra-d); }
.rail__txt { display: flex; flex-direction: column; gap: 2px; }
.rail__txt b { font-size: .98rem; line-height: 1.25; }
.rail__txt small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.rail__go { position: absolute; top: 16px; right: 12px; color: var(--muted); }
@media (max-width: 1180px) { .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 5 / 4; max-height: 420px; width: 100%; }
}
@media (max-width: 640px) {
  .rail { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rail__btn { padding: 12px; flex-direction: row; align-items: center; gap: 10px; }
  .rail__icon { width: 36px; height: 36px; flex: none; }
  .rail__txt small, .rail__go { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ---------- home sections ---------- */
.home > section { margin-block: clamp(48px, 7vw, 88px); }
.sec__lead { color: var(--ink-2); max-width: 64ch; }
.answers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.qa h3 { font-size: 1.05rem; }
.qa p { color: var(--ink-2); font-size: .96rem; flex: 1; }
.qa a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-size: .92rem; }
@media (max-width: 1000px) { .answers__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .answers__grid { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.cards--guides { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { position: relative; padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.card__icon { position: absolute; top: -22px; left: 16px; width: 44px; height: 44px; border-radius: 13px; background: var(--terra); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgb(181 71 29 / .35); }
.card__body b { font-size: 1.05rem; }
.card__body small { color: var(--muted); font-size: .88rem; }
.card--app { background: var(--ink); border-color: var(--ink); color: #fff; }
.card--app:hover { color: #fff; }
.card--app .card__media { position: relative; background: radial-gradient(120% 120% at 30% 0%, #5a3a24, #1f1914 70%); }
.card--app .card__media img { position: absolute; width: 36%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; border-radius: 12px; border: 3px solid #0d0d0f; box-shadow: 0 12px 24px rgb(0 0 0 / .45); }
.card--app .card__media img:first-child { left: 16%; top: 18%; transform: rotate(-6deg); }
.card--app .card__media img:last-child { right: 16%; top: 10%; transform: rotate(5deg); }
.card--app:hover .card__media img { transform: none; }
.card--app .card__icon { background: #fff; color: var(--ink); }
.card--app .card__icon .ico { fill: #1a9c55; stroke: none; }
.card--app small { color: #cbbfae; }
@media (max-width: 1100px) { .cards, .cards--guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards, .cards--guides { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 22px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--terra); }
.ahero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px) 0 clamp(26px, 4vw, 44px); }
.ahero h1 { margin-bottom: 16px; font-size: clamp(2rem, 1.1rem + 2.2vw, 3.05rem); }
.ahero__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); background: var(--paper-2); }
.ahero__media img { width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .87rem; margin-top: 16px; }
/* Korean wraps between words (eojeol), never inside one */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
/* Dots sit in the gap before each item; the one that starts a wrapped line is clipped away */
.meta { margin-left: -16px; padding-left: 16px; clip-path: inset(-4px -4px -4px 16px); }
.meta span { position: relative; }
.meta span::before { content: "·"; position: absolute; left: -11px; color: var(--muted); opacity: .6; }
@media (max-width: 860px) {
  .ahero { grid-template-columns: 1fr; gap: 20px; }
  .ahero__media { aspect-ratio: 16 / 9; max-height: 320px; width: 100%; }
}

.article__grid { display: grid; grid-template-columns: 230px minmax(0, 780px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: .9rem; }
.toc summary { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); cursor: pointer; margin-bottom: 10px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--terra); }
.toc a.is-active { color: var(--terra-d); border-left-color: var(--terra); font-weight: 700; }
@media (max-width: 1100px) {
  .article__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
  .toc summary { margin: 0; display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
  .toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--terra); border-bottom: 2px solid var(--terra); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .toc details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .toc details[open] summary { margin-bottom: 10px; }
}
@media (min-width: 1200px) {
  :root { --fly-space: 290px; }
  main.wrap, .home, main > .wrap:not(.hero__in):not(.rail) { padding-right: calc(var(--gutter) + var(--fly-space)); }
  .fly-off main.wrap, .fly-off .home, .fly-off main > .wrap:not(.hero__in):not(.rail) { padding-right: var(--gutter); }
}

.answer { background: var(--herb-l); border-radius: var(--r); padding: 20px 24px; margin-bottom: 36px; border-left: 5px solid var(--herb); }
.answer__label { display: flex; align-items: center; gap: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--herb); margin-bottom: 6px; }
.answer p:last-child { margin: 0; font-size: 1.04rem; }

.sec { margin-bottom: clamp(40px, 5vw, 60px); }
.sec > p { color: var(--ink-2); }
.bullets { padding: 0; list-style: none; }
.bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 12px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .88rem; }

.items { list-style: none; padding: 0; margin: 22px 0 10px; display: grid; gap: 12px; }
.item { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.item h3 { margin-bottom: 4px; }
.item p { margin: 0; color: var(--ink-2); }
.item__n { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--terra); color: #fff; display: grid; place-items: center; font: 600 1.15rem/1 var(--f-head); }
.item__note { margin-top: 10px !important; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .93rem; color: var(--muted) !important; }
.ico--bad { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--bad-l); color: var(--bad); flex: none; }
.ico--good { color: var(--herb); }
.items--checks .ico--good { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--herb-l); flex: none; }
.source { position: relative; padding-left: 26px; font-size: .86rem; color: var(--muted); margin-top: 12px; }
.source .ico { position: absolute; left: 0; top: .15em; color: var(--terra); }

.callout { display: flex; gap: 14px; background: #fff4df; border: 1px solid #f0d9a8; border-radius: var(--r); padding: 16px 20px; margin-top: 18px; }
.callout .ico { color: #a86a07; margin-top: 3px; }
.callout p { margin: 0; }

.tipcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.tipcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.tipcard p { margin: 0; color: var(--ink-2); font-size: .96rem; }
@media (max-width: 700px) { .tipcards { grid-template-columns: 1fr; } }

.rcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rcard__media { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); }
.rcard__media img { width: 100%; height: 100%; object-fit: cover; }
.rcard__cat { position: absolute; left: 12px; top: 12px; background: rgb(31 25 20 / .78); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.rcard__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.facts { margin: 4px 0 14px; border-top: 1px solid var(--line); }
.facts div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts .ico { color: var(--terra); }
.facts dt { flex: 1; font-size: .86rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 800; font-size: .9rem; text-align: right; }
.rcard__tip { font-size: .9rem; color: var(--ink-2); flex: 1; }
.rcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; font-size: .88rem; padding-top: 12px; border-top: 1px solid var(--line); }
.rcard__foot span { color: var(--muted); font-weight: 700; }
.rcard__foot a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
@media (max-width: 700px) { .rcards { grid-template-columns: 1fr; } }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); margin-top: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .u2 { display: block; font-size: .8em; color: var(--muted); font-weight: 500; }
.table td b { font-weight: 700; }
.table thead th { background: var(--paper-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); position: sticky; top: 0; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: #fdf6ea; }
.table tbody th { font-weight: 700; }
.table td { white-space: nowrap; }

.cs__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.cs__search { flex: 1 1 240px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font: inherit; background: var(--surface); color: var(--ink); }
.cs__units { display: flex; gap: 4px; }
.cs__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 .88rem/1.2 var(--f-body); cursor: pointer; }
.chip:hover { border-color: var(--terra); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.table--cs tbody th { display: flex; align-items: center; gap: 10px; min-width: 172px; white-space: normal; line-height: 1.3; }
.cs__thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.table--cs thead th:nth-child(4) { white-space: normal; }
.table--cs td .ico { display: inline-block; vertical-align: -3px; margin-right: 4px; color: var(--terra); }
.cs__empty { padding: 16px; color: var(--muted); }

.conv { background: var(--ink); color: #f5ede2; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); margin-top: 20px; box-shadow: var(--shadow-lg); background-image: radial-gradient(600px 300px at 90% 0%, rgb(227 163 59 / .22), transparent 70%); }
.conv__row { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); cursor: pointer; font-weight: 700; font-size: .9rem; }
.seg input:checked + span { background: #fff; color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }
.conv__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.conv label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 700; color: #d9cfc3; }
.conv__field { display: flex; align-items: stretch; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); border-radius: 14px; overflow: hidden; }
.conv__field input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 600 1.6rem/1 var(--f-head); padding: 12px 14px; }
.conv__field input:focus { outline: none; }
.conv__field:focus-within { outline: 3px solid var(--gold); }
.conv .unit { display: flex; align-items: center; padding: 0 14px; color: #d9cfc3; font-weight: 700; }
.conv .unit select { background: transparent; color: #fff; border: 0; font: 700 1rem var(--f-body); cursor: pointer; }
.conv .unit option { color: var(--ink); }
.conv__out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.conv__res { background: rgb(255 255 255 / .07); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.conv__res small { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: #cbbfae; }
.conv__res b { font: 600 1.35rem/1.2 var(--f-head); color: #ffd79a; }
.conv__res b small { display: block; margin-top: 3px; font: 600 .82rem/1.3 var(--f-body); color: #cbbfae; }
.conv__hint { font-size: .86rem; color: #cbbfae; margin: 16px 0 0; }
.rules { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 10px; }
@media (max-width: 640px) { .conv__inputs, .conv__out { grid-template-columns: 1fr; } }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.shot { margin: 0; text-align: center; }
.shot img { border-radius: 22px; border: 6px solid #111; box-shadow: var(--shadow-lg); aspect-ratio: 1 / 2; object-fit: cover; width: 100%; background: #111; }
.shot figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr 1fr; } }

.appdesc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.appdesc__lead { font-size: 1.08rem; font-weight: 600; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 18px 0; }
.feature h3 { font-size: 1rem; color: var(--terra-d); }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .94rem; }
.feature li { margin-bottom: 4px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }

.faq { margin-top: 12px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font: 400 1.6rem/1 var(--f-body); color: var(--terra); transition: transform .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item h3 { margin: 0; font-size: 1.06rem; }
.faq__item div p { color: var(--ink-2); margin: 0 0 18px; }

/* ---------- app CTA ---------- */
.appcta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: center; margin-block: clamp(48px, 7vw, 88px); padding: clamp(26px, 4vw, 52px); border-radius: var(--r-lg); color: #f5ede2; background: var(--ink); background-image: radial-gradient(700px 400px at 85% 20%, rgb(227 163 59 / .28), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgb(181 71 29 / .35), transparent 70%); }
.appcta h2 { color: #fff; }
.appcta .kicker { color: #ffc27a; }
.appcta p { color: #d9cfc3; }
.appcta a:not(.btn) { color: #ffc27a; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: #7ee2a8; margin-top: 3px; width: 20px; height: 20px; }
.appcta .btn--play { background: #fff; color: var(--ink); }
.appcta .btn--play .ico { fill: #1a9c55; }
.appcta__note { font-size: .82rem; margin: 12px 0 0; color: #a99d8f !important; }
.appcta__shots { position: relative; height: 100%; min-height: 380px; }
.appcta__shots img { position: absolute; width: 50%; max-width: 210px; border-radius: 26px; border: 7px solid #0d0d0f; box-shadow: 0 30px 60px rgb(0 0 0 / .45); aspect-ratio: 1 / 2; object-fit: cover; background: #0d0d0f; }
.appcta__shots img:first-child { left: 8%; top: 8%; transform: rotate(-7deg); }
.appcta__shots img:last-child { right: 6%; top: 0; transform: rotate(6deg) translateY(26px); }
@media (max-width: 800px) { .appcta { grid-template-columns: 1fr; } .appcta__shots { min-height: 300px; } }

.related { margin-block: clamp(40px, 6vw, 72px); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #d9cfc3; margin-top: 40px; }
.footer__in { max-width: var(--wrap); margin: auto; padding: 56px var(--gutter) 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: #a99d8f; }
.footer h2 { font: 800 .74rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #a99d8f; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: #f5ede2; text-decoration: none; }
.footer a:hover { color: #ffc27a; }
.footer__brand p { max-width: 44ch; font-size: .94rem; }
.footer .btn--app { background: #fff; color: var(--ink); }
.footer .btn--app .ico { fill: #1a9c55; }
.footer__langs { grid-template-columns: 1fr 1fr; }
.footer__legal { max-width: var(--wrap); margin: auto; padding: 18px var(--gutter) 32px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .82rem; color: #a99d8f; }
.footer__legal a { color: #d9cfc3; text-decoration: underline; }
@media (max-width: 800px) { .footer__in { grid-template-columns: 1fr; } }

/* ---------- flying phone ---------- */
.fly { position: fixed; z-index: 40; top: 50%; right: max(18px, calc((100vw - var(--wrap)) / 2 + 18px)); width: 250px; transform: translate3d(0, -50%, 0); display: none; flex-direction: column; align-items: center; transition: opacity .45s ease, transform .45s ease; }
.fly.is-hidden { opacity: 0; transform: translate3d(40px, -50%, 0) scale(.96); pointer-events: none; }
@media (min-width: 1200px) and (min-height: 640px) { .fly { display: flex; } }
.fly-off .fly { display: none !important; }
.fly__bubble { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; box-shadow: var(--shadow-lg); margin-bottom: 18px; text-align: center; width: 100%; }
.fly__bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.fly__bubble p { font: 600 1rem/1.3 var(--f-head); margin: 0 0 10px; min-height: 2.6em; transition: opacity .3s; }
.fly__bubble p.is-swap { opacity: 0; }
.fly__bubble .btn { width: 100%; min-height: 40px; font-size: .86rem; padding: 8px 12px; }
.fly__phone { display: block; perspective: 1100px; text-decoration: none; }
.fly__body { position: relative; display: block; width: 188px; aspect-ratio: 9 / 18.6; border-radius: 34px; padding: 8px; background: linear-gradient(145deg, #3a3a40, #0b0b0e 45%, #26262b); box-shadow: 0 0 0 1.5px #55555c inset, 22px 38px 50px rgb(31 25 20 / .30), 6px 10px 18px rgb(31 25 20 / .22); transform-style: preserve-3d; transform: rotateY(var(--ry, -18deg)) rotateX(var(--rx, 7deg)) rotateZ(var(--rz, -3deg)) translate3d(0, var(--fy, 0px), 0); will-change: transform; }
.fly__screen { position: relative; display: block; width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: #111; }
.fly__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s ease; }
.fly__screen img.is-on { opacity: 1; }
.fly__notch { position: absolute; top: 14px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #050506; box-shadow: 0 0 0 2px #1c1c20; }
.fly__glare { position: absolute; inset: 8px; border-radius: 27px; background: linear-gradient(115deg, rgb(255 255 255 / .22) 0%, rgb(255 255 255 / 0) 38%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / .08) 100%); pointer-events: none; }
.fly__close { position: absolute; top: -12px; right: -8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.fly__close .ico { width: 15px; height: 15px; }
.fly__close:hover { color: var(--ink); }

.flychip { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; display: none; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 700 .9rem/1 var(--f-body); box-shadow: var(--shadow-lg); cursor: pointer; transform: translateY(120%); opacity: 0; transition: transform .4s ease, opacity .4s ease; }
.flychip img { width: 36px; height: 36px; border-radius: 50%; }
.flychip.is-on { transform: none; opacity: 1; }
@media (max-width: 1199.98px), (max-height: 639.98px) { .flychip { display: inline-flex; } }
.fly-off .flychip { display: inline-flex; }
.flysheet { position: fixed; inset: 0; z-index: 70; background: rgb(20 16 12 / .55); display: flex; align-items: flex-end; justify-content: center; }
.flysheet[hidden] { display: none; }
.flysheet__panel { position: relative; width: min(520px, 100%); background: var(--surface); border-radius: 26px 26px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); text-align: center; animation: sheet-in .35s ease; }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.flysheet__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-2); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.flysheet__shots { display: flex; justify-content: center; gap: 10px; margin: 8px 0 16px; }
.flysheet__shots img { width: 28%; border-radius: 16px; border: 4px solid #111; aspect-ratio: 1 / 2; object-fit: cover; background: #111; }
.flysheet__shots img:nth-child(2) { transform: translateY(-10px); }
.flysheet__title { font: 600 1.2rem/1.3 var(--f-head); margin-bottom: 6px; }
.flysheet p:not(.flysheet__title) { color: var(--ink-2); font-size: .94rem; }

/* ---------- root language picker ---------- */
.page-root { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 500px at 70% 20%, rgb(227 163 59 / .22), transparent 70%), var(--paper); }
.root { text-align: center; padding: 40px var(--gutter); max-width: 760px; }
.root img { margin: 0 auto 18px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.root__langs { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.root__langs a { display: flex; flex-direction: column; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.root__langs a:hover { border-color: var(--terra); }
.root__langs small { color: var(--muted); font-size: .8rem; }
@media (max-width: 560px) { .root__langs { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .footer, .fly, .flychip, .flysheet, .appcta, .related, .toc, .ahero__media, .crumbs, .cs__tools, .cs__chips, .langsuggest, .faq, .source { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main.wrap { padding: 0 !important; }
  .article__grid { display: block; }
  .tablewrap { box-shadow: none; overflow: visible; }
  .table thead th { position: static; }
  .cs__thumb { display: none; }
  .sec--prose, .sec--cheatsheet ~ .sec { page-break-inside: avoid; }
}
