/* ============================================================
   Grosheva AI Lab — стили лендинга на фирменных токенах (tokens.css).
   Светлая издательская тема: Туман + бирюза + мята, Literata/Onest.
   Меняем внешний вид только через переменные из tokens.css.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0 0 .5em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; }

section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter);
}
section > h2 { font-size: var(--fs-h2); margin-bottom: .7em; }

/* --- Кнопки --- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-button);
  font-family: var(--font-text);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-button);
  line-height: var(--lh-ui);
  transition: background var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-accent); color: var(--color-on-dark); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost { border: 1px solid var(--color-line-strong); color: var(--color-text-primary); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* --- Хедер --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--space-lg);
  padding: var(--space-sm) var(--gutter);
  background: color-mix(in srgb, var(--color-bg-primary) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; }
.nav { display: none; gap: var(--space-md); margin-left: auto; margin-right: auto; color: var(--color-text-secondary); font-size: var(--fs-body-sm); }
.nav a:hover { color: var(--color-accent); }
.nav__cta { margin-left: auto; padding: 10px 18px; font-size: var(--fs-body-sm); }

/* --- Hero (обложка) --- */
.hero { overflow: hidden; padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); align-items: center; }
.hero__eyebrow { color: var(--color-accent); letter-spacing: .04em; font-size: var(--fs-eyebrow); text-transform: uppercase; margin-bottom: .8em; }
.hero__title { font-size: clamp(2.2rem, 4vw, 3.75rem); letter-spacing: var(--ls-display); line-height: 1.04; margin: 0 0 .5em; }
.hero__title .acc { color: var(--color-accent); }
.hero__subtitle { color: var(--color-text-secondary); font-size: var(--fs-lead); max-width: 48ch; margin: 0 0 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero .formula { justify-content: flex-start; margin: 0 0 2em; }

/* графика-обложка */
.hero__art { position: relative; aspect-ratio: 1/1; width: 100%; max-width: 440px; justify-self: center; }
.hero__art svg { width: 100%; height: 100%; }
.hero__stamp {
  position: absolute; left: -6px; bottom: 4%;
  background: var(--color-surface); border-radius: var(--radius-md);
  padding: 16px 18px; box-shadow: var(--shadow-float); max-width: 240px;
}
.hero__stamp b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1; margin-bottom: 6px; color: var(--color-accent); }
.hero__stamp span { font-size: var(--fs-caption); color: var(--color-text-secondary); line-height: 1.4; }

/* --- Доверие --- */
.trust__list { list-style: none; padding: 0; margin-top: var(--space-lg); display: grid; gap: var(--space-md); }
.trust__list li { padding-left: 28px; position: relative; color: var(--color-text-secondary); font-size: var(--fs-body-lg); }
.trust__list li::before { content: "→"; position: absolute; left: 0; color: var(--color-accent); font-weight: 600; }
.trust__note { margin-top: 1.6em; font-style: italic; color: var(--color-text-primary); font-size: var(--fs-body-lg); max-width: var(--container-text); }
.trust__punch { margin-top: .5em; font-family: var(--font-display); font-size: var(--fs-h3); }
@media (min-width: 768px) {
  .trust__list { grid-template-columns: repeat(2, 1fr); gap: var(--space-md) var(--space-2xl); }
}

/* --- Акцент-полосы (слоганы) на тёмном, мятный текст --- */
.accent {
  background: var(--color-forest);
  padding: var(--space-2xl) var(--gutter);
  text-align: center;
}
.accent p {
  max-width: var(--container-max); margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  line-height: 1.15; letter-spacing: var(--ls-heading);
  color: var(--color-mint-on-dark);
}

/* --- Что умею --- */
.skills__slogan { color: var(--color-accent); font-family: var(--font-display); font-size: var(--fs-h4); margin-bottom: 1.4em; }
.skills__grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.skill-card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  box-shadow: var(--shadow-subtle);
}
.skill-card { position: relative; }
.skill-card--flag { border-color: var(--color-accent); box-shadow: var(--shadow-soft); }
.skill-card h3 { font-size: var(--fs-h4); }
.skill-card p { color: var(--color-text-secondary); margin: 0; }
.skill-card__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: var(--space-sm);
  border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-accent);
}
/* цветовое разнообразие иконок «Что умею» */
.skills__grid .skill-card:nth-child(2) .skill-card__ic { background: var(--color-mint); color: var(--color-forest); }
.skills__grid .skill-card:nth-child(3) .skill-card__ic { background: var(--color-warning-soft); color: var(--color-warning); }
.skills__grid .skill-card:nth-child(4) .skill-card__ic { background: var(--color-success-soft); color: var(--color-success); }

/* полноширинные светлые полосы для ритма (Что умею, FAQ) */
.skills, .faq { position: relative; background: var(--color-bg-secondary); box-shadow: 0 0 0 100vw var(--color-bg-secondary); clip-path: inset(0 -100vw); }
.skill-card__ic svg { width: 24px; height: 24px; }
.skill-card__flag {
  position: absolute; top: var(--space-lg); right: var(--space-lg);
  font-size: var(--fs-caption); font-weight: 600; color: var(--color-accent);
  background: var(--color-bg-primary); border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill); padding: 3px 12px;
}

/* --- Кейсы --- */
.cases__lead { color: var(--color-text-secondary); font-size: var(--fs-body-lg); margin-bottom: 2em; }
.cases__grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.case {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  box-shadow: var(--shadow-subtle);
}
.case__title { font-size: var(--fs-h3); }
.case__tagline { color: var(--color-text-secondary); margin-top: -.4em; }
.case__block { margin: 14px 0; }
.case__block span { display: block; font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 4px; }
.case__stack { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case__stack li { font-size: var(--fs-caption); padding: 4px 12px; border: 1px solid var(--color-line); border-radius: var(--radius-pill); color: var(--color-text-secondary); }
.cases__placeholder { color: var(--color-text-secondary); border: 1px dashed var(--color-line-strong); border-radius: var(--radius-lg); padding: var(--space-2xl); text-align: center; }

/* --- Как работаю --- */
.process__slogan { color: var(--color-accent); font-family: var(--font-display); font-size: var(--fs-h4); margin-bottom: 1.3em; }
.process__steps { display: grid; gap: var(--space-sm); padding-left: 1.2em; }
.process__steps li { color: var(--color-text-secondary); font-size: var(--fs-body-lg); }
.process__steps strong { color: var(--color-text-primary); }

/* --- FAQ --- */
.faq { max-width: var(--container-text); }
.faq__list { display: grid; gap: 12px; margin-top: var(--space-lg); }
.faq details {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); padding: 4px 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--color-accent); font-size: 1.6rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--color-text-secondary); }

/* --- Связаться (тёмная CTA-панель) --- */
.contact {
  background: var(--color-forest); color: var(--color-on-dark);
  border-radius: var(--radius-lg);
  max-width: var(--container-text);
  text-align: center;
  margin-top: var(--space-2xl); margin-bottom: var(--space-2xl);
}
.contact h2 { color: var(--color-on-dark); }
.contact__promise { color: var(--color-on-dark-muted); margin-bottom: 1.6em; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.contact .btn--primary { background: var(--color-mint); color: var(--color-night); }
.contact .btn--primary:hover { background: var(--color-mint-on-dark); }
.contact__channel { margin-top: 1.8em; color: var(--color-on-dark-muted); font-size: var(--fs-body-sm); }
.contact__channel a { color: var(--color-mint-on-dark); }

/* --- Футер --- */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  max-width: var(--container-max); margin: 0 auto;
  padding: var(--space-lg) var(--gutter);
  border-top: 1px solid var(--color-line);
  color: var(--color-text-secondary); font-size: var(--fs-body-sm);
}

/* --- Логотип: знак + текст --- */
.logo { gap: 12px; }
.logo img { height: 42px; }
.logo__text { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-text-primary); white-space: nowrap; }
.logo__text b { font-weight: 600; }
@media (max-width: 520px) { .logo__text { display: none; } }

/* --- Общие eyebrow --- */
.eyebrow { font-weight: 600; font-size: var(--fs-eyebrow); color: var(--color-accent); margin-bottom: .4em; }
.eyebrow--mint { color: var(--color-mint-on-dark); }

/* --- Hero: акцентное слово + формула --- */
.hero__title .acc { color: var(--color-accent); }
.formula { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 2em; max-width: 640px; }
.formula span {
  border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm);
  padding: 9px 16px; font-weight: 600; font-size: var(--fs-body-sm);
}
.formula span:first-child { background: var(--color-accent); color: var(--color-on-dark); border-color: var(--color-accent); }

/* --- Факты (stats) --- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle);
  overflow: hidden; padding: 0;
}
.stat { padding: var(--space-lg); border-top: 1px solid var(--color-line); border-left: 1px solid var(--color-line); }
.stat:nth-child(-n+2) { border-top: 0; }
.stat:nth-child(odd) { border-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); color: var(--color-accent); line-height: 1.1; }
.stat span { font-size: var(--fs-body-sm); color: var(--color-text-secondary); }

/* --- Кейсы: флагман, тег, результат --- */
.case--flag { border-color: var(--color-accent); box-shadow: var(--shadow-soft); }
.case__tag { display: inline-block; font-size: var(--fs-caption); font-weight: 600; color: var(--color-accent); background: var(--color-accent-soft); border-radius: var(--radius-pill); padding: 3px 12px; margin-bottom: 10px; }
.case__result { margin-top: 14px; font-size: var(--fs-body-sm); color: var(--color-text-secondary); }
.case__result em { color: var(--color-line-strong); font-style: normal; }
.cases__note { margin-top: var(--space-lg); font-size: var(--fs-body-sm); color: var(--color-text-secondary); text-align: center; }
.integrations { margin-top: var(--space-2xl); }
.integrations__grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-md); }
.int { display: inline-flex; align-items: center; gap: 9px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-pill); padding: 9px 18px 9px 11px; font-size: var(--fs-body-sm); font-weight: 600; color: var(--color-text-primary); box-shadow: var(--shadow-subtle); }
.int__i { width: 22px; height: 22px; flex-shrink: 0; }
.case__demo {
  display: inline-block; margin-top: 16px; font-weight: 600; font-size: var(--fs-body);
  color: var(--color-on-dark); background: var(--color-accent);
  padding: 11px 20px; border-radius: var(--radius-button);
  transition: background var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.case__demo:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.case__list { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.case__list li { color: var(--color-text-secondary); }
.case__aside { margin-top: 16px; }
.case__aside img { width: 100%; max-width: 320px; border-radius: var(--radius-md); border: 1px solid var(--color-line); display: block; }
.case__shot {
  margin-top: 16px; border: 1px dashed var(--color-line-strong); border-radius: var(--radius-md);
  min-height: 120px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px; color: var(--color-text-secondary); font-size: var(--fs-caption);
  background: var(--color-bg-secondary);
}
.case__shot::before { content: attr(data-need); }
.case__media {
  margin-top: 16px; border: 1px solid var(--color-line); border-radius: var(--radius-md);
  overflow: hidden; max-height: 460px; background: var(--color-bg-secondary);
}
.case__media img { width: 100%; display: block; }
.case__gallery { margin-top: 16px; display: grid; gap: 12px; grid-template-columns: 1fr; }
.case__gallery img { width: 100%; border: 1px solid var(--color-line); border-radius: var(--radius-md); display: block; }
@media (min-width: 640px) { .case__gallery { grid-template-columns: repeat(3, 1fr); } }
.case__thumbs { margin-top: 16px; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.case__thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; border: 1px solid var(--color-line); border-radius: var(--radius-md); }
@media (min-width: 640px) { .case__thumbs { grid-template-columns: repeat(5, 1fr); } }

/* --- Команда агентов (нативные карточки) --- */
.agents__lead { margin-top: 16px; color: var(--color-text-secondary); font-size: var(--fs-body); }
.agents__caption { margin-top: var(--space-lg); color: var(--color-text-secondary); font-size: var(--fs-body-sm); }
.agents { margin-top: 14px; display: grid; gap: 12px; grid-template-columns: 1fr; }
.agent {
  background: var(--color-bg-primary); border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-accent); border-radius: var(--radius-md);
  padding: 16px 18px;
}
.agent__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.agent__ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--color-line); }
.agent h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 2px; }
.agent__meta { font-size: var(--fs-caption); color: var(--color-accent); font-weight: 600; margin: 0; }
.agent p:last-child { margin: 0; color: var(--color-text-secondary); font-size: var(--fs-body-sm); }
.agent--1 { border-left-color: var(--color-accent); }
.agent--2 { border-left-color: var(--color-forest); }
.agent--3 { border-left-color: var(--color-sage); }
.agent--4 { border-left-color: var(--color-mint); }
.agent--5 { border-left-color: var(--color-line-strong); }
@media (min-width: 640px) { .agents { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .agents { grid-template-columns: repeat(3, 1fr); } }

/* --- Обо мне --- */
.about__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: center; }
.about__photo img { width: 180px; height: 180px; border-radius: 50%; box-shadow: var(--shadow-soft); }
.about__text h2 { font-size: var(--fs-h2); margin-bottom: .5em; }
.about__text p { color: var(--color-text-secondary); font-size: var(--fs-body-lg); margin-bottom: 1em; }
.about__text strong { color: var(--color-text-primary); }

/* --- Как работаю: заголовок + отдельные карточки-шаги --- */
.process { margin-top: var(--space-2xl); margin-bottom: var(--space-2xl); }
.process .eyebrow--mint { color: var(--color-accent); }
.process h2 { color: var(--color-text-primary); font-size: var(--fs-h2); }
.process__head { max-width: 640px; margin-bottom: var(--space-xl); }
.process__slogan { color: var(--color-accent); font-family: var(--font-display); font-size: var(--fs-h4); margin-top: .6em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.steps li {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  box-shadow: var(--shadow-subtle);
}
.steps li:nth-child(2) { border-top-color: var(--color-forest); }
.steps li:nth-child(3) { border-top-color: var(--color-success); }
.steps li:nth-child(4) { border-top-color: var(--color-warning); }
.steps b { font-family: var(--font-display); font-size: 1.7rem; color: var(--color-accent); }
.steps li:nth-child(2) b { color: var(--color-forest); }
.steps li:nth-child(3) b { color: var(--color-success); }
.steps li:nth-child(4) b { color: var(--color-warning); }
.steps h3 { color: var(--color-text-primary); font-size: var(--fs-h4); margin: 8px 0 4px; }
.steps p { color: var(--color-text-secondary); font-size: var(--fs-body); line-height: 1.55; margin: 0; }

/* --- Планшет/десктоп --- */
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav__cta { margin-left: 0; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .cases__grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .cases__grid .case { display: flex; flex-direction: column; }
  .case__title { min-height: 2.3em; }
  .case--flag, .case--wide { display: block !important; }
  .case--flag .case__title, .case--wide .case__title { min-height: 0; }
  .case--flag { grid-column: 1 / -1; }
  .case--flag .case__media { max-height: 560px; }
  .case--wide { grid-column: 1 / -1; }
  /* сплит-кейс: текст слева, скрин справа */
  .cases__grid .case--split { display: grid !important; grid-template-columns: 1.5fr 1fr; gap: var(--space-2xl); align-items: start; }
  .case--split .case__body { min-width: 0; }
  .case--split .case__title { min-height: 0; }
  .case--split .case__aside { margin-top: 0; }
  .case--split .case__aside img { max-width: 100%; width: auto; max-height: 560px; margin: 0 0 0 auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-top: 0; }
  .stat:nth-child(odd) { border-left: 1px solid var(--color-line); }
  .stat:first-child { border-left: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about__grid { grid-template-columns: 200px 1fr; gap: var(--space-2xl); }
  .about__photo img { width: 200px; height: 200px; }
}

@media (min-width: 900px) {
  .hero { padding-top: var(--space-3xl); }
  .hero__grid { grid-template-columns: 1.12fr 1fr; gap: var(--space-3xl); }
  .hero__art { justify-self: end; max-width: 480px; }
}
