.site-footer {
  background: #03142e;
  color: rgba(255, 255, 255, 0.82);
  padding: 12px var(--container-pad) 28px;
}

.footer-shell {
  background: transparent;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: clamp(22px, 3vw, 34px);
}

.footer-scroll-row {
  display: contents;
}

.footer-scroll-hint {
  display: none;
}

.footer-brand p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  line-height: 1.8;
  max-width: 42ch;
}

.footer-main > .footer-brand {
  margin-top: -70px;
}

.footer-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.footer-logo-link {
  display: block;
  width: 220px;
  max-width: 100%;
}

.footer-logo-mark {
  position: relative;
  display: block;
  width: 100%;
  height: 54px;
  max-width: 100%;
  overflow: hidden;
}

.footer-logo-static,
.footer-logo-animated {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.footer-logo-static {
  opacity: 1;
  transition: opacity 0.22s var(--ease);
}

.footer-logo-animated {
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.footer-logo-link:hover .footer-logo-static,
.footer-logo-link:focus-visible .footer-logo-static {
  opacity: 0;
}

.footer-logo-link:hover .footer-logo-animated,
.footer-logo-link:focus-visible .footer-logo-animated {
  opacity: 1;
}

.footer-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 196, 12, 0.12);
}

.footer-col h3 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc40c;
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-list a,
.footer-list span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.45;
  transition: color 0.25s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-list a::before {
  content: "✦";
  display: inline-block;
  width: 10px;
  color: #ffc40c;
  font-size: 0.58rem;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}

.footer-contact-list a::before {
  display: none;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #ffc40c;
}

.footer-social {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: rgba(255, 196, 12, 0.16);
  color: #ffc40c;
}

.footer-bottom {
  padding: 16px clamp(22px, 3vw, 34px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: relative;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-seo-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.footer-legal-bg-icon {
  position: absolute;
  right: clamp(16px, 2.4vw, 34px);
  bottom: 66px;
  display: block;
  width: 70px;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

@media (min-width: 761px) {
  .footer-legal-bg-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 0.5 !important;
  }
}

.footer-legal-bg-icon img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.62);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #ffc40c;
}

@media (max-width: 1200px) {
  .footer-brand p {
    font-size: 0.82rem;
    line-height: 1.68;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: clamp(16px, 2vw, 22px);
  }

  .footer-main > .footer-brand {
    grid-column: span 2;
    margin-top: 0;
  }

  .footer-bottom {
    padding: 14px clamp(16px, 2vw, 22px);
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .footer-bottom-left {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .footer-legal {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 28px var(--container-pad) 44px;
  }

  .footer-shell {
    border-top: 0;
    padding-top: 2px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .footer-brand {
    grid-column: auto;
    padding: 10px 0 18px;
    border-bottom: 0;
  }

  .footer-main > .footer-brand {
    margin-top: 0;
  }

  .footer-scroll-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    direction: ltr;
    padding: 10px 14px 6px 2px;
    margin-right: -14px;
    scroll-padding-inline: 2px 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .footer-scroll-row::-webkit-scrollbar {
    display: none;
  }

  .footer-logo-link {
    width: 138px;
  }

  .footer-logo-mark {
    height: 34px;
  }

  .footer-brand p {
    margin-top: 14px;
    max-width: none;
    padding-right: 10px;
    font-size: 0.72rem;
    line-height: 1.62;
  }

  .footer-badges {
    margin-top: 12px;
    gap: 6px;
  }

  .footer-badges span {
    font-size: 0.58rem;
    padding: 6px 8px;
  }

  .footer-col {
    direction: ltr;
    flex: 0 0 clamp(148px, 48vw, 172px);
    padding: 10px 4px 10px 0;
    border-bottom: 0;
    border-right: 0;
    border-left: 0;
    scroll-snap-align: start;
  }

  .footer-col-contact {
    flex-basis: clamp(206px, 62vw, 238px);
  }

  .footer-contact-list a,
  .footer-contact-list span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .footer-scroll-row .footer-col:last-child {
    padding-right: 8px;
    border-right: 0;
  }

  .footer-col h3 {
    margin-bottom: 7px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .footer-list {
    gap: 6px;
  }

  .footer-list a,
  .footer-list span {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .footer-social {
    margin-top: 10px;
    gap: 6px;
  }

  .footer-social a {
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .footer-scroll-hint {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.48);
    font-family: var(--font-nav);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .footer-scroll-track {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  .footer-scroll-thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 34px;
    background: #ffc40c;
    transform: translateX(0);
    will-change: transform, width;
  }

  .footer-scroll-hint-copy {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1;
    text-align: right;
  }

  .footer-scroll-hint svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    color: #ffc40c;
  }

  .footer-legal-bg-icon {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 37px 0 0;
  }

  .footer-bottom-left {
    gap: 6px;
  }

  .footer-seo-note {
    font-size: 0.66rem;
    line-height: 1.45;
  }

  @media print {
    .site-footer {
      display: none !important;
    }
  }

  .footer-legal {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 7px;
  }

  .footer-legal a {
    font-size: 0.78rem;
  }
}

@media (min-width: 1201px) and (max-width: 1366px) {
  .site-footer {
    padding: 58px var(--container-pad) 22px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.92fr));
    gap: 20px;
    padding: clamp(18px, 2.2vw, 26px);
  }

  .footer-main > .footer-brand {
    margin-top: 0;
  }

  .footer-brand p {
    max-width: 34ch;
    font-size: 0.8rem;
    line-height: 1.65;
  }

  .footer-badges {
    margin-top: 12px;
    gap: 6px;
  }

  .footer-badges span {
    font-size: 0.64rem;
    padding: 6px 8px;
  }

  .footer-col h3 {
    margin-bottom: 10px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
  }

  .footer-list {
    gap: 8px;
  }

  .footer-list a,
  .footer-list span {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .footer-social {
    margin-top: 12px;
    gap: 8px;
  }

  .footer-social a {
    font-size: 0.72rem;
    padding: 6px 8px;
  }

  .footer-bottom {
    gap: 24px;
    padding: 14px clamp(18px, 2.5vw, 28px);
    align-items: center;
  }

  .footer-bottom-left {
    gap: 3px;
    flex: 1 1 auto;
    max-width: none;
  }
}

@media (min-width: 900px) and (max-width: 1180px) and (max-height: 820px) {
  .site-footer {
    padding: 18px var(--container-pad) 16px;
  }

  .footer-main {
    grid-template-columns: minmax(190px, 0.78fr) repeat(3, minmax(0, 0.92fr));
    gap: 16px 18px;
    padding: 16px 18px;
    align-items: start;
  }

  .footer-main > .footer-brand {
    grid-column: auto;
    margin-top: 0;
  }

  .footer-scroll-row {
    display: contents;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-col-contact {
    grid-column: auto;
  }

  .footer-logo,
  .footer-logo-link {
    width: 180px;
  }

  .footer-logo-mark {
    height: 44px;
  }

  .footer-brand p {
    margin-top: 10px;
    font-size: 0.74rem;
    line-height: 1.52;
    max-width: 23ch;
  }

  .footer-badges {
    margin-top: 10px;
    gap: 6px;
    max-width: 220px;
  }

  .footer-badges span {
    font-size: 0.6rem;
    line-height: 1.2;
    padding: 5px 7px;
  }

  .footer-col h3 {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .footer-list {
    gap: 7px;
  }

  .footer-list a,
  .footer-list span {
    font-size: 0.85rem;
    line-height: 1.32;
  }

  .footer-social {
    margin-top: 10px;
    gap: 8px;
  }

  .footer-social a {
    font-size: 0.68rem;
    padding: 6px 8px;
  }

  .footer-scroll-hint {
    display: none;
  }

  .footer-bottom {
    padding: 12px 18px 0;
    gap: 12px;
    align-items: center;
  }

  .footer-bottom-left {
    flex: 1 1 auto;
    max-width: none;
    gap: 4px;
  }

  .footer-seo-note {
    font-size: 0.68rem;
    line-height: 1.42;
  }

  .footer-legal {
    width: auto;
    justify-content: flex-end;
    gap: 10px 12px;
    margin-left: auto;
  }

  .footer-legal a {
    font-size: 0.76rem;
  }
}
