/* Byte.Team — corporate portfolio UI, built from the supplied brand assets. */
:root {
  color-scheme: dark;
  --violet-start: #9a35ff;
  --violet-end: #d52fff;
  --brand-start: #cb0086;
  --brand-end: #ed0066;
  --ink: #0e0716;
  --ink-2: #181020;
  --ink-3: #24102f;
  --text: #ffffff;
  --muted: #beb4c3;
  --soft: #eadff0;
  --surface: rgba(255, 255, 255, 0.065);
  --surface-hover: rgba(255, 255, 255, 0.105);
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.23);
  --success: #68dba3;
  --danger: #ff8ca0;
  --warning: #ffd181;
  --brand-gradient: linear-gradient(112deg, var(--brand-start), var(--brand-end));
  --violet-gradient: linear-gradient(66.28deg, var(--violet-start) 34.74%, var(--violet-end) 100%);
  --font: Inter, Onest, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: clamp(2.5rem, 5.9vw, 4.65rem);
  --h2: clamp(2rem, 4.2vw, 3.45rem);
  --body: clamp(1rem, 1.15vw, 1.125rem);
  --container: 1320px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --section: clamp(4.75rem, 8vw, 8rem);
  --header: 80px;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 28px 80px rgba(18, 0, 32, .28);
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 18%, rgba(154, 53, 255, .13), transparent 30rem),
    var(--ink);
  font: 400 var(--body)/1.65 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
::selection { color: #fff; background: var(--brand-start); }

html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .site-nav { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .language-switcher select {
  padding-right: .85rem;
  padding-left: 2.15rem;
  background-position: 15px 18px, 10px 18px;
}
html[dir="rtl"] .service-card li { padding-right: 1rem; padding-left: 0; }
html[dir="rtl"] .service-card li::before { right: 0; left: auto; }
html[dir="rtl"] .service-card__link::after { content: "  ←"; }
html[dir="rtl"] .case-list li { padding-right: 2.2rem; padding-left: 1rem; }
html[dir="rtl"] .case-list li::before { right: 1rem; left: auto; }
html[dir="rtl"] .case-faq summary { padding-right: 1.15rem; padding-left: 3.5rem; }
html[dir="rtl"] .case-faq summary::after { right: auto; left: 1.15rem; }
html[dir="rtl"] .form-field input[type="file"]::file-selector-button { margin-right: 0; margin-left: .7rem; }
html[dir="rtl"] [data-cookie-consent] { margin-right: auto; margin-left: 0; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { color: inherit; font: inherit; }
button, [type="button"], [type="submit"] { cursor: pointer; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
p, ul, ol, dl, figure { margin: 0 0 1.25rem; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 { max-width: 13ch; font-size: var(--display); }
h2 { max-width: 18ch; font-size: var(--h2); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.18; letter-spacing: -.02em; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(24, 16, 32, .72);
}

[hidden] { display: none !important; }

.container {
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  min-height: 44px;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--r-sm);
  color: #fff;
  background: var(--brand-start);
  font-weight: 700;
  transition: transform .18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-start);
  background-image: linear-gradient(rgba(30, 0, 24, .08), rgba(30, 0, 24, .08)), var(--brand-gradient);
  box-shadow: 0 12px 32px rgba(203, 0, 134, .28);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.button:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(203, 0, 134, .4); }
.button--small { min-height: 44px; padding: .68rem 1rem; font-size: .92rem; }
.button--ghost {
  border-color: rgba(255, 255, 255, .45);
  background: rgba(24, 7, 36, .16);
  background-image: none;
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.button--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); box-shadow: none; }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(35, 5, 58, .46), rgba(35, 5, 58, 0));
  transition: background .24s var(--ease), box-shadow .24s var(--ease), backdrop-filter .24s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(18, 6, 26, .88);
  box-shadow: 0 1px 0 var(--border), 0 14px 46px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px) saturate(135%);
}

body.nav-open .site-header { backdrop-filter: none; }

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: var(--header);
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
}

.site-header__logo { flex: 0 0 auto; text-decoration: none; }
.site-header__logo img { width: clamp(132px, 12vw, 176px); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.45rem, 1.5vw, 1.35rem); margin-left: auto; }
.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .45rem .2rem;
  color: rgba(255, 255, 255, .82);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav a[aria-current="location"] { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after, .site-nav a[aria-current="location"]::after { transform: scaleX(1); }
.language-switcher { position: relative; flex: 0 0 auto; }
.language-switcher select {
  min-width: 7.1rem;
  height: 42px;
  padding: 0 2.15rem 0 .85rem;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  color: #fff;
  background-color: rgba(24, 6, 38, .38);
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}
.language-switcher select:hover { border-color: rgba(255, 255, 255, .7); background-color: rgba(255, 255, 255, .1); }
.language-switcher select:focus-visible { outline: 3px solid rgba(255, 255, 255, .45); outline-offset: 2px; }
.language-switcher option { color: #17111d; background: #fff; }
.site-header__cta { flex: 0 0 auto; background: var(--brand-start); }

.site-header__menu-button {
  display: none;
  width: 48px;
  height: 48px;
  place-content: center;
  gap: 7px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(22, 5, 35, .28);
}
.site-header__menu-button > span[aria-hidden="true"] { width: 21px; height: 2px; border-radius: 3px; background: #fff; transition: transform .2s var(--ease); }
.site-header__menu-button[aria-expanded="true"] > span:nth-last-child(2) { transform: translateY(4.5px) rotate(45deg); }
.site-header__menu-button[aria-expanded="true"] > span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 1;
  inset: 0;
  padding: calc(var(--header) + 2rem) var(--gutter) 2rem;
  overflow-y: auto;
  background-image: url("/assets/brand/background.png"), var(--violet-gradient);
  background-position: center;
  background-size: cover;
}
.mobile-menu nav { display: grid; width: min(100%, 34rem); margin: 0 auto; gap: .35rem; }
.mobile-menu nav > a:not(.button) {
  display: flex;
  min-height: 56px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  font-size: clamp(1.3rem, 6vw, 2rem);
  font-weight: 720;
  text-decoration: none;
}
.mobile-menu nav > a[aria-current="page"] { padding-left: .8rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, .12); }
.mobile-menu .button { margin-top: 1.25rem; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header) + clamp(3rem, 6vw, 5.5rem)) 0 clamp(4rem, 7vw, 6.5rem);
  background-color: var(--violet-start);
  background-image: url("/assets/brand/background.png"), var(--violet-gradient);
  background-position: center, center;
  background-size: cover, cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(29, 2, 54, .22), transparent 52%, rgba(70, 0, 105, .08));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(30rem, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}
.hero__content { max-width: 44rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
  color: #ffd8ec;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; content: ""; border-radius: 3px; background: currentColor; }
.hero h1 { text-shadow: 0 10px 30px rgba(51, 0, 78, .12); }
.hero__lead, .section__lead { max-width: 45rem; margin-top: 1.4rem; color: var(--soft); font-size: clamp(1.05rem, 1.7vw, 1.27rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.hero__note { margin-top: 1.25rem; color: rgba(255, 255, 255, .76); font-size: .94rem; }

.hero-orbit {
  position: relative;
  min-height: clamp(31rem, 48vw, 39rem);
  isolation: isolate;
}
.hero-orbit::before, .hero-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
}
.hero-orbit::before { width: 64%; aspect-ratio: 1; }
.hero-orbit::after { width: 92%; aspect-ratio: 1; border-style: dashed; opacity: .5; }
.hero-orbit__core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(58%, 20rem);
  min-height: 10rem;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 2rem;
  background: rgba(49, 5, 76, .24);
  box-shadow: 0 32px 80px rgba(54, 0, 83, .22);
  backdrop-filter: blur(16px);
}
.hero-orbit__core img { width: min(100%, 264px); }
.hero-orbit__card {
  position: absolute;
  z-index: 3;
  width: min(13rem, 38%);
  min-height: 8rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-md);
  background: rgba(35, 6, 50, .34);
  box-shadow: 0 20px 50px rgba(32, 0, 52, .18);
  backdrop-filter: blur(14px);
  animation: card-float 7s ease-in-out infinite;
}
.hero-orbit__card > span { display: block; margin-bottom: .5rem; color: #ffd3ec; font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.hero-orbit__card strong { display: block; font-size: 1.22rem; }
.hero-orbit__card small { display: block; margin-top: .35rem; color: rgba(255, 255, 255, .72); line-height: 1.35; }
.hero-orbit__card--web { top: 7%; left: 4%; }
.hero-orbit__card--apps { top: 18%; right: 0; animation-delay: -1.5s; }
.hero-orbit__card--games { right: 5%; bottom: 7%; animation-delay: -3s; }
.hero-orbit__card--ai { bottom: 13%; left: 0; animation-delay: -4.5s; }

@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.section { position: relative; padding: var(--section) 0; }
.section__heading { max-width: 58rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__heading--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section__heading--split > div { max-width: 58rem; }
.section__lead { color: var(--muted); }

.page-hero {
  min-height: min(540px, 62svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-top: calc(var(--header) + clamp(4rem, 8vw, 8rem));
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  background-color: var(--violet-start);
  background-image: url("/assets/brand/background.png"), var(--violet-gradient);
  background-position: center;
  background-size: cover;
}
.page-hero::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, rgba(28, 1, 52, .05), rgba(28, 1, 52, .28)); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 15ch; }
.page-hero .section__lead { max-width: 54rem; color: rgba(255, 255, 255, .9); }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-cluster { margin-top: clamp(2.4rem, 6vw, 5.5rem); }
.service-cluster:first-of-type { margin-top: 2rem; }
.service-cluster__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}
.service-cluster__heading h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.service-cluster__heading span { color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.service-card {
  position: relative;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(154, 53, 255, .2), transparent 17rem),
    var(--surface);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.service-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  content: "";
  border: 1px solid rgba(213, 47, 255, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(154, 53, 255, .045), 0 0 0 56px rgba(154, 53, 255, .03);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(213, 47, 255, .48); background-color: var(--surface-hover); }
.service-card__index { display: block; margin-bottom: auto; color: #d98dff; font-size: .82rem; font-weight: 850; letter-spacing: .14em; }
.service-card h3 { margin: 2rem 0 1rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.service-card p { max-width: 39rem; color: var(--muted); }
.service-card ul { position: relative; z-index: 1; padding: 0; list-style: none; color: var(--soft); }
.service-card li { position: relative; padding-left: 1.15rem; }
.service-card li::before { position: absolute; top: .7em; left: 0; width: 5px; height: 5px; content: ""; border-radius: 50%; background: #d52fff; }
.service-card__link { position: relative; z-index: 2; width: fit-content; margin-top: auto; color: #ff9ed0; font-weight: 760; text-decoration: none; }
.service-card__link::after { content: "  →"; }
.service-card__link:hover { color: #fff; }

.section--projects {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 5%, rgba(154, 53, 255, .14), transparent 30rem),
    radial-gradient(circle at 95% 90%, rgba(237, 0, 102, .1), transparent 26rem),
    var(--ink-2);
}
.project-catalog-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .035);
}
.project-search { display: grid; gap: .55rem; }
.project-search span { color: var(--soft); font-size: .85rem; font-weight: 760; }
.project-search input { width: 100%; min-height: 56px; padding: .85rem 1.1rem; border: 1px solid var(--border); border-radius: var(--r-sm); color: #fff; background: rgba(255, 255, 255, .055); }
.project-search input::placeholder { color: rgba(190, 180, 195, .7); }
.project-search input:hover { border-color: var(--border-strong); }
.project-search input:focus { border-color: #d52fff; background: rgba(14, 7, 22, .72); }
.project-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: .8rem; }
.project-filter-grid label { display: grid; min-width: 0; gap: .4rem; }
.project-filter-grid label > span { color: var(--soft); font-size: .78rem; font-weight: 760; }
.project-filter-grid select {
  width: 100%;
  min-height: 48px;
  padding: .7rem 2.25rem .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: #fff;
  background-color: #291235;
}
.project-filter-grid select:hover, .project-filter-grid select:focus { border-color: var(--border-strong); }
.project-filter-grid option { color: #fff; background: var(--ink-2); }
.project-filter-grid__actions { display: flex; align-items: center; gap: .75rem; }
.project-filter-grid__actions .button { min-height: 48px; white-space: nowrap; }
.project-filter-reset { color: #ff9dcc; font-size: .88rem; font-weight: 760; }
.project-filter-reset:hover { color: #fff; }
.project-results-status { margin: 0 0 1.5rem; color: var(--muted); }
.project-results-status strong { color: #fff; }
.project-empty { display: grid; justify-items: start; gap: .8rem; margin-top: 0; }
.project-empty h3, .project-empty p { margin: 0; }

.catalog-pagination {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto minmax(8rem, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.catalog-pagination ol { display: flex; grid-column: 2; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.catalog-pagination a, .catalog-pagination [aria-current="page"] {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--soft);
  background: var(--surface);
  font-weight: 760;
  text-decoration: none;
}
.catalog-pagination a:hover { border-color: var(--border-strong); color: #fff; background: var(--surface-hover); }
.catalog-pagination [aria-current="page"] { border-color: transparent; color: #fff; background-image: var(--brand-gradient); }
.catalog-pagination__direction:first-child { grid-column: 1; justify-self: start; }
.catalog-pagination__direction:last-child { grid-column: 3; justify-self: end; }
.project-card__technologies { display: flex; flex-wrap: wrap; gap: .38rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.project-card__technologies li { padding: .28rem .52rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .035); font-size: .72rem; line-height: 1.25; }
.catalog-pagination__ellipsis { display: grid; min-width: 24px; min-height: 44px; place-items: center; color: var(--muted); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: .8rem;
}
.filter-bar button {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--soft);
  background: var(--surface);
  font-weight: 700;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.filter-bar button:hover { transform: translateY(-1px); border-color: var(--border-strong); background: var(--surface-hover); }
.filter-bar button.is-active, .filter-bar button[aria-pressed="true"] { border-color: transparent; color: #fff; background: var(--brand-start); background-image: linear-gradient(rgba(30, 0, 24, .08), rgba(30, 0, 24, .08)), var(--brand-gradient); }
.filter-bar select {
  min-height: 44px;
  padding: .6rem 2.4rem .6rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--soft);
  background-color: #291235;
}
.filter-bar option { color: #fff; background: var(--ink-2); }
.filter-bar__count { margin-left: auto; color: var(--muted); font-size: .92rem; }
.filter-bar__count strong { color: #fff; }
.section--projects .filter-bar:last-of-type { margin-bottom: 1.75rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .045);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(213, 47, 255, .46); box-shadow: var(--shadow); }
.project-cover { position: relative; min-height: 16rem; overflow: hidden; background: linear-gradient(135deg, #7a2cde, #be24ec); }
.project-card .project-cover { min-height: 0; aspect-ratio: 16 / 10; }
.project-cover::before, .project-cover::after { position: absolute; content: ""; pointer-events: none; }
.project-cover::before { width: 18rem; height: 18rem; top: -8rem; right: -5rem; border-radius: 42% 58% 62% 38%; background: rgba(255, 255, 255, .13); transform: rotate(18deg); }
.project-cover::after { width: 14rem; height: 14rem; bottom: -8rem; left: -4rem; border: 1px solid rgba(255, 255, 255, .26); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255, 255, 255, .04), 0 0 0 56px rgba(255, 255, 255, .025); }
.project-cover--web { background: linear-gradient(135deg, #642ee8, #b433ef); }
.project-cover--app { background: linear-gradient(135deg, #9934ff, #d62fff); }
.project-cover--game { background: linear-gradient(135deg, #d023c4, #ed0066); }
.project-cover--ai { background: linear-gradient(135deg, #5931b8, #b01ee8 62%, #e40083); }
.project-cover--visual::before, .project-cover--visual::after { display: none; }
.project-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.project-cover__badge {
  position: absolute;
  z-index: 2;
  top: .9rem;
  left: .9rem;
  padding: .48rem .72rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 16, 32, .78);
  box-shadow: 0 8px 24px rgba(14, 7, 22, .22);
  backdrop-filter: blur(10px);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.project-cover__placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.project-cover__placeholder span { color: rgba(255, 255, 255, .76); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.project-cover__placeholder strong { max-width: 15ch; margin-top: .45rem; font-size: clamp(1.45rem, 2.6vw, 2.15rem); line-height: 1.05; letter-spacing: -.035em; }
.project-card__body { display: flex; min-height: 22rem; flex-direction: column; padding: 1.5rem; }
.project-card__category { margin-bottom: .65rem; color: #f790c6; font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.project-card h3 { margin-bottom: .8rem; }
.project-card h3 a { text-decoration: none; }
.project-card h3 a::after { position: absolute; inset: 0; content: ""; }
.project-card h3 a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 4px; }
.project-card:has(h3 a:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.project-card__body > p:not(.project-card__category) { color: var(--muted); }
.project-card__meta { display: grid; gap: .55rem; margin-top: auto; }
.project-card__meta div { display: grid; grid-template-columns: 5rem 1fr; gap: .5rem; padding-top: .55rem; border-top: 1px solid var(--border); }
.project-card__meta dt { color: var(--muted); font-size: .78rem; }
.project-card__meta dd { margin: 0; font-size: .83rem; }
.project-card__link { margin-top: 1.15rem; color: #ff9dcc; font-weight: 760; }
.project-card:hover .project-card__link { color: #fff; }

.notice {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 209, 129, .25);
  border-radius: var(--r-sm);
  color: #f5e9dc;
  background: rgba(255, 209, 129, .07);
}
.project-grid + .notice { margin-top: 1rem; }

.showreel {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(154, 53, 255, .15), rgba(237, 0, 102, .08));
}
.showreel__copy p { color: var(--muted); }
.showreel__media, .showreel__missing { min-height: 22rem; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-md); background: #14071e; }
.showreel__media video { width: 100%; min-height: 22rem; object-fit: cover; }
.showreel__missing { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; }
.showreel__missing > span { display: grid; width: 64px; height: 64px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; background: var(--brand-gradient); }
.showreel__missing p { color: var(--muted); }

.process-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; padding: 0; list-style: none; counter-reset: stage; }
.process-grid::before { position: absolute; top: 2.45rem; right: 4%; left: 4%; height: 1px; content: ""; background: linear-gradient(90deg, var(--violet-start), var(--brand-end)); }
.process-grid li { position: relative; z-index: 1; min-height: 19rem; padding: 1.45rem; border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255, 255, 255, .045); }
.process-grid li > span { display: grid; width: 3.3rem; height: 3.3rem; place-items: center; margin-bottom: 2rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: var(--ink-2); color: #f692ca; font-size: .77rem; font-weight: 850; }
.process-grid h3 { min-height: 3.7rem; margin-bottom: .8rem; }
.process-grid p { color: var(--muted); font-size: .95rem; }

.section--about {
  overflow: hidden;
  background-color: var(--violet-start);
  background-image: url("/assets/brand/background.png"), var(--violet-gradient);
  background-position: center;
  background-size: cover;
}
.section--about .section__lead { color: rgba(255, 255, 255, .88); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.benefit-grid article { min-height: 15rem; padding: clamp(1.3rem, 2.5vw, 2rem); border: 1px solid rgba(255, 255, 255, .26); border-radius: var(--r-md); background: rgba(37, 5, 56, .25); backdrop-filter: blur(10px); }
.benefit-grid h3 { margin-bottom: .8rem; }
.benefit-grid p { color: rgba(255, 255, 255, .8); }
.case-details .benefit-grid article { background: var(--surface); }

.ai-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.75rem);
  border: 1px solid rgba(213, 47, 255, .28);
  border-radius: var(--r-lg);
  background:
    linear-gradient(115deg, rgba(154, 53, 255, .22), rgba(237, 0, 102, .08)),
    var(--ink-2);
}
.ai-panel::after { position: absolute; top: -12rem; right: -10rem; width: 30rem; height: 30rem; content: ""; border: 1px solid rgba(213, 47, 255, .25); border-radius: 46% 54% 41% 59%; box-shadow: 0 0 0 38px rgba(154, 53, 255, .035), 0 0 0 76px rgba(154, 53, 255, .02); animation: slow-turn 22s linear infinite; }
.ai-panel__heading, .ai-panel__tasks { position: relative; z-index: 1; }
.ai-panel__heading p { color: var(--muted); }
.ai-panel__tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: .7rem; padding: 0; list-style: none; }
.ai-panel__tasks li { min-height: 5.5rem; display: flex; align-items: flex-end; padding: 1rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: rgba(255, 255, 255, .055); }
@keyframes slow-turn { to { transform: rotate(360deg); } }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: clamp(2rem, 4vw, 4rem); color: rgba(255, 255, 255, .72); font-size: .88rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current="page"] { color: #fff; }

.case-content { background: var(--ink); }
.case-details { background: var(--ink-2); }
.case-content__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); }
.case-content__grid > div { min-width: 0; }
.case-content__grid h2 { margin-bottom: 1.3rem; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.case-content__grid p { color: var(--muted); }
.case-list { display: grid; gap: .65rem; padding: 0; list-style: none; }
.case-list li { position: relative; padding: .85rem 1rem .85rem 2.2rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.case-list li::before { position: absolute; top: 1.34rem; left: 1rem; width: 7px; height: 7px; content: ""; border-radius: 50%; background: var(--brand-end); box-shadow: 0 0 0 4px rgba(237, 0, 102, .12); }
.tag-list { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; list-style: none; }
.tag-list li { padding: .58rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

.case-hero { min-height: min(780px, 86svh); padding-top: calc(var(--header) + 3.5rem); background-color: var(--violet-start); background-image: url("/assets/brand/background.png"), var(--violet-gradient); background-position: center; background-size: cover; }
.case-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(24rem, 1.1fr); grid-template-areas: "heading heading" "copy cover"; align-items: start; column-gap: clamp(2rem, 5vw, 5rem); row-gap: clamp(2rem, 4vw, 3.5rem); }
.case-hero__heading { grid-area: heading; min-width: 0; }
.case-hero__heading h1 { max-width: 100%; text-wrap: balance; }
.case-hero__copy { grid-area: copy; min-width: 0; }
.case-hero__copy .section__lead { color: rgba(255, 255, 255, .88); }
.case-hero__participation { max-width: 44rem; margin-top: 1.1rem; padding: .8rem 1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 1rem; background: rgba(255, 255, 255, .1); color: #fff; font-size: .94rem; line-height: 1.55; }
.case-hero__description { max-width: 44rem; margin-top: 1rem; color: rgba(255, 255, 255, .72); font-size: .96rem; line-height: 1.65; }
.case-meta { display: grid; gap: .55rem; margin-top: 2rem; }
.case-meta div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-top: .7rem; border-top: 1px solid rgba(255, 255, 255, .26); }
.case-meta dt { color: rgba(255, 255, 255, .7); font-size: .85rem; }
.case-meta dd { margin: 0; }
.project-cover.case-hero__cover { grid-area: cover; min-height: 0; aspect-ratio: 16 / 10; border: 1px solid rgba(255, 255, 255, .32); border-radius: var(--r-lg); box-shadow: var(--shadow); }

.case-gallery { background: var(--ink); }
.case-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.case-gallery__grid figure { overflow: hidden; margin: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.case-gallery__grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-gallery__grid figcaption { padding: .8rem 1rem .95rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; line-height: 1.45; }
.case-gallery__missing { min-height: 19rem; display: grid; place-content: center; padding: 2rem; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); text-align: center; background: var(--surface); }
.case-gallery__missing strong { font-size: 1.45rem; }
.case-gallery__missing p { max-width: 43rem; margin: .75rem auto 0; color: var(--muted); }
.case-result { background: linear-gradient(135deg, rgba(154, 53, 255, .15), rgba(237, 0, 102, .08)), var(--ink-2); }
.case-hero__name { margin-bottom: .65rem; color: rgba(255, 255, 255, .78); font-size: .88rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.case-hero figure { margin: 0; }
.case-evidence { margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--r-sm); background: rgba(20, 6, 31, .2); }
.case-evidence strong { display: block; margin-bottom: .35rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.case-evidence p { margin: .25rem 0 0; color: rgba(255, 255, 255, .76); font-size: .84rem; line-height: 1.55; }
.case-content h3, .case-details h3, .case-architecture h3 { margin: 1.65rem 0 .85rem; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.case-flow { display: grid; gap: .7rem; padding: 0; list-style: none; counter-reset: flow; }
.case-flow li { display: grid; grid-template-columns: 2.65rem 1fr; align-items: start; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.case-flow span { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: #ff9dcc; font-size: .76rem; font-weight: 850; }
.case-flow p { margin: .32rem 0 0; color: var(--soft); }
.case-architecture { background: var(--ink); }
.case-architecture__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.case-architecture__grid article { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.case-architecture__grid h3 { margin-top: 0; }
.case-topics { background: var(--ink-2); }
.case-topics__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0; list-style: none; counter-reset: project-topic; }
.case-topics__grid li { position: relative; min-width: 0; padding: clamp(1.25rem, 2.8vw, 1.8rem); border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255, 255, 255, .045); }
.case-topics__grid li > span { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; margin-bottom: 1rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #ffb3d8; font-size: .72rem; font-weight: 850; }
.case-topics__grid h3 { max-width: 34rem; margin: 0 0 .75rem; color: #fff; font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.32; }
.case-topics__grid p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.case-topics__focus { display: grid; gap: .7rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.case-topics__focus article { padding: .9rem 1rem; border: 1px solid rgba(255, 255, 255, .09); border-radius: calc(var(--r-md) * .72); background: rgba(10, 5, 18, .32); }
.case-topics__focus h4 { margin: 0 0 .45rem; color: #fff; font-size: .92rem; line-height: 1.4; }
.case-topics__focus p { font-size: .88rem; line-height: 1.58; }
.case-decisions { background: var(--ink-2); }
.case-decisions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.case-decisions__grid article { min-width: 0; padding: clamp(1.25rem, 2.4vw, 1.8rem); border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255, 255, 255, .045); }
.case-decisions__grid h3 { min-height: 3.6rem; margin: .2rem 0 1.2rem; }
.case-decisions__grid dl { display: grid; gap: .9rem; }
.case-decisions__grid dl div { padding-top: .8rem; border-top: 1px solid var(--border); }
.case-decisions__grid dt { margin-bottom: .28rem; color: #ff9dcc; font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.case-decisions__grid dd { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.case-delivery { background: var(--ink); }
.case-delivery__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; padding: 0; list-style: none; }
.case-delivery__grid li { min-width: 0; min-height: 17rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.case-delivery__grid li > span { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; margin-bottom: 1.4rem; border-radius: 50%; color: #fff; background: var(--brand-gradient); font-size: .75rem; font-weight: 850; }
.case-delivery__grid h3 { margin-bottom: .65rem; font-size: 1.12rem; }
.case-delivery__grid p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.case-delivery__grid strong { display: block; margin-top: 1rem; color: #ff9dcc; font-size: .8rem; line-height: 1.45; }
.case-result__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 2rem; padding: 0; list-style: none; }
.case-result__list li { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: rgba(255, 255, 255, .05); }
.case-faq { background: var(--ink); }
.case-faq__layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.case-faq__layout > div:first-child { position: sticky; top: calc(var(--header) + 2rem); }
.case-faq__layout > div:first-child p:last-child { color: var(--muted); }
.case-faq__items { display: grid; gap: .75rem; }
.case-faq details { overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.case-faq summary { position: relative; min-height: 64px; display: flex; align-items: center; padding: 1rem 3.5rem 1rem 1.15rem; cursor: pointer; font-weight: 780; line-height: 1.4; list-style: none; }
.case-faq summary::-webkit-details-marker { display: none; }
.case-faq summary::after { position: absolute; right: 1.15rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; content: "+"; border: 1px solid var(--border-strong); border-radius: 50%; color: #ff9dcc; }
.case-faq details[open] summary::after { content: "−"; }
.case-faq summary:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.case-faq details p { margin: 0; padding: 0 1.15rem 1.2rem; color: var(--muted); }
.case-relations { background: var(--ink-2); }
.case-relations__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.case-relations__links a { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: #fff; font-weight: 750; text-decoration: none; }
.case-relations__links a:hover { border-color: rgba(213, 47, 255, .55); background: rgba(213, 47, 255, .09); }
.case-relations__links a > span:last-child { color: #ff9dcc; font-size: 1.35rem; }

.section--contact {
  background:
    radial-gradient(circle at 0 100%, rgba(154, 53, 255, .16), transparent 32rem),
    var(--ink-2);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(32rem, 1.28fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 2rem; }
.contact-links > a { color: #fff; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 720; text-decoration-color: #d52fff; }
.contact-links > p { color: var(--muted); }

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .055);
  box-shadow: var(--shadow);
}
.form-field { min-width: 0; }
.form-field--wide { grid-column: 1 / -1; }
.form-field--honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-field label, .contact-form > label { display: block; margin-bottom: .48rem; color: var(--soft); font-size: .88rem; font-weight: 700; }
.form-field label span { color: var(--muted); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: #fff;
  background: rgba(14, 7, 22, .62);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field select { background-color: #201029; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--border-strong); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #d52fff; background: rgba(14, 7, 22, .82); }
.form-field input[type="file"] { padding: .65rem; }
.form-field input[type="file"]::file-selector-button { min-height: 36px; margin-right: .7rem; padding: .45rem .7rem; border: 0; border-radius: 9px; color: #fff; background: #5e2582; font-weight: 700; }
.form-consent { grid-column: 1 / -1; display: grid !important; grid-template-columns: 24px 1fr; align-items: start; gap: .7rem; margin: .2rem 0 0; }
.form-consent input { width: 22px; height: 22px; margin: .12rem 0 0; accent-color: var(--brand-end); }
.form-consent a { color: #ff9dce; }
.form-field__error { display: block; margin-top: .4rem; color: var(--danger); font-size: .83rem; }
.contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.contact-form__status { flex: 1 1 16rem; margin: 0; color: var(--soft); }
.contact-form__status.is-error, .form-status.is-error { color: var(--danger); }
.contact-form__status.is-success, .form-status.is-success { color: var(--success); }
.contact-form[aria-busy="true"] { opacity: .76; }

.legal-page, .error-page { min-height: 100svh; padding-top: calc(var(--header) + 4rem); }
.legal-page__content { max-width: 880px; }
.legal-page__content > h1 { max-width: 13ch; margin-bottom: 1rem; overflow-wrap: anywhere; hyphens: auto; }
.legal-page__updated { color: var(--muted); }
.legal-page__content > section { padding: 1.6rem 0; border-top: 1px solid var(--border); }
.legal-page__content h2 { margin-bottom: 1rem; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.legal-page__content p { color: var(--muted); }
.legal-page__content a:not(.button) { color: #ff9dce; }

.error-page { display: grid; align-items: center; background-color: var(--violet-start); background-image: url("/assets/brand/background.png"), var(--violet-gradient); background-position: center; background-size: cover; }
.error-page__content { text-align: center; }
.error-page__content h1, .error-page__content .section__lead { margin-right: auto; margin-left: auto; }
.error-page__content .section__lead { color: rgba(255, 255, 255, .86); }
.error-page__code { margin: 0; color: rgba(255, 255, 255, .14); font-size: clamp(7rem, 25vw, 18rem); font-weight: 900; line-height: .75; letter-spacing: -.09em; }
.error-page__content .eyebrow { justify-content: center; margin-top: -2rem; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }

.site-footer { padding: clamp(3.5rem, 6vw, 5.5rem) 0 1.5rem; border-top: 1px solid var(--border); background: #0b0510; }
.site-footer__grid { display: grid; grid-template-columns: 1.15fr 1fr .72fr .72fr; gap: clamp(1.5rem, 4vw, 4rem); }
.site-footer__brand img { width: 176px; }
.site-footer__brand p { max-width: 28rem; margin-top: 1.25rem; color: var(--muted); }
.site-footer__nav, .site-footer__contacts { display: grid; align-content: start; justify-items: start; gap: .55rem; }
.site-footer__nav a, .site-footer__contacts a { min-height: 34px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.site-footer__nav a:hover, .site-footer__contacts a:hover, .site-footer__nav a[aria-current="page"] { color: #fff; }
.site-footer__contacts .eyebrow { margin-bottom: .4rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.5rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: #918797; font-size: .79rem; }
.site-footer__consent-settings { min-height: 40px; padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: transparent; }

[data-cookie-consent] {
  position: fixed;
  z-index: 300;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: min(calc(100% - 2rem), 52rem);
  margin-left: auto;
  padding: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: rgba(24, 16, 32, .96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
[data-cookie-consent] p { color: var(--muted); }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .site-nav { gap: .65rem; }
  .site-nav a { font-size: .86rem; }
  .site-header__cta { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(25rem, .9fr); gap: 2rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-grid::before { display: none; }
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 2rem; }
  .case-delivery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  :root { --header: 72px; }
  .site-nav, .site-header__cta { display: none; }
  .language-switcher { margin-left: auto; }
  html[dir="rtl"] .language-switcher { margin-right: auto; margin-left: 0; }
  .language-switcher select { min-width: 6.7rem; height: 40px; }
  .site-header__menu-button { display: grid; margin-left: 0; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero__content { max-width: 48rem; }
  .hero-orbit { min-height: 32rem; width: min(100%, 42rem); margin: 0 auto; }
  .showreel, .ai-panel, .contact-grid, .case-hero__grid { grid-template-columns: 1fr; }
  .case-hero__grid { grid-template-areas: "heading" "copy" "cover"; }
  .contact-grid > div:first-child { max-width: 45rem; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-hero { min-height: auto; }
  .case-hero__cover { min-height: 23rem; }
  .case-topics__grid, .case-decisions__grid, .case-relations__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-faq__layout { grid-template-columns: 1fr; }
  .case-faq__layout > div:first-child { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .project-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-filter-grid__actions { align-self: end; min-height: 48px; }
}

@media (max-width: 680px) {
  :root { --section: 4.5rem; --gutter: 1rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.65rem); }
  .hero { padding-top: calc(var(--header) + 2.75rem); }
  .hero__actions { align-items: stretch; }
  .hero__actions .button { flex: 1 1 13rem; }
  .hero-orbit { min-height: 28rem; }
  .hero-orbit__core { width: 64%; min-height: 8rem; border-radius: 1.5rem; }
  .hero-orbit__card { width: 42%; min-height: 6.8rem; padding: .85rem; border-radius: 1rem; }
  .hero-orbit__card strong { font-size: 1rem; }
  .hero-orbit__card small { font-size: .72rem; }
  .page-hero { min-height: min(500px, 66svh); }
  .section__heading--split { display: block; }
  .section__heading--split .button { margin-top: 1.5rem; }
  .service-grid, .project-grid, .benefit-grid, .process-grid, .case-content__grid, .case-gallery__grid, .case-architecture__grid, .case-topics__grid, .case-decisions__grid, .case-result__list, .case-relations__links { grid-template-columns: 1fr; }
  .service-card { min-height: 24rem; }
  .project-cover { min-height: 14rem; }
  .process-grid li, .benefit-grid article { min-height: auto; }
  .process-grid h3 { min-height: 0; }
  .ai-panel__tasks { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 1.15rem; }
  .form-field { grid-column: 1; }
  .contact-form__footer { align-items: stretch; }
  .contact-form__footer .button { width: 100%; }
  .filter-bar { align-items: stretch; }
  .filter-bar button { flex: 1 1 auto; }
  .filter-bar select { width: 100%; }
  .filter-bar__count { width: 100%; margin: .4rem 0 0; }
  .project-catalog-form { padding: 1rem; }
  .project-filter-grid { grid-template-columns: 1fr; }
  .project-filter-grid__actions { align-items: stretch; flex-direction: column; }
  .project-filter-grid__actions .button, .project-filter-reset { width: 100%; text-align: center; }
  .catalog-pagination { grid-template-columns: 1fr 1fr; }
  .catalog-pagination ol { grid-column: 1 / -1; grid-row: 1; }
  .catalog-pagination__direction:first-child { grid-column: 1; grid-row: 2; }
  .catalog-pagination__direction:last-child { grid-column: 2; grid-row: 2; }
  .case-meta div { grid-template-columns: 1fr; gap: .15rem; }
  .case-delivery__grid { grid-template-columns: 1fr; }
  .case-delivery__grid li { min-height: auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .site-header__logo img { width: 126px; }
  .language-switcher select { min-width: 4.75rem; width: 4.75rem; padding-left: .65rem; font-size: .76rem; }
  .hero-orbit { min-height: 25rem; }
  .hero-orbit__core { width: 70%; min-height: 7rem; padding: 1.1rem; }
  .hero-orbit__card { width: 45%; min-height: 6.2rem; }
  .hero-orbit__card--apps { right: -2%; }
  .hero-orbit__card--games { right: 0; }
  .hero-orbit__card--web { left: 0; }
  .hero-orbit__card--ai { left: -2%; }
  .button { width: 100%; }
  .contact-links .button { width: auto; }
}

@media (min-width: 1800px) {
  .hero-orbit { min-height: 42rem; }
  .project-cover { min-height: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #111; background: #fff; }
  .site-header, .mobile-menu, .site-footer, .hero__actions, .filter-bar, .project-catalog-form, .catalog-pagination, .section--contact { display: none !important; }
  .hero, .page-hero, .case-hero, .section--about { min-height: 0; color: #111; background: #fff; }
  h1, h2, h3, .hero__lead, .section__lead, .eyebrow { color: #111; text-shadow: none; }
  .section { padding: 2rem 0; }
  .project-card, .service-card, .benefit-grid article { break-inside: avoid; border-color: #bbb; color: #111; background: #fff; box-shadow: none; }
}
