/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: #2563eb;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Кнопки */
.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button--primary {
  background-color: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
}

.button--primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.button--secondary {
  background-color: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.button--secondary:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

/* Шапка */
.header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  color: #333;
}

.logo__img {
  height: 40px;
  margin-right: 10px;
}

.logo__text {
  font-size: 24px;
  font-weight: 700;
}

.nav__list {
  display: flex;
  align-items: center;
}

.nav__item {
  margin-left: 20px;
}

.nav__link {
  color: #333;
  font-weight: 500;
}

.nav__link:hover {
  color: #2563eb;
}

/* Найдем и обновим стили для мобильного меню */

/* Обновляем стили для мобильного меню */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Главная секция */
.main {
  padding: 40px 0;
  min-height: calc(100vh - 70px - 300px); /* Высота экрана минус шапка и подвал */
}

/* Герой */
.hero {
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero__content {
  flex: 1;
  padding-right: 40px;
}

.hero__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a202c;
}

.hero__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #4a5568;
}

.hero__buttons {
  display: flex;
  gap: 15px;
}

.hero__image {
  flex: 1;
  text-align: center;
}

/* Особенности */
.features {
  padding: 60px 0;
  background-color: #fff;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1a202c;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
}

.feature__icon img {
  width: 30px;
  height: 30px;
}

.feature__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a202c;
}

.feature__description {
  color: #4a5568;
}

/* CTA */
.cta {
  padding: 60px 0;
  background-color: #2563eb;
  color: #fff;
  text-align: center;
}

.cta__title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cta .button--primary {
  background-color: #fff;
  color: #2563eb;
  border-color: #fff;
}

.cta .button--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cta .button--secondary {
  color: #fff;
  border-color: #fff;
}

.cta .button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Подвал */
.footer {
  background-color: #1a202c;
  color: #fff;
  padding: 60px 0 20px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo .logo {
  color: #fff;
  margin-bottom: 15px;
}

.footer__description {
  color: #a0aec0;
  font-size: 14px;
}

.footer__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  color: #a0aec0;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #fff;
}

.footer__social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer__social-link img {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer__copyright {
  color: #a0aec0;
  font-size: 14px;
}

/* Формы */
.auth-container {
  max-width: 400px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group input:focus {
  border-color: #2563eb;
  outline: none;
}

.button--full {
  width: 100%;
}

.auth-links {
  margin-top: 20px;
  text-align: center;
}

.alert {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-danger {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.error-message {
  color: #b91c1c;
  font-size: 14px;
  margin-top: 5px;
}

input.error {
  border-color: #b91c1c;
}

.user-type-selector {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.user-type-option {
  flex: 1;
  cursor: pointer;
}

.user-type-option input[type="radio"] {
  display: none;
}

.user-type-content {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.user-type-option input[type="radio"]:checked + .user-type-content {
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.05);
}

.user-type-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.user-type-label {
  font-weight: 600;
  margin-bottom: 5px;
}

.user-type-description {
  font-size: 14px;
  color: #6b7280;
}

/* Адаптивность */
/* Обновляем стили для навигации на мобильных устройствах */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero__content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .hero__buttons {
    justify-content: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 100;
    padding: 80px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav.active {
    transform: translateX(0);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav__item {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
  }

  .nav__link {
    display: block;
    padding: 15px 0;
    font-size: 18px;
  }

  .nav__link.button {
    display: inline-block;
    margin-top: 10px;
  }

  .user-type-selector {
    flex-direction: column;
  }
}
