/* ��� ���������� ���������� ��� */
:root {
  --primary: #a78bfa;          /* ���������� (Yokai) */
  --primary-dark: #7c3aed;
  --accent: #FF8bfa;           /* ������� ������ */
  --secondary: #2563eb;        /* ����� (Toshifest / VK) */
  --text-dark: #1e293b;
  --text-light: #f1f5f9;
  --bg-light: #fbfcfe;
  --bg-dark: #1a2530;
  --shadow-light: rgba(0,0,0,0.06);
  --shadow-mid: rgba(0,0,0,0.12);
  --shadow-deep: rgba(0,0,0,0.2);
  --radius: 16px;
}

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

body {
  font-family: 'Segoe UI', 'Noto Sans JP', system-ui, sans-serif;
  background: linear-gradient(145deg, #f8f9ff, #f0f4ff);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

/* ��� ��������� ��� */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ��� �����: ����������, �����-������������� ��� */
header {
  background: linear-gradient(135deg, var(--bg-dark), #0f172a);
  color: white;
  padding: 14px 0;
  position: relative;
  box-shadow: 0 4px 20px var(--shadow-deep);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

/* ������������ ��� */
header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 15% 25%, rgba(167,139,250,0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(255,139,250,0.06) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* ������� */
.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.6em;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ��������� */
nav#main-nav ul {
  display: flex;
  list-style: none;
  gap: 16px;
  margin: 0;
  padding: 0;
}

nav#main-nav a {
  position: relative;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.05em;
  padding: 8px 18px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

nav#main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 1px;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

nav#main-nav a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

nav#main-nav a:hover::after {
  width: 60%;
}

/* VK-������ � �������� */
nav#main-nav a[href*="vk.com"] {
  background: linear-gradient(135deg, #4c75a8, #275cb1);
  color: white !important;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(39,92,177,0.25);
}

nav#main-nav a[href*="vk.com"]:hover {
  background: linear-gradient(135deg, #3a5d8c, #1d468a) !important;
  transform: translateY(-3px) scale(1.03);
}

/* ��� ������-���� ��� */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.burger span {
  display: block;
  height: 3px;
  width: 24px;
  background: white;
  margin: 5px auto;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* �������� > ������� */
nav#main-nav ul.open + .burger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
nav#main-nav ul.open + .burger span:nth-child(2) {
  opacity: 0;
}
nav#main-nav ul.open + .burger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ��� ��������� ���� ��� */
@media (max-width: 880px) {
  nav#main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    background: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px 0;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    z-index: 100;
    min-width: 200px;
  }

  nav#main-nav ul.open {
    display: flex;
  }

  nav#main-nav li {
    width: 100%;
    text-align: center;
  }

  nav#main-nav a {
    display: block;
    padding: 12px 20px;
    font-size: 1.1em;
  }

  .burger {
    display: flex;
  }
}

/* ��� ������ ��� */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1.05em;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
}

.btn-main:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* ��� ������ ��� */
section {
  margin-bottom: 36px;
}

section h2 {
  font-size: 1.8em;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  text-align: center;
}

section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ��� ������ ��� */
footer {
  background: linear-gradient(135deg, var(--bg-dark), #0f172a);
  color: var(--text-light);
  text-align: center;
  padding: 30px 0 20px;
  font-size: 1em;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ��� COOKIE NOTICE ��� */
.cookie-notice {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(10,5,20,0.92);
  backdrop-filter: blur(4px);
  color: var(--text-light);
  padding: 16px 20px;
  font-size: 1em;
  box-shadow: 0 -2px 16px var(--shadow-deep);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cookie-notice a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-close-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 22px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.cookie-close-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(167,139,250,0.3);
}

/* ��� ������ ��� */
#sakura-container {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  width: 20px;
  height: 20px;
  background: url('/static/img/chery.png') no-repeat center / contain;
  opacity: 0;
  will-change: transform;
}

.sakura-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(10, 5, 20, 0.82);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.sakura-modal-content {
  background: linear-gradient(145deg, #f0f4ff, #e6edff);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(37,99,235,0.15);
  text-align: center;
  max-width: 360px;
  margin: 0 16px;
  border: 1px solid rgba(255,255,255,0.6);
}

.sakura-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.8em;
  color: var(--secondary);
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

.sakura-modal-close:hover {
  transform: rotate(90deg) scale(1.2);
}

.promo-code {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 1.1em;
  display: inline-block;
  margin: 12px auto;
  box-shadow: 0 2px 6px rgba(255,139,250,0.3);
}

/* ��� ������������ ��� */
@media (max-width: 600px) {
  .container { padding: 0 12px; }
  .logo { height: 40px; width: 40px; }
  .logo-text { font-size: 1.4em; }
  section h2 { font-size: 1.5em; }
  .btn-main { padding: 10px 22px; font-size: 1em; }
  .cookie-notice { flex-direction: column; gap: 10px; font-size: 0.95em; }
  .sakura-modal-content { padding: 24px 16px; }
}
/* ��� ��������� ��������� ��� */
@media (max-width: 880px) {
  /* ������ ���������� ������ */
  .burger {
    display: flex !important;
    z-index: 1002; /* ���� ���� */
    margin-left: auto;
  }

  /* �������� ��������� �� ��������� */
  nav#main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 20px;
    background: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px 0;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    z-index: 1001;
    min-width: 200px;
    animation: fadeIn 0.2s ease-out;
  }

  /* ���������� ��� .open */
  nav#main-nav ul.open {
    display: flex !important;
  }

  nav#main-nav li {
    width: 100%;
    text-align: center;
  }

  nav#main-nav a {
    display: block;
    padding: 12px 20px;
    font-size: 1.1em;
    color: var(--text-light);
  }

  .logo {
    height: 40px;
    width: 40px;
  }

  .logo-text {
    font-size: 1.4em;
  }

  .header-row {
    flex-wrap: wrap;
  }
}

/* �������� ��������� */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ��� ���������� �����: ����� ������� � ���� ��� */
/* ��� ����� ������ �� ����������� ��� �������� */
nav#main-nav ul + .burger {
  order: 2; /* ������ ������ ����� ul � flex-������ */
  margin-left: auto;
}

/* ����� �������� �������� �������� � ������� +, ������ �� ������ */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* ��� ���������� �����: ���� ���������� ���� �������� ��� */
.main-banner {
  z-index: 1; /* ����� ������ �� ���������� ���� */
}

#main-nav ul {
  z-index: 1001; /* ���� ������� � ���� ��������� */
}