/* =========================================================
   Forex Tools — секции главной и внутренних страниц, footer.
   ========================================================= */

.features { background: #ffffff; background: var(--color-bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius); padding: 32px 26px; text-align: left; transition: var(--transition); position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--color-p1), var(--color-p2)); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.feature-card:hover { border-color: #47BAC6; border-color: var(--color-p1); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(71,186,198,.15); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 60px; height: 60px; margin: 0 0 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(71,186,198,.1); }
.feature-icon img { max-height: 34px; width: auto; }
.feature-title { font-size: 18px; margin: 0 0 10px; color: #17808B; color: var(--color-heading); letter-spacing: -0.01em; }
.feature-text { font-size: 14px; color: #989898; color: var(--color-p5); margin: 0; line-height: 1.6; }

.ft-divider { position: relative; overflow: hidden; border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(71,186,198,.55), var(--color-p1), rgba(71,186,198,.55), transparent); margin: 0 auto; padding: 0; max-width: 1200px; }
.ft-divider::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: #ffffff; background: var(--color-p9); border: 1px solid #47BAC6; border-color: var(--color-p1); box-shadow: 0 0 12px rgba(71,186,198,.5); }

.top-sales { background: #F6F6F6; background: var(--color-bg-alt); position: relative; overflow: hidden; }
.top-sales::before { content: ""; position: absolute; inset: 0; background: url('https://forex-tools.ru/wp-content/uploads/top.png') center / cover no-repeat; opacity: .06; pointer-events: none; z-index: 0; }
.top-sales > .container { position: relative; z-index: 1; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); height: 100%; position: relative; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(71,186,198,.18), 0 0 0 1px rgba(71,186,198,.2); border-color: transparent; }
.product-card-link { display: flex; flex-direction: column; height: 100%; color: #6E747C; color: var(--color-body); padding: 22px; }
.product-card-link:hover { color: #6E747C; color: var(--color-body); }
.product-card-thumb { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); background: #F6F6F6; background: var(--color-bg-alt); margin-bottom: 16px; }
.product-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.product-card:hover .product-card-thumb img { transform: scale(1.06); }
.product-card-title { font-size: 17px; margin: 0 0 8px; color: #17808B; color: var(--color-heading); font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.005em; }
.product-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.product-badge { font-size: 11px; font-weight: 700; font-family: var(--font-heading); padding: 3px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.badge-top { background: linear-gradient(135deg, #47BAC6, #17808B); color: #fff; }
.badge-new { background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; }
.badge-sale { background: linear-gradient(135deg, #FF7F00, #e67e22); color: #fff; }
.badge-verified { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.product-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.product-card-price { font-weight: 700; font-size: 17px; color: #47BAC6; color: var(--color-p1); }
.product-card-platform { font-size: 12px; color: #989898; color: var(--color-p5); background: rgba(255,127,0,.08); padding: 3px 8px; border-radius: 4px; }
.product-card-excerpt { font-size: 14px; color: #989898; color: var(--color-p5); margin: 0 0 14px; flex: 1; line-height: 1.5; }
.product-card-cat { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #47BAC6; color: var(--color-p1); background: rgba(71,186,198,.1); padding: 4px 10px; border-radius: 20px; font-family: var(--font-heading); }
.product-card-demo { margin-top: 8px; }
.product-card-vendor { display: block; margin-top: 6px; font-size: 13px; color: #989898; color: var(--color-p5); }
.vendor-link { color: #47BAC6; color: var(--color-p1); font-weight: 600; }
.vendor-link:hover { color: #17808B; color: var(--color-p2); }
.software-vendor { font-size: 15px; color: #989898; color: var(--color-p5); margin-bottom: 6px; }
.software-vendor a { font-weight: 600; }
.demo-link { font-size: 12px; font-weight: 700; font-family: var(--font-heading); color: #22c55e; background: rgba(34,197,94,.1); padding: 3px 10px; border-radius: 4px; display: inline-block; }
.demo-link:hover { color: #fff; background: #22c55e; }
.software-demo { margin: 12px 0 0; }
.demo-disabled { display: inline-block; padding: 10px 18px; border-radius: 5px; border: 1px solid #d1d1d1; border-color: var(--color-p6); color: #989898; color: var(--color-p5); font-family: var(--font-heading); font-weight: 700; font-size: 14px; background: #F6F6F6; background: var(--color-p8); cursor: not-allowed; }

.categories .section-title { color: #17808B; color: var(--color-heading); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius); padding: 22px 24px; color: #6E747C; color: var(--color-body); transition: var(--transition); }
.category-card:hover { border-color: #47BAC6; border-color: var(--color-p1); color: #17808B; color: var(--color-heading); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(71,186,198,.12); }
.category-icon { flex-shrink: 0; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.category-icon img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* Тематические цветные иконки категорий */
.category-icon--sovetniki {
	background: linear-gradient(135deg, rgba(71,186,198,.18), rgba(23,128,139,.10));
	border: 1px solid rgba(71,186,198,.3);
	color: #17808B;
	border-radius: 14px;
}
.category-icon--indikatory {
	background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(37,99,235,.07));
	border: 1px solid rgba(59,130,246,.3);
	color: #2563eb;
	border-radius: 14px;
}
.category-icon--skripty {
	background: linear-gradient(135deg, rgba(255,127,0,.15), rgba(230,126,34,.07));
	border: 1px solid rgba(255,127,0,.3);
	color: #e67e22;
	border-radius: 14px;
}
.category-icon--programmy {
	background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(22,163,74,.07));
	border: 1px solid rgba(34,197,94,.3);
	color: #16a34a;
	border-radius: 14px;
}
.category-icon svg { width: 26px; height: 26px; }
.category-name { font-weight: 700; font-size: 16px; color: #17808B; color: var(--color-heading); font-family: var(--font-heading); flex: 1; }
.category-count { background: rgba(71,186,198,.1); color: #47BAC6; color: var(--color-p1); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; font-family: var(--font-heading); }

.services { background: #F6F6F6; background: var(--color-bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius); overflow: hidden; padding-bottom: 24px; transition: var(--transition); }
.service-card:hover { border-color: #47BAC6; border-color: var(--color-p1); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(71,186,198,.12); }
.service-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 16px; }
.service-card-body { padding: 0 24px; }
.service-title { font-size: 18px; margin: 0 0 10px; color: #17808B; color: var(--color-heading); font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; }
.service-text { font-size: 14px; color: #989898; color: var(--color-p5); margin: 0 0 16px; line-height: 1.55; }

/* Stats: literal-fallback перед var-градиентом (страховка от мёртвого :root) */
.stats-section {
	position: relative;
	overflow: hidden;
	background: #0A1F41;
	background: linear-gradient(135deg, var(--color-p3) 0%, var(--color-p2) 100%);
}
/* Диагональная сетка (45/-45) поверх тёмного градиента + бирюзовый блик p1. */
.stats-section::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(45deg, var(--grid-line) 0 1px, transparent 1px var(--grid-size)),
		repeating-linear-gradient(-45deg, var(--grid-line) 0 1px, transparent 1px var(--grid-size)),
		radial-gradient(circle at 12% 80%, color-mix(in srgb, var(--color-p1) 28%, transparent) 0%, transparent 55%);
}
.stats-section > .container { position: relative; z-index: 1; }
.stats-section .section-title { color: #ffffff; color: var(--color-p9); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-card { color: #ffffff; color: var(--color-p9); }
.stat-value { font-size: clamp(38px, 4.5vw, 56px); font-weight: 700; font-family: var(--font-heading); color: #ffffff; color: var(--color-p9); line-height: 1; margin-bottom: 10px; letter-spacing: -0.02em; text-shadow: 0 0 24px color-mix(in srgb, var(--color-p1) 55%, transparent); }
.stat-label { font-size: 15px; color: rgba(255,255,255,.7); font-weight: 500; }

.testimonial { max-width: 780px; margin: 0 auto; text-align: center; padding: 40px 32px; background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius-lg); position: relative; }
.testimonial-quote { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: #17808B; color: var(--color-heading); font-style: italic; margin: 0 0 28px; font-weight: 400; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 700; color: #17808B; color: var(--color-heading); font-family: var(--font-heading); font-size: 16px; }
.testimonial-role { font-size: 13px; color: #989898; color: var(--color-p5); }
.testimonial-badge { display: inline-block; font-size: 12px; font-weight: 700; font-family: var(--font-heading); padding: 4px 12px; border-radius: 20px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px; }

.cta { background: #F6F6F6; background: var(--color-bg-alt); text-align: center; }
.cta-inner { max-width: 900px; margin: 0 auto; }
.cta-title { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; font-weight: 700; color: #17808B; color: var(--color-heading); font-family: var(--font-heading); letter-spacing: -0.015em; margin: 0 0 56px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }
.how-step { text-align: center; position: relative; }
.how-icon { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #47BAC6, #17808B); color: #fff; font-size: 30px; font-weight: 700; font-family: var(--font-heading); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(71,186,198,.3); }
.how-title { font-size: 19px; margin: 0 0 10px; color: #17808B; color: var(--color-heading); font-family: var(--font-heading); letter-spacing: -0.01em; }
.how-text { font-size: 15px; color: #989898; color: var(--color-p5); margin: 0; line-height: 1.6; }

.checkout-progress { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 40px; padding: 20px; background: #F6F6F6; background: var(--color-bg-alt); border-radius: var(--radius); }
.checkout-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #989898; color: var(--color-p5); font-weight: 500; }
.checkout-step-num { width: 28px; height: 28px; border-radius: 50%; background: #d1d1d1; background: var(--color-p6); color: #ffffff; color: var(--color-p9); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; transition: var(--transition); }
.checkout-step.active { color: #17808B; color: var(--color-heading); font-weight: 700; }
.checkout-step.active .checkout-step-num { background: linear-gradient(135deg, #47BAC6, #17808B); box-shadow: 0 4px 12px rgba(71,186,198,.3); }
.checkout-step.completed .checkout-step-num { background: #2ecc71; }
.checkout-step-divider { width: 40px; height: 2px; background: #d1d1d1; background: var(--color-p6); }

.archive-filters { margin-bottom: 32px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filter-select { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid #d1d1d1; border-color: var(--color-border); background: #ffffff; background: var(--color-p9); color: #6E747C; color: var(--color-body); font-size: 14px; font-family: var(--font-body); cursor: pointer; min-width: 180px; }
.filter-select:focus { outline: none; border-color: #47BAC6; border-color: var(--color-p1); }
.filter-terms { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-term { padding: 9px 18px; border-radius: 30px; border: 1px solid #d1d1d1; border-color: var(--color-border); color: #989898; color: var(--color-p5); font-weight: 500; font-size: 14px; background: #ffffff; background: var(--color-p9); transition: var(--transition); }
.filter-term:hover, .filter-term.active { border-color: #47BAC6; border-color: var(--color-p1); color: #47BAC6; color: var(--color-p1); background: rgba(71,186,198,.06); }

.single-container, .page-container, .search-container, .not-found-container { padding-top: 50px; padding-bottom: 70px; }
.single-article, .page-article { background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius); padding: 40px; max-width: 860px; margin: 0 auto; }
.single-content h2, .single-content h3, .single-content h4 { color: #17808B; color: var(--color-heading); }
.single-content img { border-radius: var(--radius-sm); }
.single-terms { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #989898; color: var(--color-p5); font-size: 15px; }
.term-badge { background: rgba(71,186,198,.1); color: #47BAC6; color: var(--color-p1); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; font-family: var(--font-heading); }
.post-nav { max-width: 860px; margin: 30px auto 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.post-nav a { color: #989898; color: var(--color-p5); }
.post-nav a:hover { color: #47BAC6; color: var(--color-p1); }
.no-results { text-align: center; color: #989898; color: var(--color-p5); font-size: 17px; padding: 40px 0; }
.not-found-container { text-align: center; }
.not-found-title { font-size: 42px; color: #17808B; color: var(--color-heading); margin: 0 0 12px; font-family: var(--font-heading); }
.not-found-container p { color: #989898; color: var(--color-p5); margin: 0 0 26px; }

.single-software-container { padding-top: 50px; padding-bottom: 70px; }
.software-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 50px; }
.software-gallery { background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius); padding: 12px; }
.gallery-main { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; }
.gallery-main-img { display: none; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #F6F6F6; background: var(--color-bg-alt); }
.gallery-main-img.active { display: block; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb { flex-shrink: 0; width: 72px; height: 56px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: #F6F6F6; background: var(--color-bg-alt); cursor: pointer; padding: 0; transition: var(--transition); }
.gallery-thumb.active { border-color: #47BAC6; border-color: var(--color-p1); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.software-info { display: flex; flex-direction: column; gap: 18px; }
.software-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.software-title { margin: 0; font-size: 30px; font-weight: 700; color: #17808B; color: var(--color-heading); font-family: var(--font-heading); letter-spacing: -0.015em; }
.software-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; color: #989898; color: var(--color-p5); }
.software-meta span { color: #17808B; color: var(--color-heading); font-weight: 600; }
.software-price-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-current { font-size: 28px; font-weight: 700; color: #47BAC6; color: var(--color-p1); }
.price-old { font-size: 18px; color: #989898; color: var(--color-p5); text-decoration: line-through; }
.price-request { color: #6E747C; color: var(--color-p4); }
.software-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.software-download { margin: 0; }
.software-download a { font-size: 15px; color: #989898; color: var(--color-p5); border-bottom: 1px dashed #d1d1d1; border-bottom-color: var(--color-border); }
.software-download a:hover { color: #47BAC6; color: var(--color-p1); }
.software-forum-help { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.software-forum-help a { font-size: 14px; color: #989898; color: var(--color-p5); border-bottom: 1px dashed #d1d1d1; border-bottom-color: var(--color-border); }
.software-forum-help a:hover { color: #47BAC6; color: var(--color-p1); }
.software-forum-discuss { font-weight: 600; color: #47BAC6 !important; color: var(--color-p1) !important; border-bottom: 1px dashed #47BAC6 !important; border-bottom-color: var(--color-p1) !important; }
.software-description { grid-column: 1 / -1; background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius); padding: 30px; }
.software-description h2 { margin-top: 0; font-size: 22px; color: #17808B; color: var(--color-heading); font-family: var(--font-heading); }

.forum-container, .topic-container { padding-top: 40px; padding-bottom: 70px; }
.forum-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.forum-sections { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-list { display: flex; flex-direction: column; gap: 4px; }
.topic-card-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius-sm); color: #6E747C; color: var(--color-body); transition: var(--transition); }
.topic-card-link:hover { border-color: #47BAC6; border-color: var(--color-p1); color: #6E747C; color: var(--color-body); }
.topic-main { flex: 1; }
.topic-sticky { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #47BAC6; color: var(--color-p1); background: rgba(71,186,198,.1); padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 6px; }
.topic-title { margin: 0 0 6px; font-size: 17px; color: #17808B; color: var(--color-heading); font-family: var(--font-heading); }
.topic-meta { font-size: 13px; color: #989898; color: var(--color-p5); display: flex; gap: 12px; flex-wrap: wrap; }
.topic-side { text-align: center; flex-shrink: 0; }
.topic-replies { display: block; font-size: 20px; font-weight: 700; color: #17808B; color: var(--color-heading); }
.topic-replies-label { font-size: 12px; color: #989898; color: var(--color-p5); }
.topic-article { background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius); padding: 30px; margin-bottom: 30px; }
.topic-header { margin-bottom: 20px; }
.topic-header .topic-title { font-size: 26px; margin: 0 0 10px; }
.topic-reply-form { margin-top: 30px; background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius); padding: 30px; }
.forum-closed { color: #989898; color: var(--color-p5); font-style: italic; padding: 20px 0; }
.reply-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.reply-item { display: flex; gap: 14px; padding: 16px 20px; background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius-sm); }
.reply-avatar { flex-shrink: 0; }
.reply-avatar img { border-radius: 50%; }
.reply-body { flex: 1; }
.reply-meta { display: flex; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.reply-author { font-weight: 600; color: #17808B; color: var(--color-heading); }
.reply-date { color: #989898; color: var(--color-p5); }

.cart-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #d1d1d1; border-bottom-color: var(--color-border); }
.cart-table th { font-weight: 600; color: #989898; color: var(--color-p5); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.cart-table tfoot td { font-weight: 700; color: #17808B; color: var(--color-heading); font-size: 17px; border-bottom: none; border-top: 2px solid #d1d1d1; border-top-color: var(--color-border); }
.cart-price, .cart-total { color: #17808B; color: var(--color-heading); font-weight: 700; }
.btn-remove { background: rgba(71,186,198,.1); color: #47BAC6; color: var(--color-p1); border: 1px solid rgba(71,186,198,.2); font-size: 13px; padding: 5px 12px; }
.btn-remove:hover { background: #47BAC6; background: var(--color-p1); color: #ffffff; color: var(--color-p9); }
.cart-actions { margin-top: 24px; text-align: center; }
.checkout-notice { color: #989898; color: var(--color-p5); font-size: 15px; padding: 14px 18px; background: rgba(71,186,198,.06); border: 1px solid rgba(71,186,198,.15); border-radius: var(--radius-sm); }
.account-greeting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: #ffffff; background: var(--color-p9); border: 1px solid #d1d1d1; border-color: var(--color-border); border-radius: var(--radius-sm); margin-bottom: 30px; }
.account-greeting p { margin: 0; font-size: 17px; color: #17808B; color: var(--color-heading); }

.order-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; font-family: var(--font-heading); }
.order-badge-demo { margin-left: 4px; background: rgba(71,186,198,.12); border: 1px solid rgba(71,186,198,.35); color: #17808B; }
.order-status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.order-status-hint { font-size: 12px; color: #6E747C; color: var(--color-p5); line-height: 1.3; }
.badge-pending { background: rgba(71,186,198,.1); color: #47BAC6; color: var(--color-p1); }
.badge-paid { background: rgba(0,200,80,.1); color: #00c850; }
.badge-completed { background: rgba(59,130,246,.1); color: #3b82f6; }
.badge-cancelled { background: rgba(239,68,68,.1); color: #ef4444; }
.badge-awaiting { background: rgba(251,191,36,.15); color: #f59e0b; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 26px; color: rgba(255,255,255,.6); }

/* Наполнение футера на полную ширину экрана, синхронно с Hero:
   контейнер внутри футера теряет max-width и получает резиновые
   боковые отступы, чтобы край футера совпадал с краем hero. */
.site-footer .container {
	max-width: none;
	width: 100%;
	margin: 0;
	padding-left: clamp(20px, 4vw, 72px);
	padding-right: clamp(20px, 4vw, 72px);
}

.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: start; }
.footer-logo { max-width: min(260px, 100%); height: auto; margin-bottom: 10px; }
.footer-description, .footer-copy { font-size: 15px; margin: 6px 0 0; color: rgba(255,255,255,.5); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-menu a { color: rgba(255,255,255,.6); font-size: 15px; }
.footer-menu a:hover { color: #ffffff; color: var(--color-p9); }
.footer-contacts { margin-bottom: 14px; }
.footer-contacts a { color: #17808B; color: var(--color-p2); font-size: 15px; transition: var(--transition); }
.footer-contacts a:hover { color: #FF7F00; }
.footer-info { text-align: right; }
.footer-copy a { color: rgba(255,255,255,.5); }
.footer-copy a:hover { color: #ffffff; color: var(--color-p9); }
.footer-robot { max-width: 300px; height: auto; margin-top: 16px; margin-left: auto; display: block; }

/* Прижать робота к правому краю экрана на десктопах */
@media (min-width: 1025px) {
	.footer-robot {
		max-width: 420px;
		margin-right: calc(-1 * clamp(20px, 4vw, 72px));
	}
	.site-footer { overflow: hidden; }
}

.btn-auto { mix-blend-mode: normal; border-color: currentColor; }
.btn-auto:hover { box-shadow: none; transform: translateY(-2px); }

@media (max-width: 1024px) {
	.products-grid { grid-template-columns: repeat(3, 1fr); }
	.categories-grid { grid-template-columns: repeat(3, 1fr); }
	.stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
	.features-grid { grid-template-columns: repeat(2, 1fr); }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.how-grid { grid-template-columns: 1fr; max-width: 480px; }
	.footer-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
	.footer-info { text-align: center; }
	.footer-menu { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; }
}
@media (max-width: 600px) {
	.products-grid, .categories-grid, .features-grid, .services-grid { grid-template-columns: 1fr; }
	.single-article, .page-article { padding: 24px 20px; }
	.software-layout { grid-template-columns: 1fr; gap: 24px; }
	.software-title { font-size: 24px; }
	.forum-head { flex-direction: column; align-items: flex-start; }
	.topic-card-link { flex-direction: column; align-items: flex-start; gap: 10px; }
	.reply-item { flex-direction: column; }
	.filter-row { flex-direction: column; align-items: stretch; }
	.filter-select { width: 100%; min-width: 0; }
	.stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
	.checkout-progress { flex-direction: column; gap: 8px; }
	.checkout-step-divider { width: 2px; height: 16px; }
}
@media (max-width: 480px) {
	.cart-table th, .cart-table td { padding: 10px 8px; font-size: 14px; }
	.cart-actions .btn-lg, .checkout-form .btn-lg { width: 100%; }
	.software-actions .btn { width: 100%; }
}

/* ---------- Дашборд продавца (Мои программы) ---------- */
.ft-vd { margin: 0 0 30px; }
.ft-vd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}
.ft-vd-card {
	background: #ffffff;
	background: var(--color-p9);
	border: 1px solid #d1d1d1;
	border-color: var(--color-border);
	border-radius: var(--radius);
	padding: 18px 20px;
}
.ft-vd-label {
	margin-bottom: 6px;
	color: #989898;
	color: var(--color-p5);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.ft-vd-value {
	color: #17808B;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
}
.ft-vd-panel {
	background: #ffffff;
	background: var(--color-p9);
	border: 1px solid #d1d1d1;
	border-color: var(--color-border);
	border-radius: var(--radius);
	padding: 22px 24px;
	margin-bottom: 20px;
}
.ft-vd-panel h2 {
	margin: 0 0 16px;
	font-size: 18px;
	color: #17808B;
	color: var(--color-heading);
	font-family: var(--font-heading);
}
.ft-vd-bars { display: flex; flex-direction: column; gap: 8px; }
.ft-vd-bar-row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) 120px;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #6E747C;
	color: var(--color-body);
}
.ft-vd-bar-label { white-space: nowrap; color: #989898; color: var(--color-p5); }
.ft-vd-bar-track {
	display: block;
	height: 10px;
	border-radius: 999px;
	background: #F6F6F6;
	background: var(--color-bg-alt);
	overflow: hidden;
}
.ft-vd-bar-fill {
	display: block;
	height: 100%;
	min-width: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, #47BAC6, #17808B);
	background: linear-gradient(90deg, var(--color-p1), var(--color-p2));
}
.ft-vd-bar-value { text-align: right; font-weight: 700; color: #17808B; color: var(--color-heading); }

@media (max-width: 600px) {
	.ft-vd-bar-row { grid-template-columns: 80px minmax(0, 1fr) 90px; gap: 8px; }
	.ft-vd-value { font-size: 22px; }
}