/*
Theme Name: AiVerge
Theme URI: https://aiverge.ru
Author: AiVerge
Description: WordPress тема для AiVerge — AI аватары для бизнеса
Version: 1.0
*/

/* =====================
   CSS VARIABLES
===================== */
:root {
  --bg:          #F0F0F2;
  --bg-hero:     #E8E8EC;
  --bg-card:     #FFFFFF;
  --bg-footer:   #1E1E24;

  --accent:      #474BFC;
  --accent-hover:#3337D4;
  --accent-light:#EEEEFF;

  --text:        #1E1E24;
  --text-muted:  #6B6B80;
  --border:      #DDDDE8;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 100px;

  --font-main:   'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-width:   1140px;
  --nav-height:  70px;
}

/* =====================
   RESET & BASE
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =====================
   TYPOGRAPHY
===================== */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--text-muted); line-height: 1.7; }

/* =====================
   LAYOUT
===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}
/* Прилипающая шапка */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* опционально: лёгкое размытие фона при скролле */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Уже по высоте */
.nav-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}
/* =====================
   NAVIGATION
===================== */
.site-header-wrap {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 0 24px;
}

.site-header {
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-inner {
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  background: var(--accent-light);
  color: var(--accent);
}

/* Dropdown */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-menu li:hover > .sub-menu {
  display: block;
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-menu .sub-menu li a:hover {
  background: var(--bg);
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

/* Mobile burger */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* =====================
   HERO
===================== */
.hero {
  background: var(--bg-hero);
  border-radius: var(--radius-lg);
  margin: 16px 24px;
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 12px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-accent {
  color: var(--accent);
  font-weight: 700;
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

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

.btn-outline:hover {
  background: var(--accent-light);
}

/* =====================
   AVATAR SCROLL STRIP
===================== */
.avatar-strip {
  overflow: hidden;
  padding: 40px 0;
}

.avatar-track {
  display: flex;
  gap: 12px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.avatar-track:hover { animation-play-state: paused; }

.avatar-track img {
  width: 240px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================
   SECTION HEADER
===================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p  { max-width: 560px; margin: 0 auto; }

/* =====================
   CARDS GRID
===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(71,75,252,0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 22px;
}

.card h3 { margin-bottom: 10px; }

.card .btn { margin-top: 24px; }

/* =====================
   FEATURE LIST (checkmarks)
===================== */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-check {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent);
}

.feature-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feature-item p  { font-size: 14px; margin: 0; }

/* =====================
   FAQ ACCORDION
===================== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* =====================
   NEWSLETTER BANNER
===================== */
.newsletter-banner {
  background: var(--bg-hero);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.newsletter-banner h2 { margin-bottom: 12px; }
.newsletter-banner p  { margin-bottom: 28px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-form input:focus { border-color: var(--accent); }

/* =====================
   CONTACTS PAGE
===================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 20px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.email-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s;
}

.email-card:hover { box-shadow: 0 4px 16px rgba(71,75,252,0.07); }

.email-card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.email-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.email-card a  { font-size: 13px; color: var(--accent); }
.email-card p  { font-size: 12px; margin: 4px 0 0; }

/* =====================
   SOCIAL LINKS
===================== */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =====================
   FOOTER
===================== */
.site-footer {
  background: #5A5A5A;
  color: #fff;
  padding: 48px 0 40px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 0.8fr;
  gap: 32px;
  align-items: start;
}

/* Соцсети — иконки кружочками */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.footer-socials a:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.footer-requisites {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a strong { font-weight: 700; color: #fff; }

/* =====================
   STUDIO PAGE
===================== */
.studio-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.studio-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.studio-nav-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(71,75,252,0.1);
}

.studio-nav-card .icon { font-size: 32px; margin-bottom: 14px; }
.studio-nav-card h3   { margin-bottom: 8px; }
.studio-nav-card p    { font-size: 13px; }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .contacts-grid   { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* Шапка на мобильных — прямоугольная, не пилюля */
  .site-header-wrap {
    top: 0;
    padding: 0;
  }
  .site-header {
    border-radius: 0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  }

  /* Скрываем десктопное меню */
  .nav-menu { display: none; }
  .nav-burger { display: flex; }

  /* Открытое мобильное меню */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 12px 16px 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 200;
    gap: 0;
  }

  /* Пункты первого уровня */
  .nav-menu.open > li > a {
    display: block;
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: #ffffff;
  }

  /* Подменю на мобильных — показываем всегда раскрытым */
  .nav-menu.open .sub-menu {
    display: block;
    position: static;
    background: #f7f7f9;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    min-width: auto;
    width: 100%;
  }

  .nav-menu.open .sub-menu li a {
    padding: 9px 8px;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: none;
    background: #f7f7f9;
    display: block;
  }

  .nav-menu.open .sub-menu li a:hover {
    color: var(--accent);
    background: #f7f7f9;
  }

  /* Остальное */
  .hero            { margin: 10px; padding: 60px 20px; }
  .footer-top      { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .section         { padding: 48px 0; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===================================================
   СТРАНИЦА ОФЕРТЫ (/offer)
   =================================================== */
.offer-card {
  background: #fff;
  border-radius: var(--radius-lg, 24px);
  padding: 48px 52px;
  box-shadow: 0 2px 24px rgba(71,75,252,.07);
  margin-bottom: 16px;
}
@media (max-width: 680px) { .offer-card { padding: 28px 20px; } }

.offer-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent, #474BFC);
  margin-bottom: 12px;
}

.offer-intro {
  color: var(--text-muted, #6B6B80);
  line-height: 1.75;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border, #DDDDE8);
}

.offer-toc {
  background: var(--bg, #F0F0F2);
  border-radius: var(--radius-md, 16px);
  padding: 22px 26px;
  margin-bottom: 44px;
}
.offer-toc h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted, #6B6B80);
  margin-bottom: 10px;
}
.offer-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 20px;
}
@media (max-width: 560px) { .offer-toc ol { grid-template-columns: 1fr; } }
.offer-toc li a {
  color: var(--accent, #474BFC);
  font-size: 14px;
  text-decoration: none;
}
.offer-toc li a:hover { text-decoration: underline; }

.offer-section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}
.offer-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #1E1E24);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light, #EEEEFF);
  display: flex;
  align-items: center;
  gap: 10px;
}
.offer-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: var(--accent, #474BFC);
  color: #fff;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.offer-p {
  color: var(--text-muted, #6B6B80);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 15px;
}
.offer-p strong { color: var(--text, #1E1E24); }

.offer-list {
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
}
.offer-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted, #6B6B80);
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 10px;
}
.offer-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent, #474BFC);
  font-weight: 600;
}

.offer-def-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.offer-def-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border, #DDDDE8);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted, #6B6B80);
}
.offer-def-list li:last-child { border-bottom: none; }
.offer-def-list li strong { color: var(--text, #1E1E24); }

.offer-card-inner {
  background: var(--bg, #F0F0F2);
  border-radius: var(--radius-md, 16px);
  padding: 18px 22px;
  margin: 14px 0 18px;
}

.offer-refund-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.offer-refund-item {
  background: var(--bg, #F0F0F2);
  border-radius: var(--radius-md, 14px);
  padding: 16px 20px;
}
.offer-refund-item .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text, #1E1E24);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.offer-refund-item .value {
  font-size: 14px;
  color: var(--text-muted, #6B6B80);
  line-height: 1.65;
}

.offer-requisites {
  background: var(--accent-light, #EEEEFF);
  border-radius: var(--radius-md, 16px);
  padding: 26px 30px;
}
.offer-requisites table { width: 100%; border-collapse: collapse; }
.offer-requisites td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(71,75,252,.12);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
}
.offer-requisites td:first-child {
  color: var(--text-muted, #6B6B80);
  width: 45%;
  font-weight: 500;
}
.offer-requisites td:last-child {
  color: var(--text, #1E1E24);
  font-weight: 600;
}
.offer-requisites tr:last-child td { border-bottom: none; }

.offer-meta {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #DDDDE8);
  text-align: center;
}
.offer-meta p {
  font-size: 13px;
  color: var(--text-muted, #6B6B80);
  line-height: 1.7;
}
.offer-notice {
  background: #FFF9E6;
  border: 1px solid #F5D860;
  border-radius: var(--radius-md, 14px);
  padding: 14px 18px;
  margin-top: 14px;
  font-size: 14px;
  color: #7A6000;
  line-height: 1.65;
}
