/* Shortcut — one stylesheet, no build step.
   Visual language: a white paper canvas, near-black ink, and one electric blue used as punctuation
   (checkmarks, eyebrows, highlights). Pill-shaped controls, flat 16px cards, 32px panels.
   Shadows are reserved for "paper" objects floating on the page (mockups, auth card, plan card). */

/* ───────── Font: Noto Sans Georgian (SIL OFL), self-hosted ───────── */
@font-face { font-family: 'Noto Sans Georgian'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/sans-georgian.woff2) format('woff2');
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: 'Noto Sans Georgian'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ───────── Design tokens ───────── */
:root {
  /* Surfaces */
  --paper: #ffffff;
  --snow: #fafafa;
  --snow-2: #f3f4f6;
  --line: #e7e9ed;   /* card hairlines, table rows */
  --mist: #ccd1da;   /* inputs, dividers */

  /* Ink */
  --ink: #1e1e1e;
  --carbon: #0f0f0f;
  --midnight: #0d111b;
  --midnight-hover: #262c3a;
  --smoke: #666666;
  --fog: #8d8d8d;

  /* Accents: blue is the brand; the rest are decoration */
  --blue: #0098f2;
  --blue-ink: #0072b8; /* the same blue, dark enough for small text on white */
  --blue-wash: rgba(0, 152, 242, 0.1);
  --ice: #cfeafa;
  --iris: #6c56fc; --iris-ink: #4a36d6; --lavender: #e1e0fc;
  --magenta: #f200ca; --blush: #f6d2f4;
  --leaf: #5d9c06;
  --coral: #ff6363;

  /* Status (alerts, tags, payments) */
  --ok: #1d7a3a; --ok-l: #e7f5ec;
  --warn: #8a5a00; --warn-l: #fdf2da;
  --bad: #c62f2f; --bad-l: #fdeaea;

  --r-input: 12px;
  --r-card: 16px;
  --r-image: 20px;
  --r-panel: 32px;
  --r-pill: 100px;

  --shadow-btn: 0 0 0 1px rgb(36, 38, 40), 0 1px 2px rgba(27, 28, 29, 0.48);
  --shadow-card: 0 1.78px 8px rgba(0, 0, 0, 0.05), 0 0.89px 2.67px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 1px 2px rgba(10, 13, 20, 0.04), 0 14px 36px rgba(13, 17, 27, 0.09);

  --font: 'Noto Sans Georgian', 'Sylfaen', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1200px;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 500 16px/1.6 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; outline: none; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; line-height: 1.22; letter-spacing: -0.03em; margin: 0; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
strong, b { font-weight: 600; }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.88em; letter-spacing: 0; background: var(--snow-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
::selection { background: var(--ice); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.i { flex: none; vertical-align: middle; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--smoke); }
.small { font-size: 14px; line-height: 1.5; }
.lead { font-size: 18px; color: var(--smoke); line-height: 1.6; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--midnight); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.js .js-hide { display: none; }
.notice-wrap { padding-top: 18px; }
.stack { display: grid; gap: 16px; align-content: start; }

/* Small uppercase label above a heading. Georgian has no case, so uppercase shows Mtavruli. */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-ink); }
/* Same, in grey: field names on "paper" mockups and the plan card. */
.label-caps { font-size: 12px; font-weight: 600; line-height: 1.6; letter-spacing: 0.04em; text-transform: uppercase; color: var(--smoke); }

/* Blue circle with a white check — the brand's main mark of "yes". */
.tick { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; border-radius: 888px; background: var(--blue); color: #fff; }
.tick .i { stroke-width: 3.2; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .tick { margin-top: 2px; }

/* ───────── Header: a floating pill ───────── */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; pointer-events: none; }
.site-header__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 8px 0 20px;
  border-radius: var(--r-pill); pointer-events: auto;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 18px/1 var(--font); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand__mark { flex: none; }
.brand--small { font-size: 16px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); color: var(--ink); font-size: 14px; font-weight: 500; }
.nav__link .i { color: var(--smoke); }
.nav__link:hover { background: var(--snow-2); text-decoration: none; }
.nav__link.is-active { background: var(--snow-2); }
.nav__link.is-active .i { color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
a.chip:hover { text-decoration: none; background: var(--snow); }
.chip--ok { background: var(--blue-wash); color: var(--blue-ink); box-shadow: none; }
a.chip--ok:hover { background: rgba(0, 152, 242, 0.16); }
.chip--warn { background: var(--warn-l); color: var(--warn); box-shadow: none; }
a.chip--warn:hover { background: #fbe9bf; }
.chip--cta { background: var(--midnight); color: #fff; box-shadow: var(--shadow-btn); }
a.chip--cta:hover { background: var(--midnight-hover); }
.avatar {
  width: 38px; height: 38px; flex: none; border-radius: 888px; display: grid; place-items: center;
  background: var(--lavender); color: var(--iris-ink); font-size: 15px; font-weight: 600;
}
.avatar:hover { text-decoration: none; box-shadow: 0 0 0 3px rgba(108, 86, 252, 0.18); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: var(--r-pill);
  font: 500 15px/1.25 var(--font); letter-spacing: -0.02em; white-space: nowrap; cursor: pointer; text-decoration: none !important;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--midnight); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--midnight-hover); }
.btn--light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--mist); }
.btn--light:hover { background: var(--snow); box-shadow: inset 0 0 0 1px var(--fog); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--snow-2); }
.btn--danger { background: var(--bad); color: #fff; box-shadow: 0 0 0 1px #a92424, 0 1px 2px rgba(120, 20, 20, 0.4); }
.btn--danger:hover { background: #ad2727; }
.btn--sm { padding: 7px 14px; font-size: 14px; }
.btn--lg { padding: 13px 24px; font-size: 16px; }
.btn--block { width: 100%; }
/* Pills keep their natural width inside grid forms and cards. */
.form > .btn, .card > .btn { justify-self: start; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ───────── Forms ───────── */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.label { font-size: 14px; font-weight: 600; color: var(--ink); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--mist); border-radius: var(--r-input);
  background: var(--paper); color: var(--ink); font: 500 16px/1.4 var(--font); letter-spacing: -0.01em;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--fog); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--fog); }
.textarea { resize: vertical; min-height: 90px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 152, 242, 0.16); }
.input:disabled, .select:disabled { background: var(--snow-2); color: var(--smoke); border-color: var(--line); }
.input[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--bad); }
.input--sm { padding: 8px 12px; font-size: 15px; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select--sm { width: auto; max-width: 280px; height: 42px; padding: 0 40px 0 16px; border-radius: var(--r-pill); font-size: 14px; }
.hint { font-size: 13px; color: var(--smoke); }
.field__error { font-size: 13px; color: var(--bad); font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--smoke); cursor: pointer; }
.check strong { color: var(--ink); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--midnight); cursor: pointer; }
.check--box { padding: 14px 16px; border-radius: var(--r-input); background: var(--snow); }
.password { position: relative; }
.password .input { padding-right: 48px; }
.password__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 8px; border: 0; background: none; color: var(--fog); cursor: pointer; border-radius: 10px; }
.password__toggle:hover { color: var(--ink); }
.password__toggle.is-on { color: var(--blue-ink); }

/* ───────── Alerts & banners ───────── */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-input); font-size: 14px; line-height: 1.55; }
.alert .i { margin-top: 1px; }
.alert--ok { background: var(--ok-l); color: var(--ok); }
.alert--error { background: var(--bad-l); color: var(--bad); }
.alert--info { background: var(--blue-wash); color: var(--blue-ink); }
.alert--warn { background: var(--warn-l); color: var(--warn); }
.test-mode { justify-content: center; }

.banner { display: flex; align-items: center; gap: 16px; padding: 18px 18px 18px 20px; border-radius: var(--r-card); background: var(--blue-wash); }
.banner__icon { width: 44px; height: 44px; flex: none; border-radius: 888px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.banner__text { flex: 1; display: grid; gap: 2px; }
.banner__text strong { letter-spacing: -0.02em; }
.banner__text span { font-size: 14px; color: var(--smoke); }
.banner--warn { background: var(--warn-l); }
.banner--warn .banner__icon { background: var(--paper); color: var(--warn); }

/* ───────── Book covers & cards ───────── */
.cover--blue { --t: var(--blue); --t-d: #005c93; --t-l: var(--ice); }
.cover--iris { --t: var(--iris); --t-d: #3b2bb0; --t-l: var(--lavender); }
.cover--pink { --t: var(--magenta); --t-d: #8f0078; --t-l: var(--blush); }
.cover--leaf { --t: var(--leaf); --t-d: #3b6404; --t-l: #e4f0d2; }
.cover--coral { --t: var(--coral); --t-d: #a32f2f; --t-l: #ffe1e1; }

.cover {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-card); container-type: inline-size;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 10% 11% 15%;
  background: var(--t-l, var(--snow-2)); color: var(--t-d, var(--ink));
}
.cover::before { content: ''; position: absolute; right: -26%; top: -12%; width: 84%; aspect-ratio: 1; border-radius: 50%; background: var(--t); opacity: 0.22; }
.cover::after { content: ''; position: absolute; right: 14%; top: 21%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--t); opacity: 0.9; }
.cover__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 6.5%; background: var(--t); opacity: 0.9; box-shadow: inset -2px 0 0 rgba(255, 255, 255, 0.35); }
.cover__title {
  position: relative; z-index: 1; font: 600 clamp(13px, 10.5cqi, 22px)/1.2 var(--font); letter-spacing: -0.03em; color: var(--t-d);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.cover__title--m { font-size: clamp(12px, 9cqi, 19px); }
.cover__title--s { font-size: clamp(11px, 7.6cqi, 17px); }
.cover__title--xs { font-size: clamp(10px, 6.6cqi, 15px); }
.cover__author { position: relative; z-index: 1; margin-top: 6%; font-size: clamp(10px, 6.5cqi, 13px); line-height: 1.35; letter-spacing: -0.01em; opacity: 0.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover--image { padding: 0; background: var(--snow-2); }
.cover--image::before, .cover--image::after { content: none; }
.cover--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 28px 20px; }
.books--row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(148px, 176px); overflow-x: auto; padding: 4px 4px 14px; margin: -4px -4px 0; scroll-snap-type: x proximity; scrollbar-width: thin; }
.books--row .book { scroll-snap-align: start; }
.book { display: flex; flex-direction: column; gap: 12px; color: inherit; min-width: 0; }
.book:hover { text-decoration: none; }
.book__cover { position: relative; border-radius: var(--r-card); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.book:hover .book__cover, .book:focus-visible .book__cover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.book:focus-visible { outline: none; }
.book:focus-visible .book__cover { outline: 2px solid var(--blue); outline-offset: 3px; }
.book--locked .cover { filter: saturate(0.75); }
.book__badges { position: absolute; top: 9px; left: 12%; right: 9px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0; background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 13, 20, 0.08); }
.badge--free { background: var(--midnight); color: #fff; }
.badge--new { color: var(--blue-ink); }
.badge--hidden { background: var(--ink); color: #fff; }
.book__lock { position: absolute; right: 9px; bottom: 9px; z-index: 2; width: 32px; height: 32px; border-radius: 888px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.95); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 13, 20, 0.08); }
.book__body { display: grid; gap: 2px; }
.book__title { font: 600 15px/1.4 var(--font); letter-spacing: -0.02em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.book__author, .book__meta { font-size: 13px; line-height: 1.45; color: var(--smoke); }

/* ───────── Landing: hero ───────── */
.hero { padding: 80px 0 24px; overflow: hidden; }
.hero__text { display: grid; justify-items: center; max-width: 880px; margin: 0 auto; text-align: center; }
.hero .eyebrow { margin-bottom: 20px; }
.display { font-size: clamp(36px, 6vw, 64px); line-height: 1.13; letter-spacing: -0.035em; }
.hero .lead { margin-top: 22px; max-width: 36em; font-size: clamp(17px, 1.7vw, 20px); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.rates { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; font-size: 15px; }
.rates li { display: inline-flex; align-items: center; gap: 8px; }

/* The "desk": a study sheet, three books and a flashcard, scattered like paper. */
.desk { position: relative; height: 450px; max-width: 1000px; margin: 64px auto 0; }
.paper { background: var(--paper); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
.desk__books { position: absolute; left: 50%; top: 0; width: 420px; height: 360px; margin-left: -210px; }
.desk__book { position: absolute; width: 210px; }
.desk__book .cover { box-shadow: var(--shadow-float); }
.desk__book--1 { left: 0; top: 46px; transform: rotate(-9deg); }
.desk__book--2 { left: 105px; top: 6px; z-index: 2; transform: rotate(1.5deg); }
.desk__book--3 { left: 210px; top: 50px; transform: rotate(9deg); }

.sheet { position: absolute; left: 0; top: 70px; z-index: 3; width: 300px; padding: 20px 20px 16px; transform: rotate(-4deg); }
.sheet__top { display: flex; justify-content: space-between; gap: 8px; }
.sheet__title { margin: 8px 0 16px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; }
.sheet__rows { list-style: none; display: grid; gap: 12px; }
.sheet__rows li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.sheet__n { width: 28px; height: 28px; border-radius: 888px; display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--blue); }
.sheet__rows li:nth-child(2) .sheet__n { background: var(--iris); }
.sheet__rows li:nth-child(3) .sheet__n { background: var(--ink); }
.skel { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: var(--snow-2); }
.sheet__rows li:nth-child(1) .skel { width: 88%; }
.sheet__rows li:nth-child(2) .skel { width: 70%; }
.sheet__rows li:nth-child(3) .skel { width: 80%; }
.sheet__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--mist); font-size: 14px; font-weight: 600; }

.flash { position: absolute; right: 0; top: 40px; z-index: 3; width: 270px; padding: 20px; display: grid; gap: 10px; transform: rotate(4deg); }
.flash__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.flash__chip { padding: 2px 10px; border-radius: var(--r-pill); background: var(--lavender); color: var(--iris-ink); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.flash__q { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.03em; }
.flash__a .skel:first-child { width: 92%; }
.flash__a .skel:last-child { width: 64%; }
.flash__hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--smoke); }

.desk__pill { position: absolute; left: 50%; bottom: 22px; z-index: 4; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 12px; border-radius: var(--r-pill); white-space: nowrap; font-size: 14px; font-weight: 600; }

/* ───────── Landing: sections ───────── */
.section { padding: 96px 0; }
.section--flush { padding-top: 0; }
.section__head { margin-bottom: 40px; display: grid; gap: 12px; justify-items: start; }
.section__head h2, .section__head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.17; }
.section__head p { font-size: 17px; }
.section__head.center { max-width: 680px; margin-left: auto; margin-right: auto; justify-items: center; text-align: center; }
.panel { padding: 88px 48px; border-radius: var(--r-panel); background: var(--snow); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 28px; border-radius: var(--r-card); background: var(--paper); }
.step__n { width: 32px; height: 32px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 888px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--smoke); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; border-radius: var(--r-card); background: var(--snow); }
.feature__icon { width: 44px; height: 44px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 888px; background: var(--ice); color: var(--blue-ink); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--smoke); font-size: 15px; }

.pricing-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
.pricing-split .section__head { margin-bottom: 28px; }

.plan { max-width: 460px; margin: 0 auto; padding: 32px; display: grid; gap: 24px; text-align: left; border-radius: var(--r-image); background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.plan__head { display: grid; gap: 8px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price strong { font: 600 56px/1 var(--font); letter-spacing: -0.04em; }
.plan__price span { color: var(--smoke); font-size: 16px; }
.plan .ticks { padding-top: 24px; border-top: 1px dashed var(--mist); }
.plan__secure { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }

.faq { display: grid; border-top: 1px solid var(--mist); }
.faq__item { border-bottom: 1px solid var(--mist); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; font-size: 22px; font-weight: 400; line-height: 1; color: var(--ink); transition: transform 0.2s var(--ease); }
.faq__item summary:hover::after { background: var(--snow-2); border-radius: 888px; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 44px 22px 0; color: var(--smoke); }

.cta { display: grid; justify-items: center; gap: 28px; padding: 88px 32px; border-radius: var(--r-panel); background: var(--snow); text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.17; max-width: 15em; }

/* ───────── Auth ───────── */
.v-auth { background: var(--snow); }
.v-auth .site-header__row { background: rgba(255, 255, 255, 0.9); }
.auth { min-height: calc(100vh - 68px); display: grid; align-content: center; justify-items: center; gap: 20px; padding: 40px 16px 64px; }
.auth__card { width: 100%; max-width: 460px; padding: 36px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.auth__card h1 { font-size: 32px; margin-bottom: 6px; }
.auth__intro { margin-bottom: 24px; }
.auth__foot { color: var(--smoke); font-size: 15px; }
.auth__foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sent { display: grid; justify-items: center; gap: 12px; text-align: center; }
.sent__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 888px; background: var(--ice); color: var(--blue-ink); }

/* ───────── Library ───────── */
.library { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
.library__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.library__head .eyebrow { margin-bottom: 8px; }
.library__head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.17; }
.access-line { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: var(--r-pill); background: var(--blue-wash); color: var(--blue-ink); font-size: 14px; font-weight: 500; }
.shelf { display: grid; gap: 20px; }
.shelf__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.shelf__title { font-size: 24px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; height: 42px; min-width: 240px; padding: 0 16px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--mist); color: var(--fog); transition: border-color 0.2s, box-shadow 0.2s; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 15px var(--font); letter-spacing: -0.01em; }
.search input::placeholder { color: var(--fog); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 152, 242, 0.16); }
.no-results { padding: 10px 0; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; text-align: center; border-radius: var(--r-card); background: var(--snow); }
.empty__icon { width: 60px; height: 60px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 888px; background: var(--paper); color: var(--fog); box-shadow: inset 0 0 0 1px var(--line); }
.empty h3 { font-size: 20px; }
.request { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: center; padding: 32px; border-radius: var(--r-card); background: var(--snow); }
.request h2 { font-size: 22px; margin-bottom: 4px; }
.request__form { display: flex; gap: 10px; }
.request__form .input { flex: 1; }

/* ───────── Pricing & payment status ───────── */
.pricing-page { display: grid; gap: 24px; padding-top: 56px; padding-bottom: 80px; }
.status-page { display: grid; justify-items: center; gap: 16px; padding-top: 80px; padding-bottom: 80px; text-align: center; }
.status-page h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.17; }
.status-page .lead { max-width: 32em; }
.status-icon { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 888px; background: var(--snow-2); color: var(--ink); }
.status-icon--ok { background: var(--ok-l); color: var(--ok); }
.status-icon--bad { background: var(--bad-l); color: var(--bad); }
.status-icon--wait { background: var(--blue-wash); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ice); border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ───────── Cards, tables, tags ───────── */
.card { display: grid; gap: 16px; align-content: start; min-width: 0; padding: 24px; border-radius: var(--r-card); background: var(--snow); }
.card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.card h2 .i { color: var(--blue); }
.card--wide { grid-column: 1 / -1; }
.card--danger { background: var(--paper); box-shadow: inset 0 0 0 1px #f3c4c4; }
.card--access.is-active { background: var(--blue-wash); }
.big { font: 600 30px/1.2 var(--font); letter-spacing: -0.03em; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 12px; border-bottom: 1px solid var(--mist); text-align: left; font-size: 13px; font-weight: 500; color: var(--smoke); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--ink); font-weight: 600; }
.nowrap { white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap; background: var(--snow-2); color: var(--smoke); }
.tag--approved { background: var(--ok-l); color: var(--ok); }
.tag--declined, .tag--expired { background: var(--bad-l); color: var(--bad); }
.tag--created, .tag--processing { background: var(--blue-wash); color: var(--blue-ink); }
.tag--reversed { background: var(--warn-l); color: var(--warn); }
.devices { list-style: none; display: grid; gap: 8px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-input); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv dt { color: var(--smoke); }
.kv dd { text-align: right; overflow-wrap: anywhere; }
.list { list-style: none; display: grid; gap: 12px; }
.list li { display: grid; gap: 2px; }

/* ───────── Account ───────── */
.account { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 80px; }
.account h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.17; }
.account__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account__logout { justify-self: start; }

/* ───────── Admin ───────── */
.admin { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 80px; }
.admin__tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; }
.admin__tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.admin__tab .i { color: var(--smoke); }
.admin__tab:hover { text-decoration: none; background: var(--snow); }
.admin__tab.is-active { background: var(--midnight); box-shadow: var(--shadow-btn); color: #fff; }
.admin__tab.is-active .i { color: #fff; }
.admin__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin__head h1 { font-size: 32px; }
.admin__actions { display: flex; gap: 8px; }
.admin__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.admin__split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.admin__form { max-width: 780px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 20px 24px; border-radius: var(--r-card); background: var(--snow); }
.stat__label { font-size: 13px; color: var(--smoke); }
.stat__value { margin-top: 6px; font: 600 32px/1.2 var(--font); letter-spacing: -0.03em; }
.stat__sub { font-size: 13px; color: var(--smoke); }
.table--books .thumb { width: 56px; }
.thumb .cover { width: 44px; padding: 0; border-radius: 8px; }
.thumb .cover__title, .thumb .cover__author { display: none; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.picker__group { display: grid; gap: 6px; margin: 0; padding: 10px 14px 12px; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--paper); }
.picker__group legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.toggles { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-input); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.cover-field { display: flex; gap: 14px; align-items: flex-start; }
.cover-field > div:last-child { display: grid; gap: 8px; flex: 1; }
.cover-field__preview { width: 120px; flex: none; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.form--inline .field { flex: 1; min-width: 160px; }
.field--narrow { max-width: 170px; }
.unis { display: grid; gap: 16px; }
.programs { list-style: none; display: grid; gap: 8px; }
.programs .form--inline { align-items: center; }
.programs .input--sm { flex: 1; min-width: 180px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar--admin .search { flex: 1; max-width: 420px; }

/* ───────── Legal & contact ───────── */
.prose { display: grid; gap: 16px; padding-top: 48px; padding-bottom: 80px; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.17; }
.prose h2 { font-size: 20px; margin: 12px 0 6px; }
.prose section p { color: var(--smoke); margin-bottom: 6px; font-weight: 450; }
.contact { display: grid; border-top: 1px solid var(--mist); }
.contact div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--mist); }
.contact dt { color: var(--smoke); }

/* ───────── Footer ───────── */
.site-footer { margin-top: 32px; padding: 48px 0 32px; border-top: 1px solid var(--line); }
.site-footer__grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer__grid > div { display: grid; gap: 12px; max-width: 380px; }
.site-footer__links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 24px; }
.site-footer__links a { color: var(--smoke); font-size: 14px; }
.site-footer__links a:hover { color: var(--ink); }
.site-footer__legal { display: grid; gap: 4px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .sheet { left: -10px; width: 260px; transform: rotate(-5deg) scale(0.92); }
  .flash { right: -10px; transform: rotate(4deg) scale(0.92); }
}
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin__split, .admin__cols { grid-template-columns: minmax(0, 1fr); }
  .pricing-split { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pricing-split .section__head { justify-items: center; text-align: center; }
  .pricing-split .rates { margin-bottom: 32px; }
  .sheet { display: none; }
  .desk { max-width: 640px; }
  .flash { right: 0; top: auto; bottom: 70px; }
}
@media (max-width: 760px) {
  .steps, .features { grid-template-columns: 1fr; }
  .account__grid { grid-template-columns: minmax(0, 1fr); }
  .request { grid-template-columns: 1fr; padding: 24px; }
  .request__form { flex-direction: column; }
  .contact div { grid-template-columns: 1fr; gap: 2px; }
  .panel { padding: 64px 24px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .site-header { padding-top: 8px; }
  .site-header__row { height: 52px; padding: 0 6px 0 14px; }
  .nav__link span { display: none; }
  .nav__link { padding: 8px; }
  .brand { font-size: 17px; }
  .hero { padding: 48px 0 8px; }
  .rates { gap: 10px 18px; font-size: 14px; }
  .desk { height: 330px; margin-top: 44px; }
  .desk__books { width: 290px; height: 260px; margin-left: -145px; }
  .desk__book { width: 146px; }
  .desk__book--1 { top: 34px; }
  .desk__book--2 { left: 72px; }
  .desk__book--3 { left: 144px; top: 38px; }
  .flash { width: 200px; padding: 14px; gap: 6px; bottom: 56px; right: -8px; transform: rotate(5deg); }
  .flash__q { font-size: 17px; }
  .flash__a, .flash__hint, .flash__chip { display: none; }
  .desk__pill { bottom: 4px; font-size: 13px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 28px; }
  .panel { padding: 48px 20px; border-radius: 24px; }
  .cta { padding: 56px 20px; border-radius: 24px; }
  .step, .feature { padding: 24px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .book__title { font-size: 14px; }
  .books--row { grid-template-columns: none; grid-auto-columns: 42%; }
  .shelf__head { align-items: stretch; }
  .toolbar { width: 100%; display: grid; grid-template-columns: 1fr; }
  .search { min-width: 0; }
  .select--sm { width: 100%; max-width: none; }
  .table--history th:nth-child(3), .table--history td:nth-child(3) { display: none; }
  .banner { flex-wrap: wrap; }
  .banner .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .auth__card { padding: 28px 20px; border-radius: 20px; }
  .plan { padding: 24px; }
  .plan__price strong { font-size: 48px; }
  .stats { gap: 10px; }
  .stat { padding: 16px 18px; }
  .stat__value { font-size: 26px; }
  .faq__item summary { font-size: 16px; }
}
@media (max-width: 380px) {
  .chip { padding: 6px 9px; }
  .desk__pill { font-size: 12px; padding: 8px 14px 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
