/* ==========================================================================
   Виниченко Иван — 1С-разработчик
   Светлая тема
   ========================================================================== */

/* ----- Токены ----- */
:root {
  --bg: #f6f7fb;
  --bg-2: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #e9edf5;
  --border: rgba(16, 24, 40, 0.09);
  --border-strong: rgba(16, 24, 40, 0.18);

  --text: #101828;
  --text-dim: #475467;
  --muted: #98a2b3;

  --brand: #ffd400;
  --brand-ink: #1a1400;
  --accent: #b45309;
  --accent-2: #0369a1;
  --accent-3: #7c3aed;
  --success: #059669;
  --danger: #dc2626;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow: 0 26px 50px -26px rgba(16, 24, 40, 0.28);
  --shadow-sm: 0 12px 26px -18px rgba(16, 24, 40, 0.35);

  --container: 1200px;
  --gap: clamp(16px, 2.5vw, 28px);

  --font: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Сброс ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Утилиты ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding: clamp(56px, 9vw, 120px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(40px, 6vw, 80px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

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

.text-gradient {
  background: linear-gradient(100deg, #101828 8%, #b45309 55%, #0369a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nowrap {
  white-space: nowrap;
}

/* ----- Кнопки ----- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--btn-fg);
  box-shadow: 0 16px 30px -16px rgba(180, 83, 9, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(180, 83, 9, 0.05);
  box-shadow: none;
}

.btn--dark {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}

.btn--dark:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--tg {
  --btn-bg: #229ed9;
  --btn-fg: #fff;
}

.btn--tg:hover {
  box-shadow: 0 16px 30px -16px rgba(34, 158, 217, 0.7);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 17px 34px;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ----- Декоративные блики ----- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.glow--accent {
  background: rgba(255, 212, 0, 0.35);
}

.glow--cyan {
  background: rgba(56, 189, 248, 0.28);
}

.glow--violet {
  background: rgba(167, 139, 250, 0.22);
}

/* ----- Шапка ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 76px;
  max-width: 1320px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo__mark {
  width: 44px;
  height: 44px;
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

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

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

.nav a {
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

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

.nav__mobile-only {
  display: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.burger span {
  top: 50%;
  margin-top: -1px;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger.is-open span {
  background: transparent;
}

.burger.is-open span::before {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}

.burger.is-open span::after {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: clamp(44px, 7vw, 96px) 0 clamp(36px, 5vw, 72px);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero .glow--accent {
  width: 520px;
  height: 520px;
  top: -200px;
  right: -120px;
}

.hero .glow--cyan {
  width: 460px;
  height: 460px;
  bottom: -240px;
  left: -160px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__sub {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.hero__note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__note svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.16);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.16);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
  }
}

/* Фото в hero (за рабочим местом) */
.hero__visual {
  display: grid;
  gap: 16px;
}

.hero__shot {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.hero__shot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.hero__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.34) 0%, transparent 32%, transparent 58%, rgba(16, 24, 40, 0.75) 100%);
}

.status-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 100px;
  background: rgba(16, 24, 40, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
  animation: pulse 2.4s infinite;
}

.status-chip--busy .dot {
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
}

.hero__shot-person {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__shot-person img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  flex: none;
}

.hero__shot-name {
  display: block;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero__shot-name small {
  display: block;
  font-weight: 600;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Терминал */
.terminal {
  border: 1px solid #1e293b;
  border-radius: var(--radius);
  background: #0f172a;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.terminal__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.terminal__bar i:nth-child(1) { background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }

.terminal__title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: #64748b;
}

.terminal__body {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #cbd5e1;
  min-height: 148px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal__body .cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  transform: translateY(2px);
  background: var(--brand);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.term-k { color: #c4b5fd; }
.term-f { color: #7dd3fc; }
.term-s { color: #fde047; }
.term-ok { color: #6ee7b7; }
.term-c { color: #64748b; }

/* Курсор-спотлайт */
.spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 212, 0, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.hero:hover .spotlight {
  opacity: 1;
}

/* ----- Бегущая строка ----- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 0;
  user-select: none;
}

.marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee__item::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.8rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- Полоса статистики ----- */
.stats {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat {
  background: var(--surface);
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 28px);
  text-align: center;
}

.stat__num {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ----- Сетки и карточки ----- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 32px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 212, 0, 0.22);
  color: #a16207;
  margin-bottom: 18px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card--service {
  padding-bottom: 28px;
}

.card--service .card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.feature-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.25);
}

/* ----- Теги технологий ----- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface-2);
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 600;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface);
}

.chip--accent {
  border-color: rgba(180, 83, 9, 0.35);
  color: var(--accent);
  background: rgba(255, 212, 0, 0.14);
}

/* ----- Процесс ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 28px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 51px;
  left: 54px;
  right: -18px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
}

/* ----- Кейсы ----- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tab {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.tab.is-active {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}

.case {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.case:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.case[hidden] {
  display: none;
}

.case__top {
  height: 130px;
  background: linear-gradient(140deg, #fff7d6, #eef2fb);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.case__top::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 24, 40, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.case__top svg {
  width: 50px;
  height: 50px;
  color: #a16207;
  position: relative;
  z-index: 1;
}

.case__body {
  padding: 24px;
}

.case__tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 10px;
}

.case h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.case dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.case dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.case dd {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.case__result {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-size: 0.9rem;
  color: #065f46;
}

.case__result strong {
  color: var(--success);
}

/* ----- Цены ----- */
.price {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3vw, 34px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.price:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.price--featured {
  border-color: rgba(255, 212, 0, 0.9);
  background: linear-gradient(170deg, rgba(255, 212, 0, 0.14), var(--surface) 55%);
  box-shadow: var(--shadow);
}

.price__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.price__value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price__value small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.price__desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 10px 0 22px;
}

.price .feature-list {
  margin-top: 0;
  margin-bottom: 26px;
}

.price .btn {
  margin-top: auto;
}

/* ----- Отзывы ----- */
.review {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}

.review__stars {
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.review__text {
  color: var(--text-dim);
  font-size: 0.95rem;
  flex: 1;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.review__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.24);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #a16207;
  flex: none;
}

.review__name {
  font-weight: 700;
  font-size: 0.92rem;
}

.review__role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ----- FAQ ----- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

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

.faq__icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.faq__icon::before {
  top: 10px;
  left: 0;
  width: 22px;
  height: 2px;
}

.faq__icon::after {
  left: 10px;
  top: 0;
  width: 2px;
  height: 22px;
}

.faq__item.is-open .faq__icon::after {
  transform: scaleY(0);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq__a-inner {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ----- Форма / CTA ----- */
.cta {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}

.cta .glow--accent {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -120px;
  opacity: 0.45;
}

.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.field__error {
  font-size: 0.78rem;
  color: var(--danger);
  display: none;
}

.field.has-error .field__error {
  display: block;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.83rem;
  color: var(--text-dim);
}

.checkbox input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox a {
  color: var(--accent-2);
  text-decoration: underline;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__status {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status.is-error {
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #991b1b;
}

.form__status.is-success {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: #065f46;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-list > a,
.contact-list > .contact-value {
  justify-self: start;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
}

.contact-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.95rem;
  text-align: left;
  transition: color 0.2s var(--ease);
}

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

.contact-value svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.contact-reveal-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ----- Футер ----- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer__links {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer__links a {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__bottom a {
  color: var(--muted);
  text-decoration: underline;
}

/* ----- Плавающая кнопка ----- */
.float-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #229ed9;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(34, 158, 217, 0.7);
  transition: transform 0.25s var(--ease);
}

.float-btn:hover {
  transform: scale(1.08);
  color: #fff;
}

.float-btn svg {
  width: 26px;
  height: 26px;
}

.float-btn--max {
  background: linear-gradient(135deg, #7b61ff 0%, #00b2ff 100%);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(123, 97, 255, 0.7);
}

.float-btn--max:hover {
  color: #fff;
}

/* ----- Знакомство ----- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about__photo {
  max-width: 440px;
}

.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about__sign {
  font-family: "Segoe Script", "Comic Sans MS", cursive;
  font-size: 1.9rem;
  color: var(--accent);
  transform: rotate(-3deg);
  display: inline-block;
  margin-top: 12px;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.fact__num {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
  flex: none;
}

.fact__label {
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* Рукописная подчёркивающая линия */
.scribble {
  position: relative;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -6px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M1 5c20-4 40 3 60-1s40-3 58 1' fill='none' stroke='%23ffd400' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 8px;
}

/* ----- Сертификаты / квалификация ----- */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.cert {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.cert:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 83, 9, 0.45);
  box-shadow: var(--shadow);
}

.cert__badge {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  background: rgba(255, 212, 0, 0.22);
  color: #a16207;
}

.cert__badge--pro {
  background: rgba(3, 105, 161, 0.12);
  color: var(--accent-2);
}

.cert__title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}

.cert__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--mono);
}

.passport {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  border: 1px solid rgba(255, 212, 0, 0.9);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(255, 212, 0, 0.16), var(--surface) 60%);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.passport__qr {
  width: 150px;
  height: 150px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  flex: none;
}

.passport__qr img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

/* ----- Как я работаю ----- */
.workflow {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.workflow__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gitlog {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.gitlog__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.gitlog__body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2;
  color: var(--text-dim);
  max-height: 320px;
  overflow-y: auto;
}

.gitlog__row {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.gitlog__hash {
  color: var(--accent);
}

.gitlog__date {
  color: var(--muted);
  flex: none;
}

.gitlog__msg {
  white-space: normal;
}

/* Переключатель примеров журнала */
.logslider {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.logslider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.logslider__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.logslider__tab {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.logslider__tab:hover {
  color: var(--text);
  background: var(--surface);
}

.logslider__tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.logslider__hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.logslider__viewport {
  overflow: hidden;
}

.logslider__track {
  display: flex;
  transition: transform 0.45s var(--ease);
}

.logslider .gitlog {
  flex: 0 0 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.logslider .gitlog__body {
  max-height: none;
}

/* ----- Галерея «За кадром» ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
  background: var(--surface);
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(16, 24, 40, 0.88));
}

/* ----- Клиентский кабинет ----- */
.cabinet-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.cabinet {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cabinet__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.cabinet__bar::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.cabinet__body {
  padding: 6px 16px 12px;
}

.cabinet__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.cabinet__row:last-child {
  border-bottom: 0;
}

.cabinet__label {
  color: var(--text-dim);
  font-weight: 600;
}

.cabinet__status {
  flex: none;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-dim);
}

.cabinet__status--done {
  background: rgba(5, 150, 105, 0.12);
  color: var(--success);
}

.cabinet__status--work {
  background: rgba(255, 212, 0, 0.3);
  color: #a16207;
}

/* Широкая плашка под сеткой услуг */
.card--banner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.card--banner .card__icon {
  margin-bottom: 0;
}

.card--banner__body {
  flex: 1;
  min-width: 260px;
}

.card--banner h3 {
  margin-bottom: 8px;
}

.card--banner .chips {
  margin-top: 16px;
}

/* ----- Калькулятор ----- */
.calc {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

.calc__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 4vw, 40px);
}

.calc__group {
  margin-bottom: 22px;
}

.calc__group > span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.calc__options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.calc__opt {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface-2);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.calc__opt:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.calc__opt.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.calc__result {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc__price {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.calc__time {
  color: var(--text-dim);
  margin: 8px 0 20px;
  font-size: 0.95rem;
}

.calc__note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ----- Появление при скролле ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----- Адаптив ----- */
@media (max-width: 1024px) {
  .hero__grid,
  .about__grid,
  .workflow,
  .calc__grid,
  .cabinet-block,
  .cta__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .about__photo {
    max-width: 440px;
    margin-inline: auto;
  }

  .workflow__photo {
    max-width: 620px;
    margin-inline: auto;
  }

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

  .step:not(:last-child)::after {
    display: none;
  }

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

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

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

  .passport {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 1280px) {
  .header__actions .btn--tg {
    padding: 10px 12px;
  }

  .header__actions .btn--tg .btn__label {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-left: 0;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s var(--ease);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 12px;
    font-size: 1rem;
  }

  .nav__mobile-only {
    display: block;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--accent);
  }

  .burger {
    display: block;
  }

  .header__actions .btn--cabinet {
    display: none;
  }
}

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

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .steps,
  .footer__grid {
    grid-template-columns: 1fr;
  }

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

  .hero__cta .btn {
    flex: 1;
  }

  .header__actions .btn--tg {
    display: none;
  }

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

  .gallery__item,
  .gallery__item--wide {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .float-stack {
    right: 16px;
    bottom: 16px;
  }
}
