/* Локальные вариативные шрифты — без обращения к Google (latin + cyrillic) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Inter-400-900-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Inter-400-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   ZAUNA • Портфолио
   Тёмная тема по умолчанию, светлая — через data-theme="light"
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* ---------- токены: тёмная тема ---------- */
:root {
  --bg: #070a14;
  --bg-soft: #0b1020;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --stroke: rgba(255, 255, 255, .10);
  --stroke-strong: rgba(255, 255, 255, .18);

  --text: #e9edfb;
  --text-2: #c3cbe4;
  --muted: #8f9bbd;

  --c1: #2bd4ff;
  --c2: #7c5cff;
  --grad: linear-gradient(135deg, var(--c1), var(--c2));

  --shadow: 0 18px 40px rgba(0, 0, 0, .38);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .5);
  --ring: 0 0 0 3px rgba(43, 212, 255, .35);

  --radius: 20px;
  --radius-sm: 14px;
  --topbar-bg: rgba(9, 13, 26, .72);
  --blob-opacity: .55;
  --shot-bg: #0f1526;
}

/* ---------- токены: светлая тема ---------- */
:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, .9);
  --surface-2: #ffffff;
  --stroke: rgba(15, 23, 42, .10);
  --stroke-strong: rgba(15, 23, 42, .18);

  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;

  --c1: #0ea5e9;
  --c2: #6d4aff;

  --shadow: 0 14px 34px rgba(15, 23, 42, .08);
  --shadow-lg: 0 26px 60px rgba(15, 23, 42, .14);
  --ring: 0 0 0 3px rgba(109, 74, 255, .28);

  --topbar-bg: rgba(255, 255, 255, .78);
  --blob-opacity: .38;
  --shot-bg: #eef1f8;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

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

.small {
  font-size: 13px;
}

.center {
  text-align: center;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.emoji {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bg-soft);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- фоновое свечение ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
}

.blob-1 {
  width: 620px;
  height: 620px;
  top: -240px;
  left: -140px;
  background: radial-gradient(circle, #2bd4ff, transparent 66%);
  animation: drift1 26s ease-in-out infinite;
}

.blob-2 {
  width: 680px;
  height: 680px;
  top: -300px;
  right: -180px;
  background: radial-gradient(circle, #7c5cff, transparent 66%);
  animation: drift2 32s ease-in-out infinite;
}

.blob-3 {
  width: 560px;
  height: 560px;
  top: 46%;
  left: 44%;
  background: radial-gradient(circle, #ff5cb0, transparent 68%);
  opacity: calc(var(--blob-opacity) * .5);
  animation: drift1 38s ease-in-out infinite reverse;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--text);
  opacity: .028;
  mask-image: radial-gradient(circle at 50% 12%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 12%, #000, transparent 72%);
}

@keyframes drift1 {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(60px, 50px, 0) scale(1.12);
  }
}

@keyframes drift2 {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-70px, 40px, 0) scale(1.08);
  }
}

/* ---------- шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--topbar-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}

.topbar.is-stuck {
  border-bottom-color: var(--stroke);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  filter: drop-shadow(0 6px 14px rgba(43, 212, 255, .28));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: .04em;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, background .2s;
}

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

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

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: .2s;
}

.icon-btn:hover {
  border-color: var(--stroke-strong);
  background: var(--surface-2);
}

.icon-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-sun {
  display: none;
}

:root[data-theme="light"] .i-sun {
  display: block;
}

:root[data-theme="light"] .i-moon {
  display: none;
}

/* бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, opacity .2s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 4% 18px;
  border-top: 1px solid var(--stroke);
  background: var(--topbar-bg);
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-2);
}

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

.mobile-menu .btn {
  margin-top: 8px;
  color: #06101f;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--grad);
  color: #06101f;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(43, 212, 255, .22);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(124, 92, 255, .32);
}

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

.btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}

.btn:hover .i-arrow {
  transform: translateX(3px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--stroke-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface-2);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

/* ---------- карточка со светящейся рамкой ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--c1), var(--c2) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: .9;
}

/* ---------- герой ---------- */
.hero {
  padding: 84px 0 68px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 0 0 rgba(43, 212, 255, .6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(43, 212, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(43, 212, 255, 0);
  }
}

.hero h1 {
  margin: 22px auto 0;
  max-width: 16ch;
  font-size: clamp(34px, 6.4vw, 62px);
  font-weight: 900;
}

.hero .sub {
  margin: 20px auto 0;
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(15px, 2vw, 18px);
}

.actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin: 44px auto 0;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  padding: 18px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.stat b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.hero-points {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.point {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- секции ---------- */
.section {
  padding: 84px 0;
}

.section-alt {
  position: relative;
  background: linear-gradient(180deg, transparent, var(--surface) 12%, var(--surface) 88%, transparent);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
}

.section-head p {
  margin-top: 14px;
  font-size: 16px;
}

/* ---------- обо мне ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-card {
  padding: 26px 22px;
}

.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(140deg, rgba(43, 212, 255, .18), rgba(124, 92, 255, .14));
  font-size: 22px;
}

.about-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.mini-wrap {
  margin-top: 34px;
  text-align: center;
}

.mini-title {
  font-weight: 800;
  margin-bottom: 14px;
}

.mini-list {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mini-item {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: transform .2s, border-color .2s;
}

.mini-item:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
}

/* ---------- услуги ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service {
  padding: 26px 22px;
}

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

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-top .ico {
  margin-bottom: 0;
}

.service h3 {
  margin: 16px 0 8px;
  font-size: 21px;
}

.service-featured {
  border-color: var(--stroke-strong);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, .12), transparent 60%),
    var(--surface);
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
}

.chip-accent {
  border-color: transparent;
  background: var(--grad);
  color: #06101f;
}

.ticks {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.ticks li {
  position: relative;
  padding-left: 26px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 9px;
  border-left: 2px solid var(--c1);
  border-bottom: 2px solid var(--c1);
  transform: rotate(-45deg);
}

/* ---------- процесс ---------- */
.process {
  position: relative;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--surface);
  transition: transform .2s, border-color .2s;
}

.step:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-strong);
}

.n {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #06101f;
  font-weight: 900;
}

.step b {
  display: block;
}

/* ---------- работы ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}

.work:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.shot {
  position: relative;
  aspect-ratio: 1100 / 640;
  overflow: hidden;
  background: var(--shot-bg);
  border-bottom: 1px solid var(--stroke);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}

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

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 18, .55));
  opacity: 0;
  transition: opacity .3s;
}

.work:hover .shot::after {
  opacity: 1;
}

.shot-open {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #06101f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .3s, transform .3s;
}

.work:hover .shot-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.work-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.work-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.work-top h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.work-lines {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--stroke);
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  color: var(--text-2);
}

.work-lines b {
  color: var(--text);
}

/* карточка «ваш проект» */
.work-special {
  border-style: dashed;
  border-color: var(--stroke-strong);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(124, 92, 255, .16), transparent 70%),
    var(--surface);
}

.special-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 28px 22px;
  text-align: center;
  align-items: center;
}

.special-emoji {
  font-size: 34px;
}

.special-inner .work-lines {
  width: 100%;
  text-align: left;
}

.special-cta {
  margin-top: 14px;
  font-weight: 800;
  font-size: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- контакты ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 28px;
  border-radius: 28px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 520px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(43, 212, 255, .35), transparent 68%);
  filter: blur(50px);
  pointer-events: none;
}

.cta-panel h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
  max-width: 18ch;
  margin: 0 auto;
}

.cta-panel p {
  margin: 16px auto 0;
  max-width: 54ch;
}

.contact-actions {
  position: relative;
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  text-decoration: none;
}

.contact-card:hover {
  transform: translateY(-3px);
}

.contact-card .ico {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.contact-card b {
  display: block;
  font-size: 15px;
}

.contact-card .small {
  color: var(--muted);
  word-break: break-word;
}

.checklist {
  margin: 20px auto 0;
  max-width: 720px;
  padding: 26px 24px;
  text-align: center;
}

.checklist .ticks {
  display: grid;
  width: fit-content;
  text-align: left;
  margin: 0 auto 22px;
}

/* ---------- подвал ---------- */
.footer {
  padding: 30px 0 40px;
  border-top: 1px solid var(--stroke);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

/* ---------- кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}

.to-top svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-strong);
}

.to-top[hidden] {
  display: none;
}

/* ---------- появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.22, .8, .3, 1) var(--d, 0ms);
}

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

/* ---------- адаптив ---------- */
@media (max-width: 980px) {

  .about-grid,
  .services-grid,
  .works-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .mobile-menu {
    display: flex;
  }

  .mobile-menu[hidden] {
    display: none;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 62px 0;
  }

  .about-grid,
  .services-grid,
  .works-grid,
  .contact-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-align: left;
  }

  .stat b {
    font-size: 26px;
  }

  .actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .cta-panel {
    padding: 34px 20px;
  }

  .contact-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .brand-sub {
    display: none;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

/* ЦЕНЫ В КАРТОЧКАХ УСЛУГ */
.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 4px 0 12px;
  line-height: 1.1;
}
.price-from {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.price-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.price-cur {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-2);
}
.price-note {
  margin-top: 18px;
  max-width: 62ch;
  margin-inline: auto;
}
@media (max-width: 520px) {
  .price-num { font-size: 26px; }
}

/* СТРОКА О РАЗМЕЩЕНИИ В КАРТОЧКЕ УСЛУГИ */
.host-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--stroke);
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.host-note b {
  color: var(--text-2);
  font-weight: 700;
  white-space: nowrap;
}
