:root {
  --blue: #1e63ff;
  --blue-strong: #4a85ff;
  --bg: #05070d;
  --panel: #0c111d;
  --panel-soft: #0f1524;
  --text: #f4f7fb;
  --muted: #c5cedb;
  --border: #1c2333;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
html {
  scroll-padding-top: 120px; /* компенсує висоту хедера */
  scroll-behavior: smooth;
}

/* Ховаємо десктопне меню на мобільному */
@media (max-width: 768px) {
  .desktop-menu {
    display: none !important;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100%;
  background: rgba(5, 10, 25, 0.97);
  box-shadow: -6px 0 20px rgba(0,0,0,0.4);
  padding: 40px 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s ease;
  z-index: 1500;
}

/* Лого у верхній частині */
.mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
}

.mobile-logo {
  width: 46px;
  height: auto;
}

.mobile-logo-title .name {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}

.mobile-logo-title .tagline {
  display: block;
  color: #4a85ff;
  font-size: 0.9rem;
}

/* Пункти меню */
.mobile-menu-links {
  list-style: none;
  margin-top: 20px;
  padding: 0;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mobile-menu-links a {
  font-size: 1.3rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.mobile-menu-links a:hover {
  color: #4a85ff;
}

/* Нижня частина меню */
.mobile-menu-footer {
  margin-top: auto;   /* відправляє блок у низ меню */
  padding-bottom: 16px;
}

.mobile-phone {
  display: block;
  color: #4a85ff;
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-decoration: none;
  font-weight: 600;
}

.mobile-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
}



/* БАЗА ДЛЯ ВСІХ ІКОНОК */
.messenger-icon {
  width: 70px;              /* більший кружок */
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  position: relative;
}

.messenger-icon::before {
  content: "";
  width: 32px;              /* більша піктограма всередині */
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* VIBER */
.messenger-icon.viber {
  background: #8b5cff;
}
.messenger-icon.viber::before {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M18.7 2H5.3A3.3 3.3 0 0 0 2 5.3v13.4A3.3 3.3 0 0 0 5.3 22h13.4a3.3 3.3 0 0 0 3.3-3.3V5.3A3.3 3.3 0 0 0 18.7 2Zm-3.2 15c-.5.6-1.4.7-2.2.5-2-.6-4.3-2.7-5-5-.2-.7-.1-1.6.5-2.2l1-.9c.2-.2.5-.3.8 0l.9 1c.2.2.2.6 0 .8l-.7.7c.4 1 1.2 1.9 2.2 2.2l.7-.7c.2-.2.6-.2.8 0l1 1c.3.2.3.5.1.8l-.9 1Z'/></svg>");
}

/* TELEGRAM */
.messenger-icon.telegram {
  background: #2ba7eb;
}
.messenger-icon.telegram::before {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M9.993 16.615c-.39 0-.323-.147-.457-.518l-1.148-3.780L17.25 7.5 9.3 11.1l-3.6-1.2c-.78-.24-.78-1.26.12-1.62l13.2-5.1c.84-.3 1.68.3 1.38 1.5l-2.25 10.8c-.18.84-.72 1.05-1.44.66l-3.6-2.34-1.74 1.68c-.18.18-.33.33-.66.33Z'/></svg>");
}

/* TIKTOK */
.messenger-icon.tiktok {
  background: #000000;
}
.messenger-icon.tiktok::before {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M12.5 2h3c.2 1.7 1.3 3.3 3.4 4.1 1 .4 2 .6 3.1.7v3.1c-1.7 0-3.3-.4-4.7-1.3v7.9c0 3.7-2.6 6.5-6.6 6.5S4 20.2 4 16.5c0-3.6 2.8-6.4 6.7-6.5h.2v3.3c-1.2.1-2.3.6-3.1 1.4-.8.8-1.3 2-1.3 3.2 0 2.4 1.7 4.3 4.3 4.3s4.3-1.9 4.3-4.3V2z'/></svg>");
}


/* Невелика анімація при тапі/наведенні */
.messenger-icon:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}







/* Бургер */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3000;
}

.menu-toggle span {
  width: 100%;
  height: 4px;
  background: #ffffff;
  border-radius: 4px;
  transition: 0.3s;
}

/* Анімація */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Меню */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 420px;
  height: 100%;
  background: rgba(5, 10, 25, 0.97);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);   /* ❗ початково сховане */
  transition: transform 0.35s ease;
  z-index: 2500;
}

.mobile-menu.active {
  transform: translateX(0);     /* ❗ виїхало */
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  gap: 22px;
}

.mobile-menu ul li a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}
.header-phone {
  white-space: nowrap;
}

/* Затемнення фону */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 2000;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Показ бургера на мобільному */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 14px;
  background: var(--blue);
  color: #05070d;
  font-weight: 700;
  border-radius: 12px;
  z-index: 1100;
}

.skip-link:focus {
  left: 12px;
  outline: 3px solid #fff;
}

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

a:hover {
  color: var(--blue);
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px 4vw;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.form-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-status[data-type="success"] {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.45);
  color: #b9f6ca;
}

.form-status[data-type="error"] {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.45);
  color: #ffb3b3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 50px; /* можеш збільшити або зменшити */
  width: auto;
  object-fit: contain;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1e63ff, #0c2d76);
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(16, 77, 214, 0.35);
}

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

.logo-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-tag {
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #9db3ff;
  letter-spacing: 1px;
  text-transform: uppercase;
}



.nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: rgba(30, 99, 255, 0.12);
  color: var(--text);
}

.header-phone {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  --hero-image: url('https://images.unsplash.com/photo-1502209524164-acea936639b7?auto=format&fit=crop&w=1500&q=80');
  background: radial-gradient(circle at 20% 20%, rgba(30, 99, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 40%, rgba(74, 133, 255, 0.16), transparent 30%),
    #03050b;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: none;
  background-color: rgba(0, 0, 0, 0.35); /* стильне затемнення */
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(5, 7, 13, 0.9) 0%, rgba(5, 7, 13, 0.65) 50%, rgba(5, 7, 13, 0.4) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 70%, rgba(30, 99, 255, 0.2), transparent 30%),
    radial-gradient(circle at 70% 20%, rgba(74, 133, 255, 0.18), transparent 34%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 80px 0 60px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 700;
}

.hero h1 {
  margin: 10px 0;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.05;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 650px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 12px;
  background: rgba(30, 99, 255, 0.12);
  border: 1px solid rgba(30, 99, 255, 0.35);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-form {
  background: rgba(12, 17, 29, 0.9);
  border: 1px solid rgba(30, 99, 255, 0.25);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-form h3 {
  margin: 0 0 12px;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form label {
  font-weight: 600;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0b111c;
  color: var(--text);
  font-size: 1rem;
}

.lead-form textarea {
  resize: vertical;
  min-height: 110px;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(30, 99, 255, 0.7);
  border-color: transparent;
}

.btn-primary {
  margin-top: 6px;
  padding: 13px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--blue), var(--blue-strong));
  color: #05070d;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(30, 99, 255, 0.3);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-header {
  padding: 40px 0 10px;
}

.section-header.center {
  text-align: center;
  max-width: 760px;
}

.section-header h2 {
  margin: 6px 0;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

.objects {
  background: linear-gradient(180deg, var(--bg) 0%, #070b14 100%);
  padding: 10px 0 40px;
}

.objects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.objects-column {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.column-head h3 {
  margin: 0;
}

.column-head p {
  margin: 6px 0 18px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.object-card {
  position: relative;
  min-height: 160px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background-color: var(--panel-soft);
  background-size: cover;
  background-position: center;
}

.object-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--card-bg, none);
  background-size: cover;
  background-position: center;
  filter: grayscale(10%) brightness(0.9);
  transition: transform 0.3s ease;
  transform: scale(1.02);
}

.object-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 13, 0.86) 100%);
}

.object-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 700;
}

.object-card:hover::before {
  transform: scale(1.05);
}

.services {
  padding: 30px 0 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 99, 255, 0.35);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(30, 99, 255, 0.12);
  color: var(--blue-strong);
  font-weight: 700;
}

.icon-circle.small {
  width: 38px;
  height: 38px;
}

.btn-link {
  color: var(--blue-strong);
  font-weight: 700;
}

.benefits {
  background: linear-gradient(180deg, #070b14 0%, #05070d 100%);
  padding: 30px 0 60px;
}

.benefits-text {
  max-width: 880px;
  margin: 12px auto 18px;
  color: #d6deff;
  line-height: 1.6;
  font-size: 0.98rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.benefit-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.benefit-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  background: #060912;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(30, 99, 255, 0.1), transparent 40%),
    url('assets/magazine.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(40%) brightness(0.4);
  opacity: 0.60;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(30, 99, 255, 0.28), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(74, 133, 255, 0.18), transparent 30%);
}

.contact-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}

.contact-copy h2 {
  margin: 10px 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.contact-phone {
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
}

.messenger-line {
  display: grid;
  gap: 8px;
  color: var(--muted);
}


.messenger-icons a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(30, 99, 255, 0.3);
}

.messenger-icons {
  display: flex;
  gap: 10px;
}

/* базовий стиль кружечка */
.messenger-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7360f2; /* фіолетовий як у Viber */
  border: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* окремі кольори під кожен месенджер */
.messenger-icon.viber {
  background: #7360f2;
}

.messenger-icon.telegram {
  background: #0088cc;
}

.messenger-icon.whatsapp {
  background: #25d366;
}

.messenger-icon.tiktok {
  background: #000000;
}

.messenger-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.messenger-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
}

.location {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  background: rgba(12, 17, 29, 0.92);
  border: 1px solid rgba(30, 99, 255, 0.25);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.footer {
  padding: 18px 4vw;
  text-align: center;
  color: var(--muted);
  background: #04060b;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'brand phone'
      'nav nav';
    row-gap: 10px;
  }

  .brand { grid-area: brand; }
  .nav { grid-area: nav; }
  .header-phone { grid-area: phone; justify-self: end; }

  .hero-content {
    padding-top: 110px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 86px;
  }

  .site-header {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-content {
    padding-top: 120px;
  }
}
.contact .messenger-icon::before {
  display: none !important;
}