:root {
  --bg: #0d0718;
  --bg-2: #130a22;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-2: rgba(255, 255, 255, 0.11);
  --text: #ffffff;
  --muted: #c8bfd8;
  --soft: #948aa6;
  --purple: #a855f7;
  --purple-2: #d946ef;
  --purple-3: #7c3aed;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 80px rgba(6, 0, 14, 0.5);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(168, 85, 247, 0.22), transparent 32rem),
    radial-gradient(circle at 87% 13%, rgba(217, 70, 239, 0.16), transparent 30rem),
    var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
address { font-style: normal; }

.container {
  width: min(var(--container), calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(13, 7, 24, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand img, .footer-brand img {
  height: auto;
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.22));
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}
.main-nav a {
  position: relative;
  padding: 10px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--purple), var(--purple-2));
  transition: transform 0.22s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(216, 180, 254, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}
.lang-switch button {
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.lang-switch button:hover,
.lang-switch button.is-active {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.26);
}

.header-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.header-route:hover { background: rgba(168, 85, 247, 0.28); }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 2px;
}

.section { padding: 108px 0; }
.section-dark {
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.12), transparent 25rem),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0));
  border-block: 1px solid var(--line);
}
.section-glow { position: relative; overflow: hidden; }
.section-glow::before {
  content: "";
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.13);
  filter: blur(70px);
  pointer-events: none;
}
.hero.section-glow::before { left: -18rem; top: 12rem; }
.contacts.section-glow::before { right: -18rem; bottom: -20rem; }

.hero {
  min-height: 920px;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  isolation: isolate;
}
.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg img { object-fit: cover; opacity: 0.52; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 7, 24, 0.96) 0%, rgba(13, 7, 24, 0.82) 38%, rgba(13, 7, 24, 0.58) 72%, rgba(13, 7, 24, 0.78) 100%),
    linear-gradient(180deg, rgba(13, 7, 24, 0.45), rgba(13, 7, 24, 0.92));
  z-index: -1;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: 56px;
  align-items: center;
}
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e9d5ff;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  font-weight: 900;
}
.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 0 8px rgba(217, 70, 239, 0.14), 0 0 28px rgba(217, 70, 239, 0.8);
}
.hero h1 {
  margin: 18px 0 22px;
  max-width: 820px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.075em;
}
.hero-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 18px 45px rgba(168, 85, 247, 0.28);
}
.btn-primary:hover { box-shadow: 0 22px 55px rgba(168, 85, 247, 0.42); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.13); }
.address-card {
  max-width: 640px;
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(14px);
}
.address-card span,
.contact-card p,
.map-card p { color: var(--soft); }
.address-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}
.hero-panel {
  position: relative;
  border: 1px solid rgba(216, 180, 254, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero-panel img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 12px);
}
.panel-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(13, 7, 24, 0.72);
  backdrop-filter: blur(18px);
}
.panel-number {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
  color: #fff;
  text-shadow: 0 0 26px rgba(168, 85, 247, 0.6);
}
.panel-card p { margin: 0; color: var(--muted); }

.quick-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.quick-grid div {
  min-height: 130px;
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}
.quick-grid div:last-child { border-right: 1px solid var(--line); }
.quick-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}
.quick-grid span { color: var(--muted); }

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}
.section-head.compact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: end;
  max-width: none;
}
.section h2 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.section p { color: var(--muted); }
.muted { color: var(--muted); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.055));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}
.feature-card .icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 15px;
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  box-shadow: inset 0 0 0 1px rgba(216, 180, 254, 0.2);
}
.feature-card h3,
.service-list h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.feature-card p,
.service-list p { margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 52px;
  align-items: start;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service-list article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(216, 180, 254, 0.18);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(145deg, rgba(168, 85, 247, 0.12), rgba(255,255,255,0.05));
}
.service-list span {
  display: block;
  margin-bottom: 28px;
  color: #d8b4fe;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 58px;
  align-items: center;
}
.image-stack { position: relative; }
.image-stack picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.image-stack img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
}
.floating-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(216, 180, 254, 0.22);
  border-radius: 20px;
  background: rgba(13, 7, 24, 0.75);
  color: #fff;
  font-weight: 850;
  backdrop-filter: blur(14px);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: rgba(168, 85, 247, 0.16);
  color: #e9d5ff;
  font-weight: 950;
}
.steps strong,
.steps span { grid-column: 2; }
.steps strong { align-self: center; font-size: 18px; }
.steps span { color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.gallery-item::after {
  content: "Відкрити";
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 7, 24, 0.74);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
html[data-lang="ru"] .gallery-item::after { content: "Открыть"; }
.gallery-item:hover img { transform: scale(1.045); opacity: 0.86; }
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }

.brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 46px;
  align-items: center;
}
.brand-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.brand-image img {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}
.contact-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.contact-card { padding: 40px; }
.contact-card address {
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.map-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.map-placeholder {
  min-height: 370px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: calc(var(--radius) - 10px);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(217, 70, 239, 0.12)),
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.18), transparent 6rem),
    #160b28;
  border: 1px solid rgba(216, 180, 254, 0.18);
}
.map-placeholder span {
  color: #d8b4fe;
  font-size: 18px;
  font-weight: 900;
}
.map-placeholder strong {
  display: block;
  margin: 4px 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.map-placeholder small { color: var(--muted); }
.map-card p { margin: 0 6px 6px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-inner a:last-child { color: #fff; font-weight: 800; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(5, 0, 12, 0.88);
  backdrop-filter: blur(12px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.55);
}
.lightbox-close {
  position: absolute;
  right: 24px;
  top: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1020px) {
  :root { --header-h: 76px; }
  .header-route { display: none; }
  .lang-switch { margin-left: auto; }
  .burger { display: inline-block; margin-left: 0; }
  .main-nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: calc(var(--header-h) + 10px);
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(13, 7, 24, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { padding: 12px 10px; }
  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero-grid,
  .services-grid,
  .how-grid,
  .brand-grid,
  .contacts-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head.compact { grid-template-columns: 1fr; gap: 6px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 26px, var(--container)); }
  .header-inner { gap: 10px; }
  .brand img { width: 154px; }
  .lang-switch { padding: 3px; }
  .lang-switch button { min-width: 34px; height: 32px; font-size: 11px; }
  .section { padding: 78px 0; }
  .hero h1 { font-size: clamp(42px, 15vw, 62px); }
  .hero-lead { font-size: 17px; }
  .hero-actions,
  .contact-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-panel img { height: 440px; }
  .panel-card { left: 22px; right: 22px; bottom: 22px; }
  .quick-grid,
  .cards-grid,
  .service-list,
  .gallery-grid { grid-template-columns: 1fr; }
  .quick-grid div,
  .quick-grid div:last-child { border-inline: 1px solid var(--line); }
  .feature-card,
  .service-list article { min-height: auto; }
  .gallery-item,
  .gallery-item.wide { grid-column: auto; min-height: 250px; }
  .steps li { grid-template-columns: 52px 1fr; }
  .steps strong { font-size: 17px; }
  .contact-card { padding: 28px; }
  .footer-inner { flex-direction: column; justify-content: center; padding: 24px 0; text-align: center; }
}
