/* =========================================================
   GeoLab — Геодезия в Крыму
   Современный пастельный дизайн
   ========================================================= */

/* ---- Цветовые схемы (палитры) ---- */
:root {
  /* Схема A: "Крым" (по умолчанию) — строгая, профессиональная */
  --color-primary: #1A6B6B;
  --color-primary-light: #4A9E9E;
  --color-primary-dark: #135555;
  --color-secondary: #C4816E;
  --color-accent: #D4BFA8;
  --color-accent-alt: #B8A48E;

  --color-dark: #1A2C2E;
  --color-dark-soft: #2A3C3E;
  --color-text: #2A3C3E;
  --color-text-light: #6B7D80;
  --color-text-muted: #95A5A8;

  --color-bg: #F5F5F2;
  --color-bg-alt: #EDEDE8;
  --color-bg-card: #FFFFFF;
  --color-border: #DDE0DA;
  --color-white: #FFFFFF;

  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Тени */
  --shadow-sm: 0 2px 8px rgba(26, 44, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 44, 46, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 44, 46, 0.12);
  --shadow-glow: 0 0 40px rgba(26, 107, 107, 0.15);

  /* Размеры */
  --header-height: 72px;
  --container-width: 1200px;
  --section-padding: 100px;

  /* Типографика */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

/* Схема B: "Морская" — холодная, профессиональная */
[data-theme="marine"] {
  --color-primary: #4A8C9E;
  --color-primary-light: #8BBCC8;
  --color-primary-dark: #3A7080;
  --color-secondary: #B8C9D4;
  --color-accent: #D4E0E8;
  --color-accent-alt: #A8BCC8;
  --color-dark: #1E2E36;
  --color-bg: #F5F8FA;
  --color-bg-alt: #EDF1F5;
  --color-border: #DDE4EA;
}

/* Схема C: "Терракота" — тёплая, энергичная */
[data-theme="terra"] {
  --color-primary: #C48A7A;
  --color-primary-light: #DEB6AA;
  --color-primary-dark: #A67060;
  --color-secondary: #D4BFA8;
  --color-accent: #E8D9CC;
  --color-accent-alt: #C9B0A0;
  --color-dark: #3A2E2A;
  --color-bg: #FAF6F2;
  --color-bg-alt: #F5EFE8;
  --color-border: #E8DFD6;
}

/* Схема D: "Лаванда" — мягкая, премиальная */
[data-theme="lavender"] {
  --color-primary: #8B7EAD;
  --color-primary-light: #BBB0D4;
  --color-primary-dark: #6C5F8E;
  --color-secondary: #C4B5D4;
  --color-accent: #E0D6EA;
  --color-accent-alt: #B8A8C8;
  --color-dark: #2D2838;
  --color-bg: #F8F6FA;
  --color-bg-alt: #F0EDF5;
  --color-border: #E2DEE8;
}

/* ---- Сброс + База ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.text-accent {
  color: var(--color-primary);
}

/* ---- Логотип ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
}

.logo__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Компас */
.compass {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Стрелка компаса (север-юг) */
.compass__needle {
  position: relative;
  width: 0;
  height: 0;
}

.compass__needle::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 9px solid var(--color-primary);
}

.compass__needle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 9px solid var(--color-primary-dark);
}

/* Точки LiDAR вокруг компаса */
.lidar-dots {
  position: absolute;
  inset: -4px;
  pointer-events: none;
}

.lidar-dots span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: 0 0 6px var(--color-primary-light);
  animation: lidarPulse 2.5s ease-in-out infinite;
}

.lidar-dots span:nth-child(1) { top: -2px; left: 50%; margin-left: -2px; animation-delay: 0s; }
.lidar-dots span:nth-child(2) { top: 50%; right: -3px; margin-top: -2px; animation-delay: 0.6s; }
.lidar-dots span:nth-child(3) { bottom: -2px; left: 50%; margin-left: -2px; animation-delay: 1.2s; }
.lidar-dots span:nth-child(4) { top: 50%; left: -3px; margin-top: -2px; animation-delay: 1.8s; }

@keyframes lidarPulse {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Текст логотипа */
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.15;
}

.logo__subtitle {
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.2;
}

.logo__accent {
  color: var(--color-primary);
}

/* ---- Кнопки ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}

.btn--full {
  width: 100%;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ---- Навигация ---- */
.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav__link:hover::after {
  transform: scaleX(0.6);
}

.nav__link--cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ---- Бургер ---- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--color-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, color-mix(in srgb, var(--color-primary-light) 15%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 70%, color-mix(in srgb, var(--color-secondary) 10%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, color-mix(in srgb, var(--color-accent) 20%, transparent) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-soft, var(--color-dark));
}

/* SVG icons - consistent set from Lucide */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.icon-svg--feature {
  width: 1.4rem;
  height: 1.4rem;
}
.icon-svg--card {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.icon-svg--about {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.icon-svg--portfolio {
  width: 3.2rem;
  height: 3.2rem;
  opacity: 0.8;
}
.icon-svg--cert {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 16px;
  margin-inline: auto;
  color: var(--color-primary);
}

/* Hero Visual (декоративные фигуры) */
.hero__visual {
  position: relative;
  height: 500px;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
}

.hero__shape--1 {
  width: 350px;
  height: 350px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 20%, transparent), color-mix(in srgb, var(--color-primary-light) 15%, transparent));
  animation: float 8s ease-in-out infinite;
}

.hero__shape--2 {
  width: 200px;
  height: 200px;
  top: 15%;
  right: 10%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-secondary) 20%, transparent), color-mix(in srgb, var(--color-secondary) 10%, transparent));
  animation: float 12s ease-in-out infinite reverse;
}

.hero__shape--3 {
  width: 120px;
  height: 120px;
  bottom: 15%;
  left: 20%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 30%, transparent), color-mix(in srgb, var(--color-accent-alt) 20%, transparent));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
  50% { transform: translate(-50%, -50%) translateY(-30px) scale(1.05); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  animation: bounceDown 2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  background: var(--color-bg-alt);
}

.services__group {
  margin-bottom: 60px;
}

.services__group:last-child {
  margin-bottom: 0;
}

.services__group-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 28px;
  padding-left: 4px;
  position: relative;
}

.services__group-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.service-card--accent {
  border-left: 3px solid var(--color-primary);
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__text p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--color-text-soft, var(--color-text));
}

.about__text strong {
  color: var(--color-dark);
}

/* Stats */
.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding: 24px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* About cards */
.about__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
}

.about__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.about__card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.about__card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* =========================================================
   EQUIPMENT (Scanner Banner)
   ========================================================= */
.equipment {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 80px 0;
}

.equipment .section__label {
  background: color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.equipment__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.equipment__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.equipment__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.equipment__specs {
  list-style: none;
}

.equipment__specs li {
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, white 8%, transparent);
  font-size: 0.95rem;
  display: flex;
  gap: 8px;
}

.equipment__specs li:last-child {
  border-bottom: none;
}

.equipment__specs li span {
  font-weight: 600;
  color: var(--color-primary-light);
  min-width: 80px;
}

/* Scanner visual */
.equipment__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.equipment__scanner {
  position: relative;
  width: 260px;
  height: 300px;
}

/* LiDAR головка с GNSS антенной */
.scanner__head {
  position: absolute;
  top: 4px;
  left: 72px;
  width: 56px;
  height: 28px;
  z-index: 3;
}

.scanner__head::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 3px 3px 0 0;
  z-index: 4;
}

.scanner__head::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 6px;
  background: var(--color-primary-light);
  border-radius: 2px;
  opacity: 0.6;
  z-index: 4;
}

/* Цилиндрическая вращающаяся часть LiDAR */
.scanner__lidar {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 28px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));
  border-radius: 28px 28px 4px 4px;
  border: 2px solid color-mix(in srgb, var(--color-primary-light) 50%, transparent);
  animation: scanHeadRotate 4s linear infinite;
}

.scanner__lidar::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 12px;
  background: var(--color-dark);
  border-radius: 10px 10px 0 0;
  opacity: 0.25;
}

.scanner__lidar::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-primary-light);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--color-primary-light),
              0 0 50px color-mix(in srgb, var(--color-primary-light) 25%, transparent);
}

.scanner__head::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 12px;
  background: var(--color-dark);
  border-radius: 10px 10px 0 0;
  opacity: 0.25;
}

.scanner__head::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-primary-light);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--color-primary-light),
              0 0 50px color-mix(in srgb, var(--color-primary-light) 25%, transparent);
}

@keyframes scanHeadRotate {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Основной корпус (прямоугольный блок, компактный) */
.scanner__body {
  position: absolute;
  top: 30px;
  left: 64px;
  width: 72px;
  height: 112px;
  background: linear-gradient(180deg, var(--color-dark-soft) 0%, var(--color-dark) 100%);
  border-radius: 8px 8px 10px 10px;
  border: 1.5px solid color-mix(in srgb, var(--color-primary-light) 20%, transparent);
  z-index: 2;
  box-shadow: inset -3px 0 6px rgba(0,0,0,0.2);
}

/* Три камеры визуального SLAM (спереди) */
.scanner__body::before {
  content: '◉ ◉ ◉';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  letter-spacing: 8px;
  color: color-mix(in srgb, var(--color-primary-light) 40%, transparent);
}

/* Экран на правой боковой панели */
.scanner__body::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -3px;
  width: 4px;
  height: 32px;
  background: color-mix(in srgb, var(--color-primary-light) 20%, transparent);
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--color-primary-light) 15%, transparent);
}

/* Рукоятка (снизу корпуса, как верхняя ручка RS10) */
.scanner__handle {
  position: absolute;
  top: 138px;
  left: 72px;
  width: 56px;
  height: 36px;
  background: linear-gradient(180deg, var(--color-dark), var(--color-dark-soft));
  border-radius: 0 0 18px 18px;
  border: 1.5px solid color-mix(in srgb, var(--color-primary-light) 15%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--color-primary-light) 25%, transparent);
  z-index: 1;
}

/* Переход корпус-ручка (шейка) */
.scanner__handle::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 8px;
  background: var(--color-dark);
  border-radius: 4px 4px 0 0;
  border: 1px solid color-mix(in srgb, var(--color-primary-light) 12%, transparent);
  border-bottom: none;
}

/* Насечки (горизонтальные, под пальцы) */
.scanner__handle::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 8px;
  width: 40px;
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-primary-light) 8%, transparent) 0px,
    color-mix(in srgb, var(--color-primary-light) 8%, transparent) 2px,
    transparent 2px,
    transparent 6px
  );
  border-radius: 4px;
}

/* Индикатор питания (зелёный светодиод) */
.scanner__grip {
  position: absolute;
  top: 112px;
  left: 68px;
  width: 4px;
  height: 4px;
  background: #4CAF50;
  border-radius: 50%;
  box-shadow: 0 0 6px #4CAF50;
  z-index: 3;
  animation: scannerLed 2s ease-in-out infinite;
}

@keyframes scannerLed {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 4px #4CAF50; }
  50% { opacity: 1; box-shadow: 0 0 12px #4CAF50; }
}


/* Сканирующие кольца (расходятся от головки) */
.scanner__scanning {
  position: absolute;
  top: 14px;
  left: 100px;
  pointer-events: none;
  z-index: 0;
}

.scan-ring {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--color-primary-light) 25%, transparent);
  animation: scanRing 2.5s ease-out infinite;
}

.scan-ring--1 {
  width: 120px;
  height: 32px;
  animation-delay: 0s;
}

.scan-ring--2 {
  width: 200px;
  height: 50px;
  animation-delay: 0.8s;
  border-color: color-mix(in srgb, var(--color-primary-light) 15%, transparent);
}

.scan-ring--3 {
  width: 280px;
  height: 68px;
  animation-delay: 1.6s;
  border-color: color-mix(in srgb, var(--color-primary-light) 8%, transparent);
}

@keyframes scanRing {
  0% { opacity: 0.8; transform: translateX(-50%) scale(0.3); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.3); }
}

/* Точки LiDAR — расходятся от головки сканера */
.scanner__trail {
  position: absolute;
  top: 14px;
  left: 100px;
  width: 0;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.scanner__trail span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: 0 0 8px var(--color-primary-light);
  top: -2.5px;
  left: -2.5px;
  opacity: 0;
  animation: lidarDot 2.8s ease-out infinite;
}

/* Каждая точка — свой маршрут от центра */
.scanner__trail span:nth-child(1)  { animation-name: lidarDot1;  animation-delay: 0s;    width: 5px; height: 5px; }
.scanner__trail span:nth-child(2)  { animation-name: lidarDot2;  animation-delay: 0.28s; width: 3px; height: 3px; }
.scanner__trail span:nth-child(3)  { animation-name: lidarDot3;  animation-delay: 0.56s; width: 6px; height: 6px; }
.scanner__trail span:nth-child(4)  { animation-name: lidarDot4;  animation-delay: 0.84s; width: 4px; height: 4px; }
.scanner__trail span:nth-child(5)  { animation-name: lidarDot5;  animation-delay: 1.12s; width: 5px; height: 5px; }
.scanner__trail span:nth-child(6)  { animation-name: lidarDot6;  animation-delay: 1.40s; width: 3px; height: 3px; }
.scanner__trail span:nth-child(7)  { animation-name: lidarDot7;  animation-delay: 1.68s; width: 5px; height: 5px; }
.scanner__trail span:nth-child(8)  { animation-name: lidarDot8;  animation-delay: 1.96s; width: 4px; height: 4px; }
.scanner__trail span:nth-child(9)  { animation-name: lidarDot9;  animation-delay: 2.24s; width: 6px; height: 6px; }
.scanner__trail span:nth-child(10) { animation-name: lidarDot10; animation-delay: 2.52s; width: 3px; height: 3px; }

@keyframes lidarDot1  { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(20px,-38px) scale(0.2); } }
@keyframes lidarDot2  { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(42px,-28px) scale(0.2); } }
@keyframes lidarDot3  { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(58px,-8px) scale(0.2); } }
@keyframes lidarDot4  { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(48px,18px) scale(0.2); } }
@keyframes lidarDot5  { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(25px,42px) scale(0.2); } }
@keyframes lidarDot6  { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(-8px,50px) scale(0.2); } }
@keyframes lidarDot7  { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(-38px,32px) scale(0.2); } }
@keyframes lidarDot8  { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(-55px,5px) scale(0.2); } }
@keyframes lidarDot9  { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(-42px,-28px) scale(0.2); } }
@keyframes lidarDot10 { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(10px,-52px) scale(0.2); } }

/* =========================================================
   TERRAIN MESH (рядом со сканером)
   ========================================================= */
.equipment__terrain {
  position: relative;
  width: 220px;
  height: 280px;
  flex-shrink: 0;
  margin-left: 40px;
  overflow: hidden;
  opacity: 0.85;
}

.terrain__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Сетка (wireframe) */
.terrain__layer--grid {
  background:
    repeating-linear-gradient(
      87deg,
      transparent 0,
      transparent 14px,
      color-mix(in srgb, var(--color-primary-light) 14%, transparent) 14px,
      color-mix(in srgb, var(--color-primary-light) 14%, transparent) 15px
    ),
    repeating-linear-gradient(
      177deg,
      transparent 0,
      transparent 14px,
      color-mix(in srgb, var(--color-primary-light) 14%, transparent) 14px,
      color-mix(in srgb, var(--color-primary-light) 14%, transparent) 15px
    );
  mask-image: radial-gradient(ellipse 90% 80% at 45% 50%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 45% 50%, black 40%, transparent 75%);
}

/* Контурные линии рельефа (topography) */
.terrain__layer--contours {
  background:
    /* Вершина 1 — основная гора (слева) */
    radial-gradient(ellipse 30px 24px at 32% 58%,
      transparent 38%,
      color-mix(in srgb, var(--color-primary-light) 28%, transparent) 38%, color-mix(in srgb, var(--color-primary-light) 28%, transparent) 39%, transparent 39%,
      transparent 46%,
      color-mix(in srgb, var(--color-primary-light) 22%, transparent) 46%, color-mix(in srgb, var(--color-primary-light) 22%, transparent) 47%, transparent 47%,
      transparent 54%,
      color-mix(in srgb, var(--color-primary-light) 16%, transparent) 54%, color-mix(in srgb, var(--color-primary-light) 16%, transparent) 55%, transparent 55%,
      transparent 62%,
      color-mix(in srgb, var(--color-primary-light) 11%, transparent) 62%, color-mix(in srgb, var(--color-primary-light) 11%, transparent) 63%, transparent 63%
    ),
    /* Вершина 2 — поменьше (справа) */
    radial-gradient(ellipse 22px 18px at 68% 38%,
      transparent 40%,
      color-mix(in srgb, var(--color-primary-light) 24%, transparent) 40%, color-mix(in srgb, var(--color-primary-light) 24%, transparent) 41%, transparent 41%,
      transparent 48%,
      color-mix(in srgb, var(--color-primary-light) 18%, transparent) 48%, color-mix(in srgb, var(--color-primary-light) 18%, transparent) 49%, transparent 49%,
      transparent 56%,
      color-mix(in srgb, var(--color-primary-light) 12%, transparent) 56%, color-mix(in srgb, var(--color-primary-light) 12%, transparent) 57%, transparent 57%
    ),
    /* Вершина 3 — холм (внизу) */
    radial-gradient(ellipse 18px 14px at 55% 75%,
      transparent 42%,
      color-mix(in srgb, var(--color-primary-light) 20%, transparent) 42%, color-mix(in srgb, var(--color-primary-light) 20%, transparent) 43%, transparent 43%,
      transparent 52%,
      color-mix(in srgb, var(--color-primary-light) 14%, transparent) 52%, color-mix(in srgb, var(--color-primary-light) 14%, transparent) 53%, transparent 53%
    );
  mask-image: radial-gradient(ellipse 85% 75% at 45% 50%, black 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 45% 50%, black 35%, transparent 70%);
}

/* Подсветка (атмосферное свечение) */
.terrain__layer--glow {
  background:
    radial-gradient(ellipse 100px 80px at 35% 55%,
      color-mix(in srgb, var(--color-primary-light) 6%, transparent) 0%,
      transparent 70%
    ),
    radial-gradient(ellipse 70px 60px at 65% 40%,
      color-mix(in srgb, var(--color-primary-light) 4%, transparent) 0%,
      transparent 60%
    );
}

/* =========================================================
   ДОПОЛНИТЕЛЬНОЕ ОБОРУДОВАНИЕ (парк техники)
   ========================================================= */
.equipment__fleet {
  margin-top: 50px;
}

.equipment__fleet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.equip-card {
  background: color-mix(in srgb, var(--color-white) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary-light) 12%, transparent);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.equip-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary-light) 35%, transparent);
  background: color-mix(in srgb, var(--color-white) 8%, transparent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.equip-card__title {
  font-size: 0.85rem;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.equip-card__specs {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--color-white) 65%, transparent);
  line-height: 1.6;
  text-align: center;
}

.equip-card__specs li {
  border-top: 1px solid color-mix(in srgb, var(--color-white) 6%, transparent);
  padding: 4px 0;
}

.equip-card__specs li:first-child {
  border-top: none;
  padding-top: 0;
}

/* ---- Equipment Card Visuals (CSS illustrations) ---- */
.equip-visual {
  position: relative;
  width: 80px;
  height: 76px;
  margin: 0 auto 8px;
}

/* ====== 1. CHCNAV i80 – GNSS receiver with satellite signal ====== */
.equip-visual--i80 .gnss__body {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(180deg, #4d6065 0%, #2d3e42 100%);
  border: 1px solid #6d8085;
}
.equip-visual--i80 .gnss__stripe {
  position: absolute;
  top: 4px; left: 5px; right: 5px;
  height: 3px;
  border-radius: 2px;
  background: #E8923A;
}
.equip-visual--i80 .gnss__screen {
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 8px;
  border-radius: 1px;
  background: #8aaaaa;
  opacity: 0.5;
}
.equip-visual--i80 .gnss__led {
  position: absolute;
  top: 8px; right: 5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px #4ade80;
  animation: ledPulse 1.5s ease-in-out infinite;
}
.equip-visual--i80 .gnss__ant {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 12px;
  border-radius: 3px 3px 0 0;
  background: #6d8085;
}
.equip-visual--i80 .gnss__wave {
  position: absolute;
  bottom: 46px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  border: 1.5px solid var(--color-primary-light);
  border-radius: 50%;
  animation: waveExpand 2.4s ease-out infinite;
}
.equip-visual--i80 .gnss__wave--2 { animation-delay: 0.8s; }
.equip-visual--i80 .gnss__wave--3 { animation-delay: 1.6s; }

/* ====== 2. CHCNAV i30 – GNSS with UHF radio wave ====== */
.equip-visual--i30 .gnss__body--slim {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, #4d6065 0%, #2d3e42 100%);
  border: 1px solid #6d8085;
}
.equip-visual--i30 .gnss__stripe--blue {
  position: absolute;
  top: 3px; left: 4px; right: 4px;
  height: 3px;
  border-radius: 2px;
  background: #4A9EC8;
}
.equip-visual--i30 .gnss__led--blue {
  position: absolute;
  top: 6px; right: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 5px #60a5fa;
  animation: ledPulse 1.8s ease-in-out infinite;
}
.equip-visual--i30 .gnss__ant--short {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  border-radius: 2px 2px 0 0;
  background: #6d8085;
}
/* RF waves from UHF modem */
.equip-visual--i30 .rf__wave {
  position: absolute;
  left: 50%;
  border: 1.5px solid var(--color-primary-light);
  border-radius: 50%;
  opacity: 0;
  animation: rfPulse 2s ease-out infinite;
}
.equip-visual--i30 .rf__wave--1 {
  bottom: 36px; width: 12px; height: 12px; margin-left: -6px;
}
.equip-visual--i30 .rf__wave--2 {
  bottom: 42px; width: 22px; height: 22px; margin-left: -11px;
  animation-delay: 0.65s;
}
.equip-visual--i30 .rf__wave--3 {
  bottom: 48px; width: 32px; height: 32px; margin-left: -16px;
  animation-delay: 1.3s;
}

/* ====== 3. EFT TS1 – Total Station with red laser ====== */
.equip-visual--ts .ts__base {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 8px solid #3d5055;
}
.equip-visual--ts .ts__body {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, #5a7075 0%, #3d5055 100%);
  border: 1px solid #6d8085;
}
.equip-visual--ts .ts__display {
  position: absolute;
  top: 3px; left: 3px;
  width: 13px; height: 7px;
  border-radius: 1px;
  background: #7a9a9a;
  opacity: 0.4;
}
.equip-visual--ts .ts__scope {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #6d8085 0%, #4d6065 100%);
  border: 1px solid #7d9095;
}
.equip-visual--ts .ts__lens {
  position: absolute;
  bottom: 27px; right: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2a3c3e;
  border: 1px solid #5a7075;
}
/* Laser beam and dot */
.equip-visual--ts .ts__beam {
  position: absolute;
  bottom: 29px; right: -4px;
  width: 14px; height: 2px;
  background: linear-gradient(90deg, #ff4040, transparent);
  opacity: 0.7;
  animation: laserBeam 1.2s ease-in-out infinite;
}
.equip-visual--ts .ts__laser {
  position: absolute;
  bottom: 28px; right: 8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ff2020;
  box-shadow: 0 0 6px #ff4040;
  animation: laserDot 1.2s ease-in-out infinite;
}

/* ====== 4. Leica TS06 – Precision total station with green laser ====== */
.equip-visual--leica .ts__base--leica {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 7px solid #3d5055;
}
.equip-visual--leica .ts__body--leica {
  position: absolute;
  bottom: 13px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 18px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #6d8085 0%, #4d6065 100%);
  border: 1px solid #7d9095;
}
.equip-visual--leica .ts__display--leica {
  position: absolute;
  top: 4px; left: 3px;
  width: 14px; height: 8px;
  border-radius: 1px;
  background: #7a9a9a;
  opacity: 0.4;
}
.equip-visual--leica .leica__badge {
  position: absolute;
  top: 4px; right: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary-light);
  opacity: 0.6;
}
.equip-visual--leica .ts__scope--leica {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 9px;
  border-radius: 5px;
  background: linear-gradient(180deg, #7d9095 0%, #4d6065 100%);
  border: 1px solid #8da0a5;
}
.equip-visual--leica .ts__lens--leica {
  position: absolute;
  bottom: 29px; right: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1a2c2e;
  border: 1px solid var(--color-primary-light);
}
/* Green laser beam */
.equip-visual--leica .leica__beam {
  position: absolute;
  bottom: 30px; right: -4px;
  width: 16px; height: 2px;
  background: linear-gradient(90deg, #4ade80, transparent);
  opacity: 0.6;
  animation: leicaLaser 1.4s ease-in-out infinite;
}
.equip-visual--leica .leica__laser {
  position: absolute;
  bottom: 29px; right: 8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #4ade80;
  animation: laserDot 1.4s ease-in-out infinite;
}

/* ====== 5. Radiodetection CAT4+ – Cable locator ====== */
.equip-visual--cat .cat__body {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 32px;
  border-radius: 4px;
  background: linear-gradient(180deg, #4d6065 0%, #2d3e42 100%);
  border: 1px solid #6d8085;
}
.equip-visual--cat .cat__screen {
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 11px;
  border-radius: 1px;
  background: #7a9a9a;
  opacity: 0.3;
}
.equip-visual--cat .cat__btn {
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid #6d8085;
}
.equip-visual--cat .cat__handle {
  position: absolute;
  bottom: 38px; left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 0;
  border-bottom: 8px solid #4d6065;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.equip-visual--cat .cat__handle::after {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 4px;
  border-radius: 2px;
  background: #4d6065;
}
.equip-visual--cat .cat__antenna {
  position: absolute;
  bottom: 46px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 10px;
  border-radius: 1px;
  background: #6d8085;
}
.equip-visual--cat .cat__antenna::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  width: 6px; height: 2px;
  border-radius: 1px;
  background: var(--color-primary-light);
  opacity: 0.5;
}
/* Detection signal going down */
.equip-visual--cat .cat__sig {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-primary-light);
  opacity: 0;
  animation: detSignal 2s ease-out infinite;
}
.equip-visual--cat .cat__sig--2 {
  margin-top: 8px;
  animation-delay: 0.65s;
}
.equip-visual--cat .cat__sig--3 {
  margin-top: 16px;
  animation-delay: 1.3s;
}

/* ---- Animations ---- */
@keyframes ledPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
@keyframes waveExpand {
  0% { transform: translateX(-50%) scale(0.5); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}
@keyframes rfPulse {
  0% { opacity: 0.7; }
  50% { opacity: 0.3; }
  100% { opacity: 0; }
}
@keyframes laserBeam {
  0%, 100% { opacity: 0.3; width: 10px; }
  50% { opacity: 0.9; width: 18px; }
}
@keyframes leicaLaser {
  0%, 100% { opacity: 0.2; width: 12px; }
  50% { opacity: 0.8; width: 20px; }
}
@keyframes laserDot {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}
@keyframes detSignal {
  0% { opacity: 0.6; }
  100% { opacity: 0; margin-top: 20px; }
}

@media (max-width: 820px) {
  .equipment__fleet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .equipment__fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio {
  background: var(--color-bg-alt);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 24px;
  max-width: var(--container-width);
  margin: 0 auto 60px;
}

.portfolio__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.portfolio__item--wide {
  grid-column: span 2;
}

.portfolio__preview {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-card);
}

.portfolio__preview img,
.portfolio__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio__item:hover .portfolio__preview img,
.portfolio__item:hover .portfolio__preview video {
  transform: scale(1.05);
}

.portfolio__item--wide .portfolio__preview {
  aspect-ratio: 2/1;
}

.portfolio__item--link {
  text-decoration: none;
  color: inherit;
  display: contents;
  cursor: pointer;
}

.portfolio__item:has(.portfolio__item--link) {
  cursor: auto;
}

.portfolio__item--link .portfolio__preview:hover {
  transform: none;
}

.portfolio__pdf-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.portfolio__pdf-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.portfolio__item--link:hover .portfolio__pdf-icon {
  opacity: 1;
}

.portfolio__item--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.portfolio__caption {
  padding: 16px 20px;
}

.portfolio__caption h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.portfolio__caption p {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.portfolio__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 40px 0;
}

.portfolio__cta p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 480px;
}

/* =========================================================
   CERTIFICATES
   ========================================================= */
.certificates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cert-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.cert-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
  background: var(--color-bg-alt);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item--wide {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  text-align: center;
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.gallery__empty-icon {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

.gallery__empty p {
  font-size: 0.95rem;
  max-width: 360px;
  line-height: 1.6;
}

.gallery__empty code {
  font-size: 0.85rem;
  background: var(--color-bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--color-bg);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact__details {
  margin-bottom: 32px;
}

.contact__row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact__row:last-child {
  border-bottom: none;
}

.contact__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  min-width: 80px;
  padding-top: 2px;
}

.contact__value {
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 500;
}

.contact__value a:hover {
  color: var(--color-primary);
}

/* Social links */
.contact__socials {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: all 0.2s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Form */
.contact__form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-dark);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  outline: none;
}

.form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.form__input::placeholder {
  color: var(--color-text-muted);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.form__note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 12px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--color-dark);
  color: color-mix(in srgb, white 70%, transparent);
  padding: 60px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid color-mix(in srgb, white 10%, transparent);
}

.footer .logo {
  color: var(--color-white);
  margin-bottom: 4px;
}

.footer .logo__title {
  color: var(--color-white);
}

.footer .logo__subtitle {
  color: color-mix(in srgb, white 55%, transparent);
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__col ul li {
  margin-bottom: 8px;
}

.footer__col ul li a {
  font-size: 0.9rem;
  color: color-mix(in srgb, white 65%, transparent);
  transition: color 0.2s ease;
}

.footer__col ul li a:hover {
  color: var(--color-primary-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* =========================================================
   FLOATING SOCIALS
   ========================================================= */
.floating-socials {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  animation: floatingBtn 3s ease-in-out infinite;
  position: relative;
}

.floating-btn svg {
  width: 24px;
  height: 24px;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.floating-btn--whatsapp {
  background: #25D366;
  animation-delay: 0s;
}

.floating-btn--telegram {
  background: #0088CC;
  animation-delay: 0.5s;
}

.floating-btn--phone {
  background: var(--color-primary);
  animation-delay: 1s;
}

@keyframes floatingBtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* =========================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ (scroll reveal)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */

/* Laptop */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual { display: none; }

  .about__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .equipment__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .equipment__visual { display: none; }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__item--wide {
    grid-column: span 2;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --header-height: 64px;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-card);
    padding: 80px 32px 32px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .nav__link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
  }

  .nav__link--cta {
    text-align: center;
    margin-top: 16px;
  }

  .burger {
    display: flex;
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__features {
    gap: 16px;
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about__visual {
    grid-template-columns: 1fr;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .portfolio__item--wide {
    grid-column: span 1;
  }

  .portfolio__item--wide .portfolio__preview {
    aspect-ratio: 4/3;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--wide {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .contact__form {
    padding: 24px;
  }

  .floating-socials {
    bottom: 16px;
    right: 16px;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
  }

  .floating-btn svg {
    width: 20px;
    height: 20px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* Phone */
@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact__socials {
    flex-direction: column;
  }

  .social-link {
    justify-content: center;
  }

  .certificates__grid {
    grid-template-columns: 1fr;
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .stat__num {
    font-size: 1.5rem;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМ (будет показан как демо)
   ========================================================= */
.theme-switcher {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  margin-right: 8px;
  align-items: center;
}

.theme-switcher::before {
  content: '';
  width: 1px;
  height: 20px;
  background: var(--color-border);
  margin-right: 6px;
  order: -1;
}

.theme-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.theme-btn.active {
  border-color: var(--color-dark);
  transform: scale(1.15);
}

.theme-btn--default {
  background: #1A6B6B;
}

.theme-btn--marine {
  background: #4A8C9E;
}

.theme-btn--terra {
  background: #C48A7A;
}

.theme-btn--lavender {
  background: #8B7EAD;
}
