:root {
  --accent: #06c;
}

@font-face {
    font-family: bounded;
    src: url(/assets/fonts/bounded-Variable.ttf);
}

* {
  box-sizing: border-box;
  font-family: bounded;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: system-ui, Segoe UI, Roboto, Ubuntu, sans-serif;
}

main {
  flex: 1;   
}

.site-footer {
  margin-top: auto; 
}

a {
    text-decoration: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}

.app-header {
  font-size: 12px;
  background-color: #0d1117;
  color: #00ffe0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
}
.app-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.logo img {
  height: 50px;
}
.main-nav {
  display: flex;
  gap: 20px;
}
.main-nav a {
  color: #cfd8dc;
  font-weight: 500;
  text-decoration: none;
  padding: 8px;
  border-bottom: 2px solid transparent; 
  transition: color .2s, border-color .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #00ffe0;
  border-bottom-color: #00ffe0; 
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-accent {
  background: #00ffe0;
  color: #0d1117;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.search-input {
  padding: 6px 16px;
  border: 1px solid #444;
  border-radius: 10px;
  background: #262e36;
  color: #fff;
}
.search-input::placeholder {
  color: #888;
}


.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}


@media (min-width: 769px) {
  .main-nav {
    display: flex;
    gap: 20px;
  }
}


@media (max-width: 768px) {
  .app-header .container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none; 
    flex-direction: column;
    width: 100%;
    background: #0d1117;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid #222;
  }

  .main-nav a {
    padding: 12px 24px;
    border-bottom: 1px solid #222;
  }

  .main-nav.active {
    display: flex; 
  }

  .actions {
    width: 100%;
    margin-top: 10px;
  }

  .search-input {
    width: 100%;
  }
}




.hero {
  flex-shrink: 0;         
  min-height: 80vh;       
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(359.63deg, rgba(0, 0, 41, .6) .4%, rgba(0, 0, 41, 0) 77.5%),
    linear-gradient(0deg, rgba(0, 32, 91, .6), rgba(0, 32, 91, .6));
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid.cards {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}
.article .meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 16px;
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s forwards;
}
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}


.features {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  display: block;
  padding: 24px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #111;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card h3, 
.feature-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  transition: color 0.3s;
}

.feature-card:hover::before,
.feature-card:hover::after {
  opacity: 1;
}

.feature-card:hover h3,
.feature-card:hover p {
  color: #fff;
}


.site-footer {
  background: #0d1117;
  color: #cfd8dc;
  padding: 24px 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer .footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer .footer-nav {
  display: flex;
  gap: 20px;
}

.site-footer .footer-nav a {
  color: #cfd8dc;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .footer-nav a:hover {
  color: #00ffe0;
}

.site-footer .footer-copy {
  flex-basis: 100%;
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
  opacity: 0.7;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #004080;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: none; /* скрыта по умолчанию */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #0066cc;
}


