.menu-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}
.trust {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 700px) {
  .hero h1 {
    white-space: normal;
  }
  .trust {
    flex-wrap: wrap;
    gap: 12px;
  }
}
.hero-bloc {
  background: rgba(18, 22, 28, 0.82);
  border-radius: 22px;
  box-shadow: 0 8px 40px 0 rgba(30,37,48,0.18);
  padding: 32px 60px 28px 54px;
  max-width: 900px;
  margin-top: 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(2px);
}
@media (max-width: 1100px) {
  .hero-bloc {
    max-width: 98vw;
    padding: 32px 12px;
  }
}
@media (max-width: 700px) {
  .hero-bloc {
    padding: 24px 10px;
    max-width: 100%;
  }
}

.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1);
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding-right: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(30,37,48,0.18);
  z-index: 100;
  padding: 10px 0 10px 0;
  will-change: opacity, transform;
}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background .15s;
}
.dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}


.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dropdown:hover > .dropdown-toggle .dropdown-arrow,
.dropdown:focus-within > .dropdown-toggle .dropdown-arrow {
  transform: rotate(-180deg);
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background .18s;
}
.dropdown-toggle:focus, .dropdown-toggle:hover {
  background: var(--bg-alt);
  outline: none;
}
.dropdown-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  vertical-align: middle;
}
.dropdown.open .dropdown-arrow {
  transform: rotate(-180deg);
}
.dropdown-menu a {
  transition: background .15s, color .15s, padding-left .18s;
}
.dropdown-menu a:hover {
  background: var(--primary);
  color: #fff;
  padding-left: 28px;
}
@media (max-width: 720px) {
  .dropdown-menu {
    left: unset;
    right: 0;
    min-width: 170px;
  }
}

.profile-cards-flex {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.profile-card-main {
  flex: 2 1 0;
  min-width: 340px;
  max-width: 800px;
}
.profile-card-secondary {
  flex: 1 1 0;
  min-width: 240px;
  max-width: 400px;
}
@media (max-width: 900px) {
  .profile-cards-flex { flex-direction: column; gap: 24px; }
}

.profile-cards-flex {
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.profile-cards-flex .profile-card {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 500px;
}
@media (max-width: 900px) {
  .profile-cards-flex { flex-direction: column; gap: 18px; }
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(30,37,48,0.07);
  padding: 36px 32px 28px 32px;
  max-width: 500px;
  margin: 0 auto;
}
.profile-fields {
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
}
.profile-fields > div {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
.profile-card label {
  font-weight: 600;
  margin-bottom: 6px;
}
.profile-card input[type="text"],
.profile-card input[type="email"],
.profile-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f141d;
  color: var(--text);
  font-size: 16px;
}
.profile-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .profile-fields { flex-direction: column; gap: 0; }
  .profile-card { padding: 24px 10px; }
}

.dashboard-section {
  min-height: 70vh;
  background: var(--bg-alt);
  padding: 48px 0 0 0;
}
.dashboard-flex {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}
.dashboard-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  min-width: 220px;
  box-shadow: 0 4px 24px rgba(30,37,48,0.07);
}
.dashboard-sidebar h4 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 20px;
}
.dashboard-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-sidebar li {
  margin-bottom: 12px;
}
.dashboard-sidebar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.dashboard-sidebar a:hover {
  color: var(--primary);
}
.dashboard-main {
  flex: 1 1 0;
  min-width: 0;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.dashboard-header h3 {
  margin: 0;
  font-size: 26px;
}
.dashboard-servers {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dashboard-server-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(30,37,48,0.06);
  gap: 32px;
}
.dashboard-server-card h5 {
  margin: 0 0 8px 0;
}
.dashboard-server-actions {
  text-align: right;
}
@media (max-width: 900px) {
  .dashboard-flex { flex-direction: column; gap: 24px; }
  .dashboard-sidebar { min-width: 0; width: 100%; }
}
@media (max-width: 600px) {
  .dashboard-server-card { flex-direction: column; gap: 16px; }
  .dashboard-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(91,140,255,.25), transparent),
              radial-gradient(800px 400px at 80% -10%, rgba(62,109,255,.2), transparent),
              linear-gradient(180deg, #181d23 0%, #0b0d10 100%);
}
.login-section {
  position: relative;
  padding-top: 64px;
  padding-bottom: 32px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.login-section {
  position: relative;
  padding-top: 64px;
  padding-bottom: 32px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(91,140,255,.25), transparent),
              radial-gradient(800px 400px at 80% -10%, rgba(62,109,255,.2), transparent),
              linear-gradient(180deg, #181d23 0%, #0b0d10 100%);
}

.login-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
}
.login-flex {
  display: flex;
  gap: 48px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}
.login-info {
  flex: 1 1 0;
  min-width: 220px;
}
.login-card {
  flex: 0 0 350px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 6px 32px #1e25301a;
  padding: 36px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 300px;
}
.login-card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  text-align: center;
}
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f141d;
  color: var(--text);
  font-size: 16px;
}
.login-card .btn-primary {
  font-size: 16px;
  padding: 12px 0;
}
.login-card .error {
  color: #ff7878;
  font-size: 15px;
  min-height: 20px;
  text-align: center;
}
@media (max-width: 900px) {
  .login-flex { flex-direction: column; gap: 32px; align-items: stretch; }
  .login-card { margin: 0 auto; }
}

:root {
  --bg: #0b0d10;
  --bg-alt: #0f1216;
  --text: #e6e9ef;
  --muted: #aab2bf;
  --primary: #5b8cff;
  --primary-600: #3e6dff;
  --card: #12161c;
  --border: #1e2530;
  --success: #30d158;
}

:root.light {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #0b0d10;
  --muted: #4a5568;
  --primary: #3e6dff;
  --primary-600: #2f55ff;
  --card: #ffffff;
  --border: #e6e9ef;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  min-height: 100vh;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  user-select: none;
}
.site-header {
  flex-shrink: 0;
}
main {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,13,16,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; text-decoration: none; color: var(--text); letter-spacing: -0.02em; font-size: 20px; }
.brand span { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 16px; list-style: none; padding: 0; margin: 0; }
.nav-menu a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
.icon-btn { background: var(--card); border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: 10px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 10px 14px; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--card); transition: transform .06s ease, background .2s ease, border .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn-primary { background: var(--primary); border-color: transparent; color: white; }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: 12px; padding: 10px; color: rgb(255, 255, 255); }
.btn-danger:hover {background: #bb2d3b;}
.btn-connect { background: #1e3a8a; padding: 8px 12px; font-size: 14px;  border: 2px solid #1d4ed8;}
.btn-connect:hover {background: #172554; transform: scale(1.1);}

.hero {
  min-height: 520px;
  padding: 96px 0 48px;
  background:
    linear-gradient(180deg, rgba(24,29,35,0.82) 0%, rgba(11,13,16,0.92) 100%),
    url('../img/backgroundindex.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0 0 16px; }
.hero-cta { display: flex; gap: 12px; margin: 20px 0; }
.trust { display: flex; gap: 16px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; }
.glow { position: absolute; inset: 0; background: radial-gradient(500px 300px at 60% 40%, rgba(91,140,255,.35), transparent); filter: blur(20px); }
.card-mock { position: relative; border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.card-mock .row { height: 14px; background: #1a2130; border-radius: 8px; margin: 10px 0; }
.card-mock .row.wide { height: 34px; }
.card-mock .row span { display: inline-block; width: 24px; height: 10px; background: #2a3242; border-radius: 6px; margin-right: 6px; }

.section { padding: 64px 0; }
.section.bg-hero {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(91,140,255,.25), transparent),
              radial-gradient(800px 400px at 80% -10%, rgba(62,109,255,.2), transparent),
              linear-gradient(180deg, #181d23 0%, #0b0d10 100%);
}
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 8px; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); }

.tabs { display: inline-flex; gap: 8px; border: 1px solid var(--border); padding: 6px; border-radius: 12px; background: var(--card); margin: 0 auto 16px; }
.tab { background: transparent; border: 0; color: var(--muted); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.tab.active { color: var(--text); background: #5b8cff; }

.grid.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 20px; }
.card .badge { position: absolute; top: -10px; right: 16px; background: linear-gradient(90deg, #5b8cff, #2f55ff); color: white; padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.card h3 { margin: 0 0 6px; }
.price { margin: 8px 0 12px; color: var(--muted); }
.price span { font-weight: 800; color: var(--text); font-size: 22px; }
.specs { list-style: none; padding: 0; margin: 0 0 14px; color: var(--muted); }
.specs li { padding-left: 16px; position: relative; margin: 8px 0; }
.specs li::before { content: ""; width: 6px; height: 6px; background: var(--primary); border-radius: 999px; position: absolute; left: 0; top: 10px; }
.card.featured { outline: 2px solid var(--primary); }

.panel { display: block; }
.panel[hidden] { display: none; }
.panel.show { animation: fade .25s ease; }
@keyframes fade { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.grid.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid.features article { border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 18px; }
.grid.features h3 { margin: 0 0 6px; }
.bullets { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.bullets li { margin: 8px 0; }

.security { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.sla-card { border: 1px solid var(--border); background: linear-gradient(180deg, rgba(91,140,255,.12), transparent); border-radius: 16px; padding: 20px; text-align: center; }
.uptime { font-size: 24px; font-weight: 800; margin: 0 0 6px; }

.accordion .item { border: 1px solid var(--border); background: var(--card); border-radius: 12px; margin: 10px 0; overflow: hidden; }
.acc-btn { width: 100%; text-align: left; padding: 14px 16px; background: transparent; border: 0; color: var(--text); font-weight: 600; cursor: pointer; }
.acc-panel { padding: 0 16px 16px; color: var(--muted); }

.contact-form {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 32px 32px 24px 32px;
  max-width: 1200px;
  min-width: 350px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.08);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 1rem; }
input, textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f141d;
  color: var(--text);
  font-size: 1rem;
}
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.form-note { color: var(--muted); margin: 0; font-size: 13px; }
.form-status { margin-top: 8px; font-size: 14px; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0 0 0; background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 14px; }
.footer-nav a { color: var(--muted); text-decoration: none; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid.features { grid-template-columns: repeat(2, 1fr); }
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { position: absolute; right: 20px; top: 64px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: none; flex-direction: column; align-items: stretch; min-width: 220px; }
  .nav-menu.show { display: flex; }
  .grid.cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}


