/* Stage 2 v4 — только файлы темы. Модули и язык админки не трогаем. */
:root {
  --parus-blue: #2A3F5F;
  --parus-blue-deep: #1E3350;
  --parus-bg: #F2EADF;
  --parus-surface-alt: #EDE5D9;
  --parus-border: #D9CFBF;
  --parus-border-light: #E6DDD0;
  --parus-text: #181818;
  --parus-text-secondary: #4A4540;
  --parus-text-muted: #8A837A;
  --parus-coral: #D4A574;
}

/* HERO — структура и размеры как в parus-landing-v5.html */
.hero-v5 {
  position: relative;
  min-height: 640px;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--parus-border-light);
  background: var(--parus-surface-alt);
}
.hero-v5-bg {
  position: absolute;
  inset: 0;
  background-color: var(--parus-surface-alt);
  background-image: linear-gradient(135deg, rgba(26,58,92,0.04) 0%, rgba(212,165,116,0.04) 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-v5-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(26,58,92,0.08) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.6;
}
.hero-v5-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242,234,223,0.36) 0%, rgba(242,234,223,0.82) 45%, rgba(242,234,223,0.55) 75%, rgba(242,234,223,0.25) 100%);
  z-index: 1;
}
.hero-v5-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w, 960px);
  margin: 0 auto;
  padding: 96px 24px 88px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-v5-content-inner { max-width: 620px; }
.hero-v5-byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--parus-text-muted);
  margin-bottom: 20px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  border: 1px solid var(--parus-border-light);
  font-weight: 500;
}
.hero-v5-byline::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--parus-coral);
  display: inline-block;
  flex: 0 0 auto;
}
.hero-v5-title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.13;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  color: var(--parus-text);
  max-width: 620px;
}
.hero-v5-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--parus-text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  font-weight: 400;
}
.hero-v5-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-v5-actions .btn {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.hero-v5-actions .btn-primary {
  background: var(--parus-blue);
  color: #fff;
}
.hero-v5-actions .btn-primary:hover { background: var(--parus-blue-deep); }
.hero-v5-actions .btn-outline {
  background: transparent;
  border: 1px solid var(--parus-border);
  color: var(--parus-text);
}
.hero-v5-actions .btn-outline:hover { background: var(--parus-surface-alt); }
.hero-v5-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--parus-border-light);
  max-width: 540px;
  flex-wrap: wrap;
}
.hero-v5-stats .hero-stat-num {
  font-family: var(--font-mono, monospace);
  font-size: 28px;
  font-weight: 600;
  color: var(--parus-blue);
  line-height: 1;
}
.hero-v5-stats .hero-stat-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--parus-text-muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* Webform: согласие на ПД в строку, без кривого переноса чекбокса */
.parus-form-wrap .form-item-personal-data,
.parus-form-wrap .js-form-item-personal-data,
.parus-form-wrap .form-item-soglasie,
.parus-form-wrap .js-form-item-soglasie,
.parus-form-wrap .form-type-checkbox:has(input[type="checkbox"]) {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: start;
  margin: 16px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(42,63,95,0.14);
  border-radius: 10px;
  background: rgba(42,63,95,0.035);
}
.parus-form-wrap .form-item-personal-data input[type="checkbox"],
.parus-form-wrap .js-form-item-personal-data input[type="checkbox"],
.parus-form-wrap .form-item-soglasie input[type="checkbox"],
.parus-form-wrap .js-form-item-soglasie input[type="checkbox"],
.parus-form-wrap .form-type-checkbox:has(input[type="checkbox"]) input[type="checkbox"] {
  grid-column: 1;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--parus-blue);
}
.parus-form-wrap .form-item-personal-data label,
.parus-form-wrap .js-form-item-personal-data label,
.parus-form-wrap .form-item-soglasie label,
.parus-form-wrap .js-form-item-soglasie label,
.parus-form-wrap .form-type-checkbox:has(input[type="checkbox"]) label {
  grid-column: 2;
  display: block;
  margin: 0;
  color: rgba(24,24,24,0.9);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}
.parus-form-wrap .form-item-personal-data .description,
.parus-form-wrap .js-form-item-personal-data .description,
.parus-form-wrap .form-item-soglasie .description,
.parus-form-wrap .js-form-item-soglasie .description,
.parus-form-wrap .form-type-checkbox:has(input[type="checkbox"]) .description {
  grid-column: 2;
  margin: 5px 0 0;
  color: rgba(24,24,24,0.62);
  font-size: 12px;
  line-height: 1.45;
}
.parus-form-wrap .form-type-checkbox:has(input[type="checkbox"]) a { color: var(--parus-blue); font-weight: 700; }

/* Юридический подвал: отдельный редактируемый блок */
.site-footer {
  padding: 0;
  background: var(--parus-blue);
  color: #fff;
}
.site-footer > .container:empty { display: none; }
.parus-legal-footer {
  background: var(--parus-blue);
  color: rgba(255,255,255,.78);
  padding: 28px 0;
}
.parus-legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  line-height: 1.45;
}
.parus-legal-footer__brand { color: #fff; }
.parus-legal-footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.parus-legal-footer__links a {
  color: rgba(255,255,255,.84);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.24);
}
.parus-legal-footer__links a:hover { color: #fff; border-color: rgba(255,255,255,.65); }

/* Cookie: выводится из Twig, поэтому не зависит от региона блока */
.parus-cookie-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 430px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--parus-blue);
  color: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
  font-family: var(--font-main, Geologica, Arial, sans-serif);
  box-sizing: border-box;
}
.parus-cookie-notice.is-hidden { display: none; }
.parus-cookie-notice__text { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.82); }
.parus-cookie-notice__button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--parus-blue);
  padding: 10px 16px;
  font: 700 13px/1 var(--font-main, Geologica, Arial, sans-serif);
  cursor: pointer;
}
.parus-cookie-notice__button:hover { background: #f2eadf; }

@media (max-width: 720px) {
  .hero-v5 { min-height: 560px; }
  .hero-v5-content { padding: 72px 24px 64px; min-height: 560px; }
  .hero-v5-overlay { background: linear-gradient(180deg, rgba(242,234,223,0.5) 0%, rgba(242,234,223,0.38) 60%, rgba(242,234,223,0.75) 100%); }
  .hero-v5-title { font-size: 30px; }
  .hero-v5-desc { font-size: 16px; }
  .hero-v5-stats { gap: 24px; flex-wrap: wrap; }
  .parus-legal-footer__inner { flex-direction: column; align-items: flex-start; }
  .parus-legal-footer__links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .parus-cookie-notice { left: 14px; right: 14px; bottom: 14px; align-items: flex-start; flex-direction: column; }
  .parus-cookie-notice__button { width: 100%; }
}
@media (max-width: 480px) {
  .hero-v5-title { font-size: 26px; }
  .hero-v5-stats { gap: 18px; }
  .hero-v5-stats .hero-stat-num { font-size: 24px; }
}
/* .hero-v5-bg {
  --hero-bg-image: none;

  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      var(--c-bg) 0%,
      rgba(242, 234, 223, 0.98) 18%,
      rgba(242, 234, 223, 0.55) 34%,
      rgba(242, 234, 223, 0) 46%,
      rgba(242, 234, 223, 0) 60%,
      rgba(242, 234, 223, 0.55) 72%,
      rgba(242, 234, 223, 0.98) 88%,
      var(--c-bg) 100%
    ),
    var(--hero-bg-image);

  background-size:
    100% 100%,
    auto 108%;

  background-position:
    center center,
    center center;

  background-repeat: no-repeat;
  background-color: var(--c-bg);
}

.hero-v5-bg::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 58%;
  width: 260px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(242, 234, 223, 0) 0%,
    rgba(242, 234, 223, 0.38) 35%,
    var(--c-bg) 70%,
    var(--c-bg) 100%
  );
  filter: blur(18px);
}

.hero-v5-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(242, 234, 223, 0) 0%,
      rgba(242, 234, 223, 0) 38%,
      rgba(242, 234, 223, 0.04) 44%,
      rgba(242, 234, 223, 0.14) 50%,
      rgba(242, 234, 223, 0.42) 56%,
      rgba(242, 234, 223, 0.9) 61%,
      var(--c-bg) 66%,
      var(--c-bg) 100%
    ),
    radial-gradient(
      ellipse at 66% 50%,
      var(--c-bg) 0%,
      var(--c-bg) 10%,
      rgba(242, 234, 223, 0.92) 18%,
      rgba(242, 234, 223, 0.55) 32%,
      rgba(242, 234, 223, 0) 48%
    );
}

@media (max-width: 720px) {
  .hero-v5-bg {
    background-size:
      100% 100%,
      auto 78%;

    background-position:
      center center,
      center bottom 20px;

    opacity: 0.42;
  }
} */

.hero-v5-bg {
  --hero-bg-image: none;

  position: absolute;
  inset: 0;

  background-image: var(--hero-bg-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: var(--c-bg);
}

.hero-v5-bg::before,
.hero-v5-bg::after {
  display: none;
  content: none;
}

@media (max-width: 720px) {
  .hero-v5-bg {
    background-size: cover;
    background-position: center center;
  }
}

@media (max-width: 720px) {
  .author-grid {
    display: block;
  }

  .author-photo {
    position: relative;
    margin-bottom: 18px;
    border-radius: 14px;
    overflow: hidden;
  }

  .author-photo img,
  .author-photo picture,
  .author-photo .field__item,
  .author-photo .media,
  .author-photo .media img {
    display: block;
    width: 100%;
    height: auto;
  }

  .author-info,
  .author-content,
  .author-name,
  .author-role,
  .author-bio,
  .author-quote,
  .author-facts {
    position: static;
    transform: none;
    color: var(--c-text);
  }

  .author-name {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .author-photo {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
  }

  .author-photo img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
    display: block;
    border-radius: 14px;
  }
}