:root {
    --max-width-desktop: 80%;
    --max-width-mobile: 100%;
    --font-main: 'Montserrat', sans-serif;
    --font-title: 'Boldonse', sans-serif;
    --text-color: #fff;
    --accent-color: #ffcc00;
  }
  

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
.background {
  background: url("background.jpg") no-repeat center center/cover;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

header {
    padding-top: 20px;
    height: 70px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
/* Логотип слева сверху, фиксированный */
.fixed-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    height: 50px;
    z-index: 10;
    transition: transform 0.3s ease;
  }
  .fixed-logo:hover {
    transform: scale(1.05);
  }

.logo-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 40px;
}

.title {
    font-family: var(--font-title);
    font-size: 2rem;
    margin: 0;
    text-align: center;
  }

  main {
    flex: 1;
    display: grid;
    flex-direction: column;
    align-items: center;
    max-width: var(--max-width-desktop);
    width: 100%;
    padding: 40px;
    text-align: center;
  }

  .subtitle {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    font-weight: 600;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    text-align: center;
    border: none;
  }

table {
    margin: 0 auto 10px;
    text-align: center;
    justify-content: center;
    border-collapse: collapse;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

th, td {
    text-align: center;
    padding: 22px;
}

.button {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  margin: 5px 10px 0 0;
  border-radius: 5px;
}

.legal-info {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

.legal-info, .contact-buttons {
    text-align: center;
    margin-top: 20px;
    max-width: 950%;
  }

.popup {
  position: fixed;
  bottom: 10%;
  right: 5%;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  display: none;
  z-index: 100;
  max-width: 300px;
}

.popup-content {
  text-align: center;
}

.popup .button {
  display: block;
  margin: 10px auto;
    background-color: #FFFFFF;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  main {
    max-width: var(--max-width-mobile);
  }
  .fixed-logo {
    position: static;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
  }

  table {
scale: 0.8;
}
  .logo-title {
    flex-direction: row;
    justify-content: center;
  }

  .title {
    display: inline-block;
    font-size: 1.5rem;
    vertical-align: middle;
  }

  .logo {
    height: 30px;
  }

  header {
    justify-content: center;
    flex-wrap: wrap;
  }
}
