/*
Theme Name: SEOlife
Theme URI: https://seolife.kz
Author: SEOlife.kz
Description: Современная тема для SEO-агентства SEOlife.kz. Все тексты, цены, шапка и подвал настраиваются через Внешний вид → Настроить. Скролл-эффекты, RU/KZ (через Polylang), мобильное меню.
Version: 1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: seolife
*/

/* ===== База ===== */
:root {
  --ink: #101017;
  --paper: #F4F2EA;
  --acc: #D8FF3E;
  --violet: #6B5CE7;
  --card-dark: #1B1B24;
  --muted-dark: #B9B9C6;
  --muted-light: #4A4A55;
  --border-dark: #3A3A45;
  --line-dark: #26262F;
  --gray: #8B8B99;
  --fs-h1: clamp(44px, 6.4vw, 104px);
  --fs-h2: clamp(32px, 4vw, 60px);
  --fs-h3: 22px;
  --fs-body: 17px;
  --fs-sub: clamp(18px, 1.6vw, 24px);
  --fs-btn: 18px;
  --fs-nav: 15px;
  --fs-kicker: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100vw; }
body { margin: 0; font-family: 'Manrope', sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--ink); }
a:hover { color: var(--violet); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: 'Unbounded', sans-serif; font-weight: 900; }

.sl-container { max-width: 1440px; margin: 0 auto; }
.sl-section { padding: 96px clamp(20px, 4vw, 56px); }

/* ===== Кнопки ===== */
.sl-btn { display: inline-block; font-weight: 800; font-size: var(--fs-btn); padding: 20px 36px; border-radius: 100px; text-decoration: none; border: none; cursor: pointer; font-family: 'Manrope', sans-serif; transition: background .2s, color .2s; }
.sl-btn--dark { background: var(--ink); color: var(--acc); }
.sl-btn--dark:hover { background: var(--violet); color: #fff; }
.sl-btn--accent { background: var(--acc); color: var(--ink); }
.sl-btn--accent:hover { background: var(--violet); color: #fff; }
.sl-btn--outline { border: 2px solid var(--ink); color: var(--ink); padding: 18px 36px; background: transparent; }
.sl-btn--outline:hover { background: var(--ink); color: var(--paper); }
.sl-btn--outline-light { border: 2px solid var(--paper); color: var(--paper); padding: 18px 36px; background: transparent; }
.sl-btn--outline-light:hover { background: var(--paper); color: var(--ink); }

/* ===== Шапка ===== */
.sl-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); padding: 0 clamp(20px, 4vw, 56px); }
.sl-header__in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.sl-logo { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: .02em; color: var(--paper); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.sl-logo:hover { color: var(--paper); }
.sl-logo__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); }
.sl-logo__suffix { color: var(--acc); }
.sl-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: var(--fs-nav); }
.sl-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-nav); }
.sl-nav a { color: var(--paper); text-decoration: none; }
.sl-nav a:hover { color: var(--acc); }
.sl-header__right { display: flex; align-items: center; gap: 16px; }
.sl-header__phone { font-weight: 800; color: var(--acc); text-decoration: none; font-size: 15px; white-space: nowrap; }
.sl-lang { display: flex; border: 1px solid var(--border-dark); border-radius: 100px; overflow: hidden; }
.sl-lang a, .sl-lang span { font-weight: 800; font-size: 13px; padding: 8px 14px; color: var(--gray); text-decoration: none; }
.sl-lang .current-lang a, .sl-lang a.active { background: var(--acc); color: var(--ink); }
.sl-lang ul { display: flex; list-style: none; margin: 0; padding: 0; }
.sl-burger { display: none; background: none; border: 1px solid var(--border-dark); border-radius: 12px; color: var(--paper); font-size: 20px; padding: 8px 12px; cursor: pointer; line-height: 1; }

/* Мобильное меню */
.sl-mobile-menu { display: none; position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--ink); padding: 16px clamp(20px, 4vw, 56px) 40px; z-index: 49; overflow: auto; }
.sl-mobile-menu.open { display: grid; align-content: start; }
.sl-mobile-menu a { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 24px; color: var(--paper); text-decoration: none; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.sl-mobile-menu ul { display: contents; list-style: none; margin: 0; padding: 0; }
.sl-mobile-menu li { display: contents; }
.sl-mobile-menu .sl-mobile-phone { color: var(--acc); border-bottom: none; }
.sl-mobile-menu .sl-btn { margin-top: 16px; text-align: center; font-size: 18px; padding: 18px 32px; border-bottom: none; font-family: 'Manrope', sans-serif; }

/* ===== Hero ===== */
.sl-hero { position: relative; background: var(--paper); padding: clamp(64px, 9vw, 130px) clamp(20px, 4vw, 56px) 0; overflow: clip; }
.sl-hero--dark { background: var(--ink); color: var(--paper); }
.sl-kicker { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: var(--fs-kicker); margin: 0 0 24px; }
.sl-hero--dark .sl-kicker { color: var(--acc); }
.sl-hero h1 { font-size: var(--fs-h1); line-height: 1.02; margin: 0 0 32px; max-width: 1200px; text-wrap: balance; }
.sl-hero__accent { background: var(--acc); color: var(--ink); padding: 0 16px; border-radius: 20px; display: inline-block; }
.sl-hero__sub { font-size: var(--fs-sub); line-height: 1.5; max-width: 680px; margin: 0 0 40px; font-weight: 500; }
.sl-hero--dark .sl-hero__sub { color: var(--muted-dark); }
.sl-hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }
.sl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 900px; padding-bottom: 72px; }
.sl-stat { border-top: 3px solid var(--ink); padding-top: 16px; }
.sl-stat__value { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 34px; }
.sl-stat__label { font-weight: 600; margin-top: 6px; color: var(--muted-light); }
.sl-hero, .sl-section, .sl-clients { overflow-x: clip; }
.sl-shape { position: absolute; pointer-events: none; }

/* ===== Бегущая строка ===== */
@keyframes sl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sl-marquee { background: var(--ink); margin: 0 calc(-1 * clamp(20px, 4vw, 56px)); padding: 18px 0; overflow: hidden; }
.sl-marquee--accent { background: var(--acc); }
.sl-marquee__track { display: flex; width: max-content; animation: sl-marquee 22s linear infinite; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 20px; color: var(--acc); white-space: nowrap; }
.sl-marquee--accent .sl-marquee__track { color: var(--ink); font-size: 18px; }
.sl-marquee__track span { padding-right: 48px; }

/* ===== Клиенты ===== */
.sl-clients { background: var(--ink); color: var(--paper); padding: 56px clamp(20px, 4vw, 56px) 8px; }
.sl-clients__label { max-width: 1440px; margin: 0 auto 20px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--gray); }
.sl-clients__wrap { overflow: hidden; max-width: 1440px; margin: 0 auto; }
.sl-clients__track { display: flex; width: max-content; gap: 16px; animation: sl-marquee 30s linear infinite; padding-bottom: 40px; }
.sl-clients__track span { border: 1px solid var(--border-dark); border-radius: 100px; padding: 12px 24px; font-weight: 600; white-space: nowrap; }

/* ===== Секции ===== */
.sl-section--dark { background: var(--ink); color: var(--paper); }
.sl-section--dark .sl-kicker { color: var(--acc); }
.sl-h2 { font-size: var(--fs-h2); line-height: 1.08; margin: 0 0 56px; max-width: 1000px; }

/* Услуги */
.sl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.sl-card { background: var(--card-dark); border-radius: 28px; padding: 36px; transition: background .2s; }
.sl-card:hover { background: #22222D; }
.sl-card__num { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 44px; color: var(--acc); margin-bottom: 20px; }
.sl-card h3 { font-weight: 700; font-size: var(--fs-h3); margin: 0 0 14px; }
.sl-card p { margin: 0; line-height: 1.6; color: var(--muted-dark); font-weight: 500; font-size: var(--fs-body); }
.sl-card--light { background: #FFFFFF; }
.sl-card--light:hover { background: #FFFFFF; }
.sl-card--light .sl-card__num { color: var(--violet); }
.sl-card--light p { color: var(--muted-light); }

/* Процесс: sticky-стек */
.sl-steps { position: relative; display: grid; gap: 24px; max-width: 1100px; margin: 0 auto; }
.sl-step { position: sticky; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; box-shadow: 0 -12px 40px rgba(16,16,23,.12); }
.sl-step__num { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 56px; }
.sl-step h3 { font-weight: 700; font-size: calc(var(--fs-h3) + 4px); margin: 0 0 12px; }
.sl-step p { margin: 0; font-size: calc(var(--fs-body) + 1px); line-height: 1.6; font-weight: 500; max-width: 640px; }
.sl-step--1 { top: 108px; background: var(--acc); }
.sl-step--2 { top: 132px; background: var(--violet); color: #fff; }
.sl-step--3 { top: 156px; background: var(--ink); color: var(--paper); box-shadow: 0 -12px 40px rgba(16,16,23,.2); }
.sl-step--3 .sl-step__num { color: var(--acc); }
.sl-step--3 p { color: #C9C9D4; }
.sl-step--4 { top: 180px; background: #FFFFFF; }
.sl-step--4 .sl-step__num { color: var(--violet); }

/* Цены */
.sl-price-card { background: var(--paper); color: var(--ink); border-radius: 36px; padding: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 4vw, 64px); position: relative; max-width: 1200px; margin: 0 auto; }
.sl-price-badge { position: absolute; top: -22px; right: 40px; background: var(--acc); font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 16px; padding: 12px 24px; border-radius: 100px; transform: rotate(3deg); }
.sl-price-plan { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--violet); margin-bottom: 16px; }
.sl-price-amount { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: clamp(40px, 4.5vw, 68px); }
.sl-price-period { font-weight: 700; font-size: 22px; color: var(--muted-light); }
.sl-price-first { font-size: 19px; font-weight: 700; margin: 12px 0 28px; }
.sl-price-note { line-height: 1.6; color: var(--muted-light); font-weight: 500; margin: 0 0 12px; }
.sl-price-wp { font-weight: 800; margin: 0 0 32px; }
.sl-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: center; }
.sl-features li { display: grid; grid-template-columns: auto 1fr; gap: 14px; font-weight: 600; font-size: var(--fs-body); line-height: 1.5; }
.sl-features li::before { content: '✓'; width: 26px; height: 26px; border-radius: 50%; background: var(--acc); color: var(--ink); display: grid; place-items: center; font-weight: 900; }
.sl-disclaimer { max-width: 900px; margin: 28px auto 0; color: var(--gray); font-weight: 500; line-height: 1.6; font-size: 15px; }

/* Кейсы */
.sl-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.sl-case { background: #FFFFFF; border-radius: 28px; padding: 36px; text-decoration: none; color: var(--ink); display: block; border: 2px solid transparent; transition: border-color .2s; }
a.sl-case:hover { border-color: var(--ink); color: var(--ink); }
.sl-case__name { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 24px; margin-bottom: 10px; }
.sl-case__niche { font-weight: 600; color: var(--violet); margin-bottom: 16px; }
.sl-case__result { font-weight: 500; color: var(--muted-light); line-height: 1.5; }
.sl-case--cta { background: var(--acc); display: grid; align-content: center; gap: 16px; }
.sl-case--cta .sl-case__name { line-height: 1.2; }
.sl-case--cta a { font-weight: 800; font-size: 18px; color: var(--ink); }

/* Команда */
.sl-team { background: var(--violet); color: #fff; border-radius: 36px; padding: clamp(40px, 5vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 4vw, 72px); position: relative; overflow: clip; max-width: 1440px; margin: 0 auto; }
.sl-team .sl-kicker { color: var(--acc); }
.sl-team h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; margin: 0 0 24px; }
.sl-team__text { font-size: 18px; line-height: 1.65; font-weight: 500; margin: 0; color: #E4E0FF; }
.sl-advs { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; align-content: center; }
.sl-advs li { background: rgba(255,255,255,.1); border-radius: 20px; padding: 20px 24px; font-weight: 600; font-size: var(--fs-body); line-height: 1.5; }

/* FAQ */
.sl-faq { max-width: 900px; margin: 0 auto; }
.sl-faq__list { display: grid; gap: 12px; }
.sl-faq details { background: #FFFFFF; border-radius: 20px; padding: 24px 28px; }
.sl-faq summary { list-style: none; cursor: pointer; font-weight: 800; font-size: calc(var(--fs-h3) - 3px); font-family: 'Unbounded', sans-serif; }
.sl-faq summary::-webkit-details-marker { display: none; }
.sl-faq details p { margin: 16px 0 0; line-height: 1.65; color: var(--muted-light); font-weight: 500; }

/* Форма */
.sl-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 5vw, 80px); max-width: 1200px; margin: 0 auto; position: relative; }
.sl-contact h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; margin: 0 0 24px; }
.sl-contact__sub { font-size: 18px; line-height: 1.6; color: var(--muted-dark); font-weight: 500; margin: 0 0 40px; }
.sl-contact__links { display: grid; gap: 16px; font-weight: 700; font-size: 18px; }
.sl-contact__links a { color: var(--paper); text-decoration: none; }
.sl-contact__links a:first-child { color: var(--acc); }
.sl-form { background: var(--card-dark); border-radius: 28px; padding: 36px; display: grid; gap: 16px; }
.sl-form input, .sl-form textarea { background: var(--ink); border: 1px solid var(--border-dark); border-radius: 14px; padding: 16px 20px; color: var(--paper); font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 600; }
.sl-form textarea { resize: vertical; }
.sl-form button { background: var(--acc); color: var(--ink); border: none; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 17px; padding: 20px; border-radius: 100px; cursor: pointer; }
.sl-form button:hover { background: var(--violet); color: #fff; }
.sl-form__msg { margin: 0; text-align: center; font-weight: 700; color: var(--acc); min-height: 22px; }

/* CTA-блок (Астана) */
.sl-cta-block { max-width: 1440px; margin: 0 auto; background: var(--violet); color: #fff; border-radius: 36px; padding: clamp(40px, 6vw, 88px); text-align: center; position: relative; overflow: clip; }
.sl-cta-block h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.1; margin: 0 0 20px; }
.sl-cta-block p { font-size: 19px; font-weight: 500; color: #E4E0FF; margin: 0 auto 36px; max-width: 640px; line-height: 1.6; }
.sl-cta-block__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* Подвал */
.sl-footer { background: var(--ink); color: var(--gray); border-top: 1px solid var(--line-dark); padding: 40px clamp(20px, 4vw, 56px); }
.sl-footer__in { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.sl-footer .sl-logo { font-size: 18px; }
.sl-footer nav, .sl-footer ul { display: flex; gap: 24px; font-weight: 600; font-size: 14px; list-style: none; margin: 0; padding: 0; }
.sl-footer a { color: var(--gray); text-decoration: none; }
.sl-footer a:hover { color: var(--paper); }
.sl-footer__copy { font-weight: 500; font-size: 14px; }

/* ===== Скролл-эффекты ===== */
@keyframes sl-fly-in { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes sl-ball {
  0% { transform: translateY(0) scale(1, 1); width: 220px; height: 220px; border-radius: 50%; animation-timing-function: cubic-bezier(0.3, 0, 0.6, 1); }
  4% { transform: translateY(4px) scale(1.12, 0.85); }
  6% { transform: translateY(-110px) scale(0.95, 1.08); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  12% { transform: translateY(4px) scale(1.14, 0.82); animation-timing-function: cubic-bezier(0, 0, 0.6, 1); }
  17% { transform: translateY(-60px) scale(0.97, 1.05); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  22% { transform: translateY(4px) scale(1.1, 0.88); animation-timing-function: cubic-bezier(0, 0, 0.6, 1); }
  26% { transform: translateY(-26px) scale(0.99, 1.02); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  30% { transform: translateY(2px) scale(1.05, 0.94); }
  34% { transform: translateY(0) scale(1, 1); width: 220px; height: 220px; border-radius: 50%; animation-timing-function: cubic-bezier(0.2, 1, 0.3, 1); }
  44% { transform: translateY(0) scale(1, 1); width: min(480px, 44vw); height: 120px; border-radius: 100px; }
  80% { transform: translateY(0) scale(1, 1); width: min(480px, 44vw); height: 120px; border-radius: 100px; animation-timing-function: cubic-bezier(0.6, 0, 0.4, 1); }
  92% { width: 220px; height: 220px; border-radius: 50%; }
  100% { transform: translateY(0) scale(1, 1); width: 220px; height: 220px; border-radius: 50%; }
}
@keyframes sl-ball-text {
  0%, 44% { opacity: 0; }
  52%, 78% { opacity: 1; }
  86%, 100% { opacity: 0; }
}
.sl-ball { position: absolute; display: grid; place-items: center; width: 220px; height: 220px; background: var(--violet); border-radius: 50%; overflow: hidden; animation: sl-ball 6s linear infinite; will-change: transform, width, height; }
.sl-ball span { white-space: nowrap; text-align: center; color: #fff; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: clamp(15px, 1.4vw, 22px); line-height: 1.3; opacity: 0; animation: sl-ball-text 6s linear infinite; }
.sl-fly { animation: sl-fly-in 1.4s cubic-bezier(.16,1,.3,1) both; }
.sl-reveal-hidden { opacity: 0; transform: translateY(32px); }
.sl-reveal-shown { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }

/* ===== Мобильная версия ===== */
@media (max-width: 1100px) {
  .sl-nav, .sl-header__phone { display: none; }
  .sl-burger { display: block; }
  .sl-step { grid-template-columns: 1fr; gap: 12px; padding: 32px; }
}
h1, h2, h3, p, a, li { overflow-wrap: break-word; min-width: 0; }
@media (max-width: 480px) {
  .sl-hero h1 { font-size: 34px; }
  .sl-hero__accent { padding: 0 10px; }
  .sl-h2, h2 { font-size: 27px; }
  .sl-price-amount { font-size: 34px; }
  .sl-price-badge { right: 12px; font-size: 12px; padding: 8px 14px; }
  .sl-btn { font-size: 15px; padding: 14px 22px; }
  .sl-hero { padding-left: 14px; padding-right: 14px; }
  .sl-section, .sl-clients { padding-left: 14px; padding-right: 14px; }
  .sl-marquee { margin: 0 -14px; }
  .sl-card, .sl-case, .sl-form { padding: 24px 18px; }
  .sl-step { padding: 24px 18px; }
  .sl-price-card { padding: 28px 18px; }
  .sl-team, .sl-cta-block { padding: 32px 18px; }
  .sl-header { padding-left: 14px; padding-right: 14px; }
  .sl-mobile-menu { padding-left: 14px; padding-right: 14px; }
  .sl-ball { width: 130px; height: 130px; right: 2% !important; }
  .sl-ball span { font-size: 12px; }
  .sl-shape { max-width: 40vw; }
  .sl-stat__value { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-marquee__track, .sl-clients__track, .sl-ball, .sl-ball span { animation: none; }
  .sl-reveal-hidden { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
