/* Основные переменные цветов */
:root {
  --primary-color: #1a1a2e;
  --accent-color: #f77f00;
  --background-color: #f4f4f4;
  --text-color: #212529;
  --white: #ffffff;
  --selected-glow: 0 0 8px rgba(247, 127, 0, 0.6);
}

body {
  font-family: 'Unbounded', sans-serif;
  margin: 0;
  background: var(--background-color);
  color: var(--text-color);
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  position: relative;
}

header img {
  height: 36px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  margin: 5px 10px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  transition: color 0.3s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent-color);
}

nav a.active {
  border-bottom: 2px solid var(--accent-color);
}

h1 {
  text-align: center;
  padding: 20px 10px 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 24px;
}

.controls.column-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin: 30px auto;
  max-width: 1000px;
  width: 100%;
}

.control-section {
  background: var(--white);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.control-section h2 {
  margin-top: 0;
  font-size: 18px;
  text-align: center;
  color: var(--primary-color);
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.btn-pill {
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: bold;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin: 4px;
}

.btn-pill:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-pill.selected {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--selected-glow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.table thead {
  background-color: var(--primary-color);
  color: var(--white);
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

td {
  font-weight: 500;
}

.text-center.mt-5 {
  margin-top: 50px !important;
}

.lang-switcher {
  position: absolute;
  top: 10px;
  right: 20px;
}

.lang-switcher .btn.active {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
    position: absolute;
    top: 18px;
    right: 20px;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--white);
    width: 100%;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: flex;
  }

  nav a {
    color: var(--primary-color);
    margin: 8px 0;
    font-size: 16px;
  }

  .control-section {
    width: 95%;
  }

  .btn-pill {
    padding: 6px 10px;
    font-size: 13px;
  }

  .table thead {
    font-size: 13px;
  }

  .table td,
  .table th {
    font-size: 13px;
    padding: 8px;
  }

  h1 {
    font-size: 20px;
    padding: 10px;
  }
}