:root {
  --bg: #09090b;
  --bg-elevated: #0f0f12;
  --bg-card: #131316;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #fafafa;
  --text-muted: #9ca3af;
  --accent: #e8c468;
  --accent-dim: rgba(232, 196, 104, 0.12);
  --accent-glow: rgba(232, 196, 104, 0.2);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Background — чистый, без шума и размытия */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0d0d10 0%, var(--bg) 35%);
}

.page-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 55%);
}

.page-bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  height: 420px;
  background: radial-gradient(ellipse at center top, rgba(232, 196, 104, 0.07) 0%, transparent 65%);
  /* без filter: blur — чёткое свечение */
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(9, 9, 11, 0.95);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1;
}

.logo-dot {
  display: none;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active {
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-cta {
  background: var(--accent) !important;
  color: #0a0a0a !important;
}

.header-cta:hover {
  background: #f0d080 !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(232, 196, 104, 0.3);
}

.btn-primary:hover {
  background: #f0d080;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Code card */
.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  position: relative;
}

.code-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.code-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-body .kw { color: #c792ea; }
.code-body .str { color: #c3e88d; }
.code-body .bool { color: #ffcb6b; }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-dark {
  background: var(--bg-elevated);
  max-width: none;
  padding-left: max(2rem, calc((100vw - var(--max)) / 2 + 2rem));
  padding-right: max(2rem, calc((100vw - var(--max)) / 2 + 2rem));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Внутри page-content — без full-bleed отступов */
.page-content .section {
  max-width: 100%;
  padding: 3rem 0;
}

.page-content .section-dark {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 2.5rem;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  /* отменяем full-bleed 100vw у .section-dark */
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  margin-top: 3.5rem;
}

.section-head:first-child {
  margin-top: 0;
}

.section-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section-head h2 {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  max-width: 520px;
}

.section-link {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity var(--transition);
}

.section-link:hover {
  opacity: 0.8;
}

.section-compact {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.services-grid-home {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
  .services-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-points {
  list-style: none;
  margin-top: 0.25rem;
}

.service-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.home-featured .work-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
}

.category-chip:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.category-chip-count {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1;
}

.category-chip-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.category-chip:hover .category-chip-label {
  color: var(--text);
}

.page-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Inner page hero (Услуги, Работы, Контакты, О нас) */
.page-hero {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7.5rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}

.page-hero-text {
  max-width: 640px;
}

.page-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
  line-height: 1;
}

.page-hero h1 {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.8vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.page-desc {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
}

.metrics-card {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
  min-width: 4.5rem;
}

.metric-num {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--text);
  line-height: 1;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-section {
  padding-top: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.value-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.value-card:hover {
  border-color: var(--border-hover);
}

.value-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 6px;
}

.value-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.team-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(232, 196, 104, 0.2);
  border-radius: var(--radius);
  position: relative;
}

.team-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-card > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.team-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.team-card-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

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

.expertise-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.expertise-card:hover {
  border-color: var(--border-hover);
}

.expertise-count {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.expertise-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.expertise-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.expertise-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.use-case {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.use-case h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.use-case p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.process-steps-detailed .process-step ul {
  list-style: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.process-steps-detailed .process-step li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.process-steps-detailed .process-step li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}


.lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.mini-card:hover {
  border-color: var(--border-hover);
}

.mini-icon {
  display: block;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.mini-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.mini-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.service-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.service-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-right: 0;
}

.service-card:has(.service-tag) h3 {
  padding-right: 4.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
}

.service-link:hover {
  opacity: 0.8;
}

/* Work / Portfolio */
.page-content-wide {
  max-width: 1320px;
}

.portfolio-section {
  padding-top: 0;
}

.portfolio-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.work-card-featured {
  border-color: rgba(232, 196, 104, 0.25);
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.work-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-thumb-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

.work-wine {
  background: linear-gradient(135deg, #3d1f1f 0%, #5c2e2e 50%, #8b4513 100%);
}

.work-game {
  background: linear-gradient(135deg, #1a2a4a 0%, #2d4a7a 100%);
}

.work-chart {
  background: linear-gradient(135deg, #0d2818 0%, #1a4d32 100%);
}

.work-trade {
  background: linear-gradient(135deg, #1a1a3e 0%, #3d2a6e 100%);
}

.work-plugin {
  background: linear-gradient(135deg, #2a1f3d 0%, #4a3060 100%);
}

.work-doc {
  background: linear-gradient(135deg, #2a2520 0%, #4a4035 100%);
}

.work-bot {
  background: linear-gradient(135deg, #1a2e3d 0%, #2d5a6e 100%);
}

.work-tool {
  background: linear-gradient(135deg, #2d2a1a 0%, #5a4a2d 100%);
}

/* Portfolio filters */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.work-card.is-hidden,
.work-card.is-deferred {
  display: none;
}

.portfolio-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.hero-offer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1.25rem;
}

.hero-offer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hero-offer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.landing-price-from {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.landing-price-from strong {
  color: var(--accent);
}

.landing-form-wrap {
  max-width: 640px;
}

.contact-form-compact {
  margin-top: 0.5rem;
}

.work-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.work-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.25;
}

.work-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.work-tags span {
  font-size: 0.7rem;
  padding: 0.22rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* Stack */
.stack-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stack-group h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stack-pills span {
  padding: 0.55rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}

.stack-pills span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(340px, 1.08fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-side-inner {
  padding: 1.75rem;
  background: linear-gradient(165deg, rgba(232, 196, 104, 0.06) 0%, var(--bg-card) 45%);
  border: 1px solid rgba(232, 196, 104, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.contact-side-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.contact-side-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.contact-side-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.messenger-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.messenger-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.messenger-btn:hover {
  border-color: rgba(232, 196, 104, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.messenger-btn-tg:hover {
  background: rgba(42, 171, 238, 0.08);
  border-color: rgba(42, 171, 238, 0.35);
}

.messenger-btn-max:hover {
  background: var(--accent-dim);
}

.messenger-btn-vk:hover {
  background: rgba(70, 128, 194, 0.1);
  border-color: rgba(70, 128, 194, 0.4);
}

.messenger-btn-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
}

.messenger-btn-tg .messenger-btn-icon {
  background: rgba(42, 171, 238, 0.12);
  color: #5ebef5;
}

.messenger-btn-max .messenger-btn-icon {
  background: rgba(232, 196, 104, 0.12);
  color: var(--accent);
}

.messenger-btn-vk .messenger-btn-icon {
  background: rgba(70, 128, 194, 0.14);
  color: #7eb0e8;
}

.messenger-btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.messenger-btn-name {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.messenger-btn-handle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messenger-btn-arrow {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.85;
}

.contact-flow {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.contact-flow-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-flow-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--accent);
  border-radius: 50%;
}

.contact-flow-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.contact-form-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-form-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.85rem;
}

.field-grow {
  min-width: 0;
}

.field-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.ui-select {
  position: relative;
}

.ui-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ui-select-label.is-placeholder {
  color: #6b7280;
}

.ui-select-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}

.ui-select.is-open .ui-select-chevron {
  transform: rotate(-135deg) translateY(2px);
}

.ui-select-trigger:focus {
  outline: none;
  border-color: rgba(232, 196, 104, 0.55);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ui-select-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #141418;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 0.35rem;
}

.ui-select-option {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.ui-select-option:hover,
.ui-select-option.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.ui-select.is-error .ui-select-trigger {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field textarea,
.ui-input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.field input:focus,
.field textarea:focus,
.ui-input:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-top {
  transition: color var(--transition);
}

.footer-top:hover {
  color: var(--accent);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile */
@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .section-link {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .page-hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }

  .metrics-card {
    width: 100%;
    justify-content: space-around;
  }

  .values-grid,
  .expertise-grid,
  .use-cases {
    grid-template-columns: 1fr;
  }

  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition);
    gap: 1.5rem;
  }

  .nav.open {
    transform: translateX(0);
  }

  .header-cta {
    display: none;
  }

  .burger {
    display: flex;
    z-index: 101;
  }

  .burger.active span:first-child {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .burger.active span:last-child {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }
}

.page-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.cta-banner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto 5rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.cta-banner h2 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.flash-wrap {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
}

.flash {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideIn 0.4s ease;
}

.flash-success {
  background: rgba(61, 122, 82, 0.2);
  border: 1px solid rgba(61, 122, 82, 0.5);
  color: #b8e6c8;
}

.flash-error {
  background: rgba(168, 50, 50, 0.2);
  border: 1px solid rgba(168, 50, 50, 0.5);
  color: #f5c4c4;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.process-steps-3 {
  grid-template-columns: repeat(3, 1fr);
}

.services-grid-home-slim {
  grid-template-columns: repeat(2, 1fr);
}

.vk-strip {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 1.35rem 1.6rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(232, 196, 104, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(232, 196, 104, 0.07), transparent 45%),
    var(--bg-card);
}

.vk-strip-media {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
  background: #050507;
  flex-shrink: 0;
}

.vk-strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-strip-label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.vk-strip-title {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.vk-strip-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 0.95rem;
  max-width: 34rem;
}

.vk-strip-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  min-width: 11.5rem;
}

.vk-strip-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.vk-strip-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.vk-strip-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(232, 196, 104, 0.5);
}

@media (max-width: 820px) {
  .vk-strip {
    grid-template-columns: 96px 1fr;
    padding: 1rem;
  }

  .vk-strip-media {
    width: 96px;
    height: 96px;
    border-radius: 14px;
  }

  .vk-strip-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
  }

  .vk-strip-actions .btn {
    width: auto;
    flex: 1 1 auto;
  }

  .vk-strip-link {
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  .process-steps-3 {
    grid-template-columns: 1fr;
  }

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

.process-step {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.process-step span {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (max-width: 960px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}

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

  .value-card {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .metrics-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .metric {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    min-width: 0;
  }
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  max-width: 520px;
}

.track-hint {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.track-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 196, 104, 0.25);
  background: var(--accent-dim);
}

.track-banner-code {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.15em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.track-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.track-banner a {
  color: var(--accent);
}

.track-form-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem;
  background: #16161a;
  border: 1px solid rgba(232, 196, 104, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.45);
}

.track-section {
  padding-top: 0.5rem;
}

.track-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.track-form .field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track-code-field {
  text-align: center;
  font-size: 1.65rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  min-height: 3.4rem;
  border-color: rgba(232, 196, 104, 0.28) !important;
}

.track-code-field:focus {
  border-color: var(--accent) !important;
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.track-form-btn {
  width: 100%;
  min-height: 3rem;
  font-weight: 700;
}

.track-result {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.track-result-code {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.track-result-hint {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.track-not-found {
  margin-top: 1rem;
  color: #e85c5c;
  font-weight: 600;
}

.track-form-links {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.track-form-links a {
  color: var(--accent);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.package-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.package-card:hover {
  border-color: rgba(232, 196, 104, 0.35);
}

.package-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}

.package-head h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  min-width: 0;
  flex: 1 1 10rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.package-price {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(232, 196, 104, 0.3);
  white-space: nowrap;
  max-width: 100%;
}

.package-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.package-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.package-includes li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.package-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.package-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  min-width: 0;
}

.package-term {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 0;
  flex: 1 1 auto;
}

.contact-max-hint {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--accent);
  line-height: 1.45;
  display: none;
}

.contact-max-hint.visible {
  display: block;
}

/* Blog */
.page-hero-compact {
  padding-bottom: 1.5rem;
}

.section-blog-list {
  padding-top: 0;
}

.blog-breadcrumb {
  color: var(--text-muted);
  transition: color var(--transition);
}

.blog-breadcrumb:hover {
  color: var(--accent);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.blog-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.blog-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition);
}

.blog-card:hover {
  border-color: rgba(232, 196, 104, 0.35);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem;
  flex: 1;
}

.blog-card-thumb {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.blog-card-thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition);
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.03);
}

.blog-card h2,
.blog-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.blog-card-tags,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-tag {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 196, 104, 0.25);
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.blog-post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.page-content-article {
  max-width: 760px;
}

.article-shell {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.article-cover {
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  line-height: 0;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.article-body {
  padding: 2rem;
}

.article-body h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.article-body ul,
.article-body ol {
  color: var(--text-muted);
  margin: 0 0 1rem 1.25rem;
  line-height: 1.65;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.article-body pre {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.article-body pre code {
  padding: 0;
  background: none;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.article-footer {
  padding: 1.25rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.article-more {
  margin-top: 2.5rem;
}

.article-more-head {
  margin-bottom: 1.25rem;
}

.article-more-head h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.blog-card-sm .blog-card-body,
.blog-card-sm {
  padding: 0;
}

.blog-card-sm .blog-card-body {
  padding: 1.1rem;
}

@media (max-width: 600px) {
  .article-body {
    padding: 1.25rem;
  }

  .article-footer {
    padding: 1rem 1.25rem 1.25rem;
  }
}

/* Legal, FAQ, landing, calculator, cookie */
.page-doc {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem 4rem;
}

.page-doc-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-doc-head {
  margin-bottom: 1.5rem;
}

.page-doc-head h1 {
  font-family: var(--sans);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0;
}

.page-doc-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.page-doc-card {
  margin-bottom: 1.25rem;
}

.page-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.25rem;
}

.page-doc-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.page-doc-nav a:hover {
  color: var(--accent);
}

.page-doc-more {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.page-doc-more-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.legal-lead {
  font-size: 1rem;
  color: #c4c8d0 !important;
  line-height: 1.7;
  margin-bottom: 1.5rem !important;
}

.legal-body h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  letter-spacing: -0.01em;
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: #b4b8c0;
}

.legal-body a {
  color: var(--accent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.footer-iks img {
  display: block;
  border-radius: 8px;
  opacity: 0.9;
}

.footer-iks:hover img {
  opacity: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.82rem;
}

.footer-nav a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-answer a {
  color: var(--accent);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.landing-price-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 196, 104, 0.3);
  background: var(--accent-dim);
}

.landing-price-label {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.landing-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  min-width: 0;
}

.landing-price-row strong {
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.landing-price-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

.pricing-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.pricing-card h3 {
  font-size: 0.95rem;
  line-height: 1.35;
}

.pricing-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.pricing-card-term {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}

.landing-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem;
}

.landing-link-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color var(--transition);
  min-width: 0;
  max-width: 100%;
}

.landing-link-card:hover {
  border-color: rgba(232, 196, 104, 0.35);
}

.landing-link-card span {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.landing-link-card strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.landing-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.calc-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ui-select-native {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

.calc-result {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 196, 104, 0.25);
  margin-bottom: 0.75rem;
}

.calc-result-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.calc-result-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.calc-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc-note a {
  color: var(--accent);
}

.consent-label,
.field-consent .consent-label {
  display: grid !important;
  grid-template-columns: 1.15rem 1fr;
  column-gap: 0.75rem;
  align-items: start;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  line-height: 1.5;
  margin: 0 !important;
  color: var(--text-muted);
  text-align: left !important;
  cursor: pointer;
}

.field-consent {
  margin-bottom: 1.35rem;
}

.consent-check,
.field-consent .consent-check,
.field-consent input[type="checkbox"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  max-width: 1.15rem !important;
  margin: 0.2rem 0 0 !important;
  padding: 0 !important;
  justify-self: start;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.consent-text {
  display: block;
  min-width: 0;
}

.consent-label a,
.consent-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 1rem;
  background: rgba(9, 9, 11, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 720px;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lang-switch {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .calc-fields {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-content {
    padding: 1.75rem 1rem 3.5rem;
    overflow-x: clip;
    max-width: 100%;
  }

  .page-content .section-dark {
    padding: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .packages-grid,
  .pricing-grid,
  .landing-links {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .package-card {
    padding: 1.1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .package-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .package-price {
    align-self: flex-start;
  }

  .package-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .package-foot .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .landing-price-card {
    padding: 1.1rem;
  }

  .landing-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .cta-banner {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1.5rem 1.15rem;
  }

  .calc-card {
    padding: 1.15rem;
  }
}

/* Site lead chat */
.track-success-banner {
  margin: 0 auto 1.25rem;
  max-width: 640px;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 196, 104, 0.35);
  background: rgba(232, 196, 104, 0.08);
  text-align: center;
}

.track-success-code {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.site-chat-panel {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.site-chat-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.site-chat-status { color: var(--text-muted); font-size: 0.82rem; }

.site-chat-messages {
  height: min(360px, 50vh);
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.15);
}

.site-chat-msg {
  max-width: 92%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.site-chat-msg--client {
  align-self: flex-end;
  background: rgba(232, 196, 104, 0.18);
}

.site-chat-msg--staff {
  align-self: flex-start;
  background: rgba(126, 184, 255, 0.14);
}

.site-chat-msg--system {
  align-self: center;
  max-width: 100%;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.site-chat-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.site-chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
}

.site-chat-form textarea {
  resize: vertical;
  min-height: 2.8rem;
}

.site-chat-closed,
.site-chat-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.site-chat-fab {
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--accent, #e8c468);
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-chat-widget-panel {
  width: min(360px, calc(100vw - 2rem));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card, #131316);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.site-chat-widget-panel .site-chat-messages {
  height: 240px;
}

.site-chat-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}
