* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --green: #00ff88;
  --green-dark: #00cc6a;
  --gray: #1a1a1a;
  --gray-light: #2a2a2a;
  --text-gray: #a0a0a0;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.accent {
  color: var(--green);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-primary {
  background: var(--green);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--black);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

.lightbox {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  height:100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.lightbox-controls {
  display: flex;
  gap: 1rem;
}

.lightbox-controls button {
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  background: var(--green);
  color: var(--black);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
}


@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-gray);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -1px;
}

.about {
  padding: 8rem 0;
  background: var(--gray);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 3rem 2rem;
  background: var(--black);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--green);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.feature-icon {
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.8;
}

.services {
  padding: 8rem 0;
  background: var(--black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  padding: 2.5rem;
  background: var(--gray);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card.featured {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--gray) 0%, rgba(0, 255, 136, 0.05) 100%);
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--green);
  color: var(--black);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--green);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.service-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.service-price {
  font-size: 1rem;
  color: var(--text-gray);
}

.service-price span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  display: block;
}

.service-description {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
}

.service-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: bold;
  margin-right: 0.75rem;
}

.portfolio {
  padding: 8rem 0;
  background: var(--gray);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* заполняет блок, не искажая */
  transition: transform 0.5s;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--text-gray);
}

.testimonials {
  padding: 8rem 0;
  background: var(--black);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2.5rem;
  background: var(--gray);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--green);
  transform: translateY(-5px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--green);
}

.testimonial-header h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.testimonial-header p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.testimonial-text {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-rating {
  color: var(--green);
  font-size: 1.2rem;
}

.contact {
  padding: 8rem 0;
  background: var(--gray);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item svg {
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-gray);
}

.telegram-widget {
  text-align: center;
  padding: 3rem;
  background: var(--black);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 16px;
}

.telegram-widget svg {
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.telegram-widget h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.telegram-widget p {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.footer {
  background: var(--black);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-gray);
  line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--green);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
  border-radius: 50%;
  color: var(--text-gray);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--green);
  color: var(--black);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: var(--green);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .container {
    padding: 0 1.5rem;
  }

  .features,
  .services-grid,
  .portfolio-grid,
  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  .about,
  .services,
  .portfolio,
  .testimonials,
  .contact {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
