/* =========================================================================
   Сайт-визитка Завтура Павла — веб-разработка для бизнеса
   Структура: токены → база → шапка → hero → секции → футер → адаптив
   ========================================================================= */

/* ------------------------------ Токены ------------------------------ */
:root {
  color-scheme: light;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --bg: #f7f8fc;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --header-bg: rgba(247, 248, 252, 0.84);

  --text: #0f172a;
  --text-muted: #536079;
  --text-soft: #64708a;

  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);

  --accent-1: #2563eb;
  --accent-2: #0f766e;
  --accent: #2563eb;
  --accent-text: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --contact-gradient: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 52%, #0f766e 100%);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -20px rgba(15, 23, 42, 0.24);
  --shadow-lg: 0 34px 80px -38px rgba(15, 23, 42, 0.38);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --header-h: 72px;
  --container: 1160px;
  --section-pad: clamp(4.2rem, 8.5vw, 7rem);

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

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a0f1c;
  --bg-soft: #0e1626;
  --surface: #111a2e;
  --surface-2: #162138;
  --header-bg: rgba(10, 15, 28, 0.82);

  --text: #eef2fa;
  --text-muted: #a6b1c9;
  --text-soft: #8490a9;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --accent-1: #60a5fa;
  --accent-2: #2dd4bf;
  --accent: #60a5fa;
  --accent-text: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.14);
  --gradient: linear-gradient(120deg, #60a5fa, #2dd4bf);
  --contact-gradient: linear-gradient(135deg, #1e3a8a 0%, #155e75 55%, #134e4a 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 34px -20px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 34px 80px -34px rgba(0, 0, 0, 0.8);
}

/* ------------------------------- База ------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, p, dl, dd, figure {
  margin: 0;
}

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

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

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

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

svg {
  display: block;
}

::selection {
  background: var(--accent-1);
  color: #fff;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ------------------------------ Кнопки ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
}

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

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

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 14px 34px -18px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px -18px rgba(37, 99, 235, 0.8);
}

:root[data-theme="dark"] .btn-primary {
  color: #081120;
  box-shadow: 0 16px 36px -18px rgba(45, 212, 191, 0.5);
}

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

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

.btn-light {
  color: #1e3a8a;
  background: #fff;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.5);
}

.btn-light:hover {
  background: #f0f4ff;
}

.btn-outline-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.58);
}

/* ------------------------------- Шапка ------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
  object-position: center 42%;
  box-shadow: 0 0 0 1px var(--border), 0 10px 22px -12px rgba(15, 23, 42, 0.45);
  transition: transform 0.2s var(--ease);
}

.brand:hover .brand-avatar {
  transform: scale(1.04);
}

.brand-text {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-text span {
  display: none;
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.header-cta {
  display: none;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px rgba(37, 99, 235, 0.8);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

:root[data-theme="dark"] .header-cta {
  color: #081120;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(37, 99, 235, 0.9);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Бургер */
.burger {
  position: relative;
  display: block;
  width: 18px;
  height: 13px;
}

.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5.5px; }
.burger span:nth-child(3) { top: 11px; }

.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Навигация: мобильная панель */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  max-height: calc(100dvh - var(--header-h));
  padding: 1.1rem clamp(1.1rem, 4vw, 2rem) 1.6rem;
  overflow-y: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.site-nav ul {
  display: grid;
  gap: 0.1rem;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.25rem;
  font-size: 1.02rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.site-nav li:last-child a {
  border-bottom: 0;
}

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

/* ------------------------------- Hero ------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.8rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(56% 52% at 88% 4%, var(--accent-soft), transparent 70%),
    radial-gradient(42% 42% at 6% 96%, rgba(15, 118, 110, 0.08), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(65% 65% at 50% 30%, #000 0%, transparent 80%);
  mask-image: radial-gradient(65% 65% at 50% 30%, #000 0%, transparent 80%);
  opacity: 0.5;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.orb-1 {
  width: min(460px, 72vw);
  aspect-ratio: 1;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.5), transparent 70%);
  opacity: 0.6;
}

.orb-2 {
  width: min(360px, 60vw);
  aspect-ratio: 1;
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.32), transparent 70%);
  opacity: 0.45;
}

.orb-3 {
  width: 260px;
  aspect-ratio: 1;
  top: 46%;
  left: 44%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.6rem, 6vw, 4rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: var(--gradient);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.06); }
}

.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 7.4vw, 4.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-hi {
  display: block;
  margin-bottom: 0.4rem;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.hero-name {
  display: inline-block;
  padding-bottom: 0.06em;
  color: var(--text);
}

.hero-role {
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-lead {
  margin-top: 1.3rem;
  max-width: 32ch;
  font-size: clamp(1.1rem, 2.2vw, 1.38rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 0.9rem;
  max-width: 56ch;
  font-size: clamp(0.98rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-muted);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 570px;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.1rem, 2.4vw, 1.38rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-stats span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Hero: витрина работ */
.hero-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding-bottom: 2.2rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% -6% -6%;
  z-index: -1;
  border-radius: 48px;
  background: var(--gradient);
  filter: blur(60px);
  opacity: 0.14;
}

.browser-card {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: inline-flex;
  gap: 0.3rem;
  flex: none;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  min-width: 0;
  margin-left: 0.3rem;
  padding: 0.24rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.68rem;
  color: var(--text-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-shot {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-2);
}

.floating-shot {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 46%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.floating-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top center;
}

.floating-shot figcaption {
  padding: 0.45rem 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ------------------------- Полоса доверия ------------------------- */
.trust-strip {
  padding: 1rem 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.trust-list .icon {
  width: 16px;
  height: 16px;
  margin-top: 0.08rem;
  color: var(--accent-text);
  stroke-width: 2.2;
}

/* ------------------------------ Секции ------------------------------ */
.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 8%, var(--bg-soft) 92%, var(--bg) 100%);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(1.9rem, 4.5vw, 3rem);
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 1rem;
  max-width: 64ch;
  font-size: clamp(0.99rem, 1.4vw, 1.06rem);
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------------------------- Обо мне ------------------------------ */
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.about-text {
  max-width: 64ch;
}

.about-text p {
  margin-top: 1rem;
  font-size: clamp(0.98rem, 1.3vw, 1.03rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.about-text p:first-child {
  margin-top: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
}

.about-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient);
}

.about-card-title {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.facts {
  display: grid;
  gap: 0.85rem;
}

.facts > div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.facts dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.facts dd {
  margin-top: 0.18rem;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}

.about-note {
  margin-top: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-soft);
}

/* ----------------------------- Услуги ------------------------------ */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 1.7rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}

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

.service-card::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  bottom: 0;
  left: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card .icon-badge {
  margin-bottom: 1.05rem;
}

.service-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  color: var(--accent-text);
  background: var(--accent-soft);
}

.icon-badge .icon {
  width: 22px;
  height: 22px;
}

.services-note {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.services-note a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------------------- Работы ------------------------------ */
.projects-grid {
  display: grid;
  gap: 1.4rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}

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

.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: var(--surface-2);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}

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

.project-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
}

.project-open {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.project-open .icon {
  width: 18px;
  height: 18px;
}

.project-card:hover .project-open {
  opacity: 1;
  transform: none;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.15rem, 2.4vw, 1.5rem);
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-title {
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.project-type {
  flex: none;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.project-desc {
  flex: 1;
  font-size: 0.91rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags li {
  padding: 0.24rem 0.52rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-soft);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-top: 0.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-text);
}

.project-link .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.25s var(--ease);
}

.project-link:hover .icon {
  transform: translate(3px, -3px);
}

.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* -------------------------- Как проходит работа -------------------- */
.process-grid {
  display: grid;
  gap: 1.25rem;
}

.process-step {
  position: relative;
  padding: clamp(1.4rem, 3vw, 1.7rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}

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

.process-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.process-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

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

.process-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.6rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.process-cta p {
  max-width: 62ch;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------- Технологии ---------------------------- */
.skills-grid {
  display: grid;
  gap: 1.25rem;
}

.skill-card {
  padding: clamp(1.4rem, 3vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}

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

.skill-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.skill-head h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

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

.tags li {
  padding: 0.36rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tags li:hover {
  color: var(--accent-text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.skill-note {
  margin-top: 1.05rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ----------------------------- Контакты ---------------------------- */
.contact-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2.5rem;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--contact-gradient);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 58% at 88% 8%, rgba(255, 255, 255, 0.16), transparent 68%),
    radial-gradient(45% 45% at 6% 100%, rgba(45, 212, 191, 0.2), transparent 66%);
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 20%, #000, transparent 85%);
  mask-image: radial-gradient(80% 80% at 70% 20%, #000, transparent 85%);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow--light::before {
  background: rgba(255, 255, 255, 0.6);
}

.contact-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.contact-lead {
  margin-top: 1rem;
  max-width: 48ch;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.contact-hint {
  margin-top: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.copy-link:hover {
  color: #fff;
}

.copy-link .icon {
  width: 15px;
  height: 15px;
}

.copy-link.is-copied {
  color: #fff;
  text-decoration-style: solid;
}

.contact-note {
  min-height: 1.3em;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.contact-item:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.17);
  transform: translateX(3px);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.contact-icon .icon {
  width: 19px;
  height: 19px;
}

.contact-text {
  display: grid;
  min-width: 0;
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-arrow {
  width: 18px;
  height: 18px;
  flex: none;
  margin-left: auto;
  opacity: 0.55;
  transition: transform 0.25s, opacity 0.25s;
}

.contact-item:hover .contact-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ------------------------------- Футер ----------------------------- */
.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.brand-avatar--sm {
  width: 32px;
  height: 32px;
  border-width: 1px;
}

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

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.to-top .icon {
  width: 16px;
  height: 16px;
}

/* --------------------------- Анимация появления -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

[data-delay="1"] { --delay: 0.07s; }
[data-delay="2"] { --delay: 0.14s; }
[data-delay="3"] { --delay: 0.21s; }
[data-delay="4"] { --delay: 0.28s; }
[data-delay="5"] { --delay: 0.35s; }
[data-delay="6"] { --delay: 0.4s; }

/* ------------------------------- Адаптив --------------------------- */
@media (min-width: 480px) {
  .brand-text span {
    display: block;
  }
}

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

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

@media (min-width: 780px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 840px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.48rem 0.72rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 0;
    border-radius: var(--radius-pill);
    transition: color 0.2s, background 0.2s;
  }

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

  .site-nav a.is-active {
    color: var(--text);
    background: var(--accent-soft);
  }

  .trust-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }

  .contact-panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.04fr 0.96fr;
  }
}

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

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

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

@media (min-width: 1280px) {
  :root {
    --container: 1200px;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    justify-content: flex-start;
  }

  .footer-note {
    order: 3;
    width: 100%;
  }

  .hero-visual {
    padding-bottom: 1.8rem;
  }

  .floating-shot {
    width: 48%;
  }

  .project-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 420px) {
  .brand-text span {
    display: none;
  }

  .hero-stats {
    gap: 0.6rem;
  }

  .hero-stats span {
    font-size: 0.7rem;
  }
}

/* --------------------------- Доступность: motion ------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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

  .status-dot {
    animation: none;
  }
}
