/* Complete redesign with glassmorphism, modern typography, and premium aesthetics */

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

:root {
  --primary-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: rgba(255, 255, 255, 0.9);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.15);
  --blur-strong: blur(20px);
  --blur-medium: blur(10px);
}

body {
  /* Changed main font from Playfair Display to Alan Sans */
  font-family: "Alan Sans", sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("fon.gif") center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
}

.background-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  z-index: 1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.header {
  text-align: center;
  margin-bottom: 60px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  font-size: 14px;
  position: relative;
  z-index: 10;
}

.work-text,
.support-text {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 50px;
  text-shadow: none;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--blur-medium);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.work-text:hover,
.support-text:hover {
  color: white;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-medium);
}

.main-title {
  margin-bottom: 20px;
}

/* Added styles for logo and title container */
.logo-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.cloud-emoji {
  font-size: 80px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.6))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, -3px 0 0 #fff, 3px 0 0 #fff, 0 -3px 0
    #fff, 0 3px 0 #fff;
  animation: cloudGlow 2s ease-in-out infinite;
}

@keyframes cloudGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.6))
      drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.8))
      drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
}

.main-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.main-title h1 {
  /* Changed heading font from Playfair Display to Alan Sans */
  font-family: "Alan Sans", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 0;
}

.welcome-title {
  font-family: "Alan Sans", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-top: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}

.info-section {
  text-align: center;
  background: var(--primary-gradient);
  padding: 40px 50px;
  border-radius: 32px;
  backdrop-filter: var(--blur-strong);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--glass-border);
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.wax-text {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.wax-highlight {
  color: #ffd700;
  font-weight: 800;
  font-size: 1.7rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.anonymity-text {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 25px;
  line-height: 1.6;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.rating-section {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 50px;
  backdrop-filter: var(--blur-medium);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.stars {
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.rating-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.welcome-section {
  text-align: center;
  background: var(--primary-gradient);
  padding: 60px 50px 140px 50px;
  border-radius: 32px;
  backdrop-filter: var(--blur-strong);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--glass-border);
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: visible;
}

.welcome-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}


.welcome-section p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.country-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  justify-items: center;
}

.country-container {
  position: relative;
  width: 200px;
}

.country-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  padding: 20px 30px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--blur-medium);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 60px;
  text-align: center;
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: var(--blur-medium);
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  overflow: hidden;
  display: none;
}

.submenu.active {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: "Alan Sans", sans-serif;
}

.submenu-btn:hover {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: white;
}

.submenu-btn:first-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.country-btn .flag {
  display: inline-block;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Грузия - белый флаг с красным крестом */
.flag-ge {
  background: linear-gradient(to bottom,
    white 0%, white 40%,
    #d32027 40%, #d32027 60%,
    white 60%, white 100%);
  position: relative;
}

.flag-ge::before {
  content: '';
  position: absolute;
  left: 40%;
  top: 0;
  width: 20%;
  height: 100%;
  background: #d32027;
}

/* Узбекистан - голубой, белый, зеленый */
.flag-uz {
  background: linear-gradient(to bottom,
    #1eb53a 0%, #1eb53a 20%,
    white 20%, white 25%,
    #0099b5 25%, #0099b5 45%,
    white 45%, white 55%,
    #0099b5 55%, #0099b5 75%,
    white 75%, white 80%,
    #1eb53a 80%, #1eb53a 100%);
}

/* Казахстан - голубой с желтым орнаментом */
.flag-kz {
  background: linear-gradient(135deg, #00afca 0%, #00afca 100%);
  position: relative;
}

.flag-kz::before {
  content: '✦';
  position: absolute;
  color: #fec50c;
  font-size: 16px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Кыргызстан - красный с желтым */
.flag-kg {
  background: #ee1c25;
  position: relative;
}

.flag-kg::before {
  content: '☀';
  position: absolute;
  color: #ffcc00;
  font-size: 16px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.reviews-section {
  background: var(--primary-gradient);
  padding: 40px;
  border-radius: 32px;
  backdrop-filter: var(--blur-strong);
  width: 100%;
  max-width: 800px;
  height: 300px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-medium);
}

.reviews-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.reviews-container {
  animation: scrollReviews 20s linear infinite;
  position: relative;
  z-index: 1;
}

@keyframes scrollReviews {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

.review {
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--blur-medium);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.reviewer-name {
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 1.1rem;
}

.review-date {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 500;
}

.faq-section {
  background: var(--primary-gradient);
  padding: 50px 40px;
  border-radius: 32px;
  backdrop-filter: var(--blur-strong);
  width: 100%;
  max-width: 800px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.faq-section h3 {
  text-align: center;
  /* Changed FAQ section heading font to Alan Sans */
  font-family: "Alan Sans", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 40px;
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
  z-index: 1;
  letter-spacing: -1px;
}

.faq-item {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--blur-medium);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}

.faq-arrow {
  transition: transform 0.3s ease;
  color: var(--accent-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 15px 25px 20px 25px;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

/* Added captcha modal styles */
.captcha-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

.captcha-modal {
  background: var(--primary-gradient);
  backdrop-filter: var(--blur-strong);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  box-shadow: var(--shadow-medium);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.captcha-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.captcha-header {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.captcha-header h3 {
  /* Changed captcha header font to Alan Sans */
  font-family: "Alan Sans", sans-serif;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.captcha-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.captcha-content {
  position: relative;
  z-index: 1;
}

.captcha-canvas {
  background: #f8f9fa;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.captcha-refresh {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-secondary);
}

.captcha-refresh:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.captcha-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  font-family: "Alan Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.captcha-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.captcha-submit:active {
  transform: translateY(0);
}

.captcha-error {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 15px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.1);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.captcha-blur {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }

  .country-buttons {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    justify-items: center;
  }

  .welcome-section {
    padding: 30px 25px 120px 25px;
    border-radius: 24px;
  }

  .reviews-section,
  .faq-section {
    padding: 30px 25px;
    border-radius: 24px;
  }

  .top-nav {
    margin-bottom: 30px;
  }

  .work-text,
  .support-text {
    padding: 10px 20px;
    font-size: 12px;
  }

  .main-content {
    gap: 40px;
  }

  .country-container {
    width: min(280px, 100%);
  }

  .country-btn {
    width: 100%;
    height: 55px;
    padding: 16px 24px;
    font-size: 0.95rem;
  }

  /* Added responsive styles for logo */
  .logo-title-container {
    flex-direction: column;
    gap: 15px;
  }

  .cloud-emoji {
    font-size: 60px;
  }

  .main-logo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .welcome-section {
    padding: 25px 20px 110px 20px;
  }

  .reviews-section,
  .faq-section {
    padding: 25px 20px;
  }

  .country-container {
    width: min(250px, 100%);
  }

  .country-btn {
    padding: 16px 24px;
    font-size: 0.95rem;
    width: 100%;
    height: 50px;
  }

  .captcha-modal {
    padding: 30px 25px;
    margin: 20px;
  }

  .captcha-header h3 {
    font-size: 1.5rem;
  }

  .captcha-question {
    font-size: 1.6rem;
    padding: 16px;
  }

  /* Added mobile responsive styles for logo */
  .cloud-emoji {
    font-size: 50px;
  }

  .main-logo {
    width: 50px;
    height: 50px;
  }
}
