/* ========================================================
 * footer-common.css — футер + cookie banner + sale banner
 * Извлечено из index.html 2026-06-13
 * ====================================================== */

    .footer {
      background: url('/assets/images/footer/footer-bg.jpg') center/cover no-repeat;
      color: #fff;
      padding: 80px 0 30px;
      margin-top: 80px;
      position: relative;
    }

    .footer__content {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 50px;
      margin-bottom: 50px;
      max-width: 1200px;
      overflow: hidden;
      margin-left: auto;
      margin-right: auto;
      padding: 0 20px;
    }

    .footer__brand {
      max-width: 300px;
    }

    .footer, .footer * {
      color: var(--primary) !important;
    }

    .footer__logo,
    .footer__brand p,
    .footer__col h4,
    .footer__col a,
    .footer__col p,
    .footer__bottom a {
      display: inline;
      background: rgba(255, 255, 255, 0.65);
      padding: 2px 5px;
      border-radius: 3px;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }

    .footer__logo {
      font-family: var(--font-heading);
      font-size: 2.25rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 20px;
    }

    .footer__brand p {
      color: rgba(255, 255, 255, 0.8);
      line-height: 2;
      margin-bottom: 25px;
    }

    .footer__social {
      display: flex;
      gap: 15px;
    }

    .footer__social a {
      width: 45px;
      height: 45px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-decoration: none;
      font-size: 1.35rem;
      transition: var(--transition-normal);
    }

    .footer__social a:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-3px);
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }

    .footer__col h4 {
      font-family: var(--font-heading);
      font-size: 1.75rem;
      color: #fff;
      margin-bottom: 25px;
    }

    .footer__col a {
      display: inline-block;
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      font-size: 1.25rem;
      margin-bottom: 12px;
      padding: 2px 5px;
      border-radius: 3px;
      transition: all 0.3s ease;
      margin-left: -5px;
    }

    .footer__col a:hover {
      color: #fff !important;
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(4px);
      transform: translateX(4px);
      box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
    }

    .footer__col p {
      color: rgba(255, 255, 255, 0.8);
      font-size: 1.25rem;
      line-height: 2;
    }

    .footer__bottom {
      text-align: center;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      color: rgba(255, 255, 255, 0.6);
      font-size: 1.15rem;
      max-width: 1200px;
      margin: 0 auto;
      padding-left: 20px;
      padding-right: 20px;
    }

    .footer__bottom a {
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      padding: 2px 6px;
      border-radius: 4px;
      transition: all 0.3s ease;
    }

    .footer__bottom a:hover {
      color: #fff !important;
      background: rgba(255, 255, 255, 0.25);
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 32px;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 0.5px;
      text-decoration: none;
      border-radius: 30px;
      transition: var(--transition-normal);
      cursor: pointer;
      border: none;
    }

    .btn--primary {
      background: var(--primary);
      color: #fff;
      box-shadow: 0 4px 15px rgba(18, 144, 248, 0.3);
    }

    .btn--primary:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(18, 144, 248, 0.4);
    }

    .btn--outline {
      background: transparent;
      color: var(--primary);
      border: 2px solid var(--primary);
    }

    .btn--outline:hover {
      background: var(--primary);
      color: #fff;
    }

    .btn--large {
      padding: 16px 40px;
      font-size: 1rem;
    }

    .cookie-notification {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: #fff;
      border: 1px solid var(--border-light);
      padding: 25px;
      border-radius: 16px;
      max-width: 400px;
      z-index: 9999;
      box-shadow: var(--shadow-xl);
      transform: translateY(150%);
      opacity: 0;
      transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                  opacity 0.4s ease;
      will-change: transform, opacity;
    }

    .cookie-notification.show {
      transform: translateY(0);
      opacity: 1;
    }

    .cookie-notification__text {
      color: var(--text-dark);
      font-size: 0.95rem;
      margin-bottom: 15px;
      line-height: 1.6;
    }

    .cookie-notification__link {
      color: var(--primary);
      text-decoration: underline;
    }

    .cookie-notification__btn {
      width: 100%;
      padding: 12px;
      background: var(--primary);
      border: none;
      color: #fff;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition-normal);
    }

    .cookie-notification__btn:hover {
      background: var(--primary-dark);
    }


    /* ========== SALE BANNER (replaces cookie after 5s) ========== */
    /* Matches cookie-notification style: same white card, same position */
    .sale-banner {
      position: fixed;
      bottom: 20px;
      left: 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      max-width: 400px;
      padding: 22px 46px 22px 22px;
      background: #fff;
      border: 1px solid var(--border-light);
      color: var(--text-dark);
      text-decoration: none;
      border-radius: 16px;
      box-shadow: var(--shadow-xl);
      z-index: 9999;
      transform: translateY(150%);
      opacity: 0;
      overflow: hidden;
      transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                  opacity 0.4s ease,
                  box-shadow 0.3s ease,
                  border-color 0.3s ease;
      will-change: transform, opacity;
    }
    .sale-banner.show {
      transform: translateY(0);
      opacity: 1;
      animation: saleBannerGlow 4s ease-in-out infinite;
    }
    .sale-banner:hover {
      transform: translateY(-4px) scale(1.02);
      box-shadow: 0 18px 52px rgba(18, 144, 248, 0.35);
      border-color: var(--primary);
      animation-play-state: paused;
    }
    @keyframes saleBannerGlow {
      0%, 100% { box-shadow: var(--shadow-xl), 0 0 0 0 rgba(18, 144, 248, 0.0); }
      50%      { box-shadow: var(--shadow-xl), 0 0 30px 4px rgba(18, 144, 248, 0.35); }
    }

    /* Shimmer sweep across the banner — diagonal highlight that runs every few seconds */
    .sale-banner::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -75%;
      width: 50%;
      height: 200%;
      background: linear-gradient(120deg,
        transparent 0%,
        rgba(18, 144, 248, 0.0) 40%,
        rgba(18, 144, 248, 0.18) 50%,
        rgba(18, 144, 248, 0.0) 60%,
        transparent 100%);
      transform: rotate(20deg);
      animation: saleBannerShimmer 4.5s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes saleBannerShimmer {
      0%   { left: -75%; }
      50%  { left: 125%; }
      100% { left: 125%; }
    }

    /* Icon — clean, no static halo. Only the drop-shadow highlight pulses */
    .sale-banner__icon {
      position: relative;
      flex-shrink: 0;
      width: 72px;
      height: 72px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: saleIconWiggle 3.5s ease-in-out infinite;
      transform-origin: 50% 60%;
      will-change: transform;
    }
    .sale-banner__icon img {
      width: 60px;
      height: 60px;
      animation: saleIconBob 2.4s ease-in-out infinite,
                 saleIconHighlight 3.5s ease-in-out infinite;
      pointer-events: none;
      will-change: transform, filter;
    }
    /* Subtle highlight — drop-shadow flash every 3.5s, NO box-shadow (cheap to paint) */
    @keyframes saleIconHighlight {
      0%, 100% { filter: drop-shadow(0 2px 4px rgba(18, 144, 248, 0.25)); }
      50%      { filter: drop-shadow(0 0 14px rgba(18, 144, 248, 0.85)) brightness(1.12); }
    }
    /* Wiggle — pendulum swing, rest phase shortened to ~20% so motion is always visible */
    @keyframes saleIconWiggle {
      0%, 80%, 100% { transform: rotate(0deg); }
      6%   { transform: rotate(-20deg); }
      14%  { transform: rotate(17deg); }
      22%  { transform: rotate(-13deg); }
      30%  { transform: rotate(9deg); }
      38%  { transform: rotate(-6deg); }
      46%  { transform: rotate(3deg); }
      54%  { transform: rotate(-1deg); }
      62%  { transform: rotate(0deg); }
    }
    /* Inside-icon bob: ruble glyph subtly bounces */
    @keyframes saleIconBob {
      0%, 100% { transform: translateY(0) scale(1); }
      50%      { transform: translateY(-2px) scale(1.06); }
    }
    /* Floating sparkles around the icon */
    .sale-banner__icon::before,
    .sale-banner__icon::after {
      content: '';
      position: absolute;
      width: 6px;
      height: 6px;
      background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 70%);
      border-radius: 50%;
      pointer-events: none;
    }
    .sale-banner__icon::before {
      top: -2px;
      right: -2px;
      animation: saleSparkle1 2.6s ease-in-out infinite;
    }
    .sale-banner__icon::after {
      bottom: 2px;
      left: -3px;
      width: 5px;
      height: 5px;
      animation: saleSparkle2 2.6s ease-in-out 0.6s infinite;
    }
    @keyframes saleSparkle1 {
      0%, 100% { opacity: 0; transform: scale(0); }
      40%      { opacity: 1; transform: scale(1.4); }
      80%      { opacity: 0; transform: scale(0.4); }
    }
    @keyframes saleSparkle2 {
      0%, 100% { opacity: 0; transform: scale(0); }
      50%      { opacity: 1; transform: scale(1.6); }
      90%      { opacity: 0; transform: scale(0.4); }
    }

    .sale-banner__body { display: flex; flex-direction: column; gap: 4px; line-height: 1.3; min-width: 0; position: relative; z-index: 1; }
    .sale-banner__title {
      font-family: var(--font-heading);
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: 0.3px;
      color: var(--text-dark);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .sale-banner__title::before { display: none; }
    .sale-banner__sub {
      font-size: 0.88rem;
      color: var(--primary);
      font-weight: 600;
    }
    .sale-banner__sub::after {
      content: ' →';
      display: inline-block;
      transition: transform 0.3s ease;
    }
    .sale-banner:hover .sale-banner__sub::after {
      transform: translateX(4px);
    }
    .sale-banner__close {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 26px;
      height: 26px;
      border: none;
      background: rgba(18, 144, 248, 0.1);
      color: var(--primary);
      border-radius: 50%;
      cursor: pointer;
      font-size: 16px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, transform 0.2s ease;
      z-index: 2;
    }
    .sale-banner__close:hover {
      background: var(--primary);
      color: #fff;
      transform: rotate(90deg);
    }
    @media (prefers-reduced-motion: reduce) {
      .sale-banner, .sale-banner.show,
      .sale-banner__icon, .sale-banner__icon img,
      .sale-banner__icon::before, .sale-banner__icon::after,
      .sale-banner__title::before, .sale-banner::before {
        animation: none !important;
      }
    }
