@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/* =====================
   Переменные (цвета взяты из Figma)
   ===================== */
:root {
  --bg:            #FFFFFF;
  --bg-card:       #F2F4F7; /* gray-1 */
  --bg-card-2:     #FAFCFF; /* gray-0 */
  --border:        #E8EAEE; /* gray-2 */

  --text:          #333333; /* text main */
  --text-secondary:#616C82; /* gray-4 */
  --text-muted:    #8F96A4; /* gray-3 */
  --text-black:    #000000;

  --accent:        #4D7FE0; /* Blue */
  --accent-bg:     #BDE7FF; /* highlight за именем */
  --gradient-blue: radial-gradient(circle at 50% 50%, #4D7FE0 0%, #82A5E9 48%, #A0BBEE 75%, #BCCFF2 100%);
  --gradient-dark: radial-gradient(circle at 50% 50%, #2D2745 0%, #3F3A56 48%, #524C69 75%, #6B6290 100%);
  --gradient-coral: radial-gradient(circle at 50% 50%, #7F341B 0%, #A74423 48%, #B65839 75%, #D87B5B 100%);
  --gradient-green: radial-gradient(circle at 50% 50%, #0D2C22 0%, #12432F 48%, #0D4734 75%, #165540 100%);

  --font-serif: 'PT Serif', Georgia, serif;
  /* В макете это SF Pro. SF Pro — системный шрифт Apple, недоступен как веб-шрифт,
     поэтому подключаем его через -apple-system/BlinkMacSystemFont (даёт настоящий
     SF Pro на macOS/iOS), а Inter — запасной вариант для остальных ОС. */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', sans-serif;

  --radius-xl: 40px;
  --radius-l: 32px;
  --radius-m: 24px;
  --radius-s: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1320px;
}

/* =====================
   Тёмная тема (только цвета)
   ===================== */
html[data-theme="dark"] {
  --bg:            #1C1E22;
  --bg-card:       #2F3238;
  --bg-card-2:     #2F3238;
  --border:        #3A3D44;

  --text:          #F2F4F7; /* заголовки кейсов: МегаФон, Семейный доктор, Савви */
  --text-secondary:#8F96A4; /* подзаголовки в блоках */
  --text-muted:    #8F96A4; /* b2c, erp и т.д. */
  --text-black:    #E8EAEE; /* текст, где я описываю себя */

  --accent-bg:     #2A4566; /* highlight за именем, затемнён для читаемости светлого текста */
}

html[data-theme="dark"] .header::before {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--bg) 60%,
    rgba(28, 30, 34, 0) 100%
  );
}

html[data-theme="dark"] .btn-pill-outline--dark {
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .pill-card {
  color: #E8EAEE;
}

/* =====================
   Reset
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }
.muted  { color: var(--text-muted); }

/* =====================
   Header
   ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 24px 0;
  transition: padding 0.3s var(--ease);
  overflow-anchor: none;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--bg) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.header.is-scrolled {
  padding: 14px 0;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.header.is-scrolled .logo {
  transform: scale(0.5);
}

.logo__highlight {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 46%;
  height: 60%;
  background: var(--accent-bg);
  opacity: 0.65;
  border-radius: 4px;
  z-index: 0;
}

.logo__text {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--text);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.nav__link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease), font-size 0.3s var(--ease);
}

.header.is-scrolled .nav__link {
  font-size: 19px;
}

.nav__link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.theme-toggle {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), font-size 0.3s var(--ease);
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.theme-toggle:hover {
  color: #3A5FA8;
}

.header.is-scrolled .theme-toggle {
  font-size: 16px;
}

/* =====================
   Breadcrumb (case page)
   ===================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px 40px;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.1;
  color: var(--text);
}

.breadcrumb__home {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.breadcrumb__home:hover { color: var(--accent); }

.breadcrumb__arrow {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.breadcrumb__group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb__sep { color: inherit; }

/* =====================
   Hero (главная — вступительная фраза)
   ===================== */
.hero {
  padding: 56px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero__bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16em;
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1.25;
  color: var(--text-black);
  text-align: center;
  width: 100%;
}

.hero__line {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.23em 0.23em;
}

.hero__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
}

.hero__spark {
  display: inline-block;
  width: 62px;
  height: auto;
  flex-shrink: 0;
}

.hero__cta {
  margin: 0;
}

/* =====================
   Projects
   ===================== */
.projects {
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card__text-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 480px;
  min-width: 0;
}

.project-card__logo {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}

.project-card__logo--megafon {
  height: 32px;
}

.project-card__logo--spin {
  animation: logo-spin 3.2s linear infinite;
  transform-origin: 50% 50%;
  backface-visibility: visible;
}

@keyframes logo-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.project-card__photo {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 1240 / 444;
}

.project-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  perspective: 400px;
}

.project-card__title-row h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--text);
}

.project-card__desc {
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1.143; /* 32px при 28px по макету */
  color: var(--text-secondary);
}

.card-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--gradient-dark);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

a.card-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(45,39,69,0.25);
}

.card-pill__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card-pill--soon {
  background: var(--gradient-coral);
  gap: 4px;
}

.card-pill--soon .card-pill__icon {
  width: 20px;
  height: 20px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--gradient-dark);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-pill svg { width: 16px; height: 16px; }

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(45,39,69,0.25);
}

.btn-pill--gradient {
  background: var(--gradient-blue);
  align-self: center;
  padding: 16px 24px;
  font-size: 28px;
  line-height: 1.14;
}

.btn-pill--gradient:hover {
  box-shadow: 0 10px 26px rgba(77,127,224,0.3);
}

.project-card__phones {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 8px;
}

.project-card__phones img {
  width: 275px;
  border-radius: var(--radius-m);
  border: 2px solid var(--border);
  object-fit: cover;
}

/* =====================
   Sites & Landings
   ===================== */
.sites {
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sites__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--text-secondary);
}

.sites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Карточка держит пропорции макета 650:466 на любом экране —
   все внутренние элементы позиционируются в % от неё,
   поэтому на ширине 650px значения совпадают с px из Figma 1:1 */
.site-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 650 / 466;
  container-type: inline-size;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
}

.site-card__photo {
  position: absolute;
  top: 4.29%;    /* 20 / 466 */
  left: 3.08%;   /* 20 / 650 */
  width: 43.38%; /* 282 / 650 */
  height: auto;
  border-radius: var(--radius-l);
}

.site-card--karelia .site-card__photo {
  border: 2px solid var(--text-muted);
}

.site-card--gymnastics .site-card__photo {
  border: 2px solid var(--border);
}

.site-card__title {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  color: #333333;
}

html[data-theme="dark"] .site-card__title {
  color: var(--text);
}

.site-card--karelia .site-card__title {
  top: 4.29%;    /* 20 / 466 — как на карточке «Золотое сечение» */
  left: calc(46.46% + 20px);   /* правый край фото + 20px */
  width: calc(53.54% - 20px);
}

.site-card--gymnastics .site-card__title {
  top: 4.29%;    /* 20 / 466 */
  left: calc(46.46% + 20px);  /* правый край фото + 20px */
  width: calc(53.54% - 20px);
}

@media (max-width: 480px) {
  .site-card__title {
    font-size: 24px;
  }
}

.site-card__arrow {
  position: absolute;
  z-index: 1;
  right: 4.92%;   /* 32 / 650 */
  bottom: 6.87%;  /* 32 / 466 */
  width: 9.85%;   /* 64 / 650 */
  aspect-ratio: 64 / 48;
  min-width: 36px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-card__arrow:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(45,39,69,0.25);
}

.site-card--karelia .site-card__arrow {
  background: var(--gradient-green);
}

.site-card--gymnastics .site-card__arrow {
  background: var(--gradient-coral);
}

.site-card__arrow svg {
  width: 37.5%;
  max-width: 24px;
  height: auto;
}

@media (max-width: 900px) {
  .sites-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
  }
}

/* =====================
   Case page
   ===================== */
.case {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-bottom: 40px;
}

.case__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case__intro > * {
  margin-top: 48px;
}

.case__intro > *:first-child {
  margin-top: 0;
}

.case__heading + .case__info {
  margin-top: 80px;
}

.case__info + .case__phones {
  margin-top: 98px;
}

.case__heading {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.077;
  color: var(--text-black);
  text-align: left;
  width: 100%;
}

.case__info {
  display: flex;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.case__info-block {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case__info-block:first-child {
  flex: 0 1 430px;
}

.case__info-block:last-child {
  max-width: 700px;
}

@media (min-width: 760px) {
  .case__info-block:last-child {
    margin-left: 116px;
  }
}

.case__info-block h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--text);
}

.case__info-block p {
  font-family: var(--font-sans);
  font-size: 32px;
  color: var(--text-secondary);
  line-height: 1.125;
}

.case__info-block strong { font-weight: 700; }

.case__phones {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 68px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.case__phones-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}

.case__phones-row img {
  width: 294px;
  border-radius: var(--radius-m);
  border: 2px solid var(--border);
  object-fit: cover;
}

.case__phones-buttons {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--gradient-blue) border-box;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-pill-outline__icon {
  width: 0.75em;
  height: 1.15em;
  flex-shrink: 0;
}

.btn-pill-outline--fixed {
  padding: 12px 24px;
  font-size: 20px;
  gap: 8px;
}

.btn-pill-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.btn-pill-outline--dark {
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  background: var(--bg);
}

.case__back {
  display: flex;
  justify-content: center;
}

/* Case block (generic section) */
.case__block {
  display: flex;
  flex-direction: column;
}

.case__block > * {
  margin-top: 80px;
}

.case__block > *:first-child {
  margin-top: 0;
}

.case__block-title + * {
  margin-top: 28px;
}

.numbered-list + * {
  margin-top: 32px;
}

.case__block-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.1;
  color: var(--text);
}

.case__block-text {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 1.125;
  color: var(--text-secondary);
  width: 100%;
}

/* Pills grid (Функционал) */
.pills-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pills-grid__portal {
  position: absolute;
  top: -80px;
  left: 50%;
  width: min(99%, 1310px);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.pills-grid__row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
}

.pill-card {
  background: var(--bg-card-2);
  border-radius: var(--radius-m);
  padding: 24px;
  font-family: var(--font-sans);
  font-size: 26px;
  line-height: 1.15;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  min-height: 174px;
  flex: 380 1 0%;
}

.pill-card--wide {
  flex: 536 1 0%;
}

@media (max-width: 720px) {
  .pills-grid__row { flex-direction: column; }
  .pill-card, .pill-card--wide { flex: none; min-height: 0; }
}

/* =====================
   Accordion
   ===================== */
.accordion {
  background: var(--bg-card-2);
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
}

.accordion::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  width: 260px;
  height: 64px;
  background: rgba(139, 92, 246, 0.5);
  filter: blur(54px);
  opacity: 0.35;
  pointer-events: none;
}

.accordion__toggle {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  text-align: left;
}

.accordion__title {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 1.125;
  font-weight: 400;
  color: var(--text);
}

.accordion__chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.accordion__toggle[aria-expanded="true"] .accordion__chevron {
  transform: rotate(180deg);
}

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}

.accordion.is-open .accordion__panel {
  max-height: 6000px;
}

.accordion__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 32px 40px;
}

.accordion__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion__col h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.111;
  color: var(--text);
}

.accordion__col p {
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1.143;
  color: var(--text-secondary);
}

.accordion__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion__col ul li {
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1.143;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.accordion__col ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage h4 {
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1.143;
  font-weight: 400;
  color: var(--text);
}

.accordion__quote {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 20px 0;
}

.accordion__quote::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--accent);
}

.accordion__quote p {
  font-family: var(--font-sans);
  font-size: 29px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.103;
}

.scale-list li {
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1.143;
  color: var(--text-secondary);
  padding: 4px 0;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
}

.case-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--bg);
}

.case-table th {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-black);
  padding: 12px 14px;
  border-bottom: 1px solid var(--text-muted);
  border-right: 1px solid var(--text-muted);
  white-space: nowrap;
}

.case-table th:last-child, .case-table td:last-child { border-right: none; }

.case-table td {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-black);
  padding: 12px 14px;
  border-top: 1px solid var(--text-muted);
  border-right: 1px solid var(--text-muted);
  vertical-align: top;
}

/* Numbered list (Что потом) */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.numbered-list p {
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.numbered-list__num {
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 8px;
}

/* Stats card (Результат) */
.stats-card {
  display: flex;
  align-items: center;
  gap: 32px;
  border: 2px solid transparent;
  border-radius: var(--radius-m);
  padding: 60px 40px;
  background:
    linear-gradient(var(--bg-card-2), var(--bg-card-2)) padding-box,
    var(--gradient-blue) border-box;
}

.stats-card__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-card__divider {
  width: 48px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .stats-card__divider { display: none; }
}

.stats-card__value {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 54px;
  color: var(--accent);
  line-height: 1;
}

.stats-card__item p {
  font-family: var(--font-sans);
  font-size: 26px;
  color: var(--text-muted);
  line-height: 1.25;
}

@media (max-width: 760px) {
  .stats-card { flex-direction: column; align-items: stretch; gap: 24px; padding: 32px 24px; }
  .stats-card__item + .stats-card__item { border-top: 1px solid var(--border); padding-top: 24px; }
}

/* =====================
   Footer
   ===================== */
.site-footer {
  padding: 0 24px 32px;
  text-align: center;
}

.site-footer__text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  background: linear-gradient(90deg, #4D7FE0 0%, #82A5E9 40%, #A0BBEE 70%, #BCCFF2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  .site-footer__text { font-size: 14px; line-height: 18px; }
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1150px) {
  .hero__bio { font-size: 40px; }
}

@media (max-width: 950px) {
  .hero__bio { font-size: 33px; }
}

@media (max-width: 820px) {
  .hero__bio { font-size: 28px; }
}

@media (max-width: 700px) {
  .hero__bio { font-size: 24px; }
  .hero__avatar { width: 52px; height: 52px; }
  .hero__spark { width: 40px; }
}

@media (max-width: 640px) {
  .hero__bio { font-size: 21px; }
  .hero__avatar { width: 44px; height: 44px; }
  .hero__spark { width: 34px; }
}

@media (max-width: 480px) {
  .hero__bio { font-size: 16px; }
  .hero__avatar { width: 32px; height: 32px; }
  .hero__spark { width: 26px; }
}

@media (max-width: 640px) {
  .header { padding: 16px 0; }
  .header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }
  .logo { grid-column: 1; order: 1; }
  .nav { grid-column: 1; justify-self: center; order: 2; gap: 16px; justify-content: center; }
  .theme-toggle { grid-column: 1; justify-self: center; order: 3; }
  .project-card { padding: 24px; gap: 24px; }
  .project-card__top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .accordion__toggle { padding: 20px; }
  .accordion__inner { padding: 0 20px 28px; }
}
