/* =========================
   1. TOKENS / DESIGN SYSTEM
   Глобальные переменные: цвета, радиусы, контейнер, тени.
   Используются по всему сайту.
   ========================= */
/* :root {
  --bg: #0b0f14;
  --panel: #0f1621;
  --panel-2: #101b2a;
  --text: #e8eef6;
  --muted: #a9b7c7;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #4da3ff;
  --accent-2: #62e6a7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1100px;
  --focus: rgba(77, 163, 255, 0.35);
  --hover: rgba(255, 255, 255, 0.08);
} */

:root {
  --bg: #000000;
  --panel: #0f1621;
  --panel-2: #101b2a;
  --text: #e8eef6;
  --muted: #a9b7c7;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #d2dde8;
  --accent-2: #e8d2d8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1100px;
  --focus: rgba(145, 176, 210, 0.35);
  --hover: rgba(255, 255, 255, 0.08);
}

/* =========================
   2. BASE / RESET
   Базовый сброс и общая типографика документа.
   Применяется ко всем страницам.
   ========================= */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(77, 163, 255, 0.18), transparent 60%),
    radial-gradient(900px 700px at 100% 10%, rgba(98, 230, 167, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.55;
} */

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(77, 163, 255, 0.18), transparent 60%),
    radial-gradient(900px 700px at 100% 10%, rgba(98, 230, 167, 0.12), transparent 55%),
    var(--bg);
  background-repeat: no-repeat;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.btn,
.service-card__link,
.partner-card__link,
.case-link,
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(77, 163, 255, 0.25);
  background: rgba(77, 163, 255, 0.10);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* =========================
   3. ACTIONS / BUTTONS / LINKS
   Общие кнопки и CTA-ссылки.
   Используются в hero, карточках, CTA и формах.
   ========================= */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   4. LAYOUT / CONTAINERS / SECTIONS
   Контейнеры, секции, заголовки секций и вводный текст.
   Базовый каркас всех страниц.
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 20, 0.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* =========================
   5. GLOBAL CHROME
   Шапка и навигация сайта.
   Привязано к header / menu.
   ========================= */

.btn:hover,
.service-card__link:hover,
.partner-card__link:hover,
.case-link:hover,
.read-more:hover {
  background: rgba(77, 163, 255, 0.16);
  border-color: rgba(77, 163, 255, 0.40);
  text-decoration: none;
}

.btn:focus-visible,
.service-card__link:focus-visible,
.partner-card__link:focus-visible,
.case-link:focus-visible,
.read-more:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 28px 0 40px;
}

.section__header {
  margin: 0 0 18px;
  text-align: center;
}

.section__header h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 10px;
}

.section__intro,
.section__lead {
  color: var(--muted);
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.04rem;
  line-height: 1.75;
}

.section__content {
  color: var(--muted);
  max-width: 100%;
}

.section__title {
  margin: 0 0 10px;
}

.section__eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 20, 0.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.site-header__logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav__list a {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}

.site-nav__list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.cards,
.services-grid,
.partners-grid,
.cases-grid,
.blog-list,
.kb-list {
  display: grid;
  gap: 14px;
}

/* =========================
   6. GRIDS / SHARED CARD SYSTEM
   Общие сетки и базовые карточки.
   Используются на главной, услугах, кейсах, блоге и базе знаний.
   ========================= */

.cards,
.services-grid,
.partners-grid,
.cases-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-list {
  grid-template-columns: 1fr;
}

.kb-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.card,
.service-card,
.partner-card,
.case-card,
.blog-item,
.kb-section-card,
.kb-article-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.service-card:hover,
.partner-card:hover,
.case-card:hover,
.blog-item:hover,
.kb-section-card:hover,
.kb-article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.card:focus-within,
.service-card:focus-within,
.partner-card:focus-within,
.case-card:focus-within,
.blog-item:focus-within,
.kb-section-card:focus-within,
.kb-article-card:focus-within {
  border-color: rgba(77, 163, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.10), var(--shadow);
}

.card__title,
.service-card__title,
.partner-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card__summary,
.service-card__description,
.partner-card__description,
.blog-item p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* =========================
   6.1 PARTNERS PAGE
   Страница партнёров: сетка, карточки, логотипы и действие внизу карточки.
   Привязано к layouts/partners/list.html.
   ========================= */

.partners-page__header {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.partners-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
}

.partner-card:hover {
  text-decoration: none;
}

.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  margin-bottom: 18px;
}

.partner-card__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.partner-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.partner-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.4;
  text-align: left;
}

.partner-card__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: left;
}

.partner-card__legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: left;
  opacity: 0.82;
}

.partner-card__actions {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-card__link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(77, 163, 255, 0.25);
  background: rgba(77, 163, 255, 0.10);
  color: var(--text);
  font-weight: 600;
}

/* =========================
   7. CARD ACTIONS / CASES PAGE
   Кнопки и действия внутри карточек.
   Ниже также идут стили карточек кейсов:
   выравнивание контента и прижатие кнопки к низу карточки.
   ========================= */

.service-card--catalog {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* =========================
   8. SERVICES PAGE
   Специфика страницы /services/:
   каталог услуг, выравнивание карточек, кнопки внизу карточек.
   ========================= */

/* CASE CARD STYLES */

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.case-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.case-card__title {
  margin: 0;
  font-size: 1.08rem;
}

.case-card__title a {
  color: var(--text);
  text-decoration: none;
}

.case-card__title a:hover {
  text-decoration: none;
}

.case-card__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.case-card__actions {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-card__actions .case-link {
  min-width: 160px;
  justify-content: center;
}

.cases-page__header {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.article {
  padding: 28px 0 44px;
}

/* =========================
   CONTACT PAGE
   Страница контактов в реестровой подаче: блоки, пары "поле → значение",
   карта и внешние кнопки маршрута.
   Привязано к layouts/contact/list.html.
   ========================= */

.contact-page__header {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.contact-page__legal,
.contact-page__actions {
  display: flex;
  justify-content: center;
}

.contact-page__legal .cta-box,
.contact-page__actions .cta-box {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.contact-page__legal .cta-box {
  text-align: left;
}

.contact-page__legal .hero__actions,
.contact-page__actions .hero__actions {
  justify-content: center;
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-layout__main,
.contact-layout__secondary {
  gap: 28px 40px;
}

.contact-panel {
  min-width: 0;
}

.contact-panel__header {
  margin-bottom: 16px;
}

.contact-panel__header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.contact-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list__row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 14px 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-list__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list__row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-list__row dd {
  margin: 0;
  min-width: 0;
}

.contact-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.contact-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
  line-height: 1.65;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 6px;
  margin: -2px -6px;
  user-select: text;
  -webkit-user-select: text;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.12s ease,
    transform 0.08s ease,
    opacity 0.18s ease;
}

.contact-copy:hover,
.contact-copy:focus-visible {
  color: var(--accent);
  background: rgba(77, 163, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.14);
  outline: none;
}

.contact-copy:hover::selection,
.contact-copy:focus-visible::selection,
.contact-copy *::selection {
  background: rgba(77, 163, 255, 0.28);
  color: var(--text);
}

.contact-copy:active {
  background: rgba(77, 163, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.22);
  transform: translateY(1px);
}

.contact-copy.is-copied {
  color: var(--accent);
  background: rgba(77, 163, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.18);
}

.contact-map {
  min-height: 360px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.contact-map iframe,
.contact-map > div,
.contact-map ymaps,
.contact-map [class*="ymaps"] {
  width: 100% !important;
  height: 100% !important;
  min-height: 360px;
  display: block;
}

.contact-page__actions .cta-box {
  max-width: 860px;
}

/* =========================
   9. ARTICLE / SINGLE PAGES
   Базовая типографика и контентные блоки внутренних страниц.
   Используется для single-шаблонов услуг, кейсов, статей.
   ========================= */

.article__header {
  margin-bottom: 18px;
}

.article__title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.article__lead {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.article__meta-item {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.article__meta--top {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.article__date {
  color: var(--muted);
  font-size: 0.9rem;
}

.article__date-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.article__content {
  max-width: 80ch;
}

.article__content h2,
.article__content h3 {
  margin-top: 22px;
}

.article__content p {
  margin: 10px 0;
}

.article__content ul {
  margin: 10px 0 10px 18px;
}

.article__content code {
  padding: 0.15em 0.35em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article__content pre {
  overflow: auto;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(15, 22, 33, 0.8);
  border: 1px solid var(--line);
}

/* =========================
   10. FORMS
   Поля формы, карточка формы, чекбоксы, кнопка отправки.
   Используется в contact-form partial.
   ========================= */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(169, 183, 199, 0.65);
}

input:focus,
textarea:focus {
  border-color: rgba(77, 163, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.14);
}

label {
  display: block;
}

.contact-form-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-form__input:hover,
.contact-form__textarea:hover {
  background: rgba(255, 255, 255, 0.05);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: rgba(77, 163, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form__textarea {
  min-height: 144px;
  resize: vertical;
}

.contact-form__hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -2px 0 0;
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  line-height: 1.6;
}

.contact-form__consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
}

.contact-form__captcha {
  display: flex;
  justify-content: flex-start;
}

.contact-form__captcha .cf-turnstile {
  min-height: 65px;
}

.contact-form__consent-text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.contact-form__note {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(77, 163, 255, 0.28);
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.22), rgba(98, 230, 167, 0.16));
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-form__submit:hover {
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.28), rgba(98, 230, 167, 0.20));
  border-color: rgba(77, 163, 255, 0.42);
  transform: translateY(-1px);
}

.contact-form__submit:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.contact-form__submit[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.contact-form__status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form__status[data-state="success"] {
  color: var(--accent-2);
}

.contact-form__status[data-state="error"] {
  color: #ff8e8e;
}

.contact-form__status[data-state="loading"] {
  color: var(--text);
}


.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 22, 33, 0.35);
}

/* =========================
   11. FOOTER
   Подвал сайта.
   ========================= */

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
  padding: 22px 0;
}

.site-footer__col {
  color: var(--muted);
}

.site-footer__col a {
  color: var(--text);
}

.site-footer__bottom {
  padding: 12px 0 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), var(--line), rgba(255,255,255,0));
  margin: 48px 0;
}

/* =========================
   12. SHARED DECORATIVE ELEMENTS
   Разделители между крупными секциями.
   Используются на главной, услугах, кейсах и внутренних страницах.
   ========================= */

.section-divider::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: -1px;
  background: linear-gradient(90deg, rgba(77,163,255,0), rgba(77,163,255,0.22), rgba(77,163,255,0));
}

.hero {
  padding: 0 0 60px;
  text-align: center;
}

/* =========================
   13. HOME PAGE
   Главный экран, hero, CTA-кнопки.
   Привязано к layouts/index.html.
   ========================= */

.hero__content {
  max-width: 760px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero__text {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto 24px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__actions--center {
  justify-content: center;
}

.btn--primary {
  background: linear-gradient(135deg, rgba(77,163,255,0.35), rgba(98,230,167,0.25));
  border-color: rgba(77,163,255,0.45);
}

.btn--secondary {
  background: rgba(255,255,255,0.06);
  border-color: var(--line);
}

.card--service {
  background: #121922;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100vw;
  margin: 0 0 30px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #000;
  overflow: hidden;
}

.hero-image picture {
  display: block;
  width: 100%;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* =========================
   14. HOME / SERVICES HIGHLIGHTS
   Усиленные карточки услуг на главной.
   Не путать с каталогом /services/.
   ========================= */

.card--service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(77,163,255,0.12), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.card--service:hover {
  background: #141f2b;
  border-color: rgba(77,163,255,0.35);
}

.tasks-list {
  display: grid;
  gap: 14px;
}

/* =========================
   15. HOME / TASKS BLOCK
   Блок "Какие задачи мы решаем" на главной.
   ========================= */

.task-card {
  background: #0f1621;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.task-card__text {
  margin: 0;
  color: var(--text);
}

.company-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

/* =========================
   16. HOME / COMPANY BLOCK
   Карточки блока "О компании" на главной.
   Привязано к company.cards в data/home.yaml.
   ========================= */

.company-card {
  display: block;
  padding: 22px;
  border-radius: var(--radius);
  background: #121922;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.company-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: #152131;
  border-color: rgba(77,163,255,0.34);
}

.company-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.company-card__title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.4;
}

.company-card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta-section {
  text-align: center;
}

/* =========================
   17. SHARED CTA BLOCK
   Универсальный CTA-блок, вынесенный в partial cta-contact.html.
   Используется на главной, услугах, кейсах и внутренних страницах.
   ========================= */

.cta-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cta-box .btn {
  margin-top: 14px;
}

/* =========================
   18. BLOG PAGE
   Лента блога, поиск, карточки публикаций и пагинация.
   Привязано к layouts/blog/list.html.
   ========================= */

.blog-page__header {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.blog-page__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.blog-page__search {
  width: min(100%, 520px);
  margin-left: auto;
}

.blog-page__search-label {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.blog-page__search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.blog-page__search-input::placeholder {
  color: rgba(232, 238, 246, 0.48);
}

.blog-page__search-input:focus {
  border-color: rgba(77, 163, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.14);
}

.blog-page__search-note {
  margin: 10px 0 0;
  margin-left: auto;
  text-align: right;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.6;
}

.blog-page__feed-header {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.blog-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.blog-item__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.3;
}

.blog-item__title a {
  color: var(--accent);
  text-decoration: none;
}

.blog-item__title a:hover {
  text-decoration: none;
}

.blog-item__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.blog-item__actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 8px;
}

.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
}

.pagination__link:hover {
  text-decoration: none;
  border-color: rgba(77, 163, 255, 0.35);
  background: rgba(77, 163, 255, 0.10);
}

.pagination__link.is-active {
  border-color: rgba(77, 163, 255, 0.45);
  background: rgba(77, 163, 255, 0.14);
  color: var(--text);
}


.pagination__link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* =========================
   18.1 BLOG SINGLE PAGE
   Внутренняя страница статьи блога.
   Привязано к layouts/blog/single.html.
   ========================= */

.blog-item__meta {
  margin: 0;
}

.blog-page .pagination {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.article--blog {
  padding-top: 40px;
}

.article__header--blog {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.article__meta--top {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
  text-align: right;
}

.article__date-label,
.article__meta--top time {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.article__header--blog .article__title {
  max-width: 980px;
  margin: 0 auto 16px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.14;
  text-wrap: balance;
}

.article__header--blog .article__lead {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.14rem;
  line-height: 1.8;
}

.article__content--blog {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.article__content--blog h2 {
  margin-top: 30px;
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.article__content--blog h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.article__content--blog p {
  margin: 0 0 16px;
  line-height: 1.8;
}

.article__content--blog ul,
.article__content--blog ol {
  margin: 0 0 20px 22px;
  padding: 0;
}

.article__content--blog li {
  margin: 0 0 10px;
  line-height: 1.7;
}

.article__content--blog blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid rgba(77, 163, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}

.article__content--blog table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.article__content--blog th,
.article__content--blog td {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.article__content--blog th {
  background: rgba(255, 255, 255, 0.04);
}

/* =========================
   18.2 LEGAL PAGE
   Раздел юридической информации: список документов и внутренние страницы.
   Привязано к layouts/legal/index.html и layouts/legal/single.html.
   ========================= */

.legal-page__header {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
}

.legal-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-group + .legal-group {
  margin-top: 36px;
}

.legal-group__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.3;
  text-align: center;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.legal-item__main {
  min-width: 0;
}

.legal-item__title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.45;
}

.legal-item__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.legal-item__actions {
  flex: 0 0 auto;
}

.legal-item__button {
  min-width: 150px;
  white-space: nowrap;
}

.article--legal {
  padding-top: 40px;
}

.article__header--legal {
  max-width: 920px;
  margin: 0 auto 22px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--text);
  text-decoration: none;
}

.article__content--legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.article__content--legal h2 {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.article__content--legal h3 {
  margin-top: 22px;
  margin-bottom: 10px;
}

.article__content--legal p,
.article__content--legal li {
  line-height: 1.8;
}

.article__content--legal ul,
.article__content--legal ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

/* =========================
   19. RESPONSIVE
   Адаптивные правила для сеток, форм, шапки и общих блоков.
   ========================= */

@media (min-width: 1200px) {
  .hero-image img {
    max-width: 40%;
  }
}   
@media (max-width: 980px) {
  .cards,
  .services-grid,
  .partners-grid,
  .cases-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout__main,
  .contact-layout__secondary {
    gap: 28px;
  }

  .contact-list__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .partners-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero-image {
    margin-bottom: 24px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__submit {
    width: 100%;
  }

  .contact-form-card {
    padding: 18px;
  }

  .contact-form__captcha {
    justify-content: center;
  }

  .blog-page__toolbar {
    justify-content: stretch;
  }

  .blog-page__search {
    width: 100%;
  }

  .pagination {
    flex-direction: column;
  }

  .legal-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .legal-item__actions {
    width: 100%;
  }

  .legal-item__button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cards,
  .services-grid,
  .partners-grid,
  .cases-grid,
  .kb-list,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 40px;
  }

  .hero-image {
    margin-bottom: 20px;
  }
  .contact-page__legal .cta-box,
  .contact-page__actions .cta-box {
    max-width: 100%;
  }
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-page__search-input {
    min-height: 48px;
    padding: 0 14px;
  }

  .blog-item__title {
    font-size: 1.3rem;
  }

  .blog-item__actions {
    padding-top: 12px;
  }

  .article__content--blog {
    padding: 22px 18px;
  }
  .article__content--legal {
    padding: 22px 18px;
  }
  .partners-grid--3 {
    grid-template-columns: 1fr;
  }
  .article__header--blog .article__title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .article__header--blog .article__lead {
    font-size: 1.02rem;
    line-height: 1.7;
  }
}