.grm-cookie-root {
  position: fixed;
  z-index: 160;
  inset: auto 0 0 0;
  pointer-events: none;
}

.grm-cookie-banner,
.grm-cookie-manage,
.grm-cookie-panel {
  pointer-events: auto;
}

.grm-cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100vw - 24px));
  padding: 15px 15px 14px;
  border-radius: 16px;
  border: 1px solid #cfe0fb;
  background: rgba(252, 254, 255, 0.97);
  box-shadow: 0 16px 34px rgba(45, 82, 141, 0.18);
  backdrop-filter: blur(6px);
}

.grm-cookie-banner h2 {
  margin: 0 0 7px;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.02rem;
  color: #233d67;
}

.grm-cookie-banner p {
  margin: 0;
  color: #4d6992;
  font-size: 0.92rem;
  line-height: 1.48;
}

.grm-cookie-banner p a {
  color: #2f5ca1;
  font-weight: 700;
  text-decoration: underline;
}

.grm-cookie-actions {
  margin-top: 11px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.grm-cookie-btn {
  border-radius: 10px;
  border: 1px solid #c6d9f7;
  background: #f7fbff;
  color: #355886;
  font-family: "Manrope", "Segoe UI", "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  min-height: 39px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.grm-cookie-btn:hover {
  transform: translateY(-1px);
  background: #edf5ff;
  box-shadow: 0 8px 16px rgba(53, 89, 150, 0.12);
}

.grm-cookie-btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(140deg, #4b79d8, #305aac);
  box-shadow: 0 10px 22px rgba(52, 93, 171, 0.24);
}

.grm-cookie-btn.ghost {
  background: #f8fbff;
}

.grm-cookie-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #c9dbf9;
  background: rgba(248, 252, 255, 0.96);
  color: #31578f;
  font-family: "Manrope", "Segoe UI", "Roboto", sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(45, 82, 141, 0.13);
  cursor: pointer;
}

.grm-cookie-manage:hover {
  background: #edf5ff;
}

.grm-cookie-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 220;
  pointer-events: auto;
}

.grm-cookie-banner[hidden],
.grm-cookie-manage[hidden],
.grm-cookie-modal[hidden] {
  display: none !important;
}

.grm-cookie-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 40, 66, 0.38);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.grm-cookie-panel {
  position: relative;
  width: min(620px, calc(100vw - 22px));
  border-radius: 18px;
  border: 1px solid #d4e4fb;
  background: #ffffff;
  box-shadow: 0 24px 44px rgba(31, 58, 100, 0.23);
  padding: 18px;
  z-index: 1;
}

.grm-cookie-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.grm-cookie-panel-head h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.23rem;
  color: #1f385f;
}

.grm-cookie-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #cde0fc;
  background: #f4f9ff;
  color: #365989;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.grm-cookie-panel-sub {
  margin: 8px 0 14px;
  color: #5d7499;
  line-height: 1.5;
  font-size: 0.94rem;
}

.grm-cookie-option {
  border: 1px solid #d9e8fc;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.grm-cookie-option + .grm-cookie-option {
  margin-top: 10px;
}

.grm-cookie-option h3 {
  margin: 0 0 4px;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 0.96rem;
  color: #274771;
}

.grm-cookie-option p {
  margin: 0;
  color: #5d769d;
  font-size: 0.88rem;
  line-height: 1.45;
}

.grm-cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #345983;
  white-space: nowrap;
}

.grm-cookie-switch input {
  width: 16px;
  height: 16px;
  accent-color: #4a79d8;
}

.grm-cookie-panel-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.grm-cookie-modal-open {
  overflow: hidden;
}

.grm-lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.grm-lang-dropdown {
  position: relative;
}

.grm-lang-dropdown > summary {
  list-style: none;
}

.grm-lang-dropdown > summary::-webkit-details-marker {
  display: none;
}

.grm-lang-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 11px;
  border: 1px solid #cfe0fb;
  background: rgba(247, 251, 255, 0.95);
  box-shadow: 0 8px 16px rgba(53, 89, 150, 0.09);
  cursor: pointer;
  user-select: none;
  color: #365988;
  font-family: "Manrope", "Segoe UI", "Roboto", sans-serif;
  font-weight: 800;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.grm-lang-summary:hover {
  background: #eaf3ff;
  transform: translateY(-1px);
}

.grm-lang-dropdown[open] .grm-lang-summary {
  border-color: #9bbcf0;
  box-shadow: 0 10px 20px rgba(52, 93, 171, 0.15);
}

.grm-lang-summary .grm-lang-name {
  display: none;
}

.grm-lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #4c6fa3;
  transition: transform 0.16s ease;
}

.grm-lang-dropdown[open] .grm-lang-caret {
  transform: rotate(180deg);
}

.grm-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 130;
  min-width: 170px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #cfe0fb;
  background: rgba(252, 254, 255, 0.98);
  box-shadow: 0 16px 32px rgba(43, 77, 132, 0.18);
  backdrop-filter: blur(4px);
  display: grid;
  gap: 4px;
}

.grm-lang-link {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: #365988;
  text-decoration: none;
  font-family: "Manrope", "Segoe UI", "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.grm-lang-link:hover {
  background: #eaf3ff;
  transform: translateY(-1px);
}

.grm-lang-link.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, #4b79d8, #305aac);
  box-shadow: 0 8px 16px rgba(52, 93, 171, 0.2);
}

.grm-lang-code {
  display: inline-block;
  min-width: 2.3em;
  text-align: center;
}

.grm-lang-name {
  display: inline;
  font-weight: 600;
  letter-spacing: 0;
}

.grm-lang-switch--standalone {
  margin-bottom: 14px;
}

.site-footer {
  width: var(--wrap, min(1180px, calc(100vw - 36px)));
  margin: 18px auto 30px;
}

.site-footer-shell {
  border: 1px solid #d7e5fa;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(46, 84, 145, 0.1);
  padding: 20px 22px;
}

.site-footer-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-footer-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #d4e4fb;
  background: #f3f8ff;
  color: #4a6794;
  font-family: "Manrope", "Segoe UI", "Roboto", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer-tagline {
  margin: 0;
  color: #5d7295;
  font-family: "Manrope", "Segoe UI", "Roboto", sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
}

.site-footer-security {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfdffc;
  border-radius: 16px;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px rgba(63, 98, 168, 0.08);
  padding: 18px 18px 17px;
  width: 100%;
}

.site-footer-security-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.site-footer-security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #d5e3fb;
  background: #f6faff;
  color: #4369b3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.site-footer-security-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer-security h2 {
  margin: 0;
  color: #233f67;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

.site-footer-security p {
  margin: 0;
  color: #5b7295;
  font-family: "Manrope", "Segoe UI", "Roboto", sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(300px, 1.18fr);
  gap: 18px 28px;
  align-items: start;
}

.site-footer-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer-column h2 {
  margin: 0 0 2px;
  color: #233f67;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.25;
}

.site-footer-column a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #355886;
  font-family: "Manrope", "Segoe UI", "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.site-footer-column a:hover {
  color: #274b83;
  opacity: 0.92;
}

.site-footer-column a[aria-current="page"] {
  color: #223a60;
  opacity: 1;
}

.site-footer-social-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 0;
  justify-content: flex-end;
}

.site-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #d3e4fc;
  background: #f7fbff;
  color: #355886;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.site-social-link:hover {
  background: #edf5ff;
  color: #274b83;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(53, 89, 150, 0.1);
}

.site-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e4ecfc;
  color: #6a81a3;
  font-family: "Manrope", "Segoe UI", "Roboto", sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (min-width: 1180px) {
  .grm-lang-summary .grm-lang-name {
    display: inline;
  }
}

@media (max-width: 860px) {
  .site-footer-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer-social-wrap,
  .site-footer-social {
    justify-content: flex-start;
  }

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

  .site-footer-security {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .grm-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .grm-cookie-manage {
    left: 12px;
    bottom: 12px;
  }

  .grm-cookie-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .grm-cookie-panel-actions {
    justify-content: stretch;
  }

  .grm-cookie-panel-actions .grm-cookie-btn {
    flex: 1 1 100%;
  }

  .grm-lang-menu {
    right: auto;
    left: 0;
    min-width: 156px;
  }

  .site-footer-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
  }

  .site-footer-security {
    grid-column: 1 / -1;
  }

  .site-footer-social-wrap,
  .site-footer-social {
    justify-content: flex-start;
  }

  .site-footer-brand {
    align-items: flex-start;
  }
}

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