/*
Theme Name: DeepSeek Ru
Theme URI: https://deepseek-ai.info/
Description: Брендовая тема сайта DeepSeek Ru — китайская нейросеть DeepSeek: модели, тарифы, доступ из России. Домен deepseek-ai.info.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: deepseek-ru
*/

/* ============================================================ 1. Токены (палитра снята с deepseek.com/en) ============================================================ */
:root {
	--bg:            #FFFFFF;
	--tint:          #F5F7FC;
	--tint-2:        #EAEEFA;
	--card:          #FFFFFF;
	--border:        #E3E7F2;
	--border-strong: #CBD2E6;

	--ink:           #0B1220;
	--text:          #33394A;
	--muted:         #6B7280;

	--accent:        #4D6BFE;
	--accent-2:      #2498FF;
	--accent-dark:   #3548D4;
	--accent-soft:   #E8ECFF;
	--accent-ink:    #FFFFFF;

	--dark:          #020E36;
	--dark-2:        #0B1A45;
	--dark-border:   #1E2C5C;
	--dark-text:     #C7CEE8;

	--amber:         #F5A623;

	--radius:        14px;
	--radius-sm:     10px;
	--radius-lg:     22px;

	--shadow:        0 1px 2px rgba(11,18,32,.05), 0 8px 24px rgba(11,18,32,.07);
	--shadow-lg:     0 2px 4px rgba(11,18,32,.06), 0 18px 44px rgba(11,18,32,.12);

	--wrap:          1180px;
	--header-h:      70px;

	--font-display:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================ 2. База ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--font-body); font-size: 17px; line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.18; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); font-weight: 700; }
img, svg, video { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3em; }
li { margin-bottom: .4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 800px; }
.site-main { min-height: 50vh; }

/* ============================================================ 3. Кнопки ============================================================ */
.btn {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
	padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
	cursor: pointer; transition: transform .12s ease, background .18s ease, box-shadow .18s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn i, .btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(77,107,254,.32); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--tint); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: .92rem; }
.btn--lg { padding: 16px 28px; font-size: 1.08rem; }

/* ============================================================ 4. Хедер ============================================================ */
.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
	backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
	flex-shrink: 0;
}
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.logo__ru { color: var(--accent); margin-left: 3px; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: 8px; margin-right: auto; }
.nav a { color: var(--text); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--accent-dark); text-decoration: none; }
.cta-header { flex-shrink: 0; }
.cta-mobile { display: none; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 24px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.mobile-nav a { padding: 12px 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { text-decoration: none; color: var(--accent-dark); }
.mobile-nav[hidden] { display: none; }

/* ============================================================ 5. Крошки ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 0 0; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs__sep { color: var(--border-strong); }
.crumbs__cur { color: var(--ink); }

/* ============================================================ 6. Hero ============================================================ */
/* Фон hero — иллюстрация с китом под светлой заливкой.
   Заливка идёт слева направо: текст читается на почти белом, картинка
   раскрывается справа, низ уходит в чистый --bg и стыкуется со следующей секцией. */
.hero {
	padding: 64px 0 56px;
	background:
		linear-gradient(97deg, var(--bg) 0%, rgba(255, 255, 255, .6) 2%, rgba(255, 255, 255, .60) 55%, rgba(255, 255, 255, .16) 100%),
		linear-gradient(180deg, rgba(245, 247, 252, .70) 0%, rgba(255, 255, 255, 0) 38%, var(--bg) 100%),
		url('images/whale-bg.jpg') center right / cover no-repeat;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero__title { margin-bottom: 18px; }
.hero__lead { font-size: 1.16rem; color: var(--text); margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__facts { list-style: none; display: flex; gap: 30px; padding: 0; margin: 0; }
.hero__facts li { display: flex; flex-direction: column; margin: 0; }
.hero__facts-value { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; color: var(--ink); }
.hero__facts-label { font-size: .84rem; color: var(--muted); }

/* Hero-панель (абстрактная SVG-графика вместо видео/скриншота) */
.hero__panel { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 430px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: linear-gradient(155deg, var(--dark) 0%, var(--dark-2) 60%, var(--accent-dark) 130%); line-height: 0; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 78%; height: 78%; }

/* ============================================================ 7. Секции ============================================================ */
.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #fff; text-decoration: underline; }
.section__title { margin-bottom: 12px; }
.section__lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.section--dark .section__lead { color: var(--dark-text); }
.section__after { margin-top: 26px; color: var(--muted); }

/* Проза внутренних страниц */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose > .lead, .lead { font-size: 1.16rem; color: var(--text); }
.tldr { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 28px; }
.tldr strong { color: var(--accent-dark); }

/* ============================================================ 8. Сетки и карточки ============================================================ */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 14px; }
.card__icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.split__aside { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section--dark .split__aside { background: var(--dark-2); border-color: var(--dark-border); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233548D4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
.checklist--dark li::before { background-color: rgba(77,107,254,.3); }

/* ============================================================ 9. Таблицы ============================================================ */
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: var(--card); font-size: .95rem; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th { background: var(--tint); color: var(--ink); font-weight: 700; font-size: .9rem; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td strong { color: var(--ink); }

/* Мобилка: таблица → карточки по строкам, без горизонтальной прокрутки. Требует data-label на каждом <td> (= текст <th> этой колонки). */
@media (max-width: 640px) {
	.table-wrap { overflow-x: visible; border: 0; }
	table.data { min-width: 0; }
	table.data thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
	table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
	table.data tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
	table.data tr:last-child { margin-bottom: 0; }
	table.data td { padding: 10px 14px 10px 44%; position: relative; min-height: 20px; }
	table.data tr td:last-child { border-bottom: 0; }
	table.data td::before { content: attr(data-label); position: absolute; left: 14px; top: 10px; width: 38%; font-weight: 600; font-size: .82rem; color: var(--muted); }
}

/* ============================================================ 10. Тарифы ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plans--compact { grid-template-columns: repeat(3, 1fr); }
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan--best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan__ribbon { position: absolute; top: -11px; left: 20px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan__name { font-size: 1.15rem; margin-bottom: 6px; }
.plan__price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--ink); margin: 0; }
.plan__unit { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 3px; }
.plan__tag { font-size: .84rem; color: var(--muted); margin: 8px 0 0; }
.plan__model { font-size: .82rem; color: var(--accent-dark); margin: 10px 0 0; }

/* ============================================================ 11. Модели ============================================================ */
.model { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.model--accent { border-color: var(--accent); }
.model__badge { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ============================================================ 12. Звёзды и отзывы ============================================================ */
.stars { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.stars__bg, .stars__fg { display: flex; gap: 2px; }
.stars__bg { color: var(--border-strong); }
.stars__fg { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; color: var(--amber); }
.stars svg { width: var(--star-size, 18px); height: var(--star-size, 18px); flex-shrink: 0; fill: currentColor; stroke: currentColor; }
.rating-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 30px; }
.rating-head__score { display: flex; align-items: center; gap: 12px; }
.rating-head__value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--ink); }
.review { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.review__author { font-weight: 700; color: var(--ink); }
.review__role { font-size: .8rem; color: var(--muted); }
.review__date { font-size: .8rem; color: var(--muted); }
.review .stars { margin: 8px 0 10px; }
.review__text { margin: 0; color: var(--text); font-size: .96rem; }

/* ============================================================ 13. FAQ-аккордеон ============================================================ */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.faq__question i { transition: transform .2s ease; color: var(--accent-dark); flex-shrink: 0; }
.faq__question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq__answer { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
.faq__answer p { padding-bottom: 20px; margin: 0; color: var(--text); }

/* ============================================================ 14. CTA-band ============================================================ */
.cta-band { background: linear-gradient(140deg, var(--accent), var(--accent-dark)); color: #fff; padding: 30px 0;}
.cta-band__inner { padding: 54px 24px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn--primary { background: #fff; color: var(--accent-dark); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.cta-band .btn--primary:hover { background: #fff; color: var(--accent-dark); opacity: .92; }

/* ============================================================ 15. Футер ============================================================ */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 52px 0 26px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.site-footer__col { display: flex; flex-direction: column; }
.site-footer__col a { color: var(--dark-text); padding: 5px 0; font-size: .95rem; }
.site-footer__col a:hover { color: #fff; text-decoration: none; }
.site-footer__tagline { color: var(--dark-text); font-size: .92rem; margin-top: 14px; max-width: 340px; }
.site-footer .logo__text { color: #fff; }
.site-footer__bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--dark-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer__disclaimer { font-size: .82rem; color: #8791b8; max-width: 640px; margin: 0; }
.site-footer__copy { font-size: .82rem; color: #8791b8; margin: 0; }

/* ============================================================ 16. Адаптив ============================================================ */
@media (max-width: 1040px) {
	.hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.nav { display: none; }
	.burger { display: block; }
	.cta-header { display: none; }
	.cta-mobile { display: inline-flex; margin-left: auto; }
	.site-header__inner { gap: 12px; }
	.hero__inner { grid-template-columns: 1fr; gap: 36px; }
	.hero__panel { order: -1; }
	/* Колонки схлопнулись в одну — картинка уходит в едва заметный фон,
	   иначе текст ложится прямо на неё. */
	.hero {
		background:
			linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .6) 92%, var(--bg) 100%),
			url('images/whale-bg.jpg') center top / cover no-repeat;
	}
	.split { grid-template-columns: 1fr; gap: 26px; }
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
	.plans, .plans--compact { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.hero { padding: 40px 0 44px; }
	.section { padding: 42px 0; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.plans, .plans--compact { grid-template-columns: 1fr; }
	.hero__facts { gap: 20px; flex-wrap: wrap; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.rating-head__value { font-size: 2.05rem; }
}
@media (max-width: 380px) {
	.logo__text { display: none; }
	.wrap { padding: 0 16px; }
}
.section--dark strong { color: #fff; }
