/* assets/css/main.css */
:root {
	/* Основная палитра - свежий лайм */

	
	/* Дополнительные цвета */
	--accent: #ff0000;         /* Cyan для кнопок действий */
	--accent-dark: #e40000;
	--success: #3fc700;        /* Для успешных действий */
	--success-dark: #319f00;  
	--warning: #f59e0b;        /* Для истекающих купонов */
	--danger: #ef4444;         /* Для ошибок */
	--primary-bg: rgb(248 244 240);

	
	--primary: #f56302;
	--primary-dark: #f56302; /* Темнее для hover */
	--primary-light: #fea41c; /* Светлее для акцентов */
	

	--danger: #ef4444;
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-900: #111827;
	--border-radius: 8px;
	--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
	
	
	/* Нейтральные тона - профессиональные */
	--gray-50: #fafafa;
	--gray-100: #f4f4f5;
	--gray-200: #e4e4e7;
	--gray-300: #d4d4d8;
	--gray-400: #a1a1aa;
	--gray-500: #71717a;
	--gray-600: #52525b;
	--gray-700: #374151;
	--gray-800: #1f2937;
	--gray-900: #111827;
	
	/* Типографика */
	--font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	--font-display: 'Cal Sans', 'Inter', system-ui, sans-serif;
	
	/* Размеры и отступы */
	--radius-sm: 6px;
	--radius: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	
	/* Тени - мягкие и современные */
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	
	/* Градиенты */
	--gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	--gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
	--gradient-bg: linear-gradient(180deg, #ffffff 0%, var(--primary-bg) 100%);
}

/* Базовые стили */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--gray-800);
	/* background: var(--gradient-bg); */
	background: var(--primary-bg);
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.3;
	color: var(--gray-900);
	margin: 0 0 1rem 0;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }

p {
	margin: 0 0 1rem 0;
	color: var(--gray-700);
}

/* Кнопки - премиум стиль */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s;
}

.btn:hover::before {
	left: 100%;
}

.btn-primary {
	background: var(--gradient-primary);
	color: white;
	box-shadow: var(--shadow);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-lg);
}

.btn-success {
	background: var(--gradient-accent);
	color: white;
	box-shadow: var(--shadow);
}

.btn-outline {
	background: white;
	color: var(--primary);
	border: 1px solid var(--primary);
	box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
	background: var(--primary-bg);
	transform: translateY(-1px);
}

.header {
	background: var(--primary-bg);
	backdrop-filter: blur(20px);
	/* border-bottom: 1px solid var(--gray-200); */
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 0.5rem 1rem;
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0rem 1.5rem;
	gap: 2rem;
}

.nav-brand {
	display: flex;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--gray-900);
	transition: opacity 0.2s;
}

.logo:hover {
	opacity: 0.8;
}

.logo svg {
	width: 32px;
	height: 32px;
	fill: var(--primary);
}

/* Поиск - современный и удобный */
.nav-search {
	flex: 1;
	max-width: 500px;
	position: relative;
}

.search-form {
	position: relative;
	display: flex;
	align-items: center;
}

.search-input {
	width: 100%;
	padding: 0.75rem 3rem 0.75rem 1rem;
	border: 1px solid var(--gray-300);
	border-radius: var(--radius-lg);
	background: white;
	font-size: 0.875rem;
	transition: all 0.2s;
	box-shadow: var(--shadow-sm);
}

.search-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(50, 215, 75, 0.1);
	transform: translateY(-1px);
}

.search-btn {
	position: absolute;
	right: 1px;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 0px 10px 10px 0px;
	cursor: pointer;
	transition: all 0.2s;
	height: 40px;
	width: 40px;
}

.search-btn:hover {
	background: var(--primary-dark);
	transform: scale(1.05);
}

/* Карточки купонов - привлекательные и доверительные */
.coupons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 1.5rem;
	padding: 2rem 0;
}

.coupon-card {
	background: white;
	border-radius: var(--radius-xl);
	padding: 1.5rem;
	box-shadow: var(--shadow);
	border: 1px solid var(--gray-200);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
}

.coupon-card::before {
	/* content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gradient-primary); */
}

.coupon-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-xl);
	border-color: var(--primary-light);
}

.coupon-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
	gap: 1rem;
}

.coupon-title {
	flex: 1;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--gray-900);
	line-height: 1.4;
}

.discount-badge {
	background: var(--gradient-primary);
	color: white;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	white-space: nowrap;
	box-shadow: var(--shadow-sm);
}

.discount-badge.percentage {
	background: var(--gradient-primary);
}

.discount-badge.fixed {
	background: var(--gradient-accent);
}

.discount-badge.shipping {
	/* background: linear-gradient(135deg, var(--success) 0%, var(--primary) 100%); */
}

.coupon-description {
	color: var(--gray-600);
	font-size: 0.875rem;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.coupon-expiry {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--warning);
	font-size: 0.75rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
}

.coupon-actions {
	margin-bottom: 1rem;
}

.coupon-reveal-btn {
	width: 100%;
	padding: 1rem;
	font-size: 1rem;
	font-weight: 600;
	background: var(--gradient-primary);
	color: white;
	border-radius: var(--radius-lg);
	position: relative;
	overflow: hidden;
}

.coupon-success {
	text-align: center;
}

.revealed-code {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding: 1rem;
	background: var(--primary-bg);
	border-radius: var(--radius-lg);
	border: 2px dashed var(--primary);
}

.code-input {
	flex: 1;
	background: white;
	border: 1px solid var(--primary);
	border-radius: var(--radius);
	padding: 0.75rem;
	font-family: 'JetBrains Mono', monospace;
	font-weight: 600;
	font-size: 1.125rem;
	text-align: center;
	color: var(--primary-dark);
}

.copy-btn {
	padding: 0.75rem;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s;
}

.copy-btn:hover {
	background: var(--primary-dark);
	transform: scale(1.05);
}

.copy-btn.copied {
	background: var(--success);
}

.usage-hint {
	font-size: 0.75rem;
	color: var(--gray-500);
	margin: 0.5rem 0;
}

/* Социальные доказательства */
.coupon-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1rem;
	border-top: 1px solid var(--gray-200);
	font-size: 0.75rem;
	color: var(--gray-500);
}

.verified-badge {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--success);
	font-weight: 500;
}

/* Магазин страница */
.store-header {
	background: white;
	padding: 2rem 1rem;
	/* margin-bottom: 2rem; */
	margin: 2rem 1rem;
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
}

.store-info {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.store-logo {
	width: 80px;
	height: 80px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
	flex-shrink: 0;
}

.store-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.store-details h1 {
	margin-bottom: 0.5rem;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.store-stats {
	display: flex;
	gap: 2rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.stat {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--gray-600);
}

.stat.success {
	color: var(--success);
	font-weight: 500;
}

/* FAQ Section */
.faq-section {
	background: white;
	padding: 3rem 1rem;
	margin: 3rem 1rem;
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
}

.faq-item {
	/* border-bottom: 1px solid var(--gray-200); */
	padding: 0.5rem 0rem;
}

.faq-question {
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--gray-900);
	transition: color 0.2s;
	text-decoration: underline;
}

.faq-question:hover {
	color: var(--primary);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
	max-height: 200px;
	padding-top: 1rem;
}

/* Spinner Animation */
.spinner {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Touch States для мобильных */
.touch-active {
	transform: scale(0.98);
	opacity: 0.8;
}

/* Mobile Styles */
@media (max-width: 768px) {
	.container {
		padding: 0 1rem;
	}
	
	.nav {
		flex-wrap: wrap;
		gap: 1rem;
	}
	
	.nav-search {
		order: 3;
		flex-basis: 100%;
		margin-top: 1rem;
	}
	
	.coupons-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: 1rem 0;
	}
	
	.coupon-card {
		padding: 1.25rem;
	}
	
	.coupon-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
	
	.discount-badge {
		align-self: flex-start;
	}
	
	.store-info {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}
	
	.store-stats {
		justify-content: center;
		gap: 1rem;
	}
	
	.revealed-code {
		flex-direction: column;
		gap: 0.75rem;
	}
	
	.code-input {
		font-size: 1rem;
	}
	
	/* Mobile Menu */
	.mobile-menu-toggle {
		display: flex;
		flex-direction: column;
		gap: 3px;
		background: none;
		border: none;
		cursor: pointer;
		padding: 0.5rem;
	}
	
	.mobile-menu-toggle span {
		width: 20px;
		height: 2px;
		background: var(--gray-700);
		transition: all 0.3s;
	}
	
	.mobile-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		border-top: 1px solid var(--gray-200);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}
	
	.mobile-nav.active {
		max-height: 300px;
	}
	
	.mobile-nav-content {
		padding: 1rem;
	}
	
	.mobile-nav-item {
		display: block;
		padding: 1rem 0;
		color: var(--gray-700);
		text-decoration: none;
		border-bottom: 1px solid var(--gray-200);
		transition: color 0.2s;
	}
	
	.mobile-nav-item:hover {
		color: var(--primary);
	}
}

@media (max-width: 480px) {
	.coupon-card {
		padding: 1rem;
	}
	
	.store-logo {
		width: 60px;
		height: 60px;
	}
	
	h1 {
		font-size: 1.75rem;
	}
	
	h2 {
		font-size: 1.5rem;
	}
	
	.btn {
		padding: 0.875rem 1.25rem;
	}
}

/* Large Screens */
@media (min-width: 1400px) {
	.container {
		max-width: 1400px;
	}
	
	.coupons-grid {
		grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	}
}

/* Dark mode support (опционально) */
@media (prefers-color-scheme: dark) {
	:root {
		--gray-50: #1f2937;
		--gray-100: #374151;
		--gray-200: #4b5563;
		--gray-700: #d1d5db;
		--gray-800: #f3f4f6;
		--gray-900: #ffffff;
	}
}

/* Print Styles */
@media print {
	.header,
	.footer,
	.coupon-actions,
	.mobile-menu-toggle {
		display: none !important;
	}
	
	.coupon-card {
		break-inside: avoid;
		box-shadow: none;
		/* border: 1px solid var(--gray-300); */
	}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Focus states для keyboard navigation */
.btn:focus,
.search-input:focus,
.coupon-card:focus {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* Добавляем в конец main.css */
.main{
	padding: 1rem;
}
/* Hero Section */
.hero-section {
	/* background: var(--gradient-primary); */
	color: white;
	padding: 1rem 0rem;
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	margin-bottom: 1rem;
	/* text-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.hero-subtitle {
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin-bottom: 2rem;
	opacity: 0.9;
}

.hero-search {
	max-width: 500px;
	margin: 0 auto 2rem auto;
}

.hero-search .search-form {
	display: flex;
	background: white;
	border-radius: 50px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.hero-search .search-input {
	flex: 1;
	padding: 1rem 1.5rem;
	border: none;
	outline: none;
	font-size: 1rem;
	border-radius: 0;
}

.search-button {
	background: var(--primary-dark);
	color: white;
	border: none;
	padding: 1rem 1.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	transition: background 0.2s;
}

.search-button:hover {
	background: var(--accent-dark);
}

.hero-stats {
	display: flex;
	justify-content: center;
	gap: 3rem;
	margin-top: 2rem;
}

.hero-stats .stat {
	text-align: center;
}

.hero-stats .stat strong {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
}

.hero-stats .stat span {
	font-size: 0.875rem;
	opacity: 0.9;
}

/* Sections */
.popular-stores-section,
.featured-coupons-section,
.categories-section {
	padding: 1rem 0rem;
}

.popular-stores-section {
	/* background: white; */
}

.featured-coupons-section {
	background: var(--primary-bg);
}

.categories-section {
	background: var(--primary-bg);
}

/* Stores Grid */
.stores-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.store-card {
	background: white;
	padding: 1.5rem;
	border-radius: var(--radius-xl);
	text-decoration: none;
	color: inherit;
	text-align: center;
	box-shadow: var(--shadow);
	border: 1px solid var(--gray-200);
	transition: all 0.3s ease;
}

.store-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-xl);
	border-color: var(--primary-light);
}

.store-logo {
	width: 60px;
	height: 60px;
	margin: 0 auto 1rem auto;
	border-radius: var(--radius);
	overflow: hidden;
}

.store-placeholder {
	width: 100%;
	height: 100%;
	background: var(--gradient-primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
}

.store-info h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1rem;
	font-weight: 600;
}

.coupon-count {
	font-size: 0.75rem;
	color: var(--gray-500);
}

/* Categories Grid */
.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.category-card {
	background: white;
	padding: 1.5rem;
	border-radius: var(--radius-xl);
	text-decoration: none;
	color: inherit;
	text-align: center;
	box-shadow: var(--shadow);
	border: 1px solid var(--gray-200);
	transition: all 0.3s ease;
}

.category-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary-light);
}

.category-icon {
	font-size: 2.6rem;
	padding-right: 0.5rem;
	/* margin-bottom: 0.5rem; */
}

.category-card h3 {
	font-size: 0.875rem;
	margin: 0;
	font-weight: 500;
}

/* Footer Styles */
.footer {
	background: var(--gray-800);
	color: white;
	padding: 3rem 0 1rem 0;
	margin-top: 4rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
	padding: 0rem 2rem;
}

.footer-section h3 {
	color: white;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a {
	color: var(--gray-300);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--primary-light);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid var(--gray-700);
	color: var(--gray-400);
	font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.hero-stats {
		flex-direction: column;
		gap: 1rem;
	}
	
	.stores-grid,
	.categories-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
	
	.coupons-grid {
		grid-template-columns: 1fr;
	}
	
	.hero-section {
		padding: 1rem 0rem;
	}
	
	.popular-stores-section,
	.featured-coupons-section,
	.categories-section {
		padding: 2rem 0rem;
	}
}

/* Добавляем в конец main.css */

/* Mobile Menu Styles */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 3px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.mobile-menu-toggle span {
	width: 20px;
	height: 2px;
	background: var(--gray-700);
	transition: all 0.3s;
	border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border-top: 1px solid var(--gray-200);
	box-shadow: var(--shadow-lg);
	z-index: 50;
}

.mobile-nav.active {
	display: block;
}

.mobile-nav-content {
	padding: 1rem;
}

.mobile-nav-item {
	display: block;
	padding: 1rem 0;
	color: var(--gray-700);
	text-decoration: none;
	border-bottom: 1px solid var(--gray-200);
	transition: color 0.2s;
}

.mobile-nav-item:hover {
	color: var(--primary);
}

.mobile-nav-item:last-child {
	border-bottom: none;
}

/* Language Selector */
.language-selector select {
	background: white;
	border: 1px solid var(--gray-300);
	border-radius: var(--radius);
	padding: 0.5rem;
	font-size: 0.875rem;
	cursor: pointer;
}

/* Navigation Actions */
.nav-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: flex;
	}
	
	.nav-actions .language-selector {
		display: none;
	}
	
	.nav {
		position: relative;
	}
}