/* ========================================
   Crafbyte — Digital Studio (Cyberpunk)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(18, 18, 25, 0.5);
  --bg-card-hover: rgba(18, 18, 25, 0.8);
  --border: rgba(0, 240, 255, 0.2);
  --border-hover: rgba(0, 240, 255, 0.5);
  --text: #f0f0f0;
  --text-secondary: #aaa;
  --text-muted: #888;
  --primary: #00f0ff;
  --primary-light: #ff00aa;
  --accent: #a020f0;
  --primary-glow: rgba(0, 240, 255, 0.15);
  --primary-glow-strong: rgba(0, 240, 255, 0.3);
  --glow-primary: 0 0 5px #00f0ff, 0 0 10px #00f0ff, 0 0 20px #00f0ff;
  --glow-secondary: 0 0 5px #ff00aa, 0 0 10px #ff00aa, 0 0 20px #ff00aa;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 0px;
  --radius-lg: 0px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.3;
  animation: pulse-grid 10s infinite linear;
}

@keyframes pulse-grid {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hide-mobile { display: inline; }

/* Scanlines & Spotlight */

.scanlines {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(to bottom, rgba(15,15,20,0), rgba(15,15,20,0.5) 50%, rgba(15,15,20,0));
  background-size: 100% 4px;
  z-index: 1000; pointer-events: none;
  animation: scan 7s infinite linear;
}

@keyframes scan {
  0% { background-position-y: 0; }
  100% { background-position-y: 100vh; }
}

.spotlight {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 999;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 240, 255, 0.05) 0%, rgba(0, 240, 255, 0.02) 15%, transparent 30%);
}

#webgl-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; z-index: -2;
}

/* Glitch Effect */

.glitch { position: relative; }
.glitch:hover::before, .glitch:hover::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg); overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}
.glitch:hover::before {
  left: 2px; text-shadow: -1px 0 var(--primary-light);
  animation: glitch-1 2s infinite linear alternate-reverse;
}
.glitch:hover::after {
  left: -2px; text-shadow: -1px 0 var(--primary), 1px 0 var(--accent);
  animation: glitch-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
  0% { clip: rect(42px, 9999px, 44px, 0); }
  10% { clip: rect(12px, 9999px, 62px, 0); }
  20% { clip: rect(32px, 9999px, 50px, 0); }
  30% { clip: rect(25px, 9999px, 60px, 0); }
  40% { clip: rect(45px, 9999px, 65px, 0); }
  50% { clip: rect(55px, 9999px, 75px, 0); }
  60% { clip: rect(80px, 9999px, 100px, 0); }
  70% { clip: rect(75px, 9999px, 90px, 0); }
  80% { clip: rect(90px, 9999px, 110px, 0); }
  90% { clip: rect(30px, 9999px, 50px, 0); }
  100% { clip: rect(50px, 9999px, 65px, 0); }
}

@keyframes glitch-2 {
  0% { clip: rect(65px, 9999px, 110px, 0); }
  10% { clip: rect(5px, 9999px, 20px, 0); }
  20% { clip: rect(40px, 9999px, 55px, 0); }
  30% { clip: rect(70px, 9999px, 85px, 0); }
  40% { clip: rect(95px, 9999px, 115px, 0); }
  50% { clip: rect(25px, 9999px, 40px, 0); }
  60% { clip: rect(5px, 9999px, 25px, 0); }
  70% { clip: rect(15px, 9999px, 35px, 0); }
  80% { clip: rect(35px, 9999px, 50px, 0); }
  90% { clip: rect(10px, 9999px, 25px, 0); }
  100% { clip: rect(90px, 9999px, 110px, 0); }
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 700; text-decoration: none;
  border: 1px solid var(--primary); color: var(--primary); cursor: pointer;
  padding: 0.8rem 1.8rem; text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.9rem; position: relative; overflow: hidden;
  transition: color 0.4s ease-in-out; z-index: 1; background: transparent;
  min-height: 44px; white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: var(--primary);
  transition: left 0.4s ease-in-out; z-index: -1;
}
.btn:hover { color: var(--bg); text-shadow: none; }
.btn:hover::before { left: 0; }

.btn--sm { padding: 6px 18px; font-size: 0.8rem; min-height: 36px; letter-spacing: 1px; }
.btn--lg { padding: 0.9rem 2rem; font-size: 0.95rem; }
.btn--full { width: 100%; }
.btn--primary { border-color: var(--primary); color: var(--primary); }
.btn--primary::before { background: var(--primary); }
.btn--outline { border-color: var(--primary-light); color: var(--primary-light); }
.btn--outline::before { background: var(--primary-light); }
.btn--outline:hover { color: var(--bg); }

/* Navigation */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem 0; background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav--scrolled { padding: 0.8rem 0; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; position: relative;
}
.nav__logo { text-decoration: none; }
.nav__logo-svg { height: 28px; width: auto; }
.nav__links { display: flex; gap: 2rem; list-style: none; }
.nav__link {
  color: var(--text); text-decoration: none;
  font-family: var(--font-mono); font-size: 0.9rem;
  transition: color 0.3s, text-shadow 0.3s;
}
.nav__link:hover { color: var(--primary); text-shadow: var(--glow-primary); }
.nav__link::after { display: none; }
.nav__cta { border-color: var(--primary); color: var(--primary); }
.nav__burger {
  display: none; cursor: pointer; width: 30px; height: 22px;
  position: relative; z-index: 110; background: none; border: none;
  padding: 0; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav__burger span {
  display: block; position: absolute; height: 3px; width: 24px;
  background: var(--primary); border-radius: 3px; opacity: 1; left: 10px;
  transform: rotate(0deg); transition: .25s ease-in-out;
}
.nav__burger span:nth-child(1) { top: 10px; }
.nav__burger span:nth-child(2) { top: 19px; }
.nav__burger span:nth-child(3) { top: 28px; }

/* Hero */

.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  overflow: hidden; padding: 120px 0 80px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(10,10,15,0) 50%, rgba(10,10,15,1) 100%),
    radial-gradient(ellipse at center, rgba(10,10,15,0) 0%, rgba(10,10,15,1) 100%);
  z-index: 2; pointer-events: none;
}
.hero__grid { display: none; }
.hero__content { position: relative; text-align: center; max-width: 800px; z-index: 5; }
.hero__badge {
  display: inline-block; padding: 6px 16px; border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-mono); font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -2px; margin-bottom: 1rem;
  color: var(--primary); text-shadow: var(--glow-primary);
}
.hero__subtitle {
  font-size: 1.5rem; color: var(--text);
  max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero__actions {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 4rem;
}
.hero__stats {
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.hero__stat { text-align: center; font-family: var(--font-mono); }
.hero__stat-value {
  display: block; font-size: 2rem; font-weight: 700;
  color: var(--primary); text-shadow: var(--glow-primary);
}
.hero__stat-label {
  display: block; font-size: 0.9rem; color: var(--text-muted);
  text-transform: uppercase; margin-top: 4px;
}
.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Sections Common */

.section {
  padding: 8rem 0; position: relative;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section.is-visible { opacity: 1; transform: translateY(0); }
.section__header { text-align: center; margin-bottom: 4rem; }
.section__tag {
  display: inline-block; padding: 6px 16px; border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px;
}
.section__title {
  font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700;
  line-height: 1.15; margin-bottom: 1.5rem;
  color: var(--primary); text-shadow: var(--glow-primary); text-align: center;
}
.section__desc {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* Services */

.services__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 2.5rem 2rem; position: relative; transition: transform 0.3s ease;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--primary); box-shadow: var(--glow-primary);
  transform: scaleX(0); transition: transform 0.4s ease-out;
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 1px; height: 100%; background: var(--primary);
  box-shadow: var(--glow-primary);
  transform: scaleY(0); transition: transform 0.4s ease-out;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { transform: scaleY(1); }
.service-card__icon { width: 50px; height: 50px; color: var(--primary); margin-bottom: 1.5rem; }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__title {
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  margin-bottom: 1rem; color: var(--text);
  transition: color 0.3s, text-shadow 0.3s;
}
.service-card:hover .service-card__title {
  color: var(--primary); text-shadow: var(--glow-primary);
}
.service-card__desc {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem;
}
.service-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.service-card__tags li {
  background: rgba(0, 240, 255, 0.1); color: var(--primary);
  padding: 0.25rem 0.75rem; border-radius: 20px;
  font-size: 0.8rem; font-family: var(--font-mono);
}

/* Process */

.process__timeline {
  position: relative; max-width: 800px; margin: 0 auto;
}
.process__timeline::before {
  content: ''; position: absolute; width: 2px;
  background-color: var(--border); top: 0; bottom: 0;
  left: 50%; margin-left: -1px; z-index: -1;
}
.process__step {
  padding: 10px 40px; position: relative; width: 50%;
}
.process__step:nth-child(odd) { left: 0; text-align: right; }
.process__step:nth-child(even) { left: 50%; text-align: left; }
.process__step::after {
  content: ''; position: absolute; width: 20px; height: 20px; right: -10px;
  background-color: var(--bg); border: 4px solid var(--primary);
  top: 15px; border-radius: 50%; z-index: 1;
  box-shadow: var(--glow-primary); transition: transform 0.3s ease;
}
.process__step:hover::after { transform: scale(1.3); }
.process__step:nth-child(even)::after { left: -10px; right: auto; }
.process__number {
  color: var(--primary); font-family: var(--font-mono);
  font-size: 1rem; margin-bottom: 0.5rem; display: block;
}
.process__step-title {
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.5rem; color: var(--primary); text-shadow: var(--glow-primary);
}
.process__step-desc {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.7;
}

/* Tech */

.tech__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem; max-width: 1000px; margin: 0 auto;
}
.tech__item {
  font-family: var(--font-mono); padding: 0.8rem 1.5rem;
  border: 1px solid var(--border); color: var(--text);
  transition: all 0.3s ease; background: transparent;
}
.tech__item:hover {
  color: var(--primary); border-color: var(--primary);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  text-shadow: var(--glow-primary);
}

/* Contact */

.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__desc { font-size: 1rem; color: var(--text-muted); margin: 16px 0 32px; line-height: 1.7; }
.contact__channels { display: flex; flex-direction: column; gap: 16px; }
.contact__channel {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: var(--transition);
}
.contact__channel:hover { border-color: var(--primary); box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1); }
.contact__channel svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--primary); }
.contact__channel strong { display: block; font-size: 15px; font-weight: 600; }
.contact__channel span { font-size: 13px; color: var(--text-muted); }
.contact__form { background: var(--bg-card); border: 1px solid var(--border); padding: 36px; }
.form__group { margin-bottom: 1.5rem; }
.form__input {
  width: 100%; padding: 1rem; font-family: var(--font); font-size: 1rem;
  color: var(--text); background: rgba(18, 18, 25, 0.8);
  border: 1px solid var(--border); outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none; min-height: 48px;
}
.form__input::placeholder { color: var(--text-muted); }
.form__input:focus {
  border-color: var(--primary);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.3), 0 0 10px rgba(0, 240, 255, 0.3);
}
.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2300f0ff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form__select option { background-color: #121219; }
.form__textarea { resize: vertical; min-height: 100px; }
.form__note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.form--success .btn { border-color: #10b981; color: #10b981; }
.form--error .btn { border-color: #ef4444; color: #ef4444; }

/* Footer */

.footer {
  padding: 4rem 0 2rem; background: #050508; border-top: 1px solid var(--border);
}
.footer__inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; }
.footer__logo { height: 24px; width: auto; }
.footer__tagline { color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.footer__links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  justify-content: flex-end;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700;
  color: var(--primary); margin-bottom: 1rem;
}
.footer__col a {
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  transition: color 0.3s; padding: 2px 0;
}
.footer__col a:hover { color: var(--primary); }
.footer__bottom {
  grid-column: 1 / -1; border-top: 1px solid var(--border);
  padding-top: 24px; margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer__bottom p { font-size: 0.9rem; color: var(--text-muted); }

/* Reveal */

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal--visible { opacity: 1; transform: translateY(0); }

/* Responsive */

@media (max-width: 1024px) {
  .nav__links { gap: 1.5rem; }
  .section { padding: 6rem 0; }
  .hero__stats { gap: 2rem; }
  .contact__inner { gap: 2rem; }
}

@media (max-width: 992px) {
  .section__title { font-size: 2rem; }
  .hero__title { font-size: 3rem; }
  .contact__inner { grid-template-columns: 1fr; }
  .process__timeline::before { left: 31px; }
  .process__step { width: 100%; padding-left: 70px; padding-right: 25px; }
  .process__step:nth-child(odd) { left: 0; text-align: left; }
  .process__step:nth-child(even) { left: 0; text-align: left; }
  .process__step::after { left: 21px; right: auto; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .nav { padding: 1rem 0; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links--open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg); justify-content: center; align-items: center;
    gap: 0; z-index: 105;
  }
  .nav__links--open .nav__link { font-size: 1.5rem; padding: 1.5rem 0; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero__stats { gap: 2rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .section { padding: 5rem 0; }
  .services__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__links { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero__title { font-size: 2.5rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-direction: column; gap: 1rem; }
  .service-card { padding: 1.5rem; }
  .contact__form { padding: 1.5rem; }
  .section__title { font-size: 1.75rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero__title { font-size: 2rem; }
  .btn--lg { padding: 0.7rem 1.5rem; font-size: 0.85rem; }
}

/* Region Selector */

.region-sel { position: relative; margin-right: 16px; }
.region-sel__btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 8px; cursor: pointer;
  color: var(--text-muted); transition: 0.3s ease;
  min-width: 44px; min-height: 44px;
}
.region-sel__btn:hover { color: var(--primary); background: rgba(0, 240, 255, 0.1); }
.region-sel__globe { display: block; }
.region-sel__current-flag { font-size: 20px; line-height: 1; display: block; }
.region-sel__backdrop {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
}
.region-sel--open .region-sel__backdrop { display: block; animation: regionFadeIn 0.2s ease; }
.region-sel__panel {
  display: none; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95); z-index: 1001;
  background: #0a0a0f; border: 1px solid var(--border);
  padding: 32px; box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
  min-width: 320px; max-width: 420px; width: 90vw;
}
.region-sel--open .region-sel__panel {
  display: block; animation: regionSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.region-sel__title { display: none; font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 20px; text-align: center; }
.region-sel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.region-sel__item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: transparent; border: 1px solid transparent;
  color: var(--text-muted); font-family: var(--font); font-size: 14px;
  cursor: pointer; transition: 0.3s ease; text-align: left; white-space: nowrap; min-height: 44px;
}
.region-sel__item:hover { background: rgba(0, 240, 255, 0.1); border-color: var(--border); color: var(--text); }
.region-sel__item--active { background: rgba(0, 240, 255, 0.1); border-color: var(--primary); color: var(--primary); }
.region-sel__item-flag { font-size: 22px; line-height: 1; }
.region-sel__item-name { font-weight: 500; }
.region-sel__section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 12px; }
.region-sel__divider { height: 1px; background: var(--border); margin: 20px 0; }

@keyframes regionFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes regionSlideIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes regionSlideInMobile { from { opacity: 0; transform: translate(-50%, 0) scale(0.95); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

@media (max-width: 768px) {
  .region-sel { position: absolute; right: 52px; top: 50%; transform: translateY(-50%); margin-right: 0; }
  .region-sel__panel { padding: 24px; min-width: 0; top: 20px; transform: translate(-50%, 0) scale(0.95); max-height: calc(100dvh - 40px); overflow-y: auto; }
  .region-sel--open .region-sel__panel { animation: regionSlideInMobile 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
  .region-sel__grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .region-sel { right: 48px; }
  .region-sel__panel { width: calc(100vw - 24px); padding: 16px; }
}
