/* ====== Глобальные переменные ====== */
:root {
  --bg: #f5f5f5;
  --text: #333333;
  --heading: #2c3e50;
  --accent: #4a90e2;
  --secondary: #a3d9a5;
  --error: #e57373;
}

/* ====== Базовые стили ====== */
body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  scroll-behavior: smooth;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px 50px; /* отступ сверху для навбара */
}

/* ====== Навбар ====== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); /* стеклянный эффект */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
}

/* Ссылки */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s, transform 0.2s;
}

/* Hover только для обычных ссылок */
.nav-links a:not(:first-child):hover {
  color: var(--accent);
}

.nav-links a:not(:first-child)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:not(:first-child):hover::after {
  width: 100%;
}

/* === Кнопка Регистрация === */
.nav-links a:first-child {
  padding: 10px 22px;
  background: linear-gradient(135deg, #4a90e2, #357abd, #5eb8f7);
  background-size: 200% 200%;
  color: #fff !important;
  border-radius: 35px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(74, 144, 226, 0.3);
  transition: all 0.4s ease;
  animation: gradientShift 4s infinite alternate;
  position: relative;
  overflow: hidden;
}

/* Hover для регистрации */
.nav-links a:first-child:hover {
  transform: translateY(-2px) scale(1.08);
  /* box-shadow: 0 6px 22px rgba(74, 144, 226, 0.6), */
  /* 0 0 14px rgba(74, 144, 226, 0.7); */
  background-position: 100% 50%;
}

/* Анимация перелива градиента */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger div {
  width: 26px;
  height: 3px;
  background: var(--heading);
  border-radius: 2px;
  transition: 0.3s;
}

/* ====== HERO REGISTER ====== */
.hero-register {
  margin: 40px auto 60px;
  padding: 50px 35px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  padding-right: 20px;
}

.hero-text .subtitle {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-text h2 {
  font-size: 2rem;
  margin: 10px 0 15px 0;
  font-family: "Poppins", sans-serif;
  color: var(--heading);
  line-height: 1.4;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-top: 8px;
  max-width: 600px;
}

/* ====== Форма ====== */
.register-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.register-fields h3 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-family: "Poppins", sans-serif;
  color: var(--heading);
  text-align: center;
}

.register-fields label {
  margin: 0 0 5px 0;
  font-weight: bold;
}

.register-fields input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.register-fields input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.4);
}

.btn-gradient {
  margin-top: 20px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), #357abd);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  font-family: "Poppins", sans-serif;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.btn-gradient:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.hidden {
  display: none;
  margin-top: 10px;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1rem;
}

/* ====== Почему выбирают нас ====== */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-family: "Poppins", sans-serif;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.benefit-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin: 12px 0;
  color: var(--heading);
  font-family: "Poppins", sans-serif;
}

.benefit-card p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

/* ====== С чего начать ====== */
.how-to-start {
  margin: 60px 0;
  text-align: center;
}

.how-to-start h2 {
  font-family: "Poppins", sans-serif;
  color: var(--heading);
  margin-bottom: 40px;
  font-size: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.step {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.step img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.step p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.4;
  font-weight: 500;
}

.cta-after-steps {
  margin-top: 40px;
  text-align: center;
}

.cta-after-steps .btn-gradient {
  width: auto;
  padding: 14px 36px;
  display: inline-block;
}

/* ====== Блок безопасности ====== */
.security {
  margin-top: 80px;
  padding: 60px 20px;
  background: linear-gradient(135deg, #2c3e50, #1b2838);
  text-align: center;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.security-content h2 {
  font-size: 2rem;
  font-family: "Poppins", sans-serif;
  color: #fff;
  margin-bottom: 20px;
}

.security-content p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

/* ====== Адаптив ====== */
@media (max-width: 992px) {
  .container {
    padding: 80px 15px 30px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }

  .register-fields {
    padding: 20px;
    max-width: 420px;
    margin: 0 auto;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    gap: 18px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 70px 10px 20px;
  }

  .hero-register {
    margin: 15px auto 30px;
    padding: 30px 20px;
  }

  .hero-text h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .register-fields {
    padding: 15px;
    gap: 12px;
  }

  .register-fields h3 {
    font-size: 1.1rem;
  }

  .register-fields input {
    font-size: 0.95rem;
    padding: 12px;
  }

  .btn-gradient {
    font-size: 1rem;
    padding: 12px 24px;
    width: auto;
    display: block;
    margin: 15px auto 0;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-card img {
    height: 140px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .security {
    padding: 20px;
    font-size: 0.9rem;
  }
}
