@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/Manrope-300.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Manrope-400.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/Manrope-500.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Manrope-600.ttf") format("truetype");
}

:root {
  --bg: #f6f3ef;
  --ink: #1f1f1f;
  --muted: #6f6a64;
  --accent: #4a5d57;
  --card: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --border: rgba(31, 31, 31, 0.08);
  --slide-w: 424px;
  --slide-h: 600px;
  --title-gap: 2px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(74, 93, 87, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(74, 93, 87, 0.1), transparent 55%),
    var(--bg);
  display: grid;
  place-items: stretch;
  padding: 0;
}

.frame {
  width: 100%;
  min-height: 100vh;
  background: transparent;
  border-radius: 0;
  padding: clamp(24px, 4vw, 48px);
  padding-top: 18px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mark {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 2.8vw, 24px);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.submark {
  margin: var(--title-gap) 0 6px 0;
  font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--accent);
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: var(--title-gap);
  align-items: baseline;
}

.header-left {
  text-align: left;
}

.header-right {
  text-align: right;
}

h1 {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 3.8vw, 34px);
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.1;
  margin: 0 0 14px 0;
}

.header-row {
  display: none;
}

.carousel {
  position: relative;
  margin-top: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.viewport {
  overflow: hidden;
  width: 100%;
  flex: 1;
  max-height: var(--slide-h);
}

.track {
  display: flex;
  gap: 24px;
  transition: transform 500ms ease;
  will-change: transform;
  height: 100%;
  align-items: center;
}

.slide {
  flex: 0 0 auto;
  height: 100%;
  max-width: min(var(--slide-w), 72vw);
  aspect-ratio: 424 / 600;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  background: #fff;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  z-index: 2;
}

.nav:disabled {
  opacity: 0.16;
  cursor: default;
  box-shadow: none;
}

.nav.prev {
  left: -4px;
}

.nav.next {
  right: -4px;
}

@media (max-width: 720px) {
  .nav {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .track {
    gap: 16px;
  }
}

.jump {
  margin: 6px 0 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.jump .center {
  display: inline-flex;
  align-items: center;
}

.jump button,
.jump .pdf-link {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(74, 93, 87, 0.12), rgba(74, 93, 87, 0.02));
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.jump button:hover,
.jump .pdf-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.jump .btn-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.jump .btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 18, 0.78);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 10;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: min(92vw, 1080px);
  max-height: 90vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
