body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #222;
}

header, section, footer {
  padding: 60px 20px;
  max-width: 960px;
  margin: auto;
}

header {
  background: #f5f7fa;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
}

header p {
  font-size: 1rem;
}

/* CSS Header */
header {
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.header-content {
  display: flex;
  flex-direction: row; /* 👉 картинка справа */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.header-text {
  padding-right: 0;
}

.header-text h1 {
  font-size: 2rem;
}

.header-text p {
  font-size: 1.1rem;
}

.header-image {
  flex: 1 1 400px;
  text-align: center;
}

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

/* CSS для секции "Что такое ChatGPT?" */
.course-intro {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 1.15rem;
  line-height: 1.7;
  text-align: center;
  color: #1e293b;
}

/* CSS для карточек */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.info-card {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 20px;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* CSS для таймлайна */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  margin-left: 20px;
  border-left: 3px solid #3b82f6;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.timeline-dot {
  background-color: #3b82f6;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.timeline-content {
  font-size: 1.1rem;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* CSS для отзывов */
.slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 20px;
}

.review-card {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 5px;
  min-width: 300px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-size: 1rem;
  flex-shrink: 0;
}

.slider-btn {
  background: #3b82f6;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 10px;
  transition: background 0.3s ease;
}

.slider-btn:hover {
  background: #2563eb;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
}

.form-card {
  padding: 25px 20px;
}

.input-wrapper input {
  font-size: 1rem;
    padding: 12px 12px 12px 44px;
}

.cta-btn.big {
  font-size: 1rem;
    padding: 14px;
}

.checkbox-label {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

}

/* CSS для тарифов */
.tariff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.tariff-card {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 24px 20px;
  width: 260px; /* было 300px */
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tariff-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.tariff-card .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3b82f6;
  margin: 10px 0 20px;
}

.tariff-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.tariff-card ul li {
  margin: 8px 0;
}

.tariff-card.premium {
  border: 2px solid #3b82f6;
  background: #eff6ff;
}

.cta-btn.small {
  font-size: 0.95rem;
  padding: 10px 20px;
}

/* CSS для о нас */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1 1 500px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.about-text a:hover {
  text-decoration: underline;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

.about-image img {
  max-width: 240px;
  height: auto;
}

@media (max-width: 768px) {
  .tariff-card {
    width: 100%;
    max-width: 340px;
}
}

@media (max-width: 600px) {
  header > div {
    max-width: 100% !important;
    padding: 0 16px;
  }
}

.form-card {
  background: #f8fafc;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.6;
  width: 20px; /* 👈 фиксированная ширина */
  text-align: center;
  pointer-events: none;
}

.cta-btn.big:hover {
  background: #059669;
  transform: scale(1.03);
}





/* Стили для выбора тарифа */
.tariff-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.tariff-radio {
  flex: 1;
  min-width: 150px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tariff-radio:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tariff-radio input[type="radio"] {
  position: absolute;
  top: 15px;
  right: 15px;
}

.tariff-radio input[type="radio"]:checked + .tariff-name + .tariff-price,
.tariff-radio input[type="radio"]:checked + .tariff-name {
  color: #3b82f6;
}

.tariff-radio input[type="radio"]:checked ~ * {
  font-weight: 600;
}

.tariff-radio input[type="radio"]:checked {
  accent-color: #3b82f6;
}

.tariff-name {
  font-size: 1rem;
  margin-bottom: 6px;
}

.tariff-price {
  font-size: 1rem;
  color: #334155;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .tariff-selection {
    flex-direction: column;
  }
  
  .tariff-radio {
    width: 100%;
  }
}






/* Адаптация под мобильные */
@media (max-width: 600px) {
  .form-card {
    padding: 25px 20px;
}

}


.contacts {
  background: #f8fafc;
  padding: 40px 20px;
  text-align: center;
  font-size: 1.1rem;
  color: #1e293b;
  border-top: 1px solid #e2e8f0;
}

.contacts a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.contacts a:hover {
  text-decoration: underline;
}

.contacts .policy {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #64748b;
}

.checkbox-group {
  margin-bottom: 20px;
  text-align: left;
}

.checkbox-label a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

/* --------- Адаптив --------- */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
}

}


.cta-btn {
  background: #3b82f6;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
}

.block {
  margin-bottom: 20px;
}

.block h2 {
  font-size: 1.5rem;
}

ul {
  padding-left: 16px;
}

.review {
  font-size: 0.95rem;
}

.tariff {
  border: 1px solid #cbd5e1;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

footer {
  background: #f5f7fa;
  text-align: center;
}

.cta-btn {
  padding: 12px 24px;
    font-size: 0.95rem;
}

section, footer, header {
  padding: 40px 16px;
}

.tariff h3 {
  font-size: 1.2rem;
}


@media (max-width: 768px) {
  .header-content {
    flex-direction: column; /* 👉 картинка снизу */
    text-align: center;
}
}



.form-group.inline {
    display: flex;
    flex-direction: row; /* Изменяем с column на row */
    align-items: center; /* Центрируем элементы по вертикали */
    gap: 10px; /* Добавляем отступ между лейблом и полем ввода */
    margin-bottom: 15px;
}

.form-group.inline label {
    margin-bottom: 0; /* Убираем нижний отступ */
    white-space: nowrap;
    width: 100px;
    flex-shrink: 0;
}

.form-group.inline .input-wrapper {
    flex: 1;
    width: 100%; /* Поле ввода будет занимать всю доступную ширину */
}

@media (max-width: 600px) {
    .form-group.inline {
        flex-direction: column; /* На мобильных возвращаем вертикальное расположение */
        align-items: flex-start;
    }
    
    .form-group.inline label {
        margin-bottom: 8px; /* Возвращаем отступ снизу для лейбла */
    }
    
    .input-wrapper input {
        width: 100%;
        max-width: none; /* Убираем ограничение ширины */
    }
}


@media (max-width: 600px) {
  .input-wrapper input {
    width: 100%;
    max-width: 150px; /* 👈 можно настроить под себя */
  }
}