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

/* Base font size for rem calculations */
html {
  font-size: 16px; /* Base size for desktop */
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
}

/* Responsive rem adaptation - scales all rem units proportionally */
@media (max-width: 1200px) {
  html {
    font-size: 15px; /* Slightly smaller for tablets */
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px; /* Smaller for mobile devices */
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px; /* Even smaller for small mobile devices */
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px; /* Minimum size for very small screens */
  }
}

/* #region АНИМАЦИИ ПОЯВЛЕНИЯ СЕКЦИЙ */
/* Базовые анимации для секций */
.animate-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.animate-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Анимация слайда слева */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Анимация слайда справа */
.animate-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Анимация масштабирования */
.animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease-out;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Анимация поворота */
.animate-rotate {
  opacity: 0;
  transform: rotateY(90deg);
  transition: all 0.8s ease-out;
}

.animate-rotate.visible {
  opacity: 1;
  transform: rotateY(0deg);
}

/* Анимация для элементов с задержкой */
.animate-delay-1 {
  transition-delay: 0.1s;
}

.animate-delay-2 {
  transition-delay: 0.2s;
}

.animate-delay-3 {
  transition-delay: 0.3s;
}

.animate-delay-4 {
  transition-delay: 0.4s;
}

.animate-delay-5 {
  transition-delay: 0.5s;
}

/* #endregion */

/* #region ЛОГОТИП */
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #333;
  position: relative;
  letter-spacing: -0.5px;
}

.logo .accent {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo .accent::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  margin-top: 4px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* #endregion */

/* #region НАВИГАЦИЯ */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.8s ease-out;
  transform: translateY(-100%);
  opacity: 0;
}

.navbar.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Ensure hamburger is always accessible on mobile */
@media (max-width: 820px) {
  .navbar {
    /* On mobile, keep navbar partially visible for hamburger access */
    transform: translateY(-80%);
  }
  
  .navbar.visible {
    transform: translateY(0);
  }
  
  .navbar .hamburger {
    /* Ensure hamburger is always visible and clickable */
    position: relative;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

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

/* .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
} */

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ff6b6b;
}

/* Гамбургер */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger active state animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1000px) {
  .nav-links {
    gap: 10px;
  }
}

@media (max-width: 820px) {
  .nav-links {
    gap: 5px;
  }

}

/* Адаптивность */
@media (max-width: 820px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    /* фиксированное положение на экране */
    top: 250px;
    /* центр по вертикали */
    right: 0;
    transform: translateX(100%) translateY(-50%);
    /* скрываем за экраном справа и центрируем по вертикали */

    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    gap: 30px;
    width: 200px;
    padding: 20px;
    border-radius: 8px 0 0 8px;
    /* закругляем левый угол */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  /* Когда меню открыто */
  .nav-links.show {
    transform: translateX(0) translateY(-50%);
  }

  /* общий контейнер для других секций */
  .container:not(.navbar .container) {
    flex-direction: column;
    gap: 30px;
  }

  /* навигация остаётся горизонтальной или управляется отдельно */
  .navbar .container {
    flex-direction: row;
    /* явно задаём */
    gap: 20px;
  }
}

/* #endregion */

/* #region HERO SECTION */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  align-items: center;
}

/* Left side: Hero image */
.hero-image {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease-out;
}

.image-placeholder.animate-image {
  opacity: 0;
  transform: scale(1.1);
  transition: all 0.8s ease-out;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(42, 42, 42, 0.6)); */
  z-index: 1;
}

/* Right side: Content */
.hero-content {
  padding: 60px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1f1f1f 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-text {
  margin-bottom: 40px;
}

.hero-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: #b0b0b0;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  transition-delay: 0.2s;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #d0d0d0;
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  transition-delay: 0.4s;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  transition-delay: 0.6s;
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.8s ease-out;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff4757, #ff3742);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  padding: 15px 30px;
  border: 2px solid #555555;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.8s ease-out;
}

.btn-secondary:hover {
  background: #555555;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(85, 85, 85, 0.3);
}

/* Animation trigger */
.hero.loaded .animate-text-1,
.hero.loaded .animate-text-2,
.hero.loaded .animate-text-3,
.hero.loaded .animate-text-4 {
  opacity: 1;
  transform: translateY(0);
}

.hero.loaded .animate-image {
  opacity: 1;
  transform: scale(1);
}

/* Responsive design */
@media (max-width: 1024px) {
  .hero-content {
    padding: 40px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-name {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    grid-template-rows: 100%;
  }
  
  .hero-content {
    padding: 30px 20px;
    background: url('./img/nastya-3.jpg') center/cover no-repeat;
  }

  .hero-image {
    display: none;;
  }
  
  .hero-title {
    text-align: center;
    font-size: 2.2rem;
    /* Text outline for better readability */
    text-shadow: 
      -1px -1px 0 rgba(0, 0, 0, 0.8),
      1px -1px 0 rgba(0, 0, 0, 0.8),
      -1px 1px 0 rgba(0, 0, 0, 0.8),
      2px 2px 0 rgba(0, 0, 0, 0.8);
  }
  
  .hero-name {
    text-align: center;
    font-size: 1.4rem;
    /* Text outline for better readability */
    text-shadow: 
      -1px -1px 0 rgba(0, 0, 0, 0.8),
      1px -1px 0 rgba(0, 0, 0, 0.8),
      -1px 1px 0 rgba(0, 0, 0, 0.8),
      2px 2px 0 rgba(0, 0, 0, 0.8);
  }
  
  .hero-subtitle {
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    /* Text outline for better readability */
    text-shadow: 
      -1px -1px 0 rgba(0, 0, 0, 0.8),
      1px -1px 0 rgba(0, 0, 0, 0.8),
      -1px 1px 0 rgba(0, 0, 0, 0.8),
      2px 2px 0 rgba(0, 0, 0, 0.8);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-primary,
  .btn-secondary {
    text-align: center;
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-container {
    grid-template-rows: 100%;
  }
  
  .hero-content {
    padding: 20px 15px;
  }
  
  .hero-title {
    font-size: 1.8rem;
    /* Enhanced text outline for mobile visibility */
    text-shadow: 
      -1px -1px 0 rgba(0, 0, 0, 0.9),
      1px -1px 0 rgba(0, 0, 0, 0.9),
      -1px 1px 0 rgba(0, 0, 0, 0.9),
      2px 2px 0 rgba(0, 0, 0, 0.9);
  }
  
  .hero-name {
    font-size: 1.2rem;
    /* Enhanced text outline for mobile visibility */
    text-shadow: 
      -1px -1px 0 rgba(0, 0, 0, 0.9),
      1px -1px 0 rgba(0, 0, 0, 0.9),
      -1px 1px 0 rgba(0, 0, 0, 0.9),
      2px 2px 0 rgba(0, 0, 0, 0.9);
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    /* Enhanced text outline for mobile visibility */
    text-shadow: 
      -1px -1px 0 rgba(0, 0, 0, 0.9),
      1px -1px 0 rgba(0, 0, 0, 0.9),
      -1px 1px 0 rgba(0, 0, 0, 0.9),
      2px 2px 0 rgba(0, 0, 0, 0.9);
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* #endregion */

/* #region PORTFOLIO SECTION */
.portfolio {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.portfolio h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-link {
  display: block;
  /* чтобы блок вел себя как ссылка */
  text-decoration: none;
  /* убрать подчеркивание */
  color: inherit;
  /* сохранить цвет текста */
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  height: 440px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .portfolio h2 {
    font-size: 2rem;
  }
}

/* #endregion */

/* #region ABOUT SECTION */
.about {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1f1f1f 100%);
}

.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.about-image img:hover {
  /* transform: scale(1.05) rotate(360deg); */
  transition: transform 0.8s ease;
}

.about-text {
  flex: 2 1 400px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #cbd5e1;
}

.skills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  padding: 0;
  margin-top: 30px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.8s ease-out, box-shadow 0.8s ease-out;
}

.skill:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.ring {
  width: 9rem;
  height: 9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ff6b6b calc(var(--p) * 1%), #f0f0f0 0);
  position: relative;
  margin-bottom: 15px;
  animation: progress-fill 2s ease-out;
}

.ring::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  background: #1a1a1a;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.value {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.3;
  max-width: 150px;
}

/* @keyframes progress-fill {
    from {
      background: conic-gradient(#ff6b6b 0%, #f0f0f0 0);
    }
    to {
      background: conic-gradient(#ff6b6b calc(var(--p) * 1%), #f0f0f0 0);
    }
  } */

@media (prefers-reduced-motion: reduce) {
  .ring {
    animation: none;
  }

  .skill {
    transition: none;
  }
}

@media (max-width: 768px) {
  .skills {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }

  .ring {
    width: 7.5rem;
    height: 7.5rem;
  }

  .value {
    font-size: 1.3rem;
  }

  .label {
    font-size: 0.8rem;
    max-width: 120px;
  }
}

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

  .ring {
    width: 6.5rem;
    height: 6.5rem;
  }

  .value {
    font-size: 1.2rem;
  }

  .label {
    font-size: 0.75rem;
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 30px;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}

/* #endregion */

/* #region SERVICES SECTION */
.services {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.service-item {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.8s ease-out;
  background-image: none;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1f1f1f 100%);
  background-color: transparent;
}

.service-item:hover h3 {
  color: #ffffff;
  transition: color 0.8s ease-out;
}

.service-item:hover p {
  color: #cbd5e1;
  transition: color 0.8s ease-out;
}

.service-item:hover .icon {
  filter: brightness(1.3) contrast(1.1);
}

.service-item .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  transition: filter 0.8s ease-out;
}

.service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
  transition: color 0.8s ease-out;
}

.service-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  transition: color 0.8s ease-out;
}

@media (max-width: 768px) {
  .services h2 {
    font-size: 2rem;
  }
}

/* #endregion */

/* #region PRICING SECTION */
.pricing {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.pricing h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

  .pricing-card {
    width: 700px;
  }

}

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

  .pricing-card {
    width: 450px;
  }
}



.pricing-card {
  background-color: #f8f8f8;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 500px) {
  .pricing-card {
    width: 350px;
  }
}

@media (max-width: 400px) {
  .pricing-card {
    width: 300px;
  }
}

.pricing-card.featured {
  background-color: #ff6b6b;
  color: #fff;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.pricing-card ul li {
  font-size: 1rem;
  margin-bottom: 10px;
}

.pricing-card .btn {
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  background-color: #ff6b6b;
  color: #fff;
  transition: 0.3s;
}

.pricing-card.featured .btn {
  background-color: #fff;
  color: #ff6b6b;
}

.pricing-card .btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .pricing h2 {
    font-size: 2rem;
  }
}

/* #endregion */

/* #region REVIEWS SECTION */
.reviews {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.reviews h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
}

.review {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  gap: 20px;
}

.review img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-text {
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
  flex: 1;
}

.review-left {
  flex-direction: row;
}

/* .review-right { */
/* flex-direction: row-reverse; */
/* } */

@media (max-width: 768px) {
  .review {
    /* flex-direction: column !important; */
    align-items: center;
    text-align: center;
  }

  .review img {
    margin-bottom: 15px;
  }

  .review-text {
    text-align: center;
  }

  /*   .review-right {
	  display: flex;
  flex-direction: row-reverse;
} */
}

@media (max-width: 500px) {
  .review {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .review img {
    order: 1;
    margin-bottom: 15px;
  }

  .review-text {
    order: 2;
    text-align: center;
  }

  .review-left,
  .review-right {
    flex-direction: column !important;
  }
}

/* #endregion */

/* #region CONTACT SECTION */
.contact {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1f1f1f 100%);
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #ffffff;
  text-align: center;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Левая часть: контактная информация */
.contact-info-section {
  text-align: left;
}

/* Главный призыв к действию */
.main-cta {
  margin-bottom: 40px;
  text-align: center;
}

.main-cta h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 600;
}

.vk-main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
  background: linear-gradient(135deg, #4a76a8, #5a86b8);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all 0.8s ease-out;
  box-shadow: 0 8px 25px rgba(74, 118, 168, 0.3);
  min-width: 100%;
}

.vk-main-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(74, 118, 168, 0.4);
  background: linear-gradient(135deg, #5a86b8, #6a96c8);
}

.vk-icon {
  font-size: 1.5rem;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  border-radius: 10px;
  transition: all 0.8s ease-out;
}


.contact-item:hover {
  cursor: pointer;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  background: #1e1e1e;
}

.contact-item:hover .contact-icon {
  color: #ffffff;
}

.contact-item:hover .contact-label {
  color: #ffffff;
}

.contact-item:hover .contact-text a,
.contact-item:hover .contact-text span:not(.contact-label) {
  color: #ff6b6b;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  width: 40px;
  text-align: center;
  transition: color 0.8s ease-out;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  font-size: 0.9rem;
  transition: color 0.8s ease-out;
}

.contact-text a,
.contact-text span:not(.contact-label) {
  color: #ff6b6b;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.8s ease-out;
}

.contact-text a:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

/* Социальные сети */
.social-networks h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: left;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.8s ease-out;
  border: 2px solid transparent;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.social-link.telegram:hover {
  background-color: #0088cc;
  color: white;
  border-color: #0088cc;
}

.social-link.vk:hover {
  background-color: #4a76a8;
  color: white;
  border-color: #4a76a8;
}

.social-icon {
  margin-right: 8px;
  font-size: 1.2rem;
}

/* Правая часть: форма */
.contact-form-section {
  text-align: left;
}

.contact-form {
  width: 500px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.contact-form h3 {
  margin-bottom: 15px;
  color: #ffffff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #b5b5b5;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.8s ease-out, box-shadow 0.8s ease-out;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Privacy policy checkbox styling */
.checkbox-group {
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #cfcfcf;
  gap: 12px;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  position: absolute;
  transition: all 0.8s ease-out;
  flex-shrink: 0;
  margin-top: 2px;
}



.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
}

.checkbox-label p {
  margin-left: 30px;
  padding-top: 5px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

@media (max-width: 768px) {
  .checkmark {
    position: relative;
  }

  .checkbox-label p {
    margin-left: 0;
    padding-top: 0;
  }
}

.privacy-link {
  color: #ff6b6b;
  text-decoration: underline;
  transition: color 0.8s ease-out;
}

.privacy-link:hover {
  color: #ff4757;
}

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 10px;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.8s ease-out;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff4757, #ff3742);
}

/* Сообщения о статусе отправки */
.form-message {
  width: 500px;
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s ease-out;
  word-wrap: break-word;
  max-width: 100%;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .form-message {
    width: 400px;
  }
}

@media (max-width: 460px) {
    .form-message {
        width: 290px;
    }
}

.form-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive design for form messages */
@media (max-width: 768px) {
  .form-message {
    margin-top: 15px;
    padding: 12px 15px;
    font-size: 0.9rem;
    border-radius: 6px;
    text-align: center;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .form-message {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    border-radius: 5px;
    text-align: center;
    line-height: 1.2;
    max-width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 5px;
  }
}

@media (max-width: 360px) {
  .form-message {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-align: center;
    line-height: 1.1;
    max-width: calc(100% - 6px);
    margin-left: 3px;
    margin-right: 3px;
  }
}

/* Состояние кнопки загрузки */
.form-submit:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-submit:disabled:hover {
  background-color: #ccc;
  transform: none;
  box-shadow: none;
}

/* Validation error styling */
.validation-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
  animation: error-appear 0.8s ease-out;
  word-wrap: break-word;
  max-width: 100%;
  line-height: 1.3;
}

@keyframes error-appear {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive validation errors */
@media (max-width: 768px) {
  .validation-error {
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 3px;
    margin-top: 4px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .validation-error {
    padding: 5px 8px;
    font-size: 0.8rem;
    border-radius: 3px;
    margin-top: 3px;
    line-height: 1.1;
    max-width: calc(100% - 5px);
  }
}

@media (max-width: 360px) {
  .validation-error {
    padding: 4px 6px;
    font-size: 0.75rem;
    border-radius: 2px;
    margin-top: 2px;
    line-height: 1.0;
    max-width: calc(100% - 3px);
  }
}

/* Input field error state */
.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

@media (max-width: 1024px) {
  .contact-form {
    width: 400px;

  }
}

@media (max-width: 768px) {
  .contact h2 {
    font-size: 2rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .contact-info-section,
  .contact-form-section {
    text-align: center;
  }

  .contact-text {
    align-items: center;
  }

  .main-cta h3 {
    font-size: 1.1rem;
  }

  .vk-main-button {
    padding: 18px 35px;
    font-size: 1.2rem;
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-form {
    width: 400px;
  }
}

/* #endregion */
@media (max-width: 460px) {
  .contact-form {
    width: 290px;
  }

  .main-cta h3 {
    font-size: 1rem;
  }

  .vk-main-button {
    padding: 15px 25px;
    font-size: 1.1rem;
    min-width: 220px;
  }
}

/* #endregion */

/* #region FOOTER SECTION */
.footer {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #111111 100%);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

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

.footer p {
  /* margin-bottom: 15px; */
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-socials a {
  color: #ff6b6b;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

.footer-socials a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer p {
    font-size: 0.85rem;
  }

  .footer-socials a {
    font-size: 0.9rem;
  }
}

/* Кнопка возврата наверх */
.scroll-to-top {
  background-color: #ff6b6b;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  transition: all 0.8s ease-out;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: #ff4757;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.arrow-up {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
  line-height: 1;
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .arrow-up {
    font-size: 1.3rem;
  }
}

/* #endregion */

/* #region GALLERY SECTION */
.gallery {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

/* #endregion */