/* Заглушка losevslab.ru. Дизайн-система «бумага и тёмная витрина» — DESIGN.md в корне проекта. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/playfair-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/playfair-lat.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+2212; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap;
  src: url(fonts/playfair-italic-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap;
  src: url(fonts/playfair-italic-lat.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+2212; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/bitter-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/bitter-lat.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+2212; }

:root {
  --bg: #f5f0e6; --surface: #fbf8f2; --sand: #efe7d8; --text: #1a1f2b; --muted: #4a4f5a;
  --line: rgba(26, 31, 43, 0.16); --accent: #a84d2b; --btn: #a84d2b; --on-btn: #f5f0e6;
  --well: #0c0d0f; --well-edge: transparent;
  --sc-text: #ece7de; --sc-caption: #b3aea5;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Bitter", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10141d; --surface: #151a24; --sand: #1c2230; --text: #f0e9da; --muted: #b9b2a4;
    --line: rgba(240, 233, 218, 0.16); --accent: #d97757; --btn: #d97757; --on-btn: #10141d;
    --well: #07080a; --well-edge: rgba(240, 233, 218, 0.09);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10141d; --surface: #151a24; --sand: #1c2230; --text: #f0e9da; --muted: #b9b2a4;
  --line: rgba(240, 233, 218, 0.16); --accent: #d97757; --btn: #d97757; --on-btn: #10141d;
  --well: #07080a; --well-edge: rgba(240, 233, 218, 0.09);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 clamp(17px, 0.95rem + 0.25vw, 19px)/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h1 { font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.45rem; line-height: 1.2; }
p { margin: 0; }

/* Шапка */
.shapka { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.znak { display: flex; flex-direction: column; line-height: 1.2; }
.nazvanie { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.cherta { color: var(--accent); }
.imya { font-size: 0.85rem; color: var(--muted); }
.tema {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.tema:hover { color: var(--accent); border-color: var(--accent); }
.tema svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tema .luna { fill: currentColor; stroke: none; }
.tema .solnce { display: none; }
:root[data-theme="dark"] .tema .luna { display: none; }
:root[data-theme="dark"] .tema .solnce { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tema .luna { display: none; }
  :root:not([data-theme="light"]) .tema .solnce { display: block; }
}

/* Первый экран */
.pervyy {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 104px);
}
.metka { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.metka::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.lid { margin-top: 24px; max-width: 34em; color: var(--muted); }
.deystviya { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.knopka {
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 26px;
  background: var(--btn); color: var(--on-btn); text-decoration: none; font-weight: 600; font-size: 1.02rem;
}
.knopka:hover { color: var(--on-btn); filter: brightness(1.08); }
.knopka svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ssylka { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.primechanie { margin-top: 20px; font-size: 0.92rem; color: var(--muted); }

/* Тёмная витрина: сцена, свет по краю, медь только в свете */
.vitrina {
  margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-edge);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 52px);
  min-height: 520px;
}
.vitrina::before { /* медное пятно света за телефоном */
  content: ""; position: absolute; left: 4%; top: 12%; width: 62%; height: 76%;
  background: radial-gradient(closest-side, rgba(212, 140, 88, 0.22), rgba(212, 140, 88, 0.06) 55%, transparent 75%);
  pointer-events: none;
}
.vitrina::after { /* дымка сверху, сцена уходит в тень */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 30% 40%, transparent 50%, rgba(0, 0, 0, 0.55));
}
.scena { position: relative; z-index: 1; width: clamp(170px, 17vw, 230px); }
.scena img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(236, 231, 222, 0.15)); }
.podpisi { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.podpisi li { display: flex; align-items: baseline; gap: 14px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--sc-caption); }
.podpisi li::before { content: ""; flex: 0 0 36px; height: 1px; background: rgba(236, 231, 222, 0.35); transform: translateY(-4px); }
.podpisi li:first-child { color: var(--sc-text); }

/* Направления */
.napravleniya { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px); }
.spisok { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.spisok li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; padding: 30px 0; border-top: 1px solid var(--line); }
.spisok .nomer { grid-row: span 2; font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 8px; }
.spisok p { color: var(--muted); }

/* И ещё */
.eshche { padding-bottom: clamp(56px, 8vw, 96px); }
.setka { margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 40px); }
.setka > div { border-top: 1px solid var(--line); padding-top: 20px; }
.setka dt { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; }
.setka dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Финал */
.final { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 9vw, 112px); }
.final p { margin-top: 18px; color: var(--muted); }

/* Подвал: тише страницы */
.podval { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 15px; color: var(--muted); }
.podval .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Планшет и телефон */
@media (max-width: 960px) {
  .pervyy { grid-template-columns: minmax(0, 1fr); }
  .vitrina { min-height: 0; }
  .setka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .spisok, .setka { grid-template-columns: minmax(0, 1fr); }
  .spisok li { grid-template-columns: 40px minmax(0, 1fr); padding: 24px 0; }
  .vitrina { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); border-radius: 0;
    grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 32px var(--pad); }
  .scena { width: 132px; }
  .podpisi { gap: 18px; }
  .podpisi li { font-size: 12.5px; gap: 10px; }
  .podpisi li::before { flex-basis: 20px; }
  .knopka { width: 100%; justify-content: space-between; }
  .deystviya { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
