/* AXVPN audited mobile refinement layer.
   Loaded last so phone and tablet layouts remain predictable. */
@media (max-width: 900px) {
  .ax-home-plans-section { padding-top: 76px; padding-bottom: 76px; }
  .ax-home-plans-heading { margin-bottom: 28px; }
  .ax-header-inner { position: relative; }
  .ax-navigation {
    left: 24px;
    right: 24px;
    width: auto;
    border: 1px solid #e7e9ed;
    border-radius: 20px;
    box-shadow: 0 20px 54px rgba(21, 27, 36, .10);
  }
  .ax-navigation.is-open { gap: 2px; }
  .ax-navigation .ax-header-account { justify-content: space-between; }
}

@media (max-width: 700px) {
  .ax-home-plans-section { padding-top: 68px; padding-bottom: 68px; }
  .ax-home-plans-heading { margin-bottom: 24px; }
  .ax-home-plans-heading h2 { font-size: 36px; line-height: 1.08; }
  html { scroll-padding-top: 82px; overflow-x: hidden; overflow-x: clip; }
  body { overflow-x: hidden; overflow-x: clip; font-size: 15px; }
  .ax-container { width: calc(100% - 32px); }

  /* Header / navigation */
  .ax-header { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .ax-header-inner { min-height: 66px; gap: 12px; }
  .ax-logo { font-size: 25px; letter-spacing: -1.25px; }
  .ax-logo i { width: 5px; height: 5px; margin: 0 0 16px 4px; }
  .custom-logo { max-width: 142px; max-height: 38px; }
  .ax-menu-toggle {
    min-height: 40px;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #e8e9ed;
    border-radius: 11px;
    background: #f6f6f8;
    color: #1d2025;
    font-size: 12px;
    font-weight: 600;
  }
  .ax-navigation {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e8ed;
    border-radius: 18px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 20px 50px rgba(25,31,40,.12);
  }
  .ax-navigation > a,
  .ax-navigation ul a { display: block; padding: 12px 13px; border-radius: 11px; font-size: 14px; }
  .ax-navigation ul { gap: 1px; padding: 0; }
  .ax-navigation .ax-header-account { margin-top: 5px; padding: 13px 14px; border-radius: 12px; }

  /* Global rhythm / typography */
  .ax-section { padding-top: 58px; }
  .ax-eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: 1.05px; }
  h2, .ax-section-heading h2 { font-size: clamp(31px, 8.8vw, 38px); line-height: 1.07; letter-spacing: -.04em; }
  .ax-section-heading { margin-bottom: 22px; }
  .ax-heading-note { margin-top: 13px; font-size: 13px; line-height: 1.55; }

/* Globe: stable size, true center, cheaper effects on phones. */

.ax-hub-core,.ax-flow-dot { filter: none !important; }
  .ax-flow-glow, .ax-flow-pulse { display: none !important; }
  .ax-hub-aura, .ax-hub-orbit-outer { animation: none !important; }

/* Platforms: readable 2x2 instead of four squeezed columns. */

/* Benefits: compact horizontal cards so all three advantages stay visible without a long page. */
  .ax-benefits-heading { margin-bottom: 22px; }
  .ax-benefits { gap: 11px; }
  .ax-benefit-card, .ax-benefit-card:last-child {
    display: grid;
    grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
    min-height: 142px;
    border-radius: 22px;
  }
  .ax-benefit-visual, .ax-benefit-card:last-child .ax-benefit-visual {
    width: 100%;
    height: auto;
    min-height: 142px;
    border-right: 1px solid #eceef2;
    border-bottom: 0;
  }
  .ax-benefit-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .ax-benefit-copy {
    justify-content: center;
    min-width: 0;
    padding: 16px 16px 15px;
  }
  .ax-benefit-card h3 { margin-bottom: 7px; font-size: 18px; line-height: 1.12; }
  .ax-benefit-card p { margin: 0; font-size: 13px; line-height: 1.6; }
  .ax-card-foot { padding-top: 13px; font-size: 9px; }

  /* Services are fully responsive in theme.css; keep mobile.css from overriding the rebuilt section. */

  /* Tariffs: compact 2x2 grid on ordinary phones. */
  .ax-tariff-section { margin-top: 58px; padding-block: 48px; }
  .ax-tariff-section .ax-section-heading { margin-bottom: 20px; }
  .ax-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ax-plan {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px 13px;
    border-radius: 18px;
  }
  .ax-plan-label { min-height: 32px; margin: 0 0 8px; font-size: 12px; line-height: 1.4; }
  .ax-plan h3 { align-self: stretch; text-align: left; margin: 7px 0 8px; font-size: 18px; }
  .ax-plan .ax-price { align-self: stretch; margin-bottom: 3px; font-size: 29px; text-align: left; }
  .ax-monthly { margin-bottom: 12px; font-size: 12px; line-height: 1.5; text-align: left; }
  .ax-plan ul { display: block; margin: 0 0 16px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .ax-plan li { padding: 6px 0; }
  .ax-plan form { margin-top: auto; }
  .ax-plan .ax-button { min-height: 44px; padding: 10px 7px; border-radius: 10px; font-size: 13px; }
  .ax-plans + .ax-muted { margin-top: 15px; font-size: 12px; line-height: 1.5; }

  /* FAQ: compact accordion. */
  .ax-faq-section { display: block; }
  .ax-faq-section h2 { font-size: clamp(31px, 8.8vw, 36px); }
  .ax-faq-section .ax-heading-note { margin-bottom: 18px; font-size: 12px; }
  .ax-faq details { padding: 16px 0; }
  .ax-faq summary { gap: 12px; font-size: 14px; line-height: 1.4; }
  .ax-faq summary:after { font-size: 21px; }
  .ax-faq p { margin-top: 10px; padding-right: 4px; font-size: 12px; line-height: 1.6; }

  /* Final CTA / pages / footer. */
  .ax-final-cta { min-height: 0; margin-top: 58px; padding: 28px 22px; border-radius: 22px; gap: 18px; }
  .ax-final-cta h2 { max-width: 300px; font-size: 34px; }
  .ax-final-cta p:not(.ax-eyebrow):not(.ax-final-action-note) { max-width: 300px; font-size: 12px; }
  .ax-final-cta-actions { width: 100%; align-items: flex-start; }
  .ax-final-cta .ax-button { width: 100%; max-width: 320px; min-height: 50px; font-size: 13px; }
  .ax-final-mark { display: none; }
  .ax-page { padding-top: 28px; }
  .ax-page-heading { margin-bottom: 24px; }
  .ax-page-heading h1 { font-size: 34px; line-height: 1.04; }
  .ax-lead { margin-bottom: 25px; font-size: 17px; line-height: 1.48; }
  .ax-prose { font-size: 15px; line-height: 1.72; }
  .ax-support-page { padding-top: 28px; }
  .ax-support-section-page h1 { font-size: 34px; }

  .ax-footer { margin-top: 58px; padding-top: 34px; }
  .ax-footer-top { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-bottom: 24px; }
  .ax-footer-top > div:first-child { grid-column: 1 / -1; }
  .ax-footer-top > div:last-child { grid-column: 1 / -1; }
  .ax-footer-top > div:first-child p { margin-top: 13px; font-size: 14px; }
  .ax-footer h3 { margin-bottom: 13px; }
  .ax-footer-top > div > a:not(.ax-logo) { margin-bottom: 11px; font-size: 11px; }
  .ax-footer-bottom { gap: 7px; padding-block: 18px; font-size: 9px; }

  /* WooCommerce / checkout / account. */
  .woocommerce form.checkout { display: block; max-width: 100%; margin: 0; }
  .woocommerce form.checkout #customer_details,
  .woocommerce form.checkout #order_review_heading,
  .woocommerce form.checkout #order_review { width: 100%; }
  .woocommerce form.checkout #order_review_heading { margin: 26px 0 14px; font-size: 23px; }
  .woocommerce form.checkout #order_review { padding: 17px; border-radius: 18px; }
  .woocommerce-billing-fields h3 { margin-bottom: 20px; font-size: 24px; }
  .woocommerce form .form-row { margin-bottom: 17px; }
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select,
  .woocommerce-Input { min-height: 50px; padding: 12px 13px; border-radius: 11px; font-size: 16px; }
  .woocommerce table.shop_table { font-size: 12px; }
  .woocommerce table.shop_table td,
  .woocommerce table.shop_table th { padding: 12px 5px; }
  .woocommerce-checkout #place_order { min-height: 52px; }
  .woocommerce-account .woocommerce-MyAccount-navigation { width: 100%; margin-bottom: 18px; padding: 6px; border-radius: 15px; float: none; overflow-x: auto; }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; gap: 3px; width: 100%; }
  .woocommerce-account .woocommerce-MyAccount-navigation a { padding: 10px 11px; font-size: 11px; white-space: nowrap; }
  .woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; }
  .woocommerce form.login,
  .woocommerce form.register,
  .woocommerce form.lost_reset_password { padding: 20px; border-radius: 18px; }
  .woocommerce h2 { font-size: 28px; }
  .woocommerce h3 { font-size: 22px; }
  .woocommerce div.product div.summary { padding: 22px; border-radius: 20px; }
  .woocommerce div.product .product_title { font-size: 34px; }
  .woocommerce div.product p.price { font-size: 30px; }
  .woocommerce ul.products { grid-template-columns: 1fr; gap: 12px; }
  .woocommerce ul.products li.product { padding: 19px; border-radius: 19px; }
}

/* Two cards need 2 × 185px + 9px gap + 32px container gutters. */
@media (max-width: 410px) {
  .ax-plans { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .ax-container { width: calc(100% - 28px); }

.ax-service-youtube, .ax-service-telegram { min-height: 0; }
  .ax-service-instagram, .ax-service-whatsapp, .ax-service-discord { min-height: 0; }
  .ax-service-instagram h3, .ax-service-whatsapp h3 { font-size: 22px; }

}

@media (max-width: 350px) {
  .ax-container { width: calc(100% - 24px); }
  
  .ax-services-grid { grid-template-columns: 1fr; }
  .ax-service-youtube, .ax-service-telegram, .ax-service-instagram, .ax-service-whatsapp, .ax-service-discord { grid-column: 1; min-height: 0; }
  .ax-plan { padding: 17px; }
  .ax-plan .ax-price { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .ax-service-card, .ax-benefit-card { transition: none !important; }
}

/* FAQ page mobile polish. */
.ax-page-faq .ax-page-heading h1{overflow-wrap:normal}
.ax-page-content-faq .ax-faq{border-top:0}
@media (max-width:700px){
  .ax-page-faq .ax-page-heading{margin-bottom:22px}
  .ax-page-faq .ax-page-content-faq .ax-faq details{padding:0}
  .ax-page-faq .ax-page-content-faq .ax-faq summary{gap:14px;font-size:16px;line-height:1.48}
  .ax-page-faq .ax-page-content-faq .ax-faq p{margin-top:0;padding-right:0;font-size:13px;line-height:1.68}
}

/* FAQ bottom CTA mobile. */
@media(max-width:700px){
  .ax-page-faq .ax-faq-bottom-cta{margin-top:22px;padding:24px 20px;border-radius:22px}
  .ax-page-faq .ax-faq-bottom-actions{display:grid;grid-template-columns:1fr;gap:9px;width:100%}
  .ax-page-faq .ax-faq-bottom-actions .ax-button{width:100%;max-width:none;min-height:52px}
}

/* v2.11.13 — footer tablet/mobile layout. */
@media (max-width: 900px) {
  .ax-footer { padding-top: 36px; }
  .ax-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; padding-bottom: 28px; }
  .ax-footer-brand { grid-column: 1 / -1; }
  .ax-footer-brand p { max-width: 260px; margin-top: 14px; font-size: 14px; }
  .ax-footer-docs { grid-column: 1 / -1; }
  .ax-footer-docs .ax-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 20px; }
  .ax-footer-nav h3 { margin-bottom: 13px; font-size: 12px; }
  .ax-footer-links { gap: 10px; }
  .ax-footer-links a { font-size: 11px; line-height: 1.42; }
}

@media (max-width: 700px) {
  .ax-footer { margin-top: 58px; padding-top: 24px; }
  .ax-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; padding-bottom: 20px; }
  .ax-footer-brand { grid-column: 1 / -1; }
  .ax-footer-brand p { margin-top: 12px; font-size: 13px; line-height: 1.48; }
  .ax-footer .ax-footer-top > .ax-footer-brand p { margin: 12px 0 0; }
  .ax-footer-docs { grid-column: 1 / -1; padding-top: 0; }
  .ax-footer-docs .ax-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .ax-footer-nav h3 { margin-bottom: 4px; font-size: 12px; }
  .ax-footer-links { gap: 0; }
  .ax-footer-links a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
  .ax-footer-bottom { flex-direction: column; gap: 6px; padding-block: 14px; font-size: 9px; }
}

@media (max-width: 390px) {
  .ax-footer-top { gap: 20px 14px; }
  .ax-footer-docs .ax-footer-links { gap: 0 12px; }
  .ax-footer-links a { font-size: 13px; }
}

/* Keep an expanded sticky-header menu inside short/landscape viewports. */
@media(max-width:900px){
 .ax-navigation{max-height:calc(100vh - 110px);max-height:var(--ax-nav-available,calc(100dvh - 110px));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .ax-navigation>*{flex-shrink:0}
}
@media(max-width:380px){.ax-home-final-cta h2,.ax-servers-final h2{font-size:30px}}

/* v2.11.66: mobile pricing remains compact without hiding tariff limits. */
@media(max-width:700px){
  .ax-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
  .ax-plan{min-height:286px;padding:18px 20px;border-radius:18px;box-shadow:none}
  .ax-plan:before{flex-basis:18px;height:18px;margin-bottom:8px}
  .ax-plan-badge{top:18px;left:20px;min-height:18px;margin:0;padding:3px 7px;font-size:9px;line-height:1.15}
  .ax-plan-badge--featured{gap:6px}
  .ax-plan-badge--featured:before{width:4px;height:4px;flex-basis:4px}
  .ax-plan h3{margin:0 0 10px;font-size:19px;line-height:1.16}
  .ax-plan .ax-price{margin:0 0 4px;font-size:clamp(34px,9.6vw,36px);line-height:1;white-space:nowrap}
  .ax-plan .ax-price .woocommerce-Price-currencySymbol{font-size:.45em}
  .ax-plan .ax-monthly{margin:0 0 10px;color:#4d5058;font-size:11px;line-height:1.35}
  .ax-plan-featured .ax-monthly{color:rgba(255,255,255,.64)}
  .ax-plan ul{display:grid;row-gap:15px;margin:0 0 12px;font-size:11px;line-height:1.35}
  .ax-plan li{gap:6px;padding:0}
  .ax-plan li:before{font-size:10px}
  .ax-plan-feature-desktop{display:none}
  .ax-plan-feature-mobile{display:inline}
  .ax-plan .ax-button,.ax-plan .ax-button.ax-plan-cta{min-height:52px;padding:12px 8px;border-radius:11px;font-size:12px;line-height:1.2}
}
@media(max-width:369px){
  .ax-plans{grid-template-columns:1fr;gap:12px}
  .ax-plan{min-height:0;padding:20px;border-radius:18px}
  .ax-plan-badge{top:20px;left:20px}
  .ax-plan h3{font-size:22px}
  .ax-plan .ax-price{font-size:40px}
  .ax-plan .ax-monthly{font-size:12px}
  .ax-plan ul{font-size:12px}
  .ax-plan .ax-button,.ax-plan .ax-button.ax-plan-cta{font-size:13px}
}

/* v2.11.89: keep the theme control available beside Menu on compact headers. */
@media(max-width:900px){
  .ax-header-inner{justify-content:flex-start;gap:8px}
  .ax-menu-toggle{margin-left:auto}
  .ax-header-inner>.ax-theme-toggle--mobile{display:inline-grid;width:44px;height:44px;flex:0 0 44px;margin:0}
  .ax-header-inner>.ax-header-telegram--mobile{display:inline-flex;width:44px;height:44px;flex:0 0 44px;margin:0}
  .ax-header-inner>.ax-header-telegram--mobile span{display:none}
  .ax-navigation-actions>.ax-theme-toggle--desktop{display:none}
  .ax-navigation-actions>.ax-header-utilities{display:none}
  .ax-navigation.is-open .ax-navigation-actions{display:block;width:100%;margin-top:5px}
  .ax-navigation.is-open .ax-navigation-actions .ax-header-account{display:flex;min-width:0;width:100%;margin-top:0}
}
@media(max-width:700px){
  .ax-header :is(.custom-logo-link,.ax-logo-fallback){width:142px;height:40px;flex-basis:142px}
  .ax-header .custom-logo{max-width:100%;max-height:100%}
  .ax-header-inner>.ax-theme-toggle--mobile{width:40px;height:40px;flex-basis:40px;border-radius:11px}
  .ax-header-inner>.ax-header-telegram--mobile{width:40px;height:40px;flex-basis:40px;border-radius:11px}
}

@media(max-width:360px){
  .ax-header :is(.custom-logo-link,.ax-logo-fallback){width:124px;flex-basis:124px}
  .ax-menu-toggle{width:40px;min-width:40px;padding:0;justify-content:center;gap:0}
  .ax-menu-toggle span:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* v2.11.96: readable mobile footer hierarchy without narrow legal columns. */
@media (max-width: 700px) {
  .ax-footer { margin-top: 56px; padding-top: 32px; }
  .ax-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; padding-bottom: 30px; }
  .ax-footer-brand { grid-column: 1 / -1; padding-bottom: 4px; }
  .ax-footer-brand p { max-width: 260px; margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
  .ax-footer-nav { min-width: 0; }
  .ax-footer-nav h3 { margin-bottom: 10px; font-size: 12px; line-height: 1.3; }
  .ax-footer-links { gap: 2px; }
  .ax-footer-links a { align-items: flex-start; min-height: 44px; padding-block: 10px; font-size: 14px; line-height: 1.4; }
  .ax-footer-docs { grid-column: 1 / -1; margin-top: 2px; padding-top: 24px; border-top: 1px solid var(--ax-line); }
  .ax-footer-docs .ax-footer-links { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ax-footer-bottom { align-items: flex-start; gap: 6px; padding: 18px 0 22px; font-size: 10px; line-height: 1.45; }
}

@media (max-width: 390px) {
  .ax-footer-top { gap: 28px 16px; }
}

/* v2.11.97: match the light logo asset and dark text fallback on compact screens. */
@media(max-width:700px){
  :is(.ax-header,.ax-footer-brand) :is(.custom-logo-link,.ax-logo-fallback){display:inline-flex;align-items:center;width:108px;height:30px;flex:0 0 108px}
  :is(.ax-header,.ax-footer-brand) .custom-logo{width:108px;height:30px;max-width:none;max-height:none;object-fit:contain;object-position:left center}
}
