/* =========================================================
   Consent checkbox, cookie banner, skip-to-content
   ФЗ-152 / WCAG 2.1 Level A
   ========================================================= */

/* -------- Skip-to-content link -------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 16px;
  background: #1a365d;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* -------- Consent checkbox under forms -------- */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 14px;
  font-size: 12px;
  line-height: 1.4;
  color: #555;
  cursor: pointer;
  text-align: left;
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #1a365d;
}
.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid #1a365d;
  outline-offset: 2px;
}
.form-consent a {
  color: #1a365d;
  text-decoration: underline;
}
.form-consent a:hover { color: #0d6efd; }

/* -------- Cookie banner -------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  animation: cookie-slide-up 0.3s ease-out;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}
.cookie-banner__text strong { display: block; margin-bottom: 4px; color: #1a365d; }
.cookie-banner__text a { color: #1a365d; text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  padding: 10px 18px;
  border: 1px solid #1a365d;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}
.cookie-banner__btn--necessary {
  background: #fff;
  color: #1a365d;
}
.cookie-banner__btn--necessary:hover { background: #f5f5f5; }
.cookie-banner__btn--accept {
  background: #1a365d;
  color: #fff;
}
.cookie-banner__btn--accept:hover { background: #2c5282; }
.cookie-banner__btn:focus-visible {
  outline: 2px solid #2c5282;
  outline-offset: 2px;
}

/* -------- Global :focus-visible (WCAG 2.4.7) -------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #1a365d;
  outline-offset: 2px;
}

/* -------- Mobile layout -------- */
@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    justify-content: stretch;
  }
  .cookie-banner__btn {
    flex: 1;
  }
}

/* -------- Regional unique intro block -------- */
.regional-intro {
  padding: 40px 0;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.regional-intro__content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #1a365d;
}
.regional-intro__content h2 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #1a365d;
}
.regional-intro__content h3 {
  margin: 24px 0 10px;
  font-size: 18px;
  color: #1a365d;
}
.regional-intro__content p {
  margin: 0 0 14px;
}
.regional-intro__content ul,
.regional-intro__content ol {
  margin: 12px 0;
  padding-left: 24px;
}
.regional-intro__content li {
  margin: 4px 0;
}
.regional-intro__content a {
  color: #1a365d;
  text-decoration: underline;
}
.regional-intro__content strong {
  color: #1a365d;
}

/* -------- Regional service intro on service pages -------- */
.service-regional-intro {
  padding: 32px 0;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.service-regional-intro__inner {
  max-width: 860px;
  margin: 0 auto;
}
.service-regional-intro__title {
  font-size: 22px;
  margin: 0 0 14px;
  color: #1a365d;
}
.service-regional-intro__body {
  font-size: 16px;
  line-height: 1.65;
  color: #1a365d;
}
.service-regional-intro__body p { margin: 0 0 12px; }
