:root {
  --bg: #0b1116;
  --bg2: #0e161d;
  --card: #111b23;
  --card2: #15212b;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #e8eef2;
  --muted: #95a5b1;
  --accent: #37c7c0;
  --accent2: #7fe3dc;
  --ink: #04201f;
  --good: #59d39a;
  --bad: #ff8a7a;
  --r: 18px;
  --wrap: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 8px;
}

.skip:focus {
  left: 12px;
}

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

@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

/* ---------- шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 17, 22, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand b {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #1f8f8a);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--text);
}

.lang {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}

.lang:hover {
  color: var(--text);
  border-color: var(--accent);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .lang {
    margin-left: 0;
  }
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent2);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-ghost {
  border-color: var(--line2);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

/* ---------- перший екран ---------- */

.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(55, 199, 192, 0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(55, 199, 192, 0.35);
  border-radius: 999px;
  color: var(--accent2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 14em;
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead-text {
  max-width: 40em;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-grid {
  display: grid;
  gap: 0;
}

.hero-visual {
  display: none;
}

.facts {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
}

.facts li {
  position: relative;
  padding-left: 18px;
}

.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

@media (min-width: 760px) {
  .hero {
    padding: 112px 0 96px;
  }

  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding: 96px 0 88px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: 48px;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 4.4vw, 3.7rem);
  }

  .hero-visual {
    display: block;
    position: relative;
    padding: 0 0 40px 40px;
  }

  .hv-desk {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  }

  .hv-mob {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28%;
    border-radius: 22px;
    border: 3px solid #26343f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }

  .facts {
    grid-column: 1 / -1;
  }
}

/* ---------- розділи ---------- */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section.alt {
  background: var(--bg2);
}

.section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 720;
}

.sub {
  max-width: 44em;
  margin-top: 12px;
  color: var(--muted);
}

@media (min-width: 760px) {
  .section {
    padding: 104px 0;
  }
}

/* ---------- проєкти ---------- */

.project {
  display: grid;
  gap: 28px;
  margin-top: 48px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 6px);
  background: linear-gradient(180deg, var(--card), rgba(17, 27, 35, 0.6));
}

.media {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line2);
  background: #0a0f13;
}

.shot-desktop {
  position: relative;
  border-radius: 12px;
  padding-top: 26px;
}

.shot-desktop .dots {
  position: absolute;
  top: 9px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.shot-desktop .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.shot-mobile {
  display: none;
}

.shot-extra {
  border-radius: 12px;
}

.info {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 4px 4px 6px;
}

.ptop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.info h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 720;
  overflow-wrap: anywhere;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(55, 199, 192, 0.14);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 650;
}

.tag {
  color: var(--accent2);
  font-weight: 600;
}

.ptext {
  color: var(--muted);
}

.info h4 {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.feats {
  display: grid;
  gap: 9px;
  font-size: 15px;
}

.feats li {
  position: relative;
  padding-left: 24px;
}

.feats li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.info .btn {
  justify-self: start;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .project {
    padding: 26px;
  }

  .media {
    padding-right: 16%;
  }

  .shot-mobile {
    display: block;
    position: absolute;
    right: 0;
    bottom: -18px;
    width: 24%;
    border-radius: 22px;
    border: 3px solid #26343f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }

  .media:has(.shot-extra) .shot-mobile {
    bottom: auto;
    top: 18%;
  }
}

.pfeats {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0 4px 6px;
}

.pfeats h4 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 1000px) {
  .project {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px 44px;
    padding: 34px;
    align-items: center;
  }

  .project:nth-of-type(even) .media {
    order: 2;
  }

  .project:nth-of-type(even) .info {
    order: 1;
  }

  .pfeats {
    order: 3;
    grid-column: 1 / -1;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }

  .pfeats .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 40px;
  }
}

/* «Малий»: замість знімка — діалог */

.media-ai {
  padding: 0 !important;
}

.ai-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(55, 199, 192, 0.14), transparent 70%),
    #0c1419;
}

.ai-row {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
}

.ai-in {
  justify-self: end;
  background: var(--card2);
  border: 1px solid var(--line2);
  border-bottom-right-radius: 4px;
}

.ai-out {
  background: rgba(55, 199, 192, 0.14);
  border: 1px solid rgba(55, 199, 192, 0.3);
  border-bottom-left-radius: 4px;
}

.ai-btns {
  display: flex;
  gap: 8px;
  padding: 0;
}

.ai-btns span {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  font-weight: 650;
  font-size: 14px;
}

.ai-btns span:first-child {
  background: var(--accent);
  color: var(--ink);
  border-color: transparent;
}

/* ---------- що роблю ---------- */

.services {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.services li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.services h3 {
  font-size: 18px;
  font-weight: 680;
}

.services p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 640px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

/* ---------- як працюємо ---------- */

.how {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.how li {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(55, 199, 192, 0.14);
  color: var(--accent2);
  font-weight: 750;
}

.how h3 {
  font-size: 17px;
  font-weight: 680;
}

.how p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 1000px) {
  .how {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .how li {
    flex-direction: column;
  }
}

/* ---------- контакти ---------- */

.contact {
  display: grid;
  gap: 36px;
}

.direct {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.direct .btn {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.lead {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 4px);
  background: var(--card);
}

.lead label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.lead input,
.lead textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: #0b1217;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  resize: vertical;
}

.lead textarea {
  min-height: 120px;
}

.lead input:focus,
.lead textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 199, 192, 0.2);
}

.lead ::placeholder {
  color: #64757f;
}

.lead .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.note {
  color: var(--muted);
  font-size: 13px;
}

.status {
  min-height: 1.2em;
  font-size: 14px;
  font-weight: 600;
}

.status.good {
  color: var(--good);
}

.status.bad {
  color: var(--bad);
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .lead {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px;
  }

  .lead .full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: start;
  }
}

/* ---------- підвал ---------- */

.foot {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
