/* =========================================================
   Content-agent — лендинг
   Mobile-first. Брейкпоинты: 600px, 1024px.
   Без сторонних шрифтов и библиотек.
   ========================================================= */

/* ---------- Токены ---------- */
:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f5f7fb;
  --c-text: #0f172a;
  --c-muted: #475569;
  --c-primary: #2563eb;
  --c-primary-dark: #1d4ed8;
  --c-primary-soft: #dbeafe;
  --c-secondary: #16a34a;
  --c-secondary-dark: #15803d;
  --c-border: #e2e8f0;
  --c-placeholder: #94a3b8;
  --c-accent: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(37, 99, 235, 0.18);

  --container: 1120px;
  --gutter: 20px;

  --fs-base: 16px;
  --lh: 1.55;

  --t-fast: 150ms ease;
  --t-base: 220ms ease;
}

/* ---------- Базовый сброс / типографика ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-primary-dark); }
a:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.2;
  color: var(--c-text);
}
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--c-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--c-text);
  font-size: 1.05rem;
}
.logo__mark { font-size: 1.4rem; }
.logo:hover { color: var(--c-primary); }

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--c-muted);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast),
    color var(--t-fast), border-color var(--t-fast),
    box-shadow var(--t-fast);
  text-align: center;
  min-height: 48px;
}
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero-CTA: ярко-зелёная главная кнопка, крупнее шрифт */
.hero__cta .btn--primary {
  background: #28a745;
  font-size: 1.1rem;
  padding: 14px 24px;
}
.hero__cta .btn--primary:hover {
  background: #1e7e34;
  color: #fff;
}
.btn--secondary {
  background: var(--c-secondary);
  color: #fff;
}
.btn--secondary:hover {
  background: var(--c-secondary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--ghost:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}
.btn--lg {
  padding: 16px 26px;
  font-size: 1.05rem;
  min-height: 56px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--c-primary-soft), transparent 60%),
    var(--c-bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hero__title {
  font-size: 2rem;
  margin-bottom: 16px;
}
.hero__subtitle {
  color: var(--c-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 56ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero__proof {
  font-size: .9rem;
  color: var(--c-muted);
  margin: 0;
}
.hero__proof::before {
  content: "✓ ";
  color: var(--c-secondary);
  font-weight: 700;
}

/* Hero-визуал (псевдо-карточка) */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.hero__card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--c-border);
}
.hero__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #cbd5e1;
}
.hero__dot:nth-child(1) { background: #ef4444; }
.hero__dot:nth-child(2) { background: #f59e0b; }
.hero__dot:nth-child(3) { background: #10b981; }
.hero__card-title {
  margin-left: 8px;
  font-size: .82rem;
  color: var(--c-muted);
}
.hero__card-body {
  padding: 18px;
  font-size: .95rem;
  color: var(--c-text);
}
.hero__card-body ul { padding-left: 1.1em; }
.hero__card-body li { margin-bottom: .25em; }
.hero__card-foot {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--c-muted);
  border-top: 1px dashed var(--c-border);
  padding-top: 10px;
}
.hero__visual-caption {
  font-size: .8rem;
  color: var(--c-muted);
  text-align: center;
  margin: 0;
}

/* ---------- Секции ---------- */
.section {
  padding: 64px 0;
}
.section--alt {
  background: var(--c-bg-alt);
}
.section--cta {
  background: linear-gradient(135deg, var(--c-primary) 0%, #1e40af 100%);
  color: #fff;
  text-align: center;
}
.section--cta h2 { color: #fff; }
.section--cta .section__sub { color: #dbeafe; }
.section--cta a:not(.btn) { color: #fff; text-decoration: underline; }
.section--contacts {
  padding-bottom: 32px;
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section__sub {
  color: var(--c-muted);
  font-size: 1.05rem;
}

/* ---------- Карточки (Польза) ---------- */
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--c-muted); }

/* ---------- Доверие ---------- */
.trust-block {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.trust-block h3 {
  margin-bottom: 12px;
  color: var(--c-text);
}
.trust-list {
  padding-left: 1.25em;
  margin: 0;
}
.trust-list li { margin-bottom: .55em; }
.trust-foot {
  margin: 14px 0 0;
  color: var(--c-muted);
  font-size: .95rem;
}

.trust-block--audience .audience {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.audience li {
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  font-size: .95rem;
  font-weight: 600;
}
.audience span {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 4px;
}

/* Статистика */
.trust-block--stats .stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: center;
}
.stats li {
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
}
.stats__num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 4px;
}
.stats__label {
  color: var(--c-muted);
  font-size: .9rem;
}

/* Превью работ */
.samples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.sample {
  margin: 0;
  background: var(--c-bg-alt);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-sm);
  text-align: center;
  overflow: hidden;
}
.sample__img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg, #f1f5f9, #f1f5f9 10px, #e2e8f0 10px, #e2e8f0 20px
  );
  color: var(--c-muted);
  font-weight: 600;
  font-size: .95rem;
}
.sample--placeholder figcaption {
  padding: 10px;
  font-size: .9rem;
  color: var(--c-muted);
}

/* Отзывы */
.reviews {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.review {
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.review--placeholder { opacity: .7; }
.review blockquote {
  margin: 0 0 8px;
  font-style: italic;
  color: var(--c-text);
}
.review__author {
  margin: 0;
  font-size: .9rem;
  color: var(--c-muted);
  font-weight: 600;
}

.trust-block--transparency {
  background: linear-gradient(135deg, #fff 0%, var(--c-primary-soft) 100%);
  text-align: center;
}
.trust-block--transparency p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--c-text);
}

/* ---------- CTA ---------- */
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 14px;
}
.cta__alt {
  margin: 0;
  color: #dbeafe;
}

/* ---------- Контакты ---------- */
.contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.contacts li {
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.contacts__label {
  font-weight: 600;
  color: var(--c-muted);
  min-width: 90px;
}

/* ---------- Футер ---------- */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 24px 0 32px;
  background: #fff;
  font-size: .9rem;
  color: var(--c-muted);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.site-footer__legal a { color: var(--c-muted); text-decoration: underline; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--c-primary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform var(--t-base), background var(--t-fast);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta:hover { background: var(--c-primary-dark); }
.sticky-cta[hidden] { display: none; }

/* =========================================================
   Брейкпоинты
   ========================================================= */

/* Планшет ≥ 601px */
@media (min-width: 601px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.85rem; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-block--stats .stats { grid-template-columns: repeat(3, 1fr); }
  .samples { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 72px 0 88px; }
}

/* Десктоп ≥ 1025px */
@media (min-width: 1025px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }

  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
  .hero__title { font-size: 3rem; }
  .hero__card { transform: rotate(-2deg); }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 88px 0; }
  .hero { padding: 96px 0 112px; }

  .trust-block { padding: 28px 32px; }
  .samples .sample__img { height: 170px; }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition: none !important;
    animation: none !important;
  }
}
