/* ===== Texnoxizmat — Bright Modern Design ===== */

:root {
  --bg-deep: #f0f4fa;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #e8eef6;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border: #dbe4f0;
  --border-hover: #93c5fd;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #f97316;
  --accent-light: #fb923c;
  --cyan: #0ea5e9;
  --cyan-dim: #0284c7;
  --purple: #6366f1;
  --purple-light: #818cf8;
  --success: #16a34a;
  --error: #dc2626;
  --text: #0f172a;
  --text-muted: #64748b;
  --gradient-main: linear-gradient(135deg, #2563eb 0%, #6366f1 55%, #0ea5e9 100%);
  --gradient-warm: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --gradient-glow: radial-gradient(ellipse at 50% -20%, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.1);
  --shadow-primary: 0 8px 28px rgba(37, 99, 235, 0.28);
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 76px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(249, 115, 22, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.gradient-text {
  background: var(--gradient-main);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 22px;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 18px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo__icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.nav__link.active::after {
  display: none;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  margin-left: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.lang-switcher__btn {
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 7px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}

.lang-switcher__btn:hover {
  color: var(--text);
}

.lang-switcher__btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.nav__cta {
  margin-left: 6px;
  padding: 10px 20px;
  background: var(--gradient-main);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.38);
  color: #fff;
}

.btn--outline {
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn__arrow {
  transition: transform var(--transition);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero__orb--1 {
  width: 480px;
  height: 480px;
  background: rgba(37, 99, 235, 0.18);
  top: 8%;
  right: -8%;
  animation: float 8s ease-in-out infinite;
}

.hero__orb--2 {
  width: 380px;
  height: 380px;
  background: rgba(249, 115, 22, 0.14);
  bottom: 8%;
  left: -8%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero__orb--3 {
  width: 260px;
  height: 260px;
  background: rgba(99, 102, 241, 0.12);
  top: 45%;
  left: 35%;
  animation: float 12s ease-in-out infinite;
  animation-delay: -3s;
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.35);
  animation: particleDrift 14s linear infinite;
}

.hero__particle:nth-child(1) { left: 8%; top: 20%; animation-duration: 12s; }
.hero__particle:nth-child(2) { left: 22%; top: 70%; animation-duration: 16s; animation-delay: -2s; background: rgba(249, 115, 22, 0.4); }
.hero__particle:nth-child(3) { left: 45%; top: 15%; animation-duration: 18s; animation-delay: -5s; }
.hero__particle:nth-child(4) { left: 68%; top: 55%; animation-duration: 13s; animation-delay: -1s; background: rgba(99, 102, 241, 0.35); }
.hero__particle:nth-child(5) { left: 82%; top: 30%; animation-duration: 15s; animation-delay: -7s; }
.hero__particle:nth-child(6) { left: 55%; top: 82%; animation-duration: 17s; animation-delay: -4s; }

@keyframes particleDrift {
  0% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-40px) scale(1.3); opacity: 0.7; }
  100% { transform: translateY(-80px) scale(1); opacity: 0.2; }
}

.hero-animate {
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate--1 { animation-delay: 0.1s; }
.hero-animate--2 { animation-delay: 0.25s; }
.hero-animate--3 { animation-delay: 0.4s; }
.hero-animate--4 { animation-delay: 0.55s; }
.hero-animate--5 { animation-delay: 0.7s; }
.hero-animate--6 { animation-delay: 0.35s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s ease;
}

.hero__float {
  position: absolute;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease;
  z-index: 2;
}

.hero__float--1 {
  top: 8%;
  left: 5%;
  animation: floatBadge 5s ease-in-out infinite;
}

.hero__float--2 {
  top: 12%;
  right: 0;
  animation: floatBadge 6s ease-in-out infinite reverse;
  animation-delay: -1s;
}

.hero__float--3 {
  bottom: 18%;
  left: 0;
  animation: floatBadge 7s ease-in-out infinite;
  animation-delay: -2s;
}

.hero__float--4 {
  bottom: 10%;
  right: 8%;
  animation: floatBadge 5.5s ease-in-out infinite reverse;
  animation-delay: -3s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__hex-core {
  position: absolute;
  inset: 76px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: corePulse 4s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { box-shadow: var(--shadow-lg); }
  50% { box-shadow: 0 24px 56px rgba(37, 99, 235, 0.22); }
}

.hero__hex-core-icon {
  font-size: 3rem;
  animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -24px); }
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__hex {
  width: 360px;
  height: 360px;
  position: relative;
}

.hero__hex-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}

.hero__hex-ring:nth-child(2) {
  inset: 28px;
  border-color: rgba(99, 102, 241, 0.18);
  animation-direction: reverse;
  animation-duration: 18s;
}

.hero__hex-ring:nth-child(3) {
  inset: 56px;
  border-color: rgba(14, 165, 233, 0.15);
  animation-duration: 30s;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__hex-core-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Slideshow ===== */
.slideshow-section {
  padding: 0 0 48px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.slideshow {
  position: relative;
}

.slideshow__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.slideshow__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.slideshow__slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slideshow__card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px 40px;
  min-height: 280px;
  color: inherit;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.06) 0%, transparent 45%),
    #fff;
}

.slideshow__visual {
  width: 100%;
  max-width: 380px;
  height: 240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.12));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.slideshow__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow__body {
  padding-right: 20px;
}

.slideshow__tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.slideshow__title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.slideshow__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 560px;
}

.slideshow__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
}

.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 3;
}

.slideshow__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-50%) scale(1.06);
}

.slideshow__btn--prev { left: -18px; }
.slideshow__btn--next { right: -18px; }

.slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slideshow__dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.slideshow__dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .slideshow__card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 22px;
    min-height: auto;
  }

  .slideshow__visual {
    width: 140px;
    height: 140px;
    font-size: 3.5rem;
  }

  .slideshow__body {
    padding-right: 0;
  }

  .slideshow__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .slideshow__btn--prev { left: 8px; }
  .slideshow__btn--next { right: 8px; }

  .slideshow__btn {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
  }
}

/* ===== Marquee ===== */
.marquee {
  padding: 18px 0;
  background: #fff;
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee__content {
  display: flex;
  gap: 40px;
  padding-right: 40px;
}

.marquee__content span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee__content span::before {
  content: '◆';
  margin-right: 12px;
  color: var(--primary);
  font-size: 0.55rem;
  vertical-align: middle;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Services ===== */
.services {
  padding: 110px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
  transition: transform 0.35s ease;
}

.service-card__media {
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.07);
}

.service-card:hover .service-card__icon {
  transform: scale(1.12) rotate(-6deg);
}

.service-card__title {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ===== Featured Projects ===== */
.featured {
  padding: 110px 0;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.04), transparent);
}

.featured__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 52px;
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card__visual {
  height: 190px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.25rem;
  position: relative;
  overflow: hidden;
}

.project-card__visual img,
.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover .project-card__visual img {
  transform: scale(1.06);
}

.project-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, 0.9) 100%);
}

.project-card__body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  width: fit-content;
}

.project-card__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 18px;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.project-card__link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
}

.cta__box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta__box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.cta__desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.cta__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.cta__contact:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  transition: var(--transition);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #94a3b8;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
  margin-bottom: 14px;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form__status {
  margin-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-form__status--success {
  color: var(--success);
}

.contact-form__status--error {
  color: var(--error);
}

.contact-form__status--info {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

/* ===== Page Hero ===== */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 56px;
  text-align: center;
  position: relative;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 18px;
}

.page-hero__desc {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About Page ===== */
.about-content {
  padding: 56px 0 110px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 90px;
}

.about-grid__text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.04rem;
}

.about-grid__visual {
  position: relative;
}

.about-grid__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.about-grid__card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--primary);
}

.about-card__desc {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.about-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.about-card__check {
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.values__header {
  text-align: center;
}

.tech-stack__desc {
  margin: 0 auto;
}

.projects-note a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.projects-note a:hover {
  text-decoration: underline;
}

.values {
  margin-bottom: 90px;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.value-card {
  text-align: center;
  padding: 30px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.value-card__title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tech-stack {
  text-align: center;
}

.tech-stack__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

.tech-tag {
  padding: 11px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tech-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ===== Projects Page ===== */
.projects-page {
  padding: 36px 0 110px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.projects-grid .project-card__visual {
  height: 150px;
  font-size: 2.4rem;
}

.projects-note {
  text-align: center;
  margin-top: 52px;
  padding: 28px;
  background: #fff;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.94rem;
  box-shadow: var(--shadow-sm);
}

/* ===== Project Detail ===== */
.project-detail-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  text-align: center;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 36px;
  transition: var(--transition);
}

.project-back:hover {
  color: var(--primary);
}

.project-detail-hero__visual {
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.25rem;
  box-shadow: var(--shadow-md);
}

.project-detail-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  margin: 14px 0 18px;
}

.project-detail-hero__desc {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.75;
}

.project-detail-content {
  padding: 0 0 72px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.project-detail-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.project-detail-block__title {
  font-size: 1.08rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.project-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.project-detail-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.project-detail-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-not-found {
  padding: calc(var(--header-h) + 72px) 0 110px;
  text-align: center;
}

/* ===== Project Article & Gallery ===== */
.project-article {
  padding: 0 0 72px;
}

.project-article__content {
  max-width: 860px;
  margin: 0 auto 56px;
}

.project-article__title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 22px;
  color: var(--primary);
}

.project-article__text {
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.8;
  margin-bottom: 26px;
}

.project-media {
  margin: 32px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.project-media__video {
  width: 100%;
  display: block;
  background: #0f172a;
}

.project-media__caption {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.project-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.project-legend__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-legend__dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.project-legend__item--green .project-legend__dot { background: #22c55e; }
.project-legend__item--white .project-legend__dot { background: #f8fafc; }
.project-legend__item--yellow .project-legend__dot { background: #eab308; }
.project-legend__item--cyan .project-legend__dot { background: var(--cyan); }

.project-gallery__title {
  font-size: 1.22rem;
  margin-bottom: 26px;
  text-align: center;
  color: var(--primary);
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-gallery__item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.project-gallery__item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.project-gallery__item--wide {
  grid-column: 1 / -1;
}

.project-showcase {
  margin-bottom: 56px;
}

.project-showcase__item {
  margin: 0 0 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.project-showcase__item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.project-showcase__item img {
  width: 100%;
  display: block;
}

.project-showcase__caption {
  padding: 26px 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.project-showcase__caption h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.project-showcase__caption p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.project-offers {
  margin-bottom: 56px;
}

.project-offers__title {
  font-size: 1.22rem;
  margin-bottom: 26px;
  text-align: center;
  color: var(--primary);
}

.project-offers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-offers__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.project-offers__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-offers__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.project-offers__card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.project-offers__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .project-legend {
    grid-template-columns: 1fr;
  }

  .project-gallery__grid {
    grid-template-columns: 1fr;
  }

  .project-gallery__item--wide {
    grid-column: auto;
  }

  .project-offers__grid {
    grid-template-columns: 1fr;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 800;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.services__grid .service-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.services__grid .service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.services__grid .service-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.services__grid .service-card.reveal:nth-child(4) { transition-delay: 0.2s; }
.services__grid .service-card.reveal:nth-child(5) { transition-delay: 0.25s; }
.services__grid .service-card.reveal:nth-child(6) { transition-delay: 0.3s; }

.featured__grid .project-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.featured__grid .project-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.featured__grid .project-card.reveal:nth-child(3) { transition-delay: 0.25s; }
.featured__grid .project-card.reveal:nth-child(4) { transition-delay: 0.35s; }

.cta__box.reveal.visible {
  animation: ctaPop 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ctaPop {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate,
  .hero__float,
  .hero__hex-ring,
  .hero__hex-core,
  .hero__hex-core-icon,
  .hero__particle,
  .hero__orb,
  .marquee__track,
  .gradient-text,
  .reveal,
  .slideshow__track {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__hex {
    width: 280px;
    height: 280px;
  }

  .hero__hex-core {
    inset: 50px;
  }

  .hero__stats {
    justify-content: center;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured__grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 22px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .lang-switcher {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .nav__cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .burger {
    display: flex;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .cta__box {
    padding: 36px 22px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}
