/**
 * Ru Diplomas — Additional Theme Styles
 *
 * Extra styles for shortcodes, components, and utilities
 * not covered in the main style.css.
 */

/* ============================================
   Hero Section
   ============================================ */
.rd-hero {
	background: linear-gradient(135deg, var(--rd-gray-50) 0%, #ffffff 100%);
	padding-top: clamp(4rem, 10vw, 7rem);
	padding-bottom: clamp(4rem, 10vw, 7rem);
}

.rd-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--rd-gray-900);
	max-width: 800px;
	margin: 0 auto 1.5rem;
}

.rd-hero__subtitle {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: var(--rd-gray-500);
	max-width: 640px;
	margin: 0 auto 2rem;
	line-height: 1.6;
}

.rd-hero__buttons {
	justify-content: center;
	flex-wrap: wrap;
}

/* ============================================
   Steps Section
   ============================================ */
.rd-step {
	text-align: center;
	padding: 2rem 1rem;
	position: relative;
}

.rd-step__number {
	width: 40px;
	height: 40px;
	background: var(--rd-primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	margin: 0 auto 1rem;
}

.rd-step__icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.rd-step__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--rd-gray-900);
}

.rd-step__text {
	font-size: 0.875rem;
	color: var(--rd-gray-500);
	line-height: 1.5;
}

/* Timeline layout variant */
.rd-steps--timeline .rd-step::after {
	content: '';
	position: absolute;
	top: 3rem;
	right: -50%;
	width: 100%;
	height: 2px;
	background: var(--rd-border);
	z-index: -1;
}

.rd-steps--timeline .rd-step:last-child::after {
	display: none;
}

/* ============================================
   Benefits Section
   ============================================ */
.rd-benefit {
	text-align: center;
	padding: 2rem 1.5rem;
}

.rd-benefit__icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.rd-benefit__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: var(--rd-gray-900);
}

.rd-benefit__text {
	font-size: 0.9375rem;
	color: var(--rd-gray-500);
	line-height: 1.5;
}

/* Inline variant */
.rd-benefits--inline .rd-benefit {
	display: flex;
	align-items: flex-start;
	text-align: left;
	gap: 1rem;
	padding: 1rem;
}

.rd-benefits--inline .rd-benefit__icon {
	font-size: 2rem;
	flex-shrink: 0;
	margin-bottom: 0;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.rd-testimonial-card .rd-card__body {
	padding: 1.5rem;
}

.rd-testimonial__rating {
	color: var(--rd-accent);
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
	letter-spacing: 2px;
}

.rd-testimonial__text {
	font-size: 0.9375rem;
	color: var(--rd-gray-600);
	line-height: 1.6;
	margin-bottom: 1rem;
	font-style: italic;
}

.rd-testimonial__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
}

.rd-testimonial__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.rd-testimonial__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rd-testimonial__name {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--rd-gray-900);
}

.rd-testimonial__city {
	font-size: 0.8125rem;
	color: var(--rd-gray-400);
}

/* ============================================
   Diplom Card Specifics
   ============================================ */
.rd-diplom-card .rd-card__actions {
	margin-top: auto;
}

.rd-diplom-card .rd-quick-order {
	display: inline-block;
}

.rd-diplom-card .rd-quick-order-btn {
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
}

/* ============================================
   Catalog CTA (WooCommerce)
   ============================================ */
.rd-catalog-cta {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rd-border);
}

.rd-catalog-cta__price {
	margin-bottom: 1rem;
}

.rd-catalog-cta__price .price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--rd-primary);
}

.rd-catalog-cta__buttons {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

.rd-loop-cta {
	display: flex;
	gap: 0.5rem;
	margin-top: auto;
	padding: 0 1.25rem 1.25rem;
}

/* ============================================
   City Selector Inline
   ============================================ */
.rd-city-selector {
	display: inline-block;
	position: relative;
}

.rd-city-card {
	display: block;
	padding: 1rem 1.25rem;
	font-weight: 500;
	color: var(--rd-gray-700);
	text-decoration: none;
	transition: all 200ms ease;
}

.rd-city-card:hover {
	background: var(--rd-primary);
	color: #fff;
	text-decoration: none;
}

.rd-city-top {
	color: var(--rd-accent);
	margin-left: 0.25rem;
}

/* Alphabet navigation */
.rd-city-alphabet__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rd-border);
}

.rd-city-alphabet__letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--rd-gray-100);
	border-radius: var(--rd-border-radius);
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--rd-gray-700);
	transition: all 200ms ease;
}

.rd-city-alphabet__letter:hover {
	background: var(--rd-primary);
	color: #fff;
	text-decoration: none;
}

.rd-city-alphabet__group {
	margin-bottom: 2rem;
}

.rd-city-alphabet__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--rd-primary);
	margin-bottom: 1rem;
}

/* ============================================
   Archive Pages
   ============================================ */
.rd-archive-title {
	margin-bottom: 1.5rem;
}

.rd-archive-description {
	max-width: 720px;
}

.rd-archive-grid {
	margin-top: 2rem;
}

/* ============================================
   Single Pages
   ============================================ */
.rd-single-content {
	max-width: 720px;
}

.rd-single-description {
	max-width: 800px;
}

.rd-single-description h2 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}

/* ============================================
   Pagination
   ============================================ */
.rd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	margin: 0 0.25rem;
	background: var(--rd-white);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-border-radius);
	color: var(--rd-gray-700);
	font-weight: 500;
	font-size: 0.9375rem;
	transition: all 200ms ease;
}

.rd-pagination .page-numbers:hover {
	background: var(--rd-gray-50);
	border-color: var(--rd-primary);
	color: var(--rd-primary);
	text-decoration: none;
}

.rd-pagination .page-numbers.current {
	background: var(--rd-primary);
	border-color: var(--rd-primary);
	color: #fff;
}

.rd-pagination .page-numbers.dots {
	border-color: transparent;
}

/* ============================================
   Comment Form
   ============================================ */
.rd-comments {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--rd-border);
}

.rd-comments__title {
	margin-bottom: 1.5rem;
}

.rd-comment {
	margin-bottom: 1.5rem;
}

.rd-comment__body {
	padding: 1rem;
	background: var(--rd-gray-50);
	border-radius: var(--rd-border-radius);
}

.rd-comment-form {
	margin-top: 2rem;
	padding: 2rem;
	background: var(--rd-gray-50);
	border-radius: var(--rd-border-radius-lg);
}

/* ============================================
   Top Navigation (header top bar)
   ============================================ */
.rd-top-nav__list {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rd-top-nav__list a {
	color: var(--rd-gray-300);
	font-size: 0.8125rem;
	transition: color 200ms ease;
}

.rd-top-nav__list a:hover {
	color: #fff;
	text-decoration: none;
}

/* ============================================
   Widgets / Sidebar
   ============================================ */
.rd-sidebar .widget {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: var(--rd-gray-50);
	border-radius: var(--rd-border-radius);
}

.rd-sidebar .widget-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--rd-gray-900);
}

.rd-sidebar .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rd-sidebar .widget ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--rd-border);
}

.rd-sidebar .widget ul li:last-child {
	border-bottom: none;
}

.rd-sidebar .widget a {
	color: var(--rd-gray-600);
	font-size: 0.9375rem;
}

.rd-sidebar .widget a:hover {
	color: var(--rd-primary);
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
	.rd-hero__title {
		font-size: 1.75rem;
	}

	.rd-hero__subtitle {
		font-size: 1rem;
	}

	.rd-hero__buttons {
		flex-direction: column;
		align-items: center;
	}

	.rd-hero__buttons .rd-btn {
		width: 100%;
		max-width: 320px;
	}

	.rd-steps--timeline .rd-step::after {
		display: none;
	}

	.rd-single-grid {
		grid-template-columns: 1fr !important;
	}

	.rd-archive-filters .rd-filters-form {
		flex-direction: column;
	}

	.rd-archive-filters .rd-form-group {
		width: 100%;
	}

	.rd-catalog-cta__buttons {
		flex-direction: column;
	}

	.rd-loop-cta {
		flex-direction: column;
	}

	.rd-top-nav__list {
		gap: 0.75rem;
	}
}

/* ============================================
   Accessibility: focus-visible polyfill support
   ============================================ */
.js-focus-visible :focus:not(.focus-visible) {
	outline: none;
}

.js-focus-visible .focus-visible {
	outline: 2px solid var(--rd-primary);
	outline-offset: 2px;
}
