:root {
  --bg: #0f172a;
  --text: #ffffff;
  --card: #1e293b;
}
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
[data-theme="light"] {
  --bg: #ffffff;
  --text: #0f172a;
  --card: #f1f5f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
  line-height: 25px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, #ff7a18, #1f8a70);
}

h1 {
  font-size: 56px;
}

h2 {
  margin-bottom: 20px;
}

.btn {
  padding: 12px 20px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  text-decoration: none;
}

.btn.small {
  padding: 6px 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  transition: 0.3s;
}

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

/* animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
  margin-top: 50px;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.stack-item {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stack-item:hover {
  transform: translateY(-6px);
}

.stack-item h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.stack-item p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

[data-theme="light"] .nav {
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* логотип */
.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* правая часть */
.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* кнопки */
.btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

/* прозрачная кнопка */
.btn.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.12);
}

/* основная кнопка */
.btn.primary {
  background: linear-gradient(135deg, #ff7a18, #1f8a70);
  color: #fff;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-switch .icon {
  font-size: 14px;
  opacity: 0.7;
}

/* сам переключатель */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  transition: 0.3s;
}

/* кружок */
.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

/* включено */
.switch input:checked + .slider {
  background: linear-gradient(135deg, #1c4aca, #112047);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}
.btn.support {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.25s ease;
}

/* hover — subtle, как у Apple */
.btn.support:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* светлая тема */
[data-theme="light"] .btn.support {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .btn.support:hover {
  background: rgba(0, 0, 0, 0.08);
}
.contacts {
  display: flex;
  gap: 16px;
  margin-right: 20px;
}

.contacts a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.2s ease;
  position: relative;
}

/* subtle hover как у SaaS */
.contacts a:hover {
  opacity: 1;
}

/* underline эффект */
.contacts a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.contacts a:hover::after {
  width: 100%;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 20px 120px;
  background:
  radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 35%),
  linear-gradient(180deg, #07111f 0%, #081223 45%, #091427 100%);
}

[data-theme="light"] .hero {
  background:
  radial-gradient(circle at top, rgba(59,130,246,0.08), transparent 35%),
  linear-gradient(180deg, #f8fbff 0%, #eef4ff 45%, #f7faff 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 28px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

[data-theme="light"] .hero-badge {
  color: rgba(15,23,42,0.82);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.hero-title {
  margin: 0 auto 24px;
  max-width: 1200px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #f8fbff;
  text-wrap: balance;
}

.hero-title span {
  display: block;
  margin-top: 10px;
  background: linear-gradient(90deg, #9ec5ff 0%, #d3b8ff 45%, #8df1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .hero-title {
  color: #0f172a;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  text-wrap: balance;
}

[data-theme="light"] .hero-subtitle {
  color: rgba(15,23,42,0.72);
}

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

.hero-btn {
  min-width: 170px;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-btn-primary {
  color: #08111f;
  background: linear-gradient(135deg, #ffffff 0%, #dff2ff 100%);
  box-shadow: 0 18px 40px rgba(121, 193, 255, 0.22);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(121, 193, 255, 0.28);
}

.hero-btn-secondary {
  color: #f5f9ff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
}

[data-theme="light"] .hero-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  box-shadow: 0 18px 40px rgba(29, 78, 216, 0.18);
}

[data-theme="light"] .hero-btn-secondary {
  color: #0f172a;
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(15,23,42,0.08);
}

[data-theme="light"] .hero-btn-secondary:hover {
  background: rgba(15,23,42,0.08);
}

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

.hero-stat {
  padding: 18px 18px;
  border-radius: 20px;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.hero-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #f8fbff;
}

.hero-stat span {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.62);
}

[data-theme="light"] .hero-stat {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 16px 40px rgba(15,23,42,0.07);
}

[data-theme="light"] .hero-stat strong {
  color: #0f172a;
}

[data-theme="light"] .hero-stat span {
  color: rgba(15,23,42,0.62);
}

/* glow / background elements */
.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.orb-1 {
  width: 420px;
  height: 420px;
  left: -80px;
  top: 40px;
  background: rgba(56, 189, 248, 0.22);
}

.orb-2 {
  width: 380px;
  height: 380px;
  right: -40px;
  top: 80px;
  background: rgba(168, 85, 247, 0.22);
}

.orb-3 {
  width: 320px;
  height: 320px;
  left: 50%;
  bottom: -100px;
  transform: translateX(-50%);
  background: rgba(59, 130, 246, 0.18);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  pointer-events: none;
  background-image:
  radial-gradient(circle at 20% 20%, #fff 0.6px, transparent 0.7px),
  radial-gradient(circle at 80% 30%, #fff 0.6px, transparent 0.7px),
  radial-gradient(circle at 40% 70%, #fff 0.6px, transparent 0.7px),
  radial-gradient(circle at 70% 80%, #fff 0.6px, transparent 0.7px);
  background-size: 180px 180px;
}

/* responsive */
@media (max-width: 900px) {
  .hero {
    padding: 120px 20px 90px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
  }

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

@media (max-width: 640px) {
  .hero-title {
    font-size: 40px;
    line-height: 1.02;
  }

  .hero-badge {
    font-size: 12px;
    padding: 9px 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
  }
}
.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

[data-theme="light"] .section-kicker {
  color: rgba(15,23,42,0.72);
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.07);
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.68);
}

[data-theme="light"] .section-subtitle {
  color: rgba(15,23,42,0.66);
}

.projects {
  position: relative;
  overflow: hidden;
}

.projects-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.projects-track {
  display: flex;
  gap: 22px;
  width: max-content;
  align-items: stretch;
  will-change: transform;
}

.project-card {
  width: 460px;
  min-height: 340px;
  padding: 26px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  background:
  linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
  0 24px 60px rgba(0,0,0,0.22),
  inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
  transform 0.35s ease,
  border-color 0.35s ease,
  box-shadow 0.35s ease,
  background 0.35s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
  radial-gradient(circle at top right, rgba(120, 180, 255, 0.18), transparent 34%),
  radial-gradient(circle at bottom left, rgba(170, 120, 255, 0.14), transparent 30%);
  opacity: 0.9;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
  0 30px 80px rgba(0,0,0,0.30),
  inset 0 1px 0 rgba(255,255,255,0.08);
}

[data-theme="light"] .project-card {
  background:
  linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(247,250,255,0.92) 100%);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow:
  0 20px 50px rgba(15,23,42,0.08),
  inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-theme="light"] .project-card:hover {
  border-color: rgba(15,23,42,0.14);
  box-shadow:
  0 28px 70px rgba(15,23,42,0.12),
  inset 0 1px 0 rgba(255,255,255,1);
}

.project-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.project-type,
.project-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-type {
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.project-status {
  color: #dff7ff;
  background: rgba(66, 153, 225, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.16);
}

[data-theme="light"] .project-type {
  color: rgba(15,23,42,0.72);
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.06);
}

[data-theme="light"] .project-status {
  color: #0f172a;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.12);
}

.project-title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.project-text {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.70);
}

[data-theme="light"] .project-text {
  color: rgba(15,23,42,0.68);
}

.project-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

[data-theme="light"] .project-tags span {
  color: rgba(15,23,42,0.78);
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.06);
}

.project-actions {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #cfe6ff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.project-link::after {
  content: "→";
  transition: transform 0.25s ease;
}

.project-link:hover {
  transform: translateX(2px);
  opacity: 0.95;
}

.project-link:hover::after {
  transform: translateX(3px);
}

[data-theme="light"] .project-link {
  color: #1d4ed8;
}

@media (max-width: 900px) {
  .project-card {
    width: 320px;
    min-height: 320px;
    padding: 22px;
  }

  .project-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .section-head {
    margin-bottom: 24px;
  }

  .projects-marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
  }

  .projects-track {
    width: auto;
  }

  .project-card {
    width: 290px;
    min-height: 310px;
  }

  .project-card-top {
    flex-wrap: wrap;
  }
}
.projects-marquee {
  cursor: grab;
}

.projects-marquee.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.projects-track,
.project-card {
  user-select: none;
}
.about-premium {
  padding-top: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.about-title {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.about-title span {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, #9ec5ff 0%, #d3b8ff 45%, #8df1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-lead {
  margin: 0 0 26px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
}

[data-theme="light"] .about-lead {
  color: rgba(15,23,42,0.70);
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-point {
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.about-point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.about-point span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.66);
}

[data-theme="light"] .about-point {
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.06);
}

[data-theme="light"] .about-point span {
  color: rgba(15,23,42,0.64);
}

.about-card {
  padding: 28px 28px;
  border-radius: 28px;
  background:
  linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
  0 24px 60px rgba(0,0,0,0.20),
  inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.about-card p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,0.74);
}

.about-card p:last-child {
  margin-bottom: 0;
}

[data-theme="light"] .about-card {
  background:
  linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(247,250,255,0.92) 100%);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow:
  0 18px 40px rgba(15,23,42,0.06),
  inset 0 1px 0 rgba(255,255,255,0.90);
}

[data-theme="light"] .about-card p {
  color: rgba(15,23,42,0.72);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .about-card {
    padding: 22px;
    border-radius: 22px;
  }

  .about-card p {
    font-size: 15px;
    line-height: 1.8;
  }
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
  radial-gradient(circle at 80% 20%, rgba(120,180,255,0.18), transparent 40%),
  radial-gradient(circle at 20% 100%, rgba(170,120,255,0.14), transparent 40%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
}
.project-card:hover .project-title {
  transform: translateY(-2px);
}

.project-card:hover .project-text {
  transform: translateY(-2px);
}

.project-card:hover .project-tags {
  transform: translateY(-2px);
}

.project-title,
.project-text,
.project-tags {
  transition: transform 0.3s ease;
}
.project-status {
  position: relative;
  padding-left: 20px;
}

.project-status::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #cfe6ff;
  text-decoration: none;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.project-link:hover {
  opacity: 1;
  transform: translateX(4px);
}
.nav {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(10, 18, 32, 0.62);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
  0 20px 50px rgba(0,0,0,0.22),
  inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="light"] .nav-shell {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow:
  0 18px 40px rgba(15,23,42,0.08),
  inset 0 1px 0 rgba(255,255,255,0.9);
}

.nav-brand {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
  opacity: 0.7;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition:
  background 0.25s ease,
  transform 0.25s ease,
  box-shadow 0.25s ease;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

[data-theme="light"] .nav-cta {
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.07);
}

[data-theme="light"] .nav-cta:hover {
  background: rgba(15,23,42,0.07);
}
@media (max-width: 1180px) {
  .nav-shell {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-brand,
  .nav-right {
    width: 100%;
    justify-content: center;
    display: flex;
  }

  .nav-brand {
    text-align: center;
  }

  .nav-center {
    gap: 14px;
  }
}

@media (max-width: 720px) {

  .nav-shell {
        border-radius: 0;
        padding: 12px 14px;
        gap: 12px;
    }
.nav {
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    margin-top: -20px;
}


  .nav-center {
    gap: 12px;
  }

  .nav-link {
    font-size: 13px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
}
html {
  scroll-behavior: smooth;
}
section {
  scroll-margin-top: 120px;
}

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  width: 100%;
}

/* =========================
   REVEAL ANIMATION ON SCROLL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  filter: blur(8px);
  transition:
  opacity 0.8s ease,
  transform 0.8s ease,
  filter 0.8s ease;
  will-change: opacity, transform, filter;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.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;
}

/* чуть сильнее для hero-элементов */
.hero .reveal {
  transform: translateY(44px) scale(0.98);
}

/* =========================
   MAGNETIC BUTTONS / HOVER PHYSICS
========================= */

.magnetic {
  position: relative;
  transform: translate3d(0, 0, 0);
  transition:
  transform 0.18s ease,
  box-shadow 0.25s ease,
  background 0.25s ease,
  border-color 0.25s ease;
  will-change: transform;
}

.magnetic-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, 0, 0);
  transition: transform 0.18s ease;
  will-change: transform;
}

/* лёгкая "физика" на hover */
.magnetic:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .magnetic:hover {
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
}

/* чтобы на touch не было странностей */
@media (hover: none) and (pointer: coarse) {
  .magnetic,
  .magnetic-inner {
    transform: none !important;
    transition: none !important;
  }
}

/* уважение к reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view,
  .magnetic,
  .magnetic-inner {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
.footer-premium {
  position: relative;
  padding: 40px 0 30px;
}

.footer-shell {
  position: relative;
  padding: 34px 32px 22px;
  border-radius: 30px;
  background:
  linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
  0 24px 70px rgba(0,0,0,0.20),
  inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.footer-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
  radial-gradient(circle at top right, rgba(120,180,255,0.12), transparent 30%),
  radial-gradient(circle at bottom left, rgba(170,120,255,0.10), transparent 28%);
}

[data-theme="light"] .footer-shell {
  background:
  linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(247,250,255,0.92) 100%);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow:
  0 18px 40px rgba(15,23,42,0.06),
  inset 0 1px 0 rgba(255,255,255,0.90);
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 38px;
  align-items: start;
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-description {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.68);
}

[data-theme="light"] .footer-description {
  color: rgba(15,23,42,0.68);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.footer-title {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}

[data-theme="light"] .footer-title {
  color: rgba(15,23,42,0.44);
}

.footer-link {
  position: relative;
  width: fit-content;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.76;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-link:hover {
  opacity: 1;
  transform: translateX(2px);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  transition: width 0.25s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-divider {
  position: relative;
  z-index: 1;
  margin: 28px 0 18px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.10) 20%,
    rgba(255,255,255,0.10) 80%,
    transparent 100%
  );
}

[data-theme="light"] .footer-divider {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15,23,42,0.08) 20%,
    rgba(15,23,42,0.08) 80%,
    transparent 100%
  );
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.52);
}

[data-theme="light"] .footer-copy {
  color: rgba(15,23,42,0.52);
}

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

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  transition:
  transform 0.25s ease,
  background 0.25s ease,
  border-color 0.25s ease;
}

.footer-social:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.12);
}

[data-theme="light"] .footer-social {
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.06);
}

[data-theme="light"] .footer-social:hover {
  background: rgba(15,23,42,0.07);
  border-color: rgba(15,23,42,0.10);
}

@media (max-width: 980px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    max-width: none;
  }

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

@media (max-width: 640px) {
  .footer-shell {
    padding: 24px 20px 20px;
    border-radius: 22px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-socials {
    gap: 8px;
  }

  .footer-social {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
  }
}
@media (max-width: 640px) {
  .projects {
    overflow: hidden;
  }

  .projects-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 8px;
    mask-image: none;
    -webkit-mask-image: none;
    cursor: auto;
  }

  .projects-track {
    display: flex;
    gap: 14px;
    width: max-content;
    transform: none !important;
  }

  .project-card,
  .project-card-featured {
    width: min(86vw, 320px);
    min-width: min(86vw, 320px);
    max-width: min(86vw, 320px);
    min-height: auto;
    flex: 0 0 auto;
    padding: 20px;
    border-radius: 20px;
  }

  .project-card-top {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
  }

  .project-title {
    font-size: 24px;
    line-height: 1.08;
    word-break: break-word;
  }

  .project-text {
    font-size: 14px;
    line-height: 1.65;
  }

  .project-tags {
    gap: 8px;
    margin-bottom: 18px;
  }

  .project-tags span {
    font-size: 11px;
    padding: 7px 10px;
  }

  .project-link {
    font-size: 13px;
  }
  .hero-title {
        font-size: 50px;
        line-height: 1.02;
    }
    .hero-badge {
        font-size: 12px;
        padding: 9px 14px;
        margin-bottom: 0;
    }
    .about-title {
    margin: 0 0 18px;
    font-size: 50px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.footer{
  padding: 0 10px;
}
}