.site-footer { background: #fff; color: var(--navy); }
.footer-container { width: min(1680px, calc(100% - 120px)); margin-inline: auto; }
.footer-sky { width: 100%; overflow: hidden; }
.footer-sky img { display: block; width: 100%; height: auto; }
.footer-main { display: grid; grid-template-columns: 1.36fr 1.06fr 1fr 1.02fr; align-items: start; padding-block: 0 60px; margin-top: -14px; }
.footer-brand { position: relative; min-height: clamp(360px, 25.8vw, 470px); padding-right: 42px; }
.footer-brand .brand img { width: clamp(230px, 18.4vw, 336px); height: auto; }
.footer-headline { font-family: 'Barlow Condensed', 'Inter', sans-serif; font-size: clamp(32px, 2.1vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin-block: 18px 12px; }
.footer-headline span { display: block; }
.footer-intro { max-width: 440px; font-size: clamp(16px, 1.25vw, 23px); line-height: 1.4; color: var(--muted); }
.footer-explorers { position: absolute; width: calc(100% + 62px); max-width: none; height: auto; left: -62px; bottom: -60px; }
.footer-column { min-width: 0; min-height: clamp(350px, 24.5vw, 450px); border-left: 1px solid var(--line); padding-inline: clamp(26px, 3.6vw, 65px) 26px; padding-top: 16px; }
.footer-column h2 { margin: 0 0 26px; color: var(--royal); font-family: 'Inter', sans-serif; font-size: clamp(20px, 1.65vw, 30px); font-weight: 750; line-height: 1.2; letter-spacing: .005em; text-transform: uppercase; }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(24px, 2.2vw, 40px); }
.footer-navigation a { display: flex; align-items: center; gap: clamp(18px, 1.65vw, 30px); min-height: 48px; font-size: clamp(16px, 1.32vw, 24px); font-weight: 500; line-height: 1.3; }
.footer-navigation .icon { width: clamp(30px, 2.4vw, 44px); height: clamp(30px, 2.4vw, 44px); flex: 0 0 auto; }
.footer-channel { padding-right: 0; width: calc(100% + 35px); }
.footer-channel > p { font-size: clamp(16px, 1.3vw, 24px); line-height: 1.35; color: var(--muted); margin-bottom: 34px; }
.footer-youtube { display: flex; align-items: center; gap: 18px; min-height: 84px; padding: 16px 20px; border: 1.5px solid var(--royal); border-radius: 16px; color: var(--royal); }
.footer-youtube > .icon:first-child { width: 40px; height: 40px; flex: 0 0 auto; }
.footer-youtube > .icon:last-child { width: 24px; height: 24px; flex: 0 0 auto; margin-left: auto; }
.footer-youtube strong { display: block; font-size: clamp(15px, 1.22vw, 23px); font-weight: 600; line-height: 1.3; }
.footer-youtube small { display: block; margin-top: 3px; color: var(--muted); font-size: clamp(14px, 1.1vw, 20px); }
.footer-handwriting { display: block; width: 100%; height: auto; margin-top: 36px; }
.footer-legal { position: relative; border-top: 1px solid var(--line); background: #f2f5ff; }
.footer-legal-clouds { position: absolute; right: 0; bottom: 0; width: clamp(140px, 12.5vw, 228px); height: auto; pointer-events: none; }
.footer-legal-inner { position: relative; display: flex; align-items: center; gap: 44px; min-height: clamp(100px, 7.8vw, 142px); padding-block: 24px; }
.footer-copyright { flex: 0 0 auto; padding-right: 44px; border-right: 1px solid #bdcbfa; color: var(--muted); font-size: clamp(14px, 1.05vw, 20px); white-space: nowrap; }
.footer-legal nav { flex: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: #4058bd; font-size: clamp(13px, 1vw, 19px); }
.site-footer a:hover { color: var(--royal); text-decoration: underline; text-underline-offset: 5px; }
.footer-youtube:hover { background: var(--soft); text-decoration: none !important; }
.site-footer a:focus-visible { outline: 3px solid var(--royal); outline-offset: 5px; border-radius: 4px; }
@media (min-width: 1600px) {
  .footer-youtube strong { font-size: 19px; white-space: nowrap; }
}
@media (max-width: 1200px) {
  .footer-container { width: calc(100% - 64px); }
  .footer-column { padding-inline: 24px 18px; }
  .footer-channel { width: 100%; padding-right: 0; }
  .footer-brand { padding-right: 24px; }
  .footer-brand .brand img { width: 215px; }
  .footer-navigation a { gap: 14px; font-size: 16px; }
  .footer-youtube { padding: 14px; gap: 12px; }
  .footer-youtube > .icon:first-child { width: 30px; height: 30px; }
  .footer-legal-inner { gap: 24px; }
  .footer-copyright { padding-right: 24px; }
  .footer-legal nav { justify-content: flex-start; }
}
@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr 1fr; padding-block: 16px 40px; gap: 40px 0; margin-top: 0; }
  .footer-brand { min-height: 420px; }
  .footer-brand .brand img { width: 250px; }
  .footer-explorers { left: -32px; bottom: 0; width: calc(100% + 32px); }
  .footer-column { min-height: 0; padding-inline: 32px 0; }
  .footer-navigation:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-column h2 { font-size: 27px; }
  .footer-navigation ul { gap: 20px; }
  .footer-channel > p { max-width: 360px; }
  .footer-handwriting { max-width: 300px; margin-top: 24px; }
  .footer-legal-inner { display: block; }
  .footer-copyright { display: block; border-right: 0; margin-bottom: 12px; }
}
@media (max-width: 540px) {
  .footer-container { width: calc(100% - 40px); }
  .footer-sky { height: 105px; }
  .footer-sky img { height: 105px; width: auto; max-width: none; margin-left: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 12px; }
  .footer-brand { grid-column: 1 / -1; min-height: 420px; padding-right: 0; }
  .footer-brand .brand img { width: 235px; }
  .footer-headline { font-size: 35px; }
  .footer-intro { max-width: 340px; font-size: 16px; }
  .footer-explorers { left: -20px; width: calc(100% + 40px); }
  .footer-column { border-left: 0; padding: 0; }
  .footer-column h2 { font-size: 23px; margin-bottom: 20px; }
  .footer-navigation a { gap: 10px; font-size: 14px; min-height: 48px; }
  .footer-navigation .icon { width: 28px; height: 28px; }
  .footer-navigation ul { gap: 12px; }
  .footer-channel { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 26px; }
  .footer-channel > p { font-size: 16px; margin-bottom: 20px; }
  .footer-youtube { max-width: 390px; }
  .footer-youtube strong { font-size: 17px; }
  .footer-handwriting { width: 260px; margin-top: 20px; }
  .footer-legal nav { gap: 4px 22px; }
  .footer-legal a { font-size: 13px; }
  .footer-legal-clouds { opacity: .6; }
}
