/*
Theme Name: RudWeb
Theme URI: https://rudweb.ru/
Author: RudWeb
Author URI: https://rudweb.ru/
Description: Кастомная тема портфолио RudWeb с управляемыми проектами через CPT и ACF.
Version: 1.2.10
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: rudweb
*/

:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .07);
  --glass-2: rgba(255, 255, 255, .12);
  --cyan: #7cf9ff;
  --violet: #9b8cff;
  --gold: #f8d87c;
  --pink: #70b3ff;
  --radius: 28px;
  --container: 1420px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #000;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(80vw 80vw at 15% 0%, rgba(124, 249, 255, .18), transparent 45%),
    radial-gradient(70vw 70vw at 90% 20%, rgba(155, 140, 255, .16), transparent 48%),
    linear-gradient(180deg, #040409 0%, #000 52%, #050505 100%);
}

.page-bg:before {
  position: absolute;
  inset: 0;
  content: "";
  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: 72px 72px;
  mask-image: radial-gradient(circle at 50% 15%, #000 0, transparent 70%);
}

.ray {
  position: absolute;
  top: -20%;
  width: 2px;
  height: 140%;
  background: linear-gradient(180deg, transparent, rgba(124, 249, 255, .45), transparent);
  filter: blur(1px);
  transform-origin: top;
  animation: rayMove 9s linear infinite;
}

.ray-1 {
  left: 16%;
  transform: rotate(24deg);
}

.ray-2 {
  left: 55%;
  transform: rotate(-18deg);
  animation-delay: -4s;
}

.ray-3 {
  left: 88%;
  transform: rotate(12deg);
  animation-delay: -7s;
}

.orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .4;
  animation: float 9s ease-in-out infinite;
}

.orb-1 {
  left: 5%;
  top: 20%;
  background: var(--cyan);
}

.orb-2 {
  right: 2%;
  top: 45%;
  background: var(--violet);
  animation-delay: -3s;
}

@keyframes rayMove {
  50% {
    opacity: .25;
    transform: translateX(50px) rotate(20deg);
  }
}

@keyframes float {
  50% {
    transform: translate3d(20px, -35px, 0) scale(1.12);
  }
}

.header {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 20px 20px 0;
}

.glass-nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  padding: 14px 20px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #06070a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 11px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.nav-cta {
  padding: 10px 14px;
  color: rgba(255, 255, 255, .82);
  border-radius: 12px;
  transition: .2s;
}

.nav a:hover,
.nav-cta:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transform: translateY(-1px);
}

.nav-cta {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: .2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
  transition: .25s ease;
}

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.glass-nav.is-menu-open .nav-toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.glass-nav.is-menu-open .nav-toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

section {
  position: relative;
  padding: 100px 20px;
}

.section-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 560px);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 76px);
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 40px;
  padding-right: 0;
  padding-left: 0;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 20px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
}

h1,
h2 {
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.065em;
}

h1 {
  font-size: clamp(56px, 7.5vw, 126px);
  margin-bottom: 24px;
}

h1 span,
h2 span {
  background: linear-gradient(135deg, var(--cyan), var(--violet) 60%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead,
.dev-copy p,
.telegram-card p,
.brief-desc,
.search-game p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.btn-primary {
  color: #05070a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: 0;
}

.btn-ghost {
  background: rgba(255, 255, 255, .08);
}

.hero-visual {
  min-height: 500px;
  perspective: 1000px;
}

.card-swap-container {
  position: relative;
  width: 100%;
  height: 520px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.case-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  width: min(500px, 92vw);
  height: 320px;
  padding: 20px;
  color: #e8e8e8;
  background: rgba(0, 0, 0, .56);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 22px;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, .56),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: transform .7s ease, opacity .7s ease, filter .7s ease;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.card-one {
  transform: translate(-54%, -55%) rotate(-7deg);
  z-index: 3;
}

.card-two {
  transform: translate(-46%, -44%) rotate(7deg) translateZ(-80px);
  z-index: 2;
  animation-delay: -2s;
}

.card-three {
  transform: translate(-50%, -34%) rotate(-1deg) translateZ(-150px);
  z-index: 1;
  animation-delay: -4s;
}

.case-card[data-position="0"] {
  transform: translate(-54%, -55%) rotate(-7deg) translateZ(0);
  z-index: 3;
  opacity: 1;
  filter: none;
}

.case-card[data-position="1"] {
  transform: translate(-46%, -44%) rotate(7deg) translateZ(-80px);
  z-index: 2;
  opacity: .86;
  filter: saturate(.9) brightness(.9);
}

.case-card[data-position="2"] {
  transform: translate(-50%, -34%) rotate(-1deg) translateZ(-150px);
  z-index: 1;
  opacity: .68;
  filter: saturate(.75) brightness(.75);
}

.case-card.is-active .case-preview {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 0 34px rgba(124, 249, 255, .12);
}

.card-label {
  margin-bottom: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, .88);
}

.card-lamp {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--gold);
}

.case-preview {
  display: grid;
  align-content: center;
  gap: 8px;
  flex: 1;
  min-height: 0;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0, rgba(124, 249, 255, .35), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
  border-radius: 17px;
}

.case-preview span {
  font-size: clamp(50px, 8vw, 86px);
  font-weight: 950;
  letter-spacing: -.07em;
}

.case-preview strong {
  font-size: 34px;
}

.case-preview em {
  color: rgba(255, 255, 255, .68);
  font-style: normal;
}

.case-preview.has-image {
  display: block;
  padding: 0;
  background: #08090d;
}

.case-preview__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.domains {
  background:
    radial-gradient(circle at 80% 20%, rgba(155, 140, 255, .35), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
}

.games {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 112, 217, .32), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
}

@keyframes cardPulse {
  50% {
    margin-top: -12px;
  }
}

.section-heading {
  text-align: center;
  margin: 0 auto 32px;
}

.works-title__mobile-break {
  display: none;
}

.section-heading h2,
.dev-copy h2,
.brief-title,
.telegram-card h2 {
  font-size: clamp(42px, 6vw, 84px);
  margin-bottom: 18px;
}

.glass-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  box-shadow:
    0 22px 80px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .11);
  backdrop-filter: blur(16px);
}

.search-game h3 {
  font-size: 38px;
  margin-bottom: 10px;
}

.search-top {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.search-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}

.mini-interactive-input {
  display: block;
  width: 100%;
  margin: 22px 0;
  padding: 18px 20px;
  color: rgba(255, 255, 255, .86);
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  outline: none;
}

.mini-interactive-input:focus {
  border-color: rgba(124, 249, 255, .65);
  box-shadow: 0 0 0 4px rgba(124, 249, 255, .08);
}

.card-swap-container.is-dragging {
  cursor: grabbing;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.keyword-cloud button {
  padding: 10px 14px;
  color: #fff;
  cursor: pointer;
  background: rgba(124, 249, 255, .08);
  border: 1px solid rgba(124, 249, 255, .18);
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.keyword-cloud button:hover,
.keyword-cloud button.is-selected {
  color: #06070a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
  transform: translateY(-1px);
}


.works-section {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .11);
  backdrop-filter: blur(16px);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.work-card:before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  opacity: .78;
  background:
    radial-gradient(circle at 24% 0, rgba(124, 249, 255, .18), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(155, 140, 255, .16), transparent 36%);
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 249, 255, .34);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .48),
    0 0 40px rgba(124, 249, 255, .08),
    inset 0 1px 0 rgba(255, 255, 255, .13);
}

.work-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1 / .78;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background:
    radial-gradient(circle at 18% 4%, rgba(124, 249, 255, .35), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035));
  border: 0;
  border-radius: 21px;
}

.work-photo:after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .28)),
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, .14), transparent 30%);
}

.work-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .35s ease, filter .35s ease;
}

.work-card:hover .work-photo img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.work-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 5px 4px;
}

.work-service,
.project-modal__service {
  display: inline-grid;
  place-items: center;
  width: max-content;
  min-width: 48px;
  margin-bottom: 14px;
  padding: 9px 12px;
  color: #05070a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(124, 249, 255, .12);
}

.work-info h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.work-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.work-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tags span {
  padding: 8px 10px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.work-button {
  width: 100%;
  min-height: 48px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
}

.work-button:hover {
  background: linear-gradient(135deg, rgba(124, 249, 255, .28), rgba(155, 140, 255, .22));
  border-color: rgba(124, 249, 255, .32);
}

.work-card--empty {
  grid-column: 1 / -1;
  min-height: 260px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-modal.is-open {
  display: flex;
}

.project-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px);
}

.project-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  height: auto;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0, rgba(124, 249, 255, .12), transparent 34%),
    radial-gradient(circle at 100% 14%, rgba(155, 140, 255, .12), transparent 34%),
    rgba(10, 12, 18, .92);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  box-shadow:
    0 30px 120px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.project-modal__close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
}

.project-modal__close::before,
.project-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, .82);
  border-radius: 999px;
  transform-origin: center;
}

.project-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project-modal__grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 30px;
  height: auto;
  min-height: 0;
  align-items: center;
  padding: 30px;
}

.project-modal__left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: auto;
}

.project-gallery__tabs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.project-gallery__tabs[hidden] {
  display: none;
}

.project-gallery__tabs::-webkit-scrollbar {
  display: none;
}

.project-gallery__tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, .70);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.project-gallery__tab:hover,
.project-gallery__tab:focus-visible {
  color: #fff;
  border-color: rgba(124, 249, 255, .35);
}

.project-gallery__tab.is-active {
  color: #070a10;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
}

.project-gallery {
  position: relative;
  flex: 0 0 auto;
  height: clamp(430px, 42vw, 560px);
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
}

.project-gallery__scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.project-gallery__scroll::-webkit-scrollbar {
  width: 8px;
}

.project-gallery__scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
}

.project-gallery__scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
}

.project-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.project-gallery__image + .project-gallery__image {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.project-gallery__hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .96);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(0, 0, 0, .50);
  border: 1px solid rgba(124, 249, 255, .30);
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow:
    0 0 18px rgba(124, 249, 255, .24),
    0 0 36px rgba(155, 140, 255, .16),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  pointer-events: none;
}


.project-modal__content {
  align-self: center;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding: 16px 8px 10px;
  scrollbar-width: thin;
}

.project-modal__content h3 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: .92;
  letter-spacing: -.055em;
}

.project-modal__text {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.project-modal__rows {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.project-modal__rows div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
}

.project-modal__rows span {
  color: rgba(255, 255, 255, .62);
}

.project-modal__rows strong {
  text-align: right;
}

.project-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.project-modal__site,
.project-modal__cta {
  justify-content: center;
  width: 100%;
}

.project-modal__site[hidden] {
  display: none !important;
}

.brief-form__message {
  min-height: 22px;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 14px;
  line-height: 1.45;
}

.brief-form__message.is-error {
  color: #ff9ca8;
}

.brief-form [data-brief-submit].is-policy-disabled {
  cursor: not-allowed;
  opacity: .85;
}

.brief-form [data-brief-submit].is-submitting {
  cursor: wait;
  opacity: .65;
}

.brief-form [data-brief-submit]:disabled:hover {
  transform: none;
  box-shadow: none;
}

body.modal-open {
  overflow: hidden;
}

.container-scroll {
  width: 100%;
  margin: 0 auto;
}

.tablet-frame {
  width: min(1400px, 100%);
  margin: 0 auto;
  background: linear-gradient(180deg, #282828, #272727);
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  aspect-ratio: 21 / 9;
}

.tablet-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, .55);
  border: 4px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
}

.tablet-topbar {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.tablet-camera {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, var(--cyan), #2a2a2a 60%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(124, 249, 255, .5);
}

.tablet-screen {
  position: absolute;
  inset: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 140% at 10% 0, rgba(255, 255, 255, .08), #0b0b0f 40%);
  border-radius: 16px;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  height: 100%;
  padding: 18px;
}

.process-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: #fff;
  background:
    linear-gradient(rgba(14, 16, 24, .75), rgba(14, 16, 24, .75)) padding-box,
    linear-gradient(120deg, var(--cyan), var(--violet) 50%, var(--gold)) border-box;
  border: 1px solid transparent;
  border-radius: 26px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
}

.process-card:after {
  position: absolute;
  right: 12px;
  bottom: -26px;
  color: transparent;
  font-size: clamp(80px, 13vw, 160px);
  font-weight: 950;
  line-height: 1;
  content: attr(data-step);
  opacity: .8;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
}

.corner-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  font-weight: 900;
  background:
    linear-gradient(rgba(16, 16, 20, .8), rgba(16, 16, 20, .8)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--violet)) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
}

.process-title {
  margin-bottom: 14px;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.05;
}

.wavy-list {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, .83);
  list-style: none;
}

.wavy-line {
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
}

.pill-tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 18px;
  font-weight: 700;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.dev-section {
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: center;
  gap: 50px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.dev-copy {
  max-width: 680px;
}

.dev-action {
  margin-top: 28px;
}

.dev-action .btn {
  min-width: 260px;
  min-height: 58px;
  font-size: 18px;
}

.phone-mockup {
  position: relative;
  justify-self: center;
  width: 280px;
  height: 560px;
  padding: 14px;
  background: linear-gradient(180deg, #262626, #050505);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 42px;
  box-shadow: 0 30px 100px rgba(124, 249, 255, .16);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 22px 18px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -5%, rgba(124, 249, 255, .28), transparent 36%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    #07080c;
  background-size: auto, 24px 24px, 24px 24px, auto;
  border-radius: 32px;
}

.phone-screen::after {
  position: absolute;
  right: -80px;
  bottom: -85px;
  width: 190px;
  height: 190px;
  content: "";
  background: rgba(155, 140, 255, .3);
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
}

.phone-ui__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  font-size: 15px;
  font-weight: 900;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
}

.app-badge--logo img {
  display: block;
  width: auto;
  height: 18px;
  max-width: 86px;
  object-fit: contain;
}

.phone-ui__live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.phone-ui__live i {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--cyan);
}

.phone-ui__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-height: 235px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(124, 249, 255, .16), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.phone-ui__stage::before,
.phone-ui__stage::after {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 155px;
  height: 155px;
  content: "";
  border: 1px solid rgba(124, 249, 255, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.phone-ui__stage::after {
  width: 205px;
  height: 205px;
  border-color: rgba(155, 140, 255, .1);
}

.phone-ui__orb {
  position: absolute;
  top: 17%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  color: #07080c;
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: -.08em;
  background:
    radial-gradient(circle at 32% 25%, #fff 0, rgba(255, 255, 255, .72) 8%, transparent 23%),
    linear-gradient(135deg, var(--cyan), #70b3ff 48%, var(--violet));
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  box-shadow:
    0 20px 42px rgba(91, 190, 255, .26),
    0 0 54px rgba(155, 140, 255, .22),
    inset -16px -18px 28px rgba(83, 48, 205, .25);
  transform: translateX(-50%);
  animation: phoneOrbFloat 5s ease-in-out infinite;
}

.phone-ui__orb span {
  transform: translateY(-1px);
}

.phone-ui__chip {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 39px;
  height: 27px;
  font-size: 10px;
  font-weight: 900;
  background: rgba(7, 8, 12, .68);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
}

.phone-ui__chip--ui {
  top: 24%;
  left: 10%;
  color: var(--cyan);
  animation: phoneChipFloat 4s ease-in-out infinite;
}

.phone-ui__chip--seo {
  top: 44%;
  right: 8%;
  color: #b8adff;
  animation: phoneChipFloat 4.6s ease-in-out -1.4s infinite;
}

.phone-ui__headline {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: 14px;
  z-index: 4;
}

.phone-ui__headline small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .52);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .17em;
}

.phone-ui__headline strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.04em;
}

.phone-ui__headline em {
  color: var(--cyan);
  font-style: normal;
}

.phone-ui__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.phone-ui__stats > div {
  padding: 11px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
}

.phone-ui__stats span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .55);
  font-size: 8px;
  font-weight: 700;
}

.phone-ui__stats strong {
  font-size: 19px;
  line-height: 1;
}

.phone-ui__stats small {
  color: rgba(255, 255, 255, .42);
  font-size: 8px;
}

.phone-ui__launch {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  background: linear-gradient(110deg, rgba(124, 249, 255, .16), rgba(155, 140, 255, .18));
  border: 1px solid rgba(124, 249, 255, .22);
  border-radius: 17px;
}

.phone-ui__launch span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-ui__launch small {
  color: rgba(255, 255, 255, .47);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .14em;
}

.phone-ui__launch b {
  font-size: 11px;
}

.phone-ui__launch > i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: #08090d;
  font-size: 15px;
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 50%;
}

@keyframes phoneOrbFloat {
  0%, 100% { transform: translate(-50%, 0) rotate(-3deg); }
  50% { transform: translate(-50%, -8px) rotate(3deg); }
}

@keyframes phoneChipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.telegram-section {
  padding-top: 40px;
}

.telegram-card {
  width: min(980px, 100%);
  padding: clamp(34px, 5vw, 58px) 30px;
  text-align: center;
}

.telegram-card h2 {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

.telegram-card p {
  max-width: 800px;
  margin: 0 auto 26px;
}

.telegram-card .btn {
  min-height: 58px;
  padding-right: 30px;
  padding-left: 30px;
  font-size: 18px;
}

.tg-icon {
  display: block;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  object-fit: contain;
  background: transparent;
  border-radius: 26px;
  box-shadow: none;
  filter: none;
}

.brief-section {
  padding-bottom: 70px;
}

.brief-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 32px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, .4);
  backdrop-filter: blur(16px);
}

.brief-services-label {
  margin: 28px 0 14px;
  color: rgba(255, 255, 255, .55);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.brief-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brief-services button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 12px 14px;
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, .08);
  background-clip: padding-box;
  border: 0;
  border-radius: 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px var(--line);
  contain: paint;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
  .brief-services button:hover:not(.is-selected) {
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
    transform: translateY(-1px);
  }
}

.brief-services button.is-selected {
  color: #06070a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  outline: none;
  box-shadow: none;
  transform: none;
}

.brief-services button:focus,
.brief-services button:focus-visible {
  outline: none;
}

.brief-services button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brief-services button:active {
  outline: none;
  transform: none;
}

.brief-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 24px;
}

.brief-form h3 {
  font-size: 30px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.contact-method {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 52px;
  padding: 0 14px;
  color: rgba(255, 255, 255, .74);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, .06);
  background-clip: padding-box;
  border: 0;
  border-radius: 16px;
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
  contain: paint;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-method.is-active {
  color: #06070a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: none;
  transform: none;
}

@media (hover: hover) {
  .contact-method:hover:not(.is-active) {
    color: #fff;
    background: rgba(255, 255, 255, .11);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
    transform: translateY(-1px);
  }
}

.contact-method:focus,
.contact-method:focus-visible {
  outline: none;
}

.contact-method:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-method:active {
  outline: none;
  transform: none;
}

.contact-field input[aria-invalid="true"] {
  border-color: rgba(255, 102, 142, .8);
  box-shadow: 0 0 0 4px rgba(255, 102, 142, .1);
}

.brief-check-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.brief-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, .72);
  font-weight: 700;
}

.brief-form input,
.brief-form textarea {
  width: 100%;
  padding: 15px 16px;
  color: #fff;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  outline: 0;
}

.brief-form textarea {
  min-height: 120px;
  resize: vertical;
}

.brief-form input:focus,
.brief-form textarea:focus {
  border-color: rgba(124, 249, 255, .65);
  box-shadow: 0 0 0 4px rgba(124, 249, 255, .08);
}

.policy {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.policy input {
  width: 18px;
  height: 18px;
}

.footer {
  padding: 0 20px 28px;
}

.glass-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
}

.glass-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card {
    min-height: 430px;
  }

  .glass-nav {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: rgba(8, 9, 14, .86);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.98);
    transition: .22s ease;
  }

  .glass-nav.is-menu-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav a {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    text-align: left;
  }

  .nav-cta {
    display: none;
  }

  .section-hero,
  .dev-section,
  .brief-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .tablet-frame {
    aspect-ratio: auto;
    height: 760px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .dev-copy {
    text-align: center;
    margin: 0 auto;
  }

  .dev-copy .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .dev-action {
    display: flex;
    justify-content: center;
  }

  .phone-mockup {
    width: 240px;
    height: 470px;
    overflow: hidden;
    border-radius: 46px;
    isolation: isolate;
  }

  .phone-screen {
    overflow: hidden;
    border-radius: 32px;
    clip-path: inset(0 round 32px);
  }

  .phone-ui__orb {
    top: calc(40% - 41px);
  }
}

@media (max-width: 640px) {
  .works-title__mobile-break {
    display: inline;
  }

  .works-section {
    width: 100%;
    overflow: hidden;
  }

  .works-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 14px 12px;
    scroll-padding-left: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .works-grid::-webkit-scrollbar {
    display: none;
  }

  .work-card {
    flex: 0 0 75%;
    min-height: 0;
    padding: 14px;
    border-radius: 24px;
    scroll-snap-align: start;
  }

  .work-photo {
    border-radius: 18px;
  }

  .work-info h3 {
    font-size: 22px;
  }

  section {
    padding: 70px 14px;
  }

  .header {
    padding: 12px 14px 0;
  }

  .glass-nav {
    width: 100%;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .brand {
    font-size: 15px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .nav-toggle span:first-child {
    top: 15px;
  }

  .nav-toggle span:last-child {
    top: 24px;
  }

  .glass-nav.is-menu-open .nav-toggle span:first-child,
  .glass-nav.is-menu-open .nav-toggle span:last-child {
    top: 20px;
  }

  .nav {
    left: 0;
    right: 0;
    width: 100%;
  }

  h1 {
    font-size: 56px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .card-swap-container {
    height: 360px;
  }

  .case-card {
    height: 240px;
    padding: 14px;
    border-radius: 18px;
  }

  .case-preview span {
    font-size: 48px;
  }

  .case-preview strong {
    font-size: 24px;
  }

  .section-heading h2,
  .dev-copy h2,
  .brief-title,
  .telegram-card h2 {
    font-size: 42px;
  }

  .tablet-frame {
    max-width: 380px;
    height: 650px;
    border-radius: 24px;
  }

  .tablet-screen {
    inset: 14px;
  }

  .process-grid {
    gap: 14px;
    padding: 12px;
  }

  .process-card {
    padding: 18px;
    border-radius: 20px;
  }

  .brief-card,
  .glass-card {
    padding: 18px;
    border-radius: 24px;
  }

  .brief-form {
    padding: 16px;
  }

  .contact-methods {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .contact-method {
    min-height: 46px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 14px;
  }

  .glass-footer {
    flex-direction: column;
    text-align: center;
  }

  .eyebrow {
    font-size: 11px;
  }

  .phone-mockup {
    width: 210px;
    height: 410px;
  }
}
@media (max-width: 980px) {
  .work-card {
    min-height: 520px;
  }

  .project-modal__grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .project-modal__content {
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .project-modal__dialog {
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .work-photo {
    aspect-ratio: 1 / .72;
    border-radius: 18px;
  }

  .project-modal {
    padding: 12px;
  }

 .project-modal__dialog {
    height: auto;
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 24px;
  }

  .project-modal__grid {
    height: auto;
    gap: 20px;
    padding: 18px;
  }

  .project-modal__close {
    right: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
  }

  .project-gallery {
    height: auto;
    min-height: 430px;
    max-height: calc(100vh - 290px);
    margin-top: 50px;
    border-radius: 20px;
  }

  .project-gallery__tabs {
    margin-top: 50px;
    margin-bottom: 10px;
  }

  .project-gallery__tabs + .project-gallery {
    margin-top: 0;
  }

  .project-gallery__tabs[hidden] + .project-gallery {
    margin-top: 50px;
  }

  .project-gallery__image {
    min-height: 430px;
  }

  .project-modal__rows div {
    flex-direction: column;
    gap: 6px;
  }

  .project-modal__rows strong {
    text-align: left;
  }

  .project-modal__cta {
    width: 100%;
  }

  .project-modal__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .telegram-card {
    padding: 32px 16px;
  }

  .telegram-card h2 {
    font-size: clamp(40px, 13vw, 58px);
    line-height: .94;
  }

  .telegram-card p {
    font-size: 16px;
  }

  .telegram-card .btn {
    width: 100%;
    font-size: 16px;
  }

  .tg-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 22px;
  }
}

/* Mobile header menu: menu becomes part of the glass header card */
@media (max-width: 980px) {
  .glass-nav {
    align-items: center;
    overflow: hidden;
    transition: border-radius .25s ease, padding .25s ease, background .25s ease, box-shadow .25s ease;
  }

  .glass-nav.is-menu-open {
    padding-bottom: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .075);
    box-shadow:
      0 18px 55px rgba(0, 0, 0, .45),
      inset 0 1px 0 rgba(255, 255, 255, .14);
  }

  .nav {
    position: static;
    grid-column: 1 / -1;
    z-index: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: max-height .28s ease, opacity .2s ease, margin-top .25s ease;
  }

  .glass-nav.is-menu-open .nav {
    max-height: 250px;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px 2px;
    font-size: 18px;
    line-height: 1.1;
    color: rgba(255, 255, 255, .86);
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    letter-spacing: .02em;
  }

  .nav a::after {
    content: '→';
    color: rgba(255, 255, 255, .38);
    font-size: 18px;
    transform: translateX(-4px);
    transition: .2s ease;
  }

  .nav a:hover {
    background: transparent;
    color: #fff;
    transform: none;
  }

  .nav a:hover::after {
    color: var(--cyan);
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .glass-nav.is-menu-open {
    padding-bottom: 14px;
  }

  .glass-nav.is-menu-open .nav {
    margin-top: 8px;
  }

  .nav a {
    padding: 16px 2px;
    font-size: 17px;
  }
}

/* Mobile header menu refinement: keep close button on the right and remove arrows */
@media (max-width: 980px) {
  .glass-nav {
    grid-template-columns: 1fr auto;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .nav a::after {
    content: none;
  }

  .nav a {
    justify-content: flex-start;
  }
}

/* Mobile header final tweak: keep original compact closed header and do not change corners when open */
@media (max-width: 980px) {
  .glass-nav.is-menu-open {
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .glass-nav {
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 16px;
  }

  .glass-nav.is-menu-open {
    border-radius: 16px;
  }
}

/* Mobile header balance fix: remove the hidden second grid row in closed state */
@media (max-width: 980px) {
  .glass-nav {
    row-gap: 0;
    column-gap: 10px;
  }

  .glass-nav:not(.is-menu-open) .nav {
    display: none;
  }

  .glass-nav.is-menu-open .nav {
    display: flex;
  }
}

/* Smooth mobile header open/close */
@media (max-width: 980px) {
  .glass-nav {
    transition:
      padding .34s cubic-bezier(.22, 1, .36, 1),
      background .34s cubic-bezier(.22, 1, .36, 1),
      box-shadow .34s cubic-bezier(.22, 1, .36, 1),
      border-color .34s cubic-bezier(.22, 1, .36, 1);
  }

  .glass-nav .nav {
    display: flex;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(-8px);
    transition:
      max-height .42s cubic-bezier(.22, 1, .36, 1),
      margin-top .42s cubic-bezier(.22, 1, .36, 1),
      opacity .24s ease,
      transform .34s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear .42s;
  }

  .glass-nav.is-menu-open .nav {
    display: flex;
    max-height: 260px;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      max-height .46s cubic-bezier(.22, 1, .36, 1),
      margin-top .46s cubic-bezier(.22, 1, .36, 1),
      opacity .28s ease .06s,
      transform .38s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear 0s;
  }

  .glass-nav .nav a {
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity .24s ease,
      transform .34s cubic-bezier(.22, 1, .36, 1),
      color .2s ease;
  }

  .glass-nav.is-menu-open .nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .glass-nav.is-menu-open .nav a:nth-child(1) { transition-delay: .06s; }
  .glass-nav.is-menu-open .nav a:nth-child(2) { transition-delay: .10s; }
  .glass-nav.is-menu-open .nav a:nth-child(3) { transition-delay: .14s; }
}

/* Mobile header smoother real height animation */
@media (max-width: 980px) {
  .glass-nav {
    max-height: 84px;
    overflow: hidden;
    transition:
      max-height .58s cubic-bezier(.22, 1, .36, 1),
      padding .45s cubic-bezier(.22, 1, .36, 1),
      background .45s cubic-bezier(.22, 1, .36, 1),
      box-shadow .45s cubic-bezier(.22, 1, .36, 1),
      border-color .45s cubic-bezier(.22, 1, .36, 1);
  }

  .glass-nav.is-menu-open {
    max-height: 420px;
  }

  .glass-nav:not(.is-menu-open) .nav,
  .glass-nav.is-menu-open .nav {
    display: flex;
  }

  .glass-nav .nav {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(-10px);
    transition:
      max-height .52s cubic-bezier(.22, 1, .36, 1),
      margin-top .52s cubic-bezier(.22, 1, .36, 1),
      opacity .28s ease,
      transform .44s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear .52s;
  }

  .glass-nav.is-menu-open .nav {
    max-height: 280px;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      max-height .58s cubic-bezier(.22, 1, .36, 1),
      margin-top .58s cubic-bezier(.22, 1, .36, 1),
      opacity .32s ease .08s,
      transform .48s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear 0s;
  }
}

@media (max-width: 640px) {
  .glass-nav {
    max-height: 74px;
  }

  .glass-nav.is-menu-open {
    max-height: 360px;
  }
}

/* Mobile: keep the top card slider inside the same side gutters as the rest of the layout */
@media (max-width: 640px) {
  .hero-visual {
    width: 100%;
    overflow: hidden;
  }

  .card-swap-container {
    width: 100%;
    max-width: 100%;
    height: 360px;
    overflow: visible;
  }

  .case-card {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .case-card[data-position="0"],
  .card-one {
    transform: translate(-50%, -55%) rotate(-7deg) translateZ(0);
  }

  .case-card[data-position="1"],
  .card-two {
    transform: translate(-50%, -44%) rotate(7deg) translateZ(-80px);
  }

  .case-card[data-position="2"],
  .card-three {
    transform: translate(-50%, -34%) rotate(-1deg) translateZ(-150px);
  }
}

/* Mobile: remove the extra bottom shadow from the top SEO/Test card slider */
@media (max-width: 640px) {
  .case-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  }
}


/* Mobile header: CTA and socials inside opened menu */
.mobile-menu-extra {
  display: none;
}

@media (max-width: 980px) {
  .mobile-menu-extra {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      max-height .54s cubic-bezier(.22, 1, .36, 1),
      margin-top .54s cubic-bezier(.22, 1, .36, 1),
      opacity .28s ease,
      transform .44s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear .54s;
  }

  .glass-nav.is-menu-open .mobile-menu-extra {
    max-height: 150px;
    margin-top: 14px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      max-height .58s cubic-bezier(.22, 1, .36, 1),
      margin-top .58s cubic-bezier(.22, 1, .36, 1),
      opacity .32s ease .16s,
      transform .48s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear 0s;
  }

  .mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    color: #06070a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(124, 249, 255, .12);
  }

  .mobile-menu-socials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .mobile-menu-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  }

  .glass-nav.is-menu-open {
    max-height: 560px;
  }
}

@media (max-width: 640px) {
  .glass-nav.is-menu-open {
    max-height: 520px;
  }

  .glass-nav.is-menu-open .mobile-menu-extra {
    margin-top: 12px;
  }

  .mobile-menu-cta {
    min-height: 50px;
    font-size: 15px;
  }

  .mobile-menu-socials a {
    min-height: 42px;
    font-size: 13px;
  }
}

/* Marketing update: hero facts, sections, prices, FAQ */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 28px;
}

.hero-facts span,
.result-list span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.content-section {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.pricing-grid,
.info-grid {
  display: grid;
  gap: 18px;
  width: 100%;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card,
.info-card,
.faq-list details {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .11);
  backdrop-filter: blur(16px);
}

.price-card,
.info-card {
  min-height: 320px;
  padding: 24px;
}

.price-card:before,
.info-card:before,
.faq-list details:before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 20% 0, rgba(124, 249, 255, .14), transparent 34%),
    radial-gradient(circle at 92% 20%, rgba(155, 140, 255, .12), transparent 38%);
}

.price-card span,
.info-card span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 18px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
}

.price-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-card p,
.info-card p,
.faq-list p,
.pricing-note {
  color: var(--muted);
  line-height: 1.55;
}

.price-card ul {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .82);
  list-style: none;
}

.price-card li,
.result-list span:before {
  position: relative;
}

.price-card li:before {
  content: "•";
  margin-right: 8px;
  color: var(--cyan);
}

.price-card--small {
  min-height: 250px;
}

.pricing-note {
  max-width: 920px;
  margin: 24px auto 0;
  text-align: center;
}

@media (max-width: 640px) {
  .pricing-note__desktop-break {
    display: none;
  }
}

.info-card h3 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: .98;
  letter-spacing: -.05em;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.result-list span {
  min-height: 58px;
  font-size: 15px;
}

.result-list span:before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  content: "";
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(124, 249, 255, .38);
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  font-size: 20px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:after {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  content: "+";
  color: var(--cyan);
  font-size: 26px;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), color .28s ease;
}

.faq-list details[open] summary:after {
  content: "+";
  color: var(--violet);
  transform: rotate(45deg);
}

.faq-list details.is-closing summary:after {
  color: var(--cyan);
  transform: rotate(0deg);
}

.faq-list p {
  max-width: 840px;
  padding: 0 24px 24px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .38s cubic-bezier(.22, 1, .36, 1);
}

.faq-list details[open] p {
  opacity: 1;
  transform: translateY(0);
}

.faq-list details.is-closing p {
  opacity: 0;
  transform: translateY(-8px);
}

.brief-form label em {
  color: rgba(255, 255, 255, .46);
  font-style: normal;
  font-weight: 650;
}

@media (max-width: 1180px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav a {
    font-size: 17px;
  }

  .glass-nav.is-menu-open .nav {
    max-height: 340px;
  }

  .glass-nav.is-menu-open {
    max-height: 620px;
  }

  .info-grid--three {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .hero-facts,
  .pricing-grid,
  .result-list {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    margin-top: 22px;
  }

  .hero-facts span {
    min-height: 44px;
    font-size: 13px;
  }

  .content-section {
    width: 100%;
  }

  .section-action .btn {
    width: calc(100% - 28px);
  }

  .price-card,
  .info-card {
    min-height: 0;
    padding: 20px;
    border-radius: 24px;
  }

  .price-card strong {
    font-size: 34px;
  }

  .info-card h3 {
    font-size: 32px;
  }

  .faq-list summary {
    padding: 18px;
    font-size: 17px;
  }

  .faq-list p {
    padding: 0 18px 18px;
    font-size: 15px;
  }

  .glass-nav.is-menu-open .nav {
    max-height: 330px;
  }

  .glass-nav.is-menu-open {
    max-height: 610px;
  }
}

/* Infinite ticker under audience cards */
.site-marquee {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-top: 26px;
  margin-left: -50vw;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .10);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background:
    linear-gradient(90deg, rgba(124, 249, 255, .07), rgba(155, 140, 255, .06)),
    rgba(255, 255, 255, .035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 18px 60px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.site-marquee:before,
.site-marquee:after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: min(130px, 18vw);
  height: 100%;
  pointer-events: none;
  content: "";
}

.site-marquee:before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.site-marquee:after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.site-marquee__track {
  display: flex;
  width: max-content;
  animation: siteMarquee 28s linear infinite;
  will-change: transform;
}

.site-marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 0 0 auto;
  padding: 16px 17px;
}

.site-marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(124, 249, 255, .12);
}

.site-marquee__group span:nth-child(2n) {
  color: rgba(223, 229, 255, .82);
}

@keyframes siteMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}


@media (max-width: 640px) {
  .site-marquee {
    margin-top: 20px;
  }

  .site-marquee__track {
    animation-duration: 22s;
  }

  .site-marquee__group {
    gap: 22px;
    padding: 14px 11px;
  }

  .site-marquee__group span {
    font-size: 13px;
  }
}

/* Header logo replacement */
.brand-logo {
  gap: 0;
  width: fit-content;
  max-width: 220px;
}

.brand-logo img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 220px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .brand-logo {
    max-width: 190px;
  }

  .brand-logo img {
    height: 34px;
    max-width: 190px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    max-width: 165px;
  }

  .brand-logo img {
    height: 30px;
    max-width: 165px;
  }
}

/* Interactive mobile result carousel */
.result-carousel__viewport {
  overflow: visible;
}

.result-group,
.result-group__items {
  display: contents;
}

.result-group__title,
.result-carousel__controls {
  display: none;
}

@media (max-width: 640px) {
  .result-carousel {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 0;
    background: transparent;
  }

  .result-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 16px;
    scroll-behavior: smooth;
    scroll-padding-inline: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .result-carousel__viewport::-webkit-scrollbar {
    display: none;
  }

  .result-list.result-carousel__track {
    display: flex;
    width: max-content;
    margin: 0;
    padding: 0;
    gap: 12px;
  }

  .result-group {
    position: relative;
    display: flex;
    flex: 0 0 calc(100vw - 70px);
    min-height: 390px;
    max-width: 410px;
    overflow: hidden;
    flex-direction: column;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 28px;
    background:
      radial-gradient(circle at 10% 0%, rgba(92, 225, 255, .16), transparent 38%),
      rgba(255, 255, 255, .065);
    box-shadow: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .result-group__title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: -.035em;
  }

  .result-group__title > span {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(124, 249, 255, .18), rgba(155, 140, 255, .17));
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
  }

  .result-group__title > span::before,
  .result-group__title > span::after {
    display: none !important;
    content: none !important;
  }

  .result-group__items {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
  }

  .result-list .result-group__items > span {
    min-height: 0;
    padding: 17px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    font-size: 15px;
    line-height: 1.35;
  }

  .result-list .result-group__items > span:last-child {
    border-bottom: 0;
  }

  .result-list .result-group__items > span::before {
    width: 7px;
    height: 7px;
    margin-right: 12px;
  }

  .result-carousel__controls {
    display: grid;
    grid-template-columns: 48px 1fr auto 48px;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
    background: transparent;
  }

  .result-carousel__arrow {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 16px;
    background: rgba(255, 255, 255, .075);
    color: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, opacity .2s ease;
  }

  .result-carousel__arrow:active:not(:disabled) {
    background: rgba(124, 249, 255, .15);
    border-color: rgba(124, 249, 255, .34);
  }

  .result-carousel__arrow:disabled {
    opacity: .3;
    cursor: default;
  }

  .result-carousel__progress {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .result-carousel__progress button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
    cursor: pointer;
    transition: width .25s ease, background .25s ease, box-shadow .25s ease;
  }

  .result-carousel__progress button.is-active {
    width: 28px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    box-shadow: 0 0 16px rgba(124, 249, 255, .35);
  }

  .result-carousel__counter {
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
  }

  .result-carousel__counter strong {
    color: rgba(255, 255, 255, .9);
  }
}

@media (max-width: 380px) {
  .result-group {
    flex-basis: calc(100vw - 58px);
    min-height: 410px;
  }

  .result-group__title {
    font-size: 22px;
  }

  .result-carousel__controls {
    grid-template-columns: 44px 1fr auto 44px;
    gap: 9px;
  }

  .result-carousel__arrow {
    width: 44px;
    height: 44px;
  }
}

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

  .faq-list summary:after,
  .faq-list p,
  .result-carousel__arrow,
  .result-carousel__progress button {
    transition: none;
  }
}

@media (max-width: 980px) {
  .phone-screen {
    gap: 10px;
    padding: 18px 15px 15px;
  }

  .phone-ui__stage {
    min-height: 205px;
  }

  .phone-ui__orb {
    width: 96px;
    height: 96px;
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .phone-screen {
    gap: 8px;
    padding: 14px 12px 12px;
    border-radius: 28px;
  }

  .app-badge {
    padding: 6px 9px;
    font-size: 12px;
  }

  .app-badge--logo img {
    height: 14px;
    max-width: 68px;
  }

  .phone-ui__live {
    font-size: 8px;
  }

  .phone-ui__stage {
    min-height: 180px;
    border-radius: 20px;
  }

  .phone-ui__orb {
    top: 16%;
    width: 82px;
    height: 82px;
    font-size: 22px;
  }

  .phone-ui__stage::before {
    width: 118px;
    height: 118px;
  }

  .phone-ui__stage::after {
    width: 160px;
    height: 160px;
  }

  .phone-ui__chip {
    width: 33px;
    height: 23px;
    font-size: 8px;
  }

  .phone-ui__headline {
    right: 11px;
    bottom: 12px;
    left: 11px;
  }

  .phone-ui__headline strong {
    font-size: 18px;
  }

  .phone-ui__stats > div {
    padding: 8px;
    border-radius: 13px;
  }

  .phone-ui__stats span {
    margin-bottom: 3px;
    font-size: 7px;
  }

  .phone-ui__stats strong {
    font-size: 16px;
  }

  .phone-ui__launch {
    padding: 8px 9px;
    border-radius: 14px;
  }

  .phone-ui__launch b {
    font-size: 9px;
  }

  .phone-ui__launch > i {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-ui__orb,
  .phone-ui__chip {
    animation: none;
  }
}

/* Mobile layout: one consistent outer gutter across the whole site */
@media (max-width: 640px) {
  :root {
    --mobile-gutter: 14px;
  }

  .header,
  .footer,
  .section-hero,
  .works-section,
  .content-section,
  .dev-section,
  .telegram-section,
  .brief-section {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--mobile-gutter);
    padding-left: var(--mobile-gutter);
  }

  .works-grid {
    padding-right: 0;
    padding-left: 0;
    scroll-padding-inline: 0;
  }

  .work-card,
  .work-card:hover {
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11);
  }

  .dev-action {
    width: 100%;
    max-width: 380px;
    margin-right: auto;
    margin-left: auto;
  }

  .dev-action .btn {
    width: 100%;
  }

  .phone-mockup {
    width: 240px;
    height: 470px;
  }

  .section-action .btn {
    width: 100%;
  }

  .project-modal {
    padding: var(--mobile-gutter);
  }

  .project-modal__dialog {
    max-height: calc(100vh - 28px);
  }
}

/* Separate cases archive */
.cases-archive {
  min-height: calc(100vh - 92px);
}

.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.cases-archive__hero {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 20px 52px;
  text-align: center;
}

.cases-archive__hero .eyebrow {
  margin-right: auto;
  margin-left: auto;
}

.cases-archive__hero h1 {
  margin-bottom: 0;
  font-size: clamp(58px, 8vw, 118px);
}

.cases-catalog {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 110px;
}

.cases-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.cases-filter {
  position: relative;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 11px 17px;
  overflow: hidden;
  color: rgba(255, 255, 255, .84);
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.cases-filter:hover {
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-1px);
}

.cases-filter.is-active {
  color: #05070a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
  transform: none;
}

.cases-filter:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.cases-grid .work-card {
  min-height: 450px;
}

.cases-card .work-info h3 {
  margin-bottom: 0;
}

.cases-card .work-bottom {
  padding-top: 24px;
}

.cases-card[hidden],
.cases-empty[hidden],
.cases-load-more[hidden] {
  display: none !important;
}

.cases-empty {
  width: min(620px, 100%);
  margin: 10px auto 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
}

.cases-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.cases-load-more {
  width: min(320px, 100%);
  min-height: 58px;
}

.cases-archive .brief-section {
  padding-top: 0;
}

@media (max-width: 980px) {
  .cases-archive__hero {
    padding-top: 40px;
  }

  .cases-grid .work-card {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .cases-archive__hero,
  .cases-catalog {
    width: 100%;
    max-width: 100%;
    padding-right: var(--mobile-gutter);
    padding-left: var(--mobile-gutter);
  }

  .cases-archive__hero {
    padding-top: 40px;
    padding-bottom: 36px;
  }

  .cases-archive__hero h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .cases-catalog {
    padding-bottom: 80px;
  }

  .cases-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-right: calc(var(--mobile-gutter) * -1);
    margin-left: calc(var(--mobile-gutter) * -1);
    padding: 0 var(--mobile-gutter) 8px;
    overflow-x: auto;
    scroll-padding-left: var(--mobile-gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cases-filters::-webkit-scrollbar {
    display: none;
  }

  .cases-filter {
    min-height: 44px;
    padding: 10px 15px;
    font-size: 14px;
  }

  .cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .cases-grid .work-card {
    flex: none;
    width: 100%;
    min-height: 0;
    scroll-snap-align: none;
  }

  .cases-load-more-wrap {
    margin-top: 28px;
  }
}

/* Home projects carousel */
[data-works-carousel] .works-grid {
  display: flex;
  gap: 18px;
  padding: 10px 2px 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

[data-works-carousel] .works-grid::-webkit-scrollbar {
  display: none;
}

[data-works-carousel] .work-card {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (min-width: 641px) {
  [data-works-carousel] .work-card,
  [data-works-carousel] .work-card:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11);
  }
}

.works-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.works-carousel__controls[hidden] {
  display: none !important;
}

.works-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.works-carousel__dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
}

.works-carousel__dot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  background: rgba(255, 255, 255, .3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .2s ease, height .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.works-carousel__dot:hover::before {
  background: rgba(255, 255, 255, .62);
  transform: translate(-50%, -50%) scale(1.15);
}

.works-carousel__dot.is-active::before {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(124, 249, 255, .42);
}

.works-carousel__dot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 0;
}

[data-works-carousel] img {
  user-select: none;
  -webkit-user-drag: none;
}

@media (hover: hover) and (pointer: fine) {
  [data-works-carousel] .works-grid {
    cursor: grab;
  }

  [data-works-carousel] .works-grid.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  [data-works-carousel] .works-grid.is-dragging,
  [data-works-carousel] .works-grid.is-dragging * {
    user-select: none;
  }
}

@media (max-width: 980px) {
  [data-works-carousel] .work-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  [data-works-carousel] .works-grid {
    gap: 14px;
    padding: 4px 0 18px;
    scroll-padding-inline: 0;
  }

  [data-works-carousel] .work-card {
    flex-basis: 75%;
  }

  [data-works-carousel] .works-carousel__controls {
    display: none !important;
  }

}
