:root {
  --bg-main: #eef2f3;
  --bg-white: #ffffff;

  --text-main: #2e3438;
  --text-muted: #6b757d;

  --accent-blue: #4a6f8a;
  --accent-green: #7f9c8b;

  --border-soft: #d8dee3;

  --error-red: #b45a5a;
}

/* BASE */
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-soft);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 120px;
  width: auto;
}

/* NAV */
nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: 0.2s;
}

nav a:hover {
  color: var(--accent-blue);
}

/* BUTTONS */
.primary-btn,
.login-btn,
.register-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 26px;
  background: var(--accent-blue);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}

.primary-btn:hover,
.login-btn:hover,
.register-btn:hover {
  background: #3c5f78;
  transform: scale(1.05);
}

.secondary-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  background: var(--accent-green);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.secondary-btn:hover {
  transform: scale(1.03);
  background: #6b8b79;
}

/* HERO */
.hero {
  position: relative;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f8f9 0%, var(--bg-main) 100%);
}

/* Анимированный бесшовный спектр */
.hero-spectrum {
  position: absolute;
  top: 50%;
  left: 0;
  width: 200%;
  height: 300px;
  background: repeating-linear-gradient(
    to right,
    rgba(74,111,138,0.12),
    rgba(74,111,138,0.12) 50px,
    rgba(127,156,139,0.12) 100px
  );
  transform: translateY(-50%);
  z-index: 0;
  background-size: 200px 100%;
  animation: move-spectrum 10s linear infinite;
}

@keyframes move-spectrum {
  0% { background-position: 0 0; }
  100% { background-position: -200px 0; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero p {
  max-width: 600px;
  margin: auto;
  color: var(--text-muted);
}

/* SECTIONS */
.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--bg-white);
}

.section p {
  color: var(--text-muted);
}

/* CARDS */
.cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.card {
  background: var(--bg-white);
  padding: 26px;
  border-radius: 14px;
  flex: 1;
  min-width: 260px;
  border: 1px solid var(--border-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.card h3 {
  color: var(--accent-blue);
}

/* AUTH */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #e9eff2, #f6f9fa);
}

.auth-container {
  background: var(--bg-white);
  padding: 42px;
  border-radius: 16px;
  width: 340px;
  text-align: center;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.auth-container h2 {
  margin-bottom: 25px;
}

/* INPUTS */
.auth-container input {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #f8fafb;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.auth-container input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: white;
}

/* AUTH BUTTON */
.auth-container button {
  width: 100%;
  padding: 14px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.auth-container button:hover {
  background: #3c5f78;
  transform: scale(1.05);
}

/* ERROR */
.error-text {
  color: var(--error-red);
}

/* 404 */
.big-404 {
  font-size: 96px;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

/* FOOTER */
.footer {
  background: var(--bg-white);
  padding: 26px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
}