:root {
  --bg-color: #0a0a0a;
  --bg-secondary: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --accent-color: #2979ff;
  --accent-purple: #d500f9;
  --font-main: 'Inter', sans-serif;
  --font-logo: 'Montserrat', sans-serif;
  --nav-height: 80px;
}
p {
  font-size: 1rem;
}
a {
  text-decoration: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  /* Cinematic Background Gradient: Stronger spotlight effect */
  background: radial-gradient(circle at 50% 0%, #2a2a2a 0%, #000000 100%);
  background-attachment: fixed;
  /* Keeps gradient consistent while scrolling */
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
}

/* 
  ========================================
  2. LAYOUT UTILITIES
  ========================================
*/

.snap-container {
  width: 100%;
}

.snap-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* 
  ========================================
  3. HEADER
  ========================================
*/
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Glass Effect */
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -1px;
}

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

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-item {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav-item:hover {
  opacity: 1;
  color: var(--accent-color);
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: var(--accent-color);
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
  left: 0;
}

@keyframes softGlow {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(41, 121, 255, 0.4),
      0 0 20px rgba(41, 121, 255, 0.2);
    color: white;
  }

  50% {
    text-shadow:
      0 0 20px rgba(213, 0, 249, 0.6),
      0 0 40px rgba(213, 0, 249, 0.4);
    color: var(--accent-purple);
  }
}

/* Header Actions / CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-cta {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-purple));
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(41, 121, 255, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 121, 255, 0.5);
}

/* Mobile Hamburger (Equalizer) */
.hamburger {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  height: 30px;
  width: 35px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 4px;
  background: white;
  border-radius: 4px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Static Heights (Wave shape) */
.hamburger span:nth-child(1) {
  height: 12px;
}

.hamburger span:nth-child(2) {
  height: 24px;
}

.hamburger span:nth-child(3) {
  height: 16px;
}

.hamburger span:nth-child(4) {
  height: 20px;
}

/* Hover Animation */
@keyframes equalize {
  0%,
  100% {
    height: 10px;
  }

  50% {
    height: 28px;
  }
}

.hamburger:hover span {
  background: var(--accent-color);
  animation: equalize 0.6s infinite ease-in-out;
}

.hamburger:hover span:nth-child(1) {
  animation-delay: 0s;
}

.hamburger:hover span:nth-child(2) {
  animation-delay: 0.1s;
}

.hamburger:hover span:nth-child(3) {
  animation-delay: 0.2s;
}

.hamburger:hover span:nth-child(4) {
  animation-delay: 0.3s;
}

.hamburger.open span:nth-child(1),
.hamburger.open span:nth-child(4) {
  height: 0;
  width: 0;
  opacity: 0;
  margin: 0;
}

.hamburger.open span:nth-child(2) {
  height: 28px;
  width: 4px;
  transform: rotate(45deg) translate(2px, 0);
  background: white;
}

.hamburger.open span:nth-child(3) {
  height: 28px;
  width: 4px;
  transform: rotate(-45deg) translate(-3px, 0);
  background: white;
}

/* 
  ========================================
  4. MOBILE MENU
  ========================================
*/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu a {
  font-size: 2rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

/* 
  ========================================
  5. HERO SECTION
  ========================================
*/
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  text-align: center;
  background: transparent;
}

.hero-section::after {
  content: '';
  background-image: url(https://victorpainer.com/templates/main/imgs/grid.png);
  inset: 0px;
  background-repeat: repeat;
  border: 0px;
  background-size: 54px auto;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  opacity: 0.02;
  pointer-events: none;
}

#noisick {
  background-image: url('https://victorpainer.com/templates/main/imgs/grgr.gif');
  mix-blend-mode: overlay;
  opacity: 0.21;
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  inset: 0px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(41, 121, 255, 0.1) 0%,
    rgba(10, 10, 10, 0.4) 100%
  );
  pointer-events: none;
  z-index: 5;
}

.hero-content {
  z-index: 10;
  margin-bottom: 3rem;
  padding: 0 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 0px;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(to right, #4fc3f7, #e1bee7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  animation: bounce 2s infinite;
  z-index: 10;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* 
  ========================================
  6. CAROUSEL
  ========================================
*/
.carousel-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.carousel-text {
  position: absolute;
  top: 50%;
  left: 50%; /* ← обязательно */
  transform: translate(-50%, -50%);
  transition: opacity 1s ease-in-out;
  opacity: 0;
  pointer-events: none;
  max-width: 1200px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-text.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-overlay span {
  display: none;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 20;
}

.carousel-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.prev {
  left: 2rem;
}

.next {
  right: 2rem;
}

/* 
  ========================================
  7. WORK SECTION
  ========================================
*/
.work-section {
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.underline-accent {
  border-bottom: 4px solid var(--accent-color);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.project-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
}

.card-image {
  position: relative;
  aspect-ratio: 16/9;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s;
}

.project-card:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-info {
  padding: 1.5rem;
}

.card-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 1px;
}

.tag.purple {
  color: var(--accent-purple);
}

/*  ========================================
  8. SKILLS SECTION (ARSENAL)
  ========================================
*/
.skills-section {
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
  z-index: 1;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(41, 121, 255, 0.1);
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.skill-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: 700;
}

/* 
  ========================================
  9. REVIEWS SECTION (TESTIMONIALS)
  ========================================
*/
.reviews-section {
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.review-card {
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--accent-purple);
  padding: 2rem;
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author strong {
  display: block;
  font-size: 1rem;
  color: white;
}

.author span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #1a1a1a 0%, #0a0a0a 60%);
}

.contact-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  gap: 4rem;
  align-items: center;
}

.contact-text {
  flex: 1;
}

.contact-text h2 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.contact-text p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 400px;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary,
.btn-submit {
  background: var(--text-primary);
  color: var(--bg-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-submit:hover {
  transform: scale(1.05);
  background: var(--accent-color);
  color: white;
}

.btn-outline {
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

.contact-form {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 8px;
  color: white;
  font-family: var(--font-main);
  outline: none;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
}

.btn-submit {
  width: 100%;
  background: var(--accent-color);
  color: white;
}

/* 
  ========================================
  10. FOOTER
  ========================================
*/
.site-footer {
  padding: 3rem 2rem;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-logo);
  font-weight: 800;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
}

.social-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.social-link:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* 
  ========================================
  11. RESPONSIVE QUERIES
  ========================================
*/
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .carousel-container {
    height: 40vh;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .contact-text p {
    margin: 0 auto 2rem;
  }

  .contact-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .hidden-mobile-xs {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero Adjustments */
  .hero-section {
    justify-content: flex-start;
    padding-top: var(--nav-height);
    flex-direction: column;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .carousel-container {
    position: relative;
    inset: auto;
    width: 100%;
    height: 45vh;
    z-index: 1;
    margin-bottom: 2rem;
    order: -1;
  }

  .hero-content {
    z-index: 10;
    margin-bottom: auto;
    text-shadow: none;
  }

  .text-container {
    display: flex;
    width: 100%;
    height: 100%;
  }
  /* Work Section Adjustments */
  .project-grid {
    grid-template-columns: 1fr;
  }

  .work-section {
    padding: 0 0.5rem;
    display: block;
    padding-top: calc(var(--nav-height) + 2rem);
    text-align: center;
  }

  .section-header h2 {
    margin-top: 0;
    margin-bottom: 2rem;
  }

  /* Skills & Reviews Mobile */
  .skills-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skills-section,
  .reviews-section {
    padding: 4rem 1.5rem;
    display: block;
    overflow-y: auto;
    text-align: center;
  }

  /* Contact Section Adjustments */
  .contact-section {
    padding: 4rem 1.5rem;
    display: block;
    overflow-y: auto;
  }

  .contact-form {
    padding: 1.5rem;
    width: 100%;
  }

  /* Footer Mobile */
  .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .contact-text h2 {
    font-size: 2rem;
    /* Reduce form 4rem to 2rem on mobile */
  }
}

.project-card iframe {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.project-card .card-image {
  position: relative;
}

.project-card .play-icon {
  position: absolute;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.9);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.intro-section {
  padding: 80px 20px;
}
.intro-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.intro-left {
  flex: 1;
}

.intro-photo {
  z-index: 1;
  flex: 1;
  display: flex;
  justify-content: center;
}

.intro-photo img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  object-fit: cover;
}
/* Контейнер секции */
.container {
  max-width: 1200px;
  margin: 0 auto; /* центрирование */
  padding: 0 20px; /* отступы слева/справа */
}

/* Верхний блок: текст + фото */
.intro-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 4rem; /* отступ до скиллов */
}

.intro-left {
  flex: 1;
}

.intro-photo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.intro-photo img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  object-fit: cover;
}

/* Скиллы */
.skills-container {
  width: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  transition: all 0.3s;
  z-index: 1;
}

.skill-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: white;
}

.skill-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

.skill-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(41, 121, 255, 0.1);
}

/* Мобильная версия */
@media (max-width: 768px) {
  .intro-wrapper {
    flex-direction: column;
    text-align: center;
    align-items: center; /* <-- центрируем все колонки по горизонтали */
  }

  .intro-photo {
    margin-bottom: 20px;
    width: 100%; /* чтобы ограничить по ширине */
    display: flex;
    justify-content: center; /* центрируем картинку внутри блока */
  }

  .intro-photo img {
    max-width: 80%; /* или 100%, если хочешь растянуть на всю ширину контейнера */
    height: auto;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.intro-buttons {
  margin-top: 50px;
}

.intro-text {
  font-family: var(--font-main);
  font-size: 1.25rem;
}

.yt-link {
  color: white;
}

.yt-logo {
  margin-left: 4px;
  width: 26px;
  height: 18px;
}

.yt-block {
  display: flex;
  justify-content: left;
  align-items: center;
}

.yt-link:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .yt-block {
    justify-content: center;
  }
}

.tg-logo {
  margin-left: 4px;
  width: 20px;
  height: 20px;
}

.hello-text {
  margin-bottom: 15px;
}

#about::after {
  content: '';
  background-image: url(https://victorpainer.com/templates/main/imgs/grid.png);
  inset: 0px;
  background-repeat: repeat;
  border: 0px;
  background-size: 54px auto;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  opacity: 0.02;
  pointer-events: none;
}

.steps {
  width: min(55vw, 1600px);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 140px 20px;
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 140px;
}

.step.left {
  justify-content: flex-start;
}

.step.right {
  justify-content: flex-end;
}

.step-num {
  position: absolute;
  top: -140px;
  font-size: 140px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.step.left .step-num {
  left: 0;
}

.step.right .step-num {
  right: 0;
}

.step-content {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 720px;
}

.step.right .step-content {
  flex-direction: row-reverse;
}

.step-content img {
  width: 280px;
  height: 180px;
  object-fit: contain;
  filter: contrast(1.1);
}

.step-content p {
  max-width: 360px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.step-content strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Мобилка */
@media (max-width: 768px) {
  .step,
  .step.right {
    justify-content: flex-start;
  }

  .step-content,
  .step.right .step-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-num {
    font-size: 90px;
    top: -40px;
  }

  .step-content img {
    width: 100%;
    height: 200px;
  }
}

.vertical-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.vertical-video {
  flex: 1 1 300px; /* минимальная ширина 300px, растягивается */
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 9/16; /* вертикальный формат */
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.vertical-video h3 {
  margin-top: 1rem;
  font-weight: 700;
}

.vertical-video .tag {
  font-size: 0.9rem;
  color: #aaa;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .vertical-videos {
    flex-direction: column;
    align-items: center;
  }
}

.hshow-carousel {
  position: relative;
  max-width: 1100px;
  margin: 80px auto 0;
  overflow: hidden;
}

.hshow-track {
  display: flex;
  transition: transform 0.6s ease;
}

.hshow-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hshow-slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 2;
}

.hshow-prev {
  left: -20px;
}
.hshow-next {
  right: -20px;
}

@media (max-width: 768px) {
  .hshow-nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}

.work-section.horizontal {
  min-height: 75vh;
}

#steps {
  padding: 0 5%;
}

.section-container {
  width: min(92vw, 1600px);
  margin: 0 auto;
}

.order-section {
  padding: 140px 0;
  background: var(--bg-secondary);
}

.order-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.order-left {
  flex: 1;
  max-width: 650px;
}

.order-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  cursor: pointer; /* курсор как у кнопки */
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: radial-gradient(
    circle at center,
    rgba(41, 121, 255, 0.7) 0%,
    hsla(193, 97%, 48%, 0.7) 100%
  );
}

.order-title:hover {
  background: radial-gradient(
    circle at center,
    rgba(41, 121, 255, 0.8) 0%,
    hsla(193, 97%, 48%, 0.8) 100%
  );
  color: #fff;
  transform: scale(1.05);
}

.order-title .accent {
  color: #ffffff;
}

.order-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  line-height: 1.6;
}

.order-contacts {
  display: flex;
  gap: 20px;
}

.order-contacts .contact-icon img {
  width: 50px;
  height: 50px;
  transition: transform 0.25s ease;
}

.order-contacts .contact-icon:hover img {
  transform: scale(1.1);
}

.order-right img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  object-fit: cover;
}

/* Мобилка */
@media (max-width: 900px) {
  .order-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .order-right img {
    max-width: 300px;
  }

  .order-contacts {
    justify-content: center;
  }
}

.gmail-logo {
  width: 24px;
  height: 24px;
  margin-left: 5px;
}
