/* —— Comic Pop Studio —— */

:root {
  --ink: #0e0a14;
  --paper: #fff6ea;
  --paper-2: #ffe8f2;
  --panel: #160e28;
  --purple: #7b4dff;
  --purple-deep: #4a2fb8;
  --pink: #ff4d9a;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --cyan: #3ecfff;
  --lime: #c8ff3d;
  --line: #0e0a14;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-ui: "Rubik", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: min(1120px, 92vw);
  --comic-shadow: 5px 5px 0 var(--ink);
  --site-head-clearance: calc(1.25rem + env(safe-area-inset-top, 0px));
  /* Запас под фиксированное меню справа (важно при zoom 125–150%+) */
  --nav-rail: 9rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px));
  /* На мобилках «хвост» под футером совпадает с подвалом, а не с кремовым фоном */
  background: var(--ink);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-media img {
    transform: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(123, 77, 255, 0.18), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 77, 154, 0.16), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(62, 207, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #fff8ef 0%, #ffe9f4 45%, #fff3d9 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

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

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 800;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: var(--container);
  margin-inline: auto;
}

/* На средних ширинах (ноут + zoom) боковой запас меньше меню — отодвигаем контент */
@media (max-width: 1200px) {
  .wrap {
    padding-right: max(1rem, var(--nav-rail));
  }

  .hero-copy {
    padding-right: max(4vw, var(--nav-rail));
  }

  .page-hero::before {
    right: auto;
    left: 4vw;
    opacity: 0.14;
  }
}

@media (max-width: 720px) {
  :root {
    /* Компактное меню — контент шире, как уменьшенный десктоп */
    --nav-rail: 5.25rem;
    --comic-shadow: 2px 2px 0 var(--ink);
    --site-head-clearance: calc(0.55rem + env(safe-area-inset-top, 0px));
  }

  /* Ещё компактнее: весь UI как мелкий десктоп */
  html {
    font-size: 10.5px;
  }

  body {
    font-size: 1rem;
    line-height: 1.4;
  }

  .wrap {
    width: min(1120px, 96vw);
    padding-right: max(0.4rem, var(--nav-rail));
  }

  .section {
    padding: 1.05rem 0;
  }

  .section-head {
    margin-bottom: 0.65rem;
  }

  .section-title {
    font-size: 1.25rem;
    line-height: 1.12;
    margin-bottom: 0.25rem;
    letter-spacing: 0;
  }

  .section-lead {
    font-size: 0.92rem;
    max-width: 36rem;
    line-height: 1.35;
  }

  .section-label {
    font-size: 0.65rem;
    padding: 0.08rem 0.35rem;
    margin-bottom: 0.25rem;
  }

  .btn {
    min-height: 2.2rem;
    padding: 0.32rem 0.65rem;
    font-size: 0.78rem;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .prose p {
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
    line-height: 1.35;
  }

  .works-split {
    gap: 0.85rem;
  }

  /* Карточки направлений — плотнее */
  .dir-list {
    gap: 0.3rem;
  }

  .dir-row {
    gap: 0.25rem 0.45rem;
    padding: 0.35rem 0.45rem;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .dir-num {
    font-size: 0.85rem;
  }

  .dir-row h3 {
    font-size: 0.98rem;
    letter-spacing: 0;
  }

  .dir-row p {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .process-steps {
    gap: 0.3rem;
  }

  .process-step {
    padding: 0.4rem 0.5rem;
    border-width: 2px;
  }

  .process-step h3 {
    font-size: 0.9rem;
    margin-bottom: 0.12rem;
  }

  .process-step p {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  /* FAQ — максимально плотно */
  .faq-list {
    gap: 0.28rem;
    max-width: none;
  }

  .faq-item {
    padding: 0.32rem 0.45rem;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--pink);
  }

  .faq-item h3 {
    margin: 0 0 0.12rem;
    font-size: 0.88rem;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
  }

  .faq-item p {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .block-faq .section-title {
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0;
  }

  .pull-quote {
    font-size: 0.95rem;
    padding: 0.35rem 0.45rem;
    margin: 0.55rem 0;
    box-shadow: 2px 2px 0 var(--pink);
  }

  .review-card {
    padding: 0.5rem 0.55rem;
    gap: 0.45rem;
  }

  .review-text {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .review-name {
    font-size: 0.85rem;
  }

  .contact-lead {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .contact-links li {
    padding: 0.35rem 0.45rem;
    margin-bottom: 0.25rem;
  }

  .marquee {
    padding: 0.28rem 0;
  }

  .marquee-track span {
    font-size: 0.95rem;
    padding: 0 0.35rem;
  }

  .cta-lead {
    font-size: 0.88rem;
  }

  .cta-form {
    padding: 0.55rem 0.6rem;
  }

  .cta-form-title {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
  }

  .field {
    margin-bottom: 0.35rem;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 1rem;
    padding: 0.35rem 0.45rem;
  }

  .cta-form .field textarea {
    min-height: 4rem;
  }

  .foot-contacts {
    gap: 0.35rem;
  }

  .foot-contacts a {
    min-width: 5.2rem;
    padding: 0.28rem 0.4rem;
    font-size: 0.68rem;
  }

  .foot-geo,
  .foot-legal {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .site-foot {
    padding: 0.7rem 0 0.85rem;
  }

  .comic-panel {
    border-width: 2px;
  }

  .page-hero {
    padding-bottom: 1rem;
  }

  .page-hero h1 {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
  }

  .page-hero p {
    font-size: 0.9rem;
  }
}

/* Halftone overlay */
.halftone {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: radial-gradient(circle, #0e0a14 1.1px, transparent 1.2px);
  background-size: 7px 7px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  z-index: 400;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan));
  pointer-events: none;
}

/* —— Header: compact vertical nav —— */

.site-head {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 200;
  width: max-content;
  max-width: calc(100vw - 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transform: none;
  padding: 0.55rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: var(--comic-shadow);
}

.site-head.is-solid {
  background: #fff;
}

.site-menu-title {
  margin: 0;
  padding: 0.2rem 0.35rem 0.35rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.site-nav a {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.62rem 1.05rem;
  min-width: 8.25rem;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.site-nav a:hover {
  background: var(--cyan);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--yellow);
}

.site-menu-phone {
  display: block;
  margin-top: 0.1rem;
  padding: 0.55rem 0.65rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  background: var(--lime);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(200, 255, 61, 0.45);
  touch-action: manipulation;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.site-menu-phone:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

@media (max-width: 520px) {
  :root {
    --nav-rail: 5.35rem;
  }

  .site-head {
    top: max(0.4rem, env(safe-area-inset-top, 0px));
    right: 0.35rem;
    padding: 0.28rem;
    gap: 0.22rem;
    width: 5.1rem;
    max-width: calc(100svw - 0.7rem);
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .site-menu-title {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    padding: 0.08rem 0.12rem 0.18rem;
    border-bottom-width: 1px;
  }

  .site-nav {
    gap: 0.22rem;
  }

  .site-nav a {
    min-width: 0;
    min-height: 1.85rem;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    padding: 0.28rem 0.3rem;
    border-width: 1.5px;
    box-shadow: 1px 1px 0 var(--ink);
  }

  .site-menu-phone {
    min-height: 1.95rem;
    font-size: 0.52rem;
    letter-spacing: 0;
    padding: 0.22rem 0.2rem;
    white-space: normal;
    line-height: 1.12;
    border-width: 1.5px;
    box-shadow: 1px 1px 0 var(--ink);
  }

  .page-hero h1 {
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
    line-height: 1.08;
  }

  .page-hero p {
    font-size: 0.82rem;
    max-width: 20rem;
  }

  .contact-lead {
    font-size: 0.88rem;
  }

  .dir-fan {
    min-height: clamp(200px, 68vw, 280px);
  }

  .hero-brand {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .hero h1 {
    font-size: 0.84rem;
    max-width: 16rem;
  }

  .hero-lead {
    font-size: 0.78rem;
    max-width: 16rem;
  }

  .hero-burst {
    font-size: 0.85rem;
    padding: 0.22rem 0.5rem 0.18rem;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--pink);
  }

  .cta-form {
    padding: 0.85rem 0.9rem;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .cta-form-title {
    font-size: 1.05rem;
  }

  .cookie-banner-inner {
    padding: 0.7rem 0.75rem;
    border-width: 2px;
  }
}

html.has-cookie-banner body {
  /* Не padding на body — иначе под чёрным футером видна «серая» полоса фона */
  padding-bottom: 0;
}

html.has-cookie-banner .site-foot {
  /* Запас под баннер cookie — остаётся цвет футера */
  padding-bottom: calc(1.85rem + 6.5rem + env(safe-area-inset-bottom, 0px));
}

html.has-cookie-banner .hero-copy {
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 520px) {
  html.has-cookie-banner .site-foot {
    padding-bottom: calc(1.1rem + 8.5rem + env(safe-area-inset-bottom, 0px));
  }

  html.has-cookie-banner .hero-copy {
    padding-bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
  }
}

html.has-cookie-banner .cookie-banner {
  /* already fixed */
}


/* —— Reveals —— */
/* Без JS контент видим; скрытие только при html.js */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

html.js .reveal-stagger.is-in > *:nth-child(1) {
  transition-delay: 0.04s;
}
html.js .reveal-stagger.is-in > *:nth-child(2) {
  transition-delay: 0.1s;
}
html.js .reveal-stagger.is-in > *:nth-child(3) {
  transition-delay: 0.16s;
}
html.js .reveal-stagger.is-in > *:nth-child(4) {
  transition-delay: 0.22s;
}

html.js .reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 4px solid var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--panel);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 35%;
  transform: scale(1.04);
  animation: hero-live 20s ease-in-out infinite alternate;
}

@keyframes hero-live {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1%, -0.8%, 0);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 10, 20, 0.72) 0%, rgba(14, 10, 20, 0.35) 42%, transparent 68%),
    linear-gradient(180deg, transparent 40%, rgba(14, 10, 20, 0.78) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: var(--site-head-clearance) 0 clamp(2.2rem, 6vh, 3.5rem);
  max-width: 34rem;
  margin-left: max(calc((100% - var(--container)) / 2), 4vw);
  color: #fff;
}

.hero-burst {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 var(--pink);
  transform: rotate(-3deg);
  animation: burst-pop 0.7s var(--ease-out) both;
}

@keyframes burst-pop {
  0% {
    opacity: 0;
    transform: rotate(-8deg) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: rotate(-3deg) scale(1);
  }
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    3px 3px 0 var(--ink),
    -1px -1px 0 var(--ink),
    1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink),
    0 0 0 var(--pink);
}

.hero h1 {
  margin: 0 0 0.65rem;
  max-width: 26rem;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

.hero-lead {
  margin: 0 0 1.35rem;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 0.7rem;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.hero-actions-row--solo {
  width: 100%;
}

@media (max-width: 720px) {
  .hero-copy {
    margin-left: auto;
    margin-right: auto;
    padding-left: 3.5vw;
    padding-right: max(3vw, var(--nav-rail));
    max-width: none;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
    gap: 0.45rem;
  }

  .hero-actions .btn {
    text-align: center;
    line-height: 1.15;
    white-space: normal;
    hyphens: auto;
  }

  .hero-actions-row .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    min-height: 2.25rem;
    font-size: 0.72rem;
    padding: 0.4rem 0.55rem;
  }

  .hero-actions-row--solo .btn {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    font-size: 0.74rem;
  }

  .hero-media img {
    object-position: 62% 30%;
  }
}

@media (max-width: 400px) {
  .hero-actions-row:not(.hero-actions-row--solo) {
    flex-direction: column;
  }

  .hero-actions-row .btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .hero-brand {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hero-actions-row .btn,
  .hero-actions-row--solo .btn {
    font-size: 0.82rem;
    padding-inline: 0.85rem;
  }
}

/* Ноутбук + увеличение масштаба: высота CSS-вьюпорта падает */
@media (max-height: 780px) {
  .hero-brand {
    font-size: clamp(2.1rem, 7vh, 3.6rem);
    margin-bottom: 0.55rem;
  }

  .hero-burst {
    margin-bottom: 0.55rem;
  }

  .hero-lead {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
  }

  .hero-copy {
    padding-top: calc(var(--site-head-clearance) + 0.35rem);
    padding-bottom: 1.35rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero .btn {
    min-height: 2.55rem;
    padding-block: 0.55rem;
  }
}

@media (max-height: 620px) {
  .hero {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .marquee {
    display: none;
  }
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border: 3px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  will-change: transform;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--pink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--cyan);
}

.btn-urgent {
  background: var(--lime);
  color: var(--ink);
}

.btn-urgent:hover {
  background: var(--yellow);
}

.btn-dark {
  background: var(--ink);
  color: var(--yellow);
}

.btn-dark:hover {
  background: var(--purple);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* —— Marquee —— */

.marquee {
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--ink);
  border-bottom: 4px solid var(--yellow);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--yellow);
}

.marquee-track .marquee-star {
  padding: 0 0.55rem;
  color: var(--pink);
  font-size: 0.75em;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    /* 4 одинаковых группы → сдвиг на 1 группу = бесшовный цикл */
    transform: translate3d(-25%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* —— Sections —— */

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--cyan);
  border: 2px solid var(--ink);
}

.section-label i {
  display: none;
}

.section-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0;
  max-width: 34rem;
  color: rgba(14, 10, 20, 0.7);
}

.g-empty {
  grid-column: 1 / -1;
}

.btn-gap-left {
  margin-left: 0.5rem;
}

.modal-cta {
  margin-top: 1.5rem;
}

.section-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.comic-panel {
  border: 3px solid var(--ink);
  box-shadow: var(--comic-shadow);
  background: #fff;
}

/* —— About —— */

.works-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: center;
}

@media (max-width: 900px) {
  .works-split {
    grid-template-columns: 1fr;
  }
}

.works-visual {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.works-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 0.9s var(--ease-out);
}

.works-visual.is-in img,
.works-visual:hover img {
  transform: scale(1.03);
}

.works-visual.reveal.is-in:hover,
.works-visual.is-in:hover {
  transform: translate(-4px, -4px);
}

.prose p {
  margin: 0 0 1rem;
  color: rgba(14, 10, 20, 0.75);
}

.pull-quote {
  margin: 1.35rem 0;
  padding: 0.9rem 1rem;
  border: 3px solid var(--ink);
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--pink);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.pull-quote:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--pink);
}

/* —— Directions —— */

.block-directions {
  background:
    linear-gradient(90deg, rgba(123, 77, 255, 0.08), rgba(255, 77, 154, 0.08)),
    var(--paper-2);
  border-block: 4px solid var(--ink);
}

.dir-fan {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 58vw, 580px);
  margin: 0.25rem 0;
  /* Место под поворот — без overflow:hidden, иначе углы режутся */
  overflow: visible;
}

.dir-card {
  position: absolute;
  top: 8%;
  width: min(48%, 260px);
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden; /* только фото внутри рамки */
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform-origin: 50% 100%;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    z-index 0s;
}

.dir-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dir-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.7rem;
  background: rgba(14, 10, 20, 0.84);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Вписаны в колонку с запасом, чтобы поворот не обрезался и не лез на текст */
.dir-card:nth-child(1) {
  left: 2%;
  top: 18%;
  transform: rotate(-18deg);
  z-index: 1;
  box-shadow: 6px 6px 0 var(--cyan);
}

.dir-card:nth-child(2) {
  left: 24%;
  top: 6%;
  transform: rotate(-2deg);
  z-index: 2;
  box-shadow: 6px 6px 0 var(--pink);
}

.dir-card:nth-child(3) {
  left: 46%;
  top: 16%;
  transform: rotate(16deg);
  z-index: 3;
  box-shadow: 6px 6px 0 var(--yellow);
}

.dir-fan.is-in .dir-card:nth-child(1) {
  animation: fan-in 0.65s var(--ease-out) both;
}
.dir-fan.is-in .dir-card:nth-child(2) {
  animation: fan-in 0.65s var(--ease-out) 0.08s both;
}
.dir-fan.is-in .dir-card:nth-child(3) {
  animation: fan-in 0.65s var(--ease-out) 0.16s both;
}

@keyframes fan-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .dir-card:hover {
    z-index: 5;
    box-shadow: 9px 9px 0 var(--ink);
  }

  .dir-card:nth-child(1):hover {
    transform: rotate(-12deg) translateY(-12px) scale(1.03);
  }

  .dir-card:nth-child(2):hover {
    transform: rotate(0deg) translateY(-16px) scale(1.04);
  }

  .dir-card:nth-child(3):hover {
    transform: rotate(11deg) translateY(-12px) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dir-fan.is-in .dir-card {
    animation: none;
  }
}

@media (max-width: 900px) {
  .dir-fan {
    min-height: clamp(360px, 95vw, 480px);
    max-width: 560px;
    margin-inline: auto;
  }

  .dir-card {
    width: min(46%, 210px);
  }

  .dir-card:nth-child(1) {
    left: 4%;
    top: 16%;
  }

  .dir-card:nth-child(2) {
    left: 28%;
    top: 6%;
  }

  .dir-card:nth-child(3) {
    left: 52%;
    top: 14%;
  }
}

@media (min-width: 901px) {
  .block-directions .works-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4.5vw, 3.5rem);
    align-items: center;
    overflow: visible;
  }
}

.dir-list {
  display: grid;
  gap: 0.85rem;
}

.block-directions .works-split .dir-row {
  grid-template-columns: 3.25rem 1fr;
}

.block-directions .works-split .dir-row p {
  grid-column: 2;
}

.dir-row {
  display: grid;
  grid-template-columns: 4rem 1fr minmax(0, 22rem);
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1.15rem 1.1rem;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.dir-row:nth-child(1):hover {
  background: #ffe8ff;
}
.dir-row:nth-child(2):hover {
  background: #e8fff8;
}
.dir-row:nth-child(3):hover {
  background: #fff4d6;
}

.dir-row:hover,
.reveal-stagger.is-in > .dir-row:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.dir-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pink);
}

.dir-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
}

.dir-row p {
  margin: 0;
  color: rgba(14, 10, 20, 0.7);
  font-size: 0.98rem;
}

@media (max-width: 800px) {
  .dir-row {
    grid-template-columns: 3rem 1fr;
  }

  .dir-row p {
    grid-column: 2;
  }
}

/* —— Process —— */

.block-process {
  background: var(--panel);
  color: #fff;
  border-bottom: 4px solid var(--ink);
}

.block-process .section-label {
  background: var(--pink);
  color: #fff;
}

.block-process .section-lead {
  color: rgba(255, 255, 255, 0.7);
}

.process-steps {
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}

.block-process .works-visual {
  background: #1c1233;
}

.block-process .comic-panel {
  box-shadow: 5px 5px 0 var(--pink);
}

.process-step {
  padding: 1rem 1.1rem;
  border: 3px solid #fff;
  background: rgba(255, 255, 255, 0.06);
  counter-increment: step;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.process-step:hover,
.reveal-stagger.is-in > .process-step:hover {
  transform: translate(-3px, -3px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 5px 5px 0 var(--yellow);
}

.process-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--yellow);
}

.process-step h3::before {
  content: counter(step, decimal-leading-zero) " / ";
  color: var(--cyan);
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* —— FAQ —— */

.block-faq {
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.faq-item {
  padding: 1rem 1.15rem;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--pink);
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.faq-item p {
  margin: 0;
  color: rgba(14, 10, 20, 0.72);
}

/* —— CTA —— */

.block-cta {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.block-cta .cta-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background:
    linear-gradient(135deg, #fff 0%, #ffe4f3 50%, #fff5c8 100%);
}

.cta-copy .section-title {
  margin-bottom: 0.75rem;
}

.cta-lead {
  margin: 0 0 1.15rem;
  max-width: 28rem;
  color: rgba(14, 10, 20, 0.7);
}

.cta-form {
  position: relative;
  padding: 1.1rem 1.15rem 1.2rem;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.cta-form-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.75rem;
}

.cta-form-full {
  grid-column: 1 / -1;
}

.cta-form .field textarea {
  min-height: 5.5rem;
}

.cta-form .form-hint {
  margin-top: 0.15rem;
}

.cta-form .btn {
  width: 100%;
}

@media (max-width: 800px) {
  .block-cta .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-form-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Reviews —— */

.block-reviews {
  background:
    linear-gradient(180deg, rgba(62, 207, 255, 0.08), rgba(255, 210, 63, 0.12)),
    var(--paper);
  border-top: 4px solid var(--ink);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.2rem 1.15rem;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.review-card:nth-child(3n + 1) {
  box-shadow: 4px 4px 0 var(--cyan);
}
.review-card:nth-child(3n + 2) {
  box-shadow: 4px 4px 0 var(--pink);
}
.review-card:nth-child(3n) {
  box-shadow: 4px 4px 0 var(--yellow);
}

.review-card:hover,
.reveal-stagger.is-in > .review-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
  background: #fffaf3;
}

.review-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(14, 10, 20, 0.82);
}

.review-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.review-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.review-meta {
  font-size: 0.86rem;
  color: rgba(14, 10, 20, 0.55);
}

.review-link {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  padding: 0.55rem 0.85rem;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Inner pages —— */

.inner-page .page-hero {
  padding: calc(var(--site-head-clearance) + 2rem) 0 1.75rem;
}

.page-hero::before {
  content: "POW!";
  position: absolute;
  right: 6vw;
  top: calc(var(--site-head-clearance) + 1rem);
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--pink);
  opacity: 0.2;
  transform: rotate(12deg);
  pointer-events: none;
}

.page-hero {
  position: relative;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 7.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.page-hero h1,
.section-title,
.faq-item h3,
.dir-row h3 {
  overflow-wrap: break-word;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(14, 10, 20, 0.7);
}

/* —— Gallery —— */

.gallery-section {
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.g-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  color: inherit;
  text-align: left;
  font: inherit;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.g-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.g-item .thumb {
  width: 100%;
  line-height: 0;
  background: #1a1030;
}

.g-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}

.g-item:hover img {
  transform: scale(1.02);
}

.g-item .g-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(14, 10, 20, 0.92));
  color: #fff;
}

.g-item .g-title {
  margin: 0 0 0.15rem;
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.g-item .g-meta {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.g-item .g-tag {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.45rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--ink);
}

.g-item .g-more {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* —— Contacts —— */

.contacts-section {
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 860px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

.contact-lead {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-note {
  margin: 0 0 1.5rem;
  color: rgba(14, 10, 20, 0.7);
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-links li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.55rem;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease);
}

.contact-links li:hover {
  transform: translate(-2px, -2px);
  background: var(--yellow);
}

.contact-links .label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14, 10, 20, 0.5);
}

.contact-links a {
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-form-wrap {
  padding: 1.25rem;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--comic-shadow);
}

.contact-form-wrap h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field .req {
  color: var(--pink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 3px solid var(--ink);
  background: #fffaf3;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 10px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: #fff;
  box-shadow: 4px 4px 0 var(--cyan);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: rgba(14, 10, 20, 0.55);
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  border: 3px solid var(--ink);
}

.form-status[data-state="ok"] {
  background: var(--lime);
}

.form-status[data-state="error"] {
  background: #ffc4d8;
}

.form-status[data-state="pending"] {
  color: rgba(14, 10, 20, 0.65);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-footnote {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: rgba(14, 10, 20, 0.5);
}

.form-footnote code {
  font-size: 0.75rem;
}

/* —— Modal —— */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(14, 10, 20, 0.82);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}

.modal-root.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  width: min(980px, 100%);
  max-height: min(88vh, 720px);
  overflow: hidden;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--pink);
  transform: translateY(12px);
  transition: transform 0.35s var(--ease-out);
}

.modal-root.is-open .modal-box {
  transform: none;
}

@media (max-width: 760px) {
  .modal-box {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow: auto;
  }
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.modal-close:hover {
  background: var(--cyan);
}

.modal-media {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 260px;
  background: #1a1030;
  border-right: 4px solid var(--ink);
  overflow: hidden;
}

@media (max-width: 760px) {
  .modal-media {
    border-right: 0;
    border-bottom: 4px solid var(--ink);
  }
}

.modal-media > img,
.modal-box img[data-m-img] {
  width: 100%;
  height: 100%;
  max-height: min(72vh, 560px);
  object-fit: contain;
  object-position: center;
  background: #1a1030;
  min-height: 220px;
  display: block;
}

.modal-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.modal-nav:hover {
  background: var(--cyan);
}

.modal-prev {
  left: 0.55rem;
}

.modal-next {
  right: 0.55rem;
}

.modal-thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem;
  overflow-x: auto;
  background: rgba(14, 10, 20, 0.55);
}

.modal-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  background: #2a2038;
  cursor: pointer;
  overflow: hidden;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: none;
  min-height: 0;
  border: 0;
}

.modal-thumb.is-active {
  border-color: var(--yellow);
}

.modal-aside {
  padding: 1.35rem;
  overflow: auto;
}

.modal-aside h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.modal-aside .meta {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.modal-aside .desc {
  margin: 0;
  color: rgba(14, 10, 20, 0.7);
}

/* —— Footer —— */

.site-foot {
  padding: 1.5rem 0 1.85rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 4px solid var(--yellow);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.foot-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
  max-width: 44rem;
}

.foot-contacts a {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 7.5rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 var(--yellow);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.foot-contacts a::before {
  content: attr(data-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.foot-contacts a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--yellow);
}

.foot-contacts a[data-c="phone"] {
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--cyan);
}
.foot-contacts a[data-c="phone"]:hover {
  box-shadow: 5px 5px 0 var(--cyan);
}

.foot-contacts a[data-c="email"] {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--pink);
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--font-ui);
  font-weight: 700;
}
.foot-contacts a[data-c="email"]:hover {
  box-shadow: 5px 5px 0 var(--pink);
}

.foot-contacts a[data-c="instagram"] {
  background: #ffa3d1;
  box-shadow: 3px 3px 0 var(--purple);
}
.foot-contacts a[data-c="instagram"]:hover {
  box-shadow: 5px 5px 0 var(--purple);
}

.foot-contacts a[data-c="vk"] {
  background: var(--cyan);
  box-shadow: 3px 3px 0 var(--ink);
}
.foot-contacts a[data-c="vk"]:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

.foot-contacts a[data-c="telegram"] {
  background: #9bffc7;
  box-shadow: 3px 3px 0 var(--pink);
}
.foot-contacts a[data-c="telegram"]:hover {
  box-shadow: 5px 5px 0 var(--pink);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin-left: auto;
}

.foot-links a {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.foot-links a:hover {
  color: var(--cyan);
}

.foot-geo {
  margin: 1.5rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.foot-legal {
  margin: 0.85rem auto 0;
  max-width: 52rem;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Cookie banner —— */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  padding: 0.85rem max(0.85rem, env(safe-area-inset-right))
    calc(0.85rem + env(safe-area-inset-bottom, 0px)) max(0.85rem, env(safe-area-inset-left));
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.cookie-banner-text {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(14, 10, 20, 0.78);
}

.cookie-banner-text a {
  color: var(--purple-deep);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-banner-accept {
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .cookie-banner {
    padding: 0.65rem max(0.55rem, env(safe-area-inset-right))
      calc(0.65rem + env(safe-area-inset-bottom, 0px)) max(0.55rem, env(safe-area-inset-left));
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 0.9rem;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .cookie-banner-text {
    flex: 1 1 auto;
    font-size: 0.84rem;
  }

  .cookie-banner-accept {
    width: 100%;
  }
}

/* —— Legal / privacy page —— */

.legal-section {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.legal-prose {
  max-width: 42rem;
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--comic-shadow);
}

.legal-updated {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: rgba(14, 10, 20, 0.5);
}

.legal-prose h2 {
  margin: 1.5rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-prose p,
.legal-prose li {
  color: rgba(14, 10, 20, 0.78);
  line-height: 1.5;
}

.legal-prose ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}

.legal-prose a:not(.btn) {
  color: var(--purple-deep);
  font-weight: 600;
  text-decoration: underline;
}

.field-consent {
  margin: 0.85rem 0 1rem;
}

.field-consent label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  color: rgba(14, 10, 20, 0.75);
  cursor: pointer;
}

.field-consent input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--pink);
}

.field-consent a {
  color: var(--purple-deep);
  font-weight: 700;
  text-decoration: underline;
}

/* —— Lead quiz —— */

.quiz-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 550;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quiz-root.is-open {
  display: flex;
}

.quiz-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 20, 0.55);
}

.quiz-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 1.35rem 1.25rem 1.25rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.quiz-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.quiz-close:hover {
  background: var(--yellow);
}

.quiz-progress {
  height: 8px;
  margin: 0 2rem 0.85rem 0;
  border: 2px solid var(--ink);
  background: #fff;
}

.quiz-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  appearance: none;
}

.quiz-progress-bar::-webkit-progress-bar {
  background: transparent;
}

.quiz-progress-bar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--pink), var(--yellow));
}

.quiz-progress-bar::-moz-progress-bar {
  background: linear-gradient(90deg, var(--pink), var(--yellow));
}

.quiz-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.quiz-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.quiz-lead {
  margin: 0 0 1.1rem;
  color: rgba(14, 10, 20, 0.72);
  line-height: 1.45;
}

.quiz-options {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.quiz-option:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: #fff8e8;
}

.quiz-option.is-active {
  background: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.quiz-contacts .field {
  margin-bottom: 0.75rem;
}

.quiz-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  opacity: 0.7;
}

.quiz-contacts textarea {
  min-height: 4.5rem;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.quiz-actions .btn {
  flex: 1 1 auto;
}

.quiz-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.quiz-status {
  margin: 0.4rem 0 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  border: 2px solid var(--ink);
}

.quiz-status[data-state="ok"] {
  background: var(--lime);
}

.quiz-status[data-state="error"] {
  background: #ffc4d8;
}

.quiz-status[data-state="pending"] {
  color: rgba(14, 10, 20, 0.65);
}

.quiz-done .btn {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 520px) {
  .quiz-panel {
    padding: 1.15rem 1rem 1rem;
  }
}

.site {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.site main {
  flex: 1 0 auto;
}

.site-foot {
  flex-shrink: 0;
  margin-top: auto;
}

.muted {
  color: rgba(14, 10, 20, 0.55);
  font-size: 0.9rem;
}
