/* ==========================================
   ФУТЕР (из Кода1)
   ========================================== */
footer {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
  color: var(--white);
  padding: var(--spacing-lg) 0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  animation: fadeIn 0.8s ease forwards;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-links a::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: left 0.6s ease;
  z-index: 0; 
}

.social-links a:hover::before {
  left: 100%;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

.social-links a img {
  width: 60%;
  height: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
  position: relative;
  z-index: 1; /* иконка над бликом */
}

.social-links a:hover img {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
  transform: scale(1.1);
}

/* Специальные цвета для каждой соцсети при наведении */
.social-links a[title="Telegram"]:hover {
  background: linear-gradient(135deg, #0088cc, #229ED9);
  border-color: #229ED9;
}

.social-links a[title="Viber"]:hover {
  background: linear-gradient(135deg, #665CAC, #7B68EE);
  border-color: #7B68EE;
}

.social-links a[title="Facebook"]:hover {
  background: linear-gradient(135deg, #1877F2, #42A5F5);
  border-color: #42A5F5;
}

.social-links a[title="YouTube"]:hover {
  background: linear-gradient(135deg, #FF0000, #FF4444);
  border-color: #FF4444;
}

.social-links a[title="WhatsApp"]:hover {
  background: linear-gradient(135deg, #25D366, #4AC959);
  border-color: #4AC959;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.5px;
  position: relative;
  padding-top: var(--spacing-xs);
}

footer p::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}


/* ==========================================
   НАВИГАЦИЯ
   ========================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-lg);
  
  position: fixed;
  width: 100%;
  top: 0;
  left: 0; 
  z-index: 1000;
  
  min-height: var(--navbar-height);
  
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: var(--spacing-xs) 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: var(--gradient);
  transition: width 0.3s ease;
}

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

/* ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ */
.language-selector {
  position: relative;
  display: inline-flex;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.375rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
  position: relative;
  padding: var(--spacing-xs) 1.25rem;
  border: none;
  border-radius: 30px;
  background: transparent;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.lang-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.lang-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 94, 232, 0.3);
}

.lang-btn:hover::before {
  opacity: 1;
}

/* Поддержка двух форм активации: классом и атрибутом (из Кода2) */
.lang-btn.active {
  color: white;
  background: var(--gradient);
  box-shadow: 0 4px 15px rgba(42, 94, 232, 0.3);
}

.lang-btn.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* МОБИЛЬНОЕ МЕНЮ */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 1.56rem;
  height: 0.125rem;
  background: var(--dark);
  margin: 0.3125rem 0;
  transition: 0.3s;
}

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

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

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



/* ==========================================
   КНОПКИ 
   ========================================== */
.btn {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  
  /* Матовое стекло */
  color: var(--btn-accent);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: var(--white);
  color: var(--btn-primary);
  border-color: currentColor;
}

.btn-primary:hover {
  background: var(--btn-primary);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(77, 122, 188, 0.4);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.container {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-sm);
}


/* content-section: */
.content-section {
  background-color: var(--white);
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl) 0;
}

/* Заголовки секций (Код1) */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--dark);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}


.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.25rem;
  background: var(--gradient);
  border-radius: var(--radius-sm);
}

.main-content {
  margin-top: var(--navbar-height);
}

.social-links {
  animation-name: fadeIn;
  animation-duration: 0.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  opacity: 0;
}


/* ==========================================
     Социальные сети
     ========================================== */
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease forwards;
}

.social-links a {
  --size: 3.125rem; /* 50px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

/* декоративный скользящий бликовый слой */
.social-links a::before{
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.social-links a:hover::before{
  left: 100%;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.18);
}

.social-links a img,
.social-links a i {
  width: 60%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1; /* иконка всегда над бликом */
  transition: transform 0.25s ease, filter 0.25s ease;
}

.social-links a:focus-visible {
  box-shadow: 0 0 0 3px rgba(66,123,188,0.18);
  transform: translateY(-2px);
}
