/* Fluent Self — улучшения поверх firstuk CSS (дизайн сохранён) */

/* Жёсткий сброс legacy-шрифтов firstuk (бывшие Times / Graphik) */
html,
body {
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: #000;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--fs-primary, #5a7f76);
  outline-offset: 2px;
}

/* WhatsApp float — полные стили в brand.css */

footer iframe,
.map iframe {
  max-width: 100%;
  width: 100%;
  border: 0;
}

[data-site-map]:not(.fs-footer__map) {
  position: relative;
  overflow: hidden;
  padding-bottom: min(56%, 420px);
  height: 0;
}

[data-site-map]:not(.fs-footer__map) iframe {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.form-message {
  margin-top: 1rem;
  font-size: 15px;
  line-height: 1.4;
}

.form-message--error {
  color: #9b2c2c;
}

.form-message--success {
  color: var(--fs-primary, #5a7f76);
}

.form-message[hidden] {
  display: none !important;
}

input:invalid:not(:placeholder-shown),
input.user-invalid {
  box-shadow: inset 0 -2px 0 #9b2c2c;
}

button[disabled],
.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.site-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #e6e6e6;
  padding: 14px 20px;
  font-size: 13px;
  line-height: 1.45;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.site-cookie.is-visible {
  transform: translateY(0);
}

.site-cookie__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.site-cookie__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.site-cookie__btn {
  border: 1px solid var(--fs-ink, #2a2a28);
  padding: 8px 16px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
}

.site-cookie__btn--accept {
  background: var(--fs-primary, #5a7f76);
  border-color: var(--fs-primary, #5a7f76);
  color: #fff;
}

.footer-social[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .site-cookie {
    transition: none;
  }
}
