@font-face {
  font-family: "Geologica";
  src: url("/assets/fonts/geologica-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Akt";
  src: url("/assets/fonts/akt-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #153243;
  --ink-deep: #0c2635;
  --cream: #f6f0e4;
  --paper: #fffdf8;
  --sand: #e7dac4;
  --orange: #e87935;
  --orange-dark: #b9531d;
  --peach: #f7b267;
  --mint: #dff4ea;
  --muted: #66747b;
  --line: rgba(21, 50, 67, 0.16);
  --shadow: 0 24px 70px rgba(21, 50, 67, 0.13);
  --radius: 28px;
  --font-sans: "Geologica", sans-serif;
  --font-heading: "Geologica", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .3; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 120px 0; }
.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; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; transform: translateY(-160%); background: var(--paper); font-weight: 700; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 240, 228, .88); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(21, 50, 67, .06); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 23px; font-weight: 900; letter-spacing: -.04em; }
.brand svg { width: 40px; height: 40px; }
.brand svg rect { fill: var(--ink); }
.brand svg path { fill: #f4f9e9; }
.brand svg circle { fill: var(--peach); }
.site-navigation { display: flex; align-items: center; gap: 28px; }
.site-navigation a { text-decoration: none; font-size: 15px; font-weight: 700; }
.site-navigation a:hover { color: var(--orange-dark); }
.site-navigation .nav-cta { padding: 10px 20px; color: var(--paper); background: var(--ink); border-radius: 999px; }
.site-navigation .nav-cta:hover { color: white; background: var(--orange-dark); }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 9px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s, opacity .2s; }

.hero { overflow: hidden; padding: 80px 0 110px; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 50px; }
.eyebrow { margin: 0 0 18px; color: var(--orange-dark); font-size: 13px; line-height: 1.3; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 26px; height: 2px; margin: 0 8px 4px 0; background: currentColor; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 680px; margin-bottom: 24px; font-family: var(--font-heading); font-size: clamp(48px, 5.5vw, 78px); font-weight: 700; }
h2 { margin-bottom: 24px; font-family: var(--font-heading); font-size: clamp(38px, 4.3vw, 61px); }
h3 { font-family: var(--font-heading); font-size: 25px; }
.hero-lead { max-width: 600px; margin: 0 0 32px; color: #485e67; font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 22px; border: 0; border-radius: 14px; text-decoration: none; font-weight: 900; line-height: 1.2; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--orange); box-shadow: 0 12px 28px rgba(184, 83, 29, .22); }
.button-primary:hover { background: var(--orange-dark); box-shadow: 0 16px 34px rgba(184, 83, 29, .28); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #264f62; }
.button.is-disabled { color: #7c817f; background: #dbd8d0; box-shadow: none; pointer-events: none; }
.text-link { text-decoration-thickness: 1px; text-underline-offset: 5px; font-size: 15px; font-weight: 800; }
.trust-list { display: flex; flex-wrap: wrap; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.trust-list span { color: var(--orange-dark); }

.hero-visual { position: relative; min-height: 600px; }
.browser-mockup { position: absolute; top: 55px; left: 0; width: 88%; min-height: 360px; padding: 0 36px 36px; overflow: hidden; border: 1px solid rgba(21, 50, 67, .2); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-2deg); }
.browser-bar { height: 54px; display: flex; align-items: center; gap: 7px; margin: 0 -36px 44px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #f3ede2; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--sand); }
.browser-bar i:first-child { background: var(--peach); }
.browser-bar span { flex: 1; margin-left: 14px; padding: 6px 12px; border-radius: 7px; color: #7c8586; background: rgba(255, 255, 255, .7); font-size: 10px; }
.article-lines { display: grid; gap: 10px; margin-bottom: 28px; }
.article-lines b { height: 8px; border-radius: 8px; background: #ddd8cc; }
.article-lines b:nth-child(1) { width: 45%; height: 16px; background: var(--ink); }
.article-lines b:nth-child(3) { width: 68%; }
.browser-mockup > p { max-width: 420px; font-family: var(--font-sans); font-size: 20px; line-height: 1.65; }
mark { padding: 1px 4px; color: inherit; background: rgba(247, 178, 103, .55); border-radius: 5px; }
.capture-popover { position: absolute; left: 150px; top: 214px; display: grid; min-width: 230px; padding: 15px 17px; border: 1px solid rgba(232, 121, 53, .25); border-radius: 15px; background: white; box-shadow: 0 16px 36px rgba(21, 50, 67, .15); }
.capture-popover::before { content: ""; position: absolute; top: -7px; left: 28px; width: 12px; height: 12px; background: white; border-left: 1px solid rgba(232, 121, 53, .25); border-top: 1px solid rgba(232, 121, 53, .25); transform: rotate(45deg); }
.capture-word { color: var(--orange-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.capture-popover strong { margin: 2px 0; }
.capture-popover small { color: var(--muted); }
.phone-mockup { position: absolute; z-index: 2; right: 0; bottom: 0; width: 265px; min-height: 505px; padding: 28px 16px 18px; border: 8px solid var(--ink-deep); border-radius: 38px; color: #251c47; background: #f8f6ff; box-shadow: 0 32px 70px rgba(21, 50, 67, .25); transform: rotate(3deg); }
.phone-speaker { position: absolute; top: 9px; left: 50%; width: 66px; height: 6px; border-radius: 5px; background: var(--ink-deep); transform: translateX(-50%); }
.phone-head { display: flex; justify-content: space-between; margin: 12px 2px 25px; font-weight: 900; }
.phone-head b { color: #5b3fd1; }
.phone-label { display: block; margin: 0 3px 8px; color: #6a6580; }
.sentence-card, .word-card { padding: 15px; border: 1px solid #e0d9f4; border-radius: 18px; background: white; box-shadow: 0 9px 22px rgba(55, 42, 101, .08); }
.sentence-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.sentence-card em { padding: 2px 3px; color: #43239e; background: #e9e2ff; border-radius: 4px; font-style: normal; font-weight: 900; }
.sentence-card > span { color: #6a6580; font-size: 11px; line-height: 1.4; }
.word-card { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.word-card div { display: grid; }
.word-card small { color: #6a6580; font-size: 10px; }
.word-card button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: white; background: #5b3fd1; }
.status-row { display: flex; gap: 6px; margin-top: 13px; }
.status-row span { padding: 6px 9px; border-radius: 99px; color: #8d4300; background: #ffe9d2; font-size: 9px; font-weight: 800; }
.status-row span:last-child { color: #126344; background: #ddf4e9; }
.visual-note { position: absolute; z-index: 3; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: var(--paper); box-shadow: 0 9px 25px rgba(21, 50, 67, .1); font-size: 11px; font-weight: 900; }
.note-browser { left: -15px; top: 25px; transform: rotate(-5deg); }
.note-mobile { right: 12px; bottom: -18px; transform: rotate(4deg); }

.context-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .42); }
.context-grid { display: grid; grid-template-columns: 70px 1.1fr .9fr; gap: 34px; align-items: start; }
.section-index { margin: 0; color: var(--orange-dark); font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.context-copy > p { margin: 8px 0 30px; color: #53676f; font-size: 19px; }
.quote-example { display: grid; gap: 5px; padding: 24px; border-left: 4px solid var(--orange); border-radius: 0 18px 18px 0; background: var(--paper); box-shadow: 0 12px 32px rgba(21, 50, 67, .08); }
.quote-example > span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.quote-example s { color: #879194; font-size: 14px; }
.quote-example strong { margin-top: 9px; font-family: var(--font-sans); font-size: 20px; }
.quote-example small { color: var(--muted); }

.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 80px; margin-bottom: 64px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 360px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 248, .7); }
.steps li:nth-child(2) { background: #f6e1cc; }
.steps li:nth-child(3) { color: white; background: var(--ink); }
.steps li:nth-child(4) { background: var(--mint); }
.step-number { position: absolute; top: 20px; right: 22px; opacity: .55; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.step-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 20px 0 28px; border-radius: 17px; color: var(--orange-dark); background: rgba(247, 178, 103, .34); font-family: var(--font-sans); font-size: 34px; font-weight: 700; transform: rotate(-4deg); }
.steps li:nth-child(2) .step-icon { background: rgba(255, 253, 248, .7); transform: rotate(3deg); }
.steps li:nth-child(3) .step-icon { color: var(--ink); background: var(--peach); }
.steps h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.15; }
.steps p { margin: 0; opacity: .78; font-size: 15px; }

/* Screenshots stay clipped to their step card until opened. */
.steps .step-with-preview { padding-bottom: 180px; }
.step-preview { position: absolute; left: 20px; right: 20px; top: calc(100% - 145px); width: calc(100% - 40px); padding: 0; border: 0; background: transparent; color: inherit; cursor: zoom-in; text-align: left; transition: transform .25s ease; }
.step-preview:hover, .step-preview:focus-visible { transform: translateY(-12px); }
.preview-hint { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; }
.step-preview img { display: block; width: 100%; height: auto; border: 1px solid rgba(21, 50, 67, .16); border-radius: 14px; box-shadow: 0 15px 35px rgba(0, 0, 0, .2); }
.step-preview-save { top: calc(100% - 129px); }
.step-preview-save img { width: 440px; max-width: none; margin-left: -100px; }
.step-preview-mobile, .step-preview-parrot { width: 100%; left: 0; right: 0; }
.step-preview-mobile .preview-hint, .step-preview-parrot .preview-hint { padding-inline: 20px; }
.screenshot-dialog { width: fit-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 18px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.screenshot-dialog::backdrop { background: rgba(12, 38, 53, .8); backdrop-filter: blur(5px); }
.screenshot-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.screenshot-toolbar h2 { margin: 0; font-family: var(--font-heading); font-size: 17px; line-height: 1.4; letter-spacing: 0; }
.screenshot-toolbar button { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 28px; cursor: pointer; }
.screenshot-full { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 140px); margin: auto; object-fit: contain; border-radius: 10px; }
html:has(.screenshot-dialog[open]) { overflow: hidden; }
.installation-link, .installation-links { grid-column: 1 / -1; text-align: center; font-size: 14px; }
.installation-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.installation-links a, .installation-link { font-weight: 800; text-underline-offset: 4px; }
.faq-list ol { padding-left: 24px; margin: 0 0 24px; color: var(--muted); }
.faq-list li + li { margin-top: 10px; }
.faq-list code { overflow-wrap: anywhere; }

.download-section { background: #efdfca; }
.download-intro { max-width: 850px; margin-bottom: 58px; }
.download-intro > p:last-child { max-width: 680px; color: #586971; font-size: 18px; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.download-card { display: grid; grid-template-columns: auto 1fr; gap: 18px 20px; padding: 34px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 18px 48px rgba(21, 50, 67, .08); }
.download-browser { color: white; background: var(--ink); }
.platform-icon { grid-row: span 1; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: white; background: var(--orange); font-family: var(--font-sans); font-size: 22px; font-weight: 900; }
.download-browser .platform-icon { color: var(--ink); background: var(--peach); }
.platform-label { color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.download-browser .platform-label { color: var(--peach); }
.download-card h3 { margin: 4px 0 10px; }
.download-card p { margin: 0; color: var(--muted); font-size: 14px; }
.download-browser p { color: rgba(255,255,255,.65); }
.download-button { grid-column: 1 / -1; margin-top: 18px; }
.availability { grid-column: 1 / -1; min-height: 22px; text-align: center; }
.availability.is-ready { color: #347254; }
.download-browser .availability.is-ready { color: #a9dfc5; }
.store-link, .store-links { grid-column: 1 / -1; text-align: center; }
.store-link, .store-links a { font-size: 12px; font-weight: 800; text-underline-offset: 4px; }
.store-links { display: flex; justify-content: center; gap: 18px; }
.install-note { max-width: 700px; margin: 25px auto 0; color: #627078; text-align: center; font-size: 12px; }

.faq-section { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 120px; }
.faq-grid > div:first-child > p:last-child { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 50px 24px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 900; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; top: 36px; right: 8px; width: 17px; height: 2px; background: var(--orange-dark); transition: transform .2s; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { max-width: 660px; margin: -6px 0 24px; color: var(--muted); }
.faq-list code { padding: 2px 5px; border-radius: 4px; background: #eee7db; }

.site-footer { padding: 70px 0 28px; color: white; background: var(--ink-deep); }
.footer-main { display: grid; grid-template-columns: .7fr 1fr .7fr; gap: 50px; align-items: start; }
.brand-light svg rect { fill: #f6f0e4; }
.brand-light svg path { fill: var(--ink); }
.footer-main p { max-width: 430px; margin: 4px 0; color: rgba(255,255,255,.64); }
.footer-main nav { display: grid; justify-content: end; gap: 6px; }
.footer-main nav a { text-underline-offset: 4px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: 11px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-preview-save img { margin-left: -12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(700px, 100%); margin: 0 auto; }
  .context-grid { grid-template-columns: 45px 1fr; }
  .context-copy { grid-column: 2; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .download-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid > div:first-child { position: static; }
  .footer-main { grid-template-columns: 1fr 1.5fr; }
  .footer-main nav { grid-column: 1 / -1; display: flex; justify-content: start; gap: 20px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1180px); }
  .section { padding: 82px 0; }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; cursor: pointer; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .site-navigation { position: absolute; top: 68px; left: 0; right: 0; display: none; padding: 18px 16px 24px; border-bottom: 1px solid var(--line); background: var(--cream); box-shadow: 0 18px 30px rgba(21,50,67,.1); }
  .site-navigation.is-open { display: grid; }
  .site-navigation a { padding: 9px 8px; }
  .site-navigation .nav-cta { margin-top: 5px; text-align: center; }
  .hero { padding: 55px 0 70px; }
  h1 { font-size: clamp(43px, 13vw, 60px); }
  h2 { font-size: clamp(36px, 10vw, 49px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { text-align: center; }
  .trust-list { gap: 9px 14px; }
  .hero-visual { min-height: 520px; }
  .browser-mockup { top: 35px; width: 100%; min-height: 310px; padding-inline: 24px; }
  .browser-bar { margin-inline: -24px; margin-bottom: 32px; }
  .capture-popover { left: 92px; top: 192px; min-width: 205px; }
  .phone-mockup { width: 225px; min-height: 430px; padding: 25px 13px 14px; }
  .visual-note { display: none; }
  .context-grid { grid-template-columns: 1fr; gap: 16px; }
  .context-copy { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; }
  .step-icon { margin: 20px 0 28px; }
  .download-card { padding: 25px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-main nav { grid-column: auto; flex-wrap: wrap; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  body { font-size: 16px; }
  .hero-visual { min-height: 475px; }
  .browser-mockup { min-height: 285px; }
  .browser-mockup > p { font-size: 16px; }
  .capture-popover { left: 55px; top: 177px; }
  .phone-mockup { width: 200px; min-height: 390px; }
  .sentence-card { padding: 12px; }
  .download-card { grid-template-columns: 1fr; }
  .platform-icon { grid-row: auto; }
  .store-links { align-items: center; flex-direction: column; }
}

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

/* Публичные документы: адаптивная читаемая колонка без внешних ресурсов. */
.legal-page{max-width:860px;margin:0 auto;padding:32px 24px 48px;line-height:1.7;color:#26213a}
.legal-page nav{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center;margin-bottom:36px}
.legal-page a{color:#6040a7;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.legal-page .legal-brand{font-size:26px;font-weight:700;text-decoration:none}
.legal-page h1{font-size:clamp(28px,5vw,44px);line-height:1.2;margin-bottom:20px;overflow-wrap:anywhere}
.legal-page h2{font-size:24px;line-height:1.3;margin:32px 0 12px}
.legal-page p,.legal-page ul,.legal-page ol{margin:12px 0}
.legal-page ul,.legal-page ol{padding-left:24px}
.legal-page li{margin:8px 0}
.legal-page footer{margin-top:40px;padding-top:20px;border-top:1px solid #ddd4eb}
.legal-page .legal-action{display:inline-block;padding:12px 18px;background:#6040a7;color:#fff;border-radius:12px}
