* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    font-family: Arial, sans-serif;
    color: #fff;

    padding: 100px 20px 40px;
}

.logo {
    width: 180px;
    margin-bottom: 30px;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: #11b0e5 0px 0px 15px;
}

.input, .select {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin-bottom: 15px;

    border-radius: 12px;
    border: none;
    outline: none;

    background: #2f2f46;
    color: #fff;

    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    font-size: 14px;
}

.select {
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg fill="%23fff" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z" /%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1rem;
    cursor: pointer;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    width: 100%;
    max-width: 1000px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (orientation: portrait) {
    body {
        padding-top: 150px;
    }
    .top-bar {
        height: auto;
        min-height: 100px;
        padding: 10px 12px;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .menu-toggle {
        display: flex;
        margin-right: auto;
    }
    .nav-links {
        display: none;
        width: 100%;
        margin-top: 8px;
        padding: 8px;
        border-radius: 12px;
        background: rgba(17, 24, 39, 0.92);
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }
    .top-bar.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 13px;
        padding: 8px 6px;
        border-radius: 8px;
        background: rgba(255,255,255,0.05);
    }
}

@media (max-width: 600px) {
    body {
        padding: 120px 12px 32px;
    }
    .top-bar {
        padding: 10px 12px;
        justify-content: center;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .input, .select {
        max-width: none;
        width: 100%;
        margin: 8px 0;
    }
    .btn, .btnhelix {
        width: 100%;
        text-align: center;
    }
}

@media (orientation: landscape) and (max-height: 700px) {
    body {
        padding-top: 110px;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: #2f2f46;
    padding: 20px;
    border-radius: 20px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    margin-bottom: 5px;
    font-size: 16px;
}

.card .version {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    margin-top: 15px;

    background: #00c3ff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;

    color: #000;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;

    transition: 0.3s;
}

.btn:hover {
    background: #00a2d6;
}

.btnhelix {
    display: inline-block;
    margin-top: 15px;

    background: #00a2d6;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;

    color: #000;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;

    transition: 0.3s;
}

.btnhelix:hover {
    background: #11b0e5;
}


footer {
    margin-top: 40px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    font-family: Arial, sans-serif;
    color: #fff;

    padding: 40px 20px;
}

.input, .select {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin-bottom: 15px;

    border-radius: 12px;
    border: none;
    outline: none;

    background: #2f2f46;
    color: #fff;

    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    font-size: 14px;
}


.select {
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg fill="%23fff" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z" /%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1rem;
    cursor: pointer;
}


.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    width: 100%;
    max-width: 1000px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}


.card {
    background: #2f2f46;
    padding: 20px;
    border-radius: 20px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}


.card h2 {
    margin-bottom: 5px;
    font-size: 16px;
}

.card .version {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 15px;
}

.cardhelix {
    background: #2f2f46;
    padding: 20px;
    border-radius: 20px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
    box-shadow: 0 0 10px #00a0d692;
}

.cardhelix:hover {
    transform: translateY(-5px);
}


.cardhelix h2 {
    margin-bottom: 5px;
    font-size: 16px;
}

.cardhelix .version {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}


.btn {
    display: inline-block;
    margin-top: 15px;

    background: #00c3ff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;

    color: #000;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;

    transition: 0.3s;
}

.btn:hover {
    background: #00a2d6;
}

footer {
    margin-top: 40px;
}
/* Верхняя полоска */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px; /* высота топ-бара */
  display: flex;
  align-items: center;
  gap: 40px; /* расстояние между логотипом и кнопками */
  padding: 10px 40px;
  background: linear-gradient(135deg, #1e1e2f, #2a2a40);
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  z-index: 100;
}

/* Логотип */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 4px #00c3ff);
    transition: filter 0.3s ease;
}

.top-logo {
  height: 40px;
  width: auto;
}

/* Кнопки слева рядом с логотипом */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px; /* расстояние между кнопками */
}

/* Кнопки в стиле .nav-buttons */
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.nav-links a:hover {
  background: #00c3ff;
  color: #000;
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Чтобы контент страницы не перекрывался top-bar */
body {
  padding-top: 90px; /* высота топ-бара + запас */
}