/* ============================================================
   ШРИФТЫ
   ============================================================ */
@font-face {
  font-family: 'GetVoIP';
  src: url('../fonts/GetVoIP Grotesque.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GetVoIP';
  src: url('../fonts/GetVoIP Grotesque Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   BOOTSTRAP ПЕРЕОПРЕДЕЛЕНИЯ
   ============================================================ */
:root {
  --bs-font-sans-serif:  'GetVoIP', 'Segoe UI', Arial, sans-serif;
  --bs-body-font-family: 'GetVoIP', 'Segoe UI', Arial, sans-serif;
  --bs-primary:     #1565C0;
  --bs-primary-rgb: 21, 101, 192;
  --bs-danger:      #D02C24;
  --bs-danger-rgb:  208, 44, 36;
  --bs-body-color:  #212121;

  /* Переменные проекта */
  --c-red:     #D02C24;
  --c-red-dk:  #b02018;
  --c-blue:    #1565C0;
  --c-blue-dk: #0D47A1;
  --c-dark:    #212121;
  --c-grey:    #757575;
  --sidebar-w: 220px;
}

/* Bootstrap default btn-lg border-radius 0.5rem → +30% = 0.65rem */
.btn    { --bs-btn-border-radius: 0.49rem; }
.btn-lg { --bs-btn-border-radius: 0.65rem; }

.btn-danger {
  --bs-btn-bg:                 var(--c-red);
  --bs-btn-border-color:       var(--c-red);
  --bs-btn-hover-bg:           var(--c-red-dk);
  --bs-btn-hover-border-color: var(--c-red-dk);
  --bs-btn-active-bg:          var(--c-red-dk);
  min-height: 58px;
  font-weight: 700;
  letter-spacing: .03em;
}

.btn-blue {
  --bs-btn-bg:                 #3273b8;
  --bs-btn-border-color:       #3273b8;
  --bs-btn-hover-bg:           #275e98;
  --bs-btn-hover-border-color: #275e98;
  --bs-btn-active-bg:          #275e98;
  --bs-btn-color:              #fff;
  --bs-btn-hover-color:        #fff;
  --bs-btn-active-color:       #fff;
  min-height: 58px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 12px;
}
.hero__actions .btn,
.hero__inner .btn--ticket {
  white-space: nowrap;
  width: 290px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 575px) {
  .hero__actions .btn,
  .hero__inner .btn--ticket {
    width: 203px;
    min-height: 41px;
    font-size: 0.875rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.btn-primary {
  --bs-btn-bg:                 var(--c-blue);
  --bs-btn-border-color:       var(--c-blue);
  --bs-btn-hover-bg:           var(--c-blue-dk);
  --bs-btn-hover-border-color: var(--c-blue-dk);
  --bs-btn-active-bg:          var(--c-blue-dk);
  min-height: 58px;
}

.text-primary  { color: var(--c-blue)  !important; }
.bg-primary    { background-color: var(--c-blue) !important; }
.border-primary { border-color: var(--c-blue)  !important; }
.bg-danger     { background-color: var(--c-red) !important; }

.accordion-button:not(.collapsed) {
  color: var(--c-blue);
  background-color: #e8f0fe;
  box-shadow: inset 0 -1px 0 rgba(21,101,192,.15);
}
.accordion-button:focus {
  box-shadow: 0 0 0 .25rem rgba(21,101,192,.25);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ============================================================
   САЙДБАР
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 2px solid var(--c-red);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar__logo {
  display: block;
  padding: 24px 20px 20px;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}
.sidebar__logo-img { width: 100%; height: auto; display: block; }

.sidebar__menu {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  list-style: none;
  margin: 0;
  flex: 1;
}

.sidebar__link {
  display: block;
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  color: #495057;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .18s;
}
.sidebar__link:hover,
.sidebar__link:focus-visible,
.sidebar__link.active {
  color: var(--c-red);
  background: rgba(211,47,47,.05);
  border-left-color: var(--c-red);
}

.sidebar__footer {
  padding: 16px 20px 24px;
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
}

/* Бургер */
.sidebar__burger {
  display: none;
  position: fixed;
  top: 14px; left: 16px;
  z-index: 1100;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  cursor: pointer;
  padding: 6px;
}
.sidebar__burger span {
  display: block;
  width: 100%; height: 3px;
  background: var(--c-dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.sidebar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sidebar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sidebar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Оверлей */
.sidebar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.sidebar__overlay.sidebar__overlay--visible { opacity: 1; pointer-events: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #fff;
  background-image: url('../images/background_image.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  color: var(--c-dark);
  overflow: hidden;
}

/* Точечная сетка поверх градиента */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero__scroll { position: relative; z-index: 1; }

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 80px 32px 100px;
  width: 100%;
}

.hero__badge {
  background: var(--c-blue);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero__title { margin-top: 0; margin-bottom: 32px; }
.hero__inner .hero__meta:first-child { margin-bottom: 0; }

.hero__logo-img {
  max-width: 840px;
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.hero .hero__meta { margin-bottom: 16px; }

.hero__chip {
  background: transparent;
  border: none;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: .95rem;
  color: var(--c-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__chip-icon {
  height: 1em;
  width: auto;
  position: relative;
  top: -2px;
}
.hero__socials {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 50px;
}
.hero__social-icon {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.hero__chip--two-line {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--c-grey);
  margin-bottom: 8px;
}

.hero__hint {
  font-size: .875rem;
  color: var(--c-grey);
  margin: 0;
}

/* Скролл-стрелка */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 2px solid rgba(0,0,0,.25);
  border-radius: 50%;
  color: rgba(0,0,0,.4);
  text-decoration: none;
  animation: bounce 2s infinite;
}
.hero__scroll span {
  display: block;
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   СЕКЦИИ — общее
   ============================================================ */
.section { padding: 88px 0; }
.section--grey { background: #f8f9fa; }
.section--dark {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
  color: #fff;
}

.section-header { max-width: 640px; }

.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 8px;
}
.section__label--light { color: rgba(255,255,255,.6); }

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: normal;
  color: var(--c-dark);
  margin-bottom: 12px;
  display: block;
}
.section__title::after {
  content: '';
  display: block;
  width: 40px; height: 4px;
  background: var(--c-red);
  border-radius: 2px;
  margin-top: 10px;
}
.section__title--light { color: #fff; }
.section__title--light::after { background: rgba(255,255,255,.5); }

.section__lead {
  font-size: 1rem;
  color: var(--c-grey);
  margin: 0;
  line-height: 1.6;
}
.section__lead--light { color: rgba(255,255,255,.65); }

/* ============================================================
   FEATURE CARDS (Принять участие)
   ============================================================ */
.feature-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.feature-card__num {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0,0,0,.04);
  line-height: 1;
  user-select: none;
}

.feature-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 12px;
}

.feature-card__text { color: var(--c-grey); font-size: .95rem; margin: 0; }

.doc-upload-box {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-btn {
  min-height: unset !important;
  height: 26px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: calc(0.4rem + 4px);
  padding-right: calc(0.4rem + 4px);
  border-radius: 50px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem !important;
}

.doc-upload-box--empty {
  border: none;
  height: calc(24px + 37px);
}

.doc-upload-box__icon {
  height: 1.4em;
  width: auto;
  flex-shrink: 0;
}

.feature-card__list {
  list-style: none;
  padding: 0; margin: 0;
  color: var(--c-grey);
  font-size: .95rem;
}
.feature-card__list li {
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f5;
}
.feature-card__list li::before { content: '→ '; color: var(--c-blue); font-weight: 700; }
.feature-card__list li:last-child { border-bottom: none; }

/* ============================================================
   TICKET CARD
   ============================================================ */
.ticket-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.ticket-card__price { color: #000; }

.ticket-card__top {
  background: rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 24px 24px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.ticket-card__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

#participate .ticket-card__top { text-align: left; }
#participate .ticket-card__label {
  color: #000;
  border: none;
  padding: 0;
  border-radius: 0;
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.ticket-card__price {
  font-size: 2.8rem;
  font-weight: 900;
  color: #000;
  line-height: 1;
  margin-bottom: 6px;
}
.ticket-card__currency { font-size: 1.8rem; }

.ticket-card__period {
  color: #000;
  font-size: .9rem;
  margin: 0;
}
.ticket-card__notice {
  color: rgba(0,0,0,.45);
  font-size: 1.125rem;
  margin: 10px 0 0;
}
.ticket-card__notice-link {
  color: inherit;
  text-decoration: underline;
}

.ticket-card__features {
  list-style: none;
  padding: 24px 36px;
  margin: 0;
  background: #fff;
}
.ticket-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f3f3;
  color: #333;
  font-size: .95rem;
}
.ticket-card__features li:last-child { border-bottom: none; }
.check {
  color: var(--c-blue);
  font-weight: 900;
  flex-shrink: 0;
}

.ticket-card .btn { border-radius: 0 0 20px 20px; min-height: 56px; font-size: 1rem; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   TIMELINE (Календарь)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-blue), rgba(21,101,192,.15));
}
.timeline-item {
  position: relative;
  padding-bottom: 24px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -41px;
  top: 20px;
  width: 14px; height: 14px;
  background: var(--c-blue);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--c-blue);
}

/* ============================================================
   GALLERY PLACEHOLDER
   ============================================================ */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 64px 24px;
  background: #fff;
  border: 2px dashed #dee2e6;
  border-radius: 16px;
  color: var(--c-grey);
}
.gallery-placeholder__icon { font-size: 3rem; }

/* ============================================================
   INFO CARDS (Как добраться)
   ============================================================ */
.ymap-embed {
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  border: 1px solid #f0f0f0;
}


.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  border: 1px solid #f0f0f0;
  transition: transform .2s, box-shadow .2s;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
}
.info-card__icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.info-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 8px;
}
.info-card__text { color: var(--c-grey); margin-bottom: 16px; }
.info-card__link {
  color: var(--c-red);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
}
.info-card__link:hover { text-decoration: underline; }

/* ============================================================
   CONTACT CARDS
   ============================================================ */
.contact-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e9ecef;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact-card:hover {
  border-color: var(--c-blue);
  box-shadow: 0 6px 24px rgba(21,101,192,.14);
  transform: translateY(-3px);
}
.contact-card--primary { border-color: rgba(21,101,192,.3); }

.contact-card__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
}

.contact-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--c-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact-card__icon--grey { background: #f1f3f5; font-size: 1.5rem; }

.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.contact-card__label { font-size: .8rem; color: var(--c-grey); }
.contact-card__value { font-size: 1.05rem; font-weight: 700; color: var(--c-blue); }

.contact-card__arrow {
  color: #adb5bd;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================================
   RULES ACCORDION
   ============================================================ */
.rules-accordion .accordion-button {
  font-size: .95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #111;
  border-top: 2px solid var(--c-red);
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 1023px) {
  :root { --sidebar-w: 200px; }
}

@media (max-width: 767px) {
  :root { --sidebar-w: 260px; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .3s ease;
  }
  .sidebar.sidebar--open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,.2);
  }
  .sidebar__overlay { display: block; pointer-events: none; }
  .sidebar__overlay.sidebar__overlay--visible { opacity: 1; pointer-events: auto; }
  .sidebar__burger { display: flex; }

  .page-wrap { margin-left: 0; padding-top: 64px; }

  .section { padding: 56px 0; }
  .hero__inner { padding: 56px 16px 80px; }
  .hero__meta { flex-direction: column; align-items: center; }
  .hero__logo-img { width: 100%; max-width: 100%; }

  .feature-card { padding: 28px 22px; }
  .ticket-card__top { padding: 28px 24px 20px; }
  .ticket-card__features { padding: 20px 24px; }
  .ticket-card__price { font-size: 3rem; }

  .timeline { padding-left: 36px; }
  .timeline::before { left: 11px; }
  .timeline-dot { left: -33px; }

  .contact-card__inner { padding: 20px; gap: 16px; }
  .contact-card__value { font-size: .9rem; }

  #participate .ticket-card { margin-left: 24px; margin-right: 24px; }
}
