:root {
  --bg-main: #ffffff;        
  --bg-section: #f0f7ff;     
  --bg-card: #ffffff;        
  --text-main: #0a1a2e;      
  --text-muted: #4a6fa5;     

  --border: #c8d9f0;         
  --accent: #0066cc;         
  --accent-light: #3399ff;   
  --accent-dark: #0052a3;    
  --blue-gradient: linear-gradient(135deg, #0066cc 0%, #3399ff 50%, #66b3ff 100%);
  --light-blue: #e6f2ff;
  --sky-blue: #b3d9ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Arial, sans-serif;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f0f7ff 30%,
      #e6f2ff 60%,
      #ffffff 100%
    );
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 102, 204, 0.08);
  z-index: 100;
  transition: all 0.3s ease;
}

.header .container {
  padding: 18px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-img {
  height: 70px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.2));
  display: block;
  border-radius: 8px;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.logo:hover .logo-text {
  color: var(--accent-dark);
}

.header nav {
  display: flex;
  gap: 30px;
}

.header nav a {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.header nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-gradient);
  transition: width 0.3s ease;
}

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

.header nav a:hover::after {
  width: 100%;
}

.phone {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 16px;
  background: var(--light-blue);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.phone:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.nav a {
  margin: 0 15px;
  font-size: 16px;
  color: var(--text-muted);
}

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

.container {
  max-width: 1280px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  background:
    radial-gradient(
      ellipse 800px 600px at 70% 30%,
      rgba(51, 153, 255, 0.15),
      transparent 70%
    ),
    radial-gradient(
      ellipse 600px 500px at 20% 80%,
      rgba(102, 179, 255, 0.1),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f0f7ff 40%,
      #e6f2ff 70%,
      #ffffff 100%
    );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(51, 153, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--blue-gradient);
  opacity: 0.05;
  animation: float 15s ease-in-out infinite;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  animation-delay: 4s;
}

.decoration-shape {
  position: absolute;
  background: var(--blue-gradient);
  opacity: 0.04;
  border-radius: 20px;
  animation: float 12s ease-in-out infinite;
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 15%;
  transform: rotate(45deg);
  animation-delay: 1s;
}

.shape-2 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 5%;
  transform: rotate(-45deg);
  animation-delay: 3s;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease;
}

.hero-text p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
  margin-bottom: 30px;
}

.hero-image {
  margin-top: 30px;
  animation: fadeInUp 0.8s ease 0.3s both;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-tech-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
  transition: transform 0.3s ease;
}

.hero-tech-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 102, 204, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-catalog {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.12);
  animation: fadeInUp 0.8s ease 0.4s both;
}

#categories {
  scroll-margin-top: 90px;
}

.catalog-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: left;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-catalog ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-catalog li {
  margin-bottom: 12px;
}

.hero-catalog a {
  font-size: 16px;
  color: var(--text-main);
  padding: 14px 20px 14px 45px;
  position: relative;
  transition: all 0.3s ease;
  display: block;
  border-radius: 8px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 102, 204, 0.15);
}

.hero-catalog a::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--accent);
  display: block;
  transition: all 0.3s ease;
}

.hero-catalog a:hover {
  color: var(--accent);
  background: rgba(240, 247, 255, 0.8);
  padding-left: 50px;
  border-color: var(--accent-light);
}

.hero-catalog a:hover::before {
  background: var(--accent-dark);
  transform: translateY(-50%) scale(1.1);
}

.section {
  padding: 60px 20px;
  max-width: 1280px;
  margin: auto;
  position: relative;
}

.section.gray {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f0f7ff 30%,
      #e6f2ff 60%,
      #ffffff 100%
    );
  border-radius: 0;
}

.section h2 {
  font-size: 42px;
  margin-bottom: 30px;
  position: relative;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--blue-gradient);
  margin-top: 16px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

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

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.catalog-item {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 25px 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.catalog-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.catalog-item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 102, 204, 0.1));
}

.catalog-item span {
  display: block;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.catalog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2);
  border-color: var(--accent-light);
}

.catalog-item:hover::before {
  transform: scaleX(1);
}

.catalog-item:hover img {
  transform: scale(1.05);
}

.catalog-item:hover span {
  color: var(--accent);
}

.catalog-sidebar {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.85),
      rgba(244,247,251,0.9)
    );
  border-right: 1px solid var(--border);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}

.feature-item {
  position: relative;
  padding: 20px 25px 20px 55px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid var(--border);
  font-size: 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-main);
}

.feature-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--blue-gradient);
  display: block;
}

.feature-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
  border-color: var(--accent-light);
}

.footer {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 30px 20px;
  border-top: none;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.footer-logo:hover .footer-logo-img {
  opacity: 1;
}

.footer-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

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

/* Removed duplicate .section rule */

.section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-row.reverse {
  grid-template-columns: 1fr 1fr;
}

.section-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .section-row {
    grid-template-columns: 1fr;
  }

  .section-image img {
    height: 260px;
  }
}

.catalog-sidebar {
  position: fixed;
  top: 100px; /* ниже header */
  left: 0;
  width: 260px;
  padding: 20px;
  z-index: 90;
}

.catalog-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catalog-sidebar a {
  color: var(--text-muted);
  font-size: 14px;
  padding-left: 12px;
  border-left: 3px solid transparent;
  transition: 0.3s;
}

.catalog-sidebar a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  max-width: 900px;
  width: 90%;
  max-height: 95vh;
  padding: 30px;
  position: relative;
  border: none;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 102, 204, 0.3);
  animation: modalSlideIn 0.3s ease;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
}

.modal-content h3 {
  margin: 10px 0 15px;
  font-size: 24px;
  color: var(--text-main);
  text-align: center;
  width: 100%;
  padding-top: 10px;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--accent);
}

.modal-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--blue-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

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

  .hero-catalog {
    margin-top: 20px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .section h2 {
    font-size: 32px;
  }

  .header .container {
    flex-wrap: wrap;
    gap: 15px;
  }

  .header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .hero-tech-image {
    max-width: 100%;
  }

  .decoration-circle,
  .decoration-shape {
    opacity: 0.05;
  }

  .circle-1 {
    width: 200px;
    height: 200px;
  }

  .circle-2 {
    width: 150px;
    height: 150px;
  }

  .circle-3 {
    width: 100px;
    height: 100px;
  }

  .logo-img {
    height: 55px;
  }

  .logo-text {
    font-size: 22px;
  }

  .footer-logo-img {
    height: 50px;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
    padding: 20px 15px;
  }

  .modal-content img {
    max-height: 45vh;
    padding: 10px;
  }

  .modal-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
}

/* Contacts section styling */
#contacts {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border-radius: 20px;
  margin: 30px 20px;
  padding: 40px 30px;
}

#contacts h2 {
  text-align: center;
  margin-bottom: 30px;
}

#contacts p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
}

#contacts p:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
}

#contacts strong {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  min-width: 120px;
}

/* About section improvements */
#about p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 900px;
  margin-bottom: 30px;
}

/* Section about improvements */
.section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Map section styling */
.map-section {
  padding: 50px 20px;
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
}

.map-address {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.map-address p {
  margin: 0;
  font-size: 18px;
  color: var(--text-main);
}

.map-address strong {
  color: var(--accent);
  font-size: 20px;
}

.map-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
  border: 1px solid var(--border);
}

.map-wrapper iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .map-section {
    padding: 60px 15px;
  }

  .map-wrapper iframe {
    height: 400px;
  }

  .map-address strong {
    font-size: 18px;
  }
}

.category-section {
  scroll-margin-top: 120px;        
}

.category-section .catalog-grid {
  flex-grow: 0;
}

.catalog-item img {
  max-height: 240px;
}
