:root {
  --bg: #060812;
  --bg-2: #0b1020;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7fbff;
  --muted: #aebad0;
  --muted-2: #7f8aa3;
  --cyan: #24d7ff;
  --blue: #637bff;
  --violet: #a855f7;
  --green: #39e6b5;
  --yellow: #ffd166;
  --danger: #ff6b93;
  --shadow: 0 24px 90px rgba(0,0,0,.44);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(36, 215, 255, .18), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(168, 85, 247, .22), transparent 34rem),
    radial-gradient(circle at 52% 86%, rgba(57, 230, 181, .10), transparent 35rem),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 75%);
  pointer-events: none;
  z-index: -2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(6, 8, 18, .72);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #06111c;
  box-shadow: 0 14px 40px rgba(36, 215, 255, .22);
}
.brand small { display:block; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: -4px; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.langs { display: flex; gap: 8px; align-items: center; }
.langs a {
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
.langs a.active, .langs a:hover { color: var(--text); background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.16); }
.mobile-menu-btn { display:none; background: transparent; border:0; color: var(--text); font-size: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -.01em;
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #05101d;
  border-color: transparent;
  box-shadow: 0 18px 46px rgba(36, 215, 255, .22);
}
.btn-secondary { background: rgba(255,255,255,.07); color: var(--text); }
.btn-small { min-height: 38px; padding: 9px 13px; font-size: 13px; }

.hero { padding: 86px 0 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 24px var(--green); }
h1 {
  margin: 24px 0 20px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: .94;
  letter-spacing: -.07em;
}
.gradient-text {
  background: linear-gradient(100deg, #fff, #b8f4ff 35%, #c3b6ff 72%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: var(--muted); font-size: clamp(18px, 2vw, 22px); max-width: 720px; }
.hero-actions { display:flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 36px; }
.stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.stat strong { display:block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }

.hero-visual { position: relative; min-height: 620px; }
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .88;
}
.orb.one { width: 190px; height:190px; background: rgba(36,215,255,.22); top: 16px; right: 90px; }
.orb.two { width: 260px; height:260px; background: rgba(168,85,247,.20); bottom: 34px; left: 20px; }
.mock-stack { position: absolute; inset: 0; }
.device {
  position: absolute;
  border-radius: 34px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  overflow: hidden;
}
.phone { width: 255px; height: 526px; right: 42px; top: 52px; padding: 14px; transform: rotate(4deg); }
.phone::before { content:""; display:block; width: 76px; height: 7px; border-radius:99px; background: rgba(255,255,255,.30); margin: 0 auto 16px; }
.screen { height: calc(100% - 23px); border-radius: 24px; background: linear-gradient(180deg, rgba(10,16,33,.95), rgba(16,24,50,.95)); padding: 18px; border: 1px solid rgba(255,255,255,.10); }
.app-top { display:flex; justify-content: space-between; align-items:center; margin-bottom: 18px; }
.app-chip { width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.app-lines { display:grid; gap: 8px; margin-bottom: 18px; }
.app-lines i, .dashboard i { display:block; height: 10px; border-radius: 99px; background: rgba(255,255,255,.15); }
.app-lines i:nth-child(1) { width: 72%; height: 16px; background: rgba(255,255,255,.30); }
.app-lines i:nth-child(2) { width: 54%; }
.app-card { padding: 15px; border-radius: 18px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); margin-bottom: 12px; }
.app-card b { display:block; font-size: 13px; margin-bottom: 8px; }
.app-card span { display:block; width: 82%; height: 8px; border-radius:99px; background: rgba(255,255,255,.14); }
.laptop { width: 440px; height: 276px; left: 4px; top: 210px; padding: 18px; transform: rotate(-5deg); }
.laptop .screen { border-radius: 20px; padding: 20px; }
.dashboard { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.dashboard div { min-height: 68px; border-radius: 16px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.09); padding: 12px; }
.dashboard i:first-child { width: 40%; background: rgba(36,215,255,.45); }
.dashboard i:last-child { width: 78%; margin-top: 10px; }
.ai-card {
  position: absolute;
  left: 54px;
  bottom: 18px;
  width: 320px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.ai-card strong { display:block; font-size: 15px; }
.ai-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.badge-row { display:flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); color: var(--muted); font-size: 12px; font-weight: 700; }

section { padding: 74px 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { text-align: center; margin-inline: auto; }
h2 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.055em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.grid-4 { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  box-shadow: 0 18px 70px rgba(0,0,0,.18);
  overflow: hidden;
}
.card::after {
  content:"";
  position:absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 0%, rgba(36,215,255,.18), transparent 36%), radial-gradient(circle at 90% 30%, rgba(168,85,247,.12), transparent 38%);
  pointer-events:none;
  opacity:.65;
}
.card > * { position:relative; z-index:1; }
.icon {
  width: 48px; height: 48px; border-radius: 16px; display:grid; place-items:center;
  background: rgba(36,215,255,.12); border: 1px solid rgba(36,215,255,.22); color: var(--cyan); margin-bottom: 18px;
}
.card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.025em; }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); margin: 16px 0 0; padding-left: 18px; }
.card li { margin: 7px 0; }

.portfolio-card { display:flex; flex-direction: column; min-height: 100%; }
.placeholder-img {
  min-height: 184px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 20%, rgba(36,215,255,.24), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(168,85,247,.22), transparent 40%),
    rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.72);
  font-weight: 800;
  text-align:center;
  padding: 16px;
  margin-bottom: 18px;
}
.tag { display:inline-flex; width:max-content; padding: 6px 10px; border-radius:999px; background: rgba(57,230,181,.12); color: var(--green); font-size:12px; font-weight:800; margin-bottom: 12px; }
.portfolio-card .links { display:flex; flex-wrap:wrap; gap: 9px; margin-top: auto; padding-top: 20px; }

.pricing { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-row { display:flex; justify-content: space-between; gap: 18px; align-items:flex-start; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); }
.price-row strong { font-size: 16px; }
.price-row span { color: var(--muted); display:block; font-size: 13px; margin-top: 4px; }
.price { color: var(--cyan); font-size: 19px; font-weight: 900; white-space: nowrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

.process { counter-reset: steps; }
.step { display:grid; grid-template-columns: auto 1fr; gap: 18px; align-items:flex-start; padding: 22px; border-bottom: 1px solid rgba(255,255,255,.10); }
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: steps;
  content: counter(steps);
  width: 40px; height: 40px; border-radius: 14px; display:grid; place-items:center; background: linear-gradient(135deg, var(--cyan), var(--violet)); color:#081020; font-weight: 900;
}
.step h3 { margin: 0 0 4px; }
.step p { margin:0; color: var(--muted); }

.contact-panel {
  display:grid;
  grid-template-columns: 1fr .8fr;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(36,215,255,.13), rgba(168,85,247,.12)), rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}
.contact-list { display:grid; gap: 12px; }
.contact-item { padding: 16px; border-radius: 18px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.10); }
.contact-item span { display:block; color: var(--muted); font-size:13px; }
.contact-item strong { display:block; margin-top: 3px; }

.site-footer { padding: 38px 0; color: var(--muted-2); border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display:flex; justify-content:space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display:flex; flex-wrap:wrap; gap: 16px; }
.footer-links a:hover { color: var(--text); }

.language-landing { min-height: 100vh; display:grid; place-items:center; padding: 48px 20px; }
.language-box { width:min(980px, 100%); text-align:center; }
.language-box h1 { font-size: clamp(42px, 8vw, 76px); }
.language-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 34px; }
.language-grid a { padding: 24px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); font-weight: 900; }
.language-grid a:hover { background: rgba(255,255,255,.13); }

@media (max-width: 980px) {
  .nav-links { display:none; }
  .mobile-menu-btn { display:block; }
  .nav.open .nav-links { display:flex; position:absolute; top:76px; left:0; right:0; padding: 18px 24px 24px; flex-direction:column; align-items:flex-start; background: rgba(6,8,18,.96); border-bottom:1px solid rgba(255,255,255,.10); }
  .hero-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .laptop { width: 390px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 22px, var(--max)); }
  .hero { padding-top: 52px; }
  .hero-stats, .grid-4, .grid-3, .language-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 500px; transform: scale(.88); transform-origin: top center; margin-bottom: -60px; }
  .laptop { left: -28px; width: 370px; }
  .phone { right: -8px; width: 230px; height: 486px; }
  .ai-card { left: 6px; width: 292px; bottom: 2px; }
  .langs { gap: 4px; }
  .langs a { font-size: 12px; padding: 6px 7px; }
  .brand small { display:none; }
  .price-row { flex-direction: column; }
}

/* Integrated portfolio and hero imagery */
.hero-visual.hero-image-frame {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.hero-image-frame img {
  display: block;
  width: min(100%, 640px);
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 26px 100px rgba(0,0,0,.46), 0 0 60px rgba(36,215,255,.12);
  background: rgba(255,255,255,.04);
}
.portfolio-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 0 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: 0 18px 54px rgba(0,0,0,.20);
}
.portfolio-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease, filter .35s ease;
}
.portfolio-card:hover .portfolio-image img {
  transform: scale(1.015);
  filter: saturate(1.08) contrast(1.04);
}
@media (max-width: 980px) {
  .hero-visual.hero-image-frame { min-height: auto; padding: 0; }
  .hero-image-frame img { width: min(100%, 680px); }
}
@media (max-width: 680px) {
  .hero-visual.hero-image-frame {
    min-height: auto;
    transform: none;
    margin-bottom: 0;
  }
  .hero-image-frame img {
    width: 100%;
    border-radius: 22px;
  }
  .portfolio-image { border-radius: 18px; }
}

/* Mobile navigation/layout fix v5 */
@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .site-header { overflow: visible; }
  .nav {
    min-height: auto;
    padding: 12px 0 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand menu"
      "langs langs";
    gap: 10px 12px;
    align-items: center;
  }
  .brand { grid-area: brand; min-width: 0; }
  .brand span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-mark { width: 38px; height: 38px; border-radius: 13px; flex: 0 0 auto; }
  .mobile-menu-btn { grid-area: menu; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); }
  .langs {
    grid-area: langs;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    justify-content: flex-start;
    gap: 7px;
    padding: 0 0 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .langs::-webkit-scrollbar { display: none; }
  .langs a {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
  }
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex;
    position: static;
    grid-column: 1 / -1;
    padding: 12px;
    margin-top: 2px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
  }
  .nav.open .nav-links a {
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.035);
  }
  .hero { padding: 44px 0 42px; }
  h1 { font-size: clamp(42px, 13vw, 58px); line-height: .96; letter-spacing: -.06em; }
  .hero p.lead { font-size: 17px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { margin-top: 26px; }
  section { padding: 54px 0; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 18px, var(--max)); }
  .brand { gap: 9px; }
  .brand span:last-child { font-size: 14px; }
  .brand-mark { width: 36px; height: 36px; font-size: 13px; }
  h1 { font-size: clamp(38px, 12.5vw, 50px); }
  .kicker { font-size: 12px; }
  .portfolio-card, .card { padding: 18px; }
  .price-row { padding: 16px; }
  .contact-panel { padding: 22px; }
}


/* Hero mobile overflow fix v6 */
.hero-grid > * { min-width: 0; max-width: 100%; }
.hero, .hero-grid { overflow-x: clip; }
h1, .hero p.lead, .gradient-text { max-width: 100%; }

@media (max-width: 760px) {
  .hero .container,
  .hero-grid,
  .hero-grid > div,
  .hero-visual.hero-image-frame {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    overflow: hidden;
  }
  h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
  .hero p.lead {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .hero-visual.hero-image-frame {
    justify-content: center;
    overflow: hidden;
  }
  .hero-image-frame img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 6 / 5;
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  h1 { font-size: clamp(34px, 11.5vw, 46px); }
  .hero { padding-top: 36px; }
}


/* Trust / proof section v7 */
.hero-stats.hero-stats-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust-section {
  padding-top: 24px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.trust-card {
  min-height: 230px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.038));
  box-shadow: 0 18px 70px rgba(0,0,0,.18);
  position: relative;
  overflow: hidden;
}
.trust-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 0%, rgba(36,215,255,.15), transparent 38%), radial-gradient(circle at 100% 100%, rgba(168,85,247,.14), transparent 42%);
  pointer-events: none;
}
.trust-card > * { position: relative; z-index: 1; }
.trust-card strong {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.trust-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -.03em;
}
.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .hero-stats.hero-stats-wide { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-card { min-height: auto; }
}
@media (max-width: 420px) {
  .hero-stats.hero-stats-wide { grid-template-columns: 1fr; }
}


/* Mobile hero polish v8 */
.desktop-title { display: inline; }
.mobile-title { display: none; }

@media (max-width: 760px) {
  .hero {
    padding-top: 34px;
    overflow: hidden;
  }
  .hero-grid {
    gap: 22px;
  }
  .hero-grid > div:first-child {
    text-align: center;
  }
  .desktop-title { display: none; }
  .mobile-title { display: inline; }
  h1 {
    font-size: clamp(42px, 12vw, 52px);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 20px auto 18px;
    max-width: 100%;
  }
  .kicker {
    max-width: calc(100vw - 28px);
    width: max-content;
    margin-inline: auto;
    white-space: normal;
    justify-content: center;
    overflow-wrap: break-word;
  }
  .hero p.lead {
    max-width: 34rem;
    margin-inline: auto;
    font-size: 17px;
    line-height: 1.58;
  }
  .hero-actions {
    max-width: 34rem;
    margin-inline: auto;
  }
  .hero-stats.hero-stats-wide {
    max-width: 34rem;
    margin-inline: auto;
    text-align: left;
  }
  .hero-visual.hero-image-frame {
    margin-top: 6px;
    padding-inline: 0;
  }
  .hero-image-frame img {
    width: min(100%, 520px);
    max-height: 420px;
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 28px;
  }
  h1 {
    font-size: clamp(38px, 11.4vw, 46px);
    line-height: 1.02;
    letter-spacing: -.045em;
  }
  .hero p.lead {
    font-size: 16px;
  }
  .kicker {
    font-size: 12px;
    padding: 7px 10px;
  }
  .hero-actions .btn {
    min-height: 54px;
    font-size: 15px;
    padding-inline: 16px;
  }
  .hero-image-frame img {
    max-height: 360px;
  }
}

@media (max-width: 360px) {
  h1 { font-size: 36px; }
  .langs a { padding-inline: 8px; }
}


/* Desktop/localization polish v9 */
@media (min-width: 761px) {
  .hero {
    padding: 62px 0 56px;
  }
  .hero-grid {
    align-items: center;
    gap: 46px;
  }
  h1 {
    font-size: clamp(44px, 5.15vw, 74px);
    line-height: .98;
    letter-spacing: -.062em;
  }
  html:lang(ru) h1,
  html:lang(it) h1,
  html:lang(uk) h1 {
    font-size: clamp(42px, 4.9vw, 70px);
    line-height: 1;
    letter-spacing: -.058em;
  }
  .hero p.lead {
    font-size: clamp(17px, 1.55vw, 21px);
    max-width: 660px;
  }
  .hero-stats.hero-stats-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
  }
  .stat {
    min-width: 0;
    padding: 16px 18px;
  }
  .stat strong {
    font-size: clamp(19px, 1.55vw, 23px);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }
  .stat span {
    overflow-wrap: break-word;
  }
  .hero-image-frame img {
    width: min(100%, 600px);
    max-height: 500px;
    object-fit: contain;
  }
}

@media (min-width: 981px) and (max-width: 1160px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
    gap: 34px;
  }
  h1,
  html:lang(ru) h1,
  html:lang(it) h1,
  html:lang(uk) h1 {
    font-size: clamp(40px, 4.55vw, 60px);
  }
  .hero-image-frame img {
    max-height: 460px;
  }
}

@media (max-width: 760px) {
  .hero-actions .btn {
    max-width: 100%;
  }
  .hero-stats.hero-stats-wide .stat strong {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }
}

/* Keep all project media visible and consistent across languages */
.portfolio-image {
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.045);
}
.portfolio-image img {
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: rgba(4, 8, 18, .32);
}
.portfolio-card:hover .portfolio-image img {
  transform: none;
  filter: saturate(1.05) contrast(1.03);
}
@media (min-width: 981px) {
  .portfolio-image {
    min-height: 0;
  }
}


/* Russian hero title fix v10 */
@media (min-width: 761px) {
  html:lang(ru) h1 {
    font-size: clamp(48px, 5.4vw, 76px);
    line-height: 1.02;
    letter-spacing: -.055em;
    max-width: 720px;
  }
  html:lang(ru) .hero-grid {
    align-items: center;
  }
}
