/* =========================================================================
   smm-psyho.ru — современный CSS, без зависимостей.
   Палитра вдохновлена оригиналом Tilda BLUE BUSINESS:
     - акцент:        #ffcc00 (yellow)
     - фон:           #f0f1f5
     - тёмный текст:  #1d1d1d
     - светлый текст: #5b6273
     - синий лого:    #104ba9
   ========================================================================= */

:root {
  --c-bg: #f0f1f5;
  --c-bg-soft: #f7f8fb;
  --c-surface: #ffffff;
  --c-text: #1d1d1d;
  --c-text-muted: #5b6273;
  --c-accent: #ffcc00;
  --c-accent-dark: #f0bd00;
  --c-accent-soft: #fff4cc;
  --c-primary: #104ba9;
  --c-link: #104ba9;
  --c-border: #e3e5ec;
  --c-success: #25d366;
  --c-tg: #0088cc;
  --c-danger: #d92d20;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(20, 30, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 30, 60, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 30, 60, 0.12);

  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 80px;

  --font: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --t-fast: 0.18s;
  --t-base: 0.28s;
  --easing: cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
}

/* ---------- RESET / BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
video { max-width: 100%; display: block; }
img { height: auto; }

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-accent-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--c-accent); color: var(--c-text); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 220;
  background: rgba(16, 75, 169, 0.12);
  pointer-events: none;
}

.scroll-progress__bar {
  width: 100%;
  height: 100%;
  background: var(--c-primary);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: var(--container-narrow); }

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}
.section__title--light { color: #fff; }
.section__eyebrow {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--c-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---------- BUTTONS ---------- */
.btn {
  --bg: var(--c-accent);
  --bg-hover: var(--c-accent-dark);
  --color: var(--c-text);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font: 700 15px/1 var(--font);
  color: var(--color);
  background: var(--bg);
  border: 0;
  border-radius: var(--r-pill);
  text-align: center;
  cursor: pointer;
  transition:
    background var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--color);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #1d1d1d33; outline-offset: 2px; }

.btn--primary { /* default */ }
.btn--ghost {
  --bg: transparent;
  --bg-hover: rgba(255, 255, 255, .08);
  --color: #fff;
  border: 2px solid #fff;
}
.btn--large { padding: 18px 32px; font-size: 17px; }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.header.is-scrolled {
  background: rgba(240, 241, 245, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--c-border);
  box-shadow: 0 4px 20px rgba(20, 30, 60, .04);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.header__logo {
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 18px);
  line-height: 1;
  color: var(--c-primary);
  margin-right: auto;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header__logo:hover { color: var(--c-primary); }

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  min-width: 0;
  flex-shrink: 1;
}
.header__menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(10px, 1.1vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.header__menu li {
  flex-shrink: 0;
}
.header__menu-link {
  display: inline-flex;
  align-items: center;
  color: var(--c-text);
  font-size: clamp(13px, 1vw, 15px);
  position: relative;
  padding: 6px 0;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.2;
}
.header__menu a.header__menu-link:hover { color: var(--c-primary); }
.header__menu-link--featured {
  color: var(--c-primary);
  font-weight: 700;
  gap: 5px;
}
.header__menu-link--featured.is-active {
  color: var(--c-primary);
}
.header__menu-link-text {
  display: inline-block;
}
.header__menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--c-accent);
  color: var(--c-text);
  border-radius: var(--r-pill);
  line-height: 1.2;
}

@media (min-width: 1025px) and (max-width: 1240px) {
  .header__menu-badge { display: none; }
  .header__phone { font-size: 15px; }
  .header__cta { padding: 10px 16px; font-size: 13px; }
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__phone {
  color: var(--c-text);
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}
.header__social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-text);
  transition: background var(--t-fast);
}
.header__social:hover { color: #fff; }
.header__social--wa:hover { background: var(--c-success); }
.header__social--tg:hover { background: var(--c-tg); }

.header__cta { padding: 12px 22px; font-size: 14px; }

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile nav */
@media (max-width: 1024px) {
  .header__burger { display: inline-flex; }
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    /* Явная высота: иначе при containing block от шапки (backdrop-filter и т.п.)
       пары top+bottom из inset дают нулевую высоть и виден один пункт меню. */
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    background: var(--c-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 24px 24px max(40px, env(safe-area-inset-bottom, 0px));
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--t-base) var(--easing);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header__nav.is-open { transform: translateX(0); }
  .header__menu {
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .header__menu a.header__menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 700;
    white-space: normal;
  }
  .header__menu-badge {
    display: inline-flex;
    font-size: 10px;
    padding: 3px 8px;
  }
  .header__contacts {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
  }
  .header__cta { width: 100%; padding: 14px 22px; }
}

/* ---------- HERO ---------- */
.hero {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 0;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(255, 204, 0, .35), transparent 60%),
    var(--c-bg);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-size: clamp(32px, 5.2vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero__title-accent {
  background: linear-gradient(120deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  padding: .05em .18em .12em;
  display: inline-block;
  border-radius: 6px;
  margin-top: .14em;
}
.hero__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--c-text-muted);
  max-width: 600px;
  margin-bottom: 32px;
}
.hero__media {
  position: relative;
  text-align: center;
}
/* Ширина max 460px; высота на ~200px больше прежней обрезки (460×483 при полной ширине), верх кадра */
.hero__media picture {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 20 / 21;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: var(--c-bg-soft);
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin: 0;
}
.hero__signature {
  margin-top: 16px;
  font-style: italic;
  color: var(--c-text-muted);
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero__lead { margin-inline: auto; }
}
@media (max-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 0; }
}

/* ---------- STATS ---------- */
.stats { margin-top: 60px; }
.stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 16px;
  border-left: 3px solid var(--c-accent);
}
.stats__num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
}
.stats__label {
  font-size: 22px;
  color: var(--c-text-muted);
}

@media (max-width: 768px) {
  .stats__list { grid-template-columns: repeat(2, 1fr); padding: 20px; }
}
@media (max-width: 480px) {
  .stats__list { grid-template-columns: 1fr; }
}

/* ---------- SEO + AI PROMO (homepage) ---------- */
.seo-promo {
  padding: 56px 0 0;
  background: var(--c-bg);
}
.seo-promo__card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
  padding: 36px 40px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #eef4fc 0%, #fff9e0 100%);
  border: 2px solid rgba(16, 75, 169, .18);
  box-shadow: var(--shadow-md);
}
.seo-promo__eyebrow {
  grid-column: 1 / -1;
  display: inline-block;
  width: fit-content;
  background: var(--c-accent);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: -8px;
}
.seo-promo__title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  margin: 0;
  color: var(--c-text);
}
.seo-promo__text {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text-muted);
  max-width: 640px;
}
.seo-promo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
  padding: 0;
}
.seo-promo__tags li {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .85);
  color: var(--c-primary);
  border: 1px solid rgba(16, 75, 169, .12);
}
.seo-promo__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.seo-promo__price {
  font-size: 14px;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.seo-promo__price strong {
  color: var(--c-text);
  font-size: 18px;
}

.seo-promo-strip {
  padding: 48px 0 64px;
  background: var(--c-bg);
}
.seo-promo-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 22px 28px;
  border-radius: var(--r-lg);
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.seo-promo-strip__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 4px;
}
.seo-promo-strip__title {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #fff;
  line-height: 1.25;
}
.seo-promo-strip__text {
  margin: 6px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.45;
}
.seo-promo-strip .btn {
  --bg: var(--c-accent);
  --bg-hover: var(--c-accent-dark);
  --color: var(--c-text);
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .seo-promo__card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .seo-promo__action { width: 100%; }
  .seo-promo-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .seo-promo-strip .btn { width: 100%; }
}

/* ---------- PAINS ---------- */
.pains { padding: 80px 0; background: var(--c-bg); }
.pains__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pains__item {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}
.pains__item::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: var(--c-accent-soft);
  border-radius: 50%;
  z-index: 0;
}
.pains__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pains__icon {
  display: inline-flex;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-text);
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.pains__icon svg {
  width: 38px;
  height: 38px;
}
.pains__title {
  font-size: 22px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.pains__item p {
  color: var(--c-text-muted);
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 19px;
}

@media (max-width: 1024px) { .pains__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pains__grid { grid-template-columns: 1fr; } .pains { padding: 60px 0; } }

/* ---------- CONSULT FORM SECTION ---------- */
.consult {
  padding: 80px 0;
  color: #fff;
  background:
    linear-gradient(135deg, #104ba9 0%, #1a6bd8 100%);
}
.consult__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.consult__highlight {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-text);
  padding: 4px 14px;
  border-radius: var(--r-sm);
  margin-top: 8px;
}
.consult__text { color: rgba(255, 255, 255, .85); font-size: 21px; }
.consult__form {
  background: #fff;
  padding: 32px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  color: var(--c-text);
}

@media (max-width: 1024px) {
  .consult__inner { grid-template-columns: 1fr; gap: 32px; }
  .consult { padding: 60px 0; }
  .consult__form { padding: 24px; }
}

/* ---------- APPROACH ---------- */
.approach { padding: 80px 0; }
.approach__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.approach__copy p { font-size: 21px; color: var(--c-text); }
.approach__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.approach__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--c-surface);
  padding: 14px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-size: 18px;
}
.approach__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .approach__inner { grid-template-columns: 1fr; gap: 0; }
  .approach { padding: 60px 0; }
}

/* ---------- SERVICES ---------- */
.services { padding: 80px 0; background: var(--c-bg-soft); }
.services__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { color: var(--c-text-muted); margin: 0; }

.service-card--cta {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.service-card--cta h3 { color: var(--c-text); }
.service-card--cta p { color: rgba(0,0,0,.7); }
.service-card--cta .btn {
  --bg: #fff;
  --bg-hover: #f3f5f9;
  --color: var(--c-text);
  box-shadow: 0 6px 16px rgba(20, 30, 60, 0.12);
}
.service-card--cta .btn:hover {
  box-shadow: 0 10px 22px rgba(20, 30, 60, 0.16);
}
.service-card--cta .btn:focus-visible {
  outline: 3px solid rgba(29, 29, 29, 0.24);
}

@media (max-width: 1024px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services__grid { grid-template-columns: 1fr; } .services { padding: 60px 0; } }

/* ---------- CASES ---------- */
.cases { padding: 80px 0; padding-bottom: 0; }
.cases__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card__tag {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(16, 75, 169, .1);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-weight: 700;
}
.case-card h3 { font-size: 22px; margin: 0; }
.case-card p { color: var(--c-text-muted); margin: 0; }
.case-card p b { color: var(--c-text); }
.case-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  color: var(--c-text);
  align-self: flex-start;
  padding: 10px 16px;
  background: var(--c-accent);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 16px rgba(20, 30, 60, 0.12);
  transition:
    background var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast),
    color var(--t-fast);
}
.case-card__link:hover {
  color: var(--c-text);
  background: var(--c-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(20, 30, 60, 0.14);
}

@media (max-width: 768px) {
  .cases__grid { grid-template-columns: 1fr; }
  .cases { padding: 60px 0; padding-bottom: 0;}
}

/* ---------- PRICING ---------- */
.pricing { padding: 80px 0; background: var(--c-bg); padding-bottom: 0;}
.pricing__lead {
  max-width: 720px;
  margin: -8px auto 32px;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 16px;
  line-height: 1.55;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.pricing__note {
  margin: 28px auto 0;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 15px;
}
.pricing__note a {
  color: var(--c-text);
  font-weight: 600;
  border-bottom: 1px dashed var(--c-text);
}
.pricing__note a:hover { color: var(--c-accent-dark); border-bottom-color: var(--c-accent-dark); }
.plan {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--starter {
  background: linear-gradient(180deg, var(--c-accent-soft) 0%, var(--c-surface) 60%);
}
.plan--popular {
  border: 2px solid var(--c-accent);
  box-shadow: 0 12px 32px rgba(255, 204, 0, 0.18);
}
.plan--featured {
  background: linear-gradient(180deg, #1d1d1d 0%, #2c2c2c 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.plan--featured h3,
.plan--featured .plan__price,
.plan--featured .plan__hint,
.plan--featured .plan__lead { color: #fff; }
.plan--featured .plan__lead { color: rgba(255, 255, 255, .8); }
.plan--featured .plan__features li { color: rgba(255, 255, 255, .9); }
.plan--featured .plan__features li strong { color: var(--c-accent); }
.plan--popular .plan__features li strong {
  font-weight: 700;
  color: var(--c-text);
  background: var(--c-accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: underline solid var(--c-accent);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.plan--popular .plan__features li:has(strong)::before {
  background: var(--c-accent);
  box-shadow: 0 2px 6px rgba(255, 204, 0, 0.45);
}
.plan__badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--c-accent);
  color: var(--c-text);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.35);
}
.plan__badge--premium {
  background: var(--c-text);
  color: var(--c-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.plan__name { font-size: 24px; margin-bottom: 4px; line-height: 1.2; }
.plan__hint { color: var(--c-text-muted); margin-bottom: 8px; font-size: 13px; }
.plan__lead {
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 22px;
  min-height: 40px;
}
.plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan__features li {
  position: relative;
  padding-left: 28px;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.45;
}
.plan__features li strong {
  font-weight: 700;
  color: var(--c-text);
}
.plan__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.plan__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.plan__price {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}
.plan__cta { width: 100%; text-align: center; }

@media (max-width: 1100px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .plan { padding: 36px 28px; }
  .plan__lead { min-height: 0; }
}
@media (max-width: 600px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .pricing { padding: 60px 0; padding-bottom: 0;}
  .pricing__lead { font-size: 15px; }
  .plan { padding: 28px 22px; }
  .plan__name { font-size: 22px; }
  .section__title{margin-bottom: 16px;}
}

/* ---------- REVIEWS ---------- */
.reviews { padding: 80px 0; }
.reviews__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-accent-soft);
  box-shadow: var(--shadow-sm);
}
.review__stars { color: var(--c-accent-dark); font-size: 18px; letter-spacing: 2px; }
.review__text { font-size: 16px; color: var(--c-text); margin: 0; }
.review__video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 360px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: #000;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.review__author {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.review__author--with-avatar {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.review__author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review__author strong { font-size: 16px; }
.review__author span { color: var(--c-text-muted); font-size: 14px; }
.review__author time { color: var(--c-text-muted); font-size: 13px; }
.review__avatar--small {
  width: 64px;
  height: 64px;
  border-width: 2px;
}

@media (max-width: 1024px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews { padding: 60px 0; }
  .review__video { max-height: 520px; }
}

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; background: var(--c-bg-soft); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 4px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-fast);
}
.faq__item[open] { box-shadow: var(--shadow-md); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5' fill='none' stroke='%231d1d1d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__answer { padding: 0 0 18px; color: var(--c-text-muted); }
.faq__answer p, .faq__answer ul, .faq__answer li { color: var(--c-text-muted); }
.faq__note { font-size: 13px; opacity: .8; }

@media (max-width: 600px) { .faq { padding: 60px 0; } }

/* ---------- PREFOOTER (контакты перед футером) ---------- */
.prefooter {
  padding: clamp(40px, 5vw, 72px) 0;
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
}
.prefooter__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 18px;
}
.prefooter__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px 18px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--c-text);
  background: #c3c7ee;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.prefooter__pill:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.prefooter__pill:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
}
.prefooter__pill-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
}
.prefooter__pill-text {
  word-break: break-word;
}
.prefooter__pill-text--email {
  word-break: break-all;
}
.prefooter__pill--wa:hover { background: var(--c-success); }
.prefooter__pill--mail:hover { background: var(--c-accent-dark); color: var(--c-text); }
.prefooter__pill--tg:hover { background: var(--c-tg); }
.prefooter__pill--tel:hover { background: var(--c-accent-dark); color: var(--c-text); }

.prefooter__cta {
  display: flex;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  border-radius: var(--r-pill);
  padding: 16px 24px;
  font-weight: 700;
  white-space: normal;
}

@media (max-width: 960px) {
  .prefooter__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prefooter__pill {
    min-height: 64px;
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .prefooter__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .prefooter__pill {
    min-height: 56px;
    justify-content: flex-start;
    padding-inline: 20px;
  }
  .prefooter__cta {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* ---------- FOOTER ---------- */
.footer {
  background: #1d1d1d;
  color: #fff;
  padding: 64px 0 32px;
  margin-top: 0;
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__title {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__contact, .footer__menu a {
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
}
.footer__contact:hover, .footer__menu a:hover { color: var(--c-accent); }
.footer__phone { font-weight: 700; font-size: 18px; color: #fff; }
.footer__menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__cta { margin-top: 16px; align-self: flex-start; }
.footer__brand { color: var(--c-accent); font-weight: 700; margin-top: 16px; }
.footer__copy { color: rgba(255, 255, 255, .5); font-size: 13px; }

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 48px 0 24px; }
  .stats__label{font-size: 16px;}
}

/* ---------- FORMS ---------- */
.form { display: flex; flex-direction: column; gap: 10px; }
.form__row { display: flex; gap: 12px; }
.form__field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 14px; font-weight: 700; color: var(--c-text); }
.form__req { color: var(--c-danger); }
.form__field input,
.form__field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font);
  padding: 14px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form__field input:focus,
.form__field textarea:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(16, 75, 169, .12);
}
.form__field input.is-invalid,
.form__field textarea.is-invalid {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .12);
}
.form__error {
  font-size: 13px;
  color: var(--c-danger);
  min-height: 16px;
}
.form__submit { margin-top: 0; align-self: flex-start; }
.form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 2px 0 0;
}
.form__consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}
.form__consent span {
  line-height: 1.45;
}
.form__consent a { color: var(--c-primary); text-decoration: underline; }

.form.is-loading .form__submit {
  pointer-events: none;
  opacity: .7;
  position: relative;
}
.form.is-loading .form__submit::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: rgba(0,0,0,.8);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form.is-success { text-align: center; }

/* ---------- POPUPS ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.popup[hidden] { display: none; }
.popup.is-open {
  opacity: 1;
  visibility: visible;
}
.popup__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(20, 30, 60, .55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
/* Обёртка: на десктопе — контекст для absolute-крестика и общая анимация появления */
.popup__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
}
.popup--case .popup__box { max-width: 720px; }
@media (min-width: 601px) {
  .popup__box {
    transform: translateY(20px);
    transition: transform var(--t-base) var(--easing);
  }
  .popup.is-open .popup__box { transform: translateY(0); }
}
.popup__dialog {
  position: relative;
  width: 100%;
  max-height: 90vh;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Мобильные: анимация на диалоге, у box без transform — иначе fixed-крестик липнет к box, а не к viewport */
@media (max-width: 600px) {
  .popup__dialog {
    transform: translateY(20px);
    transition: transform var(--t-base) var(--easing);
  }
  .popup.is-open .popup__dialog { transform: translateY(0); }
}
/* Вне .popup__dialog: иначе transform на диалоге и overflow ломают fixed на iOS — крестик уезжает со скроллом */
.popup__close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 0;
  line-height: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.popup__close::before {
  content: '×';
  font-size: 24px;
  line-height: 1;
  transform: translateY(-3px);
}
.popup__close:hover { background: var(--c-accent); }
@media (min-width: 601px) {
  .popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
  }
}
.popup__title { font-size: 24px; margin-bottom: 8px; }
.popup__subtitle { color: var(--c-text-muted); margin-bottom: 16px; }
.popup__phone { color: var(--c-primary); font-weight: 700; font-size: 18px; }
.popup__image {
  width: 100%;
  border-radius: var(--r-md);
  margin-bottom: 16px;
  background: var(--c-bg-soft);
}
/* Кейсы: картинка на всю ширину белой карточки, без боковых/верхних паддингов; текст ниже — как раньше */
.popup--case .popup__image {
  display: block;
  width: calc(100% + 64px);
  max-width: none;
  margin: -36px -32px 16px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.popup__text { color: var(--c-text); }
.popup__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.popup__list li {
  position: relative;
  padding-left: 26px;
  color: var(--c-text);
}
.popup__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}
.popup .t390__btn-wrapper { margin-top: 18px; }

body.is-locked { overflow: hidden; }

@media (max-width: 600px) {
  .popup { padding: 0; }
  .popup__dialog {
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 24px 20px 24px;
  }
  .popup--case .popup__image {
    width: calc(100% + 40px);
    margin: -24px -20px 16px;
    border-radius: 0;
  }
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--c-text);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: opacity var(--t-base), transform var(--t-base);
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast[hidden] { display: none; }
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast--success { background: #1c8a4d; }
.toast--error { background: var(--c-danger); }

/* ---------- POLICY PAGE ---------- */
.policy {
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--c-bg);
}
.policy__title {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 32px;
}
.policy h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.policy p, .policy li { color: var(--c-text); font-size: 16px; line-height: 1.65; }
.policy a { text-decoration: underline; }

/* ---------- BLOG ---------- */
.breadcrumb {
  padding: calc(var(--header-h) + 12px) 0 0;
}
.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 15px;
  color: var(--c-text-muted);
}
.breadcrumb__list li:not(:last-child)::after {
  content: '/';
  margin-left: 12px;
  color: var(--c-border);
  pointer-events: none;
}
.breadcrumb__list a { color: var(--c-link); }
.breadcrumb__list a:hover { color: var(--c-accent-dark); }

.blog-index { padding-bottom: 80px; }
.blog-hero {
  width: 100%;
  padding: 28px 0 40px;
}
.blog-hero .btn--ghost {
  --bg: transparent;
  --bg-hover: rgba(16, 75, 169, 0.1);
  --color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.blog-hero .btn--ghost:hover {
  color: var(--c-primary);
}
.blog-hero .btn--ghost:focus-visible {
  outline-color: rgba(16, 75, 169, 0.45);
}
.blog-hero__label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.blog-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  line-height: 1.15;
}
.blog-hero__lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-text-muted);
}
.blog-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-empty {
  padding: 40px 0 60px;
  color: var(--c-text-muted);
  font-size: 18px;
  max-width: 560px;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0 0 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.blog-card__inner {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--t-base), border-color var(--t-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card__inner:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 75, 169, 0.18);
}
.blog-card__image-link {
  display: block;
  background: var(--c-bg-soft);
}
.blog-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-card__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 20px 22px;
  flex: 1;
}
.blog-card__date {
  display: block;
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.blog-card__title {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.25;
}
.blog-card__title a { color: var(--c-text); }
.blog-card__title a:hover { color: var(--c-primary); }
.blog-card__excerpt {
  margin: 0 0 14px;
  color: var(--c-text-muted);
  font-size: 16px;
  line-height: 1.5;
}
.blog-card__link {
  font-weight: 700;
  font-size: 16px;
  color: var(--c-primary);
  margin-top: auto;
}
.blog-card__link:hover { color: var(--c-accent-dark); }

@media (max-width: 1100px) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .blog-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .blog-card__content {
    padding: 16px 16px 18px;
  }
  .blog-card__title {
    font-size: 19px;
  }
}

.blog-post-page { padding-bottom: 80px; }
.blog-article {
  padding-top: 8px;
  padding-bottom: 40px;
}
.blog-article__header {
  margin-bottom: 28px;
}
.blog-article__section {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.02em;
}
.blog-article__title {
  font-size: clamp(26px, 3.8vw, 36px);
  line-height: 1.2;
  margin-bottom: 12px;
}
.blog-article__meta {
  margin: 0;
  font-size: 15px;
  color: var(--c-text-muted);
}

.blog-prose {
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-text);
}
.blog-prose > *:first-child { margin-top: 0; }
.blog-prose h2 {
  font-size: clamp(22px, 2.6vw, 26px);
  margin: 1.6em 0 0.5em;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.blog-prose h3 {
  font-size: 20px;
  margin: 1.4em 0 0.45em;
}
.blog-prose p { margin: 0 0 1em; }
.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
.blog-prose li { margin-bottom: 0.35em; }
.blog-prose a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-prose a:hover { color: var(--c-accent-dark); }
.blog-prose strong { color: var(--c-text); }

/* Таблицы в статьях блога — минималистичный стиль */
.blog-prose table {
  width: 100%;
  margin: 1.5em 0 1.75em;
  border-collapse: collapse;
  background: transparent;
  font-size: 16px;
  line-height: 1.55;
}

.blog-prose thead th {
  padding: 0 16px 12px 0;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  color: var(--c-text-muted);
  background: transparent;
  border-bottom: 1px solid var(--c-text);
  vertical-align: bottom;
}

.blog-prose thead th:not(:last-child) {
  padding-right: 20px;
}

.blog-prose tbody td {
  padding: 14px 20px 14px 0;
  vertical-align: top;
  text-align: left;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}

.blog-prose tbody tr:last-child td {
  border-bottom: none;
}

.blog-prose tbody td:first-child {
  font-weight: 600;
  color: var(--c-text);
  padding-right: 24px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .blog-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-prose thead th,
  .blog-prose tbody td {
    padding-right: 16px;
    font-size: 15px;
    min-width: 100px;
  }

  .blog-prose tbody td:first-child {
    white-space: normal;
  }
}

.blog-faq {
  margin-top: 40px;
  padding: 28px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.blog-faq__title {
  font-size: 22px;
  margin: 0 0 18px;
}
.blog-faq__list { margin: 0; }
.blog-faq__q {
  margin: 16px 0 6px;
  font-weight: 700;
  font-size: 17px;
  color: var(--c-text);
}
.blog-faq__q:first-child { margin-top: 0; }
.blog-faq__a {
  margin: 0 0 8px;
  color: var(--c-text-muted);
  font-size: 17px;
  line-height: 1.55;
}

.blog-article__footer {
  margin-top: 44px;
  padding: 28px 24px;
  background: var(--c-accent-soft);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 204, 0, 0.45);
}
.blog-article__footer-text {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-text);
}
.blog-article__footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-article__footer .btn--ghost {
  --bg: transparent;
  --bg-hover: rgba(16, 75, 169, 0.12);
  --color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.blog-article__footer .btn--ghost:hover {
  color: var(--c-primary);
}
.blog-article__footer .btn--ghost:focus-visible {
  outline-color: rgba(16, 75, 169, 0.45);
}

/* ---------- 404 ---------- */
.error-page {
  padding: calc(var(--header-h) + 80px) 0 80px;
  text-align: center;
}
.error-page__code {
  font-size: clamp(80px, 12vw, 160px);
  line-height: 1;
  color: var(--c-accent);
  margin-bottom: 20px;
}
.error-page__title { font-size: 28px; margin-bottom: 12px; }
.error-page__text { color: var(--c-text-muted); margin-bottom: 28px; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-page .btn--ghost { color: var(--c-text); border-color: var(--c-text); }
.error-page .btn--ghost:hover { background: var(--c-text); color: #fff; }

/* ---------- ANIMATIONS ---------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- PRINT ---------- */
@media print {
  .header, .footer, .popup, .toast, .header__burger { display: none; }
  body { background: #fff; color: #000; }
}
