  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #f0f2f5;
    color: #222;
    display: flex;
    flex-direction: column;
    font-size: 1.1em;
  }

  header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    flex-wrap: wrap;
  }

  .logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .logo-img {
    width: 85px;
    height: 85px;
    margin-right: 12px;
    border-radius: 8px;
    object-fit: cover;
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    font-size: 1.1em;
  }

  .logo-text span:first-child {
    font-weight: bold;
    font-size: 1.4em;
  }
  .logo-text span:last-child {
    font-weight: 300;
    font-size: 0.8em;
    color: #555;
  }

  section {
    padding: 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
  }

  h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
  }

  /* Карточки серверов */
  .server {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 15px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.6s forwards;
  }
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* Задержки для анимации */
  .server:nth-child(1) { animation-delay: 0.0s; }
  .server:nth-child(2) { animation-delay: 0.2s; }
  .server:nth-child(3) { animation-delay: 0.4s; }
  .server:nth-child(4) { animation-delay: 0.6s; }
  .server:nth-child(5) { animation-delay: 0.8s; }
  .server:nth-child(6) { animation-delay: 1.0s; }

  .server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .server-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* добавим стиль для круглого окошка */
  .speed-badge {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 50%;
    font-size: 0.9em;
    min-width: 60px;
    text-align: center;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
    margin-left: 10px;
    transition: background 0.3s, transform 0.2s;
  }
  .speed-badge:hover {
    background: #45a049;
    transform: scale(1.05);
  }
  /* Статус индикатор */
  .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: gray; /* по умолчанию */
    box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
  }
  /* Статус онлайн */
  .online {
    background-color: #4CAF50; /* зеленый */
    box-shadow: 0 0 4px #4CAF50 inset;
  }
  /* Статус оффлайн */
  .offline {
    background-color: #ccc; /* серый или красный по желанию */
    box-shadow: inset 0 0 4px #ccc;
  }

  /* Кнопки */
  button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    font-size: 1em;
  }

  .btn-connect {
    background: linear-gradient(135deg, #0088cc, #00b7f5);
    color: #fff;
  }
  .btn-connect:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .btn-qr {
    background: #444;
    color: #fff;
  }
  .btn-qr:hover {
    background: #555;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .btn-settings {
    background: #444;
    color: #fff;
  }
  .btn-settings:hover {
    background: #999;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  /* Блок преимуществ (белая тема) */
  .advantages-container {
    background: #c7e8f7;
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .advantages-container h2 {
    margin-top: 0;
    text-align: center;
    color: #222222cf;
    font-weight: 600;
    font-size: 1.4em;
  }
  .advantages-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
  }
  .advantage {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .advantage:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .advantage h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #00af3f;
  }
  .advantage p {
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
  }

  /* QR-код контейнер, изначально скрыт */
  #qrCodeContainer {
    display: none;
    opacity: 0;
    position: relative;
    margin-top: 20px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.3s ease;
  }
  #qrCodeContainer.show {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s forwards;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  #qrCodeContainer h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
  }

  #qrCode {
    margin: 0 auto;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  /* Модальное окно настроек */
  #settingsModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  #settingsContent {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    width: 80%;
    max-width: 350px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  #settingsContent h2 {
    margin-top: 0;
    text-align: center;
    color: #222;
    font-size: 1.3em;
  }
  #settingsClose {
    margin-top: 15px;
    padding: 8px 12px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    font-size: 1em;
  }
  #settingsClose:hover {
    background: #555;
  }

  .update-time {
    margin-top: 20px;
    font-size: 1em;
    color: #999;
    text-align: center;
  }

  /* Плавающая кнопка "Подписаться" */
  .subscribe-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #00b7f5b8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s, transform 0.2s;
  }
  .subscribe-btn:hover {
    background-color: #00b5f5b8;
    transform: scale(1.1);
  }

  @media(max-width: 600px){
    body {
      font-size: 1.2em;
    }
    header {
      padding: 12px 16px;
    }
    .logo-img {
      width: 40px;
      height: 40px;
      margin-right: 10px;
    }
    h1 {
      font-size: 1.8em;
    }
    #qrCode {
      width: 150px;
      height: 150px;
    }
  }