/* КнигДекор · информационные страницы
   Общий спокойный ритм для «О нас» и юридических документов. */

.about-content-page,
.privacy-page {
  --content-page-width: 1180px;
}

.about-page__container,
.privacy-container {
  width: min(100% - 40px, var(--content-page-width));
}

.about-page__crumbs,
.privacy-crumbs {
  padding-top: 26px;
  padding-bottom: 18px;
}

/* О нас ----------------------------------------------------------------- */

.about-content-page .about-page {
  overflow: hidden;
}

.about-content-page .about-hero {
  padding: 0 0 clamp(38px, 5vw, 64px);
  background: var(--surface-page);
}

.about-hero__card {
  min-height: clamp(470px, 42vw, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.84fr);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #f5e9ea 0%, #faf3ef 100%);
  box-shadow: 0 24px 70px rgba(43, 23, 17, 0.08);
}

.about-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 72px);
}

.about-hero__copy .eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.about-hero__copy h1 {
  max-width: 15.5ch;
  margin: 0;
  font-size: clamp(3.1rem, 4vw, 4.15rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.about-hero__copy p {
  max-width: 47ch;
  margin-top: 24px;
  color: #555851;
  font-size: clamp(0.94rem, 1.25vw, 1.06rem);
  line-height: 1.6;
}

.about-hero__media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid rgba(111, 45, 55, 0.08);
  background: #c8a58d;
}

.about-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.about-content-page .about-overview {
  padding: clamp(58px, 7vw, 94px) 0;
  border: 0;
  background: #fff;
}

.about-content-page .about-overview__inner {
  align-items: center;
}

.about-content-page .about-overview h2,
.about-content-page .about-principles h2,
.about-content-page .about-final h2 {
  margin: 12px 0 0;
  font-size: clamp(2.45rem, 4.6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.about-content-page .about-overview__lead {
  max-width: 720px;
  margin-top: 22px;
  color: var(--c-text-muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.62;
}

.about-content-page .about-overview__knigoed {
  min-height: 210px;
  justify-content: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--c-divider);
  border-radius: 24px;
  background: var(--surface-warm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.about-content-page .about-overview__knigoed:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(30, 33, 30, 0.08);
}

.about-content-page .about-overview__knigoed img {
  width: min(182px, 100%);
}

.about-content-page .about-overview__knigoed span {
  color: var(--c-text);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
}

.about-content-page .about-overview__knigoed b {
  color: var(--c-accent);
}

.about-content-page .about-principles {
  padding: clamp(58px, 7vw, 94px) 0;
  border: 0;
  background: var(--surface-page);
}

.about-content-page .about-principles__inner {
  align-items: center;
}

.about-content-page .about-principles__title {
  min-width: 0;
}

.about-content-page .about-principles h2 {
  max-width: 620px;
}

.about-content-page .about-principles__visual {
  min-height: 430px;
  padding: clamp(18px, 3vw, 36px);
  overflow: hidden;
  border-radius: 28px;
  background: #eadfce;
}

.about-content-page .about-principles__visual img {
  width: min(100%, 650px);
  max-height: 450px;
}

.about-content-page .about-principles__essay {
  max-width: 600px;
  padding: 0;
}

.about-content-page .about-principles__essay > p {
  color: var(--c-text-muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.about-principles__points {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--c-divider);
}

.about-principles__points li {
  display: grid;
  grid-template-columns: minmax(90px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--c-divider);
}

.about-principles__points strong {
  color: var(--c-text);
  font-size: 0.88rem;
}

.about-principles__points span {
  color: var(--c-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.about-content-page .about-final {
  padding: clamp(58px, 7vw, 88px) 0;
  border: 0;
  background: #fff9e9;
}

.about-content-page .about-final__meta {
  margin-bottom: 0;
  color: var(--c-accent);
  font-weight: 800;
}

.about-content-page .about-final__actions {
  gap: 22px;
}

.about-content-page .about-final__link {
  min-height: 44px;
  font-size: 0.86rem;
  font-weight: 800;
}

/* Политика конфиденциальности ------------------------------------------ */

.privacy-main {
  background: var(--surface-page);
}

.privacy-hero {
  padding: clamp(30px, 4vw, 54px) 0 clamp(44px, 6vw, 78px);
}

.privacy-hero__inner > .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.privacy-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.privacy-hero__inner > p {
  max-width: 710px;
  margin-top: 24px;
  color: var(--c-text-muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.62;
}

.privacy-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.privacy-hero__facts div {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--c-divider);
  border-radius: 18px;
  background: #fff;
}

.privacy-hero__facts dt {
  color: var(--c-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.privacy-hero__facts dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--c-text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.privacy-hero__facts a {
  color: var(--c-accent);
}

.privacy-content {
  padding: 0 0 clamp(64px, 8vw, 112px);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.privacy-toc {
  position: sticky;
  top: 94px;
  padding: 22px;
  border: 1px solid var(--c-divider);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.privacy-toc summary {
  min-height: 32px;
  color: var(--c-text);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.privacy-toc ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 14px 0 0 20px;
  border-top: 1px solid var(--c-divider);
}

.privacy-toc a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.privacy-toc a:hover {
  color: var(--c-accent);
}

.privacy-document {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(32, 35, 31, 0.06);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(30, 33, 30, 0.055);
}

.privacy-document__legal {
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  color: var(--c-text-muted);
  background: #f5eeee;
  font-size: 0.86rem;
  line-height: 1.55;
}

.privacy-document section {
  scroll-margin-top: 96px;
  padding: 34px 0;
  border-bottom: 1px solid var(--c-divider);
}

.privacy-document section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.privacy-document h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.privacy-document h2 span {
  flex: 0 0 auto;
  color: var(--c-accent);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.privacy-document p,
.privacy-document li {
  color: var(--c-text-muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.privacy-document p + p {
  margin-top: 14px;
}

.privacy-document ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.privacy-document li::marker {
  color: var(--c-accent);
}

.privacy-document strong {
  color: var(--c-text);
}

.privacy-document a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .about-content-page .about-overview__inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(48px, 8vw, 110px);
  }

  .about-content-page .about-principles__inner {
    grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.95fr);
    column-gap: clamp(44px, 7vw, 94px);
  }

  .about-content-page .about-principles__title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .about-content-page .about-principles__visual {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .about-content-page .about-principles__essay {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 860px) {
  .about-hero__card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .about-hero__copy {
    padding: 48px;
  }

  .about-hero__media {
    aspect-ratio: 16 / 9;
    border-top: 1px solid rgba(111, 45, 55, 0.08);
    border-left: 0;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .privacy-toc {
    position: static;
  }

  .privacy-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 620px) {
  .about-page__container,
  .privacy-container {
    width: min(100% - 28px, var(--content-page-width));
  }

  .about-page__crumbs,
  .privacy-crumbs {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .about-content-page .about-hero {
    padding-bottom: 34px;
  }

  .about-hero__card {
    border-radius: 24px;
  }

  .about-hero__copy {
    min-height: 0;
    padding: 38px 28px 42px;
  }

  .about-hero__copy h1 {
    max-width: 13ch;
    font-size: clamp(2.7rem, 12.5vw, 3.55rem);
  }

  .about-hero__copy p {
    margin-top: 20px;
    font-size: 0.88rem;
  }

  .about-hero__media {
    aspect-ratio: 5 / 4;
    border-top: 1px solid rgba(111, 45, 55, 0.08);
    border-left: 0;
  }

  .about-hero__media img {
    object-position: center;
  }

  .about-content-page .about-overview,
  .about-content-page .about-principles,
  .about-content-page .about-final {
    padding: 52px 0;
  }

  .about-content-page .about-overview h2,
  .about-content-page .about-principles h2,
  .about-content-page .about-final h2 {
    font-size: clamp(2.4rem, 12vw, 3.25rem);
  }

  .about-content-page .about-overview__knigoed {
    min-height: 178px;
  }

  .about-content-page .about-principles__inner {
    gap: 28px;
  }

  .about-content-page .about-principles__visual {
    min-height: 260px;
    border-radius: 22px;
  }

  .about-principles__points li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-content-page .about-final__actions {
    width: 100%;
  }

  .about-content-page .about-final__actions .btn {
    width: 100%;
  }

  .privacy-hero {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .privacy-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .privacy-hero__facts {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 28px;
  }

  .privacy-hero__facts div {
    padding: 16px 18px;
  }

  .privacy-toc {
    padding: 18px;
    border-radius: 18px;
  }

  .privacy-toc ol {
    grid-template-columns: 1fr;
  }

  .privacy-document {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .privacy-document section {
    padding: 28px 0;
  }

  .privacy-document h2 {
    align-items: flex-start;
    font-size: 1.35rem;
  }

  .privacy-document p,
  .privacy-document li {
    font-size: 0.9rem;
    line-height: 1.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-content-page .about-overview__knigoed {
    transition: none;
  }
}
