/* === Основные переменные и сброс === */
:root {
  --primary-dark: #1a0a14;
  --secondary-dark: #240f1f;
  --deep-pink: #3d1a34;
  --accent-pink: #5a2d4d;
  --light-pink: #7d3d68;
  --text-light: #f3e8ef;
  --text-muted: #c4a8b8;
  --highlight: #9d4a7d;
  --border-subtle: rgba(157, 74, 125, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--deep-pink) 100%);
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(90, 45, 77, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(125, 61, 104, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(26, 10, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  width: 100%;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--highlight) 50%, transparent);
  opacity: 0.3;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.logo-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: var(--transition-smooth);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--highlight), var(--light-pink));
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--text-light);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* === Кнопка реєстрації === */
.register-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--highlight), var(--light-pink));
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-smooth);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(157, 74, 125, 0.3);
  margin-left: 20px;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(157, 74, 125, 0.5);
  filter: brightness(1.1);
}

/* === Баннеры === */
.banner-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--primary-dark);
}

.banner-carousel-link {
  display: block;
  width: 100%;
  position: relative;
  text-decoration: none;
}

.banner-carousel-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  min-height: 100px;
}

.banner-carousel-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  z-index: 0;
}

.banner-carousel-image-active {
  opacity: 1;
  z-index: 1;
}

.banner-hero,
.banner-mid {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.banner-hero {
  height: 520px;
  margin-bottom: 0;
}

.banner-mid {
  height: 420px;
  margin: 0;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.1);
  transition: transform 0.6s ease;
}

.banner-hero:hover .banner-image,
.banner-mid:hover .banner-image {
  transform: scale(1.05);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(26, 10, 20, 0.4) 0%, 
    rgba(36, 15, 31, 0.6) 50%,
    rgba(61, 26, 52, 0.7) 100%
  );
  pointer-events: none;
}

/* === Основной контент === */
.main-content {
  position: relative;
  padding: 70px 0 80px;
}

.main-content section {
  margin-bottom: 65px;
  padding: 0;
  transition: var(--transition-smooth);
}

.main-content section:last-child {
  margin-bottom: 0;
}

/* === Типографика === */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-light);
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--text-light), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(157, 74, 125, 0.2);
}

h2 {
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-light);
  margin-bottom: 22px;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: linear-gradient(180deg, var(--highlight), var(--light-pink));
  border-radius: 3px;
}

p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-align: justify;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--highlight);
  font-weight: 600;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 22px 0;
}

ul li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
  line-height: 1.7;
}

ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--highlight);
  font-size: 14px;
  top: 2px;
}

/* === Footer === */
.site-footer {
  background: linear-gradient(180deg, rgba(26, 10, 20, 0.6) 0%, rgba(26, 10, 20, 0.95) 100%);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 75px;
  position: relative;
  margin-top: 0;
  width: 100%;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--highlight) 50%, transparent);
  opacity: 0.4;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 45px;
  margin-bottom: 45px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-subtle);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
  padding: 0;
}

.footer-links li::before {
  display: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--highlight);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

/* === Плашка с бонусом === */
.bonus-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(157, 74, 125, 0.95), rgba(125, 61, 104, 0.95));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  padding: 14px 20px;
  z-index: 998;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bonus-bar.visible {
  transform: translateY(0);
}

.bonus-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bonus-bar-text {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
}

.bonus-bar-button {
  display: inline-block;
  padding: 10px 24px;
  background: var(--text-light);
  color: var(--highlight);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.bonus-bar-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: rgba(243, 232, 239, 0.95);
}

/* === Кнопка прокрутки вверх === */
.scroll-to-top {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--highlight), var(--light-pink));
  border: none;
  border-radius: 50%;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(157, 74, 125, 0.4);
  transition: var(--transition-smooth);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(157, 74, 125, 0.6);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* === 404 Страница === */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
  padding: 60px 30px;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--highlight), var(--light-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 25px;
}

.error-message {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 18px;
  text-align: center;
}

.error-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  text-align: center;
}

.error-btn {
  display: inline-block;
  padding: 14px 35px;
  background: linear-gradient(135deg, var(--highlight), var(--light-pink));
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(157, 74, 125, 0.3);
}

.error-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(157, 74, 125, 0.5);
}

/* === Адаптивный дизайн === */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .banner-carousel-image {
    object-fit: contain;
  }

  .banner-hero {
    height: 380px;
  }
  
  .banner-mid {
    height: 320px;
  }

  .scroll-to-top {
    bottom: 80px;
  }

  .site-footer {
    padding: 60px 0 65px;
  }

  .bonus-bar {
    padding: 10px 15px;
  }

  .bonus-bar-content {
    gap: 10px;
  }

  .bonus-bar-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 0;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .register-btn {
    order: 1;
    margin-left: 0;
    padding: 8px 18px;
    font-size: 14px;
  }
  
  .nav-menu {
    position: fixed;
    top: 45px;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: calc(100vh - 70px);
    background: rgba(26, 10, 20, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: flex-start;
    padding: 35px 25px;
    gap: 0;
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1001;
    order: 3;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-menu li {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .nav-menu a {
    display: block;
    padding: 14px 18px;
    width: 100%;
    border-radius: 6px;
    transition: var(--transition-smooth);
  }
  
  .nav-menu a:hover {
    background: rgba(157, 74, 125, 0.15);
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  p {
    font-size: 1rem;
    text-align: left;
  }
  
  .main-content {
    padding: 50px 0 60px;
  }
  

  .banner-hero {
    height: 280px;
  }
  
  .banner-mid {
    height: 240px;
  }
  
  .error-code {
    font-size: 5rem;
  }
  
  .error-message {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .logo {
    height: 38px;
  }
  
  h1 {
    font-size: 1.7rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  

  .banner-hero {
    height: 220px;
  }
  
  .banner-mid {
    height: 200px;
  }
  
  .site-footer {
    padding: 40px 0 20px;
  }
  
  .footer-description {
    text-align: left;
  }
  
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 80px;
    right: 20px;
  }

  .bonus-bar {
    padding: 10px 12px;
  }

  .bonus-bar-content {
    flex-direction: column;
    gap: 8px;
  }

  .bonus-bar-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .bonus-bar-button {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .site-footer {
    padding: 40px 0 70px;
  }
  
  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* === Анимации === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-content section {
  animation: fadeIn 0.8s ease-out;
}

/* === Плавная прокрутка === */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-padding-top: 90px;
  }
}

