:root {
  --bg: #020202;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --muted-strong: rgba(255, 255, 255, 0.78);
  --accent: #ffffff;
  --accent-dark: #020202;
  --container: 1260px;
  --radius-xl: 48px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.24);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  /* Required alongside the width/height attributes: without it a constrained
     width keeps the attribute height and the image stretches vertically. */
  height: auto;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.white-flare {
  position: fixed;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.flare-top {
  top: -10vw;
  right: -10vw;
}

.flare-bottom {
  bottom: 8vw;
  left: -10vw;
}

.background-marquee {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-top: 9rem;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.9) 72%, transparent 100%);
  contain: layout paint;
}

.marquee-row {
  display: flex;
  gap: 1.2rem;
  transform: rotate(-1.6deg) scale(1.01);
  transform-origin: center;
}

.marquee-row.reverse {
  transform: rotate(-1.6deg) scale(1.01);
}

.marquee-track {
  flex-shrink: 0;
  width: max-content;
  min-width: 100%;
  display: flex;
  gap: 1.2rem;
  animation: scroll-left 270s linear infinite;
}

.marquee-row.reverse .marquee-track {
  animation-name: scroll-right;
}

.marquee-image {
  width: 320px;
  aspect-ratio: 16 / 9;
  border-radius: 1.6rem;
  object-fit: cover;
  opacity: 0.28;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes scroll-right {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 120%),
    rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.headline-ticker {
  position: sticky;
  top: 81px;
  z-index: 90;
  display: flex;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.014);
  backdrop-filter: blur(16px);
}

.headline-track {
  flex-shrink: 0;
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 20px;
  animation: ticker-scroll 38s linear infinite;
}

.headline-track span {
  position: relative;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.headline-track .ticker-accent {
  color: rgba(136, 255, 184, 0.76);
}

.headline-track .ticker-accent-alt {
  color: rgba(255, 106, 106, 0.7);
}

.headline-track span::after {
  content: "•";
  margin-left: 22px;
  color: rgba(255, 255, 255, 0.22);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong,
.hero-title,
.section-title h2,
.pricing-card h3,
.about-copy h2,
.brief-copy h1,
.brief-sidebar h2,
.form-head h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.header-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(136, 255, 184, 0.18);
  background: rgba(136, 255, 184, 0.08);
  color: #b8ffd0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-controls {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.language-switch button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.language-switch button:hover,
.language-switch button:focus-visible {
  color: #ffffff;
}

.language-switch button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.site-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.24s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-contact {
  position: relative;
}

.site-nav .nav-contact::before,
.site-nav .nav-contact::after {
  content: "";
  position: absolute;
  inset: -7px -10px;
  border: 2px solid rgba(255, 106, 106, 0.9);
  border-radius: 999px;
  pointer-events: none;
}

.site-nav .nav-contact::before {
  transform: rotate(-4deg);
  opacity: 0.95;
}

.site-nav .nav-contact::after {
  inset: -5px -8px;
  transform: rotate(3deg);
  opacity: 0.52;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 124px);
  min-height: calc(100svh - 124px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(4.4rem, 7vh, 5.8rem) 1.5rem clamp(4.8rem, 8vh, 6.2rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-logo-block {
  position: relative;
  margin-bottom: clamp(2rem, 3.2vh, 2.35rem);
}

.hero-logo-glow {
  position: absolute;
  inset: -48px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 55%, transparent 72%);
  filter: blur(80px);
}

.hero-logo-mark {
  position: relative;
  z-index: 2;
  width: 176px;
  height: 176px;
  padding: 8px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
}

.hero-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

.hero-kicker,
.eyebrow {
  color: rgba(255, 255, 255, 0.46);
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.32em;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.8rem, 10vw, 7.6rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions.centered {
  justify-content: center;
  margin-top: 1.7rem;
}

.hero-stats {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-scroll-guide {
  display: inline-grid;
  place-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: clamp(2rem, 6vh, 4.5rem);
  color: rgba(255, 255, 255, 0.56);
  transition: color 0.2s ease;
}

.hero-scroll-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-scroll-arrow {
  width: 24px;
  height: 54px;
  overflow: visible;
  filter: drop-shadow(0 0 7px rgba(136, 255, 184, 0.24));
  animation: scroll-guide-bob 1.8s ease-in-out infinite;
}

.hero-scroll-guide:hover,
.hero-scroll-guide:focus-visible {
  color: #ffffff;
  outline: none;
}

@keyframes scroll-guide-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

.hero-stat {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 1.1rem 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.38);
}

.hero-stat strong {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.24s ease;
}

.button:hover,
.button:focus-visible {
  transform: scale(1.03);
}

.button-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.16);
}

.order-button {
  position: relative;
  overflow: hidden;
  border-color: rgba(136, 255, 184, 0.24);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #d8ffe4 0%, #a7efbf 48%, #78d89c 100%);
  color: #03140a;
  box-shadow: 0 0 50px rgba(136, 255, 184, 0.18);
}

.order-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(3, 20, 10, 0.1) 0 2px, transparent 2px 100%);
  background-size: 18px 18px;
  opacity: 0.16;
  pointer-events: none;
}

.order-button:hover,
.order-button:focus-visible {
  box-shadow: 0 0 58px rgba(136, 255, 184, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: #ffffff;
}

.hero-order {
  min-width: 240px;
}

.portfolio-section,
.approach-band,
.pricing-section,
.about-section,
.brief-page,
.brief-form-section {
  position: relative;
  z-index: 10;
}

.approach-band,
.process-section,
.pricing-section,
.about-section {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.portfolio-section {
  padding: 4.2rem 0 7rem;
  scroll-margin-top: 116px;
}

.section-title {
  text-align: center;
  margin-bottom: 2.6rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-style: italic;
  text-transform: uppercase;
}

.section-line {
  width: 72px;
  height: 4px;
  margin: 1.2rem auto 0;
  background: linear-gradient(90deg, #88ffb8 0%, #ffffff 48%, #ff6a6a 100%);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.22);
}

.portfolio-stack {
  display: grid;
  gap: 2.2rem;
  min-width: 0;
}

.portfolio-block {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.portfolio-block::before {
  content: "";
  display: block;
  width: 84px;
  height: 1px;
  margin-left: 1.5rem;
  background: linear-gradient(90deg, rgba(136, 255, 184, 0.7), rgba(255, 255, 255, 0));
}

.portfolio-meta {
  padding: 0 1.5rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.portfolio-row-container {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.portfolio-row {
  display: flex;
  gap: 1.4rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 0.8rem 1.5rem 1.6rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.portfolio-row.is-pointer-down,
.portfolio-row.is-dragging {
  cursor: grabbing;
}

.portfolio-row.is-dragging {
  scroll-behavior: auto;
}

.portfolio-row.is-dragging .portfolio-item {
  pointer-events: none;
}

.portfolio-row::-webkit-scrollbar {
  display: none;
}

.portfolio-item {
  --thumb-radius: 1.7rem;
  flex: 0 0 460px;
  aspect-ratio: 16 / 9;
  cursor: inherit;
  border-radius: var(--thumb-radius);
  overflow: clip;
  padding: 2px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  isolation: isolate;
  user-select: none;
  transition: all 0.4s ease;
}

.portfolio-item:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.34);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--thumb-radius) - 2px);
  clip-path: inset(0 round calc(var(--thumb-radius) - 2px));
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0.92;
  cursor: pointer;
  transition: all 0.24s ease;
}

.scroll-btn.left {
  left: 12px;
}

.scroll-btn.right {
  right: 12px;
}

.scroll-btn:hover {
  background: #ffffff;
  color: #000000;
}

.portfolio-actions {
  display: flex;
  justify-content: center;
}

.archive-toggle {
  min-width: 250px;
}

.approach-band {
  padding: 7rem 0;
  border-top: 1px solid var(--line-soft);
}

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

.approach-card,
.about-panel,
.brief-point,
.brief-panel,
.brief-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.approach-card {
  padding: 2rem;
  border-radius: 2rem;
}

.approach-card span {
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.approach-card h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
}

.approach-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.process-section {
  position: relative;
  z-index: 10;
  padding: 0 0 7rem;
}

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

.process-card {
  padding: 2rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.process-card span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.process-card h3 {
  margin-top: 1rem;
  font-size: 1.7rem;
}

.process-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.pricing-section {
  padding: 7rem 0;
  border-top: 1px solid var(--line-soft);
}

.section-title .eyebrow {
  margin-bottom: 0.8rem;
}

.script-accent {
  display: inline-block;
  color: #f3d44e;
  font-family: "Caveat", cursive;
  font-size: 1.14em;
  font-style: normal;
  line-height: 0.85;
  text-transform: none;
}

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

.pricing-card {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 2rem;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.026);
  box-shadow: var(--shadow-soft);
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 10%, rgba(136, 255, 184, 0.07), transparent 32%);
  opacity: 0.9;
  pointer-events: none;
}

.pricing-card-featured {
  border-color: rgba(255, 106, 106, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 106, 106, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.pricing-card-head,
.price-list,
.included-block {
  position: relative;
  z-index: 1;
}

.pricing-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.pricing-kicker {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.pricing-card-featured .pricing-title-accent {
  color: #ff6a6a;
}

html[data-language="ru"] .pricing-card-featured .pricing-title-accent {
  color: #fff;
}

html[data-language="ru"] .pricing-card-featured [data-i18n="pricing.proTitleRest"] {
  color: #ff6a6a;
}

.pricing-badge {
  flex: 0 0 auto;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-card-featured .pricing-badge {
  background: rgba(255, 106, 106, 0.94);
  color: #ffffff;
}

.price-list,
.included-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list {
  display: grid;
  gap: 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
}

.price-list span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.price-list strong {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  white-space: nowrap;
}

.included-block {
  display: grid;
  gap: 0.75rem;
}

.included-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.included-block ul {
  display: grid;
  gap: 0.6rem;
}

.included-block li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  color: var(--muted);
}

.included-block li::before {
  content: "->";
  color: #88ffb8;
  font-weight: 900;
}

.about-section {
  padding: 7rem 0 8rem;
  border-top: 1px solid var(--line-soft);
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 2.2rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 3rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(136, 255, 184, 0.03), transparent 28%),
    linear-gradient(220deg, rgba(255, 106, 106, 0.03), transparent 24%),
    rgba(255, 255, 255, 0.03);
}

.about-copy {
  min-width: 0;
}

.about-panel::before,
.about-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.about-panel::before {
  width: 180px;
  height: 180px;
  top: -70px;
  right: -40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
  filter: blur(12px);
}

.about-panel::after {
  width: 110px;
  height: 110px;
  left: -30px;
  bottom: -36px;
  border: 1px solid rgba(136, 255, 184, 0.12);
  opacity: 0.8;
}

.eyebrow {
  margin: 0 0 1rem;
}

.about-copy h2 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.8rem, 4.4vw, 4.7rem);
  font-style: italic;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}

.about-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-actions {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.social-panel {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-soft);
}

.quick-links-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-panel-label {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  min-height: 64px;
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.24s ease, background-color 0.24s ease, transform 0.24s ease;
}

.social-link-primary {
  border-color: rgba(136, 255, 184, 0.2);
  background: rgba(136, 255, 184, 0.08);
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.social-link span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 700;
}

.social-link strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.showcase-link {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.7rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.24s ease, background-color 0.24s ease, transform 0.24s ease;
}

.showcase-link:hover,
.showcase-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.showcase-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.8rem;
  object-fit: cover;
}

.showcase-link span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.showcase-link em {
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-style: normal;
  text-transform: uppercase;
}

.showcase-link strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  position: relative;
  z-index: 10;
  padding: 2rem 1rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.22);
  font-family: "Caveat", cursive;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.site-footer p span {
  display: inline-block;
  transform: rotate(-2deg);
}

.site-footer p em {
  display: inline-block;
  margin-left: 0.4rem;
  color: rgba(255, 255, 255, 0.14);
  font-style: normal;
  font-size: 0.82em;
  transform: rotate(1deg);
}

.brief-page {
  padding: 4rem 0 2rem;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.brief-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-text {
  max-width: 50ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.brief-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.brief-point {
  padding: 1.2rem 1.3rem;
  border-radius: 1.4rem;
}

.brief-point span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brief-point strong {
  display: block;
  margin-top: 0.5rem;
}

.brief-panel {
  display: grid;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 2rem;
}

.brief-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.brief-visual-media {
  width: 240px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.brief-visual-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.brief-visual-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief-sidebar h2,
.form-head h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-style: italic;
  text-transform: uppercase;
}

.brief-checklist {
  margin: 1rem 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.brief-form-section {
  padding: 2rem 0 7rem;
}

.brief-form {
  padding: 2rem;
  border-radius: 2rem;
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: end;
  margin-bottom: 1.8rem;
}

.works-note {
  max-width: 30ch;
  color: var(--muted);
  text-align: right;
}

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

.form-field {
  display: grid;
  gap: 0.6rem;
}

.form-field span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.form-field-wide {
  grid-column: 1 / -1;
}

.abc-builder {
  min-width: 0;
  margin: 2rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.abc-builder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 1.5rem;
  align-items: center;
}

.abc-builder-head h3 {
  margin: 0.35rem 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}

.abc-builder-head > div > p:last-child {
  max-width: 58ch;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.abc-switch {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  min-height: 76px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.abc-switch input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: #ffffff;
}

.abc-switch input:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: 3px;
}

.abc-switch span {
  display: grid;
  gap: 0.2rem;
}

.abc-switch strong {
  font-size: 0.95rem;
}

.abc-switch small {
  color: var(--muted);
}

.abc-concepts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.abc-concepts[hidden] {
  display: none;
}

.abc-concept-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.abc-concept-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.abc-concept-head > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #050505;
  font-weight: 900;
}

.abc-concept-head strong {
  font-size: 0.92rem;
  text-transform: uppercase;
}

.abc-concept-card .form-field textarea {
  min-height: 108px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  align-items: center;
  margin-top: 1.8rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.brief-draft-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.brief-draft-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.brief-draft-clear {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
}

.brief-draft-clear:hover,
.brief-draft-clear:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
  outline: none;
}

.brief-share-open {
  overflow: hidden;
}

.brief-share-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.brief-share-modal[hidden] {
  display: none;
}

.brief-share-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.brief-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.brief-share-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(5, 5, 5, 0.94);
  box-shadow: var(--shadow-strong);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.2s ease;
}

.brief-share-modal.is-open .brief-share-dialog {
  transform: translateY(0) scale(1);
}

.brief-share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.brief-share-dialog h2 {
  max-width: 12ch;
  margin: 0.55rem 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-style: italic;
  line-height: 0.95;
  text-transform: uppercase;
}

.brief-share-status {
  margin: 1rem 0 0;
  color: var(--muted-strong);
}

.brief-share-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.brief-share-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.brief-share-link:hover,
.brief-share-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.075);
}

.brief-share-whatsapp {
  border-color: rgba(136, 255, 184, 0.24);
  background: rgba(136, 255, 184, 0.1);
}

.brief-share-link span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brief-share-link strong {
  color: #ffffff;
  font-size: clamp(1rem, 4vw, 1.2rem);
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-left {
  transform: translateX(-36px);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-fast {
  transition-duration: 520ms;
}

.reveal-stagger-1 {
  transition-delay: 70ms;
}

.reveal-stagger-2 {
  transition-delay: 140ms;
}

.reveal-stagger-3 {
  transition-delay: 210ms;
}

.reveal-stagger-4 {
  transition-delay: 280ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (min-width: 1024px) {
  .scroll-btn {
    opacity: 0.86;
  }
}

@media (min-width: 1181px) and (max-width: 1400px) {
  .hero-title {
    font-size: clamp(4.2rem, 8.2vw, 6.45rem);
  }
}

@media (max-width: 1180px) {
  .header-status {
    display: none;
  }

  .hero {
    min-height: calc(92vh - 124px);
    min-height: calc(92svh - 124px);
  }

  .hero-title {
    font-size: clamp(3.5rem, 9vw, 6.6rem);
  }

  .portfolio-item {
    flex-basis: clamp(360px, 43vw, 460px);
  }

}

@media (max-width: 960px) {
  .site-header {
    padding: 12px 0;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    gap: 10px;
    max-width: calc(100% - 132px);
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .brand-mark img {
    border-radius: 10px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy span {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    margin-left: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.96);
    border: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-nav a {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav .nav-contact::before,
  .site-nav .nav-contact::after {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .header-controls {
    margin-left: auto;
  }

  .brief-layout,
  .form-head,
  .about-panel,
  .pricing-grid,
  .process-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .works-note {
    max-width: none;
    text-align: left;
  }

  .abc-builder-head,
  .abc-concepts {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 5.6rem;
  }

  .hero-actions {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-section {
    padding-top: 3.8rem;
  }

  .portfolio-item {
    flex-basis: min(72vw, 430px);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  /* Touch targets: the pill stays compact, the tappable box does not. */
  .language-switch button {
    min-width: 44px;
    min-height: 40px;
  }

  .scroll-btn {
    width: 38px;
    height: 38px;
  }

  .scroll-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }

  .brief-draft-clear {
    position: relative;
  }

  .brief-draft-clear::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 44px;
    transform: translateY(-50%);
  }

  .background-marquee {
    gap: 0.9rem;
    padding-top: 8rem;
    opacity: 0.1;
  }

  .marquee-row,
  .marquee-row.reverse {
    transform: rotate(-1.2deg) scale(1);
  }

  .marquee-image {
    width: 220px;
    border-radius: 1rem;
  }

  .headline-ticker {
    top: 79px;
  }

  .headline-track {
    gap: 16px;
    padding: 8px 14px;
    animation-duration: 44s;
  }

  .headline-track span {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .headline-track span::after {
    margin-left: 16px;
  }

  .hero {
    min-height: auto;
    padding: 4.2rem 1rem 3.8rem;
  }

  .hero-scroll-guide {
    margin-top: 2.4rem;
    padding-top: 0;
  }

  .hero-scroll-arrow {
    width: 20px;
    height: 44px;
  }

  .hero-logo-mark {
    width: 136px;
    height: 136px;
    border-radius: 32px;
  }

  .hero-logo-mark img {
    border-radius: 24px;
  }

  .hero-kicker,
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  .hero-title {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
    line-height: 0.96;
  }

  .hero-actions {
    width: 100%;
    gap: 0.8rem;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 56px;
  }

  .portfolio-item {
    --thumb-radius: 1rem;
    flex-basis: min(78vw, 340px);
  }

  .portfolio-row {
    gap: 1rem;
    padding: 0.6rem 2.9rem 1.4rem;
  }

  .scroll-btn {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }

  .scroll-btn.left {
    left: 8px;
  }

  .scroll-btn.right {
    right: 8px;
  }

  .portfolio-meta {
    padding: 0 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .portfolio-block::before {
    width: 64px;
    margin-left: 0.8rem;
  }

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

  .approach-card,
  .brief-panel,
  .brief-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .section-title h2 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }

  .portfolio-stack {
    gap: 1.7rem;
  }

  .approach-band,
  .about-section {
    padding-top: 5.5rem;
  }

  .process-section {
    padding-bottom: 5.5rem;
  }

  .pricing-section {
    padding: 5.5rem 0;
  }

  .approach-card,
  .process-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }

  .pricing-card {
    gap: 1.6rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
  }

  .pricing-card-head {
    align-items: start;
  }

  .pricing-card h3 {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
  }

  .price-list li {
    padding: 0.9rem 0;
  }

  .about-panel {
    gap: 1.4rem;
    padding: 1.5rem;
    border-radius: 2rem;
  }

  .about-copy h2 {
    max-width: none;
    font-size: clamp(2.4rem, 10vw, 4.4rem);
    line-height: 0.92;
  }

  .about-tags {
    gap: 8px;
    margin-top: 1.4rem;
  }

  .about-tags span {
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  .about-actions {
    min-width: 0;
  }

  .social-link {
    min-height: 58px;
  }

  /* Three fixed columns get too narrow to hold a title on small tablets. */
  .contact-showcase {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .site-footer {
    padding: 1.7rem 1rem 2.5rem;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .headline-ticker {
    top: 74px;
  }

  .headline-track {
    animation-duration: 48s;
  }

  .hero {
    padding: 3.7rem 0.9rem 3.4rem;
  }

  .hero-logo-block {
    margin-bottom: 2rem;
  }

  .hero-logo-mark {
    width: 118px;
    height: 118px;
    padding: 6px;
    border-radius: 28px;
  }

  .hero-logo-mark img {
    border-radius: 20px;
  }

  .hero-kicker,
  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.2em;
  }

  .button {
    padding: 0 20px;
    font-size: 0.88rem;
  }

  .language-switch button {
    min-width: 44px;
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 1.8rem;
    border-radius: 18px;
  }

  .hero-stat {
    grid-template-columns: minmax(92px, auto) 1fr;
    align-items: center;
    padding: 0.9rem 1rem;
    text-align: left;
  }

  .hero-stat strong {
    font-size: 1.4rem;
  }

  .hero-stat span {
    font-size: 0.66rem;
  }

  .hero-actions {
    gap: 0.65rem;
  }

  .portfolio-section {
    padding: 3.2rem 0 4.8rem;
  }

  .portfolio-item {
    flex-basis: min(76vw, 310px);
  }

  .portfolio-row {
    padding: 0.5rem 2.65rem 1.2rem;
  }

  .scroll-btn {
    width: 38px;
    height: 38px;
  }

  .scroll-btn.left {
    left: 7px;
  }

  .scroll-btn.right {
    right: 7px;
  }

  .about-panel {
    padding: 1.2rem;
  }

  .social-panel {
    padding: 0.9rem;
    border-radius: 1.4rem;
  }

  .social-link {
    min-height: 54px;
    padding: 0.8rem 0.9rem;
  }

  .social-link span {
    font-size: 0.82rem;
  }

  .social-link strong {
    font-size: 0.92rem;
  }

  .quick-links-panel,
  .contact-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-link {
    grid-template-columns: 128px 1fr;
    align-items: center;
  }

  .showcase-link img {
    border-radius: 0.75rem;
  }

  .showcase-link strong {
    white-space: normal;
  }

  .pricing-card-head,
  .price-list li {
    gap: 0.8rem;
  }

  .pricing-badge {
    padding: 0.5rem 0.62rem;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .price-list strong {
    font-size: 1.24rem;
  }

  .price-list span,
  .included-block li {
    font-size: 0.94rem;
  }

  .abc-builder {
    padding: 1rem;
  }

  .abc-switch {
    align-items: flex-start;
  }

  .brief-draft-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Portfolio tiles are buttons so the work can be opened full size. */
.portfolio-item {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
}

.portfolio-item:focus-visible {
  outline: 2px solid var(--accent, #88ffb8);
  outline-offset: 3px;
}

body.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 8, 6, 0.92);
  backdrop-filter: blur(18px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(1180px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: lightbox-in 0.24s ease;
}

.lightbox-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.lightbox-figure.is-loading img {
  opacity: 0.35;
}

.lightbox-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
}

.lightbox-figure figcaption strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.lightbox-figure figcaption span {
  font-size: 0.86rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #ffffff;
  color: #000000;
}

.lightbox-close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

.lightbox-nav.prev {
  left: clamp(0.6rem, 2vw, 1.6rem);
}

.lightbox-nav.next {
  right: clamp(0.6rem, 2vw, 1.6rem);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}

@media (max-width: 768px) {
  .lightbox-close,
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  /* Narrow screens: keep the arrows off the artwork instead of covering
     a quarter of it. They sit centred below the caption. */
  .lightbox-nav {
    top: auto;
    bottom: clamp(1rem, 5vh, 2.5rem);
    transform: none;
  }

  .lightbox-nav.prev {
    left: 50%;
    margin-left: -54px;
  }

  .lightbox-nav.next {
    right: 50%;
    margin-right: -54px;
  }

  .lightbox-figure figcaption {
    flex-direction: column;
    gap: 0.2rem;
  }
}


/* ---- pricing: format -> volume -> ongoing, one decision at a time ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pricing-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pricing-step span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  color: #ffffff;
}

.pricing-grid + .pricing-step {
  margin-top: 3.2rem;
}

.pricing-rate {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.pricing-rate strong {
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-rate em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* the one line that justifies the price gap between the two cards */
.pricing-diff {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.96rem;
  font-weight: 800;
}

.pricing-card-featured .pricing-diff {
  border-color: rgba(136, 255, 184, 0.34);
  background: rgba(136, 255, 184, 0.09);
  color: #a9ffcc;
}

.pricing-cta {
  width: 100%;
  margin-top: 0;
}

.volume-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.volume-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}

.volume-table th,
.volume-table td {
  padding: 1rem 1.1rem;
  text-align: right;
  white-space: nowrap;
}

.volume-table thead th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}

.volume-table th:first-child,
.volume-table tbody th {
  text-align: left;
  font-weight: 800;
}

.volume-table tbody th {
  font-size: 0.92rem;
}

.volume-table tbody tr + tr th,
.volume-table tbody tr + tr td {
  border-top: 1px solid var(--line-soft);
}

.volume-table td b {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
}

.volume-table td i {
  display: block;
  margin-top: 2px;
  color: rgba(136, 255, 184, 0.72);
  font-size: 0.72rem;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.volume-table tbody tr.is-featured {
  background: rgba(136, 255, 184, 0.05);
}

.volume-table tbody tr.is-featured th {
  color: #a9ffcc;
}

.monthly-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.8rem;
  margin-top: 1.4rem;
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(136, 255, 184, 0.07), transparent 58%),
    var(--panel);
}

.monthly-kicker {
  margin: 0 0 0.4rem;
  color: rgba(136, 255, 184, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.monthly-copy h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: -0.015em;
}

.monthly-copy p:last-child {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.monthly-prices {
  display: grid;
  gap: 0.7rem;
}

.monthly-prices span {
  display: grid;
  gap: 1px;
}

.monthly-prices em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.monthly-prices strong {
  font-size: 1.06rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .monthly-band {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .monthly-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-band .button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .pricing-step {
    align-items: flex-start;
    font-size: 0.78rem;
  }

  .volume-table th,
  .volume-table td {
    padding: 0.8rem 0.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Выравнивание двух тарифных карточек по строкам.
 *
 * У карточки Pro на один элемент больше — плашка «Most picked», — а строки
 * внутри двух отдельных гридов друг о друге не знают. Из-за этого заголовок
 * «What's included», списки и кнопки в соседних карточках оказывались на
 * разной высоте.
 *
 * Лечится subgrid: строки задаёт общая сетка, а карточки в неё встраиваются,
 * поэтому одноимённые части встают на один уровень независимо от длины
 * списка. Место под плашку резервируется в обеих карточках, но заполняется
 * только в Pro — пустого элемента в разметке для этого не нужно.
 *
 * Строка со списком растягивается (1fr), и кнопка прижимается к низу: у
 * карточек разное число пунктов, и без этого кнопки разъезжались бы снова.
 *
 * Только на широких экранах. Ниже 960px карточки идут одна под другой, и
 * выравнивать там нечего.
 */
@media (min-width: 961px) {
  .pricing-grid {
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 1.4rem;
    row-gap: 2rem;
  }

  .pricing-card {
    grid-row: span 5;
    grid-template-rows: subgrid;
  }

  .pricing-card-head { grid-row: 1; }
  .pricing-badge     { grid-row: 2; }
  .pricing-diff      { grid-row: 3; }
  .included-block    { grid-row: 4; }
  .pricing-cta       { grid-row: 5; }
}
