/* Galerie /website-vorlagen (website-vorlagen.php) */
.tpl-page { --tpl-line: rgba(3, 103, 211, .16); }
.tpl-hero { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 44px); text-align: center; border: 2px solid var(--tpl-line, rgba(3, 103, 211, .16)); border-radius: 28px; background: radial-gradient(circle at 0 0, rgba(3, 103, 211, .14), transparent 40%), linear-gradient(135deg, #fff, #eef6ff); }
.tpl-hero h1 { margin: 14px 0 10px; font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; }
.tpl-hero__lead { margin: 0 auto 22px; max-width: 680px; color: #3f4a57; font-size: 1.08rem; line-height: 1.65; }
.tpl-scan { display: grid; gap: 8px; max-width: 640px; margin: 0 auto; text-align: left; }
.tpl-scan label { font-weight: 700; }
.tpl-scan__row { display: flex; gap: 10px; flex-wrap: wrap; }
.tpl-scan__row .input { flex: 1 1 260px; min-width: 0; font-size: 1.05rem; padding: 12px 14px; }
.tpl-scan__row .btn { flex: 0 0 auto; }
.tpl-scan__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tpl-scan__note { margin: 4px 0 0; }
.tpl-scan.is-busy .btn { opacity: .6; pointer-events: none; }
.tpl-scan__busy { padding: 10px 14px; border-radius: 10px; background: #eef5ff; color: #295ea9; font-weight: 600; }
.tpl-section { margin-top: clamp(44px, 7vw, 74px); }
.tpl-section__head { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.tpl-section__head h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.15; }
.tpl-section__head p { margin: 0; color: #5b6675; line-height: 1.65; }
.tpl-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.tpl-card { display: grid; gap: 6px; padding: 12px 12px 16px; border: 1px solid var(--tpl-line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.tpl-card:hover, .tpl-card:focus-visible { border-color: var(--brand2); box-shadow: 0 12px 30px rgba(3, 103, 211, .14); }
.tpl-card strong { font-size: 1.1rem; margin-top: 6px; }
.tpl-card__thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; border: 1px solid #e2e8f0; background: #f6f9fc; }
.tpl-card__thumb iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.tpl-card__open { color: var(--brand2); font-weight: 700; font-size: .92rem; }
.tpl-price { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: #fff; border: 1px solid var(--tpl-line); }
.tpl-price h2 { margin: 0 0 10px; }
.tpl-price__list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tpl-price__list li { display: flex; gap: 10px; }
.tpl-price__list li::before { content: '✓'; color: #166534; font-weight: 900; }
.tpl-price__box { display: grid; gap: 6px; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #f1f7ff, #fff); border: 2px solid var(--brand2); text-align: center; }
.tpl-price__amount { font-size: 1.9rem; color: #0e1822; }
.tpl-price__soon { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #fffbeb; color: #6a4d13; }
.tpl-steps { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: tpl-step; }
.tpl-steps li { padding: 22px 20px; border: 2px solid var(--tpl-line); border-radius: 20px; background: #fff; counter-increment: tpl-step; }
.tpl-steps li::before { content: counter(tpl-step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 11px; background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; font-weight: 900; }
.tpl-steps h3 { margin: 0 0 6px; font-size: 1rem; }
.tpl-steps p { margin: 0; color: #5b6675; font-size: .9rem; line-height: 1.6; }
.tpl-faq { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
.tpl-faq details { padding: 0 18px; border: 1px solid var(--tpl-line); border-radius: 16px; background: #fff; }
.tpl-faq summary { cursor: pointer; padding: 16px 0; font-weight: 750; }
.tpl-faq p { margin: 0 0 16px; color: #5b6675; line-height: 1.65; }
@media (max-width: 860px) { .tpl-price, .tpl-steps, .tpl-faq { grid-template-columns: 1fr; } }
