/* Global: buttons, footer, cookie, 404 */

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Unified buttons (override page CSS) */
a.btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 32px;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

a.btn:hover,
a.btn:focus,
.btn:hover,
.btn:focus {
  text-decoration: none !important;
}

.btn--primary {
  background: #1a3c54;
  color: #fff !important;
}

.btn--primary:hover,
.btn--primary:focus {
  background: #143044;
  color: #fff !important;
}

.btn--dark {
  background: #1a3c54;
  color: #fff !important;
}

.btn--dark:hover,
.btn--dark:focus {
  background: #143044;
  color: #fff !important;
}

/* Doc cards — download buttons aligned to bottom */
.pricing__cards {
  align-items: stretch;
}

.doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.doc-card__title {
  flex: 1 1 auto;
  width: 100%;
}

.doc-card .btn {
  margin-top: auto;
  flex-shrink: 0;
}

.benefit__icon img {
  background: transparent;
  border-radius: 0;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  text-align: left;
  background: #1a1a1a;
  border-top: 0;
  color: #c8c8c8;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 40px 48px;
  margin-bottom: 40px;
}

.footer__col {
  max-width: none;
}

.footer__title {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__text,
.footer__line {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #b0b0b0;
}

.footer__link {
  color: #d0d0d0;
  text-decoration: none;
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__nav .footer__list,
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin: 0 0 10px;
}

.footer__list a {
  font-size: 14px;
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__list a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  border: 0;
}

.footer__legal-link {
  font-size: 12px;
  color: #888;
  text-decoration: none;
}

.footer__legal-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__copy {
  margin: 0;
  font-size: 12px;
  color: #777;
  text-align: left;
}

/* Cookie banner — bottom-left, compact */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__text {
  margin: 0;
  flex: 1;
  font-size: 11px;
  line-height: 1.4;
  color: #555;
}

.cookie-banner__policy {
  color: #3a8dbc;
  text-decoration: underline;
}

.cookie-banner__btn {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  background: #1a3c54;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner__btn:hover {
  background: #143044;
}

/* Breadcrumbs inside page-banner (aligned with header logo) */
.page-banner {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.page-banner__media {
  width: 100%;
  overflow: hidden;
}

.page-banner__img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 8;
  min-height: 360px;
  max-height: 560px;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #d9d9d9;
}

.page-banner__crumbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px 0 0;
  line-height: 1.4;
  pointer-events: none;
}

.page-banner__crumbs-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}

.page-banner__crumbs .breadcrumbs__list {
  margin: 0;
  pointer-events: auto;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.page-banner__crumbs .breadcrumbs__list a {
  color: #fff;
  text-decoration: none;
}

.page-banner__crumbs .breadcrumbs__list a:hover,
.page-banner__crumbs .breadcrumbs__list a:focus {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .page-banner__crumbs-inner {
    padding: 0 28px;
  }
}

@media (max-width: 900px) {
  .page-banner__img {
    min-height: 260px;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-banner__crumbs {
    padding-top: 12px;
  }

  .page-banner__crumbs-inner {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .page-banner__img {
    min-height: 200px;
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }
}

/* Feedback modal */
html.sgt-modal-open {
  overflow: hidden;
}

.sgt-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.sgt-modal[hidden] {
  display: none !important;
}

.sgt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 36, 0.62);
  backdrop-filter: blur(2px);
}

.sgt-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 40px 40px 36px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  outline: none;
  animation: sgt-modal-in 0.28s ease;
}

@keyframes sgt-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sgt-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a3c54;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sgt-modal__close:hover,
.sgt-modal__close:focus {
  color: #0f2433;
}

.sgt-modal__title {
  margin: 0 0 28px;
  padding-right: 28px;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.sgt-modal__body {
  min-width: 0;
}

@media (max-width: 768px) {
  .sgt-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .sgt-modal__dialog {
    max-width: none;
    max-height: min(92vh, 100%);
    padding: 28px 20px 24px;
    animation-name: sgt-modal-in-mobile;
  }

  @keyframes sgt-modal-in-mobile {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .sgt-modal__title {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

/* Header dropdown chevron (all pages) */
.header__dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header__dropdown-btn::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.header__item--dropdown.is-open .header__dropdown-btn::after {
  margin-top: 2px;
  transform: rotate(225deg);
}

/* Mobile: keep submenu inside viewport (override page CSS left:50% + translateX) */
@media (max-width: 768px) {
  .header.is-menu-open .header__nav {
    max-height: min(80vh, 640px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .header__dropdown {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    transform: none !important;
    box-shadow: none;
  }

  .header__item--dropdown.is-open .header__dropdown,
  .header__item--dropdown:hover .header__dropdown {
    position: static !important;
    left: auto !important;
    transform: none !important;
  }
}

/* Text / legal pages */
.text-page {
  padding: 64px 0 96px;
}

.text-page__inner {
  max-width: 860px;
}

.text-page__title {
  margin: 0 0 32px;
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.text-page__content {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.text-page__content > *:first-child {
  margin-top: 0;
}

.text-page__content h2 {
  margin: 36px 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.text-page__content h3 {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
}

.text-page__content p {
  margin: 0 0 14px;
}

.text-page__content ul,
.text-page__content ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.text-page__content li {
  margin: 0 0 8px;
}

.text-page__content a {
  color: #1a3c54;
  text-decoration: underline;
}

.text-page__content a:hover,
.text-page__content a:focus {
  color: #143044;
}

.text-page__content table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 15px;
}

.text-page__content th,
.text-page__content td {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.text-page__content th {
  background: #f7f9fb;
  font-weight: 600;
}

@media (max-width: 768px) {
  .text-page {
    padding: 40px 0 64px;
  }

  .text-page__title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .text-page__content {
    font-size: 15px;
  }

  .text-page__content h2 {
    font-size: 20px;
  }
}

/* 404 */
.error-404 {
  padding: 120px 0;
  text-align: center;
}

.error-404__title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
}

.error-404__text {
  margin: 0 0 28px;
  font-size: 16px;
  color: #555;
}

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 0 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .error-404 {
    padding: 80px 0;
  }

  .error-404__title {
    font-size: 28px;
  }

  a.btn,
  .btn {
    min-width: 160px;
    padding: 12px 24px;
    font-size: 15px;
  }
}
