/* assets/css/blocks/after-ticker.css — ОБНОВЛЁННЫЙ */
/* variables */
:root{
  --font-head: "MontserratCustom", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --accent: #ff6d3d;
  --accent-2: #fc895c;
}

/* wrapper */
.after-ticker,
.what-is-seo {
  background: #ffffff;
  color: #111;
  width: 100%;
  box-sizing: border-box;
}

/* container */
.after-ticker__inner,
.what-is-seo__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 20px;
  box-sizing: border-box;
}

/* CTA block — bigger square buttons */
.after-ticker__cta {
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  padding: 46px 0;
}

/* buttons — SQUARE, BIG */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;          /* увеличенный размер кнопок */
  border-radius: 0;            /* квадратные углы */
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
  min-height: 56px;
  line-height: 1;
  font-size: 17px;
  white-space:nowrap;
}

/* primary big */
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  min-width: 280px;            /* гарантированно широкая */
  text-transform: none;
}

/* outline big */
.btn-outline {
  background: #191919;
  color: #111;
  border: 2px solid #111;
  padding: 14px 40px;
  min-width: 240px;
}

/* hover */
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 46px rgba(0,0,0,0.16); }
.btn-outline:hover { color: var(--accent); border-color: var(--accent); }

/* WHAT IS SEO layout — left block fixed width, right text vertically centered */
.what-is-seo__inner {
  display: grid;
  grid-template-columns: 360px 1fr;   /* left column для линии+заголовка */
  gap: 48px;
  align-items: center;                /* вертикально центрируем правую колонку */
  padding-top: 18px;
  padding-bottom: 36px;
}

/* left column */
.what-is-seo__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-right: 10px;
}

/* длинная линия как в макете */
.what-is-seo__rule {
  width: 360px;       /* увеличил до длинной линии */
  height: 3px;
  background: #111;
  border: 0;
  margin: 0 0 18px 0;
}

/* заголовок чуть крупнее и плотнее */
.what-is-seo__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;    /* увеличил */
  margin: 0;
  line-height: 1.05;
}

/* правый параграф — читаемый, центр по высоте благодаря align-items:center в grid */
.what-is-seo__text {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  color: #333;
  margin: 0;
}

/* адаптив: планшет/мобайл */
@media (max-width: 920px) {
  .after-ticker__inner,
  .what-is-seo__inner { padding: 26px 16px; }
  .after-ticker__cta { padding: 28px 0; gap: 14px; }

  /* кнопки: подложим ширину по ширине экрана */
  .btn { padding: 14px 18px; font-size: 16px; min-width: 0; width: 100%; box-sizing: border-box; }
  .btn-primary, .btn-outline { min-width: 0; }

  /* блок SEO: одна колонка, линия над заголовком, текст под заголовком */
  .what-is-seo__inner { grid-template-columns: 1fr; gap: 18px; text-align: left; align-items: start; }
  .what-is-seo__left { align-items: flex-start; padding-right: 0; }
  .what-is-seo__rule { width: 140px; margin-bottom: 12px; }
}

/* мобильные тонкости */
@media (max-width: 480px) {
  .after-ticker__inner { padding: 20px 12px; }
  .what-is-seo__inner { padding: 18px 12px; }
  .btn { padding: 12px 14px; font-size: 15px; border-radius: 0; }
}

/* btn-outline: текст белый всегда; на hover меняется только рамка (и можно тень) */
.btn-outline {
  background: #191919;
  color: #fff;                 /* текст белый по умолчанию */
  border: 2px solid #111;
  padding: 14px 40px;
  min-width: 240px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

/* hover: оставляем текст белым, подсвечиваем только рамку (и чуть усилим тень) */
.btn-outline:hover,
.btn-outline:focus {
  color: #fff !important;      /* жёсткое переопределение на случай специфичных правил */
  border-color: var(--accent);
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
  transform: translateY(-3px);
  outline: none;
}

/* keyboard focus (accessibility) — явная видимая рамка */
.btn-outline:focus-visible {
  box-shadow: 0 0 0 4px rgba(255,109,61,0.12), 0 20px 48px rgba(0,0,0,0.18);
}
