/*
Theme Name: join-webinar
Theme URI: https://join-site.ru/
Author: join
Description: Тема лендинга вебинара «Миграция в Битрикс24»
Version: 0.1.0
Text Domain: join-webinar
*/

/* Базовая типографика — Gilroy через CDN */
@import url('https://cdn.jsdelivr.net/gh/mfd/f3d96ec7f0e8f034cc22ea73b3797b59@master/Gilroy.css');

body {
  margin: 0;
  font-family: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #0e1116;
  background: #fafbfc;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }

/* Обычные страницы (политики) */
.page-content {
  padding: 80px 0;
  background: #fff;
  min-height: 60vh;
}
.page-article {
  max-width: 900px;
  margin: 0 auto;
}
.page-title {
  font-size: 42px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 32px;
  line-height: 1.2;
}
.page-text {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}
.page-text h1, .page-text h2, .page-text h3, .page-text h4 {
  color: #1f2937;
  margin: 32px 0 16px;
  font-weight: 700;
}
.page-text h1 { font-size: 36px; }
.page-text h2 { font-size: 28px; }
.page-text h3 { font-size: 22px; }
.page-text h4 { font-size: 18px; }
.page-text p {
  margin: 0 0 20px;
}
.page-text ul, .page-text ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.page-text li {
  margin-bottom: 8px;
}
.page-text a {
  color: #5865f2;
  text-decoration: underline;
}
.page-text a:hover {
  color: #4752c4;
}
.page-text strong {
  font-weight: 700;
  color: #1f2937;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e7ecf3;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}
.site-header .logo-img img {
  display: block;
  max-height: 40px;
  width: auto;
}
.site-header .nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header .nav a {
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
  cursor: pointer;
}
.site-header .nav a:hover { 
  color: #5865f2; 
  cursor: pointer;
}
.site-header .nav .nav-cta {
  background: linear-gradient(135deg, #5865f2 0%, #a855f7 100%);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.site-header .nav .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88,101,242,0.4);
  color: #fff !important;
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #1f2937;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.site-header .btn-header {
  background: #d4fc79;
  color: #000;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid #e7ecf3;
  padding: 32px 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #5865f2;
}

/* Футер на десктопе */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-links {
    gap: 32px;
  }
}

/* Стили для CF7 формы — как в референсе (белая карточка на розовом фоне) */
.wpcf7 form {
  background: #fff;
  border-radius: 40px;
  padding: 64px 56px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12);
  max-width: 640px;
  margin: 0 auto;
}
.wpcf7 form p {
  margin: 0 0 28px;
}
.wpcf7 form label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 24px;
}
.wpcf7 form label span {
  display: block;
  margin-bottom: 12px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font: inherit;
  font-size: 17px;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #5865f2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(88,101,242,0.1);
}
.wpcf7 input[type="submit"] {
  width: 100%;
  display: block;
  background: #5865f2;
  color: #fff;
  padding: 22px 48px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 12px 32px rgba(88,101,242,0.4);
  margin-top: 12px;
}
.wpcf7 input[type="submit"]:hover {
  background: #a855f7;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(88,101,242,0.6);
}
.wpcf7 form .wpcf7-response-output {
  margin-top: 16px;
  border-radius: 12px;
  padding: 14px;
}
.wpcf7 form .wpcf7-validation-errors {
  color: #dc2626;
  background: #fee;
}
.wpcf7 form .wpcf7-mail-sent-ok {
  color: #059669;
  background: #d1fae5;
}

/* ——— Современная верстка под референс ——— */

/* Хиро — яркий градиент с параллаксом как в референсе */
.hero {
  position: relative;
  background: linear-gradient(135deg, #5865f2 0%, #a855f7 100%);
  color: #fff;
  text-align: center;
  padding: 140px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle 500px at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(circle 400px at 80% 70%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
  animation: float-hero 10s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
}
@keyframes float-hero {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}
.hero .container { position: relative; z-index: 1; max-width: 900px; }
.hero h1 {
  margin: 0 0 40px;
  font-size: 80px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -3px;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.hero p { 
  color: rgba(255,255,255,0.95); 
  margin: 0 0 40px; 
  font-size: 22px; 
  font-weight: 500;
}
.hero .btn {
  background: #84e896;
  color: #000;
  font-weight: 700;
  padding: 20px 56px;
  font-size: 16px;
  border-radius: 16px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 12px 32px rgba(132,232,150,0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.hero .btn:hover {
  background: #6ee67f;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(132,232,150,0.6);
}
.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
  font-style: italic;
}
.hero-card {
  background: #fff;
  border-radius: 32px;
  padding: 48px 56px;
  max-width: 900px;
  margin: 40px auto 0;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  text-align: left;
  position: relative;
  z-index: 2;
}
.hero-card-date {
  color: #5865f2;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.hero-card h3 {
  margin: 0 0 16px;
  font-size: 32px;
  color: #0e1116;
  font-weight: 700;
}
.hero-card p {
  margin: 0 0 32px;
  font-size: 18px;
  color: #6b7280;
  line-height: 1.6;
}
/* Декоративные иконки удалены — теперь фокус на sticky-карточке */

/* Заголовки секций с желтым подчёркиванием по длине заголовка */
.section h2 {
  margin: 0 0 48px;
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, #84e896 0, #84e896 12px, transparent 12px, transparent 20px);
}
.section > .container {
  text-align: center;
}

/* Спикер — крупная карточка с градиентом как в референсе */
.speaker { background: #fff; padding: 100px 0; }
.speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #5865f2 0%, #a855f7 100%);
  border-radius: 40px;
  padding: 64px 56px;
  color: #fff;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(88, 101, 242, 0.4);
  position: relative;
  overflow: hidden;
}
.speaker-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
  border-radius: 50%;
}
.speaker-photo {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.speaker-photo img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.speaker-info {
  position: relative;
  z-index: 1;
}
.speaker-info h3 { 
  margin: 0 0 12px; 
  font-size: 32px; 
  font-weight: 700;
}
.speaker-info p { 
  margin: 0; 
  color: rgba(255,255,255,0.95); 
  font-size: 17px;
  line-height: 1.5;
}

/* Грид карточек (вы узнаете) */
.learn { background: #fff; padding: 80px 0; }
.bonuses { background: #f9fafb; padding: 80px 0; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.learn-card {
  background: #fff;
  border: 2px solid #f0f1f3;
  border-radius: 32px;
  padding: 48px 40px;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.card {
  background: #fff;
  border: 2px solid #f0f1f3;
  border-radius: 32px;
  padding: 48px 40px;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}
.learn-card:hover, .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border-color: #84e896;
  cursor: pointer;
}
.card-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: linear-gradient(135deg, #84e896 0%, #6ee67f 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(132,232,150,0.35);
}
.card-icon img,
.card-icon svg,
.card-icon i { 
  display: block; 
  font-size: 36px;
  color: #fff;
  line-height: 1;
}
.learn-card p { 
  margin: 0;
  padding-top: 4px;
  font-size: 18px;
  line-height: 1.6;
  color: #0e1116;
  font-weight: 600;
  flex: 1;
}
.card p { 
  margin: 0; 
  font-size: 18px;
  line-height: 1.6;
  color: #0e1116;
  font-weight: 600;
}

/* Бонусы — простой список с галочками */
.bonuses-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
}
.bonuses-list li {
  padding: 20px 20px 20px 56px;
  font-size: 18px;
  line-height: 1.6;
  color: #1f2937;
  position: relative;
  border-bottom: 1px solid #e5e7eb;
}
.bonuses-list li:last-child {
  border-bottom: none;
}
.bonuses-list li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
  .mobile-menu-toggle { display: flex; }
  
  .site-header .nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    z-index: 99;
  }
  .site-header .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-header .nav a {
    padding: 12px 0;
    font-size: 16px;
  }
  
  /* Уменьшенные отступы между секциями */
  .section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; }
  .agenda { padding: 60px 0; }
  .lead { padding: 60px 0; }
  
  .hero h1 { font-size: 42px; letter-spacing: -1px; margin-bottom: 24px; }
  .hero-badge { font-size: 14px; padding: 8px 20px; }
  .hero-card { padding: 32px 28px; max-width: 100%; }
  .hero-card h3 { font-size: 24px; }
  .hero-card p { font-size: 16px; }
  .hero-image { width: 100%; opacity: 0.08; }
  
  /* Кнопка регистрации — полная ширина на мобилке */
  .hero-card .btn {
    width: 100% !important;
    text-align: center;
    display: block !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
  }
  
  .section h2 { font-size: 36px; }
  
  .speaker-card { padding: 40px 32px; }
  .speaker-photo img { width: 140px; height: 140px; }
  .speaker-info h3 { font-size: 26px; }
  
  .grid { gap: 20px; }
  .card { padding: 32px 24px; text-align: center; }
  .card-icon { 
    width: 64px; 
    height: 64px;
    margin: 0 auto 20px;
  }
  .card-icon i { font-size: 30px; }
  
  .agenda-intro {
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
  }
  .agenda-intro-icon {
    margin: 0;
  }
  .agenda-intro-text h3 {
    font-size: 22px;
  }
  .agenda-intro-text p {
    font-size: 14px;
  }
  .agenda-intro-btn {
    font-size: 13px;
    padding: 10px 20px;
  }
  
  .agenda-list li { padding: 24px 28px; font-size: 16px; }
  .agenda-list strong { font-size: 16px; }
  
  .wpcf7 form { padding: 48px 32px; }
}

@media (min-width: 768px) { 
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Cookie-баннер */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e7ecf3;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: 24px 0;
  z-index: 1000;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cookie-banner-text {
  flex: 1;
}
.cookie-banner-text p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}
.cookie-banner-text p:last-child {
  margin-bottom: 0;
}
.cookie-banner-text strong {
  font-size: 16px;
  color: #1f2937;
}
.cookie-banner-text a {
  color: #5865f2;
  text-decoration: underline;
}
.cookie-banner-text a:hover {
  color: #4752c4;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.cookie-btn-accept {
  background: #5865f2;
  color: #fff;
}
.cookie-btn-accept:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88,101,242,0.3);
}
.cookie-btn-decline {
  background: #f3f4f6;
  color: #6b7280;
}
.cookie-btn-decline:hover {
  background: #e5e7eb;
}

/* Cookie-баннер на мобилке */
@media (max-width: 767px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .cookie-banner-actions {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

/* Программа (agenda) */
.agenda { background: #fafbfc; padding: 100px 0; }
.agenda-intro {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, #5865f2 0%, #a855f7 100%);
  border-radius: 32px;
  padding: 40px 48px;
  margin: 0 auto 64px;
  max-width: 900px;
  box-shadow: 0 16px 48px rgba(88,101,242,0.25);
}
.agenda-intro-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agenda-intro-icon i {
  font-size: 40px;
  color: #fff;
}
.agenda-intro-text {
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.agenda-intro-text h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  text-align: left;
}
.agenda-intro-text p {
  margin: 0 0 20px;
  font-size: 16px;
  opacity: 0.9;
  text-align: left;
}
.agenda-intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  border: 2px solid rgba(255,255,255,0.3);
}
.agenda-intro-btn:hover {
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.agenda-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.agenda-list li {
  background: #fff;
  border-left: 4px solid #5865f2;
  border-radius: 16px;
  padding: 28px 36px;
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.agenda-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.agenda-list strong { 
  color: #5865f2; 
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
  margin-right: 12px;
}

/* Лид-форма секция — сдержанный фон */
.lead { 
  background: #f9fafb;
  padding: 100px 0; 
}
.lead .container { max-width: 680px; }
.lead h2 { 
  margin-bottom: 40px; 
  color: #1f2937;
}
.lead h2::after { background: repeating-linear-gradient(90deg, #84e896 0, #84e896 12px, transparent 12px, transparent 20px); }


