/* ============================================================
   ЭНЕРГОБАЛАНС · АБХАЗИЯ — тема поверх style.css
   Палитра из нового логотипа и флага Абхазии:
   зелёный #47853E, красный #C8312C, синий #264373, золото #E8B020
   ============================================================ */

:root {
  --primary:       #3E7F37;
  --primary-dark:  #2F6529;
  --primary-light: #4F9446;
  --secondary:     #264373;
  --secondary-dark:#1B3157;
  --accent:        #E8B020;
  --accent-dark:   #C9930F;
  --dark:          #1E355C;
  --flag-green:    #47853E;
  --flag-red:      #C8312C;
  --sea:           #2F78B0;
  --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}
body { background: #f4f6f1; }

/* ── Тонкая лента-флаг под верхней панелью ── */
.flag-ribbon {
  height: 6px;
  background-image:
    linear-gradient(90deg, var(--flag-red) 0 120px, transparent 120px),
    linear-gradient(180deg, var(--flag-green) 0 2px, #fff 2px 4px, var(--flag-green) 4px 6px);
}

/* ── Верхняя панель: город + язык ── */
.top-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-city {
  display: inline-flex; align-items: center; gap: 5px; border: none; background: #fff;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px 3px 8px;
  font: 700 12.5px var(--font); color: var(--dark); cursor: pointer; white-space: nowrap;
}
.top-city svg { color: var(--flag-red); }
.top-city:hover { border-color: var(--primary); color: var(--primary); }
.top-right { align-items: center; }

/* ── Переключатель языка ── */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 11px; font: 700 12.5px var(--font); color: var(--dark);
}
.lang-btn:hover, .lang-switch.open .lang-btn { border-color: var(--primary); color: var(--primary); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-btn-short { display: none; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10100; min-width: 160px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 6px;
  box-shadow: 0 16px 40px rgba(30,53,92,.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .15s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: block; width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  padding: 9px 12px; border-radius: 8px; font: 600 14px var(--font); color: var(--dark);
}
.lang-menu button:hover { background: #eef5ec; }
.lang-menu button.active { background: var(--primary); color: #fff; }
.lang-mobile { display: none; }

/* ── Логотип ── */
.logo img { height: 60px; min-width: 0; }

/* ============================================================
   ГЕРОЙ
   ============================================================ */
.ab-hero {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start;
  padding: 34px 36px 120px;
  background: linear-gradient(170deg, #1B3157 0%, #264373 42%, #2b6a76 78%, #2F78B0 100%);
}
.ab-hero-scene { position: absolute; inset: 0; pointer-events: none; }
.ab-sun {
  position: absolute; right: 43%; top: 22px; width: 88px; height: 88px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer; pointer-events: auto;
  background: radial-gradient(circle at 40% 40%, #ffe48a, #F2B531 55%, #e8901c);
  box-shadow: 0 0 0 14px rgba(242,181,49,.12), 0 0 0 32px rgba(242,181,49,.06), 0 0 90px 30px rgba(242,181,49,.35);
  animation: sunGlow 6s ease-in-out infinite;
}
.ab-sun i {
  position: absolute; inset: -34px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,214,102,.35) 0 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 52px, #000 53px, #000 78px, transparent 79px);
          mask: radial-gradient(circle, transparent 52px, #000 53px, #000 78px, transparent 79px);
  animation: spin 40s linear infinite;
}
.ab-sun.pulse { animation: sunPulse .35s ease-out; }
@keyframes sunGlow { 50% { box-shadow: 0 0 0 18px rgba(242,181,49,.14), 0 0 0 40px rgba(242,181,49,.06), 0 0 110px 40px rgba(242,181,49,.42); } }
@keyframes sunPulse { 50% { transform: scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
.ab-mountains { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: 150px; }
.ab-sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: 48px;
  background: linear-gradient(180deg, rgba(47,120,176,.6), #1f5f92);
}
.ab-sea i {
  position: absolute; left: 0; top: -8px; width: 200%; height: 16px;
  background: radial-gradient(circle at 20px -6px, transparent 16px, rgba(255,255,255,.22) 17px, transparent 19px) 0 0 / 40px 16px repeat-x;
  animation: waves 9s linear infinite;
}
.ab-sea i + i { top: 10px; opacity: .6; animation-duration: 14s; animation-direction: reverse; }
@keyframes waves { to { transform: translateX(-50%); } }

.ab-hero-info { position: relative; z-index: 1; min-width: 0; }
.ab-hero-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.ab-hero h1 { font-size: 36px; font-weight: 900; line-height: 1.12; letter-spacing: -.5px; margin-bottom: 12px; }
.ab-hero h1 span { color: var(--accent); }
.ab-hero-lead { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.88); margin-bottom: 16px; max-width: 560px; }
.ab-hero .lead-hero-benefits { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.ab-hero .lead-hero-benefits li { position: relative; padding-left: 26px; font-size: 14px; color: rgba(255,255,255,.95); line-height: 1.4; }
.ab-hero .lead-hero-benefits li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.ab-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lead-call { display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 10px 16px; transition: .15s; }
.lead-call:hover { background: rgba(255,255,255,.17); text-decoration: none; }
.lead-call-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #1a1a1a; display: flex; align-items: center; justify-content: center; }
.lead-call-ico svg { width: 22px; height: 22px; }
.lead-call-txt b { display: block; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .3px; line-height: 1.1; }
.lead-call-txt small { display: block; color: rgba(255,255,255,.72); font-size: 12px; margin-top: 2px; }
.ab-city-chip {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.45); border-radius: 12px;
  padding: 10px 16px; color: #fff; font-family: var(--font); transition: .15s;
}
.ab-city-chip:hover { background: rgba(255,255,255,.17); border-style: solid; }
.ab-city-chip > span:first-child { font-size: 22px; }
.ab-city-chip small { display: block; font-size: 11.5px; color: rgba(255,255,255,.72); }
.ab-city-chip b { display: block; font-size: 17px; font-weight: 800; }

/* Форма в герое */
.ab-hero .lead-form { position: relative; z-index: 1; background: #fff; border-radius: 16px; padding: 24px 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28); color: var(--text); border-top: 5px solid var(--flag-green); }
.ab-hero .lead-form::before { content: ''; position: absolute; left: 0; top: -5px; width: 64px; height: 5px; background: var(--flag-red); border-top-left-radius: 16px; }
.lead-form-badge { display: inline-block; background: #eef5ec; color: var(--primary); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px; border-radius: 20px; margin-bottom: 12px; }
.lead-form-title { font-size: 20px; font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 6px; }
.lead-form-sub { font-size: 13px; color: var(--text-light); line-height: 1.55; margin-bottom: 16px; }
.lead-form-fields { display: flex; flex-direction: column; gap: 10px; }
.lead-form input { width: 100%; border: 1.5px solid var(--border); border-radius: 9px; padding: 13px 14px; font-size: 16px; font-family: var(--font); background: #fff; }
.lead-form input:focus { outline: none; border-color: var(--primary); }
.lead-form-submit { width: 100%; border: none; border-radius: 9px; padding: 14px; font-size: 16px; font-weight: 800; font-family: var(--font);
  color: #fff; background: var(--primary); cursor: pointer; transition: .15s; }
.lead-form-submit:hover { background: var(--primary-dark); }
.lead-form-submit:disabled { opacity: .6; cursor: default; }
.lead-form-note { font-size: 11px; color: var(--gray); line-height: 1.45; text-align: center; }
.lead-form-note a { color: var(--text-light); }
.lead-form-success { text-align: center; padding: 14px 4px; }
.lead-form-check { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.lead-form-success b { display: block; font-size: 18px; color: var(--dark); margin-bottom: 6px; }
.lead-form-success span { display: block; font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* ── Развевающийся флаг ── */
.wflag-wrap { position: relative; flex-shrink: 0; width: 150px; padding-left: 8px; padding-top: 4px; }
.wflag-pole {
  position: absolute; left: 0; top: -6px; width: 5px; height: 92px; border-radius: 3px;
  background: linear-gradient(90deg, #c9c9c9, #fff 45%, #9a9a9a);
}
.wflag-pole::before { content: ''; position: absolute; left: -3px; top: -8px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2b3, var(--accent)); }
.wflag { position: relative; width: 142px; height: 71px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.wflag-cloth { position: absolute; inset: 0; }
.wflag-cloth span {
  position: absolute; top: 0; height: 100%; background-repeat: no-repeat;
  animation: flagWave 1.6s ease-in-out infinite alternate; will-change: transform;
}
@keyframes flagWave {
  from { transform: translateY(calc(var(--a) * -1)); filter: brightness(1.08); }
  to   { transform: translateY(var(--a)); filter: brightness(.84); }
}
.wflag-hand { position: absolute; left: 4%; top: 2%; width: 34%; height: 40%; border: none; background: transparent; cursor: help; border-radius: 4px; }
.wflag-hand:focus-visible { outline: 2px solid var(--accent); }

.ab-hello { min-width: 0; }
.ab-hello-text { display: block; font-size: 27px; font-weight: 900; color: var(--accent); line-height: 1.15; min-height: 1.15em; }
.ab-hello-text.in { animation: helloIn .5s ease-out both; }
@keyframes helloIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ab-hello small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 700; }

/* ── Полоса доверия ── */
.ab-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ab-strip-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.ab-strip-ico { font-size: 26px; flex-shrink: 0; }
.ab-strip-item b { display: block; font-size: 14px; color: var(--dark); line-height: 1.25; }
.ab-strip-item small { display: block; font-size: 12px; color: var(--text-light); line-height: 1.35; margin-top: 2px; }

/* ── Промо ── */
.promo-red { background: linear-gradient(180deg, #fbe9e7 0%, #ffffff 62%); }
.promo-red .promo-tag { color: var(--flag-red); }
.promo-green .promo-tag { color: var(--primary); }

/* ── Баннер «свет при отключениях» ── */
.outage-banner { background: linear-gradient(135deg, #f6f9f4 0%, #eaf2e7 100%); border-color: #d7e5d2; }
.outage-banner .badge { color: var(--flag-red); }
.outage-banner .title { color: var(--dark); }
.outage-banner .title span { color: var(--primary); }
.outage-banner .cta { background: linear-gradient(180deg, var(--primary-light), var(--primary-dark)); box-shadow: 0 12px 30px rgba(62,127,55,.25); }
.outage-card {
  position: absolute; left: clamp(-56px, -3.6vw, -28px); top: 50%; transform: translateY(-50%); z-index: 5;
  width: clamp(190px, 15vw, 220px); background: #fff; border-radius: 18px; padding: 16px 16px 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.16); font-size: 13px; color: var(--text);
}
.oc-title { font-weight: 800; color: var(--dark); margin-bottom: 10px; font-size: 13.5px; }
.oc-row { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: center; margin-bottom: 8px; line-height: 1.25; }
.oc-row b { grid-column: 2; font-size: 13px; }
.oc-dot { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; align-self: start; margin-top: 3px; }
.oc-off .oc-dot { background: var(--flag-red); }
.oc-off b { color: var(--flag-red); }
.oc-on .oc-dot { background: #2fb34a; box-shadow: 0 0 0 0 rgba(47,179,74,.6); animation: dotPulse 1.8s infinite; }
.oc-on b { color: #24913b; }
@keyframes dotPulse { 70% { box-shadow: 0 0 0 8px rgba(47,179,74,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,74,0); } }
.oc-batt { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.oc-batt-bar { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: #e8eee6; overflow: hidden; }
.oc-batt-bar i { display: block; height: 100%; width: 87%; border-radius: 6px; background: linear-gradient(90deg, var(--primary-light), #74c063); animation: battFill 4s ease-in-out infinite alternate; }
@keyframes battFill { from { width: 70%; } to { width: 92%; } }
.oc-batt-pct { color: var(--primary); grid-row: 1; grid-column: 2; }

/* ── Примеры решений ── */
.ready-note { margin: -4px 0 14px; font-size: 13.5px; color: var(--text-light); max-width: 760px; }
.ready-section > .section-heading { margin-bottom: 8px; }
.badge-stock.on-order { color: var(--secondary); background: #eaf0f8; font-weight: 600; border-radius: 6px; padding: 3px 8px; display: inline-block; font-size: 12px; line-height: 1.3; }
.product-stock.order { color: var(--secondary); background: #eaf0f8; border-radius: 8px; padding: 8px 12px; display: inline-block; font-weight: 600; }

/* ── Карта Абхазии (реальный контур, OpenStreetMap) ── */
.abmap-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 0; align-items: stretch;
  background: linear-gradient(160deg, #1B3157, #264373); border-radius: 22px; overflow: hidden; color: #fff;
  box-shadow: 0 20px 50px rgba(27,49,87,.18); }
.abmap-info { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.abmap-info::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--flag-red) 0 64px, var(--flag-green) 64px); }
.abmap-eyebrow { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); background: rgba(232,176,32,.12); border-radius: 999px; padding: 5px 12px; }
.abmap-info h2 { font-size: 30px; font-weight: 900; line-height: 1.12; margin: 14px 0 10px; color: #fff; }
.abmap-info > p { color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.abmap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.abmap-chips button { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff;
  border-radius: 999px; padding: 7px 14px; font: 600 13.5px var(--font); cursor: pointer; transition: .15s; }
.abmap-chips button:hover, .abmap-chips button.hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.abmap-chips button.active { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }
.abmap-selected { display: flex; align-items: center; gap: 12px; margin-top: 20px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; }
.abmap-selected[hidden] { display: none; }
.abmap-selected-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
.abmap-selected b { display: block; font-size: 15px; }
.abmap-selected small { display: block; font-size: 12.5px; color: rgba(255,255,255,.72); }
.abmap-wrap { position: relative; min-width: 0; }
.abmap { display: block; width: 100%; height: 100%; font-family: var(--font); }
.abmap-note { position: absolute; right: 10px; bottom: 6px; font-size: 10px; color: rgba(255,255,255,.4); }
.abmap .abmap-sea-label { font-size: 30px; font-weight: 700; font-style: italic; letter-spacing: 6px; fill: rgba(255,255,255,.28); }
.abmap .abmap-mtn-label { font-size: 15px; font-weight: 800; letter-spacing: 5px; text-transform: uppercase; fill: #3d5f38; opacity: .75; }
.abmap .abmap-compass text { font-size: 13px; font-weight: 800; fill: rgba(255,255,255,.6); }
.abmap-ritsa { cursor: pointer; }
.abmap-ritsa text { font-size: 15px; font-weight: 700; fill: #1f5f7c; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 4px; }
.abmap-city { cursor: pointer; outline: none; }
.abmap-city .pin { fill: var(--flag-red); stroke: #fff; stroke-width: 3; transition: transform .2s; }
.abmap-city .pin-halo { fill: rgba(200,49,44,.25); opacity: 0; transition: opacity .2s; }
.abmap-city .pin-star { fill: #fff; pointer-events: none; }
.abmap-capital .pin { fill: var(--flag-red); }
.abmap-city .lbl rect { fill: rgba(255,255,255,.95); filter: drop-shadow(0 3px 6px rgba(6,24,47,.3)); transition: fill .2s; }
.abmap-city .lbl text { font-size: 16px; font-weight: 700; fill: var(--dark); transition: fill .2s; }
.abmap-capital .lbl text { font-size: 18px; font-weight: 800; }
.abmap-city:hover .pin, .abmap-city.hover .pin, .abmap-city:focus-visible .pin { transform: scale(1.25); }
.abmap-city:hover .pin-halo, .abmap-city.hover .pin-halo, .abmap-city:focus-visible .pin-halo { opacity: 1; }
.abmap-city:hover .lbl rect, .abmap-city.hover .lbl rect, .abmap-city:focus-visible .lbl rect { fill: #fff8e1; }
.abmap-city.active .pin { fill: var(--accent); stroke: var(--dark); }
.abmap-city.active .pin-halo { opacity: 1; fill: rgba(232,176,32,.35); animation: cityPing 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.abmap-city.active .lbl rect { fill: var(--accent); }
.abmap-city.active .lbl text { fill: #1a1a1a; }
@keyframes cityPing { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ── Пустая категория ── */
.empty-cat-wrap { display: block; }
.empty-cat { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px 28px; text-align: center; max-width: 640px; margin: 8px auto; }
.empty-cat-art { display: flex; justify-content: center; margin-bottom: 8px; }
.empty-cat h2 { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.empty-cat p { color: var(--text-light); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.empty-cat-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Оплата (вместо Я.Сплит) ── */
.pay-mini { margin-top: 12px; background: #f3f7f1; border: 1px solid #dbe8d6; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--text); line-height: 1.45; }

/* ── Подвал ── */
.site-footer { position: relative; border-top: 6px solid var(--flag-green); }
.site-footer::before { content: ''; position: absolute; left: 0; top: -6px; width: 120px; height: 6px; background: var(--flag-red); }
.footer-sun-clock { max-width: 1240px; margin: -12px auto 24px; padding: 0 20px; }
.footer-sun-clock span { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; color: rgba(255,255,255,.85); }
.footer-sun-clock b { color: var(--accent); }
.footer-logo { width: 150px; height: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 12px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-langs button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: rgba(255,255,255,.75);
  border-radius: 999px; padding: 4px 11px; font: 600 12.5px var(--font); cursor: pointer; }
.footer-langs button:hover { color: #fff; border-color: #fff; }
.footer-langs button.active { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.footer-love { color: rgba(255,255,255,.7); }
.footer-mandarin { border: none; background: none; cursor: pointer; font-size: 15px; padding: 0 2px; transition: transform .2s; }
.footer-mandarin:hover { transform: rotate(-20deg) scale(1.25); }

/* ── «Ваш город — Сухум?» ── */
.city-ask {
  position: fixed; left: 20px; bottom: 20px; z-index: 10040; max-width: 340px;
  display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(30,53,92,.25); border-left: 5px solid var(--flag-green);
  transform: translateY(20px); opacity: 0; transition: .3s;
}
.city-ask.show { transform: none; opacity: 1; }
.city-ask-pin { font-size: 26px; line-height: 1; }
.city-ask-q { font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.city-ask-q b { color: var(--flag-red); }
.city-ask-hint { font-size: 12.5px; color: var(--text-light); margin: 4px 0 12px; line-height: 1.4; }
.city-ask-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.city-ask-btns button { border: none; border-radius: 9px; padding: 9px 16px; font: 700 14px var(--font); cursor: pointer; }
.city-yes { background: var(--primary); color: #fff; }
.city-yes:hover { background: var(--primary-dark); }
.city-other { background: #eef2f6; color: var(--dark); }
.city-other:hover { background: #e2e8ef; }
.city-ask-x { position: absolute; right: 8px; top: 4px; border: none; background: none; font-size: 22px; color: var(--gray); cursor: pointer; }

.city-picker { position: fixed; inset: 0; z-index: 10200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.city-picker-bg { position: absolute; inset: 0; background: rgba(17,28,48,.55); }
.city-picker-win { position: relative; background: #fff; border-radius: 20px; padding: 26px; width: 100%; max-width: 520px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: helloIn .25s ease-out; max-height: calc(100vh - 32px); overflow: auto; }
.city-picker-flag { width: 64px; height: 32px; border-radius: 4px; background-size: cover; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.city-picker-win h3 { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.city-picker-win > p { font-size: 13.5px; color: var(--text-light); margin-bottom: 16px; }
.city-picker-x { position: absolute; right: 12px; top: 8px; border: none; background: none; font-size: 28px; color: var(--gray); cursor: pointer; }
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.city-grid button { text-align: left; border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-family: var(--font); transition: .15s; }
.city-grid button:hover, .city-grid button:focus-visible { border-color: var(--primary); background: #f3f8f1; outline: none; }
.city-grid button.active { border-color: var(--primary); background: var(--primary); }
.city-grid button.active b, .city-grid button.active small { color: #fff; }
.city-grid b { display: block; font-size: 14.5px; color: var(--dark); }
.city-grid small { display: block; font-size: 12px; color: var(--gray); margin-top: 1px; }

/* ── Тост ── */
.ab-toast {
  position: fixed; left: 50%; top: 18px; z-index: 10300; transform: translate(-50%, -140%);
  max-width: min(560px, calc(100vw - 32px)); background: var(--dark); color: #fff; border-radius: 14px;
  padding: 12px 18px; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.3); border-bottom: 4px solid var(--flag-green); transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
}
.ab-toast.show { transform: translate(-50%, 0); }

/* ── Праздничная лента ── */
.holiday-bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(90deg, var(--flag-red), #a8251f 30%, var(--flag-green) 70%, #3a7033);
  color: #fff; font-size: 13.5px; font-weight: 700; padding: 8px 44px 8px 16px; text-align: center; }
.holiday-bar button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: none; background: none; color: #fff; font-size: 20px; cursor: pointer; }

/* ── Пасхалки ── */
.mandarin-rain { position: fixed; inset: 0; pointer-events: none; z-index: 10250; overflow: hidden; }
.mandarin-rain span { position: absolute; top: -60px; animation: mandarinFall linear forwards; }
@keyframes mandarinFall { to { transform: translateY(calc(100vh + 80px)) rotate(var(--r)); } }
.fly-star { position: fixed; z-index: 10260; color: #fff3b0; font-size: 22px; pointer-events: none; text-shadow: 0 0 10px #ffd34d;
  animation: starFly 1.2s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes starFly { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 15% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1); opacity: .2; } }
html.longevity body { zoom: 1.12; }
html.longevity #site-logo { position: relative; }
html.longevity #site-logo::after { content: '👴'; position: absolute; right: -14px; top: -6px; font-size: 22px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .ab-strip { grid-template-columns: repeat(2, 1fr); }
  .ab-sun { right: 8%; top: 14px; width: 64px; height: 64px; }
}
@media (max-width: 900px) {
  .lang-mobile { display: block; order: 3; margin-left: auto; }
  .lang-mobile .lang-btn { padding: 5px 9px; }
  .lang-mobile .lang-btn-full { display: none; }
  .lang-mobile .lang-btn-short { display: inline; }
  .header-phone { margin-left: 0 !important; }
  .abmap-section { grid-template-columns: 1fr; }
  .abmap-info { padding: 26px 20px 20px; }
  .abmap-info h2 { font-size: 24px; }
  .abmap-city .lbl text { font-size: 26px; }
  .abmap-capital .lbl text { font-size: 28px; }
  .outage-card { display: none; }
  .city-ask { left: 12px; right: 12px; bottom: 76px; max-width: none; }
}
@media (max-width: 768px) {
  .ab-hero { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px 96px; border-radius: 16px; }
  .ab-hero h1 { font-size: 26px; }
  .ab-hero-lead { font-size: 14px; }
  .ab-hero-top { gap: 14px; }
  .wflag-wrap { width: 112px; }
  .wflag { width: 104px; height: 52px; }
  .wflag-pole { height: 70px; }
  .ab-hello-text { font-size: 21px; }
  .ab-hero-actions > * { flex: 1 1 100%; }
  .lead-call { justify-content: center; }
  .ab-mountains { height: 100px; }
  .ab-sun { top: auto; bottom: 92px; right: 18px; width: 56px; height: 56px; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ab-strip { grid-template-columns: 1fr; }
  .ab-sun { width: 48px; height: 48px; right: 6%; }
  .ab-sun i { display: none; }
  .ab-hello small { letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) {
  .wflag-cloth span, .ab-sun, .ab-sun i, .ab-sea i, .oc-batt-bar i, .oc-on .oc-dot, .abmap-city.active circle { animation: none !important; }
}

.catalog-toolbar:empty { display: none; }

/* ============================================================
   МНОГОЯЗЫЧНОСТЬ: вёрстка не должна ломаться от длинных переводов
   (армянский, турецкий и английский заметно длиннее русского)
   ============================================================ */
h1, h2, h3, h4, .promo-card p, .why-feature p, .cat-card-text h3 { overflow-wrap: break-word; hyphens: auto; }

/* Верхняя панель — всегда одна строка: длинный текст обрезается, лишние ссылки прячутся */
.top-bar-inner { flex-wrap: nowrap; }
.top-left { flex: 1 1 auto; min-width: 0; }
.top-geo { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; gap: 18px; }
@media (max-width: 1280px) { .top-right { gap: 14px; } }
@media (max-width: 1200px) { .top-geo { display: none; } }
@media (max-width: 1100px) { .top-right .top-social { display: none; } }
@media (max-width: 1000px) { .top-right .top-about { display: none; } }

/* Шапка: кнопка каталога и телефон не переносятся */
.catalog-btn span, .header-phone-txt b, .header-phone-txt small { white-space: nowrap; }
.mob-nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Промо-плитки: текст сверху, картинка и ссылка — снизу, без наложения */
.promo-card { display: flex; flex-direction: column; min-height: 0; padding: 20px 20px 132px; }
.promo-card h3 { max-width: 100%; }
.promo-card p { max-width: 100%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.promo-img { height: 112px; max-width: 58%; right: 10px; bottom: 10px; }
.promo-go { bottom: 18px; max-width: 40%; }
@media (max-width: 600px) {
  .promo-grid { grid-template-columns: 1fr; gap: 10px; }
  .promo-card { padding: 16px 44% 16px 16px; min-height: 132px; border-radius: 14px; }
  .promo-card h3 { font-size: 16px; }
  .promo-card p { font-size: 12.5px; max-width: 100%; }
  .promo-img { height: 96px; max-width: 40%; right: 10px; bottom: 50%; transform: translateY(50%); }
  .promo-go { position: static; display: inline-block; margin-top: 10px; max-width: none; }
}

/* Баннер «Отключения»: на телефоне — в одну колонку, фото сверху */
@media (max-width: 640px) {
  .outage-banner { grid-template-columns: 1fr; }
  .outage-banner .banner-visual { order: -1; }
  .outage-banner .visual-frame { height: 170px; min-height: 0; }
  .outage-banner .banner-content { padding: 18px 16px 20px; }
  .outage-banner .title { font-size: 21px; }
  .outage-banner .text { font-size: 13.5px; }
}

/* Герой: длинные заголовки уменьшаются плавно */
.ab-hero h1 { font-size: clamp(26px, 2.9vw, 36px); }
html[lang="tr"] .ab-hero h1 { font-size: clamp(24px, 2.6vw, 33px); }
.ab-hello-text { overflow-wrap: anywhere; }

/* Полоса доверия и «почему мы»: на средних экранах текст не сжимается в столбик */
@media (min-width: 1025px) and (max-width: 1200px) {
  .ab-strip-ico { font-size: 22px; }
  .ab-strip-item { padding: 12px; gap: 10px; }
}
.ready-note { overflow-wrap: break-word; }
@media (min-width: 901px) and (max-width: 1200px) { .why-features { grid-template-columns: repeat(2, 1fr); } }
.brand-chip { min-width: 0; overflow: hidden; }
.brand-text { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(11px, 3.2vw, 15px); }
.ab-hello-text { text-shadow: 0 2px 12px rgba(27,49,87,.85), 0 0 2px rgba(27,49,87,.6); position: relative; z-index: 2; }
.abmap .abmap-mtn-label { letter-spacing: 3px; }

/* ── Соцсети: YouTube / Instagram / Telegram ── */
.social-links { display: flex; align-items: center; gap: 8px; }
.social-links .soc { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  color: #fff; margin: 0; transition: transform .15s ease, box-shadow .15s ease; }
.social-links .soc svg { width: 16px; height: 16px; }
.social-links .soc:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.18); text-decoration: none; color: #fff; }
.soc-yt { background: #FF0000; }
.soc-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.soc-tg { background: #229ED9; }
.top-right .social-links .soc { color: #fff; }
.footer-social { gap: 10px; }
.footer-social .soc { width: 42px; height: 42px; }
.footer-social .soc svg { width: 21px; height: 21px; }
.footer-col .footer-social a { margin-bottom: 0; color: #fff; }

/* Адрес офиса в подвале */
.footer-col .footer-addr { display: flex; gap: 8px; align-items: flex-start; color: rgba(255,255,255,.85); line-height: 1.45; margin-bottom: 10px; }
.footer-addr svg { flex: none; margin-top: 2px; color: var(--accent); }
.footer-addr small { display: block; color: rgba(255,255,255,.55); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col .footer-phone { font-size: 16px; font-weight: 700; color: #fff; }
.about-social { margin-top: 6px; }
