/* ==========================================================================
   Forest Net — стилі сайту
   ========================================================================== */

:root {
  --green-900: #0f3d26;
  --green-700: #16693f;
  --green-600: #1c8a52;
  --green-500: #22a862;
  --green-400: #3dc27c;
  --blue-600: #0f6ba8;
  --blue-500: #1a8fd1;
  --blue-400: #3fabe8;

  --ink: #10241a;
  --ink-soft: #435850;
  --bg: #f6f8f6;
  --bg-alt: #eef3ee;
  --card: #ffffff;
  --border: #e0e8e2;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(16, 36, 26, 0.06), 0 1px 1px rgba(16, 36, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 36, 26, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 36, 26, 0.14);

  --container: 1160px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }

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

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green-500);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--green-500); color: var(--green-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo { display: flex; align-items: center; }
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-desktop a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-desktop a:hover { color: var(--green-700); }
.nav-desktop a.active { color: var(--green-700); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { font-weight: 700; font-size: 15px; white-space: nowrap; }
.phone-link small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-soft); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 24px 18px;
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--bg-alt);
}
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 20%, #163f2a 0%, var(--green-900) 45%, #0a2618 100%);
  color: #fff;
  padding: 110px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(63, 171, 232, .25), transparent 60%),
    radial-gradient(500px 380px at 100% 90%, rgba(61, 194, 124, .28), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 4px rgba(61,194,124,.25);
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--green-400), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; font-weight: 800; }
.hero-stats div span { font-size: 13px; color: rgba(255,255,255,.65); }

.hero-visual {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-visual .panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px dashed rgba(255,255,255,.16);
  font-size: 14px;
}
.hero-visual .panel-row:last-child { border-bottom: none; }
.hero-visual .panel-row strong { font-size: 15px; }
.hero-visual .panel-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  margin-right: 12px;
  flex-shrink: 0;
}
.hero-visual .panel-left { display: flex; align-items: center; }

/* ---------- Notice / news top strip ---------- */
.notice-strip {
  background: linear-gradient(90deg, #fff7e6, #fff3d6);
  border-bottom: 1px solid #f2e2ad;
}
.notice-strip .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
  color: #6b5211;
}
.notice-strip strong { color: #8a5b00; }
.notice-strip a { text-decoration: underline; font-weight: 700; white-space: nowrap; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; stroke: #fff; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; }
.service-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-700);
  background: #e7f6ed;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card { text-align: left; }
.why-card .num {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-600);
  margin-bottom: 10px;
  letter-spacing: .06em;
}
.why-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.why-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- Coverage map ---------- */
.coverage-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 44px;
  align-items: stretch;
}
.coverage-map-wrap {
  background: linear-gradient(180deg, #f2f8f4, #e7f3ec);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.coverage-map-wrap svg { width: 100%; height: auto; display: block; }
.coverage-zone {
  cursor: pointer;
  transition: opacity .15s ease, filter .15s ease;
}
.coverage-zone:hover, .coverage-zone.is-active {
  filter: brightness(1.12);
}

/* лінії активного сигналу від офісу до кожного вузла */
.signal-lines path {
  stroke-dasharray: 5 7;
  animation: signalFlow 1.1s linear infinite;
}
@keyframes signalFlow {
  to { stroke-dashoffset: -24; }
}

/* пульсація вузлів підключення */
.signal-node .pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  fill: none;
  stroke-width: 1.6;
  animation: nodePulse 2.2s ease-out infinite;
}
@keyframes nodePulse {
  0%   { transform: scale(1);   opacity: .8; }
  75%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

.broadcast-arc {
  transform-box: fill-box;
  transform-origin: center;
  animation: broadcastPulse 2.2s ease-in-out infinite;
}
@keyframes broadcastPulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* виносні лінії підписів */
.map-leader line {
  stroke: #7d9188;
  stroke-width: 1;
  stroke-dasharray: 2 2;
}
.map-leader circle {
  fill: #ffffff;
  stroke: #7d9188;
  stroke-width: 1.2;
}
.coverage-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transform: translate(-50%, -130%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s ease;
  z-index: 5;
}
.coverage-tooltip.show { opacity: 1; }
/* легенда під картою */
.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 36, 26, .08);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.legend-hub {
  color: var(--green-900);
  font-size: 13px;
  line-height: 1;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(26, 143, 209, .22);
  flex-shrink: 0;
}
.legend-line {
  width: 22px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
  flex-shrink: 0;
}

.coverage-list { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.coverage-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14.5px;
  transition: border-color .15s ease, background .15s ease;
}
.coverage-list li:hover { border-color: var(--green-500); background: #f2fbf5; }
.coverage-list li .swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.coverage-list li span.status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-700);
  background: #e7f6ed;
  padding: 3px 10px;
  border-radius: 999px;
}
.coverage-cta {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.coverage-cta p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card.is-important { border-color: #f0cf7a; }
.news-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--green-600), var(--blue-500));
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.news-thumb .badge {
  background: rgba(255,255,255,.92);
  color: var(--green-800, var(--green-700));
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 999px;
}
.news-thumb.thumb-important { background: linear-gradient(135deg, #d98d00, #f0b429); }
.news-thumb.thumb-maint { background: linear-gradient(135deg, #4a5568, #1a202c); }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-date { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; }
.news-body h3 { font-size: 17px; margin: 0; }
.news-body p { font-size: 14.5px; color: var(--ink-soft); margin: 0; flex: 1; }
.news-more { font-size: 13.5px; font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }

/* ---------- Contacts ---------- */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h2 { margin-bottom: 18px; }
.contact-rows { display: flex; flex-direction: column; gap: 22px; margin: 26px 0 30px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: #e7f6ed;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .ic svg { width: 22px; height: 22px; stroke: var(--green-700); }
.contact-row h4 { margin: 0 0 4px; font-size: 15px; }
.contact-row p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.contact-row a.big { font-size: 19px; font-weight: 800; color: var(--ink); }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, transform .15s ease;
}
.social-row a:hover { border-color: var(--green-500); transform: translateY(-2px); }
.social-row a svg { width: 20px; height: 20px; stroke: var(--ink); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-form h3 { font-size: 20px; margin-bottom: 6px; }
.contact-form p.sub { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-alt);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--green-500);
  background: #fff;
}
/* приховане поле-пастка для ботів (не display:none — деякі боти таке ігнорують) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.contact-form button[disabled] { opacity: .6; cursor: not-allowed; }
.form-status { font-size: 13.5px; font-weight: 700; margin-top: 12px; min-height: 18px; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.78);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer-logo img { height: 38px; width: auto; display: block; }
.site-footer p.about { font-size: 14px; max-width: 320px; color: rgba(255,255,255,.62); }
.site-footer h5 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: .03em; text-transform: uppercase; }
.site-footer ul li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-layout, .contacts-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-desktop, .header-actions .phone-link { display: none; }
  /* кнопка кабінету є в мобільному меню — у шапці звільняємо місце для лого */
  .header-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .logo img { height: 32px; }
  .footer-logo img { height: 32px; }
  .services-grid, .why-grid, .news-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 90px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.map-responsive {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 16px;
}

.map-responsive iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
@media (max-width: 768px) {
    .map-responsive {
        height: 400px;
    }
}