/*
Theme Name: RuslanWeb
Theme URI: https://ruslanweb.com
Author: RuslanWeb
Description: Custom theme with ACF Pro for RuslanWeb landings
Version: 1.0.1
Text Domain: ruslanweb
*/

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

:root {
  --bg: #f7f8fa;
  --ink: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --lime: #c6ff00;
  --panel: #252a32;
  --gray: #9ca3af;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: #0f1729;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  color: #111827;
  background-color: #c6ff00;
}

:focus-visible {
  outline: 3px solid #c6ff00;
  outline-offset: 2px;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 32px;
  }
}

/* —— Mono labels —— */
.mono-label,
.mono-tag,
.status-line,
.price-badge,
.process-n,
.process-time,
.contacts-note,
.footer-copy,
.footer-col-title {
  font-family: var(--mono);
}

.mono-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono-label--lime {
  color: var(--lime);
}

.mono-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.mono-tag--gray {
  letter-spacing: 0.16em;
  color: #6b7280;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 640px) {
  .header-inner {
    height: 80px;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  flex-shrink: 0;
}

.logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .logo-text {
    font-size: 21px;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .nav-desktop {
    gap: 22px;
  }

  .nav-link {
    font-size: 14px;
  }
}

.nav-link:hover,
.nav-link--active {
  color: var(--ink);
}

.services-trigger .chevron {
  transition: transform 0.2s;
}

.services-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language dropdown (visual only) */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 6px 4px;
  line-height: 1;
}

.lang-chevron {
  transition: transform 0.2s;
  color: var(--muted);
}

.lang-dropdown-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 64px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  z-index: 60;
  animation: megaIn 0.15s ease;
}

.lang-dropdown-list li {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s, color 0.15s;
}

.lang-dropdown-list li:hover {
  background: var(--bg);
  color: var(--ink);
}

.lang-dropdown-list li.is-active {
  color: var(--ink);
  background: var(--bg);
}

/* Higher specificity than .btn — otherwise phone CTA never hides on mobile */
.btn.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .btn.header-cta {
    display: inline-flex;
  }
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  flex-shrink: 0;
  transition: background-color 0.2s, color 0.2s;
}

.header-phone:hover {
  background: var(--ink);
  color: var(--lime);
}

.header-phone svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (min-width: 640px) {
  .header-phone {
    display: none;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  border-radius: 8px;
  transition: background-color 0.15s;
}

.menu-toggle:hover {
  background: rgba(17, 24, 39, 0.06);
}

.menu-toggle .icon-menu,
.menu-toggle .icon-close {
  display: block;
}

.menu-toggle .icon-menu[hidden],
.menu-toggle .icon-close[hidden] {
  display: none !important;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Services mega */
.services-mega {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: megaIn 0.2s ease;
}

@media (min-width: 768px) {
  .services-mega:not([hidden]) {
    display: block;
  }
}

@keyframes megaIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-mega-inner {
  padding-block: 32px;
}

.services-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.link-semibold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
}

.link-semibold:hover {
  color: rgba(17, 24, 39, 0.7);
}

.services-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 28px;
}

@media (min-width: 1024px) {
  .services-mega-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mega-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  transition: color 0.2s;
}

.mega-title:hover {
  color: var(--muted);
}

.services-mega-grid ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services-mega-grid ul a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.services-mega-grid ul a:hover {
  color: var(--ink);
}

/* Mobile nav */
.mobile-nav {
  border-top: 1px solid rgba(209, 213, 219, 0.6);
  background: var(--bg);
  animation: megaIn 0.2s ease;
}

.mobile-nav[hidden] {
  display: none !important;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-inner {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-inner > a,
.mobile-services-btn {
  padding-block: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(209, 213, 219, 0.4);
  text-align: left;
}

.mobile-services-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-services-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.mobile-services-btn .chevron {
  transition: transform 0.2s;
}

.mobile-services-list {
  display: none;
  flex-direction: column;
  padding: 4px 0 12px 12px;
  gap: 10px;
  border-bottom: 1px solid rgba(209, 213, 219, 0.4);
}

.mobile-services-list:not([hidden]) {
  display: flex;
  animation: megaIn 0.2s ease;
}

.mobile-services-list[hidden] {
  display: none !important;
}

.mobile-services-list a {
  font-size: 14px;
  color: var(--muted);
  padding-block: 6px;
}

.mobile-services-list .mobile-all {
  color: var(--ink);
  font-weight: 600;
  margin-top: 4px;
}

.mobile-cta {
  margin-top: 16px;
  justify-content: center;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 20px;
  border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}

.btn svg {
  flex-shrink: 0;
  display: block;
  width: 16px;
  height: 16px;
}

.btn-sm {
  font-size: 14px;
  padding: 10px 16px;
  gap: 6px;
}

.btn-sm svg {
  width: 16px;
  height: 16px;
}

.btn-lg {
  font-size: 16px;
  padding: 14px 24px;
  gap: 8px;
}

.btn-lg svg {
  width: 20px;
  height: 20px;
}

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

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

.btn-dark {
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  padding: 14px 24px;
  gap: 8px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s, color 0.2s;
}

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

#contacts .btn-lime:hover {
  background: #fff;
  color: var(--ink);
}

#cta .btn-lime:hover {
  background: #fff;
  color: var(--ink);
}

/* —— Capabilities panel (store integrations) —— */
.capa-panel {
  max-width: 920px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.capa-panel__head {
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .capa-panel__head {
    padding: 32px 36px 28px;
  }
}

.capa-panel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.capa-panel__count {
  color: var(--muted);
}

.capa-panel__title,
h2.capa-panel__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.capa-panel__lead {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.capa-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px 16px;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .capa-row {
    gap: 16px 20px;
    padding: 24px 36px;
  }
}

.capa-row__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
}

.capa-row__title,
h2.capa-row__title,
h3.capa-row__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.capa-row__text {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 48ch;
}

.capa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.capa-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.capa-tag:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.capa-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg);
}

@media (min-width: 640px) {
  .capa-panel__foot {
    padding: 24px 36px;
  }
}

.capa-panel__foot-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.capa-panel__foot-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.capa-panel__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.capa-panel__cta:hover {
  background: var(--ink);
  color: var(--lime);
}

/* —— Page H1 in about-split —— */
.page-h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 16ch;
}

.about-copy .page-h1 + .about-lead {
  margin-top: 20px;
}

.about-copy .btn {
  margin-top: 28px;
}

/* —— Company page hero (about / portfolio / support / seo) —— */
.page-hero {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.page-hero .hero-copy {
  padding-top: 36px;
  padding-bottom: 36px;
}

@media (min-width: 640px) {
  .page-hero .hero-copy {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (min-width: 1024px) {
  .page-hero .hero-copy {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

.page-hero .page-h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  max-width: 20ch;
}

.page-hero .hero-lead {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.55;
  color: #374151;
}

@media (min-width: 640px) {
  .page-hero .hero-lead {
    margin-top: 20px;
    font-size: 18px;
  }
}

.page-hero .hero-actions {
  margin-top: 28px;
}

/* Big stats on about */
.stat-n {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.cell-card--stat .cell-body {
  gap: 0;
}

.cell-card--stat .cell-title--process {
  margin-top: 12px;
}

.cell-card--guarantee .cell-body {
  padding: 28px 24px;
  min-height: 160px;
  gap: 0;
}

.cell-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--lime);
  color: var(--ink);
}

.cell-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.cell-card--guarantee .cell-title--process {
  margin-top: 18px;
}

/* Portfolio text cards — same visual weight as media cards */
.project-card--text {
  background: var(--ink);
  border-color: transparent;
  color: #fff;
  min-height: 280px;
}

.project-card--text:hover {
  border-color: var(--lime);
  background: #1a1f27;
}

.project-card--text .project-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-card--text .mono-tag--gray {
  color: var(--gray);
}

.project-card--text .project-name {
  color: #fff;
  margin-top: 10px;
}

.project-card--text .project-domain {
  color: var(--lime);
  margin-top: 12px;
  font-weight: 600;
}

a.project-card {
  color: inherit;
  text-decoration: none;
}

/* Nested domain link → use span on card pages */
.project-card .project-domain--link {
  pointer-events: none;
}

.format-pick {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 32px;
}

@media (min-width: 768px) {
  .format-pick {
    grid-template-columns: repeat(3, 1fr);
  }
}

.format-pick__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: #fff;
  color: inherit;
  transition: background 0.15s ease;
}

.format-pick__item:hover {
  background: var(--bg);
}

.format-pick__item .cell-title {
  margin: 0;
}

.format-pick__meta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.format-pick__meta span {
  font-weight: 500;
  color: var(--muted);
}

/* —— Hero —— */
.hero {
  position: relative;
}

.hero-copy {
  padding-top: 64px;
  padding-bottom: 40px;
}

@media (min-width: 640px) {
  .hero-copy {
    padding-top: 96px;
    padding-bottom: 64px;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    padding-top: 112px;
  }
}

.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .status-line {
    margin-bottom: 40px;
  }
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime);
  flex-shrink: 0;
}

.status-dot--pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  font-size: 40px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 18ch;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 64px;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 88px;
  }
}

.highlight {
  position: relative;
  display: inline-block;
}

.highlight-text {
  position: relative;
  z-index: 1;
}

.highlight-bar {
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 12px;
  width: 100%;
  background: var(--lime);
  z-index: 0;
}

@media (min-width: 640px) {
  .highlight-bar {
    bottom: 8px;
    height: 20px;
  }
}

.hero-lead {
  margin-top: 28px;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero-lead {
    margin-top: 36px;
    font-size: 19px;
  }
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-actions .btn-lg {
  width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
}

@media (min-width: 640px) {
  .hero-actions {
    margin-top: 44px;
    flex-direction: row;
    align-items: center;
  }

  .hero-actions .btn-lg {
    width: auto;
  }
}

.link-works {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  transition: gap 0.2s;
}

.link-works svg {
  flex-shrink: 0;
  display: block;
  width: 20px;
  height: 20px;
}

.link-works:hover {
  gap: 12px;
}

.link-works--semibold {
  font-weight: 600;
}

.hero-panel-wrap {
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .hero-panel-wrap {
    padding-bottom: 96px;
  }
}

.hero-panel {
  position: relative;
  background: var(--ink);
  border-radius: 16px;
  overflow: hidden;
}

.hero-panel-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-panel-content {
  position: relative;
  padding: 24px;
}

@media (min-width: 640px) {
  .hero-panel-content {
    padding: 40px;
  }
}

@media (min-width: 1024px) {
  .hero-panel-content {
    padding: 48px;
  }
}

.hero-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .hero-panel-head {
    margin-bottom: 40px;
  }

  .hero-panel-head .mono-label {
    font-size: 12px;
  }
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.hero-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: 12px;
  padding: 24px;
  color: var(--lime);
  transition: background-color 0.2s, color 0.2s;
}

@media (min-width: 640px) {
  .hero-card {
    padding: 28px;
  }
}

.hero-card:hover {
  background: var(--lime);
  color: var(--ink);
}

.hero-card:hover .mono-tag {
  color: rgba(17, 24, 39, 0.7);
}

.hero-card:hover .hero-card-title {
  color: var(--ink);
}

.hero-card:hover .hero-card-foot > svg {
  color: var(--ink);
}

.hero-card-foot {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-card-foot > svg {
  color: var(--gray);
  transition: color 0.2s;
}

.dark-panel {
  position: relative;
  margin-top: 48px;
  background: var(--ink);
  border-radius: 16px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .dark-panel {
    margin-top: 64px;
  }
}

.dark-panel-content {
  position: relative;
  padding: 24px;
}

@media (min-width: 640px) {
  .dark-panel-content {
    padding: 32px;
  }
}

@media (min-width: 1024px) {
  .dark-panel-content {
    padding: 40px;
  }
}

.hero-card {
  min-height: 168px;
}

.hero-card .hero-card-title,
h2.hero-card-title {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-card-note,
h3.hero-card-note {
  display: block;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gray);
  transition: color 0.2s;
}

.hero-card:hover .hero-card-note {
  color: rgba(17, 24, 39, 0.65);
}

.hero-card-title {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s;
}

@media (min-width: 640px) {
  .hero-card-title {
    font-size: 24px;
  }
}

/* —— Sections —— */
.section-border {
  border-top: 1px solid var(--line);
}

/* Section color rhythm */
.section--surface {
  background: #fff;
}

.section--muted {
  background: var(--bg);
}

.section--ink {
  background: var(--ink);
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.section--ink .section-title,
.section--ink h2.section-title {
  color: #fff;
}

.section--ink .section-desc {
  color: var(--gray);
}

.section--ink .cells-grid {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--lime {
  background: var(--lime);
  border-top-color: transparent;
}

.section--lime .section-pad-sm {
  padding-block: 56px;
}

@media (min-width: 640px) {
  .section--lime .section-pad-sm {
    padding-block: 72px;
  }
}

.section--lime .banner {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.section--surface .cell,
.section--muted .cell {
  background: transparent;
}

.section--surface .cells-grid {
  background: var(--line);
  border-color: var(--line);
}

.section--surface .cell {
  background: #fff;
}

.section--muted .cell {
  background: var(--bg);
}

.section--surface .cell-soft:hover {
  background: var(--bg);
}

.section--muted .cell-soft:hover {
  background: #fff;
}

.dark-band-cards {
  margin-top: 48px;
}

@media (min-width: 640px) {
  .dark-band-cards {
    margin-top: 56px;
  }
}

.dark-band-cards--second {
  margin-top: 16px;
}

.section--ink .dark-panel {
  display: none;
}

.section-pad {
  padding-block: 80px;
}

@media (min-width: 640px) {
  .section-pad {
    padding-block: 112px;
  }
}

.section-pad-sm {
  padding-block: 64px;
}

@media (min-width: 640px) {
  .section-pad-sm {
    padding-block: 80px;
  }
}

.section-kicker {
  margin-bottom: 20px;
}

.section-title,
h2.section-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 56px;
  }
}

.section-title--sm {
  max-width: 16ch;
}

.section-title--md {
  max-width: 18ch;
}

.section-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

.section-desc--below {
  margin-top: 20px;
  max-width: 50ch;
}

.section-head--row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .section-head--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* About / biz narrative */
.about-split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .about-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.about-copy .section-title {
  max-width: 14ch;
}

.about-lead {
  margin-top: 24px;
  max-width: 48ch;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
}

.about-text {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.about-formats {
  margin: 28px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-format-title,
h2.about-format-title,
h3.about-format-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.about-media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  aspect-ratio: 4 / 3;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* —— Offer panel (ecommerce) —— */
.offer-panel {
  max-width: 920px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.offer-split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .offer-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.offer-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 4 / 3;
}

.section--ink .offer-media {
  border-color: rgba(255, 255, 255, 0.08);
  background: #0b0c0e;
}

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

.section--ink .offer-media img {
  object-fit: contain;
  object-position: center;
}

.offer-panel--on-ink {
  max-width: none;
  background: transparent;
  border: none;
  border-radius: 0;
}

.offer-panel--on-ink .offer-panel__title,
.offer-panel--on-ink h2.offer-panel__title,
.offer-panel--on-ink .offer-inline-h3,
.offer-panel--on-ink h2.offer-inline-h3,
.offer-panel--on-ink h3.offer-inline-h3,
.offer-panel--on-ink .offer-outcomes li,
.offer-panel--on-ink .offer-meta-value {
  color: #fff;
}

.offer-panel--on-ink .offer-panel__body,
.offer-panel--on-ink .offer-panel__foot {
  border-color: rgba(255, 255, 255, 0.12);
}

.offer-panel--on-ink .offer-panel__label,
.offer-panel--on-ink .offer-meta-label,
.offer-panel--on-ink .offer-panel__next-note {
  color: var(--gray);
}

.offer-panel--on-ink .offer-panel__foot--decide {
  background: rgba(255, 255, 255, 0.04);
}

.offer-panel--on-ink .offer-badge {
  color: var(--ink);
  background: var(--lime);
}

.offer-panel--on-ink .offer-panel__head,
.offer-panel--on-ink .offer-panel__body {
  padding-inline: 0;
}

.offer-panel--on-ink .offer-panel__foot {
  padding-inline: 0;
  padding-block: 28px 0;
  background: transparent;
}

@media (min-width: 640px) {
  .offer-panel--on-ink .offer-panel__head,
  .offer-panel--on-ink .offer-panel__body {
    padding-inline: 0;
  }
}

.offer-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 28px 24px 24px;
}

@media (min-width: 640px) {
  .offer-panel__head {
    padding: 32px 36px 28px;
  }
}

.offer-panel__title,
h2.offer-panel__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.offer-panel__lead {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 54ch;
}

.offer-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #166534;
  background: #dcfce7;
}

.offer-panel__body {
  padding: 24px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .offer-panel__body {
    padding: 28px 36px;
  }
}

.offer-panel__label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer-outcomes {
  display: grid;
  gap: 14px;
}

.offer-outcomes li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.offer-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--lime);
}

.offer-inline-h3,
h2.offer-inline-h3,
h3.offer-inline-h3 {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: inherit;
  color: var(--ink);
}

.offer-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.offer-panel__foot--decide {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 32px;
  background: var(--bg);
}

@media (min-width: 640px) {
  .offer-panel__foot {
    padding: 24px 36px;
  }
}

.offer-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
}

.offer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-meta-label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.offer-meta-value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.offer-panel__next {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-left: auto;
}

@media (max-width: 639px) {
  .offer-panel__next {
    width: 100%;
    margin-left: 0;
  }

  .offer-panel__next .btn {
    width: 100%;
    justify-content: center;
  }
}

.offer-panel__next-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 32ch;
}

/* —— Cells grids —— */
.cells-grid {
  margin-top: 48px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .cells-grid {
    margin-top: 64px;
  }
}

.cells-3 {
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .cells-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cells-4 {
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .cells-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cells-services {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cells-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cells-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cell {
  height: 100%;
  background: var(--bg);
  padding: 28px;
  transition: background-color 0.3s, color 0.3s;
}

@media (min-width: 640px) {
  .cell-soft {
    padding: 36px;
  }

  .cell-dark-hover,
  .cell-service {
    padding: 32px;
  }
}

.cell-soft:hover {
  background: #fff;
}

.cell > svg:first-child,
.cell-body > svg:first-child {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

/* Unified card cell: shot + body, equal rhythm */
.cell-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
}

.cell-card:hover {
  background: #fff;
}

.cell-card--plain {
  padding: 0;
}

.cell-card--plain .cell-body {
  padding: 28px;
}

@media (min-width: 640px) {
  .cell-card--plain .cell-body {
    padding: 32px;
  }
}

.cell-shot {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef0f3;
  border-bottom: 1px solid var(--line);
}

.cell-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.cell-shot--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f3;
  color: var(--ink);
}

.cell-shot--icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.cell-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
  min-height: 0;
}

@media (min-width: 640px) {
  .cell-body {
    padding: 28px;
  }
}

.cell-card .cell-title {
  margin-top: 0;
  min-height: 2.6em;
}

.cell-card .cell-title--process {
  min-height: 0;
  margin-top: 20px;
}

.cell-card .cell-desc {
  flex: 1;
}

.cell-card .cell-text {
  margin-top: auto;
  padding-top: 16px;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cell-card .service-cta {
  margin-top: auto;
  padding-top: 20px;
}

.service-cta--spacer {
  visibility: hidden;
  pointer-events: none;
  min-height: 20px;
}

.cell-sub {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 1.3em;
  color: var(--ink);
}

.cell-sub--spacer {
  visibility: hidden;
  pointer-events: none;
}

.cell-card .process-top {
  margin-bottom: 0;
}

/* dark price cells keep hover, same body padding */
.cell-dark-hover.cell-card:hover {
  background: var(--ink);
}

.cell-title,
h2.cell-title,
h3.cell-title,
p.cell-title {
  margin: 20px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.3s;
}

.cell-title--process {
  margin-top: 20px;
}

.cell-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.3s;
}

.cell-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.3s;
}


.cell-dark-hover {
  display: flex;
  flex-direction: column;
}

.cell-dark-hover:hover {
  background: var(--ink);
}

.cell-dark-hover:hover .process-n {
  color: var(--lime);
}

.cell-dark-hover:hover .process-time {
  color: var(--gray);
}

.cell-dark-hover:hover .cell-title {
  color: #fff;
}

.cell-dark-hover:hover .cell-desc {
  color: var(--gray);
}

.cell-dark-hover:hover .cell-text {
  color: var(--lime);
}

.cell-card .link-semibold {
  margin-top: 16px;
}

.cell-dark-hover:hover .link-semibold {
  color: var(--lime);
}

.cell-dark-hover:hover .link-semibold:hover {
  color: #fff;
}

/* Popular price tier — always dark, like hover */
.cell-card--popular,
.cell-card--popular:hover,
.cell-dark-hover.cell-card--popular,
.cell-dark-hover.cell-card--popular:hover {
  background: var(--ink);
  position: relative;
}

.cell-card--popular .process-n,
.cell-card--popular:hover .process-n {
  color: var(--lime);
}

.cell-card--popular .process-time,
.cell-card--popular:hover .process-time {
  color: var(--gray);
}

.cell-card--popular .cell-title,
.cell-card--popular:hover .cell-title {
  color: #fff;
}

.cell-card--popular .cell-desc,
.cell-card--popular:hover .cell-desc {
  color: var(--gray);
}

.cell-card--popular .cell-text,
.cell-card--popular:hover .cell-text {
  color: var(--lime);
}

.cell-popular-label {
  display: block;
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

.process-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.process-n {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.3s;
}

.process-time {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.cell-dark-hover .cell-text {
  margin-top: 12px;
}

/* Services */
.cell-service {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  scroll-margin-top: 112px;
}

.cell-service:hover {
  background: var(--ink);
}

.cell-service:hover svg {
  color: var(--lime);
}

.cell-service:hover .service-title {
  color: #fff;
}

.cell-service:hover .cell-text {
  color: var(--line);
}

.cell-service:hover .tag-list li {
  color: var(--gray);
  border-color: var(--panel);
}

.cell-service:hover .service-cta {
  color: var(--lime);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}

.service-top svg {
  flex-shrink: 0;
  display: block;
  width: 32px;
  height: 32px;
  color: var(--ink);
  transition: color 0.3s;
}

.price-badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.2;
}

.service-title {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  transition: color 0.3s;
}

.cell-service .cell-text {
  margin-top: 12px;
}

.tag-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  transition: color 0.3s, border-color 0.3s;
}

.service-cta {
  margin-top: auto;
  padding-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.3s;
}

.service-cta svg {
  flex-shrink: 0;
  display: block;
  width: 16px;
  height: 16px;
}

/* Banners */
.banner {
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 640px) {
  .banner {
    padding: 48px;
  }
}

@media (min-width: 1024px) {
  .banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.banner-lime {
  background: var(--lime);
}

.banner-dark {
  background: var(--ink);
}

.banner-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .banner-title {
    font-size: 40px;
  }
}

.banner-title--white {
  color: #fff;
  max-width: 22ch;
}

.banner-text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 54ch;
}

@media (min-width: 640px) {
  .banner-text {
    font-size: 18px;
  }
}

.banner-text--dark {
  color: rgba(17, 24, 39, 0.75);
}

.banner-kicker {
  margin-bottom: 16px;
}

.banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .banner-actions {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .banner-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
}

@media (min-width: 640px) {
  .phone-link {
    font-size: 17px;
  }
}

.phone-link:hover {
  color: rgba(17, 24, 39, 0.7);
}

.shrink-0 {
  flex-shrink: 0;
}

/* Projects */
.projects-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .projects-grid {
    margin-top: 64px;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.project-card:hover {
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.03);
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-name {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.project-domain {
  margin-top: 4px;
  font-size: 15px;
  color: #4b5563;
}

.project-domain--link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  width: fit-content;
}

.project-domain--link:hover {
  color: var(--ink);
}

.projects-cta-wrap {
  margin-top: 40px;
}

@media (min-width: 640px) {
  .projects-cta-wrap {
    margin-top: 48px;
  }
}

/* Useful */
.useful-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .useful-grid {
    margin-top: 64px;
  }
}

@media (min-width: 1024px) {
  .useful-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 56px;
  }
}

.useful-item {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.useful-q {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .useful-q {
    font-size: 21px;
  }
}

.useful-a {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 420px 1fr;
    gap: 64px;
  }
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 640px) {
  .faq-trigger {
    font-size: 19px;
  }
}

.faq-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: hsl(215 14% 34%);
  transition: transform 0.2s;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  overflow: hidden;
  animation: faqOpen 0.25s ease;
}

.faq-panel p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  padding-bottom: 20px;
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contacts */
.contacts {
  background: var(--ink);
  color: #fff;
}

.contacts-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.contacts-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 20ch;
  line-height: 1.05;
}

@media (min-width: 640px) {
  .contacts-title {
    font-size: 56px;
  }
}

@media (min-width: 1024px) {
  .contacts-title {
    font-size: 72px;
  }
}

.contacts-lead {
  margin-top: 24px;
  max-width: 55ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray);
}

@media (min-width: 640px) {
  .contacts-lead {
    font-size: 19px;
  }
}

.contacts-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .contacts-grid {
    margin-top: 64px;
  }
}

@media (min-width: 1024px) {
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
  padding-block: 12px;
  font-family: var(--font);
  font-size: 18px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--lime);
}

.form-hint {
  font-size: 14px;
  color: var(--lime);
}

.contacts-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
}

@media (min-width: 1024px) {
  .contacts-aside {
    padding-left: 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Contact page: H1 as page title in ink band */
.contacts h1.contacts-title {
  max-width: 18ch;
}

/* Tighter top padding when contacts is the page body */
main > .contacts:first-child .section-pad {
  padding-top: 56px;
  padding-bottom: 72px;
}

@media (min-width: 640px) {
  main > .contacts:first-child .section-pad {
    padding-top: 72px;
    padding-bottom: 96px;
  }
}

main > .contacts:first-child .contacts-grid {
  margin-top: 36px;
}

@media (min-width: 640px) {
  main > .contacts:first-child .contacts-grid {
    margin-top: 48px;
  }
}

/* Portfolio / company: less empty air under short hero */
.page-hero + .section-border .section-pad {
  padding-top: 28px;
}

@media (min-width: 640px) {
  .page-hero + .section-border .section-pad {
    padding-top: 36px;
  }
}

.page-hero + .section-border .projects-grid {
  margin-top: 0;
}

.page-hero + .section-border .section-head {
  margin-bottom: 24px;
}

.contact-form {
  gap: 24px;
}

.contact-form .btn {
  margin-top: 8px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 20px;
  color: var(--gray);
  transition: color 0.2s;
}

.contact-row:hover {
  color: var(--lime);
}

.contact-row:hover .contact-value {
  color: var(--lime);
}

.contact-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  transition: color 0.2s;
}

@media (min-width: 640px) {
  .contact-value {
    font-size: 22px;
  }
}

.schedule {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
  color: var(--gray);
}

.schedule svg {
  margin-top: 2px;
  flex-shrink: 0;
}

.schedule-text {
  margin-top: 4px;
  font-size: 16px;
  color: #fff;
}

.contacts-note {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-footer .logo-text {
  color: #fff;
}

.footer-inner {
  padding-block: 56px;
}

@media (min-width: 640px) {
  .footer-inner {
    padding-block: 64px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .footer-brand {
    grid-column: span 5;
  }

  .footer-grid > div:nth-child(2) {
    grid-column: span 3;
  }

  .footer-grid > div:nth-child(3) {
    grid-column: span 4;
  }

  .footer-grid--ua {
    gap: 32px 24px;
  }

  .footer-grid--ua .footer-brand {
    grid-column: span 12;
  }

  .footer-grid--ua > div:nth-child(2),
  .footer-grid--ua > div:nth-child(3),
  .footer-grid--ua > div:nth-child(4),
  .footer-grid--ua > div:nth-child(5) {
    grid-column: span 3;
  }
}

@media (min-width: 1100px) {
  .footer-grid--ua .footer-brand {
    grid-column: span 4;
  }

  .footer-grid--ua > div:nth-child(2),
  .footer-grid--ua > div:nth-child(3),
  .footer-grid--ua > div:nth-child(4),
  .footer-grid--ua > div:nth-child(5) {
    grid-column: span 2;
  }
}

.footer-contacts {
  margin-top: 20px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--lime);
}

.footer-about {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  color: var(--gray);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 15px;
  color: #fff;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copy {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

/* Reveal on scroll (subtle) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

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

  .status-dot--pulse {
    animation: none;
  }
}

/* Service page — only extras beyond homepage patterns */
.svc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.svc-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}

.svc-breadcrumb a:hover {
  color: var(--ink);
}

.project-card--text .project-body {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Form select (home order form) */
.field select {
  width: 100%;
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 40px 14px 14px;
  font: inherit;
  color: var(--ink);
}

.field select:focus {
  outline: 2px solid var(--lime);
  outline-offset: 0;
  border-color: var(--ink);
}

.hero h1 {
  max-width: 18ch;
}

/* —— Mobile polish (phones) —— */
@media (max-width: 639px) {
  body {
    overflow-x: clip;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .container {
    padding-inline: 16px;
  }

  .header-inner {
    height: 60px;
    gap: 8px;
  }

  .logo-text {
    font-size: 17px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-dropdown-btn {
    padding: 8px 2px;
    min-height: 40px;
  }

  .site-header.is-open {
    background: var(--bg);
  }

  .mobile-nav:not([hidden]) {
    display: block;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(209, 213, 219, 0.6);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  }

  .mobile-nav-inner {
    padding: 8px 16px 28px;
  }

  .mobile-nav-inner > a,
  .mobile-services-btn {
    padding-block: 14px;
    font-size: 17px;
    min-height: 48px;
  }

  .mobile-cta {
    width: 100%;
    margin-top: 20px;
  }

  .hero-copy {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.45rem);
    line-height: 1.08;
    max-width: none;
  }

  .highlight-bar {
    bottom: 3px;
    height: 10px;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 28px;
    gap: 14px;
  }

  .hero-actions .btn-lg,
  .hero-actions .link-works {
    width: 100%;
    justify-content: center;
  }

  .hero-panel-wrap {
    padding-bottom: 48px;
  }

  .hero-panel {
    border-radius: 14px;
  }

  .hero-panel-content {
    padding: 14px;
  }

  .hero-cards {
    gap: 8px;
  }

  .hero-card {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
  }

  .hero-card > svg:first-child {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
  }

  .hero-card-foot {
    margin-top: 0;
    flex: 1;
    min-width: 0;
  }

  .hero-card .hero-card-title,
  h2.hero-card-title,
  .hero-card-title {
    font-size: 17px;
    margin-top: 2px;
  }

  .section-pad {
    padding-block: 56px;
  }

  .section-pad-sm {
    padding-block: 40px;
  }

  .section-title,
  .section-title--md {
    font-size: clamp(1.5rem, 6.5vw, 1.85rem);
    line-height: 1.15;
  }

  .about-split {
    gap: 28px;
  }

  .about-lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .about-formats {
    margin: 20px 0 24px;
  }

  .about-copy .btn {
    width: 100%;
    margin-top: 0;
    justify-content: center;
  }

  .about-media {
    border-radius: 12px;
  }

  .offer-panel {
    border-radius: 14px;
  }

  .offer-panel__head {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 22px 18px 18px;
  }

  .offer-panel__body {
    padding: 18px;
  }

  .offer-outcomes li {
    font-size: 14.5px;
    padding-left: 20px;
  }

  .offer-panel__foot,
  .offer-panel__foot--decide {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 18px;
  }

  .offer-panel__meta {
    width: 100%;
    gap: 16px 24px;
  }

  .offer-meta-value {
    font-size: 1.15rem;
  }

  .offer-panel__next {
    width: 100%;
    margin-left: 0;
  }

  .offer-panel__next-note {
    max-width: none;
  }

  .offer-panel__next .btn {
    width: 100%;
    justify-content: center;
  }

  .cells-grid {
    margin-top: 28px;
    border-radius: 12px;
  }

  .cell,
  .cell-card--plain .cell-body {
    padding: 22px 18px;
  }

  .cell-card .cell-title--process {
    margin-top: 14px;
  }

  .cell-text {
    font-size: 1.35rem;
  }

  .projects-cta-wrap {
    margin-top: 28px;
  }

  .projects-cta-wrap .btn {
    width: 100%;
    justify-content: center;
  }

  .dark-band-cards {
    margin-top: 28px;
  }

  .dark-band-cards--second {
    margin-top: 8px;
  }

  .projects-grid {
    margin-top: 28px;
    gap: 14px;
  }

  .project-body {
    padding: 18px;
  }

  .project-name {
    font-size: 19px;
  }

  .banner {
    padding: 28px 20px;
    gap: 22px;
    border-radius: 14px;
  }

  .banner-title {
    font-size: 1.55rem;
    max-width: none;
  }

  .banner-text {
    margin-top: 10px;
    font-size: 15px;
  }

  .banner .btn,
  .banner .btn-dark {
    width: 100%;
    justify-content: center;
  }

  .contacts-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    max-width: none;
  }

  .contacts-lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .contacts-grid {
    margin-top: 32px;
    gap: 36px;
  }

  .contact-form {
    gap: 24px;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }

  .field input,
  .field textarea {
    font-size: 16px; /* avoids iOS zoom on focus */
    padding-block: 14px;
  }

  .contact-row {
    min-height: 56px;
    padding-bottom: 16px;
  }

  .faq-layout {
    gap: 28px;
  }

  .faq-trigger {
    font-size: 16px;
    padding-block: 18px;
    align-items: flex-start;
  }

  .faq-panel p {
    font-size: 15px;
  }

  .footer-grid,
  .footer-grid--ua {
    gap: 28px 16px;
  }

  .footer-grid--ua {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid--ua .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-about {
    font-size: 14px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 14px;
    line-height: 1.35;
  }

  .footer-bottom {
    margin-top: 36px;
    gap: 10px;
  }

  .footer-copy {
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.5;
  }
}

/* Extra-small phones */
@media (max-width: 379px) {
  .logo-text {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .header-phone {
    width: 38px;
    height: 38px;
  }
}

/* —— Portfolio case pages —— */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.case-hero .hero-copy,
.case-hero-inner {
  padding-top: 36px;
  padding-bottom: 36px;
}

@media (min-width: 640px) {
  .case-hero-inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

.case-hero-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .case-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.case-hero .page-h1 {
  max-width: 18ch;
}

.case-hero-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.case-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.case-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .case-layout {
    grid-template-columns: 1.4fr 0.6fr;
    gap: 56px;
    align-items: start;
  }
}

.case-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-block-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.case-block-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #374151;
  max-width: 62ch;
}

.case-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.case-features li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: #374151;
}

.case-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lime);
}

.case-block--result {
  padding: 24px;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px solid var(--line);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: #f9fafb;
}

.case-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .case-aside {
    position: sticky;
    top: 96px;
  }
}

.case-aside-card {
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
}

.case-aside-value {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.case-aside-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.case-aside-list li {
  font-size: 15px;
  color: #374151;
  padding-left: 14px;
  position: relative;
}

.case-aside-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.case-aside-card .btn {
  margin-top: 16px;
}

.aside-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.aside-form .field label {
  margin-bottom: 6px;
  color: var(--muted);
}

.aside-form .field input,
.aside-form .field textarea {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink);
}

.aside-form .field input::placeholder,
.aside-form .field textarea::placeholder {
  color: #9ca3af;
}

.aside-form .field input:focus,
.aside-form .field textarea:focus {
  border-color: var(--ink);
}

.aside-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
}

.case-aside-h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.faq-h3 {
  margin: 0;
  font: inherit;
  font-weight: inherit;
  color: 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;
}

.cells-2 {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .cells-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-formats a {
  text-decoration: none;
  color: inherit;
}

.about-formats a:hover .about-format-title {
  border-color: var(--ink);
}

.contacts-block-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.contacts-alt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contacts-alt p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.contacts-alt a {
  color: var(--lime);
  font-weight: 600;
}

.section--ink .contacts-block-title {
  color: #fff;
}

.form-status{margin:1rem 0;padding:.75rem 1rem;border-radius:8px;font-weight:600}
.form-status--ok{background:#e8f5c8;color:#1a2e05}
.form-status--error{background:#fee2e2;color:#7f1d1d}
.case-layout{display:grid;grid-template-columns:1.4fr .6fr;gap:2rem}
@media(max-width:900px){.case-layout{grid-template-columns:1fr}}
.case-hero-media img,.case-card-media img{width:100%;height:auto;display:block;border-radius:12px}
.prose .legal-content{max-width:42rem;line-height:1.7}

/* —— Cases / stories (blog-style cases) —— */
.story-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.story-filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.2s, background 0.2s;
}

.story-filter:hover {
  border-color: var(--ink);
}

.story-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.story-card[hidden] {
  display: none;
}

.story-grid {
  margin-top: 28px;
}

@media (min-width: 640px) {
  .story-grid {
    margin-top: 36px;
  }
}

.story-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-card-meta .mono-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  letter-spacing: 0.12em;
}

.story-card-meta .mono-tag--gray {
  background: #eef0f3;
  color: #4b5563;
}

.story-card-meta--hero {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.story-card-time {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6b7280;
  white-space: nowrap;
}

.story-card-excerpt {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
}

.story-card .project-name {
  font-size: 20px;
}

.story-review {
  margin-top: 36px;
  padding: 26px 28px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #1faa4a;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
}

.story-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.story-rating-score {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.story-rating-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.story-rating-stars {
  display: flex;
  gap: 4px;
  color: #1faa4a;
}

.story-rating-stars svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.story-rating-when {
  margin: 0 0 0 auto;
  font-size: 14px;
  line-height: 1;
  color: #9ca3af;
  white-space: nowrap;
}

.story-review-quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.story-review-author {
  margin: 14px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.story-fh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-fh-link:hover {
  color: #374151;
}

.story-fh-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: #fff;
}

.story-share {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.story-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.story-share-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.story-share-btn:hover {
  border-color: var(--ink);
  background: #f9fafb;
}

.story-share-btn.is-copied {
  border-color: var(--lime);
  background: var(--lime);
}
