/*
* Название проекта: Cours En Ligne
* Автор: (ваше имя)
* Описание: Основные стили для сайта Cours En Ligne с тёмно-красной цветовой гаммой и обновленными шрифтами.
*/

/*--------------------------------------------------------------
# Общие стили и переменные
--------------------------------------------------------------*/
:root {
  --main-color: #A31F2A; /* Тёмно-красный */
  --secondary-color: #550D11; /* Ещё более тёмный оттенок */
  --accent-color: #E64C58; /* Светлый красный */
  --text-color: #F8F9FA; /* Светлый текст */
  --bg-color-light: #1A0A0A; /* Очень тёмный фон */
  --bg-color-dark: #120707; /* Ещё темнее */

  --font-primary: 'Open Sans', sans-serif;
  --font-secondary: 'Playfair Display', serif;

  --gradient-bg: linear-gradient(45deg, var(--secondary-color), var(--main-color));
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background: var(--bg-color-dark);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--main-color);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
}

.section {
  padding: 60px 0;
  overflow: hidden;
  background-color: var(--bg-color-dark);
}

.section.light-background {
  background-color: var(--bg-color-light);
}

.section-title {
  padding-bottom: 40px;
  text-align: center;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  color: var(--text-color);
  margin-bottom: 20px;
}

.section-title p {
  margin: 0;
  color: #DDD;
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--bg-color-dark);
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-top-color: var(--bg-color-dark);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Хедер
--------------------------------------------------------------*/
.header {
  background-color: rgba(18, 7, 7, 0.95);
  transition: all 0.5s;
  z-index: 997;
  height: 80px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.header.sticky-top {
  padding: 0;
}

.header .sitename {
  font-family: var(--font-secondary);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
}

.header .btn-primary-action {
  background: var(--accent-color);
  color: #fff;
  border-radius: 4px;
  padding: 8px 25px;
  transition: 0.3s;
  font-size: 14px;
  font-weight: 600;
}

.header .btn-primary-action:hover {
  background: var(--main-color);
}

/*--------------------------------------------------------------
# Навигация
--------------------------------------------------------------*/
.navmenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.navmenu li {
  position: relative;
}

.navmenu a {
  display: block;
  padding: 10px 15px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  transition: 0.3s;
}

.navmenu a:hover,
.navmenu .active {
  color: var(--accent-color);
}

.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 999;
}

@media (max-width: 1200px) {
  .navmenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-color-light);
    transition: 0.4s;
    z-index: 998;
    padding-top: 80px;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.5);
  }
  .navmenu ul {
    flex-direction: column;
  }
  .navmenu a {
    padding: 15px 20px;
    font-size: 16px;
  }
  .mobile-nav-toggle {
    display: block !important;
  }
  .navmenu.navmenu-show {
    right: 0;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  background: var(--gradient-bg);
  color: var(--text-color);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.hero .btn-main-cta {
  background: var(--accent-color);
  color: #fff;
  border-radius: 50px;
  padding: 12px 40px;
  font-weight: 600;
  transition: 0.3s;
}

.hero .btn-main-cta:hover {
  background: var(--main-color);
}

.hero .card-icon-box {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.hero .card-icon-box:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
}

.hero .card-icon-box .icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 20px;
  background: var(--main-color);
  color: var(--text-color);
}

.hero .card-icon-box .icon i {
  font-size: 28px;
}

.hero .card-icon-box .title {
  font-family: var(--font-secondary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero .card-icon-box .description {
  font-family: var(--font-primary);
  font-size: 15px;
  color: #DDD;
}

/*--------------------------------------------------------------
# About Alt Section
--------------------------------------------------------------*/
.about-alt {
  background: var(--bg-color-light);
}

.about-alt .content {
  padding: 20px;
}

.about-alt h3 {
  font-family: var(--font-secondary);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
}

.about-alt p {
  font-family: var(--font-primary);
  color: #DDD;
  line-height: 1.6;
}

.about-alt ul {
  list-style: none;
  padding: 0;
}

.about-alt ul li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
}

.about-alt ul li i {
  font-size: 20px;
  padding-right: 10px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  background: var(--bg-color-dark);
}

.testimonials .testimonial-item {
  background: var(--bg-color-light);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
}

.testimonials .testimonial-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

.testimonials .testimonial-item p {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 16px;
  color: #DDD;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--main-color);
  font-size: 26px;
}

.testimonials .testimonial-item h3 {
  font-family: var(--font-secondary);
  color: var(--text-color);
  font-size: 18px;
  margin-top: 15px;
  font-weight: 700;
}

.testimonials .testimonial-item h4 {
  font-family: var(--font-primary);
  color: #888;
  font-size: 14px;
  margin: 0;
}

/*--------------------------------------------------------------
# Benefits Section
--------------------------------------------------------------*/
.services {
  background: var(--bg-color-light);
}

.services .service-item {
  background: var(--bg-color-dark);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  transition: all 0.4s ease-in-out;
}

.services .service-item:hover {
  background: var(--secondary-color);
  transform: translateY(-10px);
}

.services .service-item .icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.services .service-item .icon svg path {
  fill: var(--main-color);
}

.services .service-item .icon i {
  font-size: 32px;
  color: var(--accent-color);
  position: relative;
  z-index: 2;
}

.services .service-item h3 {
  font-family: var(--font-secondary);
  font-size: 20px;
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.services .service-item p {
  font-family: var(--font-primary);
  color: #DDD;
  font-size: 15px;
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing {
  background: var(--bg-color-dark);
}

.pricing .pricing-item {
  background: var(--bg-color-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s ease-in-out;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.pricing .pricing-item:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
}

.pricing .pricing-item.featured {
  border-color: var(--main-color);
  position: relative;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
}

.pricing .pricing-item.featured .popular {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--main-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.pricing .pricing-item h3 {
  font-family: var(--font-secondary);
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.pricing .pricing-item .description {
  font-family: var(--font-primary);
  color: #DDD;
  font-style: italic;
  font-size: 14px;
}

.pricing .pricing-item h4 {
  font-family: var(--font-secondary);
  font-size: 36px;
  color: var(--accent-color);
  font-weight: 700;
  margin: 20px 0;
}

.pricing .pricing-item ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 30px;
}

.pricing .pricing-item ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.pricing .pricing-item ul i {
  color: var(--accent-color);
  font-size: 18px;
  margin-right: 10px;
}

.pricing .pricing-item ul .na i {
  color: #666;
}

.pricing .pricing-item .cta-btn {
  background: var(--accent-color);
  color: #fff;
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 600;
  transition: 0.3s;
}

.pricing .pricing-item .cta-btn:hover {
  background: var(--main-color);
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq {
  background: var(--bg-color-light);
}

.faq .faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq .faq-item {
  background: var(--bg-color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.faq .faq-item h3 {
  font-family: var(--font-secondary);
  font-size: 18px;
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq .faq-item .faq-toggle {
  transition: transform 0.3s ease-in-out;
  font-size: 24px;
  color: var(--accent-color);
}

.faq .faq-item.faq-active .faq-toggle {
  transform: rotate(90deg);
}

.faq .faq-content {
  display: none;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 15px;
}

.faq .faq-item.faq-active .faq-content {
  display: block;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  background: var(--bg-color-dark);
}

.contact .info-item {
  background: var(--bg-color-light);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact .info-item i {
  background: var(--main-color);
  color: #fff;
  font-size: 24px;
  padding: 15px;
  border-radius: 50%;
  margin-right: 20px;
}

.contact .info-item h3 {
  font-family: var(--font-secondary);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
}

.contact .info-item p {
  font-family: var(--font-primary);
  font-size: 16px;
  color: #AAA;
}

.contact .php-email-form {
  background: var(--bg-color-light);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact .php-email-form .form-control {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-primary);
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: none;
}

.contact .php-email-form textarea {
  min-height: 150px;
}

.contact .php-email-form button[type="submit"] {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.3s;
  font-family: var(--font-primary);
  font-weight: 600;
}

.contact .php-email-form button[type="submit"]:hover {
  background: var(--main-color);
}

.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message {
  display: none;
  text-align: center;
  padding: 15px;
  margin-bottom: 15px;
  font-family: var(--font-primary);
  font-size: 16px;
}

.contact .php-email-form .loading {
  background: #333;
  color: #fff;
}

.contact .php-email-form .error-message {
  background: #ff5e5e;
  color: #fff;
}

.contact .php-email-form .sent-message {
  background: #28a745;
  color: #fff;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: var(--bg-color-light);
  color: #DDD;
  padding: 40px 0;
}

.footer .sitename {
  font-family: var(--font-secondary);
  color: var(--text-color);
  font-size: 24px;
  font-weight: 600;
}

.footer .footer-about p {
  font-family: var(--font-primary);
  color: #AAA;
  font-size: 15px;
  margin-top: 15px;
}

.footer .footer-links h4,
.footer .footer-contact h4 {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
}

.footer .footer-links ul,
.footer .footer-contact p {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links a {
  font-family: var(--font-primary);
  color: #DDD;
  font-size: 15px;
  display: inline-block;
  margin-bottom: 5px;
}

.footer .footer-links a:hover {
  color: var(--accent-color);
}

.footer .footer-contact span {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Cookie Popup
--------------------------------------------------------------*/
#cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(18, 7, 7, 0.95);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none;
  animation: slideInUp 0.5s ease-out;
}

#cookie-popup.show {
  display: block;
}

.popup-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.popup-message p {
  margin: 0;
  font-size: 14px;
  color: #DDD;
}

.popup-message a {
  color: var(--accent-color);
  text-decoration: underline;
}

#cookie-popup button {
  background: var(--main-color);
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#cookie-popup button:hover {
  background: var(--secondary-color);
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--main-color);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: var(--accent-color);
  color: #fff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}