/* MYRAVEY premium footer. Every rule is scoped to this footer instance. */
footer.myr-premium-footer-host .myr-decor { display: none; }
@media (min-width: 768px) {
  footer.myr-premium-footer-host {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 0;
    padding: clamp(32px, 2.5vw, 54px) 0 clamp(26px, 1.35vw, 30px);
    background: radial-gradient(ellipse 75% 95% at 51% 43%, #091015 0%, #030709 68%, #020506 100%);
    color: #f7f9fa;
    font-family: Arial, Helvetica, sans-serif;
  }
  footer.myr-premium-footer-host,
  footer.myr-premium-footer-host * { box-sizing: border-box; }
  footer.myr-premium-footer-host .myr-decor {
    display: block;
    position: absolute;
    pointer-events: none;
    overflow: visible;
  }
  footer.myr-premium-footer-host .myr-decor-top { z-index: 0; top: 0; left: 0; width: clamp(300px, 25.4vw, 520px); height: clamp(133px, 11.23vw, 230px); }
  footer.myr-premium-footer-host .myr-decor-bottom { z-index: 2; right: 0; bottom: 0; width: clamp(350px, 29.3vw, 600px); height: clamp(73px, 6.1vw, 125px); }
  footer.myr-premium-footer-host > .footer { display: none !important; }
  footer.myr-premium-footer-host :is(a, button, input) { font-family: inherit; }
  footer.myr-premium-footer-host a { color: inherit; text-decoration: none; }
  footer.myr-premium-footer-host a:focus-visible,
  footer.myr-premium-footer-host #revsubscribe_submit:focus-visible,
  footer.myr-premium-footer-host input:focus-visible { outline: 2px solid #c8e4f3; outline-offset: 4px; }

  /* The existing Revolution form and AJAX handler remain intact. */
  footer.myr-premium-footer-host #revsubscribe {
    position: relative;
    z-index: 1;
    width: calc(100% - 8.6vw);
    max-width: none;
    height: clamp(93px, 5.71vw, 124px);
    margin: 0 auto clamp(25px, 1.65vw, 36px);
    padding: 0 clamp(24px, 1.9vw, 42px);
    border: 1px solid rgba(162, 185, 198, .58);
    border-radius: clamp(19px, 1.43vw, 31px);
    background: linear-gradient(155deg, rgba(66, 83, 94, .35), rgba(12, 21, 27, .63) 29%, rgba(18, 28, 35, .65) 75%, rgba(46, 62, 72, .25));
    box-shadow: inset 0 1px rgba(242, 250, 255, .24), inset 0 -1px rgba(175, 202, 218, .09), 0 13px 26px rgba(0, 0, 0, .22);
    -webkit-backdrop-filter: blur(9px) saturate(125%);
    backdrop-filter: blur(9px) saturate(125%);
  }
  footer.myr-premium-footer-host #revsubscribe .container,
  footer.myr-premium-footer-host #revsubscribe .row,
  footer.myr-premium-footer-host #revsubscribe_form { width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; }
  footer.myr-premium-footer-host #revsubscribe_form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 33%) minmax(0, 15%);
    grid-template-rows: minmax(0, 1fr);
    grid-auto-rows: 0;
    align-items: center;
    column-gap: clamp(17px, 1.4vw, 31px);
  }
  footer.myr-premium-footer-host #revsubscribe_form > div { float: none; width: auto; min-width: 0; padding: 0; }
  footer.myr-premium-footer-host #revsubscribe_form > .col-sm-5 { position: relative; }
  footer.myr-premium-footer-host #revsubscribe .revtext {
    position: relative;
    min-height: clamp(64px, 3.55vw, 77px);
    padding: 0 0 0 clamp(135px, 9vw, 195px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #e1e8ec;
    font-size: clamp(13px, 1.08vw, 23px);
    line-height: 1.35;
    white-space: nowrap;
    text-align: left;
  }
  footer.myr-premium-footer-host #revsubscribe .revtext i {
    position: absolute;
    top: 50%; left: 0;
    display: grid;
    place-items: center;
    width: clamp(70px, 4.8vw, 102px);
    height: clamp(62px, 3.55vw, 77px);
    transform: translateY(-50%);
    border: 1px solid rgba(161, 188, 205, .42);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(100, 126, 142, .32), rgba(9, 19, 25, .8) 52%, rgba(61, 80, 92, .28));
    box-shadow: inset 0 1px rgba(242, 250, 255, .36), 0 5px 10px rgba(0, 0, 0, .25);
    color: #f5faff;
    font-size: clamp(34px, 2.6vw, 56px);
    font-weight: 300;
    opacity: 1;
  }
  footer.myr-premium-footer-host #revsubscribe .revtext i::after {
    content: "";
    position: absolute;
    left: clamp(103px, 6.75vw, 146px);
    top: 0;
    height: 100%;
    border-right: 1px solid rgba(187, 215, 231, .57);
  }
  footer.myr-premium-footer-host #revsubscribe .susbs_head_text {
    display: block;
    margin-bottom: 3px;
    color: #f9fbfd;
    font-size: clamp(21px, 1.55vw, 34px);
    line-height: 1.15;
    font-weight: 700;
  }
  footer.myr-premium-footer-host #revsubscribe .revtext br { display: none; }
  footer.myr-premium-footer-host #revsubscribe_success { position: absolute; }
  footer.myr-premium-footer-host #revsubscribe_form > .col-sm-4 { position: relative; }
  footer.myr-premium-footer-host #revsubscribe_form > .col-sm-4::before {
    content: "\f003";
    position: absolute;
    top: 50%; left: clamp(18px, 1.65vw, 36px);
    z-index: 1;
    transform: translateY(-50%);
    font: normal clamp(23px, 1.8vw, 39px) FontAwesome;
    color: #f5faff;
    pointer-events: none;
  }
  footer.myr-premium-footer-host #revs_email {
    display: block;
    width: 100%;
    height: clamp(59px, 3.19vw, 69px);
    padding: 0 20px 0 clamp(62px, 4.7vw, 101px);
    border: 1px solid rgba(150, 177, 196, .53);
    border-radius: 17px;
    background: linear-gradient(155deg, rgba(21, 32, 40, .73), rgba(36, 55, 66, .46));
    box-shadow: inset 0 1px rgba(201, 228, 242, .12);
    color: #fff;
    font-size: clamp(17px, 1.12vw, 24px);
  }
  footer.myr-premium-footer-host #revs_email::placeholder { color: #eff3f6; opacity: 1; }
  footer.myr-premium-footer-host #revsubscribe_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: clamp(60px, 3.32vw, 72px);
    padding: 0 10px;
    border: 1px solid rgba(242, 250, 255, .73);
    border-radius: 18px;
    background: linear-gradient(145deg, #e6eef3, #b6c7d4 65%, #c7d9e6);
    box-shadow: inset 0 1px #fff, 0 5px 15px rgba(0, 0, 0, .25);
    color: #11191f;
    font-size: clamp(16px, 1.13vw, 25px);
    font-weight: 700;
    text-shadow: none;
    cursor: pointer;
    transition: border-color .25s, filter .25s, box-shadow .25s;
  }
  footer.myr-premium-footer-host #revsubscribe_submit::before { content: "\f1d8"; font: normal clamp(23px, 1.65vw, 36px) FontAwesome; }
  footer.myr-premium-footer-host #revsubscribe_submit:hover { filter: brightness(1.09); box-shadow: inset 0 1px #fff, 0 7px 18px rgba(94, 145, 172, .22); }

  footer.myr-premium-footer-host .myr-premium-footer {
    position: relative;
    z-index: 1;
    width: calc(100% - 5vw);
    max-width: 2200px;
    margin: 0 auto;
  }
  footer.myr-premium-footer-host .myr-footer-cards {
    display: grid;
    grid-template-columns: 1.28fr .89fr 1fr 1.23fr 1.05fr;
    gap: clamp(12px, 1.05vw, 23px);
    align-items: stretch;
    margin-bottom: clamp(26px, 1.42vw, 31px);
  }
  footer.myr-premium-footer-host .myr-glass-card,
  footer.myr-premium-footer-host .myr-footer-bottom {
    position: relative;
    min-width: 0;
    border: 1px solid rgba(158, 183, 198, .61);
    border-radius: clamp(20px, 1.45vw, 31px);
    background: linear-gradient(151deg, rgba(42, 58, 67, .45), rgba(5, 13, 18, .62) 35%, rgba(12, 24, 31, .82) 100%);
    box-shadow: inset 0 1px rgba(243, 250, 255, .18), inset 0 -1px rgba(179, 210, 229, .07), 0 12px 25px rgba(0, 0, 0, .24);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    transition: border-color .25s ease, box-shadow .25s ease;
  }
  footer.myr-premium-footer-host .myr-glass-card:hover,
  footer.myr-premium-footer-host .myr-footer-bottom:hover { border-color: rgba(210, 231, 242, .79); box-shadow: inset 0 1px rgba(250, 254, 255, .32), 0 13px 27px rgba(0, 0, 0, .24); }
  footer.myr-premium-footer-host .myr-glass-card {
    height: clamp(310px, 16.1vw, 349px);
    padding: clamp(22px, 1.14vw, 26px) clamp(22px, 1.95vw, 42px) clamp(20px, 1.95vw, 42px);
  }
  footer.myr-premium-footer-host .myr-card-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 28px; }
  footer.myr-premium-footer-host .myr-card-brand img { display: block; width: min(100%, 350px); max-height: 230px; object-fit: contain; filter: drop-shadow(0 7px 13px rgba(0, 0, 0, .38)); transform: translateY(-18px) scale(1.03,1.1); }
  footer.myr-premium-footer-host .myr-card-brand p { margin: 10px 0 0; color: #d7dfe4; font-size: clamp(15px, 1.05vw, 23px); letter-spacing: .24em; white-space: nowrap; transform: translateY(-7px); }
  footer.myr-premium-footer-host .myr-card-title { display: flex; align-items: center; gap: 18px; margin: 0 0 clamp(18px, 1.45vw, 30px); color: #f9fbfd; font-size: clamp(17px, 1.32vw, 29px); line-height: 1.2; font-weight: 700; white-space: nowrap; }
  footer.myr-premium-footer-host .myr-card-title svg { width: clamp(28px, 1.75vw, 38px); height: clamp(28px, 1.75vw, 38px); flex: none; }
  footer.myr-premium-footer-host .myr-link-list { display: grid; gap: clamp(16px, 1.19vw, 26px); margin: 0; padding: 0; list-style: none; }
  footer.myr-premium-footer-host .myr-link-list a { display: inline-flex; align-items: center; gap: 12px; color: #f4f6f8; font-size: clamp(15px, 1.1vw, 24px); line-height: 1.15; white-space: nowrap; transition: color .25s, transform .25s; }
  footer.myr-premium-footer-host .myr-link-list a::after { content: "›"; color: #dbe8ef; font-size: 1.3em; line-height: .7; }
  footer.myr-premium-footer-host .myr-link-list a:hover { color: #d2ebf8; transform: translateX(3px); }
  footer.myr-premium-footer-host .myr-contact-list { display: grid; gap: 8px; margin-top: -13px; font-size: clamp(15px, 1.04vw, 23px); line-height: 1.28; }
  footer.myr-premium-footer-host .myr-contact-row { display: grid; grid-template-columns: clamp(28px, 1.7vw, 37px) 1fr; gap: 17px; align-items: start; }
  footer.myr-premium-footer-host .myr-contact-row svg { width: clamp(26px, 1.54vw, 34px); height: clamp(26px, 1.54vw, 34px); }
  footer.myr-premium-footer-host .myr-contact-row a:hover { color: #d2ebf8; }
  footer.myr-premium-footer-host .myr-hours { margin-top: 6px; }
  footer.myr-premium-footer-host .myr-hours strong { font-size: clamp(16px, 1.07vw, 23px); }
  footer.myr-premium-footer-host .myr-hours small { display: block; margin-top: 4px; font-size: clamp(12px, .82vw, 18px); line-height: 1.35; white-space: nowrap; }
  footer.myr-premium-footer-host .myr-socials { display: flex; justify-content: space-around; gap: 14px; margin: -13px 0 clamp(24px, 1.63vw, 35px); }
  footer.myr-premium-footer-host .myr-socials a,
  footer.myr-premium-footer-host .myr-payment {
    display: grid;
    place-items: center;
    border: 1px solid rgba(154, 180, 195, .48);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(79, 104, 120, .39), rgba(5, 12, 16, .68) 49%, rgba(58, 79, 92, .35));
    box-shadow: inset 0 1px rgba(250, 254, 255, .25), 0 5px 12px rgba(0, 0, 0, .25);
    transition: border-color .25s, box-shadow .25s, transform .25s;
  }
  footer.myr-premium-footer-host .myr-socials a { width: clamp(51px, 3.46vw, 75px); height: clamp(51px, 3.46vw, 75px); font-size: clamp(29px, 2.04vw, 44px); }
  footer.myr-premium-footer-host .myr-socials a:hover { border-color: rgba(228, 243, 250, .86); transform: translateY(-2px); }
  footer.myr-premium-footer-host .myr-socials svg { width: 50%; height: 50%; }
  footer.myr-premium-footer-host .myr-social-rule { height: 1px; border: 0; margin: 0 0 29px; background: rgba(219, 235, 243, .83); }
  footer.myr-premium-footer-host .myr-authenticity { display: flex; align-items: center; gap: 19px; color: #f7f9fa; font-size: clamp(15px, .99vw, 21px); line-height: 1.35; }
  footer.myr-premium-footer-host .myr-authenticity svg { width: clamp(42px, 2.55vw, 55px); height: clamp(42px, 2.55vw, 55px); flex: none; color: #c9dce8; }
  footer.myr-premium-footer-host .myr-footer-bottom { display: flex; align-items: center; gap: clamp(25px, 2.27vw, 49px); height: clamp(84px, 4.62vw, 100px); padding: 0 clamp(26px, 1.9vw, 41px); }
  footer.myr-premium-footer-host .myr-payment-list { display: flex; gap: clamp(16px, 1.38vw, 30px); align-items: center; }
  footer.myr-premium-footer-host .myr-payment { width: clamp(70px, 4.3vw, 94px); height: clamp(53px, 2.9vw, 63px); border-radius: 14px; }
  footer.myr-premium-footer-host .myr-visa { font-size: clamp(23px, 1.45vw, 31px); font-style: italic; font-weight: 900; letter-spacing: -.06em; }
  footer.myr-premium-footer-host .myr-mastercard { position: relative; }
  footer.myr-premium-footer-host .myr-mastercard::before,
  footer.myr-premium-footer-host .myr-mastercard::after { content: ""; width: 37%; aspect-ratio: 1; border-radius: 50%; position: absolute; top: 22%; }
  footer.myr-premium-footer-host .myr-mastercard::before { left: 20%; background: #f8191f; }
  footer.myr-premium-footer-host .myr-mastercard::after { right: 20%; background: rgba(255, 167, 0, .92); mix-blend-mode: screen; }
  footer.myr-premium-footer-host .myr-usdt svg { width: 43px; height: 43px; max-width: 70%; max-height: 70%; border-radius: 5px; }
  footer.myr-premium-footer-host .myr-bottom-divider { height: 42px; border-left: 1px solid rgba(183, 211, 226, .54); }
  footer.myr-premium-footer-host .myr-copyright { margin: 0; color: #f3f5f7; font-size: clamp(15px, 1.03vw, 22px); white-space: nowrap; }
}

@media (min-width: 768px) and (max-width: 1599px) {
  footer.myr-premium-footer-host .myr-glass-card { padding: clamp(17px, 1.65vw, 27px); }
  footer.myr-premium-footer-host .myr-card-title { gap: 10px; }
  footer.myr-premium-footer-host .myr-contact-row { gap: 7px; }
  footer.myr-premium-footer-host .myr-authenticity { gap: 8px; }
  footer.myr-premium-footer-host .myr-socials { gap: 5px; }
  footer.myr-premium-footer-host .myr-social-rule { margin-bottom: 20px; }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  /* the glass ribbon stays on the footer edge at every width (was lifted up to 120px,
     which only existed because of the old fixed min-height and left a dead band) */
}

@media (min-width: 1600px) {
  footer.myr-premium-footer-host .myr-card-social { padding-right: 20px; }
  footer.myr-premium-footer-host .myr-authenticity { gap: 13px; white-space: nowrap; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  footer.myr-premium-footer-host .myr-decor-bottom { display: none; }
  footer.myr-premium-footer-host { min-height: 0; }
  footer.myr-premium-footer-host #revsubscribe { width: 95%; height: auto; min-height: 112px; padding: 16px 22px; }
  footer.myr-premium-footer-host #revsubscribe_form { grid-template-columns: minmax(0,1fr) 28% 20%; }
  footer.myr-premium-footer-host #revsubscribe .revtext { padding-left: 90px; white-space: normal; }
  footer.myr-premium-footer-host #revsubscribe .revtext i::after { display: none; }
  footer.myr-premium-footer-host .myr-footer-cards { grid-template-columns: repeat(6,1fr); }
  footer.myr-premium-footer-host .myr-glass-card { height: auto; min-height: 300px; }
  footer.myr-premium-footer-host .myr-card-brand,
  footer.myr-premium-footer-host .myr-card-links,
  footer.myr-premium-footer-host .myr-card-about { grid-column: span 2; }
  footer.myr-premium-footer-host .myr-card-contact,
  footer.myr-premium-footer-host .myr-card-social { grid-column: span 3; }
}

@media (max-width: 767px) {
  footer.myr-premium-footer-host .myr-premium-footer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  footer.myr-premium-footer-host :is(.myr-glass-card,.myr-footer-bottom,.myr-socials a,.myr-link-list a,#revsubscribe_submit) { transition: none !important; }
}


/* --- extension-safe subscription row -------------------------------------
   Password managers (LastPass & co.) inject their own DIVs next to the
   e-mail field, even with inline !important styles. Such a node used to take
   a grid cell and pushed the "Подписаться" button to a second row, which is
   why the footer looked different in Chrome and Yandex/Edge. The three real
   wrappers are pinned to the first row, and any unexpected direct child gets
   a zero-height row instead of a real one. */
@media (min-width: 768px) {
  footer.myr-premium-footer-host #revsubscribe_form > .col-sm-5 { grid-area: 1 / 1; }
  footer.myr-premium-footer-host #revsubscribe_form > .col-sm-4 { grid-area: 1 / 2; }
  footer.myr-premium-footer-host #revsubscribe_form > .col-sm-3 { grid-area: 1 / 3; }
  footer.myr-premium-footer-host #revsubscribe_form > div:not(.col-sm-5):not(.col-sm-4):not(.col-sm-3) {
    min-width: 0;
    min-height: 0;
  }
}

/* --- tablet polish (768-991) --------------------------------------------
   The brand tagline and the copyright line are nowrap with wide tracking,
   so they used to run outside the cards at 768-991 px. */
@media (min-width: 768px) and (max-width: 991px) {
  footer.myr-premium-footer-host .myr-card-brand p { letter-spacing: .1em; white-space: normal; text-align: center; }
  footer.myr-premium-footer-host .myr-footer-bottom {
    height: auto;
    min-height: clamp(84px, 4.62vw, 100px);
    flex-wrap: wrap;
    row-gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  footer.myr-premium-footer-host .myr-copyright { white-space: normal; }
}

/* --- compact subscription button (768-1199) ------------------------------
   In this range the third grid column is only ~15-20% wide, so the label
   plus its paper-plane icon used to be cut by the button border. */
@media (min-width: 768px) and (max-width: 1199px) {
  footer.myr-premium-footer-host #revsubscribe_submit { gap: 8px; padding: 0 8px; font-size: 15px; }
  footer.myr-premium-footer-host #revsubscribe_submit::before { font-size: 19px; }
}
