/* liqi.page — магазин электронных книг Linden & Quill.
   Система снята с penguin.co.uk (13.11.2026): белая шапка 96 с поиском-таблеткой и чёрной кнопкой,
   сплошная насыщенная заливка под плитками, плитки r24 с зазором 16 и подписью снизу слева,
   контейнер 1280 при полях 80. Цвет свой: липовая зелень издательства, доведённая до насыщенной,
   акцент лайм — только главные кнопки и точка статуса. Обложки — предметы (3D-книга, стена обложек). */

:root {
  --ground: #1F6A45;
  --ground-2: #17553A;
  --ground-3: #0F3F2A;
  --lime: #D8F36A;
  --lime-2: #C6E650;
  --ink: #0E0F0C;
  --ink-2: #2B2D27;
  --muted: #6A6D63;
  --line: #E4E2DA;
  --paper: #FFFFFF;
  --cream: #F6F3EC;

  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Spectral", Georgia, serif;

  --gut: clamp(16px, 5.5vw, 80px);
  --maxw: 1440px;
  --r-tile: 24px;
  --r-card: 16px;

  --e-display: cubic-bezier(.16, 1, .3, 1);
  --e-body: cubic-bezier(.25, .46, .45, .94);
  --e-ui: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ground) var(--cream); scrollbar-width: thin; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--ground); border-radius: 10px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--ground-3); }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; top: 12px; }
.muted { color: var(--muted); }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s var(--e-ui); }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { height: 96px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__word { font-weight: 800; font-size: 44px; letter-spacing: -.055em; line-height: 1; color: var(--ground); padding-bottom: 6px; }
.logo__by { font-size: 12px; line-height: 1.2; color: var(--muted); font-weight: 500; }
.search { position: relative; display: flex; align-items: center; width: min(440px, 100%); height: 50px; border: 1.5px solid var(--ink); border-radius: 25px; padding: 0 4px 0 20px; background: #fff; text-decoration: none; transition: box-shadow .25s var(--e-ui); }
.search:focus-within { box-shadow: 0 0 0 4px rgba(31,106,69,.18); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px/1 var(--sans); color: var(--ink); }
.search input::placeholder, .search--link span:first-child { color: #55584f; font-weight: 500; font-size: 16px; }
.search--link span:first-child { flex: 1; }
.search__btn { width: 40px; height: 40px; border-radius: 50%; background: var(--ground); color: #fff; display: grid; place-items: center; flex: none; }
.top .pill { margin-left: auto; }

/* ---------- кнопки-таблетки ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 32px; font: 700 15px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; transition: transform .35s var(--e-display), background-color .2s var(--e-ui), color .2s var(--e-ui), border-color .2s var(--e-ui); }
.pill:active { transform: scale(.97); }
.pill--ink { background: var(--ink); color: #fff; }
.pill--ink:hover { background: var(--ground-3); }
.pill--lime { background: var(--lime); color: var(--ink); }
.pill--lime:hover { background: #fff; }
.pill--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.pill--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pill--ghost-ink { border-color: var(--ink); color: var(--ink); }
.pill--ghost-ink:hover { background: var(--ink); color: #fff; }
.pill--big { height: 56px; padding: 0 30px; font-size: 16px; }

/* ---------- первый экран: заливка + стена обложек ---------- */
.hero { background: var(--ground); color: #fff; overflow: hidden; position: relative; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 32px; height: clamp(560px, calc(100svh - 96px), 720px); align-items: center; }
.hero__text { padding: 72px 0 80px; position: relative; z-index: 2; }
.hero__h { font-weight: 800; font-size: clamp(44px, 6.1vw, 100px); line-height: .9; letter-spacing: -.035em; }
.hero__lead { margin-top: 28px; max-width: 30em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: rgba(255,255,255,.86); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.66); }
.hero--short .wrap { padding-block: 120px 140px; }

.wall { position: relative; align-self: stretch; margin-right: calc(-1 * var(--gut)); overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 16%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.wall__tilt { position: absolute; inset: -30% -10% -30% 4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; transform: rotate(-7deg); }
.wall__col { display: flex; flex-direction: column; gap: 16px; animation: drift 90s linear infinite; will-change: transform; }
.wall__col--1 { animation-duration: 110s; animation-direction: reverse; }
.wall__col--2 { animation-duration: 100s; }
.wall__col img { width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.08) inset; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* ---------- подборки: плитки на заливке ---------- */
.collections { background: var(--ground); padding: 8px 0 96px; color: #fff; }
.sec-h { font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -.03em; }
.collections .sec-h { margin-bottom: 32px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 236px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-tile); background: var(--tone); text-decoration: none; color: #fff; isolation: isolate; }
.tile--0 { grid-row: span 2; }
.tile--2 { grid-row: span 2; }
.tile--5 { grid-column: span 2; }
.tile--5 .tile__fan img { width: 26%; top: 8%; left: calc(30% + var(--k) * 15%); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.62) 100%); z-index: 1; }
.tile__fan { position: absolute; inset: 0; display: block; }
.tile__fan img { position: absolute; width: 46%; aspect-ratio: 5/8; height: auto; object-fit: cover; border-radius: 8px; top: 10%; left: calc(6% + var(--k) * 20%); transform: rotate(calc((var(--k) - 1.5) * 6deg)) translateY(calc(var(--k) * 4%)); box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); transition: transform .7s var(--e-display); }
.tile--0 .tile__fan img, .tile--2 .tile__fan img { width: 58%; top: 8%; left: calc(4% + var(--k) * 12%); }
.tile:hover .tile__fan img { transform: rotate(calc((var(--k) - 1.5) * 10deg)) translateY(calc(var(--k) * 4% - 6%)) translateX(calc((var(--k) - 1.5) * 8%)); }
.tile__text { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.tile__count { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--lime); }
.tile__title { font-weight: 800; font-size: 28px; line-height: 1.02; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.tile--0 .tile__title, .tile--2 .tile__title, .tile--5 .tile__title { font-size: 36px; }
.tile__line { font-size: 14.5px; color: rgba(255,255,255,.82); max-width: 26em; }

/* ---------- полка ---------- */
.shelf { padding: 96px 0 104px; }
.shelf__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 18px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; font: 600 14.5px/1 var(--sans); color: var(--ink-2); cursor: pointer; transition: background-color .2s var(--e-ui), border-color .2s var(--e-ui), color .2s var(--e-ui); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.shelf__empty { padding: 40px 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 28px; }
.grid--row { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.bk { text-decoration: none; display: flex; flex-direction: column; gap: 16px; }
.bk[hidden] { display: none; }
.bk__obj { display: block; perspective: 1400px; padding: 0 6px; }
.bk__book { position: relative; display: block; transform-style: preserve-3d; transition: transform .8s var(--e-display); transform-origin: 50% 50%; }
.bk__book img { width: 100%; height: auto; aspect-ratio: 5/8; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 16px 30px -14px rgba(14,15,12,.45); position: relative; z-index: 1; backface-visibility: hidden; }
.bk__spine { position: absolute; top: 0; left: 0; bottom: 0; width: 22px; background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 70%, #000) 0, var(--tone) 55%, color-mix(in srgb, var(--tone) 80%, #000)); transform-origin: left center; transform: rotateY(90deg); border-radius: 3px 0 0 3px; }
.bk:hover .bk__book, .bk:focus-visible .bk__book { transform: rotateY(28deg) translateX(6px); }
.bk__meta { display: flex; flex-direction: column; gap: 3px; }
.bk__title { font-weight: 700; font-size: 16px; line-height: 1.25; letter-spacing: -.005em; }
.bk__author { font-size: 14.5px; color: var(--muted); }
.tag { align-self: flex-start; margin-top: 8px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 12px; background: #EEF3E6; color: var(--ground-2); }

/* ---------- подписка ---------- */
.sub { padding: 0 0 104px; }
.sub__card { background: var(--ground); color: #fff; border-radius: var(--r-tile); padding: 56px clamp(24px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.sub__card::before { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--ground-2); }
.sub__card > * { position: relative; }
.sub__h { font-weight: 800; font-size: clamp(34px, 4vw, 56px); line-height: .92; letter-spacing: -.035em; }
.sub__card p { margin-top: 14px; max-width: 34em; color: rgba(255,255,255,.84); }
.sub__card .pill--ink { background: var(--lime); color: var(--ink); }
.sub__card .pill--ink:hover { background: #fff; }

/* ---------- страница книги ---------- */
.bp { background: var(--tone); color: #fff; overflow: hidden; position: relative; }
.bp::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 20% 40%, rgba(255,255,255,.10), transparent 60%), linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.28)); pointer-events: none; }
.bp__in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: 64px 80px; }
.bp__obj { perspective: 1800px; display: flex; justify-content: center; }
.book3d { position: relative; width: min(400px, 100%); transform-style: preserve-3d; transform: rotateY(var(--ry, 24deg)) rotateX(var(--rx, 2deg)); transition: transform 1s var(--e-display); }
.book3d img { position: relative; z-index: 2; width: 100%; height: auto; aspect-ratio: 5/8; object-fit: cover; border-radius: 3px 10px 10px 3px; box-shadow: 30px 40px 60px -20px rgba(0,0,0,.55); }
.book3d__spine { position: absolute; top: 0; bottom: 0; left: 0; width: 38px; transform-origin: left center; transform: rotateY(90deg); background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 55%, #000), color-mix(in srgb, var(--tone) 85%, #fff 5%) 50%, color-mix(in srgb, var(--tone) 60%, #000)); border-radius: 4px 0 0 4px; }
.book3d__pages { position: absolute; top: 4px; bottom: 4px; right: 0; width: 36px; transform-origin: right center; transform: rotateY(90deg) translateZ(0); background: repeating-linear-gradient(90deg, #f3efe4 0 2px, #ddd6c4 2px 3px); }
.bp__series { font-size: 14px; font-weight: 700; color: var(--lime); letter-spacing: .02em; margin-bottom: 14px; }
.bp__h { font-weight: 800; font-size: clamp(40px, 5vw, 76px); line-height: .92; letter-spacing: -.035em; text-wrap: balance; }
.bp__author { margin-top: 16px; font-size: 20px; color: rgba(255,255,255,.86); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 16px; background: rgba(255,255,255,.14); }
.buy { margin-top: 36px; padding: 24px; border-radius: var(--r-tile); background: rgba(0,0,0,.22); max-width: 560px; }
.buy__status { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(216,243,106,.6); animation: pulse 2.4s var(--e-body) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(216,243,106,0); } 100% { box-shadow: 0 0 0 0 rgba(216,243,106,0); } }
.buy__row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.buy__read { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; color: #fff; }

.read { background: var(--cream); padding: 96px 0 104px; }
.read__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); gap: 40px; align-items: start; }
.read__side { position: sticky; top: 128px; }
.read__side p { margin-top: 14px; font-size: 15px; max-width: 18em; }
.page { position: relative; background: #fff; border-radius: var(--r-tile); padding: clamp(28px, 5vw, 64px); box-shadow: 0 30px 60px -40px rgba(14,15,12,.35); font-family: var(--serif); font-size: 19px; line-height: 1.72; color: #1e1d19; max-height: 1500px; overflow: hidden; }
.page p + p { text-indent: 1.4em; }
.page__ch { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ground); margin-bottom: 24px; text-indent: 0 !important; }
.page__ch + p::first-letter { font-size: 3.1em; float: left; line-height: .9; padding: 6px 8px 0 0; color: var(--ground); font-weight: 500; }
.page__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 85%); }
.read__end { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: -8px; }
.read__end p { width: 100%; font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; }
.shelf--more { padding-top: 88px; }
.shelf--more .sec-h { margin-bottom: 36px; }

/* ---------- подвал ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.8); padding: 64px 0 72px; }
.foot__in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.logo__word--foot { color: var(--lime); font-size: 56px; }
.foot__brand p { margin-top: 12px; max-width: 26em; font-size: 15px; }
.foot__brand a { color: #fff; }
.foot__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 40px; align-content: start; font-size: 15px; }
.foot__nav a { text-decoration: none; color: #fff; }
.foot__nav a:hover { color: var(--lime); }

/* ---------- появление в обе стороны ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--e-body) var(--d, 0ms), transform 1s var(--e-display) var(--d, 0ms); }
.reveal.from-above { transform: translateY(-28px); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- узкие экраны ---------- */
@media (max-width: 1180px) {
  .grid, .grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile--0, .tile--2 { grid-row: span 1; }
  .tile--5 { grid-column: span 1; }
  .tile--0 .tile__fan img, .tile--2 .tile__fan img, .tile--5 .tile__fan img { width: 40%; top: 8%; left: calc(4% + var(--k) * 18%); }
  .read__in { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
  .read__side { position: static; }
  .read__end { grid-column: 1; }
}
@media (max-width: 860px) {
  .top__in { height: auto; flex-wrap: wrap; gap: 12px 16px; padding-block: 12px 14px; }
  .logo__word { font-size: 36px; }
  .search { order: 3; width: 100%; height: 46px; }
  .top .pill { height: 44px; padding: 0 16px; }
  .hero__in { grid-template-columns: 1fr; height: auto; gap: 0; }
  .hero__text { padding: 48px 0 36px; }
  .wall { margin: 0 calc(-1 * var(--gut)); height: 320px; mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent); }
  .wall__tilt { inset: -60% 6% -60% 6%; }
  .collections { padding-bottom: 64px; }
  .tiles { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .tile--0 .tile__fan img, .tile--2 .tile__fan img { width: 38%; top: 8%; left: calc(4% + var(--k) * 18%); }
  .tile__fan img { width: 38%; left: calc(4% + var(--k) * 18%); }
  .tile--0 .tile__title, .tile--2 .tile__title, .tile--5 .tile__title, .tile__title { font-size: 26px; }
  .shelf { padding: 64px 0 72px; }
  .grid, .grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 44px; }
  .bp__in { grid-template-columns: 1fr; padding-block: 32px 48px; gap: 36px; }
  .book3d { width: min(220px, 62vw); }
  .buy { padding: 18px; }
  .buy__row .pill { width: 100%; }
  .read { padding: 64px 0 72px; }
  .page { font-size: 18px; }
  .sub__card { padding: 40px 24px; }
  .sub__card .pill { width: 100%; }
  .foot__nav { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .logo__by { display: none; }
  .top .pill span { display: none; }
  .top .pill { width: 44px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wall__col, .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bk__book, .book3d, .tile__fan img { transition: none; }
}
