/* =========================================================
   Zaza Computer — clean rebuild
   Dark theme, accent green, Bitter (headings) + Lato (body)
   ========================================================= */

:root {
  --bg:          #161616;
  --bg-elev:     #212121;
  --bg-elev-2:   #2a2a2a;
  --border:      rgba(255,255,255,0.10);
  --text:        #f3f3f3;
  --text-dim:    #a4a4a4;
  --text-muted:  #777;
  --accent:      #00ff00;
  --accent-soft: rgba(0,255,0,0.12);
  --accent-hov:  #33ff33;
  --whatsapp:    #1F8514;
  --telegram:    #1C76A4;
  --viber:       #712CAA;
  --signal:      #3B45FD;
  --max:         1180px;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hov); }

h1, h2, h3, h4 {
  font-family: 'Bitter', 'Lato', Arial, serif;
  color: var(--text);
  margin: 0 0 .6em;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(28px, 4.5vw, 44px); }
h2 { font-size: clamp(22px, 3.2vw, 32px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }

p { margin: 0 0 1em; color: var(--text-dim); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }
section.tight { padding: 40px 0; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}

.lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-dim);
  max-width: 720px;
}

/* =================== HEADER =================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22,22,22,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img,
.brand svg {
  display: block;
  height: 56px;
  width: 56px;
  flex-shrink: 0;
  object-fit: contain;
}
.site-footer .brand img,
.site-footer .brand svg {
  height: 52px;
  width: 52px;
}
@media (max-width: 480px) {
  .brand img, .brand svg { height: 48px; width: 48px; }
}
/* brand text shown next to the logo */
.brand__text {
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}
.site-footer .brand__text {
  font-size: 18px;
}
@media (max-width: 480px) {
  .brand__text { font-size: 17px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--text); }

.lang {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.lang a {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-dim);
}
@media (max-width: 880px) {
  .nav.is-open .lang a {
    padding: 8px 14px;
    font-size: 14px;
  }
}
.lang a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0; right: 0;
    top: 64px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .nav.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .lang {
    margin: 12px 0 0;
    padding-left: 0;
    border-left: 0;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* =================== HERO =================== */

.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(900px 380px at 80% -10%, rgba(0,255,0,0.08), transparent 60%),
    radial-gradient(700px 320px at 0% 110%, rgba(0,255,0,0.05), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero h1 { max-width: 880px; }
.hero__sub {
  max-width: 720px;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--text-dim);
  margin: 12px 0 28px;
}
.hero__chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
}
.chip strong { color: var(--text); }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* =================== BUTTONS =================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: var(--accent-hov); color: #000; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #176510; color: #fff; }
.btn-tg { background: var(--telegram); color: #fff; }
.btn-tg:hover { background: #155F84; color: #fff; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =================== SERVICES GRID =================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.service-card {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}
.service-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--text);
}
.service-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

/* =================== FEATURED BLOCK (Dyson on home, etc.) =================== */

.featured {
  background:
    linear-gradient(180deg, rgba(0,255,0,0.05), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}
.featured h2 { margin-top: 0; }
.featured ul {
  list-style: none;
  padding: 0; margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.featured ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-dim);
}
.featured ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; padding: 24px; }
  .featured ul { grid-template-columns: 1fr; }
}

/* =================== STEPS =================== */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  counter-reset: step;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-block;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 900;
  text-align: center;
  line-height: 32px;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; margin: 0; }

/* =================== FAQ =================== */

.faq { max-width: 880px; margin: 0 auto; }
details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform .2s ease;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { padding-top: 12px; font-size: 15px; }

/* =================== REVIEWS =================== */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.review {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.review__stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.review__text {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-style: italic;
}
.review__author {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}
.review__source {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =================== CONTACT BLOCK =================== */

.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-card h2 { margin-top: 0; }
.contact-list {
  list-style: none;
  padding: 0; margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.contact-list svg { width: 18px; height: 18px; color: var(--accent); }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--accent); }

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.msg-btn svg { width: 18px; height: 18px; }
.msg-btn.wa { background: var(--whatsapp); }
.msg-btn.tg { background: var(--telegram); }
.msg-btn.vb { background: var(--viber); }
.msg-btn.sg { background: var(--signal); }
.msg-btn:hover { filter: brightness(1.1); color: #fff; }

@media (max-width: 760px) {
  .contact-card { grid-template-columns: 1fr; padding: 20px; }
}

/* =================== FOOTER =================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 0 24px;
  margin-top: 40px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.site-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 8px;
}
.site-footer a { color: var(--text-dim); font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.site-footer__about { color: var(--text-dim); font-size: 14px; }
.site-footer__bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* =================== BREADCRUMBS =================== */

.crumbs {
  font-size: 13px;
  color: var(--text-muted);
  padding: 18px 0 0;
}
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text-muted); margin: 0 6px; }

/* =================== STICKY CALL BAR (mobile) =================== */

.sticky-bar {
  display: none;
}
@media (max-width: 760px) {
  .sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    padding: 8px 10px;
    gap: 8px;
  }
  .sticky-bar a {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .sticky-bar .call { background: var(--accent); color: #000; }
  .sticky-bar .wa   { background: var(--whatsapp); color: #fff; }
  .sticky-bar .tg   { background: var(--telegram); color: #fff; }
  .sticky-bar svg { width: 16px; height: 16px; }
  body { padding-bottom: 76px; }
}

/* =================== PRINT-FRIENDLY OVERRIDES =================== */

@media print {
  .site-header, .sticky-bar, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============== Share button ============== */
.share-section { padding: 28px 0 8px; }
.share-section .container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; position: relative; }
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.btn-share:hover { border-color: var(--accent); color: var(--accent); }
.btn-share:active { transform: translateY(1px); }
.btn-share svg { flex-shrink: 0; }
/* Wrapper added by JS around every .btn-share so the toast can
   position absolutely without disturbing the cta-row layout. */
.share-wrap {
  position: relative;
  display: inline-flex;
}
/* Toast popup that appears above the button — identical look for the
   top-of-page icon-only button and the bottom share-section button. */
.share-toast {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  z-index: 5;
  margin: 0;
}
.share-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============== Share icon button (in CTA row) ============== */
/* The .cta-row is flex with default align-items: stretch, so without an
   explicit height the icon button automatically stretches to match its
   tallest sibling (WhatsApp / tel). On a wrapped row where it stands alone,
   min-height keeps it from collapsing. */
.btn-share-icon {
  padding: 0 14px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  flex-shrink: 0;
}
.btn-share-icon:hover { background: var(--bg-elev); border-color: var(--accent); color: var(--accent); }
.btn-share-icon svg { width: 22px; height: 22px; }

/* ============== Mobile overflow safety net ============== */
/* Prevent any horizontal scroll on narrow viewports (<= ~360px CSS px,
   which corresponds to 720px hardware width on common Android devices).
   Long Georgian words and absolutely-positioned glow gradients can
   occasionally push the layout 1-2px wider than the viewport. */
html { overflow-x: clip; }
body { overflow-x: clip; }
:where(p, li, a, summary, h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 40px; }
  section { padding: 48px 0; }
  .cta-row { gap: 10px; }
  .cta-row .btn { padding: 12px 18px; font-size: 14px; }
  .btn-share-icon { padding: 0 12px; min-height: 46px; }
  .btn-share-icon svg { width: 20px; height: 20px; }
}

/* ============== Mobile-only language banner ============== */
/* A small banner with 3 language buttons that appears below the header on
   mobile devices only. Auto-dismisses after 4 seconds (and remembers via
   sessionStorage so it doesn't reappear during the same browsing session).
   Hidden on desktop. */
.lang-banner {
  display: none; /* hidden by default; mobile media query enables it */
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent);
  padding: 10px 0;
  position: relative;
  z-index: 40;
  transition: opacity .35s ease, transform .35s ease, max-height .35s ease;
  overflow: hidden;
}
.lang-banner.is-fading {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.lang-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lang-banner__btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  font-family: inherit;
  letter-spacing: 0.04em;
  min-width: 56px;
  text-align: center;
}
.lang-banner__btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-banner__btn.is-active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
@media (max-width: 760px) {
  .lang-banner { display: block; }
}

/* ============== Text highlights ============== */
/* Подсветка ключевого слова при переходе из поиска Google
   (например, ?:~:text=ремонт). Мягкий бренд-зелёный. */
::target-text {
  background-color: var(--accent-soft);
  color: var(--accent);
}
/* Выделение текста мышью — фирменный зелёный с чёрным шрифтом. */
::selection {
  background-color: var(--accent);
  color: #000;
}
