/* ===== ОБЩИЕ СТИЛИ ===== */
body {
font-family: "Unbounded", sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html, body {
  overflow-x: hidden;
}

body {
  overflow-x: hidden !important;
}

h1, h2, h3 {
    margin: 0 0 15px;
    text-align: center;
    color: white;
    font-family: "Unbounded", sans-serif;
}

/*======header=======*/
/* ==== БАЗОВЫЙ HEADER ==== */
.no-scroll {
  overflow: hidden;
}
.site-header {
  background: #FDEAB9;
  padding: 0.7rem 1.5rem;
  position: relative;
  z-index: 1000;
}

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

.logo img {
  height: 80px;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
  margin-right: 10%;
}

.main-nav a {
  color: #d6932e;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  font-family: 'Unbounded';
  letter-spacing: 1px;
  font-size: 15pt;
}

.main-nav a:hover {
  color: #ff7029;
}

.hero-block__btn {
  background-color: rgb(185 255 203 / 0%);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  border: 5px solid #f9aa1e;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: 'Unbounded';
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-block__btn_up {
  background-color: #fcb230;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: 'Unbounded';
  font-weight: 300;
  letter-spacing: 1pt;
}

/* ==== БУРГЕР ==== */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 25px;
  cursor: pointer;
  gap: 6px;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffbf14;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Активное состояние бургера */
.burger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==== МОБИЛЬНЫЙ ВИД ==== */
@media (max-width: 850px) {
  .burger-menu {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: #ffddb8;
    gap: 1.2rem;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .main-nav.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero-block__btn {
    margin-top: 0.5rem;
  }
}


/* ===== ЕЩЁ МЕНЬШИЕ ЭКРАНЫ ===== */
@media (max-width: 480px) {
  .header-container {
    gap: 0.5rem;
  }

  .main-nav {
    flex-direction: column;
    align-items: center;
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  #callbackBtn {
    width: 90%;
  }
}


/* ===== СЕКЦИИ ===== */
.section {
  padding: 100px 20px;
  text-align: center;
  margin: 0 auto;
}

.p.info {
  background-color: black;
}

.section.light {
  background-image: url(images/batut.png);
  background-repeat:no-repeat;
  background-position: center center;

}

.section.dark {
  background: #222;
  color: white;
}

.section.accent {
  background: linear-gradient(140deg, #0d0d0d, #00756c, #628981);
  background-size: 200% 200%;
  animation: gradientMove 10s ease infinite;
  padding: 80px 0;
  color: #fff;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px;
  gap: 20px;
  background-color: #FDEAB9;
}

.contacts-info {
  flex: 1 1 400px;
  max-width: 500px;
  font-family: 'Unbounded';
}

.contacts h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Unbounded';
  color: #555555;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 20px;
}

.icon {
  font-size: 22px;
  color: #28a76c;
}

.contact-item h3 {
  color: #f9b02f;
  margin: 0;
}

.contact-item a {
  color: #f9b02f;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.socials p {
  font-weight: 600;
  margin-bottom: 10px;
}

.socials a {
  display: inline-block;
  margin-right: 10px;
}

.socials img {
  width: 36px;
  height: 36px;
}

.contacts-map {
  flex: 1 1 500px;
  min-height: 400px;
}

iframe {
  border-radius: 10px;
}

/* ===== ПРАЙС ===== */
.price-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.price-block {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  color: white;
}

.price-block ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.price-block li {
  margin-bottom: 10px;
}

/* ===== АБОНЕМЕНТЫ ===== */
.abonement-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.abonement {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  width: 280px;
}

.abonement .price {
  font-size: 1.4em;
  color: #00ffb3;
  margin: 10px 0;
}

/* ===== КОНТАКТЫ ===== */
.socials {
  margin-top: 10px;

}

.socials a {
  margin: 0 8px;
  text-decoration: none;
  color: #00c4ff;
  font-weight: bold;
}

.socials a:hover {
  text-decoration: underline;
}

/* ===== ПОДВАЛ ===== */
.site-footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 15px;
  letter-spacing: 1px;
}
/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fbdfb4;
  border-radius: 10px;
  padding: 30px 20px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 10px 5px;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid #aaa;
  background: #fbdfb4;
  color: #3b3b3b;
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

/* Placeholder */
.modal-content input::placeholder {
  color: #3b3b3b;
  opacity: 0.8;
  transition: 0.3s ease;
}

/* При наведении — лёгкое подсвечивание */
.modal-content input:hover {
  border-bottom-color: #ffb88c;
}

/* При фокусе — анимация линии и смена цвета */
.modal-content input:focus {
  border-bottom-color: #ffa366;
  box-shadow: 0 2px 0 0 #ffa366;
}

/* Анимация placeholder — при фокусе он немного поднимается */
.modal-content input:focus::placeholder {
  transform: translateY(-5px);
  opacity: 0.6;
}


.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
  color: #777;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    margin: 10px 0;
  }
}

/* Базовая стилизация */
.rules-section {
    font-family: "Arial";
    max-width: 100%;
    margin: 4rem auto;
    padding: 2rem;
    color: #fff;
    background-color: #FDEAB9;
    margin-top: -40px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}
/* Заголовки с линиями */



.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: #ccc;
  transform: translateY(-50%);
}

.section-title::before {
  left: calc(50% - 90px);
}

.section-title::after {
  right: calc(50% - 90px);
}

/* Карточка правил */
.rules-card {
  background: #d28e26;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Заголовок аккордеона */
.rules-header {
  cursor: pointer;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
  font-family: 'Unbounded';
  font-weight: 400;
  letter-spacing: 1px;
}
.rules-header:hover {
  background: #f9b02f;
}
.rules-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rules-header .icon {
  color: #16a34a;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Контент аккордеона (плавное открытие) */
.rules-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 2rem;
  background: #fdb951;
  border-top: 1px solid transparent;
  line-height: 1.6;
  transition: all 0.4s ease;
}
.rules-content.open {
  max-height: 100%;
  opacity: 1;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.rules-content ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}
.rules-content li {
  margin-bottom: 0.5rem;
}

/* Документы */
.documents {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.doc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #25393d;
  font-weight: 600;
  transition: color 0.2s ease;
}
.doc-link:hover {
  color: #0056b3;
}
.doc-link .icon {
  font-size: 1.2rem;
}

@font-face {
  font-family: 'Unbounded';
  src: url("./fonts/font.woff") format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap; /* улучшает производительность */
}

@font-face {
  font-family: 'one';
  src: url("./fonts/DaysOne-Regular.woff") format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap; /* улучшает производительность */
}

@font-face {
  font-family: '2';
  src: url("./fonts/Gropled-Bold.woff") format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap; /* улучшает производительность */
}

@font-face {
  font-family: '1';
  src: url("./fonts/Adventure_Indiana_Jones.woff") format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap; /* улучшает производительность */
}

/* om*/ 
button {
  position: relative;
  padding: 12px 35px;

  font-size: 17px;
  font-weight: 600;
  color: #181818;
  border: 3px solid #fec195;
  border-radius: 8px;
  box-shadow: 0 0 0 #fec1958c;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  color: #3d3d3d;
}

.star-1 {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 25px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

.star-2 {
  position: absolute;
  top: 45%;
  left: 45%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-3 {
  position: absolute;
  top: 40%;
  left: 40%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-4 {
  position: absolute;
  top: 20%;
  left: 40%;
  width: 8px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-5 {
  position: absolute;
  top: 25%;
  left: 45%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.6s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-6 {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.8s ease;
}

button:hover {
  background: transparent;
  color: #fec195;
  box-shadow: 0 0 25px #fec1958c;
}

button:hover .star-1 {
  position: absolute;
  top: -80%;
  left: -30%;
  width: 25px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-2 {
  position: absolute;
  top: -25%;
  left: 10%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-3 {
  position: absolute;
  top: 55%;
  left: 25%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-4 {
  position: absolute;
  top: 30%;
  left: 80%;
  width: 8px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-5 {
  position: absolute;
  top: 25%;
  left: 115%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-6 {
  position: absolute;
  top: 5%;
  left: 60%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

.fil0 {
  fill: #fffdef;
}


/* Минималистичный информационный блок */
.info-block {
  background: #fec195;
  color: #333;
  max-width: 420px;
  padding: 5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 1.5rem auto;
  font-family: "Inter", sans-serif;
  border: 5px solid #e5e7eb;
  box-shadow: 3px 4px 2px 0px rgb(18 17 17 / 49%);
}

.info-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.info-block .info-icon {
  font-size: 2.5rem;
  color: #0077ff;
  margin-bottom: 1rem;
}

.info-block .info-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-block .info-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

/*=========/*
/* === Базовые стили прелоадера === */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 2s ease, visibility 2s ease;
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* === SVG Анимация (твой код) === */
.loader {
  width: 6em;
  height: 6em;
}

.loader-ring {
  animation: ringA 2s linear infinite;
}

.loader-ring-a {
  stroke: #fff; /* зеленый под стиль сайта */
}

.loader-ring-b {
  animation-name: ringB;
  stroke: #fcb230;
}

.loader-ring-c {
  animation-name: ringC;
  stroke: #fff;
}

.loader-ring-d {
  animation-name: ringD;
  stroke: #fcb230;
}

/* === Анимации === */
@keyframes ringA {
  from, 4% { stroke-dasharray: 0 660; stroke-width: 20; stroke-dashoffset: -330; }
  12% { stroke-dasharray: 60 600; stroke-width: 30; stroke-dashoffset: -335; }
  32% { stroke-dasharray: 60 600; stroke-width: 30; stroke-dashoffset: -595; }
  40%, 54% { stroke-dasharray: 0 660; stroke-width: 20; stroke-dashoffset: -660; }
  62% { stroke-dasharray: 60 600; stroke-width: 30; stroke-dashoffset: -665; }
  82% { stroke-dasharray: 60 600; stroke-width: 30; stroke-dashoffset: -925; }
  90%, to { stroke-dasharray: 0 660; stroke-width: 20; stroke-dashoffset: -990; }
}

@keyframes ringB {
  from, 12% { stroke-dasharray: 0 220; stroke-width: 20; stroke-dashoffset: -110; }
  20% { stroke-dasharray: 20 200; stroke-width: 30; stroke-dashoffset: -115; }
  40% { stroke-dasharray: 20 200; stroke-width: 30; stroke-dashoffset: -195; }
  48%, 62% { stroke-dasharray: 0 220; stroke-width: 20; stroke-dashoffset: -220; }
  70% { stroke-dasharray: 20 200; stroke-width: 30; stroke-dashoffset: -225; }
  90% { stroke-dasharray: 20 200; stroke-width: 30; stroke-dashoffset: -305; }
  98%, to { stroke-dasharray: 0 220; stroke-width: 20; stroke-dashoffset: -330; }
}

@keyframes ringC {
  from { stroke-dasharray: 0 440; stroke-width: 20; stroke-dashoffset: 0; }
  8% { stroke-dasharray: 40 400; stroke-width: 30; stroke-dashoffset: -5; }
  28% { stroke-dasharray: 40 400; stroke-width: 30; stroke-dashoffset: -175; }
  36%, 58% { stroke-dasharray: 0 440; stroke-width: 20; stroke-dashoffset: -220; }
  66% { stroke-dasharray: 40 400; stroke-width: 30; stroke-dashoffset: -225; }
  86% { stroke-dasharray: 40 400; stroke-width: 30; stroke-dashoffset: -395; }
  94%, to { stroke-dasharray: 0 440; stroke-width: 20; stroke-dashoffset: -440; }
}

@keyframes ringD {
  from, 8% { stroke-dasharray: 0 440; stroke-width: 20; stroke-dashoffset: 0; }
  16% { stroke-dasharray: 40 400; stroke-width: 30; stroke-dashoffset: -5; }
  36% { stroke-dasharray: 40 400; stroke-width: 30; stroke-dashoffset: -175; }
  44%, 50% { stroke-dasharray: 0 440; stroke-width: 20; stroke-dashoffset: -220; }
  58% { stroke-dasharray: 40 400; stroke-width: 30; stroke-dashoffset: -225; }
  78% { stroke-dasharray: 40 400; stroke-width: 30; stroke-dashoffset: -395; }
  86%, to { stroke-dasharray: 0 440; stroke-width: 20; stroke-dashoffset: -440; }
}

/*=========*/
@font-face {
  font-family: 'MyFont';
  src: url("https://batutnyi1-dev.github.io/fonts/myfont.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*====abonements=====*/
/* Контейнер секции */
.cost-block {
  max-width: 100%;
  margin: 0.5rem auto;
  padding: 2rem;
  font-family: "Inter", sans-serif;
  color: #f5f5f5;
  background: #FDEAB9;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Заголовок секции */
.cost-block__title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #d28e26;
  text-shadow: 0 0 8px rgba(0, 255, 153, 0.2);
  font-family: 'Unbounded';
  font-weight: 600;
}



.desc-price {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 800px;
  text-align: center;
  color: #7b7b7b; /* твой фирменный светло-зелёный */
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .desc-price {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
}

/* Обёртка для аккордеонов */
.cost-block__accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Элемент аккордеона */
.cost-block__item {
  border: 1px solid #333;
  border-radius: 10px;
  background: #1f1f1f;
  overflow: hidden;
}

/* Заголовок */
.cost-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  background: #ffe2cc;
  color: #4b3b35;
  transition: background 0.3s ease;
  font-family: 'Unbounded';
  font-weight: 600;
}
.cost-block__header:hover {
  background: #FF9F55;
}

/* Иконка */
.cost-block__icon {
  color: #00ff99;
  font-size: 1.4rem;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

/* Контент */
.cost-block__content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: #f1cfb3;
    padding: 0 1.2rem;
    transition: all 0.4s ease;
    line-height: 1.6;
    color: #4b3b35;

    font-family: 'Unbounded';
    font-weight: 600;
}
.cost-block__content.open {
  max-height: 600px;
  opacity: 1;
  padding: 1rem 1.2rem 1.5rem;
}

/* Списки */
.cost-block__content ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}
.cost-block__content li {
  margin-bottom: 0.4rem;
}

/* Адаптивность */
@media (max-width: 600px) {
  .cost-block {
    padding: 1.5rem;
  }
  .cost-block__header {
    font-size: 1rem;
  }
}

/*=========*/
/* СЕКЦИЯ "Абонементы и тренировки" */
.train-plan {
    max-width: 100%;
    margin: 3rem auto;
    padding: 2rem;
    font-family: "Inter", sans-serif;
    color: #4b3b35;
    background: #FDEAB9;
    margin-top: -0px;

    font-weight: 100;
}



/* Элемент аккордеона */
.train-plan__item {
  background: #2b2f2d;
  border: 1px solid #3d413f;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Заголовок */
.train-plan__header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    background: #ffe2cc;
    transition: background 0.3s ease;
    font-family: 'Unbounded';
    font-weight: 600;
    color: #4b3b35;
}
.train-plan__header:hover {
  background: #FF9F55;
}
.train-plan__icon {
  color: #00ffae;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

/* Контент аккордеона */
.train-plan__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #f1cfb3;
  border-top: 1px solid #3d413f;
  padding: 0 1.5rem;
  transition: all 0.4s ease;
}
.train-plan__content.open {
  max-height: 400px;
  opacity: 1;
  padding: 1.2rem 1.5rem;
}

.train-plan__price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4b3b35;
  margin: 0.5rem 0;
}
.train-plan__desc {
  font-size: 0.9rem;
  color: #aaa;
}
/*-- ===== кнопка возврата ===== */
/* === Кнопка "Вверх" === */
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  
  border: none;
  border-radius: 50%;
  height: 60px;
  width: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: scale(1.1);
  background: #00d99b;
}

.arrow-icon {
  width: 48px;
  height: 48px;
  filter: brightness(0) saturate(100%) invert(8%) sepia(91%) saturate(6021%) hue-rotate(123deg) brightness(103%) contrast(105%);
  /* ↑ делает стрелку зелёной неоновой — можно убрать, если PNG уже окрашен */
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover .arrow-icon {
  transform: translateY(-4px);
}


/* --- Исправление для iPhone / Safari --- */
@supports (-webkit-touch-callout: none) {
  .scroll-top-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.9rem !important;
    line-height: 1 !important;
    border-radius: 50% !important;
  }
}

/* ==== СЕКЦИЯ "О НАС" ==== */
.about-block {
  background-color: #FDEAB9;
  color: #af6245;
  padding: 4rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
}

.about-block__container {
  max-width: 850px;
  text-align: center;
  animation: fadeInUp 1.2s ease both;
}

.about-block__title {
  font-size: 2.4rem;
  color: #d28e26;
  margin-bottom: 1rem;

  font-family: 'Unbounded';
  font-weight: 600;
}

.about-block__subtitle {
  font-size: 1.4rem;
  color: #af6245;
  margin-bottom: 2rem;
  font-style: italic;
}

.about-block__text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-block__text strong {
  color: #ff8f00;
}

/* === АНИМАЦИЯ ПОЯВЛЕНИЯ === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
  .about-block {
    padding: 3rem 1rem;
  }

  .about-block__title {
    font-size: 2rem;
  }

  .about-block__subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .about-block__text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .about-block__title {
    font-size: 1.7rem;
  }

  .about-block__subtitle {
    font-size: 1.1rem;
  }

  .about-block__text {
    font-size: 0.95rem;
  }
}


/* ===== HERO СЕКЦИЯ ===== */
.hero-block {
  background-image: url("./gallery/4.png");
  background-size: cover;
  background-position: center;
  height: 530px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background-image 1s ease-in-out; /* плавный переход */
}
/* Эффект мягкого свечения */

.hero-block__container {
  background: rgb(0 0 0 / 66%);
  padding: 1.5rem 6rem;
  border-radius: 12px;
  display: inline-block;
}

/* === Заголовок === */
.hero-block__title {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 800;
}

/* === Подзаголовок === */
.hero-block__subtitle {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  font-family: 'Unbounded';
}
.hero-block__subtitle span {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-top: 0.3rem;
  font-size: 23pt;
}

/* === Кнопки === */
.hero-block__actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-block__btn--alt {
  position: relative;
  display: inline-block;
  background: none;
  color: #fff;
  border: 5px solid #f9b02f;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  letter-spacing: 1px;
  font-family: 'Unbounded';
  font-weight: 600;
}




/* === Адаптив === */
@media (max-width: 768px) {
  .hero-block {
    padding: 4rem 1.5rem;
  }
  .hero-block__title {
    font-size: 2.2rem;
  }
  .hero-block__subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-block__title {
    font-size: 1.8rem;
  }
  .hero-block__subtitle {
    font-size: 1rem;
    font-family: 'Unbounded';
    text-align: center;
  }
  .hero-block__btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }
}

/* === галерея зала === */
/* ==== ГАЛЕРЕЯ ==== */

.gallery-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.gallery-modal__content {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal__close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  transition: opacity 0.3s;
}
.gallery-modal__close:hover {
  opacity: 0.7;
}

.gallery-modal__track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
  width: 100%;
}

.gallery-modal__item {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal__item img,
.gallery-modal__item video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0);
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10001;
}
.gallery-modal__arrow:hover {
  background: rgba(255,255,255,0.4);
}
.gallery-modal__arrow--prev { left: 15px; }
.gallery-modal__arrow--next { right: 15px; }

.gallery-btn {
  background-color: #008c5f;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
.gallery-btn:hover {
  background-color: #00a673;
}


.logo {
  display: flex;
  align-items: center;
  height: 100%;

}

.logo__img {
  height: 100%;
  max-height: 70px; /* ограничим, чтобы не ломался дизайн */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(150, 255, 168, 0.4));
}

.logo__img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(150, 255, 168, 0.7));
}

/* === галерея === */


.photo-gallery {
  padding: 130px 20px;
  background-color: #FDEAB9;
  text-align: center;
  font-family: 'Unbounded', sans-serif;
}

.gallery-title {
  color: #d28e26;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.gallery-item {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 255, 174, 0.4);
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 174, 0.4);
}

/* Для мобильных */
@media (max-width: 600px) {
  .gallery-item {
    height: 160px;
  }
  .gallery-title {
    font-size: 1.6rem;
  }
}
/* описание */
.note-text {
  color: #8f8f8f;
  font-weight: 100;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal; /* Разрешает перенос */
}

/* Адаптив для телефонов */
@media (max-width: 600px) {
  .note-text {
    font-size: 0.85rem;
    text-align: center;
    display: block;
    margin: 0 auto;
    padding: 0 10px;
  }
}
/*===========================*/
.price-section {
    max-width: 1100px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* Верхняя строка — на больших экранах 2 блока рядом */
.row {
    display: flex;
    justify-content: center;
    gap: 60px;
}

/* Карточки */
.card {
    background: #e5d8b8;
    padding: 25px 35px;
    border-radius: 30px;
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card.wide {
    width: 100%;
    max-width: 900px;    
    margin: 0 auto;
    box-sizing: border-box;
}

.card h2 {
    color: #8c0076;
    margin-bottom: 18px;
    font-size: 26px;
    letter-spacing: 1px;
}

.card p {
    font-size: 20px;
    margin: 10px 0;
}

.highlight {
    color: #d48e00;
    font-weight: bold;
}

small {
    font-size: 14px;
    margin-top: 10px;
    color: #555;
}

/* ---------------------------------------------------------
   📱 АДАПТИВ
   --------------------------------------------------------- */

/* --- Планшеты --- */
@media (max-width: 992px) {

    .row {
        gap: 30px;
    }

    .card {
        width: 280px;
        padding: 20px 25px;
    }

    .card.wide {
        width: 90%;
    }

    .card h2 {
        font-size: 22px;
    }

    .card p {
        font-size: 18px;
    }
}

/* --- Смартфоны (портретный режим) --- */
@media (max-width: 768px) {

    /* Верхние блоки становятся В СТОЛБЕЦ */
    .row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card {
        width: 90%;
        padding: 25px 20px;
        border-radius: 25px;
    }

    .card.wide {
        width: 95%;
    }

    .card h2 {
        font-size: 20px;
    }

    .card p {
        font-size: 17px;
    }

    small {
        font-size: 12px;
    }
}

/* --- Очень маленькие телефоны (iPhone SE и т.п.) --- */
@media (max-width: 420px) {

    .card {
        padding: 18px 15px;
    }

    .card h2 {
        font-size: 18px;
    }

    .card p {
        font-size: 15px;
    }
}


/* Контейнер */
.party-container {
    max-width: 1100px;
    margin: 40px auto;
    text-align: center;
}

/* Заголовки */
.title {
    color: #ffcc00;
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 35px;
}

.section-title {
    color: #d28e26;
    font-size: 56px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Карточки */
.card {
    background: #d0c098;
    padding: 25px 35px;
    border-radius: 25px;
    width: 350px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card h2 {
    color: #8c0076;
    margin-bottom: 15px;
    font-size: 26px;
}

.card p {
    font-size: 20px;
    margin: 8px 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.yellow {
    color: #fdd324;
    font-weight: bold;
    font-family: 'Unbounded';
}

.bold {
    font-size: 22px;
}

/* Ряд: фото – карточка – фото */
.row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.img-block {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

/* Список */
.list {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 18px;
    line-height: 1.6;
}

.list li {
    margin-bottom: 12px;
}

/* Инструктор */
.instructor {
    margin-top: 20px;
    font-size: 20px;
}

.yellow-bg {
    background: #d48e00;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'Unbounded';
}

/* ----------------------------------------------------
   📱 АДАПТИВ — смартфоны
   ---------------------------------------------------- */

@media (max-width: 900px) {

    .img-block {
        width: 180px;
        height: 180px;
    }

    .card {
        width: 280px;
        padding: 20px 25px;
    }
}

@media (max-width: 700px) {

    .row {
        flex-direction: column;
        gap: 15px;
    }

    .img-block {
        width: 90%;
        height: auto;
    }

    .card {
        width: 90%;
    }

    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 450px) {

    .title {
        font-size: 26px;
    }

    .card h2 {
        font-size: 22px;
    }

    .card p {
        font-size: 16px;
    }

    .list {
        font-size: 16px;
    }

    .instructor {
        font-size: 16px;
    }
}
.logo-small {
    display: none; /* по умолчанию скрыт */
}

@media (max-width: 1160px) {
    .logo-large {
        display: none;  /* скрываем большое лого */
    }
    .logo-small {
        display: block; /* показываем маленькое лого */
    }
}

/* Общий фон секции */
.rules-section1 {

    padding: 40px 0;
}

/* Контейнер */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Карточки */
.rules-card {
    background: #d2c6a4;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.13);
}

/* Заголовок */
.rules-title {
    margin: 0 0 20px 0;
    text-align: center;
    color: #7f0c5a;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Список */
.rules-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    line-height: 1.55;
    font-size: 1rem;
}

.rules-list li {
    margin-bottom: 16px;
    color: #4a2c0a;
}

.rules-list strong {
    color: #fdd324;
    letter-spacing: 1px;
}

/* ⭐ Аккуратная сноска */
.rules-footnote {
    margin-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(74, 44, 10, 0.8);
    line-height: 1.4;
    padding-top: 12px;
    border-top: 1px solid rgba(74, 44, 10, 0.25);
    opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 900px) {
    .rules-card { padding: 28px; }
    .rules-title { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .rules-card { padding: 22px; border-radius: 16px; }
    .rules-title { font-size: 1.25rem; }
    .rules-list { font-size: 0.95rem; }
    .rules-footnote { font-size: 0.8rem; }
}