/* ============================================================
   PCH Lab — главная страница
   Премиальный тёплый стиль: многослойные градиенты, свечения,
   glassmorphism, выразительная типографика (warm modern premium)
   ============================================================ */

:root {
  --bg: #faf7f3;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --bg-elevated: #fff4ec;
  --border: rgba(41, 37, 36, 0.1);
  --border-strong: rgba(232, 93, 42, 0.28);
  --text: #201a16;
  --text-muted: #5c5249;
  --text-dim: #a39a90;
  --accent: #e85d2a;
  --accent-strong: #ff8352;
  --accent-foreground: #ffffff;
  --accent-glow: rgba(232, 93, 42, 0.18);
  --accent-glow-strong: rgba(255, 131, 82, 0.35);
  --shadow-soft: 0 24px 60px -30px rgba(41, 37, 36, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(
      1200px 600px at 12% -10%,
      rgba(255, 178, 132, 0.28),
      transparent 60%
    ),
    radial-gradient(
      1000px 560px at 100% 8%,
      rgba(255, 214, 168, 0.35),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 50% 115%,
      rgba(255, 163, 110, 0.2),
      transparent 60%
    );
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.mono-label {
  margin: 0;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px -8px rgba(41, 37, 36, 0.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.accent-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: rgba(250, 247, 243, 0.85);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 20px -8px rgba(232, 93, 42, 0.8);
  color: #ffffff;
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.brand-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

/* ---------- Подвал ---------- */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Герой ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: -10% -20% auto;
  z-index: -1;
  height: 140%;
  background:
    radial-gradient(
      720px 420px at 22% 18%,
      rgba(255, 173, 122, 0.45),
      transparent 62%
    ),
    radial-gradient(
      620px 400px at 78% 24%,
      rgba(232, 93, 42, 0.32),
      transparent 60%
    ),
    radial-gradient(
      520px 380px at 55% 4%,
      rgba(255, 214, 168, 0.5),
      transparent 65%
    );
  filter: blur(6px);
}

.hero-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(41, 37, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 37, 36, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 85% 70% at 50% 30%,
    #000 20%,
    transparent 80%
  );
  mask-image: radial-gradient(
    ellipse 85% 70% at 50% 30%,
    #000 20%,
    transparent 80%
  );
}

.hero-dots {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: radial-gradient(
    circle,
    rgba(232, 93, 42, 0.28) 1.5px,
    transparent 1.5px
  );
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 82% 22%,
    #000,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 82% 22%,
    #000,
    transparent 75%
  );
}

.hero-orb {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.8;
}

.hero-orb--peach {
  top: 40px;
  right: 6%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 197, 143, 0.7),
    rgba(255, 131, 82, 0.12) 60%,
    transparent
  );
  animation: float-a 14s ease-in-out infinite;
}

.hero-orb--coral {
  bottom: -60px;
  left: 14%;
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(232, 93, 42, 0.5),
    transparent 65%
  );
  animation: float-b 18s ease-in-out infinite;
}

.hero-ring {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(232, 93, 42, 0.18);
  background: conic-gradient(
    from 40deg,
    transparent 0deg,
    rgba(255, 131, 82, 0.35) 60deg,
    transparent 130deg,
    transparent 360deg
  );
  -webkit-mask-image: radial-gradient(
    circle,
    transparent 62%,
    #000 63%,
    #000 100%
  );
  mask-image: radial-gradient(circle, transparent 62%, #000 63%, #000 100%);
  animation: spin 28s linear infinite;
}

.hero-lines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
}

.hero-lines::before,
.hero-lines::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(232, 93, 42, 0.35),
    transparent
  );
}

.hero-lines::before {
  left: 12%;
}

.hero-lines::after {
  right: 12%;
}

.hero-inner {
  position: relative;
  padding-top: 84px;
  padding-bottom: 96px;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-inner {
    padding-top: 120px;
    padding-bottom: 136px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 93, 42, 0.3);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  box-shadow:
    0 10px 30px -16px rgba(232, 93, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-title {
  margin: 0;
  font-size: clamp(44px, 10vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  background: linear-gradient(
    180deg,
    #1c150f 0%,
    #3a2a1c 55%,
    var(--accent) 140%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 30px 60px -30px rgba(232, 93, 42, 0.5);
}

.hero-subtitle {
  margin: 26px auto 0;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: balance;
}

.hero-subtitle-line {
  display: block;
}

.hero-subtitle-line--second {
  margin-top: 6px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-stats {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-stat {
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -24px rgba(41, 37, 36, 0.35);
  text-align: left;
}

.hero-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-stat-label {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-dim);
}

.hero-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg) 90%);
}

/* ---------- Летающие надписи PCH Lab ---------- */

.float-label {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(232, 93, 42, 0.28);
  white-space: nowrap;
  user-select: none;
  animation: float-b 13s ease-in-out infinite;
}

.float-label--l {
  left: 2.5%;
  top: 22%;
  animation-name: float-a;
}

.float-label--r {
  right: 2.5%;
  bottom: 16%;
}

.float-label--tr {
  right: 4%;
  top: 26%;
  animation-name: float-a;
}

.float-label--bl {
  left: 4%;
  bottom: 18%;
}

.float-label--delay {
  animation-delay: 1.2s;
}

@media (max-width: 720px) {
  .float-label {
    display: none;
  }
}

/* ---------- Кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-foreground);
  box-shadow:
    0 16px 34px -14px rgba(232, 93, 42, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 44px -14px rgba(232, 93, 42, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.04);
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-outline {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: 0 8px 24px -16px rgba(41, 37, 36, 0.4);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: var(--bg-elevated);
  border-color: rgba(232, 93, 42, 0.5);
  box-shadow: 0 18px 38px -18px rgba(232, 93, 42, 0.5);
}

/* ---------- Секции ---------- */

.section {
  position: relative;
  isolation: isolate;
  padding-top: 72px;
  padding-bottom: 72px;
  scroll-margin-top: 80px;
}

.section--tight {
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (min-width: 640px) {
  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .section--tight {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.section-title {
  margin: 14px 0 0;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-lead {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: 17px;
  color: var(--text-muted);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(232, 93, 42, 0.14),
    rgba(255, 131, 82, 0.08)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #c2410c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.count-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 8px var(--accent-glow-strong);
}

/* ---------- Витрина работ ---------- */

.avito-footer-link {
  margin: 34px 0 0;
  text-align: center;
}

.avito-footer-link a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.avito-footer-link a svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.avito-footer-link a:hover {
  color: #c2410c;
}

.avito-footer-link a:hover svg {
  transform: translate(2px, -2px);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 44px -28px rgba(41, 37, 36, 0.45);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(
    320px 180px at var(--mx, 50%) var(--my, 0%),
    rgba(255, 131, 82, 0.18),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow:
    0 30px 60px -24px rgba(41, 37, 36, 0.5),
    0 0 0 1px rgba(232, 93, 42, 0.12),
    0 0 42px -12px var(--accent-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 188px;
  background:
    radial-gradient(
      120% 120% at 20% 0%,
      rgba(255, 255, 255, 0.9),
      transparent 50%
    ),
    linear-gradient(135deg, #fde4d3, #f9cfb8 60%, #fbe7db);
  color: rgba(232, 93, 42, 0.55);
  overflow: hidden;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    200px 120px at 80% 20%,
    rgba(255, 255, 255, 0.7),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-media::after {
  opacity: 1;
}

.card-icon {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 10px 20px rgba(232, 93, 42, 0.35));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover .card-icon {
  transform: scale(1.12) rotate(-4deg);
}

.material-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -10px rgba(41, 37, 36, 0.35);
  color: #44403c;
  font-size: 12px;
  font-weight: 500;
}

.card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

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

.card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s ease;
}

.card:hover .card-title {
  color: #c2410c;
}

.card-price {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.card-desc {
  margin: 0;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Карточка магазина на Авито ---------- */

.avito-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .avito-card {
    flex-direction: row;
    align-items: stretch;
  }
}

.avito-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  background:
    radial-gradient(
      120% 120% at 20% 0%,
      rgba(255, 255, 255, 0.9),
      transparent 50%
    ),
    linear-gradient(135deg, #fde4d3, #f9cfb8 60%, #fbe7db);
  color: rgba(232, 93, 42, 0.55);
  overflow: hidden;
}

@media (min-width: 640px) {
  .avito-media {
    flex: 0 0 300px;
    min-height: auto;
  }
}

.avito-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 12px 24px rgba(232, 93, 42, 0.4));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.avito-card:hover .avito-icon {
  transform: scale(1.1) rotate(-4deg);
}

.avito-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px 26px;
  flex: 1;
}

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

.avito-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s ease;
}

.avito-card:hover .avito-title {
  color: #c2410c;
}

.avito-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow:
    0 12px 26px -12px rgba(232, 93, 42, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: var(--accent-foreground);
  transition: transform 0.3s ease;
}

.avito-arrow svg {
  width: 20px;
  height: 20px;
}

.avito-card:hover .avito-arrow {
  transform: translateX(4px);
}

.avito-desc {
  margin: 0;
  max-width: 520px;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Кто я ---------- */

.about-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  padding: 28px;
  box-shadow: 0 18px 44px -30px rgba(41, 37, 36, 0.4);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 131, 82, 0.25),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -26px rgba(41, 37, 36, 0.5);
}

.about-card:hover::before {
  opacity: 1;
}

.about-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  padding: 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow:
    0 12px 26px -12px rgba(232, 93, 42, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 52px;
  height: 52px;
}

.about-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-title {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.about-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Контакты ---------- */

.contact-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 16px 40px -30px rgba(41, 37, 36, 0.4);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--accent), var(--accent-strong));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 54px -26px rgba(232, 93, 42, 0.55);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(232, 93, 42, 0.16),
    rgba(255, 131, 82, 0.1)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 22px -12px rgba(232, 93, 42, 0.6);
  color: var(--accent-strong);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.08) rotate(-4deg);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.contact-value {
  margin-top: 4px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-hint {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Появление при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}
.reveal-delay-5 {
  transition-delay: 0.4s;
}

/* ---------- Анимации ---------- */

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -30px) scale(1.08);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 26px) scale(1.06);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Страница 404 ---------- */

.nf {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 72px;
  padding-bottom: 96px;
}

@media (min-width: 640px) {
  .nf {
    padding-top: 96px;
    padding-bottom: 120px;
  }
}

.nf-glow {
  pointer-events: none;
  position: absolute;
  inset: -10% -20% auto;
  z-index: -1;
  height: 130%;
  background:
    radial-gradient(
      720px 420px at 25% 20%,
      rgba(255, 173, 122, 0.4),
      transparent 62%
    ),
    radial-gradient(
      640px 420px at 78% 26%,
      rgba(232, 93, 42, 0.3),
      transparent 60%
    ),
    radial-gradient(
      540px 400px at 55% 4%,
      rgba(255, 214, 168, 0.5),
      transparent 65%
    );
  filter: blur(6px);
}

.nf-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(41, 37, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 37, 36, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 75% at 50% 40%,
    #000 20%,
    transparent 80%
  );
  mask-image: radial-gradient(
    ellipse 90% 75% at 50% 40%,
    #000 20%,
    transparent 80%
  );
}

.nf-dots {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image: radial-gradient(
    circle,
    rgba(232, 93, 42, 0.26) 1.5px,
    transparent 1.5px
  );
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(
    ellipse 60% 55% at 80% 30%,
    #000,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 60% 55% at 80% 30%,
    #000,
    transparent 75%
  );
}

.nf-orb {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.8;
}

.nf-orb--peach {
  top: 60px;
  left: -70px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle at 40% 30%,
    rgba(255, 197, 143, 0.7),
    rgba(255, 131, 82, 0.12) 60%,
    transparent
  );
  animation: float-a 14s ease-in-out infinite;
}

.nf-orb--coral {
  bottom: -40px;
  right: 6%;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(232, 93, 42, 0.5),
    transparent 65%
  );
  animation: float-b 18s ease-in-out infinite;
}

.nf-ring {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(232, 93, 42, 0.16);
  background: conic-gradient(
    from 40deg,
    transparent 0deg,
    rgba(255, 131, 82, 0.28) 60deg,
    transparent 130deg,
    transparent 360deg
  );
  -webkit-mask-image: radial-gradient(
    circle,
    transparent 60%,
    #000 61%,
    #000 100%
  );
  mask-image: radial-gradient(circle, transparent 60%, #000 61%, #000 100%);
  animation: spin 34s linear infinite;
}

.nf-lines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
}

.nf-lines::before,
.nf-lines::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(232, 93, 42, 0.32),
    transparent
  );
}

.nf-lines::before {
  left: 16%;
}

.nf-lines::after {
  right: 16%;
}

.nf-inner {
  position: relative;
  text-align: center;
}

.nf-card {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 46px 26px 50px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  box-shadow:
    0 40px 90px -40px rgba(41, 37, 36, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 60px -24px var(--accent-glow);
  overflow: hidden;
}

.nf-card::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(255, 131, 82, 0.28),
    transparent 70%
  );
  pointer-events: none;
}

@media (min-width: 640px) {
  .nf-card {
    padding: 58px 48px 62px;
  }
}

.nf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 93, 42, 0.3);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  box-shadow:
    0 10px 30px -16px rgba(232, 93, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.nf-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.nf-title {
  margin: 0;
  font-size: clamp(88px, 24vw, 200px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(
    180deg,
    #1c150f 0%,
    #3a2a1c 55%,
    var(--accent) 135%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 40px 70px -30px rgba(232, 93, 42, 0.55);
}

.nf-heading {
  margin: 22px auto 0;
  max-width: 460px;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.nf-subtitle {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: balance;
}

.nf-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.nf-glitch {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(232, 93, 42, 0.4);
  animation: float-b 12s ease-in-out infinite;
}

.nf-glitch--left {
  left: 5%;
  top: 18%;
}

.nf-glitch--right {
  right: 5%;
  bottom: 12%;
  animation-name: float-a;
}

@media (max-width: 720px) {
  .nf-glitch {
    display: none;
  }
}

.nf-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  z-index: 3;
  background: linear-gradient(to bottom, transparent, var(--bg) 90%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .hero-orb,
  .hero-ring,
  .hero-eyebrow-dot,
  .nf-orb,
  .nf-ring,
  .nf-eyebrow-dot,
  .nf-glitch,
  .float-label {
    animation: none;
  }
}
