html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #f1f1f1;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header.main-header {
    background: #1a1a1a;
    padding: 20px 0;
    border-bottom: 2px solid #444;
    animation: slideDown 0.8s ease-out;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-size: 26px;
    color: #00ff99;
    font-weight: bold;
    text-decoration: none;
}
nav.nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin: 0;
}
nav.nav a {
    color: #ccc;
    text-decoration: none;
    position: relative;
}
nav.nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #00ff99;
    transition: 0.3s ease;
}
nav.nav a:hover::after {
    width: 100%;
}
.hero {
    background: linear-gradient(to right, #000000, #222);
    padding: 80px 0;
    text-align: center;
    animation: fadeInUp 1s ease-in-out;
}
.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.btn {
    background: #00ff99;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}
.btn:hover {
    background: #00cc7a;
    transform: scale(1.05);
}
section {
    padding: 60px 0;
    animation: fadeIn 1.5s ease-in-out;
}
.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-item {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}
.feature-item:hover {
    transform: translateY(-5px);
}
.contacts .social-links a {
    display: inline-block;
    margin-right: 20px;
    color: #00ff99;
    text-decoration: none;
    transition: color 0.3s;
}
.contacts .social-links a:hover {
    color: #00cc7a;
}
.main-footer {
    background: #1a1a1a;
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #444;
    animation: slideUp 1s ease-out;
    margin-top: auto;
}

main.container {
    flex: 1;
}

.main-footer p {
    margin: 5px 0;
    color: #777;
}

.main-footer a {
    color: inherit;
    text-decoration: none;
    outline: none;
    border: none;
}

.main-footer a:hover {
    color: inherit;
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.partners {
  padding: 60px 0px;
  box-sizing: border-box;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

.partner-item {
  background-color: #252525;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 150px;
  box-sizing: border-box;
  text-decoration: none;
  word-wrap: break-word;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 255, 153, 0.2);
}

.partner-item h3 {
  color: #00ff99;
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  word-break: break-word;
}

.partner-item p {
  color: #ccc;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.partner-item a {
  color: inherit;
  text-decoration: none;
  height: 100%;
  display: block;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .partners {
    padding: 40px 10px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partner-item {
    padding: 15px;
    min-height: auto;
  }

  .partner-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .partner-item p {
    font-size: 13px;
    line-height: 1.4;
  }
}
