/* BABAI.NET 2.9 | Cardinal theme — complete, integrated stylesheet.
 */
:root {
  color-scheme: light;
  --accent-color: #006B2F;
  --accent-hover: #005625;
  --accent-soft: #edf7ef;
  --primary-color: #16251c;
  --text-color: #566459;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --border-color: #e2e9e3;
  --shadow: 0 8px 28px rgba(18, 47, 30, .045);
  --radius: 16px;
  --bb2-heading: #12251a;
  --bb2-muted: #637268;
  --bb2-soft: #f5f9f5;
  --bb2-outline: #dfe9e2;
  --bb2-max: 1216px;
}
/* Dark palette: deeper page canvas with visibly elevated green surfaces. */
body.dark-theme {
  color-scheme: dark;
  --accent-color: #66d793;
  --accent-hover: #91efb0;
  --accent-soft: #103322;
  --primary-color: #effcf2;
  --text-color: #b9d0c1;
  --bg-color: #030a07;
  --card-bg: #0c2118;
  --border-color: #28513b;
  --shadow: 0 12px 30px rgba(0, 0, 0, .32);
  --bb2-heading: #f0fff4;
  --bb2-muted: #a5c5b0;
  --bb2-soft: #0f291d;
  --bb2-outline: #244b37;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; min-width: 280px; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg-color); color: var(--text-color); -webkit-font-smoothing: antialiased; padding-top: 98px; }
img, svg { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 4px; }
button, input, select { font: inherit; }
.container { width: min(calc(100% - 48px), var(--bb2-max)); margin-inline: auto; }
.main-content { min-height: 45vh; padding: 22px 0 32px; }
.main-content:not(.bb2-is-home) { background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: var(--shadow); border-radius: var(--radius); padding: clamp(20px, 4vw, 42px); }
.page-title { color: var(--primary-color); margin: 0 0 24px; font-size: clamp(28px, 3vw, 35px); letter-spacing: -.04em; font-weight: 800; }
.bb2-skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 20px; z-index: 9000; border-radius: 8px; background: var(--accent-color); color: white; text-decoration: none; }
.bb2-skip-link:focus { top: 12px; }

/* HEADER */
.header { position: fixed; z-index: 2000; top: 12px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 48px), var(--bb2-max)); border: 1px solid var(--bb2-outline); border-radius: 17px; background: var(--card-bg); box-shadow: 0 8px 28px rgba(21, 54, 29, .07); transition: box-shadow .2s ease; }
.header.is-scrolled { box-shadow: 0 12px 32px rgba(21, 54, 29, .11); }
body.dark-theme .header {
  background: #0b1f16;
  background-image: none;
  border-color: var(--bb2-outline);
}
.nav-container { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; }
.header-left, .header-right { display: flex; align-items: center; flex-shrink: 0; }
.header-right { gap: 8px; }
.site-title { display: inline-flex; align-items: center; justify-content: center; border: 0; box-shadow: none; background: transparent; border-radius: 8px; padding: 2px; text-decoration: none; }
.site-logo { width: 175px; height: auto; object-fit: contain; display: block; }
.site-logo--dark { display: none; }
body.dark-theme .site-logo--light { display: none; }
body.dark-theme .site-logo--dark { display: block; }
.bb2-main-nav { min-width: 0; }
.nav-list { list-style: none; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; padding: 0; margin: 0; gap: 0; }
.nav-list li { margin: 0; padding: 0; }
.nav-list a { display: block; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 12px; color: var(--bb2-heading); padding: 12px 9px; border-radius: 8px; transition: color .15s ease, background .15s ease; }
.nav-list a:hover, .nav-list .current a { color: var(--accent-color); background: var(--accent-soft); }
.bb2-mobile-nav-extra { display: none; }
.header-right a, .header-right button { flex-shrink: 0; }
.header-right svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-cabinet { background: #006B2F; color: #fff !important; border-radius: 10px; height: 40px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-cabinet:hover { background: #005625; }
.theme-toggle, .hamburger { background: var(--card-bg); color: var(--bb2-heading); border: 1px solid var(--bb2-outline); border-radius: 10px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.theme-toggle:hover, .hamburger:hover { background: var(--bb2-soft); }
.theme-toggle .bb2-icon-sun { display: none; }
body.dark-theme .theme-toggle .bb2-icon-sun { display: block; }
body.dark-theme .theme-toggle .bb2-icon-moon { display: none; }
.hamburger { display: none; flex-direction: column; gap: 4px; }
.hamburger .bar { width: 19px; height: 2px; display: block; border-radius: 4px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.hamburger.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Prominent support action: @Babai_net is a CONTACT, @babainet is the NEWS CHANNEL. */
.bb2-floating-telegram {
  position: fixed; right: 22px; bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1900; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 100px;
  border: 1px solid #006B2F; background: #006B2F; color: #fff;
  text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 800;
  box-shadow: 0 9px 28px rgba(0, 87, 39, .26);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bb2-floating-telegram:hover { background: #005525; box-shadow: 0 13px 34px rgba(0, 87, 39, .35); transform: translateY(-2px); }
.bb2-floating-telegram svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 650px) {
  .bb2-floating-telegram { min-height: 48px; font-size: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 0 16px; gap: 8px; }
  /* Real fixed top bar, independent of scroll position and screen orientation. */
  .header { position: fixed; top: max(8px, env(safe-area-inset-top)); z-index: 2000; }
}

/* HOMEPAGE */
.bb2-home { color: var(--text-color); }
.bb2-home h1, .bb2-home h2, .bb2-home h3, .bb2-home p { margin-top: 0; }
.bb2-hero { display: grid; grid-template-columns: 1fr .83fr; gap: 28px; align-items: center; border-radius: 22px; min-height: 395px; background: linear-gradient(115deg, #f3faf4 0%, #f7fbf7 53%, #e9f6ec 100%); overflow: hidden; border: 1px solid #e3eee4; padding: 36px 36px 32px 52px; }
.bb2-hero-copy { position: relative; z-index: 2; }
.bb2-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e1ede4; border-radius: 100px; font-size: 10px; font-weight: 700; color: #32674a; padding: 8px 13px; letter-spacing: .02em; white-space: nowrap; }
body.dark-theme .bb2-eyebrow { background: var(--card-bg); color: var(--primary-color); border-color: var(--border-color); }
.bb2-status-dot { width: 7px; height: 7px; background: #148b54; border-radius: 50%; }
.bb2-hero h1 { max-width: 650px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -.059em; font-weight: 800; color: #10251a; margin: 23px 0 17px; }
body.dark-theme .bb2-hero h1 { color: var(--primary-color); }
.bb2-hero h1 span { color: #006B2F; }
body.dark-theme .bb2-hero h1 span { color: #77e19f; }
.bb2-hero-lead { font-size: 15px; line-height: 1.8; max-width: 530px; color: #51695a; margin-bottom: 23px; }
body.dark-theme .bb2-hero-lead { color: var(--text-color); }
.bb2-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bb2-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; gap: 9px; min-height: 46px; padding: 11px 19px; border-radius: 10px; font-weight: 700; font-size: 12px; line-height: 1.35; transition: background .15s ease, transform .15s ease, border-color .15s ease; }
.bb2-button:hover { transform: translateY(-2px); }
.bb2-button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
.bb2-button-primary { background: #006B2F; color: #fff; }
.bb2-button-primary:hover { background: #005625; }
.bb2-button-secondary { border: 1px solid #b6d3bf; color: #185c34; background: rgba(255,255,255,.74); }
.bb2-button-secondary:hover { background: #fff; }
.bb2-cta-arrow { display: inline-block; margin-left: 3px; font-size: 15px; line-height: 1; }
.bb2-hero-helper { font-size: 11px; line-height: 1.55; color: #577462; margin: 12px 0 0 !important; max-width: 440px; }
body.dark-theme .bb2-hero-helper { color: var(--text-color); }
.bb2-hero-visual { min-width: 0; position: relative; width: 100%; min-height: 350px; display: flex; align-items: center; justify-content: center; }
.bb2-hero-visual-shine { position: absolute; height: 270px; width: 270px; border-radius: 50%; background: #d5f0da; filter: blur(52px); opacity: .5; }
.bb2-network-art { width: 100%; max-width: 445px; height: auto; position: relative; filter: drop-shadow(0 8px 25px rgba(20, 95, 51, .07)); }
.bb2-visual-top-tag { position: absolute; right: 10%; top: 1%; background: #fff; border: 1px solid #dbebdf; color: #296645; padding: 9px 12px; font-size: 10px; font-weight: 800; border-radius: 8px; box-shadow: 0 6px 16px rgba(21,77,40,.06); }
.bb2-visual-top-tag span { color: #1ca763; margin: 0 4px; }
.bb2-visual-bottom-tag { position: absolute; bottom: 2%; left: 1%; display: flex; flex-direction: column; gap: 4px; background: #fff; padding: 11px 15px; border: 1px solid #dbebdf; border-radius: 10px; box-shadow: 0 6px 20px rgba(21,77,40,.06); }
.bb2-visual-bottom-tag strong { font-size: 14px; color: #076837; }
.bb2-visual-bottom-tag small { font-size: 10px; color: #62756a; }
.bb2-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--bb2-outline); background: var(--card-bg); border-radius: 14px; margin: 16px 0 54px; padding: 18px 14px; }
.bb2-trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 8px 14px; border-right: 1px solid var(--bb2-outline); }
.bb2-trust-item:last-child { border-right: none; }
.bb2-trust-mark { display: grid; place-items: center; width: 39px; height: 39px; background: var(--accent-soft); color: var(--accent-color); border-radius: 10px; flex-shrink: 0; }
.bb2-trust-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bb2-trust-item div { display: flex; flex-direction: column; gap: 4px; }
.bb2-trust-item strong { font-size: 13px; color: var(--primary-color); }
.bb2-trust-item div span { font-size: 11px; color: var(--bb2-muted); }
.bb2-section { margin-bottom: 46px; }
.bb2-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.bb2-overline { font-size: 10px; font-weight: 800; color: var(--accent-color); letter-spacing: .13em; }
.bb2-section h2, .bb2-promo h2 { font-size: clamp(25px, 3.3vw, 32px); letter-spacing: -.048em; font-weight: 800; color: var(--primary-color); margin: 8px 0 7px; }
.bb2-section-heading p { margin: 0; color: var(--bb2-muted); font-size: 13px; line-height: 1.6; }
.bb2-text-link { font-size: 12px; font-weight: 700; color: var(--accent-color); text-decoration: none; white-space: nowrap; padding-bottom: 3px; }
.bb2-text-link:hover { text-decoration: underline; }
.bb2-tariff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bb2-plan { background: var(--card-bg); border: 1px solid var(--bb2-outline); border-radius: 16px; padding: 24px 24px 20px; display: flex; flex-direction: column; min-width: 0; transition: border .15s ease, box-shadow .15s ease; }
.bb2-plan:hover { border-color: #97c5a6; box-shadow: 0 10px 28px rgba(7, 77, 39, .065); }
.bb2-plan-featured { background: var(--bb2-soft); border-color: #7daf8d; }
.bb2-plan-top { display: flex; flex-direction: column; gap: 4px; }
.bb2-plan h3 { font-size: 17px; letter-spacing: -.025em; font-weight: 800; color: var(--primary-color); margin: 0; }
.bb2-plan-top span { font-size: 11px; color: var(--bb2-muted); }
.bb2-plan-speed { display: flex; align-items: baseline; gap: 7px; margin: 22px 0 4px; }
.bb2-plan-speed .bb2-speed-to { color: var(--bb2-muted); font-size: 15px; font-weight: 600; text-transform: lowercase; }
.bb2-plan-speed strong { color: var(--primary-color); font-size: 45px; line-height: 1; letter-spacing: -.065em; font-weight: 800; }
.bb2-plan-speed span { font-size: 14px; font-weight: 600; color: var(--bb2-muted); }
.bb2-plan-price { display: flex; align-items: baseline; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--bb2-outline); }
.bb2-plan-price strong { color: var(--accent-color); font-size: 21px; font-weight: 800; }
.bb2-plan-price span { font-size: 12px; color: var(--bb2-muted); }
/* Balanced promotional rows replacing tariff call buttons. */
.bb2-plan-offers { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bb2-plan-offer { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 11px; background: var(--bb2-soft); border: 1px solid var(--bb2-outline); }
.bb2-plan-offer-best { background: #e8f6eb; border-color: #b6dfc0; }
.bb2-plan-term, .bb2-plan-amount { display: flex; flex-direction: column; gap: 4px; }
.bb2-plan-term strong { color: var(--primary-color); font-size: 12px; font-weight: 800; white-space: nowrap; }
.bb2-plan-term span { color: #34744a; font-weight: 650; font-size: 10px; white-space: nowrap; }
.bb2-plan-amount { align-items: flex-end; text-align: right; }
.bb2-plan-amount strong { color: var(--primary-color); font-weight: 800; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bb2-plan-offer-best .bb2-plan-amount strong { color: #006B2F; }
.bb2-plan-amount del { color: var(--bb2-muted); font-size: 10px; white-space: nowrap; }
body.dark-theme .bb2-plan-offer-best { background: #143722; border-color: #3e8557; }
body.dark-theme .bb2-plan-term span { color: #98dfac; }
body.dark-theme .bb2-plan-offer-best .bb2-plan-amount strong { color: #9cf0b7; }
.bb2-small-note { font-size: 11px; line-height: 1.7; color: var(--bb2-muted); margin: 14px 0 0; }
.bb2-promo { background: linear-gradient(100deg, #eaf5ec 0%, #f7fbf7 100%); border: 1px solid #d9ebdc; border-radius: 16px; display: flex; align-items: center; gap: 22px; padding: 25px 29px; margin: 10px 0 54px; }
body.dark-theme .bb2-promo { background: var(--bb2-soft); border-color: var(--bb2-outline); }
.bb2-promo-icon { flex: 0 0 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: #d1e9d7; }
.bb2-promo-icon svg { width: 30px; height: 30px; fill: none; stroke: #006B2F; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bb2-promo-copy { flex: 1; }
.bb2-promo h2 { font-size: 23px; margin: 6px 0; }
.bb2-promo p { font-size: 12px; line-height: 1.7; max-width: 670px; margin: 0; }
.bb2-button-outline { background: var(--card-bg); color: var(--accent-color); border: 1px solid #b8d4c1; white-space: nowrap; }
.bb2-button-outline:hover { border-color: var(--accent-color); }
.bb2-utility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bb2-utility-card { background: var(--card-bg); border: 1px solid var(--bb2-outline); border-radius: 16px; padding: 22px; min-width: 0; }
.bb2-utility-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-color); font-size: 19px; font-weight: 800; margin-bottom: 15px; }
.bb2-utility-card h3 { font-size: 15px; color: var(--primary-color); margin: 0 0 8px; font-weight: 800; }
.bb2-utility-card p { font-size: 12px; line-height: 1.8; margin: 0 0 13px; min-height: 64px; }
.bb2-link-stack { border-top: 1px solid var(--bb2-outline); padding-top: 7px; display: flex; flex-direction: column; }
.bb2-link-stack a { display: flex; align-items: center; justify-content: space-between; text-decoration: none; padding: 8px 0; color: var(--accent-color); font-weight: 700; font-size: 12px; }
.bb2-link-stack a:hover { text-decoration: underline; }


/* Compact payment logo tiles: source images are the SAME banners as the live BABAI.NET site. */
.bb2-payment-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.bb2-payment-provider { background: #fff; border: 1px solid var(--bb2-outline); border-radius: 11px; min-height: 91px; padding: 11px 9px; display: flex; flex-direction: column; gap: 7px; align-items: center; justify-content: center; color: #155f31; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.bb2-payment-provider:hover { border-color: #5cb17a; box-shadow: 0 5px 16px rgba(8,69,27,.07); }
.bb2-payment-provider img { display: block; max-width: 100%; width: auto; height: 33px; object-fit: contain; }
.bb2-payment-fallback { display: none; color: #194e36; font-weight: 800; font-size: 16px; }
.bb2-payment-provider small { white-space: nowrap; font-size: 10px; font-weight: 700; color: #0b773f; }
body.dark-theme .bb2-payment-provider { background: #fff; }
.bb2-link-stack a b { font-weight: 800; color: var(--primary-color); }

/* FOOTER */
.bb2-footer { border-top: 1px solid var(--bb2-outline); background: var(--bb2-soft); margin-top: 26px; padding: 29px 24px 14px; }
.bb2-footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; width: min(100%, var(--bb2-max)); margin: 0 auto 23px; }
.bb2-footer-brand, .bb2-footer-contacts, .bb2-footer-socials { display: flex; flex-direction: column; gap: 9px; }
.bb2-footer-brand strong { color: var(--primary-color); font-size: 17px; }
.bb2-footer-brand span, .bb2-footer-contacts span { color: var(--bb2-muted); font-size: 12px; }
.bb2-footer-contacts a, .bb2-footer-socials a { font-size: 12px; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.bb2-footer-contacts a:hover, .bb2-footer-socials a:hover { color: var(--accent-color); }
.bb2-footer-bottom { width: min(100%, var(--bb2-max)); margin: 0 auto; border-top: 1px solid var(--bb2-outline); padding-top: 13px; color: var(--bb2-muted); font-size: 11px; }

/* Legacy compatibility hooks for existing pages which have their own embedded CSS */
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link { color: var(--text-color); display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 10px; text-decoration: none; }
.social-link svg { width: 21px; height: 21px; }

@media (max-width: 1160px) {
  .hamburger { display: flex; }
  .bb2-main-nav { display: none; position: absolute; z-index: 1; top: calc(100% + 9px); left: 0; right: 0; padding: 10px 12px 12px; border: 1px solid var(--bb2-outline); border-radius: 15px; background: var(--card-bg); box-shadow: 0 14px 30px rgba(12, 42, 21, .13); max-height: calc(100dvh - 110px); overflow-y: auto; }
  .bb2-main-nav.active { display: block; }
  .nav-list { display: flex; flex-direction: column; align-items: stretch; }
  .nav-list li { width: 100%; }
  .nav-list a { padding: 13px 15px; font-size: 14px; }
  .bb2-mobile-nav-extra { display: flex; flex-direction: column; padding-top: 8px; margin-top: 5px; border-top: 1px solid var(--bb2-outline); }
  .bb2-mobile-nav-extra a { color: var(--accent-color); font-size: 13px; font-weight: 700; text-decoration: none; padding: 11px 15px; }
}
@media (max-width: 850px) {
  body { padding-top: 83px; }
  .header { top: 8px; width: calc(100% - 26px); }
  .container { width: calc(100% - 26px); }
  .nav-container { min-height: 58px; padding: 8px 12px; }
  .site-logo { width: 145px; }
   .cabinet-text { display: none; }
  .btn-cabinet { width: 40px; padding: 0; justify-content: center; }
  .bb2-hero { padding: 30px 28px 24px; grid-template-columns: 1fr; gap: 10px; }
  .bb2-hero-copy { max-width: 660px; }
  .bb2-hero h1 { max-width: 620px; font-size: clamp(34px, 6vw, 48px); }
  .bb2-hero-visual { max-width: 450px; margin: 0 auto; min-height: 275px; }
  .bb2-network-art { max-width: 340px; }
  .bb2-visual-top-tag { right: 13%; }
  .bb2-visual-bottom-tag { left: 7%; }
  .bb2-tariff-grid { gap: 10px; }
  .bb2-plan { padding: 17px; }
  .bb2-plan-speed strong { font-size: 40px; }
  .bb2-plan-price strong { font-size: 18px; }
  .bb2-promo { flex-wrap: wrap; }
  .bb2-promo .bb2-button { margin-left: 86px; }
}
@media (max-width: 650px) {
  .main-content { padding-top: 8px; }
  .header-right { gap: 5px; }
  .site-logo { width: 125px; }
  .theme-toggle, .hamburger, .btn-cabinet { width: 38px; height: 38px; }
  .bb2-hero { border-radius: 16px; padding: 27px 21px 16px; }
  .bb2-eyebrow { font-size: 9px; padding: 7px 9px; }
  .bb2-hero h1 { font-size: clamp(31px, 9vw, 40px); line-height: 1.15; margin: 19px 0 12px; }
  .bb2-hero-lead { font-size: 13px; line-height: 1.7; }
  .bb2-hero-actions { flex-direction: column; }
  .bb2-button { width: 100%; font-size: 12px; }
  .bb2-hero-helper { font-size: 11px; }
  .bb2-hero-visual { min-height: 254px; }
  .bb2-network-art { max-width: 292px; }
  .bb2-visual-top-tag { top: 4%; right: 1%; }
  .bb2-visual-bottom-tag { bottom: 2%; left: 0%; }
  .bb2-trust { margin: 12px 0 40px; padding: 8px 13px; grid-template-columns: 1fr; }
  .bb2-trust-item { border-right: 0; border-bottom: 1px solid var(--bb2-outline); justify-content: flex-start; padding: 12px 5px; }
  .bb2-trust-item:last-child { border-bottom: none; }
  .bb2-section { margin-bottom: 37px; }
  .bb2-section-heading { flex-direction: column; align-items: flex-start; gap: 7px; margin-bottom: 16px; }
  .bb2-section-heading h2 { font-size: 27px; }
  .bb2-text-link { font-size: 12px; }
  .bb2-tariff-grid, .bb2-utility-grid { grid-template-columns: 1fr; gap: 12px; }
  .bb2-plan { padding: 21px; }
  .bb2-plan-speed { margin-top: 17px; }
  .bb2-plan-speed strong { font-size: 46px; }
  .bb2-promo { padding: 22px; gap: 14px; margin-bottom: 42px; }
  .bb2-promo-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .bb2-promo-icon svg { width: 25px; }
  .bb2-promo-copy { flex-basis: calc(100% - 62px); }
  .bb2-promo h2 { font-size: 19px; }
  .bb2-promo .bb2-button { margin-left: 0; }
  .bb2-utility-card p { min-height: 0; }
  .bb2-footer-inner { grid-template-columns: 1fr 1fr; }
  .bb2-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .site-logo { width: 104px; }
  .header-right { gap: 3px; }
  .header-right .btn-cabinet, .header-right .theme-toggle, .header-right .hamburger { width: 35px; height: 35px; }
  .bb2-eyebrow { white-space: normal; }
  .bb2-hero { padding: 23px 15px 14px; }
  .bb2-hero h1 { font-size: 30px; }
  .bb2-hero-visual { min-height: 225px; }
  .bb2-network-art { max-width: 255px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* BABAI.NET 2.5 — DAY & NIGHT art direction.
   Both images are graphic assets, never screenshots with embedded buttons/text.
   CSS swaps only the relevant image when the user changes theme.
*/
.bb2-hero {
  position: relative;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
  min-height: 510px;
  background: linear-gradient(110deg, #f9fdf9 0%, #f4faf5 54%, #eaf7ed 100%);
  border-color: #e0ece3;
}
body.dark-theme .bb2-hero {
  background: linear-gradient(112deg, #071810 0%, #0a2117 63%, #071912 100%);
  border-color: #28503b;
}
.bb2-hero-copy { position: relative; z-index: 3; }
.bb2-hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin: 0;
  isolation: isolate;
}
.bb2-hero-visual-shine, .bb2-network-art { display: none !important; }
.bb2-network-image {
  position: absolute;
  inset: -7% -11%;
  width: 122%;
  height: 114%;
  background-image: url('../images/gpon-network-day.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 60%, transparent 100%);
  pointer-events: none;
  user-select: none;
}
body.dark-theme .bb2-network-image {
  background-image: url('../images/gpon-network-night.webp');
  filter: brightness(.88) contrast(1.09) saturate(1.04);
}
.bb2-visual-top-tag, .bb2-visual-bottom-tag { z-index: 2; }
.bb2-visual-top-tag { right: 0; top: 0; }
.bb2-visual-bottom-tag { left: 1%; bottom: 0; }
body.dark-theme .bb2-visual-top-tag {
  color: #adf5c9; background: rgba(8, 37, 25, .88);
  border-color: rgba(105, 218, 150, .36); box-shadow: 0 5px 22px rgba(0,0,0,.18);
}
body.dark-theme .bb2-visual-bottom-tag {
  background: rgba(8, 34, 24, .90); border-color: rgba(112, 219, 157, .32);
  box-shadow: 0 9px 25px rgba(0,0,0,.16);
}
body.dark-theme .bb2-visual-bottom-tag strong { color: #b7f6cc; }
body.dark-theme .bb2-visual-bottom-tag small { color: #c1d8c9; }
body.dark-theme .bb2-hero h1 span { color: #71e8a2; }
body.dark-theme .bb2-hero-lead { color: #c5d8cc; }
body.dark-theme .bb2-button-primary { background: #079853; color: white; }
body.dark-theme .bb2-button-primary:hover { background: #0caf67; }
body.dark-theme .bb2-button-secondary {
  color: #e5faec; background: rgba(10, 35, 23, .66); border-color: #3c9e6c;
}
body.dark-theme .bb2-button-secondary:hover { background: #16432c; }
body.dark-theme .bb2-eyebrow { background: rgba(12, 42, 28, .77); border-color: #375a45; }
@media (max-width: 850px) {
  .bb2-hero { grid-template-columns: 1fr; min-height: 0; gap: 13px; }
  .bb2-hero-visual { width: min(100%, 490px); max-width: 490px; margin: 0 auto; min-height: 0; }
  .bb2-network-image { inset: -5% -8%; width: 116%; height: 110%; }
}
@media (max-width: 650px) {
  .bb2-hero-visual { width: 100%; min-height: 0; }
  .bb2-network-image { inset: -5% -7%; width: 114%; height: 110%; }
  .bb2-visual-top-tag { right: 0; top: 0; }
  .bb2-visual-bottom-tag { left: 0; bottom: 0; }
}
@media (max-width: 380px) {
  .bb2-visual-bottom-tag { padding: 8px 10px; }
  .bb2-visual-bottom-tag strong { font-size: 12px; }
}

/* BABAI.NET 2.4.1 — copy refresh: 2006 heritage + blackout resilience. */
.bb2-hero-uptime {
  display: flex; align-items: center; gap: 12px;
  max-width: 515px; margin: -4px 0 20px; padding: 11px 13px;
  border: 1px solid #cbe3d2; border-radius: 12px;
  background: rgba(255,255,255,.62);
}
.bb2-hero-uptime-icon {
  flex: 0 0 36px; height: 36px; display: grid; place-items: center;
  background: #e7f5ea; border-radius: 9px; color: #007439;
}
.bb2-hero-uptime-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.bb2-hero-uptime-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bb2-hero-uptime-copy strong { font-size: 12px; color: #0a572c; line-height: 1.3; font-weight: 800; }
.bb2-hero-uptime-copy small { font-size: 11px; color: #426a51; line-height: 1.45; }
@media (max-width: 650px) {
  .bb2-hero-uptime { padding: 10px 11px; margin: -2px 0 18px; }
  .bb2-hero-uptime-copy strong { font-size: 12px; }
}

/* Keep the heritage date on a separate line in the hero heading. */
.bb2-hero h1 span { display: block; }

/* Dark supporting surfaces remain visually separate from the page. */
body.dark-theme .bb2-trust { background: #0d261b; }
body.dark-theme .bb2-footer { background: #0b2017; }
body.dark-theme .bb2-floating-telegram { box-shadow: 0 9px 28px rgba(0, 0, 0, .34); }

/* BABAI.NET 2.5.2 — recognizable branded links and contacts. Local SVGs, no CDN. */
.bb2-brand-icon { display:inline-block; flex:0 0 auto; width:25px; height:25px; border-radius:8px; background-repeat:no-repeat; background-position:center; background-size:contain; vertical-align:middle; }
.bb2-brand-icon--telegram { background-image:url('../images/brands/telegram.svg'); }
.bb2-brand-icon--viber { background-image:url('../images/brands/viber.svg'); }
.bb2-brand-icon--vodafone { background-image:url('../images/brands/vodafone.svg'); }
.bb2-brand-icon--kyivstar { background-image:url('../images/brands/kyivstar.svg'); }
.bb2-footer-contacts a, .bb2-footer-socials a { display:inline-flex; align-items:center; gap:9px; width:fit-content; max-width:100%; min-height:33px; border-radius:9px; }
.bb2-footer-socials a { border:1px solid var(--bb2-outline); background:var(--card-bg); padding:5px 11px 5px 5px; transition:border-color .15s ease, background .15s ease; }
.bb2-footer-socials a:hover { border-color:var(--accent-color); background:var(--accent-soft); text-decoration:none; }
.bb2-footer .bb2-brand-icon { width:27px; height:27px; }
.bb2-footer-contacts .bb2-brand-icon { width:23px; height:23px; }
.bb2-brand-link-label { white-space:normal; }
.bb2-link-stack .bb2-brand-inline { display:inline-flex; align-items:center; gap:7px; }
.bb2-link-stack .bb2-brand-icon { width:22px; height:22px; }
.bb2-link-stack .bb2-brand-icon + span { display:inline-block; }
.bb2-link-stack .bb2-brand-inline b { color:var(--primary-color); }
@media(max-width:650px){.bb2-footer-socials a { width:fit-content; }}

/* BABAI.NET 2.8 / 2.9 — blackout emphasis in dark mode. */
body.dark-theme .bb2-hero-uptime {
  background: #0b3a29;
  border: 1px solid #15c977;
  box-shadow: 0 0 0 1px rgba(21, 201, 119, .09);
}
body.dark-theme .bb2-hero-uptime-icon {
  color: #b9ffda;
  background: #09613c;
}
body.dark-theme .bb2-hero-uptime-copy strong {
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}
body.dark-theme .bb2-hero-uptime-copy small {
  color: #d9f4e2;
  font-size: 12px;
}
@media (max-width: 480px) {
  body.dark-theme .bb2-hero-uptime-copy strong { font-size: 12px; }
  body.dark-theme .bb2-hero-uptime-copy small { font-size: 11px; }
}


/* BABAI.NET 2.8.2 — entrance to the subscriber help center */
.bb2-bottom-section .bb2-link-stack .bb2-help-link {
  gap: 12px;
  border: 1px solid var(--bb2-outline);
  background: var(--accent-soft);
  border-radius: 11px;
  padding: 10px 12px;
  margin: 5px 0 7px;
  color: var(--accent-color);
  transition: border-color .2s ease, background-color .2s ease;
}
.bb2-bottom-section .bb2-link-stack .bb2-help-link:hover {
  border-color: var(--accent-color);
  text-decoration: none;
}
.bb2-help-link-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bb2-help-link-symbol {
  display: grid; place-items: center; flex: 0 0 28px;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-color); color: var(--card-bg);
  font-size: 16px; font-weight: 800;
}
.bb2-help-link-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bb2-help-link-copy strong { color: var(--primary-color); font-size: 12px; line-height: 1.25; font-weight: 800; }
.bb2-help-link-copy small { color: var(--text-color); font-size: 10px; line-height: 1.4; font-weight: 500; }
body.dark-theme .bb2-help-link-symbol { color: #102319; }
@media(max-width:380px) {
  .bb2-bottom-section .bb2-link-stack .bb2-help-link { padding: 9px; }
  .bb2-help-link-left { gap: 7px; }
}
