/* ========== Modern UI pack (keep structure & content) ========== */

/* Fonts (loaded in index.html) */
:root{
  --bg: #0b1220;
  --bg-2:#0f172a;
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.06);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --surface-text: #0f172a;

  --brand: #e33007;          /* твой бренд-цвет (кнопка) */
  --brand-hover: #cc2b06;
  --brand-pressed: #b82706;

  --accent: rgb(112,178,143); /* твой зелёный акцент (как в course-card) */

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --shadow-sm: 0 6px 18px rgba(2,6,23,.18);
  --shadow-md: 0 14px 42px rgba(2,6,23,.22);
  --shadow-lg: 0 22px 70px rgba(2,6,23,.30);

  --ring: 0 0 0 4px rgba(227,48,7,.25);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--surface-text);
  background: #0b1020;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a{
  text-decoration: none !important;
}
a, a:hover, a:active, a:visited{
  color: inherit;
}

/* Блок с иконкой и текстом */
.feature-icon{
  color: #22c55e; /* зелёный (Tailwind green-500) */
}

/* Заголовок и описание — белые */
.feature-icon + div h3,
.feature-icon + div p{
  color: #ffffff;
}

/* Чуть смягчим текст описания */
.feature-icon + div p{
  opacity: 0.9;
}

.price-title{
  color: #ffffff;
}

.price-text{
  color: #ffffff;
}



/* Bootstrap helpers (keep semantics, modern look) */
.lead{
  font-weight: 500;
  letter-spacing: .1px;
}

h1,h2,h3,h4,h5{
  letter-spacing: -0.02em;
}

section{
  position: relative;
}

/* ========== HERO ========== */
.hero-section{
  background: url('assets/img/cover.jpg') center center / cover no-repeat;
  color: var(--text);
  overflow: hidden;
}

.hero-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(227,48,7,.22), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(112,178,143,.20), transparent 55%),
    linear-gradient(to bottom, rgba(2,6,23,.65), rgba(2,6,23,.72));
}

.hero-content{
  position: relative;
  z-index: 1;
}

.hero-section h1{
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-section .lead{
  color: rgba(255,255,255,.88);
}

/* Hero cards (glass) */
.hero-section .card.bg-transparent{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.hero-section .card-body{
  padding: 22px;
}

/* ========== BUTTON ========== */
.btn-primary-custom{
  background: var(--brand);
  border: 1px solid rgba(0,0,0,.12);
  color: #fff !important;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 14px 28px rgba(227,48,7,.22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary-custom:hover{
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(227,48,7,.26);
}

.btn-primary-custom:active{
  background: var(--brand-pressed);
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(227,48,7,.20);
}

.btn-primary-custom:focus{
  outline: none;
  box-shadow: var(--ring), 0 16px 36px rgba(227,48,7,.22);
}

/* ========== CHECK LIST ========== */
.check-list{
  margin: 0;
  padding-left: 0;
}
.check-list2{
  margin: 0;
  padding-left: 0;
}

.check-list li{
  background-image: url('assets/img/icons8-checkmark-96.png');
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: 0 2px;
  padding-left: 34px;
  margin-bottom: 10px;
  list-style: none;
  color: rgba(255,255,255,.90);
  line-height: 1.35;
}

.check-list2 li{
  background-image: url('assets/img/icons8-checkmark-96.png');
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: 0 2px;
  padding-left: 34px;
  margin-bottom: 10px;
  list-style: none;
  color: black;
  line-height: 1.35;
}

/* ========== FEATURES (icons row) ========== */
.feature-icon{
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: .92;
}

.small{
  font-size: .86rem;
  line-height: 1.35;
  color: rgba(255,255,255,.76);
}

/* custom 20% grid (as in your inline style) */
.col-md-2-4{
  flex: 0 0 auto;
  width: 20%;
}
@media (max-width: 767.98px){
  .col-md-2-4{ width: 50%; }
}

/* ========== LIGHT SECTIONS ========== */
.bg-light{
  background: var(--surface-2) !important;
}

.bg-light h2, .bg-light h3{
  color: var(--surface-text);
}

.bg-light .text-muted{
  color: rgba(15,23,42,.62) !important;
}

/* Course images */
.course-plan-img{
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-sm);
}

/* Course “note” cards */
.course-card{
  background: rgba(112,178,143,.12);
  border: 1px solid rgba(112,178,143,.35);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(2,6,23,.12);
}

.highlight-box{
  border: 2px dashed rgba(112,178,143,.75);
  border-radius: var(--radius-xl);
  padding: 16px;
  background: rgba(112,178,143,.08);
  box-shadow: 0 10px 26px rgba(2,6,23,.10);
}


.highlight-box2{
  border: 2px dashed rgba(112,178,143,.75);
  border-radius: var(--radius-xl);
  padding: 16px;
  background: rgba(112,178,143,.08);
  box-shadow: 0 10px 26px rgba(2,6,23,.10);
  margin-bottom: 2.5rem !important;
}

/* ========== PRICING TIMER ========== */
.countdown-wrap{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.countdown-digit{
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.countdown-digit span{
  color: #fff;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .5px;
}

.countdown-label{
  margin-top: 10px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(15,23,42,.62);
}

/* ring svg */
.countdown-digit svg{
  position:absolute;
  inset: 0;
  width:100%;
  height:100%;
  transform: rotate(90deg) scaleX(-1);
  z-index: 0;
  opacity: .95;
}

.countdown-digit svg circle{
  stroke-linecap: round;
  stroke-dasharray: 157.08;
  stroke-width: 8;
  fill: none;
  transition: stroke-dashoffset 1s linear, stroke .4s ease;
}

/* ========== TESTIMONIALS ========== */
.testimonials img{
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px !important;
}

.testimonials img:hover{
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 34px rgba(2,6,23,.16);
}

.carousel-control-prev, .carousel-control-next{
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(2,6,23,.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.carousel-control-prev{ left: 12px; }
.carousel-control-next{ right: 12px; }

/* ========== AUTHOR ========== */
.author-img{
  border-radius: var(--radius-xl) !important;
  width: 100%;
  max-width: 313px;
  box-shadow: var(--shadow-sm);
}

/* ========== FOOTER ========== */
.footer-section{
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(180deg, #05325b 0%, #002f57 100%);
  color: rgba(255,255,255,.92);
}

.footer-logo{
  height: 96px;
  background-position: left;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 14px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.28));
}

/* ========== LIGHTBOX (keep your logic) ========== */
.lightbox{
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(2,6,23,.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.lightbox.active{
  display: flex;
}

.lightbox-content{
  max-width: 92%;
  max-height: 92%;
  position: relative;
}

.lightbox-content img{
  max-width: 100%;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.close-btn{
  position: absolute;
  top: 18px;
  right: 22px;
  color: white;
  font-size: 40px;
  font-weight: 900;
  cursor: pointer;
  z-index: 1001;
  opacity: .9;
  transition: opacity .15s ease;
}

.close-btn:hover{ opacity: 1; }

.prev-btn, .next-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 42px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 18px;
  user-select: none;
  z-index: 1001;
  opacity: .9;
  transition: opacity .15s ease;
}

.prev-btn:hover, .next-btn:hover{ opacity: 1; }
.prev-btn{ left: 6px; }
.next-btn{ right: 6px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px){
  .hero-section h1{
    font-size: clamp(2.1rem, 6.2vw, 3.2rem);
  }
}

@media (max-width: 767.98px){
  .hero-section{
    padding: 2.1rem 0;
  }

  .hero-section .card-body{
    padding: 18px;
  }

  .lead{
    font-size: .98rem;
    font-weight: 500;
  }

  .check-list li{
    background-position: 0 3px;
    background-size: 20px 20px;
    padding-left: 32px;
  }

  .countdown-digit{
    width: 82px;
    height: 82px;
  }

  .countdown-digit span{
    font-size: 24px;
  }

  .footer-section{
    text-align: center;
  }

  .footer-section .text-md-end{
    text-align: center !important;
  }

  .footer-logo{
    margin-left: auto !important;
    margin-right: auto !important;
    background-position: center;
  }
}

/* Optional: reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Полное выравнивание для мобильных устройств */
@media (max-width: 767.98px) {
  
  /* 1. Центрируем блок "Почему стоит изучать курс?" */
  .why-row .col-md-7 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
	margin-top: 25px;
  }

  .why-row h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Список: центрируем сам блок, но текст внутри оставляем ровным */
  .why-row .check-list {
    display: inline-block !important;
    text-align: left !important;
    padding-left: 0 !important;
    margin: 0 auto !important;
    width: auto !important;
  }

  .why-row .check-list li {
    background-position: 0 4px !important;
    margin-bottom: 12px !important;
  }

  /* 2. Центрируем блок характеристик (4,5 часа, 15-20 мин и т.д.) */
  .col-md-2-4.col-6 {
    display: flex !important;
    justify-content: center !important;
  }

  .col-md-2-4.col-6 .d-flex {
    flex-direction: column !important; /* Иконка над текстом */
    align-items: center !important;    /* Центровка элементов */
    text-align: center !important;     /* Центровка текста */
    width: 100% !important;
    margin-bottom: 25px !important;
  }

  .feature-icon {
    margin-right: 0 !important;        /* Убираем отступ сбоку */
    margin-bottom: 10px !important;    /* Добавляем отступ вниз к тексту */
  }

  .feature-icon + div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}
