/* ThePodologist – бесплатные PDF-презентации (tp-deck-*). Свой CSS, без Tailwind. */
:root {
	--tp-gold: #c9a961;
	--tp-gold-dark: #b8954d;
	--tp-gold-text: #8a6d2f;
	--tp-ink: #0d1117;
	--tp-text: #374151;
	--tp-muted: #6b7280;
	--tp-line: #e5e7eb;
	--tp-cream: #faf6ee;
}

.tp-deck-page { padding: 0 0 96px; background: #fff; color: var(--tp-text); }

/* Тёмный верх страницы: как у остальных страниц сайта, на нём читается светлое меню шапки */
.tp-deck-top { background: var(--tp-ink); color: #fff; padding: 150px 0 56px; margin-bottom: 48px; }
.tp-deck-top .tp-deck-title { color: #fff; }
.tp-deck-top .tp-deck-summary { color: #d1d5db; margin-bottom: 18px; }
.tp-deck-top .tp-deck-eyebrow { background: rgba(201, 169, 97, .14); color: var(--tp-gold); }
.tp-deck-top .tp-deck-avail { color: var(--tp-gold); margin: 0; }
.tp-deck-top .tp-deck-back { display: block; width: fit-content; margin-bottom: 24px; color: var(--tp-gold); }
.tp-deck-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.tp-deck-back { display: inline-block; margin-bottom: 28px; color: var(--tp-gold-text); text-decoration: none; font-size: 15px; }
.tp-deck-back:hover { text-decoration: underline; }

.tp-deck-eyebrow {
	display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 9999px;
	background: var(--tp-cream); color: var(--tp-gold-text); font-size: 13px; font-weight: 600;
	letter-spacing: .06em; text-transform: uppercase;
}
.tp-deck-title {
	margin: 0 0 16px; color: var(--tp-ink); font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; font-weight: 700;
}
.tp-deck-summary { margin: 0 0 28px; font-size: 1.125rem; line-height: 1.7; color: var(--tp-text); max-width: 720px; }
.tp-deck-hero__details > .tp-deck-h2:first-child { margin-top: 0; }
.tp-deck-h2 { margin: 36px 0 14px; color: var(--tp-ink); font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; }

/* Десктоп: слева обложка и состав, справа форма (липнет при прокрутке). Мобильный: форма сразу под тёмным верхом. */
.tp-deck-hero {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); column-gap: 56px; align-items: start;
	grid-template-areas: "details form";
}
.tp-deck-hero__details { grid-area: details; }
.tp-deck-hero__form { grid-area: form; position: sticky; top: 120px; }

.tp-deck-cover { margin: 0 0 8px; }
.tp-deck-cover img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 50px rgba(13, 17, 23, .14); }

.tp-deck-list { margin: 0; padding: 0; list-style: none; }
.tp-deck-list li { position: relative; padding: 0 0 12px 32px; line-height: 1.6; }
.tp-deck-list li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--tp-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230d1117'%3E%3Cpath d='M8.1 13.6 4.5 10l1.1-1.1 2.5 2.5 6.3-6.3 1.1 1.1z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.tp-deck-langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tp-deck-langs li { padding: 6px 12px; border-radius: 9999px; font-size: 14px; border: 1px solid var(--tp-line); color: var(--tp-muted); }
.tp-deck-langs li.is-ready { background: var(--tp-gold); border-color: var(--tp-gold); color: var(--tp-ink); font-weight: 600; }

/* Карточка формы */
.tp-deck-card {
	background: #fff; border: 1px solid var(--tp-line); border-top: 4px solid var(--tp-gold);
	border-radius: 16px; padding: 28px; box-shadow: 0 12px 40px rgba(13, 17, 23, .08);
}
.tp-deck-card__eyebrow { margin: 0 0 6px; color: var(--tp-gold-text); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tp-deck-card__title { margin: 0 0 18px; color: var(--tp-ink); font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; line-height: 1.25; }

.tp-deck-label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: var(--tp-ink); }
.tp-deck-input {
	display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px;
	border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: var(--tp-ink); font: inherit; font-size: 16px;
}
.tp-deck-input:focus { outline: 2px solid var(--tp-gold); outline-offset: 1px; border-color: var(--tp-gold); }
.tp-deck-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--tp-muted); }
.tp-deck-hint--center { text-align: center; }
.tp-deck-hint--top { margin: 0 0 10px; }
.tp-deck-req { color: #b91c1c; margin-left: 2px; }
.tp-deck-avail { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--tp-gold-text); }

/* Выбор языка: кнопки-«таблетки» на радиокнопках, работают без JS */
.tp-deck-langpick { margin: 0; padding: 0; border: 0; min-width: 0; }
.tp-deck-langpick > legend { padding: 0; }
.tp-deck-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-deck-chip { position: relative; cursor: pointer; }
.tp-deck-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tp-deck-chip span {
	display: inline-block; padding: 9px 16px; border: 1px solid #d1d5db; border-radius: 9999px;
	font-size: 15px; line-height: 1.2; color: var(--tp-ink); background: #fff; transition: background .15s, border-color .15s;
}
.tp-deck-chip:hover span { border-color: var(--tp-gold); }
.tp-deck-chip input:checked + span { background: var(--tp-gold); border-color: var(--tp-gold); font-weight: 700; }
.tp-deck-chip input:focus-visible + span { outline: 2px solid var(--tp-ink); outline-offset: 2px; }
.tp-deck-chips--soon .tp-deck-chip span { font-size: 14px; padding: 7px 13px; color: var(--tp-text); border-style: dashed; }
.tp-deck-chips--soon .tp-deck-chip input:checked + span { border-style: solid; color: var(--tp-ink); }
.tp-deck-more { margin-top: 14px; }
.tp-deck-more > summary { cursor: pointer; font-size: 14px; color: var(--tp-gold-text); font-weight: 600; }
.tp-deck-more > .tp-deck-hint { margin: 8px 0 10px; }

.tp-deck-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 20px; font-size: 13px; line-height: 1.5; color: var(--tp-text); cursor: pointer; }
.tp-deck-consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--tp-gold); }
.tp-deck-consent a { color: var(--tp-gold-text); }

.tp-deck-btn {
	display: block; width: 100%; min-height: 52px; padding: 14px 24px; border: 0; border-radius: 9999px;
	background: var(--tp-gold); color: var(--tp-ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
	transition: background .2s ease;
}
.tp-deck-btn:hover, .tp-deck-btn:focus-visible { background: var(--tp-gold-dark); }
.tp-deck-btn:focus-visible { outline: 2px solid var(--tp-ink); outline-offset: 2px; }

.tp-deck-notice { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.tp-deck-notice--ok { background: #ecfdf3; color: #065f46; border: 1px solid #a7f3d0; }
.tp-deck-notice--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.tp-deck-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Текст под формой */
.tp-deck-body { max-width: 760px; margin: 48px 0 0; font-size: 1.0625rem; line-height: 1.75; }
.tp-deck-body h2 { margin: 40px 0 14px; color: var(--tp-ink); font-family: "Playfair Display", Georgia, serif; font-size: 1.75rem; }
.tp-deck-body h3 { margin: 28px 0 10px; color: var(--tp-ink); font-size: 1.25rem; }
.tp-deck-body p { margin: 0 0 18px; }
.tp-deck-body ul, .tp-deck-body ol { margin: 0 0 18px; padding-left: 24px; }
.tp-deck-body li::marker { color: var(--tp-gold); }
.tp-deck-body a { color: var(--tp-gold-text); }

/* Список презентаций */
.tp-deck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tp-deck-tile { border: 1px solid var(--tp-line); border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.tp-deck-tile:hover { box-shadow: 0 16px 40px rgba(13, 17, 23, .1); transform: translateY(-2px); }
.tp-deck-tile__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tp-deck-tile__img { aspect-ratio: 16 / 10; background: var(--tp-cream); overflow: hidden; }
.tp-deck-tile__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-deck-tile__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.tp-deck-tile__title { margin: 0 0 10px; color: var(--tp-ink); font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; line-height: 1.3; }
.tp-deck-tile__summary { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.tp-deck-tile__meta { margin: auto 0 12px; font-size: 13px; color: var(--tp-muted); }
.tp-deck-tile__cta { color: var(--tp-gold-text); font-weight: 600; }

/* RTL */
[dir="rtl"] .tp-deck-list li { padding: 0 32px 12px 0; }
[dir="rtl"] .tp-deck-list li::before { left: auto; right: 0; }

@media (max-width: 1024px) {
	.tp-deck-top { padding: 120px 0 40px; margin-bottom: 32px; }
	.tp-deck-hero { grid-template-columns: 1fr; grid-template-areas: "form" "details"; row-gap: 40px; }
	.tp-deck-hero__form { position: static; margin-bottom: 8px; }
	.tp-deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.tp-deck-grid { grid-template-columns: 1fr; }
	.tp-deck-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.tp-deck-tile, .tp-deck-btn { transition: none; }
	.tp-deck-tile:hover { transform: none; }
}

/* Кнопка во время отправки */
.tp-deck-btn[disabled] { opacity: .7; cursor: progress; }

/* Экран после отправки: вместо формы */
.tp-deck-done { text-align: center; }
.tp-deck-done__title { margin: 0 0 8px; color: var(--tp-ink); font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; }
.tp-deck-done p { margin: 0 0 16px; line-height: 1.6; }
.tp-deck-done__links { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px !important; }
.tp-deck-btn--link { display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.tp-deck-done__again { color: var(--tp-gold-text); font-size: 14px; }
