/* ─── Professional pages (services / case studies) ─────────────────── */

.pro-body {
  padding-top: 72px;
}

.pro-nav.nav {
  backdrop-filter: blur(12px);
}

.pro-hero {
  position: relative;
  padding: 48px 0 64px;
  overflow: hidden;
}

.pro-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pro-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  transition: transform 0.2s ease-out;
}

.pro-hero__orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 70%);
}

.pro-hero__orb--2 {
  width: 320px;
  height: 320px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.28), transparent 70%);
}

.pro-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 95%);
}

.pro-hero__inner {
  position: relative;
  z-index: 1;
}

.pro-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-3);
}

.pro-breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-3);
}

.pro-breadcrumb a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pro-breadcrumb a:hover,
.pro-breadcrumb a:focus-visible {
  color: var(--accent);
}

.pro-breadcrumb [aria-current='page'] {
  color: var(--text);
}

.pro-hero__title {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 900px;
}

.pro-hero__intro {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-2);
  max-width: 720px;
  line-height: 1.65;
}

.pro-main {
  padding-bottom: 48px;
}

.pro-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.pro-section:last-of-type {
  border-bottom: none;
}

.pro-section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.pro-section p {
  color: var(--text-2);
  max-width: 720px;
}

.pro-list {
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.pro-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-2);
  line-height: 1.55;
}

.pro-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.45);
}

.pro-steps {
  list-style: none;
  counter-reset: pro-step;
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.pro-step {
  counter-increment: pro-step;
  padding: 20px 20px 20px 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.pro-step::before {
  content: counter(pro-step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.pro-step__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.pro-step p {
  margin: 0;
  font-size: 15px;
}

.pro-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent-3);
}

.pro-faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.pro-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}

.pro-faq__item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.pro-faq__item summary::-webkit-details-marker {
  display: none;
}

.pro-faq__item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.pro-faq__item p {
  padding: 0 18px 16px;
  margin: 0;
  font-size: 15px;
}

.pro-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.pro-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.06), rgba(56, 189, 248, 0.04));
  transition: var(--transition);
  min-height: 120px;
}

.pro-card:hover,
.pro-card:focus-visible {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.pro-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.pro-card__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-3);
}

.pro-related {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pro-related a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
  transition: var(--transition);
}

.pro-related a:hover,
.pro-related a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.08);
}

.pro-cta {
  padding: 72px 0;
  background: linear-gradient(180deg, transparent, rgba(49, 46, 129, 0.18));
  border-top: 1px solid var(--border);
}

.pro-cta__inner {
  text-align: center;
}

.pro-cta__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}

.pro-cta__body {
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 28px;
}

.pro-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.pro-cta__email {
  font-size: 15px;
  color: var(--text-2);
  word-break: break-word;
}

.pro-cta__email a {
  color: var(--accent-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pro-cta__email a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pro-cta__hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
}

.pro-footer .footer__links {
  flex-wrap: wrap;
  justify-content: center;
}

.reveal { opacity: 1; transform: none; }

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pro-hero__orb {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .pro-hero {
    padding: 36px 0 48px;
  }
}

@media (max-width: 768px) {
  .pro-body {
    padding-top: 64px;
  }

  .pro-section {
    padding: 32px 0;
  }

  .pro-cta {
    padding: 56px 0;
  }

  .pro-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pro-cta__actions .btn {
    justify-content: center;
    min-height: 48px;
  }
}

@media (max-width: 430px) {
  .pro-card-grid {
    grid-template-columns: 1fr;
  }

  .pro-step {
    padding-left: 20px;
    padding-top: 48px;
  }

  .pro-step::before {
    left: 16px;
    top: 12px;
  }
}

/* Focus visible for professional nav */
.pro-nav .nav__links a:focus-visible,
.pro-nav .lang-switch__btn:focus-visible,
.pro-nav .nav__burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.pro-nav .nav__burger {
  min-width: 44px;
  min-height: 44px;
  position: relative;
  z-index: 100;
}

.pro-nav .lang-switch__btn {
  min-width: 44px;
  min-height: 36px;
}

/* Cinematic project presentation, with the original artwork fully visible. */
.pro-game-actions { display:flex; flex-wrap:wrap; gap:14px; margin:30px 0; }
.pro-game-cover { position:relative; margin:40px 0 0; border:1px solid #ffffff25; border-radius:24px; overflow:hidden; background:#080a10; box-shadow:0 24px 90px #0008; }
.pro-game-cover img { display:block; width:100%; max-height:620px; object-fit:contain; }
.pro-game-cover figcaption { padding:14px 24px; color:#c4b5fd; font-size:13px; letter-spacing:.12em; border-top:1px solid #ffffff18; }
.pro-game-offer, .pro-academy { position:relative; padding:clamp(24px,5vw,48px); border:1px solid #a78bfa40; border-radius:24px; background:radial-gradient(ellipse at top right,#7c3aed20,transparent 70%),#111117; }
.pro-academy { background:radial-gradient(ellipse at bottom left,#06b6d425,transparent 70%),#10151b; border-color:#67e8f940; }
.pro-game-offer .btn, .pro-academy .btn { margin-top:24px; }
.pro-section { scroll-margin-top:100px; }
.pro-card, .pro-step, .pro-game-cover { transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease; }
.pro-card:hover, .pro-card:focus-within, .pro-step:hover { transform:translateY(-5px); border-color:#a78bfa80; box-shadow:0 16px 40px #7c3aed18; }
@keyframes pro-enter { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes pro-ambient { 0%,100% { opacity:.3; scale:1; } 50% { opacity:.65; scale:1.15; } }
@media (prefers-reduced-motion:no-preference) {
  .pro-body .reveal.visible { animation:pro-enter .7s ease both; }
  .pro-hero__orb { animation:pro-ambient 10s ease-in-out infinite; }
  .pro-hero__orb--2 { animation-delay:-5s; }
  .pro-body .btn:hover { box-shadow:0 0 28px #a78bfa35; }
}
@media(max-width:600px) { .pro-game-actions {flex-direction:column;} .pro-game-actions .btn {text-align:center;justify-content:center;} .pro-game-cover {border-radius:16px;} }
@media(prefers-reduced-motion:reduce) { .pro-body *, .pro-body *::before, .pro-body *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } .pro-card:hover,.pro-step:hover {transform:none;} }
