@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* LIGHT MODE IDENTITY */
  --brand-blue: #184085;
  --brand-cyan: #00AACD;
  --brand-lime: #99CC33;
  --brand-yellow: #F7AA2A;
  
  --bg-main: #EEF2F6; 
  --text-dark: #222222;
  --white: #FFFFFF;
  --grey-border: #D8DFD7;
  
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.12);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --transition-fast: all 0.25s ease-out;
  --header-height: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  height: 100%;
  font-family: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
}

.container {
  width: min(1120px, 100% - 2.4rem);
  margin: 0 auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  padding-block: 0.75rem;
  z-index: 1000;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(238, 242, 246, 0.88);
  border-bottom: 1px solid rgba(24, 64, 133, 0.08);
}

.nav {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-partner-img {
  height: 58px;
  width: auto;
  transition: var(--transition-fast);
  display: block;
}

.nav-partner-img:hover {
  transform: scale(1.05);
}

.mobile-partner-link {
  display: none;
  align-items: center;
}

.nav-pill {
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(24, 64, 133, 0.06);
  color: var(--brand-blue);
  border: 1px solid rgba(24, 64, 133, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-weight: 600;
}

.nav-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-blue);
  transition: width 0.22s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--brand-blue);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-right: 0.5rem;
}

.lang-selector a {
  opacity: 0.45;
  transition: var(--transition-fast);
  padding: 2px 4px;
}

.lang-selector a.active {
  opacity: 1;
  color: var(--brand-blue);
}

.lang-selector a:hover {
  opacity: 1;
  color: var(--brand-blue);
}

.lang-divider {
  opacity: 0.3;
  font-weight: 400;
}

.mobile-lang-selector {
  display: none;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.9);
  padding: 0 7px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #222;
  border-radius: 999px;
  transition: var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: var(--transition-fast);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 10px 28px rgba(24, 64, 133, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  background: #112d60;
  box-shadow: 0 18px 40px rgba(24, 64, 133, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
}

.btn-outline:hover {
  background: rgba(24, 64, 133, 0.06);
  transform: translateY(-1px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.btn-telegram-new {
  background: #229ED9;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-telegram-new:hover {
  background: #1d8dbf;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(34, 158, 217, 0.4);
}

.btn-soft {
  background: rgba(24, 64, 133, 0.06);
  border: 1px solid rgba(24, 64, 133, 0.14);
  color: var(--brand-blue);
}

.btn-soft:hover {
  background: rgba(24, 64, 133, 0.12);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-radius: var(--radius-pill);
  padding: .45rem 1.2rem;
  border: 1px dashed rgba(24,64,133,.25);
  font-size: .8rem;
  color: rgba(0,0,0,.75);
}

.btn-ghost:hover {
  background: rgba(24,64,133,.05);
  transform: translateY(-1px);
}

.icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   BADGES & CHIPS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  background: rgba(24,64,133,.06);
  color: var(--brand-blue);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(248,250,252,.65);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}

.meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-lime);
}

.meta-dot.orange { background: var(--brand-yellow); box-shadow: 0 0 8px var(--brand-yellow); }

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #fff;
  width: 100%;
  max-width: 540px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-window {
  transform: translateY(0);
}

.modal-header {
  padding: 1.2rem;
  background: var(--bg-main);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: #666;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ef4444;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(24, 64, 133, 0.08);
  border: 1px solid rgba(24, 64, 133, 0.12);
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-text {
  font-size: 0.92rem;
  color: rgba(0,0,0,0.76);
  line-height: 1.6;
}

.modal-terms {
  margin-top: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(0, 170, 205, 0.08);
  border: 1px solid rgba(0, 170, 205, 0.28);
  font-size: 0.88rem;
}

.modal-terms label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}

.modal-terms input {
  margin-top: 0.2rem;
  width: 14px;
  height: 14px;
}

.modal-terms a {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.modal-actions {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.form-input, .form-select, .form-textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(24, 64, 133, 0.1);
}

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

.form-btn {
  margin-top: 0.5rem;
  width: 100%;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Poppins', sans-serif;
}

.form-btn:hover {
  background: #112d60;
}

/* ==========================================================================
   SUPPORT WIDGET
   ========================================================================== */
.support-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.support-btn {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--brand-cyan);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 170, 205, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.support-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 170, 205, 0.6);
}

.support-text {
  pointer-events: auto;
  background: #fff;
  color: var(--brand-blue);
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateX(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
}

.support-widget.active .support-text {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.support-widget.active .support-btn {
  transform: rotate(15deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  padding: 2.5rem 0 2rem;
  font-size: 0.8rem;
  color: rgba(0,0,0,0.65);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-row-top {
  padding: 1.4rem 1.6rem;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.6);
  white-space: nowrap;
  font-weight: 600;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(243,247,242,0.95);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 6px 16px rgba(15,23,42,0.06);
  transition: var(--transition-fast);
}

.footer-logo-link:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
}

.footer-logo.organizer {
  height: 40px;
}

.footer-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(0,0,0,0.7);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.16);
  color: var(--brand-blue);
}

.social-icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSoft {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 968px) {
  .nav-links {
    position: absolute;
    inset: calc(var(--header-height)) 0.9rem auto 0.9rem;
    background: rgba(238, 242, 246, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(216,223,215,0.8);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.28);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.2rem 1.5rem;
    gap: 0.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 30;
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .mobile-lang-selector {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 700;
    font-size: 1.1rem;
  }
  
  .mobile-lang-selector a {
    opacity: 0.45;
  }
  
  .mobile-lang-selector a.active {
    opacity: 1;
    color: var(--brand-blue);
  }

  .nav-cta, .nav-pill {
    display: none;
  }

  .mobile-partner-link {
    display: flex;
    margin-left: 0.8rem;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 0.8rem;
    height: 34px;
  }
  
  .mobile-partner-link img {
    height: 100%;
    width: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    justify-content: space-between;
  }

  .nav-link {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.85rem 0;
    text-align: center;
    font-size: 1rem;
  }

  .nav-link::after {
    content: none;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .support-widget {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100%, 100% - 1.4rem);
  }

  .nav-partner-img {
    height: 48px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-meta {
    align-items: center;
    justify-content: center;
  }

  .footer-logos {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-row-bottom {
    flex-direction: column;
    text-align: center;
  }
}
