/* ==========================================================================
   ЕВАКУАТОР ЧЕРНІВЦІ — сучасний мінімалістичний стиль
   ========================================================================== */

:root {
  --bg: #f4f5f6;
  --bg-panel: #ffffff;
  --bg-panel-2: #eceef0;
  --ink: #15181b;
  --ink-dim: #62696f;
  --ink-soft: #8b9198;
  --accent: #4c6a85;
  --accent-hover: #3b5468;
  --accent-soft: #e6ebef;
  --line: #e2e4e7;
  --line-strong: #cfd3d7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Signature accent rule (replaces hazard stripe) ---------- */
.accent-rule {
  height: 3px;
  width: 44px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.08;
}

.section-desc {
  max-width: 620px;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 245, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text b {
  font-weight: 700;
  font-size: 1.12rem;
}

.logo-text span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a:not(.phone-btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.2s;
}

nav a:not(.phone-btn):hover,
nav a:not(.phone-btn):focus-visible {
  color: var(--accent);
}

.phone-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.phone-btn:hover, .phone-btn:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.header-phones {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-btn-alt {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.phone-btn-alt:hover, .phone-btn-alt:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .header-phones {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .phone-btn,
  .phone-btn-alt {
    width: 100%;
    justify-content: center;
    text-align: center;
    display: flex;
  }

  .phone-btn-alt {
    display: flex;
  }
}

.nav-links-mobile-hide {
  display: flex;
  gap: 28px;
}

@media (max-width: 720px) {
  .nav-links-mobile-hide { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.0) brightness(1.35);
}

.hero-stripe {
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  z-index: 2;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent),
    var(--accent) 20px,
    #2a3846 20px,
    #2a3846 40px
  );
}

.hero-stripe-bottom { bottom: 0; }

.header-stripe {
  display: block;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent),
    var(--accent) 14px,
    #2a3846 14px,
    #2a3846 28px
  );
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,15,0.2) 0%, rgba(10,12,15,0.28) 55%, rgba(10,12,15,0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 24px 70px;
  max-width: 780px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow {
  color: #d7e0e7;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero .eyebrow::before {
  background: #d7e0e7;
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 720px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

.hero h1 span {
  color: #d7e0e7;
}

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 34px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: 7px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 15px 25px;
  border-radius: 7px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.hero-tags {
  display: flex;
  gap: 22px;
  margin-top: 44px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-tag {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #d7e0e7;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-social-btn {
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  transition: background 0.2s, border-color 0.2s;
}

.hero-social-btn:hover, .hero-social-btn:focus-visible {
  background: rgba(255,255,255,0.16);
  border-color: #fff;
}

/* ---------- Service sections ---------- */
.service {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.service-alt {
  background: var(--bg-panel);
}

.service-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 880px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.service-text h2 {
  margin-bottom: 20px;
}

.service-text p {
  color: var(--ink-dim);
  font-size: 1.05rem;
  margin-bottom: 16px;
  max-width: 480px;
}

.service-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink);
}

.service-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ---------- Slideshow ---------- */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.slideshow img.active {
  opacity: 1;
}

.slideshow-frame {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(21, 24, 27, 0.72);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 5px;
}

/* ---------- Video section ---------- */
.video-section {
  padding: 100px 0;
  background: var(--bg-panel);
}

.video-row {
  display: flex;
  gap: 20px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.video-box {
  flex: 1 1 340px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video-box video {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.video-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(21, 24, 27, 0.72);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 5px;
  z-index: 2;
}

.video-box { cursor: pointer; }

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(21, 24, 27, 0.62);
  border: 1.5px solid rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, transform 0.2s;
  pointer-events: none;
}

.video-box:hover .play-button {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.06);
}

.play-button svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: #fff;
}

.video-box.is-playing .play-button {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Contacts ---------- */
.contacts {
  padding: 100px 0 90px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

@media (max-width: 780px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

.contact-big-phone {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin: 18px 0 10px;
  transition: color 0.2s;
}

.contact-big-phone:hover, .contact-big-phone:focus-visible {
  color: var(--accent);
}

.contact-second-phone {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink-dim);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.contact-second-phone:hover, .contact-second-phone:focus-visible {
  color: var(--accent);
}

.contact-city {
  color: var(--ink-dim);
  font-size: 1rem;
  margin-bottom: 30px;
}

.contact-channels {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 14px 22px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.channel-btn:hover, .channel-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.contact-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 12px;
}

.contact-panel h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 600;
}

.contact-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-panel li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-panel li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-panel li span:last-child {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Footer ---------- */
footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

footer p {
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
