/* =========================================================
   CreativeLabs — страница «За нас»
   Mobile-first. Планшет — от 768px, десктоп — от 1100px.
   ========================================================= */

/* ---------- Первый экран ---------- */
.about-hero h1 { font-weight: 800; }
.about-hero .lead { max-width: 828px; font-size: 16px; line-height: 26px; }
.about-cards { display: grid; gap: 14px; margin-top: 36px; text-align: center; }
.about-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 24px 30px;
  background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}
.about-card .icon-badge { width: 50px; height: 50px; border-radius: 16px; }
.about-card h2 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.3px; text-wrap: balance; }
.about-card p { font-size: 14px; line-height: 22.4px; color: var(--muted); }

/* ---------- Цифри ---------- */
.facts { padding-block: 56px; }
.facts-head .bar { display: block; width: 32px; height: 4px; border-radius: 999px; background: var(--grad); margin-bottom: 18px; }
.facts-head .lead { max-width: 640px; margin-top: 16px; }
.fact-table {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 32px; overflow: hidden;
  background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: 20px; box-shadow: 0 4px 32px rgba(0, 0, 0, .04);
}
.fact { padding: 24px 20px; border-right: 1px solid rgba(0, 0, 0, .07); border-bottom: 1px solid rgba(0, 0, 0, .07); }
.fact:nth-child(2n) { border-right: 0; }
.fact:nth-child(n+5) { border-bottom: 0; }
.fact b { display: block; font-size: 32px; line-height: 38px; font-weight: 900; letter-spacing: -.8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 19px; color: var(--muted); }

/* ---------- История (тёмная панель) ---------- */
.story-wrap { padding-block: 0 56px; }
.story {
  width: min(1440px, 100% - var(--gutter) * 2); margin-inline: auto; padding: 48px 20px 40px; border-radius: 32px; color: #fff;
  background: linear-gradient(122deg, #0b0919 26%, #111040 74%);
}
.story-head { text-align: center; }
.story .eyebrow-dark2 {
  display: inline-block; padding: 7px 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .5);
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.story h2 { max-width: 976px; margin: 22px auto 0; font-size: 30px; line-height: 36px; font-weight: 900; letter-spacing: -.8px; text-wrap: balance; }
.timeline { max-width: 920px; margin: 36px auto 0; }
.tl-item {
  position: relative; display: grid; grid-template-columns: 48px 1fr; grid-template-areas: "badge year" "badge body"; column-gap: 16px; align-items: start;
}
.tl-item::before, .tl-item::after { content: ""; position: absolute; left: 23px; width: 2px; background: rgba(255, 255, 255, .15); }
.tl-item::before { top: 0; height: 24px; }
.tl-item::after { top: 24px; bottom: 0; }
.tl-item:first-child::before, .tl-item:last-child::after { display: none; }
.tl-year { grid-area: year; padding-top: 14px; font-size: 14px; line-height: 20px; font-weight: 800; letter-spacing: .4px; color: var(--violet-light); }
.tl-badge {
  grid-area: badge; position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid #0d0d1a; background: var(--grad-135); box-shadow: 0 4px 10px rgba(108, 78, 255, .35); font-size: 13px; font-weight: 900;
}
.tl-body { grid-area: body; padding: 2px 0 32px; }
.tl-body h3 { font-size: 20px; line-height: 26px; font-weight: 600; }
.tl-body p { margin-top: 10px; max-width: 668px; font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, .65); }
.goal {
  position: relative; max-width: 680px; margin: 12px auto 0; padding: 26px 22px 28px 26px; border-radius: 20px; overflow: hidden;
  background: rgba(255, 255, 255, .05);
}
.goal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.goal h3 { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.goal p { margin-top: 14px; font-size: 16px; line-height: 26px; font-weight: 500; }

/* ---------- Подход ---------- */
.approach { padding-block: 24px 56px; }
.approach-head { text-align: center; }
.approach-head .h2-page { max-width: 844px; margin: 20px auto 0; }
.approach-head .lead { max-width: 680px; margin: 16px auto 0; }
.compare { display: grid; gap: 16px; margin-top: 36px; }
.compare-card { position: relative; overflow: hidden; padding: 26px 22px; border-radius: 20px; border: 1px solid rgba(0, 0, 0, .07); background: #fff; }
.compare-card.is-ours {
  border-color: rgba(108, 78, 255, .25); box-shadow: 0 24px 64px -16px rgba(108, 78, 255, .28);
  background: linear-gradient(147deg, #faf8ff 6%, #f5f3ff 94%);
}
.compare-card.is-ours::after {
  content: ""; position: absolute; right: -42px; top: -73px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, .5) 0%, rgba(167, 139, 250, 0) 70%); opacity: .5; pointer-events: none;
}
.compare-label { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 15px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #dc2626; }
.compare-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; }
.is-ours .compare-label { color: var(--violet); }
.is-ours .compare-label::before { background: var(--grad-135); }
.compare ul { margin-top: 12px; }
.compare li { display: flex; gap: 14px; padding-block: 18px; border-bottom: 1px solid rgba(0, 0, 0, .07); }
.compare li:last-child { border-bottom: 0; padding-bottom: 4px; }
.is-ours li { border-color: rgba(108, 78, 255, .12); }
.mark { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: rgba(220, 38, 38, .1); color: #dc2626; }
.mark .icon { font-size: 12px; stroke-width: 2.6; }
.is-ours .mark { background: var(--violet-soft); color: var(--violet); }
.compare h3 { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--ink); }
.is-ours h3 { font-weight: 800; }
.compare li p { margin-top: 4px; font-size: 14px; line-height: 22.4px; color: var(--muted); }

.mission {
  position: relative; display: flex; flex-direction: column; gap: 20px; margin-top: 24px; padding: 24px 22px; overflow: hidden;
  border-radius: 16px; color: #fff; box-shadow: 0 8px 32px rgba(79, 70, 229, .25);
  background: linear-gradient(170deg, #0f0e2a 0%, #1e1b4b 60%, #312e81 100%);
}
.mission::after {
  content: ""; position: absolute; right: -90px; top: -110px; width: 384px; height: 384px; border-radius: 50%; opacity: .1; pointer-events: none;
  background: radial-gradient(circle, #a78bfa 0%, rgba(167, 139, 250, 0) 70%);
}
.mission > * { position: relative; z-index: 1; }
.mission-main { display: flex; gap: 16px; align-items: flex-start; }
.mission-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 14px; background: rgba(139, 92, 246, .19); color: #c4b5fd; }
.mission-icon .icon { font-size: 20px; }
.mission h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
.mission p { margin-top: 10px; font-size: 14px; line-height: 22.75px; color: #a5b4fc; }
.mission .btn { align-self: stretch; }

/* ---------- Портфолио-тизер ---------- */
.teaser { padding-block: 56px 0; }
.teaser-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.teaser-head .h2-page { margin-top: 18px; max-width: 880px; }
.teaser-head .lead { margin-top: 16px; max-width: 560px; }
.teaser-grid { display: grid; gap: 16px; margin-top: 32px; }
.teaser-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 19px; background: #13102a; color: #fff; }
.teaser-card .shot { position: relative; aspect-ratio: 361 / 207; background: rgba(108, 78, 255, .12); }
.teaser-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.teaser-card .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(134deg, rgba(108, 78, 255, .18) 13%, rgba(108, 78, 255, .05) 87%); }
.teaser-card .body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.teaser-card h3 { font-size: 16px; line-height: 22px; font-weight: 600; }
.teaser-card p { margin-top: 10px; font-size: 13px; line-height: 19px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.teaser-card a { margin-top: auto; padding-top: 14px; font-size: 13px; line-height: 17px; font-weight: 500; color: var(--violet-light); }
.teaser-card a::after { content: " →"; }
.teaser-card a:hover { color: #fff; }

@media (min-width: 768px) {
  .about-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
  .fact-table { grid-template-columns: repeat(3, 1fr); border-radius: 24px; }
  .fact { padding: 32px 28px; }
  .fact:nth-child(2n) { border-right: 1px solid rgba(0, 0, 0, .07); }
  .fact:nth-child(3n) { border-right: 0; }
  .fact:nth-child(n+5) { border-bottom: 1px solid rgba(0, 0, 0, .07); }
  .fact:nth-child(n+4) { border-bottom: 0; }
  .fact b { font-size: 38px; line-height: 40px; }
  .compare { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .compare-card { padding: 34px 32px; }
  .mission { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 32px; }
  .mission .btn { align-self: auto; flex: none; }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1100px) {
  .about-hero h1 { letter-spacing: -1.4px; }
  .about-hero .lead { margin-top: 28px; font-size: 17px; line-height: 28px; }
  .about-cards { grid-template-columns: repeat(4, 1fr); margin-top: 60px; }
  .about-card { padding: 33px 18px 32px; gap: 20px; }
  .about-card h2 { font-size: 25px; line-height: 30px; letter-spacing: -.4px; text-wrap: initial; }

  .facts { padding-block: 104px; }
  .facts-head .lead { margin-top: 20px; }
  .fact-table { margin-top: 48px; }
  .fact { padding: 40px; }
  .fact b { font-size: 44px; letter-spacing: -.9px; }
  .fact span { font-size: 14px; line-height: 17px; }

  .story-wrap { padding-bottom: 0; }
  .story { padding: 120px 40px 110px; border-radius: 64px; }
  .story h2 { margin-top: 24px; font-size: 52px; line-height: 57px; letter-spacing: -1.3px; text-wrap: initial; }
  .timeline { margin-top: 62px; }
  .tl-item { grid-template-columns: 150px 64px 1fr; grid-template-areas: "year badge body"; column-gap: 20px; align-items: center; }
  .tl-item::before, .tl-item::after { left: 201px; }
  .tl-item::before { top: 0; bottom: 50%; height: auto; }
  .tl-item::after { top: 50%; bottom: 0; }
  .tl-year { padding-top: 0; font-size: 30px; line-height: 36px; font-weight: 900; letter-spacing: -.5px; color: #fff; text-align: right; }
  .tl-badge { width: 64px; height: 64px; border-width: 4px; font-size: 14px; }
  .tl-body { padding: 10px 0 56px; }
  .tl-body h3 { font-size: 24px; line-height: 30px; }
  .tl-body p { margin-top: 14px; font-size: 16px; }
  .tl-item:last-of-type .tl-body { padding-bottom: 36px; }
  .goal { margin-top: 20px; padding: 36px 40px 40px 44px; }
  .goal p { margin-top: 18px; font-size: 18px; line-height: 30.6px; }

  .approach { padding-block: 120px 112px; }
  .approach-head .lead { margin-top: 12px; }
  .compare { gap: 32px; margin-top: 56px; }
  .compare-card { padding: 41px; }
  .compare-card.is-ours { padding-block: 45px; }
  .mission { margin-top: 48px; padding: 32px; }
  .mission h3 { font-size: 20px; line-height: 24.75px; }

  .teaser { padding-block: 104px 0; }
  .teaser-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .teaser-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
}
