  :root {
      color-scheme: light;
  }

  html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  /* Отключаем scroll-snapping на мобильных устройствах */
  @media (max-width: 768px) {
    html {
      scroll-snap-type: none;
    }

    #main-section,
    #about-section {
      scroll-snap-align: none;
      scroll-snap-stop: normal;
    }
  }

  /* Фоновое изображение для body */
  body {
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/backgrounds/background1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
  }

  /* Landing page для первого посещения */
  #landing-page {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    color: #000;
    padding: 0;
    position: relative;
  }

  #landing-page.show {
    display: block;
  }

  #landing-page.hidden {
    display: none;
  }

  #landing-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }

  /* Объединяем header, sections и кнопку в одну страницу */
  #main-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #landing-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
  }

  #landing-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }

  #landing-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }

  #landing-header h2 .site-name {
    color: #ff6b6b;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(255, 107, 107, 0.3);
  }

  #landing-header p {
    font-size: 20px;
    margin: 0;
    opacity: 0.9;
  }

  #landing-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
  }

  .landing-section-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
  }

  .landing-section-link:hover {
    transform: translateY(-5px);
  }

  .landing-section-link:hover .landing-section {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
  }

  .landing-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .landing-section h2 {
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .landing-section h2 img {
    vertical-align: middle;
  }

  .landing-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .landing-section h3 img {
    vertical-align: middle;
  }

  .landing-section p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    flex: 1;
  }

  #about-section {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  #about-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 30px 0;
    text-align: center;
  }

  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .faq-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.2s;
  }

  .faq-item:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    user-select: none;
  }

  .faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .faq-toggle {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
  }

  .faq-item.active .faq-toggle {
    transform: rotate(45deg);
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px 20px;
  }

  .faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
  }

  #landing-cta {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 0;
  }

  #landing-start-btn {
    padding: 16px 48px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    background: #fff;
    color: #000;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  #landing-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  }

  #landing-start-btn:active {
    transform: translateY(0);
  }

  /* Скрываем основной контент при показе landing page */
  body.show-landing #header,
  body.show-landing #views,
  body.show-landing #filters-distances,
  body.show-landing #page-footer {
    display: none;
  }

  body.show-landing {
    overflow-y: auto;
  }

  /* Мобильная адаптация */
  @media (max-width: 768px) {
    /* Фоновое изображение смещено вправо на 200px в мобильной версии */
    body::before {
      background-position-x: calc(100% + 800px);
      background-position-y: center;
    }

    #landing-content {
      padding: 20px 15px;
    }

    #landing-header {
      margin-bottom: 40px;
      padding-top: 20px;
    }

    #landing-header h2 {
      font-size: 28px;
    }

    #landing-header p {
      font-size: 16px;
    }

    #landing-sections {
      grid-template-columns: 1fr;
      gap: 20px;
      margin-bottom: 40px;
    }

    .landing-section-link:hover {
      transform: translateY(-3px);
    }

    .landing-section {
      padding: 20px;
    }

    .landing-section h3 {
      font-size: 20px;
    }

    .landing-section p {
      font-size: 14px;
    }

    #about-section {
      padding: 20px 15px;
    }

    #about-section h2 {
      font-size: 24px;
      margin-bottom: 20px;
    }

    .faq-question {
      padding: 12px 15px;
      font-size: 16px;
    }

    .faq-answer {
      padding: 0 15px;
    }

    .faq-item.active .faq-answer {
      padding: 0 15px 12px 15px;
    }

    #landing-cta {
      margin-top: 40px;
      margin-bottom: 60px;
    }

    #landing-start-btn {
      padding: 14px 36px;
      font-size: 18px;
    }

    #about-section {
      margin-top: 40px;
    }

    footer {
      position: static !important;
      transform: none !important;
      left: auto !important;
      bottom: auto !important;
      right: auto !important;
      font-size: 11px !important;
      padding: 20px 10px !important;
      margin-top: 40px;
      text-align: center;
    }

    footer p {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    footer a {
      margin-left: 0 !important;
    }
  }

  @media (max-width: 480px) {
    #landing-header h2 {
      font-size: 24px;
    }

    #landing-header p {
      font-size: 14px;
    }

    .landing-section h3 {
      font-size: 18px;
    }

    .landing-section h3 img {
      width: 40px !important;
      height: 40px !important;
    }
  }
