/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  background-color: #fff;
}

/* Шапка сайта */
.header {
  position: fixed;     /* Фиксируем шапку */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;       /* Чтобы шапка была поверх всего */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}

/* Делаем логотип круглым */
.logo img {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 50%;
}

/* Кнопка входа */
.nav .login-btn {
  text-decoration: none;
  color: #007BFF;
  border: 1px solid #007BFF;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav .login-btn:hover {
  background-color: #007BFF;
  color: #fff;
}

/* Главная секция (Hero) */
.hero {
  position: relative;
  height: calc(100vh - 70px); /* высота вьюпорта за вычетом шапки */
  margin-top: 70px;           /* сдвигаем блок, чтобы он не был под шапкой */
  background: url("images/your-background.jpg") center center no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Градиент, накладываемый поверх фона */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 80%;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* Стрелка вниз (перемещена в нижнюю часть Hero) */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s;
  z-index: 2;
}

.scroll-down:hover {
  transform: translate(-50%, 5px);
}

/* Секция "О VLESS Reality" */
.about {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.about p {
  text-align: justify;
  margin-bottom: 20px;
  line-height: 1.5;
}

.advantages {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 40px;
  margin-top: 20px;
}

.advantages li {
  text-align: justify;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Секция преимуществ */
.features {
  padding: 60px 20px;
  background-color: #f2f2f2;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  width: 325px;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-item p {
  font-size: 1rem;
  line-height: 1.4;
}

/* Секция тарифов */
.pricing {
  padding: 60px 20px;
  text-align: center;
}

.pricing h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.pricing p {
  margin-bottom: 30px;
}

.tariffs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.tariff {
  background-color: #fff;
  border-radius: 8px;
  width: 300px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tariff img {
  width: 80px;
  margin-bottom: 10px;
}

.tariff h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.tariff p {
  margin-bottom: 10px;
  line-height: 1.4;
}

.price {
  font-weight: bold;
  margin-bottom: 20px;
}

.tariff button {
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
}

.tariff button:hover {
  background-color: #0056b3;
}

/* Футер */
.footer {
  background-color: #333;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer p {
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.social-btn:hover {
  background-color: #fff;
  color: #333;
}

/* Кнопка FAQ (круглая с ? вместо текста) */
.faq-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 50px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 200;
  transition: background-color 0.3s;
}

.faq-button:hover {
  background-color: #0056b3;
}

/* Стили для модального окна (Вход и Контакт) */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content form {
  display: flex;
  flex-direction: column;
}

.modal-content label {
  margin: 10px 0 5px;
}

.modal-content input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button[type="submit"] {
  margin-top: 20px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.modal-content button[type="submit"]:hover {
  background-color: #0056b3;
}

.close {
  color: #aaa;
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
}

/* Стили для блока с вариантами связи в модальном окне */
.contact-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .tariffs {
    flex-direction: column;
    align-items: center;
  }
  .feature-item {
    margin: 0 auto;
  }
}

/* Переопределяем стиль кнопок внутри модального окна */
.modal-content .social-btn {
  color: #007BFF;          /* Текст (и рамка) станут синими */
  border: 1px solid #007BFF;
  background-color: #fff;  /* Белый фон, если хотите */
}

.modal-content .social-btn:hover {
  background-color: #007BFF; /* При наведении фон синий */
  color: #fff;               /* Текст белый */
}

