/* glimmereyeventure.com — «блик в глазу». Палитра: белок #EEEFE9, чернила #121714, мох #2F6B36, янтарь #E07B16 (кольцо
   Plant Expert AI), ночь #061013 и бирюза #43E5D2 (CyberGlow VPN). Шрифты: Newsreader (OFL), Schibsted Grotesk (OFL). */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-Italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  --sclera: #EEEFE9; --sclera-2: #E3E6DD; --ink: #121714; --ink-2: #48514B; --line: rgba(18, 23, 20, .14);
  --moss: #2F6B36; --leaf: #E2E9DC; --amber: #E07B16; --amber-ink: #A9530A;
  --night: #061013; --night-2: #0B1B1F; --glow: #43E5D2; --mist: #D7F3EE; --mist-2: #9CC2BC;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px; --pad: clamp(20px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--sclera); color: var(--ink); font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; color: var(--amber-ink); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--sclera); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 12.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(238, 239, 233, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-lid { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.mark-iris { fill: var(--amber); }
.mark-pupil { fill: var(--ink); }
.mark-glint { fill: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 500 21px/1 var(--serif); letter-spacing: -.01em; }
.brand-sub { font: 600 10.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; }
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a:hover { text-decoration: underline; }
.nav-mail { border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px !important; }
.nav-mail:hover { background: var(--ink); color: var(--sclera); text-decoration: none !important; }
@media (max-width: 640px) { .site-nav a:not(.nav-mail) { display: none; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 600 15.5px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--sclera); }
.btn-ink:hover { background: var(--moss); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: rgba(18, 23, 20, .06); }
.btn-glow { background: var(--glow); color: var(--night); box-shadow: 0 0 0 0 rgba(67, 229, 210, .0); }
.btn-glow:hover { box-shadow: 0 0 28px rgba(67, 229, 210, .45); }
.btn-line-light { border-color: var(--mist-2); color: var(--mist); }
.btn-line-light:hover { background: rgba(215, 243, 238, .08); }

/* ---------- первый экран ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 116px); line-height: .94; letter-spacing: -.03em; margin-bottom: 26px; font-variation-settings: "opsz" 72; }
.hero h1 em { position: relative; }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 34em; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-eye { margin: 0; justify-self: center; width: min(100%, 640px); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: calc(100svh - 160px); }
  .hero-eye { justify-self: end; margin-right: calc(var(--pad) * -.5); }
}
@media (max-width: 959px) { .hero-eye { order: -1; width: min(86vw, 460px); } }
figcaption { display: flex; gap: 10px; margin-top: 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.fig-n { font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (hover: none) { .fig-hint { display: none; } }

/* ---------- глаз: сцена, canvas и запасная радужка на CSS ---------- */
.eye-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.eye-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
.eye-stage.live .eye-canvas { opacity: 1; }
.eye-stage.live .iris-css { opacity: 0; }
.iris-css { position: absolute; inset: 7%; border-radius: 50%; transition: opacity .8s ease;
  background:
    radial-gradient(circle at 63% 34%, #fff 0 3.2%, transparent 3.6%),
    radial-gradient(circle, #0b0d0c 0 21%, transparent 21.5%),
    repeating-conic-gradient(from 0deg, rgba(255, 214, 140, .18) 0 .6deg, rgba(40, 60, 30, .14) .6deg 1.4deg),
    radial-gradient(circle, #f0a13a 0 26%, #b9772a 36%, #5f7d34 58%, #2c5a2c 80%, #0f1e14 98%);
  box-shadow: 0 30px 80px -30px rgba(18, 23, 20, .45); }
.iris-css-cyber { background:
    radial-gradient(circle at 63% 34%, #fff 0 3.2%, transparent 3.6%),
    radial-gradient(circle, #020607 0 21%, transparent 21.5%),
    repeating-conic-gradient(from 0deg, rgba(160, 255, 240, .16) 0 .6deg, rgba(0, 20, 24, .2) .6deg 1.4deg),
    radial-gradient(circle, #6ff0e0 0 24%, #1d9c95 40%, #0f4f55 64%, #05181c 96%); box-shadow: 0 0 80px -10px rgba(67, 229, 210, .35); }

/* ---------- приложения ---------- */
.apps { padding: clamp(64px, 9vw, 128px) 0 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.025em; margin-bottom: 20px; }
.sec-lead { font-size: clamp(17px, 1.4vw, 19.5px); color: var(--ink-2); max-width: 38em; }
.apps-pair { display: grid; }
@media (min-width: 960px) { .apps-pair { grid-template-columns: 1fr 1fr; } }
.app { padding: clamp(40px, 6vw, 88px) var(--pad); }
.app-inner { max-width: 540px; margin: 0 auto; }
.app-plant { background: var(--leaf); }
.app-cyber { background: radial-gradient(120% 80% at 70% 0%, var(--night-2), var(--night) 60%); color: var(--mist); }
.app-kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 26px; }
.kick-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(224, 123, 22, .18); }
.app-cyber .kick-dot { background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.app-eye { width: min(64%, 300px); margin: 0 0 34px; }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); }
.app-cyber .app-icon { box-shadow: 0 0 0 1px rgba(156, 194, 188, .25), 0 0 26px -6px rgba(67, 229, 210, .5); }
.app h3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -.02em; }
.app-what { font: 400 clamp(20px, 1.8vw, 24px)/1.35 var(--serif); margin-bottom: 22px; }
.app-facts { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.app-cyber .app-facts { border-top-color: rgba(156, 194, 188, .22); }
.app-facts li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.app-cyber .app-facts li { border-bottom-color: rgba(156, 194, 188, .22); }
.app-facts li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px;
  border-radius: 50%; border: 1.5px solid var(--moss); }
.app-cyber .app-facts li::before { border-color: var(--glow); }
.app-meta { font-size: 14px; color: var(--ink-2); }
.app-cyber .app-meta { color: var(--mist-2); }
.app-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* ---------- подход: шаги проявляются из размытия ---------- */
.approach { padding: clamp(72px, 10vw, 140px) 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 680px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.step-n { display: block; font: italic 400 46px/1 var(--serif); color: var(--amber-ink); margin-bottom: 18px; }
.step h3 { font-size: 30px; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 16.5px; }
html.js .step[data-focus] { filter: blur(7px); opacity: .28; transform: translateY(10px);
  transition: filter 1.1s cubic-bezier(.2, .7, .2, 1), opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
html.js .step[data-focus].in { filter: none; opacity: 1; transform: none; }
html.js .step:nth-child(2) { transition-delay: .12s; }
html.js .step:nth-child(3) { transition-delay: .24s; }
html.js .step:nth-child(4) { transition-delay: .36s; }

/* ---------- студия ---------- */
.studio { padding: clamp(64px, 9vw, 120px) 0; background: var(--sclera-2); }
.studio-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .studio-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; } }
.studio h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.025em; margin-bottom: 26px; }
.studio-text p { max-width: 36em; color: var(--ink-2); font-size: 18px; }
.studio-facts { margin: 0; border-top: 1px solid var(--line); }
.studio-facts div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.studio-facts dt { font: 600 12.5px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.studio-facts dd { margin: 0; font: 400 20px/1.3 var(--serif); }
@media (max-width: 520px) { .studio-facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- контакт ---------- */
.contact { padding: clamp(72px, 10vw, 140px) 0; }
.contact-box { container-type: inline-size; }
.contact h2 { font-size: clamp(44px, 7vw, 108px); line-height: .95; letter-spacing: -.03em; margin-bottom: 22px; }
.contact-lead { color: var(--ink-2); font-size: 18px; max-width: 32em; }
.contact-mail { margin: 34px 0 30px; font: 400 min(64px, 6.1cqw)/1.1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.contact-mail a { text-decoration-thickness: 1.5px; text-underline-offset: .14em; }
.contact-mail a:hover { color: var(--amber-ink); }
.contact-addr { font-style: normal; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* ---------- подвал ---------- */
.foot { background: var(--ink); color: #C9D0CA; padding: 56px 0 32px; font-size: 15px; }
.foot a { color: #EEF2EE; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-name { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; color: #fff; margin-bottom: 10px; }
.foot address { font-style: normal; line-height: 1.6; margin-bottom: 10px; }
.foot-h { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8E9A92; margin-bottom: 8px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.foot-links a { text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { text-decoration: underline; }
.foot-small { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8E9A92; }
.foot-small p { margin-bottom: 6px; }

/* ---------- документы ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.doc-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: 240px minmax(0, 760px); gap: 72px; } }
.doc-head h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.025em; margin-bottom: 18px; }
.doc-meta { color: var(--ink-2); font-size: 14.5px; }
.doc-toc { font-size: 14.5px; }
@media (min-width: 1000px) { .doc-toc { position: sticky; top: 96px; align-self: start; } }
.doc-toc p { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.doc-toc ol { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 6px; }
.doc-toc a { text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }
.doc-body { font-size: 17px; line-height: 1.68; }
.doc-body h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 2.2em 0 .7em; scroll-margin-top: 90px; }
.doc-body h3 { font: 600 17px/1.4 var(--sans); margin: 1.6em 0 .5em; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc-body li { margin-bottom: .45em; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15.5px; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc-body th { font: 600 12.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.doc-card { border: 1.5px solid var(--ink); border-radius: 14px; padding: 18px 22px; margin: 0 0 2em; background: #F6F7F2; }
.doc-card dl { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 6px 16px; font-size: 15.5px; }
.doc-card dt { font-weight: 600; }
.doc-card dd { margin: 0; }
@media (max-width: 520px) { .doc-card dl { grid-template-columns: 1fr; } .doc-card dd { margin-bottom: 8px; } }
.see, .unseen { border-radius: 14px; padding: 20px 22px 6px; margin: 0 0 1.4em; }
.see { background: var(--leaf); }
.unseen { background: var(--night); color: var(--mist); }
.unseen a { color: #fff; }
.see h3, .unseen h3 { margin-top: 0; }
.caps { font-variant: all-small-caps; letter-spacing: .04em; }

/* ---------- 404 ---------- */
.lost { padding: clamp(64px, 10vw, 140px) 0; text-align: center; }
.lost .eye-stage { width: min(60vw, 260px); margin: 0 auto 36px; }
.lost h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1; margin-bottom: 18px; }
.lost p { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .step[data-focus] { filter: none; opacity: 1; transform: none; transition: none; }
  .btn, .eye-canvas, .iris-css { transition: none; }
}

.lost-cta { justify-content: center; }
.doc-grid > * { min-width: 0; }
.doc-body a { overflow-wrap: anywhere; }

/* ---------- мобильное меню (details/summary — работает и без JS) ---------- */
.m-nav { display: none; position: relative; }
@media (max-width: 640px) {
  .site-nav { display: none; }
  .m-nav { display: block; }
}
.m-nav summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 999px; font: 500 15px/1 var(--sans); cursor: pointer; user-select: none; }
.m-nav summary::-webkit-details-marker { display: none; }
.m-bars { display: inline-grid; gap: 4px; width: 16px; }
.m-bars span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
.m-nav[open] summary { background: var(--ink); color: var(--sclera); }
.m-nav[open] .m-bars span { background: var(--sclera); }
.m-nav[open] .m-bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.m-nav[open] .m-bars span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.m-panel { position: fixed; left: 0; right: 0; top: 68px; background: var(--sclera); border-bottom: 1px solid var(--line);
  padding: 4px var(--pad) 18px; display: flex; flex-direction: column; box-shadow: 0 28px 40px -28px rgba(18, 23, 20, .4); }
.m-panel a { font: 400 30px/1.2 var(--serif); padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.m-panel a:last-child { border-bottom: 0; }
.m-panel a[aria-current] { color: var(--amber-ink); font-style: italic; }

/* ---------- страница контактов ---------- */
.contact-page { padding: clamp(36px, 7vw, 100px) 0 clamp(64px, 9vw, 120px); }
.contact-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 64px; } }
.contact-page h1 { font-size: clamp(44px, 7vw, 108px); line-height: .95; letter-spacing: -.03em; margin-bottom: 22px; }
.contact-eye { width: min(100%, 420px); justify-self: center; }
@media (max-width: 959px) { .contact-eye { order: -1; width: min(56vw, 280px); } }
.contact-facts { margin: 0; border-top: 1px solid var(--line); max-width: 680px; }
.contact-facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-facts dt { font: 600 12.5px/1.7 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.contact-facts dd { margin: 0; }
.contact-facts address { font-style: normal; }
@media (max-width: 520px) { .contact-facts div { grid-template-columns: 1fr; gap: 4px; } }
.contact-teaser { padding-bottom: clamp(72px, 9vw, 120px); }
