/* =========================================================
   CreativeLabs — внутренние страницы: общий первый экран и «Проекти»
   Mobile-first. Планшет — от 768px, десктоп — от 1100px.
   ========================================================= */

.container-lg { width: 100%; max-width: calc(1200px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Первый экран внутренних страниц ---------- */
.page-hero { position: relative; overflow: hidden; padding: 40px 0 8px; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; left: 50%; top: -240px; width: 1000px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(108, 78, 255, .10) 0%, rgba(108, 78, 255, 0) 68%); pointer-events: none;
}
.page-hero > .container, .page-hero > .container-lg { position: relative; }
.page-hero h1 {
  margin: 20px auto 0; max-width: 1040px; font-size: 32px; line-height: 38px; font-weight: 900; letter-spacing: -.6px; text-wrap: balance;
}
.page-hero .lead { margin: 20px auto 0; max-width: 680px; }

/* ---------- Кнопка-контур ---------- */
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 11px 21px;
  border: 1px solid var(--violet); border-radius: 999px; color: var(--violet); background: transparent;
  font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  transition: background-color .2s, transform .2s;
}
.btn-outline .icon { font-size: 14px; }
.btn-outline:hover { background: var(--violet-soft); transform: translateY(-1px); }

/* ---------- Проекти ---------- */
.cases { display: grid; gap: 16px; margin-top: 32px; }
.case {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px;
  background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}
.case-media { width: 100%; aspect-ratio: 530 / 284; overflow: hidden; border: 1px solid rgba(0, 0, 0, .07); border-radius: 14px; background: var(--violet-soft); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.case-meta b { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--violet); }
.case-meta i { width: 4px; height: 4px; border-radius: 2px; background: #d9d9e5; }
.case-meta span { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--subtle); }
.case h2 { font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: -.2px; }
.case-result {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 14px 16px 14px 17px;
  background: rgba(34, 197, 94, .06); border: 1px solid rgba(34, 197, 94, .16); border-radius: 14px;
  font-size: 14px; line-height: 19.6px; color: var(--green);
}
.case-result .icon { font-size: 16px; }
.case-body { width: 100%; }
.case .btn-outline { margin-top: auto; }

@media (min-width: 768px) {
  .page-hero { padding: 64px 0 12px; }
  .cases { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
  .case { padding: 29px 29px 28px; gap: 20px; border-radius: 24px; }
  .case-media { border-radius: 16px; }
  .case h2 { font-size: 21px; line-height: 25px; letter-spacing: -.3px; }
  .case-result { margin-top: 15px; }
}

@media (min-width: 1100px) {
  .page-hero { padding: 96px 0 12px; }
  .page-hero h1 { margin-top: 20px; max-width: 1200px; font-size: clamp(42px, 4.55vw, 56px); line-height: 1.107; letter-spacing: -.96px; text-wrap: initial; }
  .page-hero .lead { margin-top: 20px; }
  .cases { grid-template-columns: repeat(3, 1fr); margin-top: 46px; }
}

/* ---------- Общие элементы внутренних страниц ---------- */
.eyebrow-g {
  display: inline-flex; padding: 7px 17px; border-radius: 999px; background: #ede9fe; border: 1px solid #ddd6fe;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}
.eyebrow-g span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2-page {
  font-size: 30px; line-height: 36px; font-weight: 900; letter-spacing: -.8px; color: #0a0a0a; text-wrap: balance;
}
.white-band { background: #fff; }
@media (min-width: 1100px) {
  .h2-page { font-size: 52px; line-height: 57px; letter-spacing: -1.3px; text-wrap: initial; }
}

/* ---------- Текстовые страницы (политика) ---------- */
.legal { max-width: calc(820px + var(--gutter) * 2); padding-top: 12px; padding-bottom: 24px; }
.legal h2 { margin-top: 36px; font-size: 21px; line-height: 28px; font-weight: 800; letter-spacing: -.3px; }
.legal p, .legal li { font-size: 16px; line-height: 27px; color: #3e3e58; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.legal a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.legal b { color: var(--ink); }
