:root {
  --accent: #0066FF;
  --bg-dark: #0A0A0A;
  --bg-light: rgba(255,255,255,0.08);
  --text-light: #F5F5F5;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: var(--bg-dark);
  color: var(--text-light);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

header {
    position: fixed;
    top: 1px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  color: var(--text-light);
  margin-left: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

section {
  position: relative;
  padding: 120px 5%;
  overflow: hidden;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  transform: translateZ(0);
}

h2 {
  text-align: center;
  margin: 0 auto 80px;
  font-size: 2.8em;
  max-width: 1200px;
  position: relative;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4em;
  line-height: 1.1;
  margin: 0;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
}

.hero p {
  font-size: 1.3em;
  color: #DDD;
  margin: 30px 0 50px;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.2s forwards;
}

.cta-group {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.4s forwards;
}

.cta-btn {
  padding: 18px 45px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1em;
}

.cta-primary {
  background: var(--accent);
  color: #FFF;
  border: 2px solid var(--accent);
}

.cta-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid rgba(255,255,255,0.15);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,102,255,0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 100px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.6s forwards;
}

.stat-card {
  padding: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-text {
  font-size: 1em;
  color: #CCC;
  letter-spacing: 0.5px;
}

/* Services Section */
.services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(40px);
  border: 1px solid rgba(255,255,255,0.1);
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.12);
}

.card h3 {
  color: #FFF;
  margin: 0 0 20px;
  font-size: 1.5em;
}

.card p {
  color: #CCC;
  line-height: 1.7;
  font-size: 1em;
}


.slider-wrapper {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.4);
}

.slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 20px;
  gap: 20px;
}



/* Contact Section */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  padding: 50px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.form-group {
  margin-bottom: 25px;
}

input, textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(0,0,0,0.3);
  color: white;
  font-size: 1em;
  transition: all 0.3s;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
}

button[type="submit"] {
  background: var(--accent);
  color: white;
  padding: 18px 45px;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,102,255,0.3);
}

footer {
  text-align: center;
  padding: 40px 5%;
  background: rgba(0,0,0,0.5);
  margin-top: 100px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#services {
  position: relative;
  overflow: hidden;
}

#services .bg {
  background-image: url('/img/1.jpg');
  filter: brightness(0.3) contrast(1.2);
}

#services .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

#services .card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(50px);
  opacity: 0;
  position: relative;
  overflow: hidden;
}

#services .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.1),
    transparent
  );
  transition: 0.6s;
}

#services .card:hover::before {
  left: 100%;
}

#services .card.show {
  opacity: 1;
  transform: translateY(0);
}

#services .card:hover {
  transform: translateY(-10px) scale(1.03);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 12px 40px rgba(0,102,255,0.15);
}

#services .card h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.6em;
  position: relative;
  z-index: 1;
}

#services .card p {
  color: #EEE;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Стили для портфолио */
#portfolio {
  position: relative;
  padding: 100px 5%;
  background: var(--bg-dark);
}

#portfolio .bg {
  background-image: url('/img/1.jpg');
  filter: brightness(0.25) contrast(1.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 400px;
}

.portfolio-image {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1; /* Всегда видим оверлей */
  transition: opacity 0.3s;
}

.overlay h3 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 1.4em;
}

.overlay p {
  color: #ddd;
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
}

.load-more {
  margin: 40px auto 0;
  padding: 15px 45px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: block;
}


/* Добавляем fallback для изображений */
.portfolio-image::after {
  content: "Изображение проекта";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.3);
  font-size: 1.2em;
  text-align: center;
  z-index: -1;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.contact-info {
  padding: 40px;
  background: rgba(0,0,0,0.7);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.contact-info h2,
.contact-form h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #fff;
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.contact-item i {
  font-size: 1.5em;
  width: 30px;
  color: var(--accent);
}

.contact-form {
  background: rgba(255,255,255,0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 25px;
}

input, textarea {
  width: -webkit-fill-available;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 1em;
}

button[type="submit"] {
  background: var(--accent);
  color: white;
  padding: 18px 45px;
  width: 100%;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s;
}


.hero {
    position: relative;
    min-height: 100vh;
    padding: 20px 5% 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url(/img/irbg.png);
    background-size: cover;
}
.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00081d 0%, #001a38 100%);
  z-index: 1;
}

.geometric-pattern {
/*   position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0,102,255,0.1) 0%, transparent 30%),
    linear-gradient(45deg, transparent 60%, rgba(0,102,255,0.08) 100%);
  z-index: 2; */
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.content-wrapper {
  max-width: 800px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}

.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
    padding: 1em 2em;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn.primary {
  background: #0066ff;
  color: white;
  border: 2px solid #0066ff;
}

.cta-btn.primary:hover {
  background: #005ce6;
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
}

.cta-btn.secondary:hover {
  border-color: #0066ff;
  background: rgba(0,102,255,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 80px;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(12px);
}

.stat-value {
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
}

.stat-divider {
  width: 60px;
  height: 2px;
  background: #0066ff;
  margin: 15px 0;
}

.stat-description {
  color: rgba(255,255,255,0.8);
  font-size: 1.1em;
  margin: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    conic-gradient(
      from 230deg at 30% 40%,
      oklch(63.01% 0.236 307.63) 0%,
      oklch(42.39% 0.289 255.69) 35%,
      oklch(42.39% 0.31 295.69) 70%,
      oklch(63.01% 0.41 307.63) 100%
    ),
    url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.004.01" numOctaves="3"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  mix-blend-mode: exclusion;
  mask: linear-gradient(
    to right,
    rgba(0,0,0,0.8) 0%,
    transparent 50%,
    rgba(0,0,0,0.8) 100%
  );
  animation: quantum 18s linear infinite;
}

@keyframes quantum {
  100% {
    background-position: 
      0 calc(100% * 3),
      0 0;
  }
}



@media (hover: hover) {
  .overlay {
    opacity: 0;
  }
  
  .portfolio-item:hover .overlay {
    opacity: 1;
  }
}


@media (max-width: 1024px) {
	#services .grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 100px 5% 60px;
	}
  
	.stats-grid {
		margin-top: 60px;
		gap: 20px;
	}
  
	.stat-card {
		padding: 25px;
	}
  
	.cta-group {
		flex-direction: column;
		width: 100%;
	}
  
	.cta-btn {
		justify-content: center;
		width: 100%;
	}

  .contact-container {
    grid-template-columns: 1fr;
    padding: 40px 15px;
  }
  
  .contact-info, .contact-form {
    padding: 30px;
  }

  header {
    padding: 15px 5%;
  }
  
  nav a {
    margin-left: 20px;
    font-size: 0.9em;
  }
  
  .hero h1 {
    font-size: 2.5em;
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
  
  .portfolio-item {
    min-width: 85%;
  }
  

  #services .grid {
    grid-template-columns: 1fr;
  } 
  
  .portfolio-item {
    height: 300px;
  }
  
  .overlay {
    padding: 15px;
  }
	.cta-btn {
		padding: 1em 0em;
	}
  
}


@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
}


@media only screen and (max-width: 1360px) {
    .content-wrapper {
        margin-top: 50px;
    }
}

.contact-item a {
	color:#fff!important;
	text-decoration:none!important;
}