/* ===== Fonts ===== */
@font-face {
  font-family: "Inter-ExtraLightItalic";
  src: url(../font/Inter_24pt-ExtraLightItalic.ttf);
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inter-LightItalic";
  src: url(../font/Inter_24pt-LightItalic.ttf);
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inter-Light";
  src: url(../font/Inter_24pt-Light.ttf);
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inter-Medium";
  src: url(../font/Inter_24pt-Medium.ttf);
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inter-Regular";
  src: url(../font/Inter_24pt-Regular.ttf);
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inter-Bold";
  src: url(../font/Inter_24pt-Bold.ttf);
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inter-SemiBold";
  src: url(../font/Inter_24pt-SemiBold.ttf);
  font-weight: normal;
  font-style: normal;
}

/* ===== Style ===== */
:root {
  --bg-fon-color: #212121;
  --bg-primery-color: #212121;
  --bg-secondary-color: #fffa6e;
  --headtext-color: #e8e8e8;
  --text-black-color: #212121;
  --text-white-color: #dedede;
  --text-li: #bbb;
  --card-gradient-color: linear-gradient(
    rgba(60, 60, 60, 0.9),
    rgba(60, 60, 60, 0.9)
  );
  --card-color: #3f3f3f;
  --button-primery-color: #fffa6e;
  --button-hover-color: #fff176;
}

[data-theme="dark"] {
  --bg-fon-color: #f3f3f3;
  --bg-primery-color: #fffa6e;
  --bg-secondary-color: #212121;
  --headtext-color: #242424;
  --text-black-color: #dedede;
  --text-white-color: #212121;
  --text-li: #4b4b4b;
  --card-gradient-color: linear-gradient(
    rgba(255, 255, 255, 0.8),
    rgba(226, 226, 226, 0.8)
  );
  --card-color: #d2d2d2;
  --button-primery-color: #242424;
  --button-hover-color: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-fon-color);
  color: var(--text-white-color);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===== Container ===== */
.container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 20px;
}
.equipment-page .container {
  padding: 30px 20px;
}

/* ===== Header ===== */
.header {
  background-color: #fffa6e;
  padding: 20px 0;
  top: 0;
  z-index: 1000;
  border-radius: 0 0 10px 10px;
}

.header-in {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.logo .svg {
  width: 120px;
  height: auto;
}

/* ===== Mobile Menu ===== */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background-color: var(--text-black-color);
  transition: right 0.3s ease;
  overflow-y: auto;
  filter: drop-shadow(0px 3px 5px #585100);
  z-index: 1000;
}

.menu-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-white-color);
  font-size: 50px;
  cursor: pointer;
  z-index: 1002;
}

.nav.active {
  right: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  color: #dedede;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  border-radius: 20px;
  transition: background-color 0.3s ease;
  font-size: 32px;
  font-weight: 500;
  font-family: "Inter-SemiBold";
  background-color: #242424;
}

.nav-link.active {
  background-color: #212121b2;
}

.nav-link svg {
  flex-shrink: 0;
}

.nav-link:hover {
  background-color: #212121b2;
  transition: all 0.3s ease;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  background: #212121;
  color: #fffa6e;
  transition: 0.3s;
}

.theme-toggle:hover {
  transform: scale(1.08);
}

/* ===== icons ===== */
.icons-block {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.icon {
  width: 40px;
}
.icon:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.hidden-2 {
  display: none;
}

/* ===== Hero Section ===== */
.hero {
  padding: 10px 0;
}

.hero-content {
  padding: 0 20px;
  border-radius: 16px;
  text-align: center;
}

.hero-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--headtext-color);
  margin-bottom: 25px;
  line-height: 1.3;
  font-family: "Inter-Bold";
  letter-spacing: 2px;
}

.hero-image {
  width: 100%;
  height: 245px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hero-image .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position: top; */
}

.hero-text {
  font-size: 20px;
  color: var(--text-white-color);
  margin-bottom: 25px;
  text-align: left;
  font-family: "Inter-Regular";
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  font-family: "Inter-Medium";
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 10px;
}

.btn-lk {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  font-family: "Inter-Medium";
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 10px;
  background-color: #fffa6e;
  color: #242424;
  width: 100%;
  max-width: 250px;
}

.btn-lk:hover {
  background-color: #fff82d;
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--button-primery-color);
  color: var(--text-black-color);
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--button-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 250, 110, 0.3);
}

.btn-submit {
  background-color: #242424;
  color: #f6f6f6;
  width: 100%;
  max-width: 350px;
  margin: 10px auto;
}

.btn-submit-a {
  background-color: #242424;
  color: #f6f6f6;
  width: 100%;
  margin: 10px auto;
}

.btn-submit:hover,
.btn-submit-a:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

/* ===== News Section ===== */
.news {
  padding: 30px 0;
}

.news-card {
  background-color: var(--card-color);
  padding: 14px;
  border-radius: 10px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--headtext-color);
  text-align: center;
  margin-bottom: 8px;
  font-family: "Inter-SemiBold";
}

/* ===== Equipment Preview Section ===== */
.equipment-preview {
  padding: 30px 0;
}

.equipment-card {
  background: var(--card-gradient-color), url("../img/image\ 3.jpg");
  background-size: cover;
  background-position: center;
  padding: 20px;
  border-radius: 10px;
  border: 4px solid #212121;
  text-align: center;
}

.equipment-card .section-title {
  color: var(--headtext-color);
  margin-bottom: 16px;
}

.equipment-text {
  font-size: 20px;
  color: var(--text-white-color);
  margin-bottom: 16px;
  text-align: center;
  font-family: "Inter-Regular";
}

.eq-hero {
  padding: 26px 0 8px;
}
.eq-hero h2 {
  position: relative;
  margin-bottom: 12px;
  color: var(--bg-secondary-color);
  font-family: "Inter-Bold", sans-serif;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
}

.eq-hero p {
  position: relative;
  margin-bottom: 22px;
  color: var(--text-white-color);
  font-family: "Inter-Regular", sans-serif;
}

/* ===== index-statment ===== */
.index-statment-inner {
  display: flex;
  flex-direction: column;
  background-color: #fffa6e;
  color: #242424;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 50px;
}

/* ===== Registration Form ===== */
.statment {
  padding: 30px 0;
}

.statment-card {
  background-color: #fffa6e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

.form-title {
  font-size: 24px;
  font-weight: bold;
  color: #242424;
  text-align: center;
  margin-bottom: 3px;
  font-family: "Inter-Bold";
}

.form-subtitle {
  font-size: 14px;
  font-weight: 300;
  color: #242424;
  text-align: center;
  margin-bottom: 14px;
  font-family: "Inter-Regular";
}

.statment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.width {
  max-width: 100px;
}

.form-upgroup {
  display: flex;
  gap: 3px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.form-group label {
  font-size: 16px;
  font-weight: 600;
  color: #242424;
  font-family: "Inter-SemiBold";
}

.form-group input,
.form-group textarea {
  background-color: #fffedf7c;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #242424;
  border: 1px solid #212121;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #242424;
}

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

/* ===== Footer ===== */
.footer {
  background-color: #5c5c5c;
  padding: 30px 0 20px;
  margin-top: 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
}

.list-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #dedede;
}

.footer-nav-list .nav-link {
  background-color: #5c5c5c;
}

.footer-nav-list a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 24px;
  font-weight: 500;
  padding: 5px;
}

.footer-nav-list a:hover {
  color: #fffa6e;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-info .logo {
  display: flex;
  justify-content: center;
}

.footer-info .logo .svg {
  width: 200px;
  height: auto;
}

.footer-info .icons-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  font-weight: 400px;
  font-family: "Inter-Light";
  color: #dddddd;
}

.footer-info .social-links-block {
  display: flex;
  gap: 10px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 13%;
}

.social-link:hover {
  color: #fffa6e;
}

.footer-contacts {
  border-top: 1px solid #3f3f3f;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
}

.contact-item svg {
  flex-shrink: 0;
}

.contact-text {
  font-size: 16px;
  font-weight: 400px;
  font-family: "Inter-Light";
  color: #dddddd;
}

.contact-text a {
  text-decoration: underline;
  text-underline-position: from-font;
  font-size: 20px;
  font-weight: 400px;
  font-family: "Inter-Regular";
  color: #dddddd;
}

.contact-item a:hover {
  color: #fffa6e;
}

/* ===== Scroll ===== */
.scroll-to-top-button {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fffa6e;
  color: white;
  text-decoration: none;
  outline: none;
  opacity: 0.8;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
  color: #212121;
  text-align: center;
}

.scroll-to-top-button::before {
  content: "▲";
  font-size: 20px;
  line-height: 30px;
  text-align: center;
}

.scroll-to-top-button:hover,
.scroll-to-top-button:focus {
  opacity: 1;
}

/*===== Modal window ======*/
/* Модальное окно */
.modal-form {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
}

/* Контент модального окна */
.modal-content-form {
  background-color: #fff;
  margin: 60px auto 0 auto; /* Отступ сверху, центрирование по горизонтали */
  padding: 16px 24px;
  border-radius: 12px;
  width: auto; /* Ширина подстраивается под контент */
  max-width: 400px;
  min-width: 200px;
  text-align: center;
  border: 1px solid #686868; /* Лёгкая граница */
}

/* Текст внутри окна */
.modal-content-form p,h3 {
  font-size: 16px;
  color: #212121;
  margin: 0;
  padding: 8px 0;
  font-family: Arial, sans-serif;
}

/* Кнопка закрытия (крестик) */
.close-form {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #212121;
  cursor: pointer;
  transition: color 0.2s;
}

/* Чтобы крестик позиционировался относительно modal-content */
.modal-content-form {
  position: relative;
}

.close-form:hover {
  color: #666;
}

/* ===== Admin Page ===== */
.admin-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
}

.admin-text-logout {
  font-size: 20px;
  color: var(--text-white-color);
  line-height: 20px;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 20px;
  cursor: pointer;
}

.logout-link {
  color: red;
}

.table {
  width: 100%;
  text-align: center;
}
.th {
  font-size: 18px;
  line-height: 20px;
  font-weight: 400;
  font-family: "Inter-SemiBold";
}

.td {
  font-size: 16px;
  line-height: 18px;
  font-weight: 200;
  font-family: "Inter-Medium";
}

/* ===== кнопка удалить ===== */
.delete-btn {
  background-color: #dc3545;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}

.delete-btn:hover {
  background-color: #c82333;
}

.delete-message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.button-trainer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

.btn-trainer-submit {
  background-color: #fffa6e;
  color: #242424;
  width: 100%;
  max-width: 350px;
  margin: 10px auto;
  border: 1px solid black;
}

.btn-trainer-submit-a {
  background-color: #fffa6e;
  color: #242424;
  width: 100%;
  margin: 10px auto;
}

.btn-trainer-submit:hover,
.btn-trainer-submit-a:hover {
  background-color: #fdf73e;
  transform: translateY(-2px);
}

.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

@media screen and (max-width: 768px) {
  .scroll-to-top-button {
    bottom: 10px;
    right: 10px;
  }
}

/* ===== Tablet Styles (768px) ===== */
@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 30px;
  }

  .scroll-to-top-button {
    width: 50px;
    height: 50px;
  }

  .scroll-to-top-button::before {
    font-size: 30px;
    line-height: 50px;
  }

  .logo .svg {
    width: 180px;
  }

  .icon,
  .menu-toggle {
    width: 58px;
  }

  .theme-toggle {
    width: 58px;
    height: 58px;
    font-size: 30px;
  }

  .hero-content,
  .news-card,
  .equipment-card,
  .statment-card {
    padding: 30px;
  }

  .eq-hero h2 {
    font-size: 28px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-image,
  .news-image {
    height: 350px;
  }

  .news {
    padding: 50px 0;
  }

  .news-text {
    max-height: none;
  }

  .form-group label {
    font-size: 22px;
  }

  .width {
    max-width: 300px;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
  }

  .footer-nav {
    flex: 1;
  }

  .footer-info {
    flex: 1;
  }

  .footer-contacts {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* ===== Desktop Styles (1024px) ===== */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 50px;
  }

  .scroll-to-top-button {
    width: 60px;
    height: 60px;
  }

  .scroll-to-top-button::before {
    font-size: 30px;
    line-height: 60px;
  }

  .header {
    background-image: url(../img/Frame85.svg);
    background-size: 100% 145%;
    background-repeat: no-repeat;
    padding: 15px 0;
    top: 0;
    z-index: 1000;
    border-radius: 0;
    filter: drop-shadow(0px 3px 15px #000);
  }

  .header-in {
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .header-circle {
    background-color: #fffa6e;
    border-radius: 0 0 70px 70px;
    padding: 25px 30px;
  }

  .logo .svg {
    width: 200px;
  }

  .menu-toggle {
    display: none;
  }

  .menu-close {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    box-shadow: none;
    background-color: transparent;
  }

  .nav-link {
    font-size: 28px;
  }

  .size {
    width: 30px;
  }

  .sizen {
    width: 25px;
  }

  .hidden-2 {
    display: flex;
  }

  .hidden-1 {
    display: none;
  }

  .nav-list {
    gap: 10px;
  }

  .hero-content {
    padding: 40px;
  }

  .hero-title {
    font-size: 40px;
    margin-bottom: 35px;
  }

  .hero-image,
  .news-image {
    height: 450px;
  }

  .hero-text,
  .news-text,
  .equipment-text {
    font-size: 22px;
  }

  .section-title {
    font-size: 32px;
  }

  .news-title {
    font-size: 28px;
  }

  .equipment-preview {
    padding: 50px 0;
  }

  .eq-hero h2 {
    font-size: 32px;
  }

  .statment {
    padding: 50px 0;
  }

  .statment-card {
    margin: 0 auto;
    padding: 30px;
  }

  .form-title {
    font-size: 28px;
  }

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

  .width {
    max-width: 500px;
  }

  .footer {
    padding: 50px 0 30px;
  }

  .footer-nav-list a {
    font-size: 28px;
    line-height: 30px;
  }

  .footer-nav-list {
    flex-direction: row;
    justify-content: space-between;
  }

  .th {
    font-size: 20px;
    line-height: 22px;
  }
  
  .td {
    font-size: 18px;
    line-height: 20px;
  }
}

/* ===== Large Desktop (1440px and up) ===== */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .scroll-to-top-button {
    width: 80px;
    height: 80px;
  }

  .scroll-to-top-button::before {
    font-size: 40px;
    line-height: 80px;
  }

  .header-in {
    gap: 70px;
  }

  .hero-image,
  .news-image {
    height: 550px;
  }

  .nav-link {
    font-size: 32px;
    padding: 12px 16px;
  }

  .nav-list {
    gap: 20px;
  }

  .hero-title {
    font-size: 48px;
  }

  .section-title {
    font-size: 36px;
  }

  .hero-text,
  .news-text,
  .equipment-text {
    font-size: 24px;
  }

  .th {
    font-size: 22px;
    line-height: 24px;
  }
  
  .td {
    font-size: 20px;
    line-height: 22px;
  }
}

/* ====== Equipment Page ===== */
/* ===== Intro Section ===== */
.intro-card {
  padding: 20px;
  text-align: center;
}

.page-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--bg-secondary-color);
  margin-bottom: 25px;
  line-height: 1.3;
  font-family: "Inter-Bold";
}

.intro-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.intro-image img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.intro-text {
  font-size: 20px;
  color: var(--text-white-color);
  margin-bottom: 10px;
  text-align: left;
  font-family: "Inter-Regular";
}

/* ===== Equipment Item Sections ===== */
.equipment-item {
  margin-bottom: 30px;
}

.equipment-card-detailed {
  background-color: transparent;
  padding: 0;
}

.equipment-image {
  min-width: 250px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.equipment-image img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.eq-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  max-width: 800px;
}

.eq-center .btn-primary {
  max-width: 350px;
}

.equipment-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--bg-secondary-color);
  text-align: center;
  margin-bottom: 10px;
  font-family: "Inter-SemiBold";
}

.equipment-description {
  font-size: 20px;
  color: var(--text-white-color);
  margin-bottom: 10px;
  text-align: left;
  font-family: "Inter-Regular";
}

.equipment-description strong {
  font-weight: bold;
  font-family: "Inter-Bold";
}

/* ===== Dual Images Layout ===== */
.equipment-images-dual {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}

.equipment-images-dual img {
  width: calc(50% - 1px);
  height: 245px;
  border-radius: 10px;
}

/* ===== Harness Illustration ===== */
.equipment-illustration {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.harness-img {
  width: 100%;
  max-height: 550px;
  border-radius: 10px;
}

.harness-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.label {
  position: absolute;
  font-size: 14px;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.label-top {
  top: 15%;
  right: 10%;
}

.label-middle {
  top: 40%;
  right: 10%;
}

.label-bottom {
  top: 60%;
  right: 10%;
}

/* ===== Tablet Styles ===== */
@media (min-width: 768px) {
  .page-title {
    font-size: 32px;
  }

  .intro-card,
  .equipment-card-detailed {
    padding: 30px;
  }

  .intro-image,
  .equipment-image {
    height: 350px;
  }

  .equipment-images-dual img {
    height: 350px;
  }

  .equipment-title {
    font-size: 28px;
  }

  .intro-text,
  .equipment-description {
    font-size: 22px;
  }

  .label {
    font-size: 16px;
    padding: 6px 12px;
  }
}

/* ===== Desktop Styles ===== */
@media (min-width: 1024px) {
  .page-title {
    font-size: 40px;
    margin-bottom: 35px;
  }

  .intro-card {
    padding: 40px;
  }

  .intro-image,
  .equipment-image {
    height: 450px;
  }

  .equipment-image img {
    object-fit: cover;
  }

  .equipment-images-dual {
    gap: 10px;
  }

  .equipment-images-dual img {
    width: 300px;
    height: 450px;
  }

  .equipment-title {
    font-size: 32px;
  }

  .intro-text,
  .equipment-description {
    font-size: 24px;
  }

  .equipment-item {
    margin-bottom: 50px;
  }

  .equipment-image{
    min-width: 400px;
  }

  .label {
    font-size: 18px;
    padding: 8px 16px;
  }
}

/* ===== Large Desktop ===== */
@media (min-width: 1440px) {
  .page-title {
    font-size: 48px;
  }

  .intro-image,
  .equipment-image {
    height: 550px;
  }

  .equipment-images-dual img {
    height: 750px;
  }

  .equipment-title {
    font-size: 36px;
  }

  .intro-text,
  .equipment-description {
    font-size: 26px;
  }
}

/* ===== Songs Page ===== */
/* ===== Song Section ===== */
.song-section {
  margin-bottom: 50px;
}

.song-section-hero {
  margin-top: 50px;
}

.key-section {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.song-title-key {
  font-size: 40px;
  font-weight: bold;
  color: var(--bg-secondary-color);
  font-family: "Inter-Bold";
}
.key {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-white-color);
  font-family: "Inter-Medium";
  text-decoration: underline;
}
.key-a:hover {
  cursor: pointer;
  transform: scale(1.05);
  text-decoration: underline;
}

.song-card {
  padding: 20px;
  text-align: center;
}

.song-block {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.hide-on-start {
  display: none;
}

/* ===== Titles ===== */
.song-main-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--bg-secondary-color);
  margin-bottom: 25px;
  line-height: 1.2;
  padding-bottom: 30px;
  font-family: "Inter-Bold";
}

.song-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--bg-secondary-color);
  font-family: "Inter-Bold";
}

.song-author {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-li);
  margin-bottom: 5px;
  font-family: "Inter-Light";
}

.song-author strong {
  font-weight: 600;
  font-family: "Inter-SemiBold";
}

.song-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--bg-secondary-color);
  margin: 20px 0 10px;
  font-family: "Inter-SemiBold";
}

.chorus {
  padding-left: 50px;
}

/* ===== Song Info ===== */
.song-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  margin: 20px 0;
}

.song-pattern {
  font-size: 20px;
  font-weight: 600;
  color: var(--bg-secondary-color);
  margin-bottom: 5px;
  font-family: "Inter-SemiBold";
}

.song-pattern-value {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-li);
  font-family: "Inter-Medium";
}

/* ===== Chords Grid ===== */
.chords-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.chord {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: "Inter-SemiBold";
}

.chord-diagram {
  width: 86px;
  height: 100px;
  position: relative;
  background-color: rgba(50, 50, 50, 0.5);
  border-radius: 8px;
  padding: 10px;
}

.chord-strings {
  position: absolute;
  top: 15px;
  left: 10px;
  right: 10px;
  height: 70px;
  display: flex;
  justify-content: space-between;
}

.string {
  width: 1px;
  height: 100%;
  background-color: #dedede;
}

.chord-frets {
  position: absolute;
  top: 15px;
  left: 10px;
  right: 10px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.fret {
  width: 100%;
  height: 1px;
  background-color: #dedede;
}

.chord-fingers {
  position: absolute;
  top: 15px;
  left: 10px;
  right: 10px;
  height: 70px;
}

.finger {
  position: absolute;
  width: 9px;
  height: 9px;
  background-color: #5d6eaf;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.chord-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-li);
}

/* ===== Song Lyrics ===== */
.song-lyrics {
  font-size: 18px;
  color: var(--text-white-color);
  text-align: left;
  line-height: 20px;
  max-width: 100%;
  margin: 0 auto;
}

.song-lyrics p {
  margin-bottom: 20px;
  font-family: "Inter-Regular";
}

.song-lyrics.with-chords span {
  white-space: pre-wrap;
}

.chord-label {
  color: #817f57;
  font-size: 18px;
  font-family: "Inter-Regular";
  display: block;
  margin-bottom: 5px;
}

.anthem-section .song-lyrics p {
  margin-bottom: 20px;
}

/* ===== Vershina Section ===== */
.vershina-section {
  background-color: transparent;
}

/* ===== Tablet Styles ===== */
@media (min-width: 768px) {
  .song-card {
    padding: 30px;
  }

  .song-main-title,
  .song-title {
    font-size: 40px;
  }

  .song-author {
    font-size: 18px;
  }

  .song-subtitle {
    font-size: 24px;
  }

  .video-placeholder {
    height: 320px;
  }

  .chords-grid {
    gap: 20px;
  }

  .chord-diagram {
    width: 100px;
    height: 120px;
    padding: 12px;
  }

  .chord-name {
    font-size: 20px;
  }

  .song-lyrics {
    font-size: 20px;
    max-width: 90%;
  }

  .chord-label {
    font-size: 20px;
  }

  .song-pattern,
  .song-pattern-value {
    font-size: 22px;
  }
}

/* ===== Desktop Styles ===== */
@media (min-width: 1024px) {
  .song-card {
    padding: 40px;
  }

  .song-main-title,
  .song-title {
    font-size: 48px;
    margin-bottom: 5px;
  }

  .song-author {
    font-size: 20px;
  }

  .song-subtitle {
    font-size: 28px;
  }

  .video-placeholder {
    height: 400px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .chords-grid {
    gap: 30px;
  }

  .chord-diagram {
    width: 110px;
    height: 130px;
  }

  .finger {
    width: 11px;
    height: 11px;
  }

  .chord-name {
    font-size: 22px;
  }

  .song-lyrics {
    font-size: 22px;
    max-width: 80%;
  }

  .chord-label {
    font-size: 22px;
  }

  .song-pattern,
  .song-pattern-value {
    font-size: 24px;
  }
}

/* ===== Large Desktop ===== */
@media (min-width: 1440px) {
  .song-main-title,
  .song-title {
    font-size: 56px;
  }

  .song-subtitle {
    font-size: 32px;
  }

  .video-placeholder {
    height: 450px;
    max-width: 1000px;
  }

  .song-lyrics {
    font-size: 24px;
    max-width: 70%;
  }

  .chord-label {
    font-size: 24px;
  }
}

/* ===== Tourism Page ===== */

.turism-content {
  padding: 20px;
}

.turism-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 26px;
  font-family: "Inter-Bold";
  padding-bottom: 15px;
  color: var(--bg-secondary-color);
}

.turism-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.turism-image .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.turism-text {
  font-size: 18px;
  font-weight: 200;
  line-height: 20px;
  font-family: "Inter-Regular";
  color: var(--text-white-color);
}

.turism-text strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  font-family: "Inter-Medium";
}

.turism-text ul {
  list-style: disc;
  margin-left: 30px;
}

.turism-text li {
  margin-bottom: 5px;
  color: var(--text-li);
}

/* ===== Tablet Styles ===== */
@media (min-width: 768px) {
  .turism-content {
    padding: 30px;
  }

  .turism-title {
    text-align: center;
    font-size: 32px;
    line-height: 34px;
  }

  .turism-text {
    font-size: 20px;
    line-height: 22px;
  }

  .turism-text strong {
    font-size: 22px;
    line-height: 24px;
  }
}

/* ===== Desktop Styles ===== */
@media (min-width: 1024px) {
  .turism-content {
    padding: 40px;
  }

  .turism-title {
    font-size: 40px;
    line-height: 42px;
  }

  .turism-text {
    font-size: 22px;
    line-height: 24px;
  }

  .turism-text strong {
    font-size: 24px;
    line-height: 26px;
  }
}

/* ===== Large Desktop ===== */
@media (min-width: 1440px) {
  .turism-title {
    font-size: 48px;
    line-height: 50px;
  }

  .turism-text {
    font-size: 24px;
    line-height: 26px;
  }

  .turism-text strong {
    font-size: 26px;
    line-height: 28px;
  }
}

/* ===== Trainer Page ===== */

.trainer-content {
  padding: 30px;
}

.trainer-image {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.trainer-image .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.trainer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trainer-name {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 26px;
  font-family: "Inter-Bold";
  padding-bottom: 15px;
  color: var(--bg-secondary-color);
}

.trainer-birthday {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 10px;
}

.trainer-text {
  font-size: 16px;
  font-weight: 200;
  line-height: 18px;
  font-family: "Inter-Light";
  color: var(--text-white-color);
}

.birth {
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  font-family: "Inter-SemiBold";
}

.about-text {
  font-size: 20px;
  font-weight: 400;
  line-height: 22px;
  font-family: "Inter-Regular";
  text-align: center;
  background-color: var(--card-color);
  border-radius: 10px;
  padding: 10px;
  margin-top: 5px;
}

.about-text strong {
  font-size: 22px;
  font-weight: 600;
  line-height: 24px;
  font-family: "Inter-Bold";
}

/* ===== Tablet Styles ===== */
@media (min-width: 768px) {
  .trainer-image {
    height: 350px;
  }

  .trainer-name {
    font-size: 32px;
    line-height: 34px;
  }

  .about-text {
    text-align: justify;
  }
}

/* ===== Desktop Styles ===== */
@media (min-width: 1024px) {
  .trainer-image {
    height: 450px;
  }

  .trainer-name {
    font-size: 40px;
    line-height: 42px;
  }

  .trainer-text {
    font-size: 18px;
    line-height: 20px;
  }

  .birth {
    font-size: 22px;
    line-height: 24px;
  }

  .about-text {
    font-size: 22px;
    line-height: 24px;
  }

  .about-text strong {
    font-size: 24px;
    line-height: 26px;
  }
}

/* ===== Large Desktop ===== */
@media (min-width: 1440px) {
  .trainer-image {
    height: 550px;
  }

  .trainer-name {
    font-size: 48px;
    line-height: 50px;
  }

  .trainer-text {
    font-size: 20px;
    line-height: 22px;
  }

  .birth {
    font-size: 24px;
    line-height: 26px;
  }

  .about-text {
    font-size: 24px;
    line-height: 26px;
  }

  .about-text strong {
    font-size: 26px;
    line-height: 28px;
  }
}

/* Страница Новости */
.main-news {
  margin: 30px 20px;
}

.main-news a {
  color: rgb(0, 121, 168);
}

.main-news a:hover {
  text-decoration: underline;
}

.posts-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #242424;
}

.post-card {
  background: #3f3f3f;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  margin-bottom: 12px;
  background: #3f3f3f;
  border-bottom: 1px solid #eee;
  padding-right: 16px;
}

.post-date {
  padding: 16px 20px 8px 20px;
  font-size: 13px;
  color: white;
}

.vk-img {
  width: 20px;
}

.post-source-link {
  display: flex;
  gap: 10px;
  background-color: #242424;
  color: white;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
  font-family: "Inter-Medium";
}

.post-header a {
  color: white;
}

.post-source-link:hover {
  background-color: #24242496;
  text-decoration: none;
}

.post-content {
  padding: 20px;
}

.post-text {
  font-size: 15px;
  line-height: 1.5;
  color: white;
  margin-bottom: 16px;
  word-break: break-word;
}

/* Стили для изображений */
.post-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #2a2a2a;
  min-height: 200px;
  position: relative;
}

.post-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
  margin: 0 auto;
  border-radius: 12px;
}

/* Для вертикальных фото - растягиваем по высоте блока */
.post-image[data-orientation="portrait"] {
  width: auto;
  height: 100%;
  max-height: 500px;
  max-width: none;
  object-fit: contain;
}

/* Для горизонтальных фото */
.post-image[data-orientation="landscape"] {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

/* Стили для видео */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 16px;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Стили для загрузки и ошибок */
.loading,
.error,
.no-posts {
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  background: white;
  border-radius: 16px;
  margin: 20px 0;
}

.error {
  color: #e74c3c;
  background: #fee;
}

.loading {
  color: #666;
}

.no-posts {
  color: #666;
}

.error-details {
  font-size: 13px;
  margin-top: 12px;
  color: #999;
}

.token-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
  color: #856404;
}

.token-warning a {
  color: #856404;
}

/* ========== СЛАЙДЕР В ПОСТЕ (с круглыми фиксированными стрелками) ========== */
.post-slider {
  position: relative;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 12px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  min-height: 300px;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
  align-items: center;
}

.slide {
  flex: 0 0 auto;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* Вертикальные фото в слайдере */
.slide[data-orientation="portrait"] {
  width: auto;
  height: 500px;
  max-width: none;
  object-fit: contain;
}

/* Горизонтальные фото в слайдере */
.slide[data-orientation="landscape"] {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

/* Кнопки слайдера - ФИКСИРОВАННЫЕ и КРУГЛЫЕ (поверх фото) */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.05);
  border-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider-prev:active,
.slider-next:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: 15px;
}

.slider-next {
  right: 15px;
}

/* ========== МОДАЛЬНОЕ ОКНО (стрелки РЯДОМ с фото, не поверх) ========== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  max-width: 90vw;
  max-height: 90vh;
  padding: 20px;
}

.modal img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Стрелки модалки — теперь НЕ поверх фото, а рядом по бокам */
.modal-prev,
.modal-next {
  position: relative;
  top: auto;
  transform: none;
  width: 50px;
  height: 50px;
  font-size: 30px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
  border-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.modal-prev:active,
.modal-next:active {
  transform: scale(0.95);
}

/* Крестик закрытия — справа сверху */
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 1001;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (min-width: 485px) {
  .post-header {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .modal-content {
    gap: 12px;
    padding: 10px;
  }

  .modal-prev,
  .modal-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .modal-close {
    top: 10px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .modal img {
    max-height: 80vh;
  }
}

@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .post-content {
    padding: 16px;
  }

  .post-image {
    max-height: 300px;
  }

  .post-image[data-orientation="portrait"] {
    max-height: 300px;
  }

  .slide {
    max-height: 300px;
  }

  .slide[data-orientation="portrait"] {
    height: 300px;
  }

  .slider-prev,
  .slider-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }
}

/* Для планшетов */
@media (min-width: 601px) and (max-width: 1024px) {
  .post-image {
    max-height: 400px;
  }

  .post-image[data-orientation="portrait"] {
    max-height: 400px;
  }

  .slide {
    max-height: 400px;
  }

  .slide[data-orientation="portrait"] {
    height: 400px;
  }
}

/* ===== Competitions page ===== */
.competitions-page .container {
  padding: 30px 20px;
}

.competitions-card {
  background: var(--card-gradient-color);
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.competition-intro {
  margin: 0 0 24px;
  color: var(--text-white-color);
  font-family: "Inter-Regular", sans-serif;
  font-size: 16px;
}

.competitions-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.competition-item {
  overflow: hidden;
  border: 1px solid rgba(255, 250, 110, 0.35);
  border-radius: 16px;
  background-color: var(--card-color);
  color: var(--text-white-color);
}

[data-theme="dark"] .competition-item {
  border-color: rgba(33, 33, 33, 0.22);
}

.competition-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px;
  list-style: none;
  cursor: pointer;
  color: var(--text-white-color);
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 18px;
}

.competition-summary::-webkit-details-marker {
  display: none;
}

.competition-summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--button-primery-color);
  color: var(--text-black-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  line-height: 1;
}

.competition-item[open] .competition-summary::after {
  content: "−";
}

.competition-summary small {
  color: var(--text-li);
  font-family: "Inter-Regular", sans-serif;
  font-size: 13px;
  white-space: nowrap;
}

.competition-body {
  padding: 0 18px 20px;
  color: var(--text-white-color);
}

.competition-body p {
  margin-bottom: 14px;
}

.competition-meta {
  color: var(--text-white-color);
}

.competition-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 12px;
}

.competition-table {
  width: 100%;
  min-width: 390px;
  border-collapse: collapse;
  background-color: var(--bg-fon-color);
  color: var(--text-white-color);
  font-family: "Inter-Regular", sans-serif;
}

.competition-table th,
.competition-table td {
  padding: 12px 10px;
  border: 1px solid rgba(255, 250, 110, 0.28);
  text-align: left;
  vertical-align: top;
}

.competition-table th {
  background-color: var(--bg-secondary-color);
  color: var(--text-black-color);
  font-family: "Inter-SemiBold", sans-serif;
}

[data-theme="dark"] .competition-table th,
[data-theme="dark"] .competition-table td {
  border-color: rgba(33, 33, 33, 0.22);
}

@media (max-width: 480px) {
  .competition-summary {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 54px;
    position: relative;
  }

  .competition-summary::after {
    position: absolute;
    top: 16px;
    right: 16px;
  }
}

/* ===== Modern events pages: competitions + trips ===== */
.event-page .container {
  padding: 28px 20px;
}

.event-hero {
  padding: 26px 0 8px;
}

.event-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 30px 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 250, 110, 0.42), transparent 34%),
    var(--card-gradient-color);
  border: 1px solid rgba(255, 250, 110, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

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

[data-theme="dark"] .event-hero-card {
  border-color: rgba(33, 33, 33, 0.12);
  box-shadow: 0 18px 42px rgba(33, 33, 33, 0.12);
}

.event-hero-card::before {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 26px solid rgba(255, 250, 110, 0.16);
}

.event-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--button-primery-color);
  color: var(--text-black-color);
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-hero h1 {
  position: relative;
  margin-bottom: 12px;
  color: var(--headtext-color);
  font-family: "Inter-Bold", sans-serif;
  font-size: 31px;
  line-height: 1.05;
  text-transform: uppercase;
}

.event-hero p {
  position: relative;
  margin-bottom: 22px;
  color: var(--text-white-color);
  font-family: "Inter-Regular", sans-serif;
  font-size: 15px;
}

.event-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.event-stats div {
  min-height: 78px;
  padding: 12px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 250, 110, 0.18);
  text-align: center;
}

[data-theme="dark"] .event-stats div {
  background: rgba(33, 33, 33, 0.06);
  border-color: rgba(33, 33, 33, 0.12);
}

.event-stats strong {
  display: block;
  color: var(--headtext-color);
  font-family: "Inter-Bold", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.event-stats span {
  display: block;
  margin-top: 7px;
  color: var(--text-li);
  font-size: 11px;
  line-height: 1.2;
}

.modern-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modern-item {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card-color);
  border: 1px solid rgba(255, 250, 110, 0.26);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .modern-item {
  border-color: rgba(33, 33, 33, 0.12);
  box-shadow: 0 12px 30px rgba(33, 33, 33, 0.08);
}

.modern-summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px 58px 20px 18px;
  cursor: pointer;
  list-style: none;
}

.modern-summary::-webkit-details-marker {
  display: none;
}

.modern-summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--button-primery-color);
  color: var(--text-black-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

.modern-item[open] .modern-summary::after {
  content: "−";
}

.summary-main b {
  display: block;
  color: var(--headtext-color);
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 18px;
  line-height: 1.15;
}

.summary-main small {
  display: block;
  margin-top: 7px;
  color: var(--text-li);
  font-size: 13px;
}

.summary-date,
.trip-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 250, 110, 0.16);
  color: var(--headtext-color);
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 12px;
  white-space: nowrap;
}

[data-theme="dark"] .summary-date,
[data-theme="dark"] .trip-date {
  background: rgba(33, 33, 33, 0.08);
}

.modern-body {
  padding: 0 18px 20px;
  color: var(--text-white-color);
}

.modern-body p {
  margin-bottom: 16px;
}

.tag-row,
.trip-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.tag-row span,
.trip-facts span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 110, 0.14);
  border: 1px solid rgba(255, 250, 110, 0.2);
  color: var(--text-white-color);
  font-size: 12px;
}

[data-theme="dark"] .tag-row span,
[data-theme="dark"] .trip-facts span {
  background: rgba(33, 33, 33, 0.06);
  border-color: rgba(33, 33, 33, 0.1);
}

.modern-table {
  overflow: hidden;
  width: 100%;
  min-width: 410px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  background: var(--bg-fon-color);
}

.modern-table th,
.modern-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 250, 110, 0.18);
  color: var(--text-white-color);
  text-align: left;
  vertical-align: middle;
}

.modern-table th {
  background: var(--button-primery-color);
  color: var(--text-black-color);
  font-family: "Inter-SemiBold", sans-serif;
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.place-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--button-primery-color);
  color: var(--text-black-color);
  font-family: "Inter-Bold", sans-serif;
}

.empty-state {
  padding: 22px;
  border-radius: 20px;
  background: var(--card-color);
  color: var(--text-white-color);
  text-align: center;
}

.trip-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.trip-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--card-color);
  border: 1px solid rgba(255, 250, 110, 0.24);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .trip-card {
  border-color: rgba(33, 33, 33, 0.1);
  box-shadow: 0 14px 34px rgba(33, 33, 33, 0.08);
}

.trip-image {
  height: 210px;
  overflow: hidden;
  background: var(--bg-secondary-color);
  position: top;
}

.trip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.trip-card:hover .trip-image img {
  transform: scale(1.05);
}

.trip-content {
  padding: 20px 18px 22px;
}

.trip-content h2 {
  margin: 12px 0 10px;
  color: var(--headtext-color);
  font-family: "Inter-Bold", sans-serif;
  font-size: 22px;
  line-height: 1.12;
}

.trip-content p {
  color: var(--text-white-color);
  font-size: 14px;
}

.trip-details {
  margin-top: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 250, 110, 0.14);
}

[data-theme="dark"] .trip-details {
  background: rgba(33, 33, 33, 0.05);
  border-color: rgba(33, 33, 33, 0.1);
}

.trip-details summary {
  position: relative;
  padding: 14px 46px 14px 14px;
  list-style: none;
  cursor: pointer;
  color: var(--headtext-color);
  font-family: "Inter-SemiBold", sans-serif;
}

.trip-details summary::-webkit-details-marker {
  display: none;
}

.trip-details summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--button-primery-color);
  color: var(--text-black-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.trip-details[open] summary::after {
  content: "−";
}

.trip-detail-body {
  padding: 0 14px 16px;
}

.trip-detail-body p {
  margin-bottom: 10px;
}

@media (max-width: 420px) {
  .event-hero h1 {
    font-size: 28px;
  }

  .event-stats {
    grid-template-columns: 1fr;
  }

  .modern-summary {
    grid-template-columns: 1fr;
  }

  .summary-date {
    width: max-content;
  }
}
@media (min-width: 1024px) {
  .flex {
    flex-direction: row;
  }
}

/* ===== Auth and profile pages ===== */
.auth-page,
.profile-page {
  padding-top: 34px;
}

.auth-card,
.profile-card,
.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--card-color);
  border: 1px solid rgba(255, 250, 110, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  color: var(--text-white-color);
}

[data-theme="dark"] .auth-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .profile-hero {
  border-color: rgba(33, 33, 33, 0.1);
  box-shadow: 0 18px 45px rgba(33, 33, 33, 0.08);
}

.profile-glow::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 110, 0.34), transparent 68%);
  pointer-events: none;
}

[data-theme="dark"] .profile-glow::before {
  background: radial-gradient(circle, rgba(33, 33, 33, 0.16), transparent 68%);
}

.auth-card {
  padding: 26px 18px;
}

.compact-auth {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card h1,
.profile-hero h1,
.profile-section-head h2,
.trainer-public-info h1 {
  color: var(--headtext-color);
  font-family: "Inter-Bold", sans-serif;
  line-height: 1.08;
}

.auth-card h1,
.auth-card .auth-lead {
    text-align: center;
}

.auth-card h1,
.profile-hero h1,
.trainer-public-info h1 {
  margin: 10px 0 12px;
  font-size: 30px;
}

.auth-lead,
.profile-hero p,
.trainer-public-info p {
  margin-bottom: 20px;
  color: var(--text-white-color);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid-two,
.child-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.auth-form label,
.avatar-form label,
.rank-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--headtext-color);
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 14px;
}

.auth-form textarea {
  width: 100%;
  min-height: 48px;
  max-width: 1010px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 250, 110, 0.24);
  outline: none;
  background: var(--bg-fon-color);
  color: var(--text-white-color);
  font-family: "Inter-Regular", sans-serif;
  font-size: 12px;
  box-sizing: border-box;
}

.auth-form input,
.auth-form select,
.rank-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 250, 110, 0.24);
  outline: none;
  background: var(--bg-fon-color);
  color: var(--text-white-color);
  font-family: "Inter-Regular", sans-serif;
  font-size: 12px;
}

[data-theme="dark"] .auth-form input,
[data-theme="dark"] .auth-form select,
[data-theme="dark"] .rank-form input {
  border-color: rgba(33, 33, 33, 0.15);
}

.child-toggle {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 250, 110, 0.12);
}

.child-toggle input {
  width: 18px;
  min-height: 18px;
}

.child-fields {
  display: none;
  padding: 14px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 250, 110, 0.35);
}

.child-fields.is-visible {
  display: grid;
}

.form-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 13px;
}

.form-alert-error {
  background: rgba(255, 99, 99, 0.14);
  color: #ffb4b4;
}

[data-theme="dark"] .form-alert-error {
  color: #8b1e1e;
}

.form-alert-success {
  background: rgba(120, 255, 150, 0.14);
  color: #b7ffc6;
}

[data-theme="dark"] .form-alert-success {
  color: #1b6d2f;
}

.auth-note {
  margin-top: 18px;
  color: var(--text-white-color);
  text-align: center;
}

.auth-note a,
.profile-info-list a {
  /* color: var(--headtext-color); */
  border-bottom: 1px solid currentColor;
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-hero {
  padding: 24px 18px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.profile-main-card,
.achievements-card,
.trainer-students-card,
.trainer-public-card {
  padding: 18px;
}

.avatar-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 36px;
  border: 4px solid var(--button-primery-color);
  background: var(--bg-fon-color);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-form {
  margin-bottom: 18px;
  text-align: center;
}

.file-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--button-primery-color);
  color: var(--text-black-color) !important;
  cursor: pointer;
}

.file-pill input {
  display: none;
}

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-info-list div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 250, 110, 0.16);
}

[data-theme="dark"] .profile-info-list div {
  border-color: rgba(33, 33, 33, 0.1);
}

.profile-info-list span {
  display: block;
  margin-bottom: 3px;
  color: var(--text-li);
  font-size: 12px;
}

.profile-info-list strong {
  color: var(--headtext-color);
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 15px;
}

.profile-section-head {
  margin-bottom: 16px;
}

.profile-section-head h2 {
  margin-top: 6px;
  font-size: 24px;
}

.trips-head {
  margin-top: 26px;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 250, 110, 0.13);
}

[data-theme="dark"] .achievement-item {
  background: rgba(33, 33, 33, 0.04);
  border-color: rgba(33, 33, 33, 0.08);
}

.achievement-item h3 {
  margin-bottom: 4px;
  color: var(--headtext-color);
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

.achievement-item p,
.achievement-item span {
  color: var(--text-white-color);
  font-size: 12px;
}

.achievement-item span {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 250, 110, 0.12);
}

.trip-mini-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--button-primery-color);
  color: var(--text-black-color);
}

.student-table-wrap {
  overflow-x: auto;
}

.student-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-cell img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-form {
  display: contents;
}

.btn-small {
  min-width: auto;
  padding: 10px 12px;
  font-size: 12px;
}

.trainer-public-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.trainer-avatar {
  width: 190px;
  height: 190px;
}

@media (min-width: 768px) {
  .auth-card {
    padding: 34px;
  }

  .form-grid-two,
  .child-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-container,
  .auth-page .container {
    max-width: 1180px;
  }

  .profile-hero {
    padding: 34px;
  }

  .profile-layout {
    grid-template-columns: minmax(280px, 360px) 1fr;
    align-items: start;
  }

  .profile-main-card,
  .achievements-card,
  .trainer-students-card,
  .trainer-public-card {
    padding: 26px;
  }

  .trainer-public-card {
    grid-template-columns: 220px 1fr;
  }

  .auth-form label {
    font-size: 16px;
  }
  
  .auth-form input,
  .auth-form select {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .profile-layout {
    grid-template-columns: 370px 1fr;
  }

  .auth-card h1,
  .profile-hero h1,
  .trainer-public-info h1 {
    font-size: 42px;
  }

  .auth-form label {
    font-size: 18px;
  }
  
  .auth-form input,
  .auth-form select {
    font-size: 16px;
  }
}


/* ===== Beautiful song blocks ===== */
.songs-page {
  position: relative;
}

.songs-page .song-section {
  padding: 18px 0;
}

.songs-page .song-beauty-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 250, 110, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(63, 63, 63, 0.96), rgba(36, 36, 36, 0.98));
  border: 1px solid rgba(255, 250, 110, 0.32);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.32);
}

.songs-page .song-beauty-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, #fffa6e, rgba(255, 250, 110, 0.25), #fffa6e);
}

.songs-page .song-beauty-card::after {
  content: "♫";
  position: absolute;
  right: 22px;
  top: 12px;
  font-size: 76px;
  line-height: 1;
  color: rgba(255, 250, 110, 0.08);
  pointer-events: none;
}

.songs-page .song-beauty-card .song-title,
.songs-page .song-beauty-card .song-main-title {
  display: inline-block;
  position: relative;
  padding: 0 18px 12px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 2px solid rgba(255, 250, 110, 0.55);
}

.songs-page .song-beauty-card .song-author,
.songs-page .song-beauty-card .song-info {
  background-color: rgba(255, 250, 110, 0.08);
  border: 1px solid rgba(255, 250, 110, 0.18);
  border-radius: 16px;
  padding: 10px 14px;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.songs-page .song-beauty-card .chords-grid {
  background: rgba(0, 0, 0, 0.16);
  border-radius: 18px;
  padding: 18px;
}

.songs-page .song-beauty-card .song-lyrics {
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid #fffa6e;
  border-radius: 18px;
  padding: 22px;
}

.songs-page .song-beauty-card .show-more-btn {
  display: block;
  max-width: 320px;
  margin: 24px auto 0;
}

[data-theme="dark"] .songs-page .song-beauty-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(33, 33, 33, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 224, 224, 0.98));
  border-color: rgba(33, 33, 33, 0.18);
}

[data-theme="dark"] .songs-page .song-beauty-card::before {
  background: linear-gradient(90deg, #212121, rgba(33, 33, 33, 0.18), #212121);
}

[data-theme="dark"] .songs-page .song-beauty-card::after {
  color: rgba(33, 33, 33, 0.08);
}

[data-theme="dark"] .songs-page .song-beauty-card .song-title,
[data-theme="dark"] .songs-page .song-beauty-card .song-main-title {
  border-bottom-color: rgba(33, 33, 33, 0.35);
}

[data-theme="dark"] .songs-page .song-beauty-card .song-author,
[data-theme="dark"] .songs-page .song-beauty-card .song-info,
[data-theme="dark"] .songs-page .song-beauty-card .chords-grid,
[data-theme="dark"] .songs-page .song-beauty-card .song-lyrics {
  background-color: rgba(33, 33, 33, 0.06);
  border-color: rgba(33, 33, 33, 0.12);
}

@media (max-width: 767px) {
  .songs-page .song-beauty-card {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .songs-page .song-beauty-card::after {
    font-size: 52px;
    right: 12px;
  }

  .songs-page .song-beauty-card .song-lyrics,
  .songs-page .song-beauty-card .chords-grid {
    padding: 14px;
  }
}

/* ===== Tourism modern visual update ===== */
.tourism-modern-page {
  padding-top: 20px;
}

.tourism-modern-page .section {
  padding: 18px 0;
}

.tourism-modern-page .turism-content.tourism-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 250, 110, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(63, 63, 63, 0.98), rgba(34, 34, 34, 0.98));
  border: 1px solid rgba(255, 250, 110, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.tourism-modern-page .turism-content.tourism-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -55px;
  top: -55px;
  border-radius: 50%;
  border: 28px solid rgba(255, 250, 110, 0.12);
  pointer-events: none;
}

.tourism-modern-page .tourism-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fffa6e;
  color: #242424;
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tourism-modern-page .turism-title {
  position: relative;
  margin-bottom: 18px;
  color: #fffa6e;
  font-family: "Inter-Bold", sans-serif;
  font-size: 28px;
  line-height: 1.08;
  text-align: left;
  text-transform: uppercase;
}

.tourism-modern-page .turism-image {
  position: relative;
  overflow: hidden;
  margin: 4px 0 22px;
  border-radius: 24px;
  background: #242424;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.tourism-modern-page .turism-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 250, 110, 0.28);
  border-radius: inherit;
  pointer-events: none;
}

.tourism-modern-page .turism-image .img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.tourism-modern-page .turism-content.tourism-card:hover .turism-image .img {
  transform: scale(1.045);
  filter: contrast(1.06) saturate(1.05);
}

.tourism-modern-page .turism-text {
  position: relative;
  color: #eeeeee;
  font-family: "Inter-Regular", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.tourism-modern-page .turism-text p {
  margin-bottom: 14px;
}

.tourism-modern-page .turism-text strong {
  color: #fffa6e;
  font-family: "Inter-SemiBold", sans-serif;
}

.tourism-modern-page .turism-text ul {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.tourism-modern-page .turism-text li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 16px;
  background: rgba(255, 250, 110, 0.08);
  border: 1px solid rgba(255, 250, 110, 0.16);
  color: #eeeeee;
}

.tourism-modern-page .turism-text li::before {
  content: "⛰";
  position: absolute;
  left: 14px;
  top: 11px;
  color: #fffa6e;
}

[data-theme="dark"] .tourism-modern-page .turism-content.tourism-card {
  background:
    radial-gradient(circle at top right, rgba(36, 36, 36, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(221, 221, 221, 0.96));
  border-color: rgba(33, 33, 33, 0.16);
}

[data-theme="dark"] .tourism-modern-page .turism-title,
[data-theme="dark"] .tourism-modern-page .turism-text strong {
  color: #242424;
}

[data-theme="dark"] .tourism-modern-page .turism-text,
[data-theme="dark"] .tourism-modern-page .turism-text li {
  color: #242424;
}

[data-theme="dark"] .tourism-modern-page .turism-text li {
  background: rgba(33, 33, 33, 0.06);
  border-color: rgba(33, 33, 33, 0.12);
}

@media (min-width: 768px) {
  .tourism-modern-page .turism-content.tourism-card {
    padding: 30px;
  }

  .tourism-modern-page .turism-title {
    font-size: 38px;
  }

  .tourism-modern-page .turism-image .img {
    min-height: 340px;
  }

  .tourism-modern-page .turism-text {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .tourism-modern-page .section {
    padding: 24px 0;
  }

  .tourism-modern-page .turism-content.tourism-card {
    padding: 38px;
  }

  .tourism-modern-page .turism-title {
    font-size: 44px;
  }

  .tourism-modern-page .turism-image .img {
    min-height: 430px;
  }

  .tourism-modern-page .turism-text {
    font-size: 22px;
  }
}

/* ===== Admin tables unified layout ===== */
.admin,
.admin-inner {
  width: 100%;
}

.admin-inner {
  align-items: stretch;
  gap: 24px;
}

.admin .song-title-key,
.admin .admin-text-logout {
  text-align: center;
}

.admin-section-card {
  width: 100%;
  max-width: 100%;
  padding: 18px;
  border-radius: 18px;
  background-color: var(--card-color);
  border: 1px solid rgba(255, 250, 110, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .admin-section-card {
  border-color: rgba(33, 33, 33, 0.12);
  box-shadow: 0 8px 22px rgba(33, 33, 33, 0.08);
}

.admin-section-card > .song-title-key {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.admin .competition-table-wrap,
.admin .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 16px;
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}

.admin .competition-table-wrap::-webkit-scrollbar,
.admin .table-scroll::-webkit-scrollbar {
  height: 8px;
}

.admin .competition-table-wrap::-webkit-scrollbar-thumb,
.admin .table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background-color: var(--button-primery-color);
}

.admin .competition-table,
.admin .modern-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255, 250, 110, 0.22);
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-fon-color);
  color: var(--text-white-color);
}

[data-theme="dark"] .admin .competition-table,
[data-theme="dark"] .admin .modern-table {
  border-color: rgba(33, 33, 33, 0.15);
}

.admin .competition-table th,
.admin .competition-table td,
.admin .modern-table th,
.admin .modern-table td {
  height: 58px;
  padding: 12px 10px;
  border: none;
  border-right: 1px solid rgba(255, 250, 110, 0.16);
  border-bottom: 1px solid rgba(255, 250, 110, 0.16);
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}

[data-theme="dark"] .admin .competition-table th,
[data-theme="dark"] .admin .competition-table td,
[data-theme="dark"] .admin .modern-table th,
[data-theme="dark"] .admin .modern-table td {
  border-right-color: rgba(33, 33, 33, 0.14);
  border-bottom-color: rgba(33, 33, 33, 0.14);
}

.admin .competition-table th:last-child,
.admin .competition-table td:last-child,
.admin .modern-table th:last-child,
.admin .modern-table td:last-child {
  border-right: none;
}

.admin .competition-table tr:last-child td,
.admin .modern-table tr:last-child td {
  border-bottom: none;
}

.admin .competition-table th,
.admin .modern-table th {
  background-color: var(--button-primery-color);
  color: var(--text-black-color);
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 15px;
}

.admin .competition-table td,
.admin .modern-table td {
  color: var(--text-white-color);
  font-family: "Inter-Regular", sans-serif;
}

.admin .competition-table input,
.admin .competition-table select,
.admin .competition-table textarea,
.admin .modern-table input,
.admin .modern-table select,
.admin .modern-table textarea,
.admin-add-form input,
.admin-add-form select,
.admin-add-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 250, 110, 0.28);
  outline: none;
  background-color: var(--bg-fon-color);
  color: var(--text-white-color);
  font-family: "Inter-Regular", sans-serif;
  font-size: 14px;
}

[data-theme="dark"] .admin .competition-table input,
[data-theme="dark"] .admin .competition-table select,
[data-theme="dark"] .admin .competition-table textarea,
[data-theme="dark"] .admin .modern-table input,
[data-theme="dark"] .admin .modern-table select,
[data-theme="dark"] .admin .modern-table textarea,
[data-theme="dark"] .admin-add-form input,
[data-theme="dark"] .admin-add-form select,
[data-theme="dark"] .admin-add-form textarea {
  border-color: rgba(33, 33, 33, 0.18);
}

.admin .competition-table input:focus,
.admin .competition-table select:focus,
.admin .competition-table textarea:focus,
.admin .modern-table input:focus,
.admin .modern-table select:focus,
.admin .modern-table textarea:focus,
.admin-add-form input:focus,
.admin-add-form select:focus,
.admin-add-form textarea:focus {
  border-color: var(--button-primery-color);
  box-shadow: 0 0 0 2px rgba(255, 250, 110, 0.14);
}

[data-theme="dark"] .admin .competition-table input:focus,
[data-theme="dark"] .admin .competition-table select:focus,
[data-theme="dark"] .admin .competition-table textarea:focus,
[data-theme="dark"] .admin .modern-table input:focus,
[data-theme="dark"] .admin .modern-table select:focus,
[data-theme="dark"] .admin .modern-table textarea:focus,
[data-theme="dark"] .admin-add-form input:focus,
[data-theme="dark"] .admin-add-form select:focus,
[data-theme="dark"] .admin-add-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(33, 33, 33, 0.08);
}

.admin-add-form {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 14px;
}

.admin-add-form textarea {
  min-height: 42px;
  resize: vertical;
}

.admin-add-form .btn-lk,
.admin .modern-table .btn-lk,
.admin .competition-table .btn-lk {
  width: 100%;
  max-width: none;
  min-height: 40px;
  margin: 0;
  padding: 9px 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.admin-actions-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 58px;
}

.admin-actions-cell form {
  width: 100%;
}

.admin .delete-btn {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.1;
}

.inline-admin-form,
.winner-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.rent-status,
.empty-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Inter-SemiBold", sans-serif;
  font-size: 13px;
  white-space: nowrap;
}

.status-active {
  background-color: rgba(120, 255, 150, 0.16);
  color: #9dffb4;
}

.status-finished {
  background-color: rgba(255, 99, 99, 0.16);
  color: #ffb4b4;
}

.empty-inline {
  background-color: rgba(255, 250, 110, 0.12);
  color: var(--text-li);
}

[data-theme="dark"] .status-active {
  color: #1b6d2f;
}

[data-theme="dark"] .status-finished {
  color: #8b1e1e;
}

@media (min-width: 768px) {
  .admin-section-card {
    padding: 22px;
  }

  .admin .competition-table,
  .admin .modern-table {
    min-width: 1050px;
  }
}

@media (min-width: 1024px) {
  .admin-section-card {
    padding: 26px;
  }

  .admin-section-card > .song-title-key {
    font-size: 32px;
  }

  .admin .competition-table,
  .admin .modern-table {
    min-width: 100%;
  }

  .admin .competition-table th,
  .admin .competition-table td,
  .admin .modern-table th,
  .admin .modern-table td {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .admin-inner {
    gap: 18px;
    padding-top: 22px;
  }

  .admin .song-title-key {
    font-size: 26px;
  }

  .admin-section-card {
    padding: 14px;
    border-radius: 16px;
  }

  .admin-section-card > .song-title-key {
    font-size: 22px;
  }

  .admin .competition-table-wrap,
  .admin .table-scroll {
    margin-top: 12px;
  }

  .admin .competition-table,
  .admin .modern-table {
    min-width: 760px;
  }

  .admin .competition-table th,
  .admin .competition-table td,
  .admin .modern-table th,
  .admin .modern-table td {
    height: 52px;
    padding: 10px 8px;
    font-size: 13px;
  }

  .admin-add-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .admin-section-card {
    margin-left: -6px;
    margin-right: -6px;
  }

  .admin .competition-table,
  .admin .modern-table {
    min-width: 720px;
  }
}
