/*
 * Wide blocks live inside WordPress's 760px post-content column. Use viewport
 * units and its center point so the 1160px layout remains truly centered.
 */
.wp-block-post-content > .skazkino-page.alignwide { position: relative; left: 50%; width: min(var(--wp--style--global--wide-size), calc(100vw - 80px)); max-width: none; margin-right: 0 !important; margin-left: 0 !important; transform: translateX(-50%); }
.wp-block-post-content > .skazkino-page.alignwide.skazkino-legal { width: min(var(--wp--style--global--wide-size), calc(100vw - 80px)); }

/* The brand has more visual weight than the previous compact header. */
.skazkino-header__inner { padding-top: 24px; padding-bottom: 24px; }
.skazkino-header__brand { width: 248px; }

.skazkino-footer { position: relative; overflow: hidden; border-top-color: rgba(244, 242, 232, .18); background: #020102; color: #f4f2e8; }
.wp-site-blocks { background: var(--wp--preset--color--base); }
body { background: #020102; }
.skazkino-footer::before { display: none; }
.skazkino-footer__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 32px; padding: 30px 0; }
.skazkino-footer__inner::before { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(90deg, rgba(2, 1, 2, .92) 0%, rgba(2, 1, 2, .54) 30%, rgba(2, 1, 2, .54) 70%, rgba(2, 1, 2, .92) 100%), var(--skazkino-pattern); background-position: center; background-size: cover; content: ""; }
.skazkino-footer__inner > * { position: relative; z-index: 1; }
.skazkino-footer__contacts { display: grid; justify-items: start; gap: 4px; }
.skazkino-footer__contacts a { border-bottom: 1px solid transparent; }
.skazkino-footer__phone { display: inline-block; padding: 12px 16px; border: 1px solid var(--wp--preset--color--gold) !important; border-radius: 8px; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--contrast) !important; font-size: clamp(1.1rem, 1vw + .8rem, 1.35rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; transition: transform .2s ease, background .2s ease, color .2s ease; }
.skazkino-footer__phone:hover, .skazkino-footer__phone:focus-visible { border-color: var(--wp--preset--color--base) !important; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast) !important; transform: translateY(-2px); }
.skazkino-footer__contacts a:hover, .skazkino-footer__contacts a:focus-visible { border-color: var(--wp--preset--color--red); color: var(--wp--preset--color--red) !important; }
.skazkino-footer__socials { display: flex; align-items: center; justify-self: center; gap: 22px; }
.skazkino-footer__mail { display: inline-grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border: 0 !important; border-radius: 8px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast) !important; transition: transform .2s ease, box-shadow .2s ease; }
.skazkino-footer__mail svg { width: 20px; height: 20px; fill: currentColor; }
.skazkino-footer__mail:hover, .skazkino-footer__mail:focus-visible { box-shadow: 0 5px 12px color-mix(in srgb, var(--wp--preset--color--contrast) 24%, transparent); color: var(--wp--preset--color--red) !important; transform: translateY(-2px); }
.skazkino-footer__social-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.skazkino-footer__social-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0 !important; border-radius: 8px; color: #fff !important; line-height: 1; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.skazkino-footer__social-link svg { width: 100%; height: 100%; fill: currentColor; }
.skazkino-footer__social-link--telegram { background: #2aabee; }
.skazkino-footer__social-link--max { background: #4859d9; }
.skazkino-footer__social-link--vk { background: #07f; }
.skazkino-footer__social-link--dzen { background: #000; }
.skazkino-footer__social-link--rutube { background: #100a57; }
.skazkino-footer__social-link--maps { background: #ff4433; }
.skazkino-footer__social-link--word { font-family: var(--skazkino-sans); font-size: 10px; font-weight: 800; letter-spacing: -.04em; }
.skazkino-footer__social-link--rutube { font-size: 15px; letter-spacing: -.08em; }
.skazkino-footer__social-link:hover, .skazkino-footer__social-link:focus-visible { box-shadow: 0 5px 12px color-mix(in srgb, var(--wp--preset--color--contrast) 24%, transparent); color: #fff !important; transform: translateY(-2px); }
.skazkino-footer__legal-links { display: grid; justify-self: end; justify-items: end; gap: 4px; }
.skazkino-footer__legal, .skazkino-footer__legal:visited { border-bottom: 1px solid transparent !important; color: var(--wp--preset--color--base) !important; }
.skazkino-footer__legal:hover, .skazkino-footer__legal:focus-visible { border-color: currentColor !important; }
.skazkino-contact-socials { margin-top: 44px; padding: 28px 0 4px; border-top: 1px solid color-mix(in srgb, var(--skazkino-border) 18%, transparent); }
.skazkino-contact-socials h2 { margin: 0 0 18px; font-size: var(--skazkino-accent-size); }
.skazkino-contact-socials .skazkino-page__eyebrow { margin-bottom: 10px; }
.skazkino-contact-socials .skazkino-footer__social-list { justify-content: flex-start; }
.skazkino-location__details > .skazkino-page__eyebrow, .skazkino-contact-socials .skazkino-page__eyebrow { font-size: 14px; }
.skazkino-location__office { color: var(--wp--preset--color--contrast) !important; }

@media (max-width: 1280px) {
  .wp-block-post-content > .skazkino-page.alignwide,
  .wp-block-post-content > .skazkino-page.alignwide.skazkino-legal { width: calc(100vw - 64px); }
}

@media (max-width: 920px) {
  .wp-block-post-content > .skazkino-page.alignwide,
  .wp-block-post-content > .skazkino-page.alignwide.skazkino-legal { width: calc(100vw - 48px); }
  .skazkino-header__inner { padding-top: 20px; padding-bottom: 20px; }
  .skazkino-header__brand { width: 220px; }
  .skazkino-footer__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
  .skazkino-footer__legal-links { grid-column: 1 / -1; justify-self: start; justify-items: start; }
  .skazkino-how-to { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .wp-block-post-content > .skazkino-page.alignwide,
  .wp-block-post-content > .skazkino-page.alignwide.skazkino-legal { width: calc(100vw - 32px); }
  .skazkino-header__inner { padding-top: 16px; padding-bottom: 16px; }
  .skazkino-header__brand { width: 190px; }
  .skazkino-footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .skazkino-footer__socials { gap: 14px; justify-self: center; }
  .skazkino-footer__social-list { justify-content: center; }
  .skazkino-footer__legal-links { grid-column: auto; justify-self: start; justify-items: start; }
  .skazkino-how-to__gallery { grid-template-columns: 1fr; }
}
