/* ==========================================================================
   TOOLS PAGE (tools.php). Loaded only on that page, so style.css stays untouched.
   Same look as the rest of the site: Outfit text, Nexa headings (the .ft_anton class), the theme's own icons, orange gradient fill on hover.
   ========================================================================== */

/* ---------- intro + numbers ---------- */
.secToolsIntro { padding: 30px 0 70px; }
.secToolsIntro .row { align-items: center; row-gap: 40px; }
.secToolsIntro h2 { font-size: 46px; line-height: 1.15; margin-bottom: 22px; }
.secToolsIntro p { font-size: 18px; line-height: 1.7; color: #3b3b3b; }

.tp_stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tp_stats div { display: flex; flex-direction: column; justify-content: center; min-height: 120px; padding: 22px 26px; border: 1px solid #E2E2E2; border-radius: 30px; background: #FBFBFB; }
.tp_stats div:first-child { background: linear-gradient(45deg, rgba(220, 135, 12, 1) 0%, rgba(227, 152, 10, 1) 40%, rgba(249, 201, 6, 1) 100%); border-color: transparent; }
.tp_stats b { font-family: 'Nexa'; font-size: 38px; line-height: 1.15; font-weight: 900; color: #000; }
.tp_stats span { font-size: 16px; color: #3b3b3b; }
.tp_stats div:first-child span { color: #000; }

/* ---------- filter buttons ---------- */
.secToolsList { padding: 60px 0 90px; }
.tp_filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 44px; }
.tp_filter button { padding: 10px 26px; border: 1px solid #000; border-radius: 40px; background: transparent; color: #000; font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; line-height: 1.4; cursor: pointer; transition: all .3s; }
.tp_filter button:hover { background: #000; color: #fff; }
.tp_filter button.on { border-color: transparent; background: linear-gradient(45deg, rgba(220, 135, 12, 1) 0%, rgba(227, 152, 10, 1) 40%, rgba(249, 201, 6, 1) 100%); color: #000; }

/* ---------- tool cards ---------- */
.tp_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tp_card { position: relative; z-index: 1; display: flex; flex-direction: column; overflow: hidden; padding: 40px 36px 32px; border: 1px solid #E2E2E2; border-radius: 50px; background: #FBFBFB; color: #000; }
.tp_card[hidden] { display: none; }
.tp_card::before { content: ''; position: absolute; top: 0; left: 0; z-index: -1; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(220, 135, 12, 1) 0%, rgba(227, 152, 10, 1) 40%, rgba(249, 201, 6, 1) 100%); opacity: 0; visibility: hidden; transition: all 0.4s; pointer-events: none; }
.tp_card:hover::before { opacity: 1; visibility: visible; }
.tp_card:hover { color: #000; }
.tp_ico { display: block; width: 64px; height: 64px; margin-bottom: 22px; transition: all 0.4s; }
.tp_card:hover .tp_ico { filter: brightness(0); }
.tp_cat { position: absolute; top: 46px; right: 36px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9a9a9a; transition: color .4s; }
.tp_card:hover .tp_cat { color: #000; }
.tp_card h3 { margin: 0 0 12px; color: #232323; font-size: 21px; line-height: 1.35; }
.tp_card p { flex: 1; margin: 0 0 26px; font-size: 16px; line-height: 1.65; transition: color .4s; }
.tp_card:hover p { color: #232323; }
.tp_go { display: inline-flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px dashed #D5D5D5; font-size: 17px; font-weight: 700; color: #000; transition: border-color .4s; }
.tp_card:hover .tp_go { border-color: rgba(0, 0, 0, .35); }
.tp_go img { width: 16px; transition: transform .3s; }
.tp_card:hover .tp_go img { transform: rotate(45deg); }
.tp_none { margin: 30px 0 0; text-align: center; color: #555; }
.secToolsList .text-center { margin-top: 56px; }

/* ---------- steps ---------- */
.secToolsSteps { padding: 90px 0 40px; }
.secToolsSteps h2, .secToolsFaq h2 { font-size: 46px; line-height: 1.15; }
.tp_steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.tp_step { position: relative; padding: 34px 28px; border: 1px solid #E2E2E2; border-radius: 30px; background: #FBFBFB; }
.tp_step span { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 50%; background: #000; color: #fff; font-family: 'Nexa'; font-size: 18px; line-height: 1; font-weight: 900; }
.tp_step h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; color: #232323; }
.tp_step p { margin: 0; font-size: 16px; line-height: 1.6; color: #555; }

/* ---------- questions ---------- */
.secToolsFaq { padding: 70px 0 100px; }
.tp_faq { max-width: 860px; margin: 44px auto 0; }
.tp_faq details { margin-bottom: 14px; border: 1px solid #E2E2E2; border-radius: 24px; background: #FBFBFB; transition: border-color .3s, background .3s; }
.tp_faq details[open] { border-color: #E3980A; background: #fff; }
.tp_faq summary { position: relative; padding: 22px 70px 22px 28px; font-size: 19px; font-weight: 700; line-height: 1.4; color: #232323; cursor: pointer; list-style: none; }
.tp_faq summary::-webkit-details-marker { display: none; }
.tp_faq summary::after { content: "+"; position: absolute; top: 50%; right: 26px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: linear-gradient(45deg, #DC870C 0%, #E3980A 40%, #F9C906 100%); font-size: 22px; line-height: 1; color: #000; }
.tp_faq details[open] summary::after { content: "\2212"; }
.tp_faq details p { margin: 0; padding: 0 28px 24px; font-size: 17px; line-height: 1.7; color: #555; }

/* ---------- tablet and phone ---------- */
@media (max-width: 991px) {
	.tp_grid { grid-template-columns: repeat(2, 1fr); }
	.tp_steps { grid-template-columns: repeat(2, 1fr); }
	.secToolsIntro h2, .secToolsSteps h2, .secToolsFaq h2 { font-size: 38px; }
}
@media (max-width: 575px) {
	.secToolsIntro { padding: 10px 0 50px; }
	.secToolsIntro h2, .secToolsSteps h2, .secToolsFaq h2 { font-size: 30px; }
	.secToolsIntro p { font-size: 16px; }
	.tp_stats b { font-size: 30px; }
	.tp_stats div { padding: 18px 20px; min-height: 100px; }
	.secToolsList { padding: 40px 0 60px; }
	.tp_filter { gap: 8px; margin-bottom: 30px; }
	.tp_filter button { padding: 8px 18px; font-size: 15px; }
	.tp_grid, .tp_steps { grid-template-columns: 1fr; }
	.tp_card { padding: 30px 26px 26px; border-radius: 36px; }
	.tp_cat { top: 36px; right: 26px; }
	.secToolsSteps { padding: 60px 0 20px; }
	.secToolsFaq { padding: 50px 0 70px; }
	.tp_faq summary { padding: 18px 60px 18px 20px; font-size: 17px; }
	.tp_faq details p { padding: 0 20px 20px; font-size: 16px; }
}
