/* Современный дизайн лендинга ИЛМА */
:root {
  /* Основные цвета */
  --primary: #C42278;
  --secondary: #F773C1;
  --accent: #178ECF;
  --highlight: #FECA43;
  
  /* Нейтральные цвета */
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e8eaed;
  --gray-300: #dadce0;
  --gray-400: #9aa0a6;
  --gray-500: #5f6368;
  --gray-600: #3c4043;
  --gray-700: #202124;
  
  /* Текст */
  --text-primary: var(--gray-700);
  --text-secondary: var(--gray-500);
  --text-light: var(--gray-400);
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 100%);
  
  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Stem', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

mark{
  background-color: rgb(255, 226, 5);
  padding: 0 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

/* Compact header (hidden by default) */
.header--compact {
  display: none;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Show compact header on mobile when scrolled */
@media (max-width: 768px) {
  .header--compact.show {
    display: block;
  }
  
  .header--compact.show ~ * #main-header {
    display: none;
  }
  
  /* Hide main header when compact is shown */
  body.compact-header #main-header {
    display: none;
  }
  
  /* Дополнительные стили для компактной шапки на мобильных */
  .header--compact .header__contact {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  
  .header--compact .phone--compact {
    font-size: 13px;
    white-space: nowrap;
    flex: 1;
    text-align: left;
  }
  
  .header--compact .btn--compact {
    padding: 5px 10px;
    font-size: 11px;
    flex-shrink: 0;
  }
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo img {
  height: 32px;
  width: auto;
}

.brand__name {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease;
}

.phone:hover {
  color: var(--primary);
}

/* Compact header styles */
.header--compact .header__contact {
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.phone--compact {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  text-align: left;
}

.btn--compact {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  min-width: auto;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  font-size: 16px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

/* Секции */
.section {
  padding: 50px 0;
}

.section--light {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

/* Заголовки */
.title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title--lg {
  font-size: 36px;
}

.text {
  font-size: 20px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text--lg {
  font-size: 22px;
}

.text--sm {
  font-size: 16px;
}

.text-center {
  text-align: center;
}

/* Карточки */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin: 60px 0;
}

.info-card {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.info-card__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.info-card__text {
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Форма */
.form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.form__title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--gray-50);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196, 34, 120, 0.1);
}

.form__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 32px;
}

.form-result {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.form-result--success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.hidden {
  display: none;
}

/* Загрузка и ошибки */
.loading, .error {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.loading__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error {
  background: var(--gray-50);
}

.error h1 {
  color: var(--primary);
  margin-bottom: 20px;
}

/* Приветствие */
.welcome {
  text-align: center;
  padding-top: 50px;
  background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
  color: var(--text-primary);
  position: relative;
}

.welcome__content {
  position: relative;
  z-index: 1;
}

.welcome__greeting {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 24px;
  background: rgb(255, 226, 5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



.offer__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.offer__subtitle {
  font-size: 18px;
  color: white;
  font-weight: 400;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.advantage {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.advantage:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.advantage__icon {
  font-size: 32px;
  flex-shrink: 0;
}

.advantage__text {
  text-align: left;
}

.advantage__text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.advantage__text span {
  font-size: 14px;
  color: var(--text-secondary);
}

.offer__period {
  color: black;
  padding: 16px 24px;
  display: inline-block;
  margin-bottom: 32px;
}

.welcome__cta {
  margin-top: 30px;
}

.btn--large {
  padding: 18px 36px;
  font-size: 18px;
  border-radius: 16px;
}

.cta__note {
  margin-top: 16px;
  font-size: 16px;
  opacity: 0.8;
}

/* Акция */
.offer {
  background: var(--gradient-accent);
  color: white;
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.offer__title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
}

.offer__subtitle {
  font-size: 24px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.offer__deadline {
  background: rgba(255, 255, 255, 0.2);
  padding: 20px 32px;
  border-radius: 16px;
  display: inline-block;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Калькулятор */
.calculator {
  padding: 25px 0;
  background: var(--gray-50);
}

.calculator__title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 36px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculator__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.calc-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  color: var(--text-primary);
}

.calc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.calc-card--highlight {
  background: var(--gray-200);
  color: var(--text-primary);
  transform: scale(1.05);
}

.calc-card--highlight:hover {
  transform: scale(1.05) translateY(-8px);
}

.calc-card__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.calc-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.calc-card__amount {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.calc-card__label{
  font-weight: bold;
}

.calc-card--highlight .calc-card__amount {
  color: white;
}

.calc-card__text {
  font-size: 14px;
  opacity: 0.8;
}

.calculator__cta {
  text-align: center;
}

/* Простое предложение */
.simple-offer {
  text-align: center;
}

.offer-card {
  background: var(--white);
  padding: 48px;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
}

.offer-card__icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.offer-card__title {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.offer-card__amount {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 16px;
  background: var(--text-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.offer-card__text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Форма заявки */
.application {
  padding: 50px 0;
  background: var(--white);
}

.application__title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.application__subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* Розыгрыш */
.raffle {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 50px 0;
  position: relative;
}

.raffle__title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
}

.raffle__content {
  max-width: 800px;
  margin: 0 auto;
}

.raffle__text {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 24px;
  line-height: 1.6;
}

.raffle__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.raffle__prize, .raffle__schedule {
  background: rgba(255, 255, 255, 0.15);
  padding: 24px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.raffle__prize strong, .raffle__schedule strong {
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.raffle__prize span, .raffle__schedule span {
  font-size: 14px;
  opacity: 0.8;
}

/* Футер */
.footer {
  background: var(--gray-700);
  color: var(--white);
  padding: 30px 0;
}

.footer__content {
  text-align: center;
}

.footer__legal p {
  margin-bottom: 12px;
  opacity: 0.9;
  line-height: 1.5;
}

.footer__legal a {
  color: var(--primary);
  text-decoration: none;
}

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

.footer__social {
  margin: 20px 0;
  text-align: center;
}

.footer__social p {
  margin-bottom: 12px;
  font-weight: 600;
}

.footer__social .btn {
  margin: 0 8px 8px 0;
  display: inline-block;
}

/* Социальные ссылки после заявки */
.result__social {
  margin-top: 24px;
  text-align: center;
}

.result__social p {
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link img {
  flex-shrink: 0;
  border-radius: 4px;
}


/* Форма */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.text-muted {
  color: var(--text-secondary);
}

/* Дополнительные стили */
.info-card__highlight {
  background: var(--gradient-accent);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  margin-top: 20px;
}

.highlight__value {
  font-size: 28px;
  font-weight: 800;
  color: white;
}

/* Popup стили */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.popup-content {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.popup-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.popup-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.popup-body {
  padding: 24px;
}

.popup-body p {
  margin: 0 0 16px 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.popup-actions .btn {
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
}

.btn--secondary {
  background: var(--gray-100);
  color: var(--text-primary);
  border: 1px solid var(--gray-300);
}

.btn--secondary:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .header__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .header__contact {
    flex-direction: column;
    gap: 16px;
  }
  
  .calculator__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .calc-card--highlight {
    transform: none;
  }
  
  .calc-card--highlight:hover {
    transform: translateY(-8px);
  }
  
  .form__actions {
    flex-direction: column;
    gap: 16px;
  }
  
  .advantages {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .advantage {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .advantage__text {
    text-align: center;
  }
  
  .welcome__greeting {
    font-size: 32px;
  }
  
  .offer__title {
    font-size: 28px;
  }
  
  .offer__subtitle {
    font-size: 16px;
  }
  
  .calculator__title {
    font-size: 28px;
  }
  
  .application__title {
    font-size: 28px;
  }
  
  .raffle__title {
    font-size: 28px;
  }
  
  .raffle__details {
    grid-template-columns: 1fr;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .form {
    padding: 24px;
    margin: 0 16px;
  }
  
  .offer-card {
    padding: 32px 24px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .welcome,
  .calculator,
  .application,
  .raffle {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .welcome__greeting {
    font-size: 24px;
  }
  
  .offer__title {
    font-size: 22px;
  }
  
  .calculator__title,
  .application__title {
    font-size: 22px;
  }
  
  .raffle__title {
    font-size: 20px;
  }
  
  .brand__name {
    font-size: 20px;
  }
  
  .calc-card__amount {
    font-size: 24px;
  }
  
  .offer-card__amount {
    font-size: 32px;
  }
  
  .btn--large {
    padding: 16px 24px;
    font-size: 16px;
  }
}