* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f3f5fb 0%, #eef2ff 100%);
  color: #1b2559;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1080px;
  margin: auto;
  padding: 12px 18px 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  width: 150px;
  height: 150px;
  border-radius: 22px;
  background-image: url("../img/ai-hr-tools-logo.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  background: #eef2ff;
  color: #1b2559;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  border: 1px solid #dfe5ff;
}

.title {
  font-size: 34px;
  font-weight: 800;
  color: #1b2559;
  line-height: 1.05;
  margin: 0 0 2px;
}

.subtitle {
  color: #6173a6;
  font-size: 15px;
  margin: 0;
}

.lang-switch {
  display: inline-flex;
  background: #e7ebf8;
  padding: 6px;
  border-radius: 999px;
  gap: 6px;
  align-self: center;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #41538d;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #1b2559;
  color: #fff;
}

.hero-mini {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff3ff 0%, #f7f9ff 100%);
  border: 1px solid #e3e8f7;
}

.hero-mini h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #18245a;
  line-height: 1.15;
}

.hero-mini p {
  margin: 0;
  color: #60709d;
  font-size: 14px;
  line-height: 1.6;
  max-width: 100%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.card {
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 10px 24px rgba(24, 37, 89, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border: 1px solid #eef1f8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(24, 37, 89, 0.12);
  border-color: #d9e1fb;
}

.card h3 {
  margin: 0 0 14px;
  font-size: 21px;
  color: #1b2559;
  line-height: 1.2;
}

.card p {
  color: #64739f;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
  min-height: 72px;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #1b2559 0%, #2d3c8d 100%);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 18px rgba(27, 37, 89, 0.18);
  align-self: flex-start;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.designer {
  background: linear-gradient(135deg, #031033 0%, #0d1b4f 55%, #132866 100%);
  border-radius: 18px;
  padding: 14px 18px;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(8, 18, 54, 0.16);
}

.designer h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.designer p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  max-width: 100%;
}

.designer-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-top: 6px;
}

.designer-item {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.98);
  word-break: break-word;
}

.designer-item a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.designer-item a:hover {
  color: #cdd8ff;
}

.designer-item strong {
  color: #ffffff;
}

.footer {
  text-align: center;
  margin-top: 24px;
  color: #96a3c6;
  font-size: 13px;
}

.footer-link {
  color: #8fa1d4;
  text-decoration: none;
  margin: 0 6px;
  font-size: 13px;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .cards,
  .designer-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .card p {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 18px 14px 28px;
  }

  .logo {
    width: 84px;
    height: 84px;
  }

  .title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 15px;
  }

  .hero-mini h2 {
    font-size: 24px;
    font-weight: 700;
  }

  .card {
    padding: 26px 22px;
    min-height: auto;
  }

  .card h3 {
    font-size: 22px;
  }

  .designer {
    padding: 24px 20px 20px;
  }

  .designer h3 {
    font-size: 22px;
  }

  .designer p,
  .designer-item {
    font-size: 16px;
  }
}