/* ============================================================
   Лендинг-разводящая прототипов
   ============================================================ */

:root {
  --ink:        #2b1410;
  --wine-deep:  #462627;
  --wine:       #822625;
  --brick:      #b94722;
  --amber:      #c47731;
  --honey:      #f1c06f;
  --gold:       #f3db91;
  --paper:      #f5ebd5;
  --paper-soft: #f8f1de;
  --dark:       #150906;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 30% 30%, rgba(241, 192, 111, .35), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(130, 38, 37, .18), transparent 60%),
    var(--paper-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, rgba(70, 38, 39, .04) 0 2px, transparent 2px 6px),
    repeating-radial-gradient(circle at 70% 80%, rgba(70, 38, 39, .035) 0 2px, transparent 2px 5px);
  mix-blend-mode: multiply;
  opacity: .55;
  z-index: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 20px 0 56px;
}
.hero__cover {
  width: 140px; height: auto;
  border-radius: 8px;
  box-shadow:
    0 30px 60px -24px rgba(43, 20, 16, .55),
    0 8px 20px -8px rgba(43, 20, 16, .3);
  border: 5px solid rgba(255, 251, 235, .9);
  margin: 0 auto 28px;
  transform: rotate(-2deg);
  transition: transform .4s ease;
}
.hero__cover:hover { transform: rotate(0deg) scale(1.02); }
.hero__eyebrow {
  font-family: 'Lora', serif;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 11px;
  color: var(--amber);
  margin: 0 0 6px;
  font-weight: 600;
}
.hero__authors {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--wine-deep);
  margin: 0 0 18px;
  font-size: 14px;
  opacity: 0.8;
}
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  color: var(--wine);
  margin: 0 0 6px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .4);
}
.hero__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px);
  color: var(--brick);
  margin: 0 0 24px;
}
.hero__lead {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--wine-deep);
  opacity: 0.78;
  max-width: 520px;
  margin: 0 auto;
}
.hero__divider {
  display: flex; align-items: center; gap: 16px;
  justify-content: center;
  color: var(--amber);
  margin: 28px 0 0;
}
.hero__divider span {
  height: 1px; width: 64px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.hero__divider svg { width: 22px; height: 22px; opacity: .8; }

/* ---------- Cards ---------- */
.protos {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  max-width: 980px;
  margin-bottom: 50px;
}

.proto-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px 32px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
  isolation: isolate;
}
.proto-card:hover { transform: translateY(-4px); }

/* Card 1 — Журнальный разворот (тёплая бумага) */
.proto-card--journal {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(248, 241, 222, 0.98));
  border: 1px solid rgba(196, 119, 49, .35);
  box-shadow:
    0 30px 60px -28px rgba(43, 20, 16, .35),
    0 6px 18px -8px rgba(43, 20, 16, .18),
    inset 0 0 0 1px rgba(196, 119, 49, .12);
}
.proto-card--journal:hover {
  box-shadow:
    0 40px 80px -28px rgba(43, 20, 16, .45),
    0 10px 24px -8px rgba(43, 20, 16, .25);
}
.proto-card--journal .proto-card__num {
  color: var(--amber);
  background: rgba(241, 192, 111, .25);
  border: 1px solid rgba(196, 119, 49, .35);
}
.proto-card--journal .proto-card__title { color: var(--wine); }
.proto-card--journal .proto-card__cta {
  color: var(--paper-soft);
  background: linear-gradient(135deg, var(--wine), var(--brick) 70%, var(--amber));
}

/* Card 2 — Магические страницы (тёмная) */
.proto-card--cinematic {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(196, 119, 49, .22), transparent 55%),
    linear-gradient(180deg, #1f0d0a, #150906);
  border: 1px solid rgba(243, 219, 145, 0.22);
  color: #f3e4c2;
  box-shadow:
    0 30px 60px -28px rgba(0, 0, 0, .55),
    0 6px 18px -8px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(243, 219, 145, .08);
}
.proto-card--cinematic:hover {
  box-shadow:
    0 40px 80px -28px rgba(0, 0, 0, .65),
    0 10px 24px -8px rgba(0, 0, 0, .45),
    0 0 0 1px var(--gold) inset;
}
.proto-card--cinematic .proto-card__num {
  color: var(--gold);
  background: rgba(243, 192, 111, .14);
  border: 1px solid rgba(243, 219, 145, .35);
}
.proto-card--cinematic .proto-card__title {
  color: var(--gold);
  text-shadow: 0 0 22px rgba(243, 192, 111, .25);
  font-family: 'Cinzel', serif;
  letter-spacing: .02em;
}
.proto-card--cinematic .proto-card__desc { color: #d9c79d; }
.proto-card--cinematic .proto-card__meta li::before { color: var(--gold); }
.proto-card--cinematic .proto-card__cta {
  background: rgba(20, 8, 6, .65);
  border: 1px solid var(--gold);
  color: var(--gold);
}
.proto-card--cinematic .proto-card__cta:hover {
  background: rgba(243, 192, 111, .14);
}

/* Card inner */
.proto-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.proto-card__num {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Marcellus', serif;
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
}
.proto-card__tag {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--amber);
  text-transform: uppercase;
}
.proto-card--cinematic .proto-card__tag { color: var(--gold); opacity: .8; }

.proto-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}
.proto-card__desc {
  font-family: 'Lora', serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--wine-deep);
  margin: 0;
  opacity: 0.85;
}
.proto-card__meta {
  list-style: none;
  padding: 0; margin: 4px 0 0;
  font-family: 'Lora', serif;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}
.proto-card__meta li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.proto-card__meta li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 11px;
  top: 2px;
}
.proto-card__cta {
  margin-top: 8px;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
  border: 0;
}
.proto-card__cta::after {
  content: "→";
  transition: transform .25s ease;
}
.proto-card:hover .proto-card__cta::after { transform: translateX(4px); }

/* ---------- Footer ---------- */
.foot {
  position: relative; z-index: 1;
  font-family: 'Lora', serif;
  font-size: 12px;
  color: var(--wine-deep);
  opacity: 0.55;
  letter-spacing: .08em;
  text-align: center;
}
.foot code { color: var(--wine); }
.foot a {
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px dashed rgba(130, 38, 37, .3);
}
.foot a:hover { border-bottom-color: var(--wine); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { padding: 24px 16px; }
  .hero { margin-bottom: 36px; }
  .hero__cover { width: 110px; margin-bottom: 22px; }
  .protos {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .proto-card { padding: 26px 22px 24px; }
  .proto-card__title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
