/* NechDev — modern signal theme */
:root {
  --bg0: #eceef2;
  --bg1: #e3e6ec;
  --surface: #ffffff;
  --ink: #0b0d12;
  --muted: #5c6575;
  --line: rgba(11, 13, 18, 0.1);
  --accent: #e85d04;
  --accent-hover: #cf4f00;
  --accent-2: #1b3a6b;
  --accent-soft: rgba(232, 93, 4, 0.12);
  --font-display: "Sora", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --radius: 12px;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --shadow: 0 18px 44px rgba(11, 13, 18, 0.09);
  --shadow-sm: 0 8px 20px rgba(11, 13, 18, 0.06);
  --header-h: 4.5rem;
  --tg: #2aabee;
  --tg-hover: #229ed9;
  --tg-deep: #229ed9;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg0);
  line-height: 1.55;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.fb-lock,
html.fb-lock body {
  overflow: hidden;
  touch-action: none;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: var(--pad);
  top: 0.75rem;
}

/* Atmosphere — soft, not flat */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 42% at 6% -4%, rgba(232, 93, 4, 0.14), transparent 55%),
    radial-gradient(ellipse 48% 36% at 96% 8%, rgba(27, 58, 107, 0.1), transparent 52%),
    linear-gradient(180deg, #f7f8fa 0%, var(--bg0) 40%, #dde3ec 100%);
}

.wrap {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}

/* Sticky header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  min-height: var(--header-h);
  height: auto;
  display: flex;
  align-items: center;
  padding: 0.7rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.25rem;
  width: min(100% - var(--pad) * 2, var(--max));
}

.header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

.header-contacts {
  display: flex;
  flex-direction: column;
  width: 12.75rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.header-phone {
  display: block;
  padding: 0.42rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.015em;
  text-align: left;
  line-height: 1.3;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-phone-icon {
  display: none;
}

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

.header-tz-btn {
  display: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(232, 93, 4, 0.35);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  line-height: 1.2;
}

.header-tz-btn:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.header-tz-btn.is-attached {
  color: var(--ink);
  border-color: var(--accent);
}

.header-tz-short {
  display: none;
}

.header-tg {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem 0.42rem 0.55rem;
  background: var(--tg);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.header-tg:hover {
  background: var(--tg-hover);
  color: #fff;
}

.header-tg-logo {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  flex-shrink: 0;
}

.header-tg-logo svg {
  display: block;
}

.header-tg-user {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

@media (max-width: 900px) {
  :root {
    --header-h: 10.5rem;
  }

  .header-bar {
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
  }

  .header-main {
    justify-content: space-between;
    min-width: 0;
  }

  .header-contacts {
    width: auto;
    min-width: 0;
    max-width: 11.5rem;
    justify-self: end;
  }

  .header-phone {
    padding: 0.32rem 0.55rem;
    font-size: 0.74rem;
  }

  .header-tg {
    padding: 0.32rem 0.55rem 0.32rem 0.4rem;
    gap: 0.35rem;
  }

  .header-tg-logo {
    width: 1.35rem;
    height: 1.35rem;
  }

  .header-tg-user {
    font-size: 0.72rem;
  }

  .site-header {
    padding: 0.55rem 0;
  }

  .nav {
    gap: 0.3rem 0.65rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 4.9rem;
  }

  .nav-hide-sm {
    display: none;
  }

  .nav a:not(.nav-cta) {
    font-size: 0.78rem;
  }

  .header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.45rem;
    align-items: center;
  }

  .site-header {
    overflow-x: clip;
  }

  .header-main {
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0.45rem 0.65rem;
  }

  .nav {
    flex-wrap: nowrap;
  }

  .nav-hide-xs {
    display: none;
  }

  .header-contacts {
    display: flex;
    flex-direction: row;
    width: auto;
    max-width: none;
    justify-self: end;
    align-self: center;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    padding: 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
  }

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

  .header-phone-text {
    display: none;
  }

  .header-phone-icon {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    color: inherit;
  }

  .header-phone-icon svg {
    display: block;
  }

  .header-tg {
    padding: 0.34rem;
    gap: 0;
  }

  .header-tg-user {
    display: none;
  }

  .header-tg-logo {
    width: 1.7rem;
    height: 1.7rem;
  }

  .header-tz-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }

  .header-tz-full {
    display: none;
  }

  .header-tz-short {
    display: inline;
  }
}

@media (max-width: 400px) {
  :root {
    --header-h: 4.4rem;
  }

  .logo {
    font-size: 1.05rem;
  }

  .nav-cta {
    padding: 0.38rem 0.65rem;
    font-size: 0.78rem;
  }

  .header-tz-btn {
    padding: 0.32rem 0.45rem;
    font-size: 0.74rem;
  }
}

/* Hero — one composition, full-bleed atmosphere, no side mock */
.hero {
  min-height: min(100svh, 38rem);
  display: grid;
  align-items: start;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 1.35rem) 0 3.25rem;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #eef0f4 0%, #f5f6f8 45%, #e8ebf1 100%);
  pointer-events: none;
}

.hero-visual::before {
  display: none;
}

.hero-line {
  position: absolute;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 93, 4, 0.15) 12%,
    rgba(232, 93, 4, 0.75) 48%,
    rgba(27, 58, 107, 0.45) 72%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(232, 93, 4, 0.18);
  transform-origin: center;
  will-change: transform, opacity;
  animation: floatLine ease-in-out infinite;
}

.hero-line--1 {
  top: 18%;
  left: 18%;
  width: min(46vw, 480px);
  transform: rotate(-8deg);
  animation-duration: 10s;
  animation-delay: 0s;
}

.hero-line--2 {
  top: 34%;
  left: 42%;
  width: min(36vw, 380px);
  transform: rotate(4deg);
  animation-duration: 13s;
  animation-delay: -2.5s;
  opacity: 0.8;
}

.hero-line--3 {
  top: 48%;
  left: 22%;
  width: min(58vw, 640px);
  height: 2.5px;
  transform: rotate(-3deg);
  animation-duration: 11.5s;
  animation-delay: -5s;
}

.hero-line--4 {
  top: 64%;
  left: 48%;
  width: min(32vw, 340px);
  transform: rotate(7deg);
  animation-duration: 15s;
  animation-delay: -1s;
  opacity: 0.7;
}

.hero-line--5 {
  top: 78%;
  left: 28%;
  width: min(42vw, 460px);
  transform: rotate(-5deg);
  animation-duration: 12s;
  animation-delay: -7s;
  opacity: 0.85;
}

@keyframes floatLine {
  0%,
  100% {
    translate: 0 0;
    opacity: 0.35;
  }
  40% {
    translate: 18px -14px;
    opacity: 1;
  }
  70% {
    translate: -10px 8px;
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line {
    animation: none;
    opacity: 0.55;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(-2%, 3%) rotate(6deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  /* Не стартуем с opacity:0 — иначе cold load выглядит как пустой экран */
  animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0.88;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 10.5vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin-bottom: 1.15rem;
}

.hero-brand em {
  font-style: normal;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
  max-width: 18ch;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34ch;
  margin-bottom: 1.15rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-facts strong {
  color: var(--ink);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.45rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px rgba(232, 93, 4, 0.28);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
}

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

.hero-tz-btn.is-attached {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 560px) {
  .hero {
    min-height: min(100svh, 34rem);
    padding: calc(var(--header-h) + 1rem) 0 2.75rem;
  }

  /* Первый экран: оффер и кнопки важнее логотипа */
  .hero-brand {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 0.9rem;
  }

  .hero-facts {
    gap: 0.3rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
  }

  .cta-row .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10.5rem);
  }

  /* ТЗ остаётся доступным, но не спорит с основными кнопками */
  .hero-tz-btn {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    border-style: dashed;
    box-shadow: none;
  }
}

/* Sections */
.section {
  padding: clamp(3.75rem, 8vw, 6.25rem) 0;
  border-top: 1px solid var(--line);
}

.section-tone {
  background: rgba(255, 255, 255, 0.55);
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 0.7rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

/* Services */
.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.4rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left 0.25s ease;
}

.service-item:hover {
  padding-left: 0.35rem;
}

.service-item:hover .service-num {
  color: var(--accent);
}

.service-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #9aafb8;
  min-width: 2ch;
  transition: color 0.2s ease;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.service-item p {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 52ch;
}

/* Portfolio */
.work-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .work-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.work {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.work:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 93, 4, 0.28);
  color: inherit;
}

.work-preview {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top center;
  background: #e8eef2;
  position: relative;
  overflow: hidden;
}

span.work-preview {
  height: 168px;
}

span.work-preview::after {
  content: "";
  position: absolute;
  inset: 22% 14% auto;
  height: 58%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 20px rgba(18, 28, 36, 0.08);
}

.tone-a {
  background: linear-gradient(135deg, #1b3a6b 0%, #2f5fa8 55%, #f0a36b 100%);
}

.tone-b {
  background: linear-gradient(135deg, #3a2a18 0%, #8a6a3a 50%, #e6d3a8 100%);
}

.tone-c {
  background: linear-gradient(135deg, #1a1f2e 0%, #3d4a66 55%, #e89a6a 100%);
}

.tone-d {
  background: linear-gradient(135deg, #e85d04 0%, #f0893a 50%, #fde0cc 100%);
}

img.work-preview {
  transition: transform 0.35s ease;
}

a.work:hover img.work-preview {
  transform: scale(1.03);
}

.work-meta {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.work-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.work-desc {
  color: var(--muted);
  font-size: 0.93rem;
}

.work-url {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.25rem;
}

.work-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--accent);
  background: rgba(232, 93, 4, 0.1);
  border-radius: 3px;
}

.work-cta .work-title {
  color: var(--accent);
}

/* Offers (#prices) */
.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.offer-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.4rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left 0.25s ease;
}

.offer-item:hover {
  padding-left: 0.35rem;
}

.offer-item:hover .offer-num {
  color: var(--accent);
}

.offer-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #9aa3b2;
  min-width: 2ch;
  transition: color 0.2s ease;
}

.offer-body {
  min-width: 0;
}

.offer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0.25rem;
}

.offer-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.offer-price {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  white-space: nowrap;
}

.offer-meta {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.offer-item .offer-body > p:not(.offer-meta):not(.offer-price) {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 54ch;
  margin: 0 0 0.7rem;
}

.offer-cta {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.offer-cta:hover {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.price-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Process */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.step {
  counter-increment: step;
  padding: 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  overflow: hidden;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.45rem;
  letter-spacing: -0.03em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Reveal — короче и не «глухой» blank на старте */
.reveal {
  opacity: 0.2;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Lead */
.lead {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .lead {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.lead-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
}

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

.lead-trust {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 36ch;
}

.lead-trust li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
}

.lead-trust strong {
  color: var(--ink);
  font-weight: 700;
}

.lead-trust a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.lead-trust a:hover {
  text-decoration: underline;
}

.form {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

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

.form .file-field .optional {
  font-weight: 500;
  color: var(--muted);
  opacity: 0.85;
}

.form input[type="file"] {
  padding: 0.65rem 0.75rem;
  background: #f7fafb;
  cursor: pointer;
}

.form input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  margin-right: 0.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.form .file-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.3em;
}

.form-status.ok {
  color: var(--accent);
}

.form-status.err {
  color: #b3261e;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.4);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
}

/* Feedback widget */
.fb-widget {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: min(100vw - 2rem, 22rem);
}

.fb-widget.is-open {
  z-index: 70;
}

.fb-dock {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  animation: fbIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fb-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.22);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  animation: fbPulseSoft 2.8s ease-in-out infinite;
}

.fb-tel:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff;
  animation-play-state: paused;
}

.fb-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  color: #fff;
  background: var(--tg);
  border: 1px solid transparent;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.fb-tg:hover {
  background: var(--tg-hover);
  color: #fff;
}

.fb-tg svg {
  display: block;
}

.fb-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: fbPulseAccent 2.8s ease-in-out infinite;
  animation-delay: 0.35s;
}

.fb-launcher:hover {
  background: var(--accent-hover);
  animation-play-state: paused;
}

.fb-launcher:active {
  transform: scale(0.98);
}

.fb-launcher[aria-expanded="true"] {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: none;
}

.fb-widget.is-open .fb-tel {
  animation: none;
}

.fb-launcher-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.fb-panel {
  width: min(100vw - 2rem, 22rem);
  max-height: min(70vh, 34rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
  animation: fbPanel 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: bottom right;
}

.fb-panel[hidden] {
  display: none;
}

.fb-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.fb-panel-head strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: block;
}

.fb-panel-head p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.fb-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.fb-close:hover {
  color: var(--ink);
}

.fb-form {
  display: grid;
  gap: 0.7rem;
}

.fb-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.fb-form input,
.fb-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* iOS: меньше 16px — зум страницы и обрезка формы */
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
}

.fb-form input:focus,
.fb-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

.fb-form textarea {
  min-height: 88px;
  resize: vertical;
}

.fb-form .file-field .optional {
  font-weight: 500;
  color: var(--muted);
  opacity: 0.85;
}

.fb-form input[type="file"] {
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.fb-form input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  margin-right: 0.65rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.fb-form .file-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

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

@keyframes fbIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fbPanel {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fbPulseSoft {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.22);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 8px rgba(232, 93, 4, 0);
  }
}

@keyframes fbPulseAccent {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(232, 93, 4, 0.28), 0 0 0 0 rgba(232, 93, 4, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(232, 93, 4, 0.34), 0 0 0 10px rgba(232, 93, 4, 0);
  }
}

@media (max-width: 640px) {
  .fb-widget {
    right: 0;
    left: 0;
    bottom: 0;
    max-width: none;
    width: 100%;
    align-items: stretch;
    gap: 0;
    padding: 0;
    pointer-events: none;
  }

  .fb-widget.is-open {
    top: 0;
    background: rgba(18, 28, 36, 0.35);
    pointer-events: auto;
  }

  .fb-panel {
    width: 100%;
    max-width: none;
    max-height: min(88dvh, 88vh);
    margin-top: auto;
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
    transform-origin: bottom center;
    pointer-events: auto;
  }

  .fb-dock {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    pointer-events: auto;
    z-index: 71;
  }

  .fb-widget.is-open .fb-dock {
    display: none;
  }

  .fb-form textarea {
    min-height: 72px;
  }
}

@media (max-width: 480px) {
  .fb-launcher-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .fb-launcher {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}


/* ========== STRUCTURAL REDESIGN 2026-09 ========== */

.site-header {
  padding: 0.85rem 0;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  width: min(100% - var(--pad) * 2, var(--max));
  grid-template-columns: unset;
}

.header-main { display: contents; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.header-phone,
.header-tg {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  border: 0;
  background: transparent;
  padding: 0.35rem 0.45rem;
}

.header-phone:hover,
.header-tg:hover {
  color: var(--ink);
}

.header-phone-icon,
.header-tg-logo { display: none; }

.header-tg {
  color: var(--tg);
}

.header-tz-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.header-tz-btn:hover,
.header-tz-btn.is-attached {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-cta {
  border-radius: 999px !important;
  padding: 0.45rem 0.95rem !important;
}

@media (max-width: 900px) {
  .header-contacts { display: none; }
  .header-bar { flex-wrap: wrap; }
}

/* Hero asymmetric */
.hero {
  min-height: min(100svh, 42rem);
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  display: block;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    min-height: min(72vh, 34rem);
  }
}

.hero-content {
  max-width: 34rem;
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  font-size: clamp(3.6rem, 12vw, 6.4rem);
  margin-bottom: 0.85rem;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
}

.hero-lead {
  max-width: 36ch;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.hero-facts-line {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.6rem;
  letter-spacing: -0.01em;
}

.hero-facts-line strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-tz-link {
  display: inline-block;
  margin-top: 1rem;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.hero-tz-link:hover,
.hero-tz-link.is-attached {
  color: var(--accent-hover);
}

.hero-grid {
  grid-template-columns: 1fr !important;
  min-height: auto !important;
}

.hero-content {
  max-width: 38rem;
}

/* old stage panel removed */

/* Section heads split */
.section-head--split {
  display: grid;
  gap: 1rem 2.5rem;
  max-width: none;
  margin-bottom: 2.75rem;
}

@media (min-width: 800px) {
  .section-head--split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
  .section-head--split > p {
    margin: 0;
    padding-bottom: 0.25rem;
  }
}

.section-head--faq {
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.section-head--faq h2 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

/* Offers 2x2 */
.offer-list { display: none; }

.offer-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.offer-card {
  position: relative;
  padding: 1.5rem 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  display: grid;
  gap: 0.55rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 93, 4, 0.28);
}

.offer-card .offer-num {
  position: absolute;
  top: 1.15rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #9aa3b2;
  letter-spacing: 0.04em;
}

.offer-card .offer-top {
  display: grid;
  gap: 0.35rem;
  padding-right: 2.5rem;
}

.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.offer-card .offer-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0;
}

.offer-card .offer-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.offer-card > p:not(.offer-meta):not(.offer-price) {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
  max-width: 36ch;
}

.offer-card .offer-cta {
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.offer-card .offer-cta:hover {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

/* Portfolio showcase */
.work-list { display: none; }

.work-showcase {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .work-showcase {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.1rem;
  }

  .work--lg { grid-column: span 6; }
  .work--md { grid-column: span 4; }
  .work--sm { grid-column: span 3; }
  .work.work-cta { grid-column: span 6; }
}

@media (min-width: 1100px) {
  .work--lg { grid-column: span 6; }
  .work--md { grid-column: span 4; }
  .work--sm { grid-column: span 3; }
}

.work {
  display: grid;
  grid-template-rows: 1fr auto;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  transition: transform 0.28s ease;
}

a.work:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: transparent;
  color: inherit;
}

.work-preview {
  height: 220px;
  border-radius: calc(var(--radius) + 4px);
  background: #e4e8ef;
}

.work--lg .work-preview { height: clamp(240px, 28vw, 340px); }
.work--md .work-preview { height: 230px; }
.work--sm .work-preview { height: 160px; }

img.work-preview {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

a.work:hover img.work-preview {
  transform: scale(1.045);
}

.work-meta {
  padding: 0.95rem 0.15rem 0.25rem;
  gap: 0.25rem;
}

.work-title {
  font-size: 1.12rem;
}

.work--lg .work-title {
  font-size: 1.35rem;
}

.work-cta {
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 0;
}

.work-cta .work-preview {
  display: none;
}

.work-cta .work-meta {
  padding: 2rem 1.5rem;
  color: #fff;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-cta .work-title,
.work-cta .work-desc,
.work-cta .work-url {
  color: #fff;
}

.work-cta .work-url {
  color: #ffb280;
}

.work-cta:hover {
  transform: translateY(-4px);
}

/* Step rail — connected track, not a table */
.steps { display: none; }

.step-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  border: 0;
  position: relative;
}

@media (min-width: 860px) {
  .step-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    padding-top: 0.35rem;
  }

  /* Line runs marker-center → next marker-center; no orphan ends */
  .step-rail-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.35rem;
    left: 1.35rem;
    width: calc(100% + 1.25rem);
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(232, 93, 4, 0.85),
      rgba(27, 58, 107, 0.35)
    );
    pointer-events: none;
    z-index: 0;
  }
}

.step-rail-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.05rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

@media (min-width: 860px) {
  .step-rail-item {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
}

.step-rail-item:hover {
  border-color: rgba(232, 93, 4, 0.28);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

@media (min-width: 860px) {
  .step-rail-item:hover {
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .step-rail-item:hover .step-rail-body {
    transform: translateY(-3px);
  }

  .step-rail-item:hover .step-rail-num {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
}

.step-rail-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: #fff;
  border: 1.5px solid rgba(232, 93, 4, 0.55);
  border-radius: 10px;
  box-shadow: 0 0 0 6px var(--bg0);
  margin: 0;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

@media (min-width: 860px) {
  .step-rail-num {
    position: relative;
    z-index: 1;
    width: 2.7rem;
    height: 2.7rem;
    font-size: 0.88rem;
    box-shadow: 0 0 0 7px var(--bg0);
  }
}

.step-rail-body {
  min-width: 0;
  transition: transform 0.25s ease;
}

@media (min-width: 860px) {
  .step-rail-body {
    padding: 0.15rem 0.15rem 0;
  }
}

.step-rail-item h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.step-rail-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  max-width: 24ch;
}

/* Lead polish */
.lead {
  gap: 2.5rem;
}

.form {
  border-radius: calc(var(--radius) + 4px);
}

.form input,
.form textarea,
.form select {
  background: #f4f5f8;
}

.faq details {
  border-radius: 0;
}

/* Stagger offers */
.offer-grid.reveal .offer-card {
  opacity: 0.15;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.offer-grid.reveal.is-in .offer-card {
  opacity: 1;
  transform: none;
}

.offer-grid.reveal.is-in .offer-card:nth-child(2) { transition-delay: 0.06s; }
.offer-grid.reveal.is-in .offer-card:nth-child(3) { transition-delay: 0.12s; }
.offer-grid.reveal.is-in .offer-card:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .offer-grid.reveal .offer-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero staggered entrance */
.hero-content {
  animation: none;
}

.hero-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-anim:nth-child(1) { animation-delay: 0.05s; }
.hero-anim:nth-child(2) { animation-delay: 0.14s; }
.hero-anim:nth-child(3) { animation-delay: 0.22s; }
.hero-anim:nth-child(4) { animation-delay: 0.3s; }
.hero-anim:nth-child(5) { animation-delay: 0.38s; }
.hero-anim:nth-child(6) { animation-delay: 0.46s; }

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Stronger reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Portfolio stagger */
.work-showcase.reveal > .work,
.work-showcase.reveal > a.work {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-showcase.reveal.is-in > .work,
.work-showcase.reveal.is-in > a.work {
  opacity: 1;
  transform: translateY(0);
}

.work-showcase.reveal.is-in > a.work:hover {
  transform: translateY(-4px);
}

.work-showcase.reveal.is-in > :nth-child(1) { transition-delay: 0.02s; }
.work-showcase.reveal.is-in > :nth-child(2) { transition-delay: 0.08s; }
.work-showcase.reveal.is-in > :nth-child(3) { transition-delay: 0.14s; }
.work-showcase.reveal.is-in > :nth-child(4) { transition-delay: 0.2s; }
.work-showcase.reveal.is-in > :nth-child(5) { transition-delay: 0.26s; }
.work-showcase.reveal.is-in > :nth-child(6) { transition-delay: 0.32s; }
.work-showcase.reveal.is-in > :nth-child(7) { transition-delay: 0.38s; }
.work-showcase.reveal.is-in > :nth-child(8) { transition-delay: 0.44s; }
.work-showcase.reveal.is-in > :nth-child(9) { transition-delay: 0.5s; }
.work-showcase.reveal.is-in > :nth-child(10) { transition-delay: 0.56s; }

/* Step rail stagger */
.step-rail.reveal .step-rail-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-rail.reveal.is-in .step-rail-item {
  opacity: 1;
  transform: none;
}

.step-rail.reveal.is-in .step-rail-item:nth-child(1) { transition-delay: 0.04s; }
.step-rail.reveal.is-in .step-rail-item:nth-child(2) { transition-delay: 0.12s; }
.step-rail.reveal.is-in .step-rail-item:nth-child(3) { transition-delay: 0.2s; }
.step-rail.reveal.is-in .step-rail-item:nth-child(4) { transition-delay: 0.28s; }


/* FAQ open + hover */
.faq details {
  transition: background 0.25s ease, border-color 0.25s ease;
}

.faq details[open] {
  background: rgba(255, 255, 255, 0.55);
}

.faq details summary {
  transition: color 0.2s ease;
}

.faq details summary:hover {
  color: var(--accent);
}

.faq details p {
  animation: faqOpen 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* Buttons + CTA micro-motion */
.btn {
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.offer-cta {
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.offer-card:hover .offer-cta {
  letter-spacing: 0.02em;
}

.hero-tz-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-tz-link:hover {
  transform: translateX(4px);
}

/* Logo / nav subtle */
.logo span {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover span {
  transform: translateY(-1px);
}

.nav a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  .faq details p {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .work-showcase.reveal > .work,
  .work-showcase.reveal > a.work,
  .step-rail.reveal .step-rail-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .hero-tz-link:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero-brand { font-size: 2.8rem; }
  .hero { padding-bottom: 3rem; }
}
