:root {
  --color-light: #5cb8cc;
  --color-dark: #00667a;
  --color-text: #333;
  --color-white: #f9f9f9;
}

main section {
  padding: 40px 0;
  margin-bottom: 40px;
}

h1,
h2,
h3,
h4 {
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

h2::before {
  background: var(--color-dark);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-lead {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--color-dark);
  text-align: center;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-top: 20px;
  background-color: var(--color-dark);
  color: white;
}

.btn:hover {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color);
}

.btn-outline:hover {
  background-color: var(--color);
  color: white;
}

.trening-header .btn {
  padding: 10px 32px 0px 32px;
}

.trening-header .btn:hover {
  background-color: var(--color-text);
  border-color: var(--color-text);
}

.trening-header {
  text-align: center;
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--color-white);
  border-radius: 10px;
  margin-top: 30px;
}

.trening-header h1 {
  background: var(--color-white);
  padding: 0;
  border-radius: 10px;
}

.trening-header img {
  border-radius: 10px 10px 0 0;
}

.trening-text strong {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  display: block;
  color: var(--color-dark);
}

.trening-header .logo {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 1.5em auto 1em auto;
  width: fit-content;
  background: var(--color-dark);
  padding: 5px 20px;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  line-height: 1.2;
}

.trening-header i {
  position: relative;
  top: -5px;
  animation: spin-down 1s infinite linear;
}

@keyframes spin-down {
  00% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(0px);
  }
}

.trening-header > div > div {
  padding: 0 50px 50px 50px;
}

.trening-header p,
.trening-text {
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.trening-result {
  display: flex;
  text-transform: uppercase;
  align-items: center;
  margin: 20px 0;
}

.trening-result span {
  color: var(--color-dark);
  font-size: 2rem;
  padding: 0 20px;
}

.why {
  padding-bottom: 60px;
  border-radius: 10px;
  background-color: #f0f8fa;
}

.why > div {
  padding: 0 50px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid var(--color-dark);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  color: var(--color-dark);
  margin-bottom: 20px;
}

.services {
  background-color: var(--color-white);
  padding-bottom: 60px;
  border-radius: 10px;
}

.service-grid a {
  font-weight: bold;
  color: var(--color);
  transition: 0.3s all ease;
}

.service-grid a:hover {
  opacity: 0.7;
}

.services > div {
  padding: 0 60px;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.service-item {
  padding: 20px 15px;
  font-size: 1.1rem;
  width: 270px;
  text-align: center;
  transition: transform 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item i {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

/* Портфолио тренингов */
.programs {
  background-color: #f0f8fa;
  border-radius: 10px;
}

.programs > div {
  padding: 0 50px;
}

.program-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.program-cards h3 {
  text-transform: none;
}

.program-card {
  flex: 1;
  min-width: 400px;
  max-width: 500px;
  background: white;
  padding: 30px;
  border: 1px solid var(--color-dark);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--color);
}

.program-card .btn {
  margin-top: 0px;
  font-size: 1rem;
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 110%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1001;
}

.close:hover {
  color: var(--color);
}

.modal-text {
  margin-top: 20px;
}

.modal-text h4 {
  color: var(--color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.modal-text ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.modal-text li {
  margin-bottom: 8px;
  list-style: disc;
  margin-left: 20px;
}

/* Программа */
.program-time {
  background-color: white;
  border-radius: 10px;
  padding: 40px 20px;
  color: var(--color-text);
}

.program-container {
  max-width: 1200px;
  margin: 0 auto;
}

.program-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-dark);
}

.program-title span {
  display: block;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-light);
  margin-top: 8px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.day-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  border: 1px solid #eee;
}

.day-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 102, 122, 0.1);
}

.day-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.day-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  color: white;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.day-content {
  padding: 20px;
}

.schedule-item {
  display: flex;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px dashed #eee;
  padding-bottom: 8px;
}

.schedule-item:last-child {
  border-bottom: none;
}

.time {
  min-width: 120px;
  font-weight: 600;
  color: var(--color-dark);
}

.event {
  color: var(--color-text);
}

.highlight .event {
  font-weight: 600;
  color: var(--color-dark);
}

.event-note {
  font-size: 0.85rem;
  color: #888;
}

.special-offers {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.offer-card {
  background: var(--color-white);
  border-left: 6px solid;
  padding: 18px 25px;
  border-radius: 10px;
  flex: 1 1 250px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.offer-icon {
  font-size: 2rem;
}

.offer-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.offer-text strong {
  color: var(--color-dark);
  font-size: 1.05rem;
}

.offer-text span {
  color: #666;
  font-size: 0.9rem;
}

/* Тренеры */

.trainers {
  background-color: #f0f8fa;
  border-radius: 10px;
}

.trainers > div {
  padding: 0 50px;
}

.trainer-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.trainer-card {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: min-content;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--color-dark);
}

.trainer-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 auto 20px;
  border: 3px solid var(--color-dark);
  background-size: cover;
  background-position: center;
}

.trainer-card ul {
  list-style: none;
  text-align: left;
  margin-top: 20px;
}

.trainer-card li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.trainer-card li:before {
  content: "✓";
  color: var(--color-dark);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.photo {
  margin: 40px 0;
}

.trening-gallery {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.trening-gallery .swiper-wrapper {
  align-items: center;
}

.trening-gallery .swiper-slide {
  width: auto;
  height: 80%;
  transition: transform 0.3s ease;
}

.trening-gallery .swiper-slide-active {
  transform: scale(1.1);
  z-index: 2;
}

.trening-gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.trening-gallery .swiper-slide-active img {
  opacity: 1;
}

.trening-gallery .swiper-button-next,
.trening-gallery .swiper-button-prev {
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.trening-gallery .swiper-button-next:after,
.trening-gallery .swiper-button-prev:after {
  font-size: 18px;
}

.trening-gallery .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: white;
  opacity: 0.5;
}

.trening-gallery .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 768px) {
  main {
    margin: 0 0 20px 0;
  }

  .trening-gallery {
    height: 300px;
  }

  .trening-gallery .swiper-button-next,
  .trening-gallery .swiper-button-prev {
    display: none;
  }

  .trening-gallery .swiper-slide {
    width: 80%;
  }

  .trening-header .logo {
    font-size: 1.6rem;
    background: none;
    color: var(--color-dark);
  }

  .trening-header h1 {
    color: black;
  }

  .trening-header p,
  .trening-text {
    font-size: 1rem;
    margin: 0 auto 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .feature-card,
  .program-card,
  .trainer-card {
    min-width: 100%;
  }

  .programs > div {
    padding: 0 30px;
  }

  .modal-content {
    padding: 20px;
    margin: 5% auto;
    width: 95%;
    border: 2px solid var(--color-dark);
    border-radius: 10px;
  }

  .photo {
    margin: 0;
  }

  .photo {
    margin: 0 0 -20px 0;
  }
}

@media (max-width: 576px) {
  main section {
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .trening-result {
    display: block;
  }

  main section > div {
    padding: 30px !important;
  }

  .trening-header img {
    border-radius: 0;
  }

  .programs > div {
    padding: 20px !important;
  }

  .photo {
    margin: 0 0 -50px 0;
  }

  .trening-header > div {
    padding: 0px !important;
    border-radius: 0 !important;
  }

  main {
    margin: -20px 0 0 0;
    padding: 0 !important;
  }
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Прокрутка к якорю */
html {
  scroll-behavior: smooth;
}
