/* =========================================================
   Олег Абахов — писатель, психолог, исследователь
   ========================================================= */

:root {
  --bg-dark: #100f0f;
  --bg-light: #e8ded3;
  --accent: #920408;
  --white: #ffffff;
  --grey-on-dark: #d2d2d2;
  --grey-soft: #9c9c9c;
  --grey-on-light-2: #7d7d78;
  --text-dark: #100f0f;

  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Manrope", "Helvetica Neue", sans-serif;

  --sidebar-w: 273px;
  --content-pad: 24px;
  --section-pad-top: 20px;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bg-dark);
  color: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p { margin: 0; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* -------------------- typography helpers -------------------- */

.eyebrow {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.h-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.04em;
  margin: 0 0 47px;
  text-transform: uppercase;
}

.section-header { margin-bottom: 40px; }

/* -------------------- fixed sidebar navigation -------------------- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  padding: 24px 0 24px 82px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 60;
  transition: color 0.5s var(--ease);
  pointer-events: none;
}

.sidebar * { pointer-events: auto; }

.sidebar-brand {
  display: block;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 60px;
  transition: color 0.5s var(--ease), opacity 0.3s var(--ease);
}
.sidebar-brand:hover { opacity: 0.7; }

.sidebar-brand .oa-mark {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  font-size: 34px;
  letter-spacing: -0.06em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.sidebar-toc-label {
  font-size: 20px;
  letter-spacing: -0.04em;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 12px;
  margin-bottom: 18px;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-nav li { display: flex; align-items: baseline; gap: 8px; }

.sidebar-nav .num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.04em;
  color: var(--white);
  width: 24px;
  transition: color 0.35s var(--ease);
}

.sidebar-nav a {
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--grey-on-dark);
  position: relative;
  transition: color 0.35s var(--ease);
}

.sidebar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}

.sidebar-nav a:hover::after { width: 100%; }
.sidebar-nav a:hover { color: var(--accent) !important; }
.sidebar-nav li.active a::after { width: 100%; }

.sidebar-nav li.active a { color: var(--accent); }
.sidebar-nav li.active .num { color: var(--accent); }

.sidebar-note {
  margin-top: auto;
  padding-top: 40px;
  max-width: 164px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--grey-on-dark);
  transition: color 0.5s var(--ease);
}

.sidebar-note-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin-top: 18px;
  transition: background 0.5s var(--ease);
}

/* theme flip: sidebar text goes dark when scrolled over a light section */
.sidebar.on-light .sidebar-brand,
.sidebar.on-light .sidebar-toc-label,
.sidebar.on-light .sidebar-nav .num {
  color: var(--text-dark);
}
.sidebar.on-light .sidebar-nav li:not(.active) a { color: rgba(16,15,15,0.65); }
.sidebar.on-light .sidebar-toc-label { border-color: rgba(16,15,15,0.25); }
.sidebar.on-light .sidebar-note { color: rgba(16,15,15,0.65); }
.sidebar.on-light .sidebar-note-line { background: rgba(16,15,15,0.2); }

/* -------------------- mobile / tablet header -------------------- */

.site-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(16,15,15,0.85);
  backdrop-filter: blur(10px);
}

.site-header .brand-mini {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: opacity 0.3s var(--ease);
}
.site-header .brand-mini:hover { opacity: 0.7; }

.site-header .brand-mini .oa-mark {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.06em;
  color: var(--accent);
  font-size: 22px;
}

.menu-trigger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.menu-trigger span,
.menu-trigger span::before,
.menu-trigger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--white);
  position: absolute;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-trigger span { top: 50%; transform: translateY(-50%); }
.menu-trigger span::before { top: -6px; }
.menu-trigger span::after { top: 6px; }

.menu-trigger.open span { background: transparent; }
.menu-trigger.open span::before { top: 0; transform: rotate(45deg); }
.menu-trigger.open span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 65;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-nav-overlay.open { transform: translateY(0); }

.mobile-nav-overlay ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-nav-overlay a {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.mobile-nav-overlay a .num { color: var(--accent); font-size: 22px; }

/* -------------------- sections shell -------------------- */

.section {
  position: relative;
  padding-left: calc(var(--sidebar-w) + var(--content-pad));
  padding-right: 82px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section-inner { width: 100%; max-width: 991px; padding: 100px 0; }
.section-inner-wide { max-width: 1280px; }

.section.bg-dark { background: var(--bg-dark); color: var(--white); }
.section.bg-light { background: var(--bg-light); color: var(--text-dark); }
.section.bg-light .eyebrow { color: var(--accent); }

.section + .section.bg-dark,
.section + .section.bg-light {
  border-top: 1px solid rgba(128,128,128,0.25);
}

/* decorative chapter mark (circle) top right of each section */
.chapter-mark {
  position: absolute;
  top: 20px;
  right: 89px;
  width: 131px;
  height: 131px;
  opacity: 0.85;
  pointer-events: none;
}
.chapter-mark::before,
.chapter-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.5;
}
.chapter-mark::before { inset: 0; }
.chapter-mark::after { inset: 22px; }
.chapter-mark .dot {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  top: 50%;
}
.chapter-mark .dot:first-of-type { left: -3px; transform: translateY(-50%); }

/* -------------------- HERO -------------------- */

.hero {
  padding-left: calc(var(--sidebar-w) + var(--content-pad));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 615px);
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.hero-copy { padding: 100px 0; max-width: 484px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 23px;
  color: var(--grey-on-light-2);
  letter-spacing: -0.04em;
  font-size: 20px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-eyebrow .stroke { width: 20px; height: 1px; background: var(--grey-on-light-2); }

.hero-copy h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 36px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}

.hero-quote {
  font-size: 20px;
  line-height: 1.35;
  color: #e9e3e3;
  max-width: 420px;
  margin: 0 0 36px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  position: relative;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.65s forwards;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-hero svg { width: 22px; height: 12px; transition: transform 0.3s var(--ease); }
.btn-hero:hover { gap: 22px; color: var(--accent); border-color: var(--accent); }
.btn-hero:hover svg { transform: translateX(4px); }

.hero-visual {
  position: relative;
  height: 100vh;
  min-height: 640px;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-portrait img,
.img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #2b2b2b, #100f0f 70%);
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 20px;
}

.hero-stripes {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  pointer-events: none;
  mix-blend-mode: normal;
}

.hero-stripes span {
  width: 84px;
  height: 100%;
  background: var(--bg-dark);
  border-radius: 42px;
  animation: stripeReveal 1.1s var(--ease) forwards;
  transform-origin: bottom;
}
.hero-stripes span:nth-child(1) { animation-delay: 0.15s; }
.hero-stripes span:nth-child(2) { animation-delay: 0.28s; }
.hero-stripes span:nth-child(3) { animation-delay: 0.41s; }
.hero-stripes span:nth-child(4) { animation-delay: 0.54s; }

@keyframes stripeReveal {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------- ABOUT -------------------- */

.about-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.divider {
  width: 302px;
  max-width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  margin-bottom: 24px;
}
.divider-accent { background: var(--accent); opacity: 1; }

.about-text {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  max-width: 900px;
}
.about-text p { margin-bottom: 22px; }
.about-text p:last-child { margin-bottom: 0; }

.pull-quote {
  position: absolute;
  left: 82px;
  bottom: 90px;
  max-width: 164px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--grey-on-dark);
}

/* -------------------- PHILOSOPHY -------------------- */

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.philosophy-card {
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 24px;
}
.philosophy-card:first-child { border-left: none; padding-left: 0; }

.philosophy-card .num {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(48px, 5vw, 96px);
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 1;
}

.philosophy-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--bg-light);
}

.philosophy-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey-on-dark);
  margin: 0;
}

/* -------------------- BOOKS -------------------- */

.books-layout {
  display: grid;
  grid-template-columns: minmax(300px, 537px) 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.books-copy h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.books-copy p { font-size: 20px; line-height: 1.5; margin-bottom: 16px; }

.books-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 18px;
  margin-top: 12px;
  transition: gap 0.3s var(--ease);
}
.books-cta svg { width: 24px; height: 12px; transition: transform 0.3s var(--ease); }
.books-cta:hover { gap: 20px; }
.books-cta:hover svg { transform: translateX(6px); }

.books-carousel-wrap {
  position: relative;
}

.books-carousel {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.books-carousel::-webkit-scrollbar { display: none; }
.books-carousel.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

.book-item {
  position: relative;
  flex: 0 0 auto;
  width: 84%;
  max-width: 760px;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  display: block;
  cursor: pointer;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(16,15,15,0.25);
  background: rgba(232,222,211,0.9);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.carousel-arrow-prev { left: -8px; }
.carousel-arrow-next { right: -8px; }
.carousel-arrow:disabled { opacity: 0.3; pointer-events: none; }

.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(16,15,15,0.25);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-dots button.is-active { background: var(--accent); transform: scale(1.3); }

.book-item-surface {
  position: absolute;
  left: 0;
  bottom: 0.3%;
  width: 100%;
  height: 26.7%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
}

.book-item-cover {
  position: absolute;
  right: 22.3%;
  top: 6.8%;
  width: 50%;
  height: 79.8%;
  object-fit: contain;
  object-position: bottom;
  z-index: 2;
  filter: drop-shadow(-8px 20px 30px rgba(0,0,0,0.4));
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.book-item:hover .book-item-cover {
  transform: translateY(-10px);
  filter: drop-shadow(-10px 28px 38px rgba(0,0,0,0.5));
}

.book-item-soon {
  cursor: default;
}
.book-item-soon .book-item-surface { opacity: 0.5; }

.book-item-soon-cover {
  position: absolute;
  right: 22.3%;
  top: 6.8%;
  width: 50%;
  height: 79.8%;
  border: 1px dashed rgba(16,15,15,0.35);
  border-radius: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,15,15,0.03);
}
.book-item-soon-cover span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: rgba(16,15,15,0.4);
}

/* -------------------- CONTACTS -------------------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}

.contacts-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--bg-light);
}

.contacts-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-end;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--white);
  cursor: text;
  user-select: all;
}
.contact-item span { transition: color 0.3s var(--ease); }
.contact-item:hover span { color: var(--accent); }
.contacts-list svg { width: 32px; height: 32px; flex-shrink: 0; }

.site-footer {
  padding-left: calc(var(--sidebar-w) + var(--content-pad));
  padding-right: 82px;
  padding-bottom: 40px;
  background: var(--bg-dark);
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: var(--grey-on-dark);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 30px;
}

/* -------------------- reveal-on-scroll -------------------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible .stagger-item { opacity: 1; transform: translateY(0); }
.stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-item:nth-child(2) { transition-delay: 0.15s; }
.stagger-item:nth-child(3) { transition-delay: 0.25s; }
.stagger-item:nth-child(4) { transition-delay: 0.35s; }

/* -------------------- book detail page -------------------- */

.book-page {
  min-height: 100vh;
  background: var(--bg-dark);
}

.book-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-left: calc(var(--sidebar-w) + var(--content-pad));
}

.book-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.book-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.book-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(16,15,15,0.88) 28%, rgba(16,15,15,0.35) 52%, rgba(16,15,15,0) 72%);
}

.book-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  min-height: 100vh;
  padding: 90px 60px 60px 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.back-link {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 90px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
  width: fit-content;
}
.back-link:hover { gap: 16px; color: var(--accent); }

.book-tag { color: var(--accent); font-family: var(--font-serif); font-weight: 600; font-size: 24px; margin-bottom: 14px; }

.book-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(44px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.book-subtitle {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  color: rgba(255,255,255,0.7);
  line-height: 1.05;
  margin-bottom: 30px;
}

.book-page .divider { margin-bottom: 30px; }

.book-desc { font-size: 16px; line-height: 1.5; max-width: 560px; margin-bottom: 40px; }

.buy-title { font-family: var(--font-serif); font-weight: 600; font-size: 24px; margin-bottom: 24px; }

.buy-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.buy-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255,251,251,0.21);
  background: #222322;
  border-radius: 14px;
  padding: 16px 26px;
  min-width: 190px;
  max-width: 320px;
  text-align: left;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.buy-card:hover { transform: translateY(-4px); border-color: var(--accent); background: #2a1a1b; }
.buy-card-brand { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: var(--white); }
.buy-card-format { font-size: 14px; line-height: 1.4; color: var(--grey-soft); }
.buy-card:hover .buy-card-format { color: var(--grey-on-dark); }

/* -------------------- responsive -------------------- */

@media (max-width: 1200px) {
  .sidebar { display: none; }
  .site-header { display: flex; }

  .section, .hero, .site-footer, .book-page {
    padding-left: 48px;
    padding-right: 48px;
  }
  .section { padding-top: 90px; }
  .section-inner { padding: 60px 0; max-width: 100%; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-copy { padding: 40px 0; max-width: 560px; }
  .hero-visual { height: 60vh; min-height: 420px; }
  .pull-quote { display: none; }

  .philosophy-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .philosophy-card { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 24px; }
  .philosophy-card:first-child { border-top: none; padding-top: 0; }

  .books-layout { grid-template-columns: 1fr; gap: 40px; }
  .book-item { width: 88%; max-width: 480px; }
  .carousel-arrow { width: 42px; height: 42px; }
  .carousel-arrow-prev { left: 4px; }
  .carousel-arrow-next { right: 4px; }
  .books-carousel-wrap { order: -1; }

  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts-list { align-items: flex-start; }
  .contact-item { font-size: 26px; }

  .chapter-mark { display: none; }

  .book-hero { padding-left: 48px; }
  .book-hero-media::after {
    background: linear-gradient(180deg, rgba(16,15,15,0.25) 0%, rgba(16,15,15,0.92) 55%, rgba(16,15,15,0.98) 100%);
  }
  .book-hero-copy { padding: 120px 24px 60px 0; max-width: 100%; min-height: auto; }
}

@media (max-width: 640px) {
  .section, .hero, .site-footer, .book-page { padding-left: 24px; padding-right: 24px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 72px; }
  .about-title, .contacts-title { font-size: 40px; }
  .site-footer { flex-direction: column; gap: 10px; }
  .book-hero { padding-left: 24px; }
  .book-hero-copy { padding: 100px 20px 40px 0; }
}
