:root {
  --bg: #1a1a1a;
  --text: #eaeaea;
  --header-bg: #1a1a1a;
  --header-link: #ffffff;
  --accent: #FFEB4F;
  --border: #444;
  --table-bg: #2a2a2a;
  --hover-bg: #FFEB4F;
  --hover-text: #000000;
  --ui-radius: 10px;
}

/* Плавный скролл для всей страницы */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol';
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s ease-out forwards;
}

/* Header Styles */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
  width: 100%;
}

.logo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
  margin-right: 0.5rem;
}

.logo:hover {
  transform: scale(1.2);
}

.nav-link {
  text-decoration: none;
  color: var(--header-link);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s;
  padding: 0.5rem 0;
  margin: 0;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Main Content */
main {
  flex: 1;
}

/* Page-specific styles */
.index-main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro text styles */
.intro-title {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
  max-width: 90%;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.intro-text {
  color: var(--accent);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.25rem;
  font-size: 1.1rem;
  line-height: 1.7;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.intro-text:nth-of-type(1) {
  animation-delay: 0.3s;
}
.intro-text:nth-of-type(2) {
  animation-delay: 0.4s;
}
.intro-text:nth-of-type(3) {
  animation-delay: 0.5s;
}
.intro-text:nth-of-type(4) {
  animation-delay: 0.6s;
}

.intro-image {
  width: 100%;
  height: auto;
  border-radius: var(--ui-radius);
  margin-bottom: 2rem;
  max-width: 600px;
  transition: transform 0.5s ease-out;
}

.intro-image:hover {
  transform: scale(1.02);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

h1 {
  font-size: 2rem;
}

p,
li,
td,
th,
label {
  animation: fadeIn 0.8s ease-out 0.4s forwards;
  opacity: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.youtube-icon {
  fill: #888;
  transition: all 0.3s;
}

.youtube-icon:hover {
  fill: #fff;
  transform: translateY(-2px);
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Бургер-меню для мобилок */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-link);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  z-index: 100;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle:hover,
  .menu-toggle:focus {
    color: var(--accent);
    outline: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav .nav-link {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
  }
}

/* Медиазапросы */
@media (max-width: 768px) {
  .header-left {
    gap: 0.8rem;
  }

  .nav-link {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .intro-title {
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .intro-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .intro-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
}
/* ===== Videos Page Styles ===== */
.videos-main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coming-soon-container {
  text-align: center;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.coming-soon-container h1 {
  color: white; /* Белый цвет */
  font-size: 2rem;
  margin-bottom: 1.5rem;
  animation-delay: 0.2s;
}

.coming-soon-container p {
  color: white; /* Белый цвет */
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.coming-soon-container p:nth-of-type(1) { animation-delay: 0.3s; }
.coming-soon-container p:nth-of-type(2) { animation-delay: 0.4s; }
.coming-soon-container p:nth-of-type(3) { animation-delay: 0.5s; }

@media (max-width: 768px) {
  .coming-soon-container h1 {
    font-size: 1.8rem;
  }
  
  .coming-soon-container p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .coming-soon-container h1 {
    font-size: 1.5rem;
  }
  
  .coming-soon-container p {
    font-size: 0.95rem;
  }
}
/* Calculator specific styles */
:root {
  --bg: #1a1a1a;
  --text: #eaeaea;
  --accent: #FFEB4F;
  --border: #444;
  --table-bg: #2a2a2a;
  --hover-bg: #FFEB4F;
  --hover-text: #000000;
  --ui-radius: 10px;
}

/* Основной контейнер калькулятора */
.calculator-main {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.calculator-container {
  flex: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.section {
  margin-bottom: 4rem;
}

/* Контрол BPM */
.bpm-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.bpm-control label {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.bpm-control input[type="number"] {
  width: 160px;
  padding: 0.7rem;
  font-size: 1.3rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--ui-radius);
  background: var(--table-bg);
  color: var(--text);
  outline: none;
  transition: all 0.3s;
}

.bpm-control input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 235, 79, 0.2);
}

/* Loader */
.bpm-loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 235, 79, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent);
  margin-left: 10px;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.3s;
  animation: spin 1s linear infinite;
}

/* Таблица */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--table-bg);
  border: 1px solid var(--border);
  border-radius: var(--ui-radius);
  overflow: hidden;
}

th, td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
  line-height: 20px; /* Высота строки 20px */
}

th {
  font-weight: 600;
}

tr:hover {
  background: var(--hover-bg);
  color: var(--hover-text);
  transform: scale(1.01);
}

/* Анимации */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.calculator-container h1 {
  animation-delay: 0.3s;
}

table tr {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

table tr:nth-child(1) { animation-delay: 0.5s; }
table tr:nth-child(2) { animation-delay: 0.6s; }
table tr:nth-child(3) { animation-delay: 0.7s; }
table tr:nth-child(4) { animation-delay: 0.8s; }
table tr:nth-child(5) { animation-delay: 0.9s; }

/* Медиазапросы */
@media (max-width: 768px) {
  .calculator-container {
    padding: 0 0.5rem;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 8px;
    line-height: 20px;
  }
}
