/* Manrope — локальний шрифт (без запитів до Google) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --text: #0d0d12;
  --muted: #6b6f7b;
  --faint: #a9adb8;
  --line: #ececf1;
  --accent: #5b6cff;
  --accent-soft: #e9ecff;
  --badge: #eaf7c9;
  --badge-text: #3d5a00;
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Language gate */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center; text-align: center;
  padding: 24px;
  transition: opacity .6s ease, visibility .6s;
}
.gate::before {
  content: ""; position: absolute; left: 50%; top: 58%;
  width: 900px; height: 460px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, #d7dcff 0%, #eef0ff 40%, transparent 70%);
  pointer-events: none;
}
.gate.hidden { opacity: 0; visibility: hidden; }
.gate-inner { position: relative; animation: rise .8s ease both; }
.gate .logo { font-size: 26px; display: inline-block; margin-bottom: 40px; }
.gate h2 { text-transform: none; font-size: clamp(26px, 4vw, 36px); margin: 0 0 6px; letter-spacing: -.03em; }
.gate p { color: var(--muted); margin-bottom: 36px; }
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lang-btn {
  min-width: 190px; padding: 18px 28px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.lang-btn:hover { background: var(--text); color: #fff; border-color: var(--text); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,13,18,.16); }
.lang-btn small { display: block; font-size: 12px; font-weight: 500; opacity: .55; margin-top: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Nav */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
header.scrolled { border-color: var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.links { display: flex; gap: 32px; font-weight: 500; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; color: var(--muted); cursor: pointer; transition: .2s;
}
.lang-switch button.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,13,18,.18); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Hero */
.hero { position: relative; text-align: center; padding: 96px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; bottom: -120px;
  width: 1100px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, #c9d0ff 0%, #e6e9ff 40%, transparent 70%);
  z-index: -1;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--badge); color: var(--badge-text);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #7cc400; display: inline-block; }
h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04; font-weight: 700; letter-spacing: -.045em;
  margin: 26px auto 22px; max-width: 900px;
}
h1 .soft { color: var(--faint); font-weight: 500; }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto; }
.hero-actions { display: flex; gap: 10px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* Floating cards */
.cards { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 64px; }
.card {
  background: #fff; border-radius: var(--radius);
  padding: 10px 10px 16px; width: 240px;
  box-shadow: 0 20px 50px rgba(40,50,120,.12);
  text-align: left;
  transition: transform .4s;
}
.card:nth-child(1) { transform: rotate(-6deg) translateY(10px); }
.card:nth-child(2) { transform: translateY(-30px); }
.card:nth-child(3) { transform: rotate(6deg) translateY(10px); }
.card:hover { transform: rotate(0) translateY(-40px); }
.thumb { aspect-ratio: 4/5; border-radius: 16px; position: relative; overflow: hidden; }
.card h4 { font-size: 15px; font-weight: 700; margin: 12px 6px 2px; }
.card p { font-size: 13px; color: var(--muted); margin: 0 6px; }

/* Placeholder gradients — замініть на свої зображення */
.g1 { background: linear-gradient(160deg, #ffd6c9, #ff9a8b 60%, #6a5cff); }
.g2 { background: linear-gradient(160deg, #d8f3ff, #8ec5ff 55%, #2b2d6e); }
.g3 { background: linear-gradient(160deg, #f2ffd6, #a8e063 55%, #2e6b3f); }
.g4 { background: linear-gradient(160deg, #f6e7ff, #c79bff 55%, #3b2266); }
.g5 { background: linear-gradient(160deg, #fff4d1, #ffcf6b 55%, #8a4b14); }
.g6 { background: linear-gradient(160deg, #e3e7ee, #a7b0c2 55%, #23262e); }
.play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.85); display: grid; place-items: center;
}
.thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.work .play, .card[data-video] { transition: opacity .3s; }
.work:hover .play { opacity: 0; }
[data-video] { cursor: pointer; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: rgba(13,13,18,.82); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox video { max-height: 88vh; max-width: 100%; border-radius: 20px; background: #000; }
.lightbox .close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.play::after { content: ""; border-left: 14px solid var(--text); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }


/* Sections */
section { padding: 110px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; margin: 12px 0 16px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head p { color: var(--muted); max-width: 420px; }

/* Work grid */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); transition: .2s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work { cursor: pointer; transition: opacity .3s; }
.work.hide { display: none; }
.work .thumb { aspect-ratio: 4/3; border-radius: var(--radius); transition: transform .4s; }
.work:hover .thumb { transform: scale(.98); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.work h3 { font-size: 17px; font-weight: 700; }
.work span { font-size: 13px; color: var(--muted); }

/* Services */
.services { background: var(--bg-soft); border-radius: 36px; margin: 0 16px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: #fff; border-radius: var(--radius); padding: 32px; }
.svc .num { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 22px; }
.svc h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about .thumb { aspect-ratio: 1; border-radius: 32px; }
.about p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.stats { display: flex; gap: 40px; margin-top: 32px; }
.stats b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.stats small { color: var(--muted); font-size: 14px; }

/* Contact */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, #dfe3ff 0%, transparent 65%); z-index: -1;
}
.ct-title { margin-top: 22px; }
.contact .lead { margin-bottom: 32px; }
.socials { display: flex; justify-content: center; gap: 24px; margin-top: 28px; color: var(--muted); font-weight: 600; font-size: 15px; }
.socials a:hover { color: var(--text); }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer .socials { margin: 0; font-size: 14px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .links { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid, .svc-grid { grid-template-columns: 1fr; }
  .cards { gap: 0; }
  .card { width: 150px; padding: 6px 6px 10px; }
  .card:nth-child(1) { margin-right: -24px; }
  .card:nth-child(3) { margin-left: -24px; }
  .card h4 { font-size: 13px; }
  .card p { display: none; }
  section { padding: 72px 0; }
  .services { margin: 0 8px; border-radius: 28px; }
  .stats { gap: 24px; }
  .stats b { font-size: 30px; }
  .nav-cta { display: none; }
  .lang-btn { min-width: 0; width: 100%; }
  .gate-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gate-inner { animation: none; }
  html { scroll-behavior: auto; }
}
