/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-color: #0a0a0f;
  --secondary-color: #1a1a2e;
  --accent-color: #00d9ff;
  --accent-color-2: #ff2e88;
  --neon-glow: 0 0 20px rgba(0, 217, 255, 0.5);
  --text-color: #e0e0e0;
  --text-muted: #8a8a8a;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--primary-color);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 46, 136, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 217, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
  color: white;
  padding: 16px 36px;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--neon-glow);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn:hover::before { left: 100%; }

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.7);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.logo:hover::after { transform: scaleX(1); }
.logo span { color: var(--accent-color-2); }

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
  transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 25px;
  color: white;
  line-height: 1;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--text-muted);
  max-width: 600px;
}

.divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
  margin: 40px 0;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
  z-index: 1;
}

.grid-line { position: absolute; background: rgba(0, 217, 255, 0.1); }
.grid-line.vertical { width: 1px; height: 100%; top: 0; }
.grid-line.horizontal { height: 1px; width: 100%; left: 0; }

/* Portfolio Section */
.portfolio {
  padding: 120px 0;
  position: relative;
}

.section-title {
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Premium 2x2 grid: 1 2 / 3 4 */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 380px 300px; /* верхний ряд выше, нижний ниже */
  gap: 22px;
  margin-bottom: 80px;
  align-items: stretch;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  background: var(--secondary-color);

  /* premium look */
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Чёткая раскладка 1 2 / 3 4 */
.portfolio-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; transform: translateY(-6px); }
.portfolio-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; transform: translateY(0px);  }
.portfolio-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; transform: translateY(6px);  }
.portfolio-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; transform: translateY(2px);  }

/* Мягкая подсветка при hover */
.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 217, 255, 0.10), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255, 46, 136, 0.08), transparent 45%);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover::after {
  opacity: 1;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: grayscale(30%);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* hover (перебивает translateY от nth-child аккуратно) */
.portfolio-item:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 217, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.portfolio-overlay h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: white;
}

.portfolio-overlay p {
  font-size: 1rem;
  opacity: 0.9;
  color: var(--text-color);
}

.portfolio-overlay .tech-tags {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.tech-tag {
  background: rgba(0, 217, 255, 0.2);
  color: var(--accent-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 217, 255, 0.3);
}

/* Features */
.features {
  padding: 100px 0;
  background: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(255, 46, 136, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  transition: 0.5s;
}

.feature-item:hover::before { left: 100%; }

.feature-item:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 25px; color: var(--accent-color); }
.feature-item h3 { font-size: 1.4rem; margin-bottom: 15px; color: white; }
.feature-item p { color: var(--text-muted); line-height: 1.7; }

/* About Section */
.about { padding: 120px 0; position: relative; }

.about-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.about h2 { font-size: 3rem; margin-bottom: 25px; color: white; }

.about p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-muted);
  max-width: 600px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background: var(--secondary-color);
  position: relative;
}

.contact-content {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

.contact h2 { font-size: 3rem; margin-bottom: 25px; color: white; }

.contact p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Section */
.services { padding: 120px 0; display: none; }
.services.active { display: block; }

/* Services&Pricing: CTA button full width like pricing */
.service-cta{
  width: 100%;
  justify-content: center;
  margin-top: auto;     /* <-- главное: прижимает кнопку вниз */
}

/* Чуть более “pricing-like” вид карточек services */
.service-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-note{
  margin-top: 10px;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color), var(--accent-color-2));
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* фиксируем высоту заголовка (2 строки), чтобы цены были на одном уровне */
.service-card h3{
  font-size: 1.5rem;
  color: white;
  margin-bottom: 15px;

  line-height: 1.15;
  min-height: calc(1.15em * 2);   /* 2 строки */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;          /* максимум 2 строки */
  overflow: hidden;
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 20px 0 10px;
  font-family: 'Space Grotesk', sans-serif;
}

/* Services cards: equalize content so prices align */
.service-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Description (the first <p> in card) — same height in all cards */
.service-card > p:not(.service-note){
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;     /* сколько строк описания */
  overflow: hidden;
  min-height: calc(1.7em * 4); /* гарантирует одинаковую высоту даже если текста меньше */
}

/* Price always in same place */
.service-price{
  margin-top: 18px;
}

/* Note is separate and can also be fixed height (optional but helps) */
.service-note{
  color: var(--text-muted);
  margin-top: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.6em * 2);
}

/* Button stays at bottom */
.service-cta{
  width: 100%;
  justify-content: center;
  margin-top: auto;
}


/* Pricing Section */
.pricing { padding: 120px 0; display: none; }
.pricing.active { display: block; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.pricing-card {
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--accent-color);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured:hover { transform: scale(1.05) translateY(-10px); }

.pricing-card h3 { font-size: 1.8rem; margin-bottom: 20px; color: white; }

.pricing-price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 30px 0 10px;
  font-family: 'Space Grotesk', sans-serif;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.pricing-features {
  text-align: left;
  margin: 30px 0;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.pricing-features li i {
  color: var(--accent-color);
  margin-right: 12px;
  font-size: 1.1rem;
}

.pricing-features li.disabled { color: var(--text-muted); }
.pricing-features li.disabled i { color: var(--text-muted); }

/* Testimonials Section */
.testimonials-section {
  padding: 120px 0;
  background: var(--secondary-color);
  display: none;
}

.testimonials-section.active { display: block; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.testimonial-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 25px;
  line-height: 1.7;
  color: var(--text-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-info h4 { font-size: 1.1rem; margin-bottom: 5px; color: white; }
.testimonial-info p { font-size: 0.9rem; color: var(--text-muted); }

/* Contact Form Section */
.contact-form-section { padding: 120px 0; display: none; }
.contact-form-section.active { display: block; }

.contact-form-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  margin-top: 60px;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item { display: flex; align-items: center; margin-bottom: 25px; }

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.info-content h4 { font-size: 1.1rem; margin-bottom: 5px; color: white; }
.info-content p { color: var(--text-muted); }

.form-group { margin-bottom: 25px; }

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  border-radius: 4px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.1);
}

textarea.form-control { min-height: 150px; resize: vertical; }

/* Footer */
footer {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--accent-color); }

/* Responsive */
@media (max-width: 1200px) {
  .hero h1 { font-size: 3.8rem; }

  /* оставляем премиум 2x2, просто чуть ниже высоты */
  .portfolio-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 340px 280px;
    gap: 22px;
  }
}


@media (max-width: 992px) {
  .hero { padding-top: 150px; padding-bottom: 80px; }
  .hero h1 { font-size: 3.2rem; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 320px);
    gap: 30px;
  }

  .portfolio-item:nth-child(1),
  .portfolio-item:nth-child(2),
  .portfolio-item:nth-child(3),
  .portfolio-item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .navbar { padding: 20px 0; }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary-color);
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    transition: var(--transition);
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }

  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .section-title h2 { font-size: 2.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-rows: repeat(4, 300px); }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 2.2rem; }
  .section-title h2 { font-size: 1.8rem; }
  .portfolio-grid { grid-template-rows: repeat(4, 250px); }
  .pricing-card { padding: 40px 25px; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.fade-in { animation: fadeUp 0.8s ease forwards; }

.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text:hover::before,
.glitch-text:hover::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text:hover::before {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  color: var(--accent-color);
  z-index: -1;
}

.glitch-text:hover::after {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite reverse;
  color: var(--accent-color-2);
  z-index: -2;
}

/* ===== Custom Select (animated, site style) ===== */
.customSelect{
  position: relative;
  width: 100%;
}

/* прячем нативный select, но оставляем в DOM для value/submit */
.customSelect select.js-custom-select{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* Кнопка-триггер выглядит как input */
.customSelect__trigger{
  width: 100%;
  padding: 15px 48px 15px 15px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  position: relative;
}

/* glow on focus like your inputs */
.customSelect__trigger:focus{
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0,217,255,0.10);
}

/* стрелка */
.customSelect__trigger::after{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0,217,255,0.9);
  border-bottom: 2px solid rgba(0,217,255,0.9);
  transform: translateY(-60%) rotate(45deg);
  transition: var(--transition);
}

/* Панель выпадающего списка */
.customSelect__panel{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(10,10,15,0.92);
  border: 1px solid rgba(0,217,255,0.18);
  border-radius: 10px;
  overflow: hidden;
  z-index: 50;

  /* анимация */
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  max-height: 0;
  transition: opacity .18s ease, transform .18s ease, max-height .22s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

/* Открыто */
.customSelect.is-open .customSelect__panel{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  max-height: 280px; /* лимит высоты, дальше скролл */
}

.customSelect.is-open .customSelect__trigger::after{
  transform: translateY(-40%) rotate(-135deg);
}

/* Список опций */
.customSelect__list{
  max-height: 280px;
  overflow: auto;
}

/* опция */
.customSelect__option{
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--text-color);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.customSelect__option:hover{
  background: rgba(0,217,255,0.10);
}

.customSelect__option.is-selected{
  background: linear-gradient(90deg, rgba(0,217,255,0.15), rgba(255,46,136,0.10));
  border-left: 2px solid var(--accent-color);
}

/* скроллбар под стиль */
.customSelect__list::-webkit-scrollbar{ width: 10px; }
.customSelect__list::-webkit-scrollbar-thumb{
  background: rgba(0,217,255,0.18);
  border-radius: 999px;
  border: 2px solid rgba(10,10,15,0.92);
}
.customSelect__list::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.03);
}

/* ===== Legal Modals (site style) ===== */
body.modal-open{
  overflow: hidden;
}

.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 2000;
  padding: 22px;
}

.modalOverlay.active{
  opacity: 1;
  pointer-events: auto;
}

.modal{
  width: min(920px, 96vw);
  max-height: 86vh;
  background: rgba(10,10,15,0.92);
  border: 1px solid rgba(0,217,255,0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);

  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

.modalOverlay.active .modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.modal__header::before{
  content:'';
  position:absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
}

.modal__title{
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 6px;
}

.modal__subtitle{
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal__close{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,217,255,0.22);
  background: rgba(255,255,255,0.03);
  color: var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal__close:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0,217,255,0.25);
  border-color: rgba(0,217,255,0.35);
}

.modal__body{
  padding: 18px 22px 22px;
  overflow: auto;
  max-height: calc(86vh - 88px);
}

/* Legal list */
.legalList{
  padding-left: 18px;
  margin: 0;
}

.legalList li{
  margin: 10px 0;
  color: var(--text-color);
  line-height: 1.7;
}

.legalList li strong{
  color: #fff;
}

/* Contact block at bottom */
.legalContact{
  margin-top: 18px;
  padding: 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.legalContact h4{
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.legalContact p{
  color: var(--text-muted);
  margin: 6px 0;
}

/* ===== Portfolio Gallery (site style) ===== */
.portfolio-item{ cursor: pointer; }
.portfolio-item:focus{ outline: 2px solid rgba(0,217,255,0.35); outline-offset: 6px; }

.galleryOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 3000;

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.galleryOverlay.active{
  opacity: 1;
  pointer-events: auto;
}

.galleryModal{
  width: min(1100px, 96vw);
  max-height: 88vh;
  background: rgba(10,10,15,0.92);
  border: 1px solid rgba(0,217,255,0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.65);

  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

.galleryOverlay.active .galleryModal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.galleryHeader{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.galleryHeader::before{
  content:'';
  position:absolute;
  left:0; top:0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
}

.galleryTitle{
  color:#fff;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.gallerySubtitle{
  color: var(--text-muted);
  font-size: 0.95rem;
}

.galleryClose{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,217,255,0.22);
  background: rgba(255,255,255,0.03);
  color: var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.galleryClose:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0,217,255,0.25);
  border-color: rgba(0,217,255,0.35);
}

.galleryMain{
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 10px;
}

.galleryFigure{
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.galleryFigure img{
  width: 100%;
  height: min(56vh, 560px);
  object-fit: cover;
  display: block;
}

.galleryCaption{
  padding: 10px 12px 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.galleryNav{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(0,217,255,0.22);
  background: rgba(255,255,255,0.03);
  color: var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
  display: grid;
  place-items: center;
}

.galleryNav:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0,217,255,0.22);
  border-color: rgba(0,217,255,0.35);
}

.galleryThumbs{
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  overflow: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.galleryThumb{
  width: 120px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  flex: 0 0 auto;
  transition: var(--transition);
}

.galleryThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: grayscale(15%);
}

.galleryThumb:hover{
  transform: translateY(-2px);
  border-color: rgba(0,217,255,0.35);
}

.galleryThumb.active{
  border-color: rgba(0,217,255,0.55);
  box-shadow: 0 0 0 2px rgba(0,217,255,0.12);
}

@media (max-width: 768px){
  .galleryMain{ grid-template-columns: 44px 1fr 44px; }
  .galleryThumb{ width: 96px; height: 60px; }
  .galleryFigure img{ height: min(48vh, 420px); }
}

/* ===== Gallery Work Mockups (portfolio works) ===== */
.galleryWork{
  width: 100%;
  height: min(56vh, 560px);
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(circle at 20% 10%, rgba(0,217,255,0.12), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(255,46,136,0.10), transparent 55%),
              rgba(255,255,255,0.01);
}

/* общий “экран” */
.workFrame{
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,15,0.65);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  overflow: hidden;
  position: relative;
}

.workFrame::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(135deg, rgba(0,217,255,0.10), transparent 35%),
              linear-gradient(315deg, rgba(255,46,136,0.10), transparent 40%);
  opacity: .75;
}

/* верхняя панель мокапа */
.workTopbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.workBrand{
  display:flex;
  align-items:center;
  gap: 10px;
  color:#fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.workDot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
  box-shadow: 0 0 14px rgba(0,217,255,0.35);
}

.workTabs{
  display:flex;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.workTabs span{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

/* сетки блоков внутри мокапа */
.workGrid{
  display:grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.workGrid.cols2{ grid-template-columns: 1.2fr .8fr; }
.workGrid.cols3{ grid-template-columns: repeat(3, 1fr); }
.workGrid.mobile{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.workGrid.shop{ grid-template-columns: 1fr 1fr; }

.workCard{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  overflow:hidden;
  position:relative;
}

.workCard.pad{ padding: 12px; }

.workKpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi{
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.kpi .v{
  font-family:'Space Grotesk',sans-serif;
  font-weight:800;
  color:#fff;
  font-size: 1.2rem;
}
.kpi .l{
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: 4px;
}

.workChart{
  height: 160px;
  display:flex;
  align-items:flex-end;
  gap: 6px;
  padding: 12px;
}
.bar{
  width: 10%;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(0,217,255,0.95), rgba(255,46,136,0.65));
  box-shadow: 0 0 14px rgba(0,217,255,0.18);
  opacity: .95;
}

/* “мобайл экран” */
.phone{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  padding: 10px;
  height: 100%;
}
.phoneScreen{
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(10,10,15,0.7);
  overflow:hidden;
}
.phoneHeader{
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.badge{
  font-size: .8rem;
  color: var(--accent-color);
  border: 1px solid rgba(0,217,255,0.25);
  background: rgba(0,217,255,0.08);
  padding: 5px 10px;
  border-radius: 999px;
}
.list{
  padding: 12px;
  display:grid;
  gap: 10px;
}
.row{
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  display:flex;
  justify-content:space-between;
  align-items:center;
  color: var(--text-color);
}

/* “иллюстрация/дизайн-система” */
.swatches{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.sw{
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.sw:nth-child(1){ background: rgba(0,217,255,0.22); }
.sw:nth-child(2){ background: rgba(255,46,136,0.20); }
.sw:nth-child(3){ background: rgba(255,255,255,0.06); }
.sw:nth-child(4){ background: rgba(0,217,255,0.10); }
.sw:nth-child(5){ background: rgba(255,46,136,0.10); }
.sw:nth-child(6){ background: rgba(255,255,255,0.03); }

.iconGrid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.ic{
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  position: relative;
}
.ic::after{
  content:'';
  position:absolute;
  inset: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,217,255,0.22);
  background: linear-gradient(135deg, rgba(0,217,255,0.08), rgba(255,46,136,0.06));
}

/* e-commerce */
.prodGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.prod{
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.prod .img{
  height: 70px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,217,255,0.10), rgba(255,46,136,0.10));
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 10px;
}
.prod .t{ color:#fff; font-weight:700; font-size: .95rem; }
.prod .p{ color: var(--accent-color); font-weight:800; margin-top: 6px; }

.logo{
  display:flex;
  align-items:center;
  gap:10px;              /* было 12px — ближе к тексту */
}

.logo-mark-svg{
  width: 76px;           /* больше */
  height: 40px;          /* больше */
  display:inline-flex;
  align-items:center;
  margin-right: 2px;     /* чуть ближе */
}

.logo-mark-svg svg{
  width:100%;
  height:100%;
  display:block;
}

