/* Base styles */
* {
  box-sizing: border-box;
}

.container {
  max-width: 1024px;
  margin: auto;
}

main {
  min-height: calc(100vh - 260px);
}

h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

html {
  overflow-y: scroll;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f9ff;
  color: #00235b;
  font-family: "Inter", sans-serif;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 46px;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 46px;
}

.footer-content {
  padding: 40px 0;
  display: flex;
  gap: 70px;
  align-items: center;
  flex-wrap: wrap;
}

.cards .feature .icon {
  width: 120px;
  height: 120px;
  background: url("cards-sprite.png") no-repeat;
  background-size: 400px;
}

.cards .feature:nth-child(1) .icon {
  background-position: -15px 5px;
}

.cards .feature:nth-child(2) .icon {
  background-position: -134px 10px;
}

.cards .feature:nth-child(3) .icon {
  background-position: -258px 7px;
}

.cards .feature:nth-child(4) .icon {
  background-position: -40px -198px;
  background-size: 550px;
}

.cards .feature:nth-child(5) .icon {
  margin-top: 15px;
  background-position: -143px -153px;
  background-size: 420px;
  height: 90px;
}

.cards .feature:nth-child(6) .icon {
  margin-top: 15px;
  background-position: -313px -164px;
  background-size: 460px;
  height: 100px;
}

.about-us-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.about-us-container img {
  width: 300px;
  display: block;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
}

.about-us-container div {
  text-align: left;
  font-size: 15px;
  line-height: 24px;
  color: grey;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
}

ul {
  font-size: 16px;
  line-height: 24px;
  color: grey;
}

.feature-text {
  color: #00235b;
  max-width: 340px;
}

.feature-text h3 {
  color: #00235b;
}

.cards .feature {
  flex: 0 1 calc(50% - 20px);
  box-sizing: border-box;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.cards .feature:nth-child(2n) {
  top: 30px;
}

/* Опционально: одинаковая высота карточек (если контент разный по длине) */
.cards .feature {
  min-height: auto; /* или auto, если не нужно жестко ограничивать */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.cards .feature h3,
.cards .feature p {
  margin: 5px 0;
  text-align: left !important;
}

.footer-text {
  flex: 1;
  text-align: left;
  font-size: 14px;
  line-height: 22px;
  color: #00235b;
}

.footer-contact {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  width: 164px;
}

.footer-copyright {
  margin-bottom: 10px;
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: grey;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.footer-copyright-links {
  display: inline-flex;
  gap: 10px;
  justify-content: center;
}

p {
  font-size: 16px;
  line-height: 24px;
  color: grey;
}

.link:hover {
  color: #3159c0;
}

.link.active {
  text-decoration: underline;
}

/* Header and Footer */

header {
  position: sticky;
  top: 0;
  z-index: 100;
}

header,
footer {
  background: #eef4ff;
  color: #00235b;
  padding: 1rem 2rem;
}

.line-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header {
  justify-content: center;
}

.logo {
  height: 40px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: #00235b;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

nav a:hover {
  text-decoration: underline;
}

main {
  margin: auto;
  padding: 2rem 1rem;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  margin-bottom: 5rem;
  width: 100%;
  gap: 2rem;
}

.feature-text {
  font-size: 15px;
  line-height: 22px;
  max-width: 300px;
  color: grey;
  margin: auto;
}

.hero-text {
  flex: 1 1 300px;
}

.hero-image img {
  height: auto;
  max-width: 480px;
}

.features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(204px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.feature:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  background: #f5f9ff;
}

.feature img {
  height: 68px;
}

.cta {
  text-align: center;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #00235b;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.button:hover {
  background: #1a3780;
}

footer {
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  nav {
    justify-content: center;
    margin-top: 1rem;
  }

  header {
    flex-direction: column;
    text-align: center;
  }
}
