@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --gold: #eece79;
  --green: #004d28;
  --dark-bg: #0c0c0c;
  --light-bg: #f8f9fa;
}

body {
  max-width: 1200px;
  margin: auto;
  font-family: "Montserrat", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  overflow-y: scroll !important;
  background: #000;
}

/* Фон: сразу подгружается маленький, потом подменяется большим */
.rotated-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('/icons/CFBG-small.webp'); /* вес <100KB */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1px);
  transform: scale(1.03); /* чтобы не было артефактов по краям */
  transition: filter 1s ease, background-image 0.3s ease;
}

/* Затемнение */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: -1;
}

/* Когда большой фон подгружен */
.rotated-bg.loaded {
  filter: none;
}

#top-menu {
  background: #004d28;
  opacity: 0.9;
  max-width: 1200px;
  margin: auto;
}

/* стили для иконок соцсетей */

.social-links-container {
  padding: 1rem 0;
}

.social-links-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.social-links-item a {
  color: var(--light-bg);
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.social-links-item a:hover {
  color: #004d28; /* Основной цвет темы */
  transform: scale(1.2);
}

.social-links-item a i {
  padding: 0.3rem;
}

/* Альтернативный вариант с фоном при наведении */
.social-links-item a:hover i {
  color: #004928;
  background-color: var(--light-bg);
  border-radius: 50%;
  padding: 0.3rem;
}

/* Header styles */
.header { 
  background: var(--green);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand img:hover {
  transform: scale(1.1);
}

.nav-link {
  border-radius: 0.5rem;
}

.nav-link:hover {
  color: var(--dark-bg);
  background: var(--light-bg);
  cursor: pointer;
}
       
/* Hero section */
.hero {
  display: flex;
  align-items: center;
  color: var(--light-bg);
  height: 100vh;
  background: left;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 8em auto 2rem;
  padding: 1rem;
}

.hero-text {
  max-width: 60vw;
}

.hero-text h1, .hero-text h2 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8),
               0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-text .subtitle {
  font-size: 1.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8),
               0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-text p {
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

section {
  border-bottom: 1px dashed var(--green);
  background: var(--light-bg);
  padding: 3rem 1rem;
}

.section-title {
  color: var(--dark-bg);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  animation: goldPulse 3s ease infinite;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
   backdrop-filter: blur(10px);
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.emoji {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,68,210,0.3));
}

.benefit-card h3 {
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.benefit-card p {
  color: var(--dark-bg);
  line-height: 1.6;
}

.benefit-card {
  opacity: 0;
}

.benefit-card.animated {
  animation: cardEntrance 0.6s ease forwards;
}

.benefit-card.animated:nth-child(1) { animation-delay: 0.2s; }
.benefit-card.animated:nth-child(2) { animation-delay: 0.4s; }
.benefit-card.animated:nth-child(3) { animation-delay: 0.6s; }
.benefit-card.animated:nth-child(4) { animation-delay: 0.8s; }

.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--dark-bg);
}

/* Адаптация текстовых теней */
/* Иконки и эмодзи */
.icon-lg {
  color: var(--gold);
}

.location-card, .schedule-card, .age-card {
  display: flex;
  flex-direction: column;
}

.location-card i, .schedule-card i, .age-card i {
  font-size: 1.2rem;
}

.location-card h3, .schedule-card h3, .age-card h3 {
  font-size: 1.4rem;
}

.location-card > div:first-child, .schedule-card > div:first-child, .age-card > div:first-child {
  display: flex;
  align-items: last baseline;
  gap: 0.5rem;
  border-bottom: 0.2rem solid #ccc;
  margin: auto;
  width: fit-content;
}

.location-card > span, .schedule-card > ul, .age-card > .age-group {
  margin: auto;
}

.timeline {
  font-size: 1.1rem;
}

.age-group {
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.badge {
  color: var(--dark-bg)
}

.badge i {
  color: var(--gold);
  font-size: 1.6rem;
}

.badge span {
  font-size: 1.1rem;
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.format-card {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.format-card:hover {
  transform: translateY(-10px);
}

.format-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.format-details {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.format-details p {
  font-weight: 600;
  height: 2rem;
}

.gold-card::after {
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.green-card::after {
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.format-card i {
  font-size: 2rem;
  color: var(--green);
  margin: 0.5rem 0.5rem;
  display: block;
}

.format-card h3 {
  color: var(--dark-bg);
  margin-bottom: 1rem;
  color: var(--dark-bg);
  margin-bottom: 1rem;
  display: flex;
  GAP: 1rem;
  font-size: 1.4rem;
  align-items: center;
}

.specs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem auto 2rem;
}

.spec-item {
  background: rgba(0,68,210,0.08);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.9rem;
  width: 100%
}

.spec-item .material-icons {
  font-size: 3rem;
  margin: 0.5rem 0;
  color: var(--green);
}

.price-tag {
  background:var(--gold);
  color: var(--dark-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 1rem;
  display: inline-block;
  font-weight: 700;
  margin: auto auto 1rem;
  font-size: 1.2rem;
  width: fit-content;
  align-self: center;
}

.features {
  margin: auto;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    list-style: disclosure-closed;
}

.title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-container {
  /*! padding: 2rem 1rem; */
  max-width: 1200px;
  /*! margin: 0 auto; */
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.about-photo {
  flex: 0 0 250px;
  max-width: 250px;
  border-radius: 12px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.about-details {
  flex: 1;
  min-width: 280px;
}

.about-name-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.about-list-item {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.about-list-item::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3ab54a;
  font-size: 1rem;
  line-height: 1;
}

.about-mission {
  font-style: italic;
  color: #555;
  line-height: 1.6;
}

/* Блок с отзывами (горизонтальная прокрутка или свайп на мобильных */

.horizontal-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* для плавности на iOS */
  scroll-snap-type: x mandatory;
  margin: 0;
}

.slides {
  display: flex;
  gap: 0.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.slide {
  flex: 0 0 80%;
  scroll-snap-align: start;
  min-width: 320px;
  max-width: 360px;
  background: #f9f9f9;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Instagram блок адаптивный */
.instagram-media {
  width: 100% !important;
  max-width: 100% !important;
}

/* Правила игры */
.highlight {
  background-color: #f8f4ff;
  padding: 1rem;
  border-left: 4px solid #8e44ad;
  font-style: italic;
  font-weight: 500;
}

.tip {
  background: #f0fff4;
  border-left: 4px solid #27ae60;
  padding: 0.5rem;
  margin: -0.5rem 0 1rem 1.2rem;
}

.warning {
  background: #fff0f0;
  border-left: 4px solid #e74c3c;
  padding: 0.5rem;
  margin: -0.5rem 0 1rem 1.2rem;
}

/* Стили модального окна записи */

.calendar td {
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar td:hover {
  background-color: #f0f0f0;
}

.event-day {
  background-color: #d1e7dd !important;
  font-weight: bold;
  border: 2px solid #0f5132;
}

.selected-day {
  background-color: #0d6efd !important;
  color: white;
}

.faq {
  position: relative;
}

footer {
  background-color: var(--dark-bg);
  color: var(--light-bg);
  padding: 3rem 0 3rem;
}

footer h2 {
  text-align: center;
}

#mobile-contact {
  display: none;
}

#ratingTable_filter label {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem;
}

div.gridjs-search {
  padding: 0.5rem 0rem !important;
}

.achives {
  width: 2rem;
  height: 2rem;
}

.mobile-view {
  display: none;
}

/* Анимации */
@keyframes goldPulse {
  0% { text-shadow: 0 0 10px rgba(238,206,121,0.3); }
  50% { text-shadow: 0 0 20px rgba(238,206,121,0.5); }
  100% { text-shadow: 0 0 10px rgba(238,206,121,0.3); }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 720px) {

  .mobile-view {
    display: inline;
  }

  .rotated-bg {
    background-image: url('/icons/CFBG-small.webp')
  }

  section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    overflow-y: auto;
    padding: 1rem 0rem;
    display: flex;
  }

  .container {
    margin: auto;
  }

  .section h3 {
    font-size: 1.2rem;
  }

  .rule-section h3 {
    font-size: 1.1rem;
  }

  .highlight {
    padding: 0.5rem;
    margin: 1rem 0;
  }

  .tip {
    padding: 0.5rem;
    margin: -0.5rem 0 1rem 1rem;
  }

  .warning {
    padding: 0.5rem;
    margin: -0.5rem 0 1rem 1rem;
  }

  .timeline {
    font-size: 1rem;
  }

  .badge span {
    font-size: 1rem;
  }

  body, html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
  }

  #top-menu {
    opacity: 1;
  }

  #navbarNav {
    margin-left: 1.1rem;
    margin-top: 0.5rem;
  }

  #navbarNav div {
    display: none;
  }

  .hero {
    min-height: 100vh;
  }
        
  .hero-text {
    max-width: 100vw;
  }

  .hero-text p {
    font-size: 0.9rem;
    line-height: 1.8rem;
  }

  .hero-content {
    margin: 0;
  }

  .hero-text h1, .hero-text h2 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  }

  .hero-text .subtitle {
    display: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
  }
        
  .btn {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
      
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    max-width: 240px;
    margin-top: 2rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .section-title {
    margin: 1rem auto 1.5rem;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.4rem;
  }
      
  .benefit-card {
    padding: 0;
  }
    
  .emoji {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    filter: none;
  }

  .benefit-card h3 {
    font-size: 1.1rem;
  }

  .about {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('/icons/olga.webp');
    color: white;
    position: relative;
    z-index: 1;
  }

  .about-container {
    padding: 0;
  }

  .about-container h2:nth-child(1) {
    position: absolute;
    top: 2.5rem;
    text-align: center;
    width: 100%;
  }
  
  .about-container h2:nth-child(2) {
    position: absolute;
    top: 5rem;
    text-align: center;
    width: 100%;
  }

  .about-photo {
    display: none;
  }

  .about-details {
    background:rgba(0, 0, 0, 0.5);
    padding: 1rem;
    position: absolute;
    left: 0;
    bottom: 10%;
    z-index: 2;
  }

  .about-title {
    color: var(--light-bg);
  }
  
  .about-list {
    display:  none;
  }
  
  .about-mission {
    text-align: center;
    color: var(--light-bg);
  }

  .about-list-item::before {
    color: #fff;
  }

  #review {
    margin: 1rem auto;
  }

  .horizontal-scroller {
    margin: 0;
  }

  .slide {
    gap: 2vw;
  }

  .slide {
    scroll-snap-align: center;
    flex: 0 0 auto;
    min-width: 96vw;
    max-width: 96vw;
  }
  
  .formats-grid {
    gap: 0.4rem;
  }

  .format-card {
    margin: 0.2rem auto;
    width: 80vw;
    max-width: 320px;
    padding: 0.5rem;
  }

  .format-card::after {
    height: 0rem;
  }

  .format-details p {
    margin: auto auto 0rem;
    font-size: 0.9rem;
  }

  .format-card i {
    font-size: 1.4rem;
    margin: 0rem 0.5rem;
  }

  .format-card h3 {
    margin-bottom: 0.2rem;
    align-self: center;
    font-size: 1rem;
    gap: 0;
  }

  .specs {
    gap: 0rem;
    margin: 0rem auto;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
  }

  .spec-item {
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    width: 50%;
    height: 3rem;
  }

  .specs .spec-item:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    /*! padding-bottom: 0; */
  }

  .specs .spec-item:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    /*! padding-top: 0; */
  }

  .spec-item .material-icons {
    font-size: 1.5rem;
    margin: 0.3rem 0.5rem 0.3rem 0.4rem;
  }

  .price-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    margin: 0.5rem auto 0;
    font-size: 0.9rem;
  }

  .features li {
      padding: 0.1rem 0;
      border-bottom: 1px solid #eee;
      font-size: 0.9rem;
  }

  .title-container {
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
  }

  footer {
    display: none
  }

  .faq .container {
    height: 100%;
  }

  #mobile-contact {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1rem 1rem 0;
    background: var(--bs-black);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
  }

  .achives {
    width: 1.7rem;
    height: 1.7rem;
  }
}

@media (max-width: 360px) {

}