* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  background: #fafafa;
  color: #111;
  line-height: 1.6;
}
a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav__logo {
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #111;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav__link,
.nav__button {
  min-width: 120px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
}
.nav__link {
  text-decoration: none;
  background: #fff;
  color: #111;
}
.nav__link:hover {
  background: #f2f2f2;
}
.nav__button {
  background: #111;
  color: #fff;
  cursor: pointer;
}
.nav__button:hover {
  background: #222;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}
.nav-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.button:hover {
  background: #f2f2f2;
}
.button.primary {
  background: #111;
  color: #fff;
  border-color: #111;
}
.button.primary:hover {
  background: #222;
}

main {
  padding: 18px;
}
.page {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
}
.page-title {
  text-align: center;
  letter-spacing: 2px;
  font-weight: 900;
  margin: 18px 0 18px;
  font-size: 28px;
}
.status {
  margin: 10px 0;
  color: #333;
  font-size: 14px;
}

.form {
  max-width: 720px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

.input,
.textarea {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.textarea {
  resize: vertical;
  min-height: 180px;
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: #111;
}

.button.primary {
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 14px;
  font-weight: 700;
}
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
  background: #fff;
}
.form-group textarea {
  resize: vertical;
  min-height: 220px;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
}

.carousel {
  border: 1px solid #eee;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  margin: 16px 0;
}
.carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.carousel__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.carousel__inner {
  display: flex;
  gap: 24px;
  padding: 24px;
}

.card {
  width: 420px;
  min-width: 420px;
  min-height: 280px;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.card h2,
.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}
.card p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  flex-grow: 1;
}
.card small,
.card .meta {
  color: #666;
  margin-top: auto;
  font-size: 12px;
}

@media (max-width: 460px) {
  .card {
    width: 300px;
    min-width: 300px;
    min-height: 260px;
  }
  .nav__link,
  .nav__button {
    min-width: 110px;
  }
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes marqueeRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.track--left {
  animation: marqueeLeft 80s linear infinite;
}
.track--right {
  animation: marqueeRight 80s linear infinite;
}

.carousel:hover .carousel__track {
  animation-play-state: paused;
}
