/* DaysTo.ru Optimized CSS - минифицированная версия только с используемыми стилями */

/* Reset & Base */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
}

a { color: inherit; text-decoration: inherit; }
button { font-family: inherit; font-size: 100%; line-height: inherit; color: inherit; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
img, svg { display: block; vertical-align: middle; }
svg { fill: currentColor; }

/* Layout */
.min-h-screen { min-height: 100vh; }
.h-full { height: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-48 { width: 12rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.min-w-\[80px\] { min-width: 80px; }

/* Display */
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-full { top: 100%; }
.left-0 { left: 0; }
.z-50 { z-index: 50; }

/* Flexbox & Grid */
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Spacing */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace; }

.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Colors - Text */
.text-white { color: rgb(255 255 255); }
.text-transparent { color: transparent; }
.text-gray-400 { color: rgb(156 163 175); }
.text-gray-500 { color: rgb(107 114 128); }
.text-gray-600 { color: rgb(75 85 99); }
.text-gray-700 { color: rgb(55 65 81); }
.text-gray-800 { color: rgb(31 41 55); }
.text-blue-600 { color: rgb(37 99 235); }
.text-amber-600 { color: rgb(217 119 6); }
.text-purple-600 { color: rgb(147 51 234); }
.text-pink-600 { color: rgb(219 39 119); }

/* Colors - Background */
.bg-white { background-color: rgb(255 255 255); }
.bg-gray-50 { background-color: rgb(249 250 251); }
.bg-gray-100 { background-color: rgb(243 244 246); }
.bg-gray-800 { background-color: rgb(31 41 55); }

/* Gradients */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.from-gray-50 { --tw-gradient-from: rgb(249 250 251); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-blue-50 { --tw-gradient-from: rgb(239 246 255); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-blue-600 { --tw-gradient-from: rgb(37 99 235); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-green-50 { --tw-gradient-from: rgb(240 253 244); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-amber-50 { --tw-gradient-from: rgb(255 251 235); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-purple-50 { --tw-gradient-from: rgb(250 245 255); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-pink-50 { --tw-gradient-from: rgb(253 242 248); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.via-purple-50 { --tw-gradient-stops: var(--tw-gradient-from), rgb(250 245 255), var(--tw-gradient-to); }

.to-white { --tw-gradient-to: rgb(255 255 255); }
.to-blue-100 { --tw-gradient-to: rgb(219 234 254); }
.to-purple-100 { --tw-gradient-to: rgb(243 232 255); }
.to-purple-600 { --tw-gradient-to: rgb(147 51 234); }
.to-amber-100 { --tw-gradient-to: rgb(254 243 199); }
.to-pink-50 { --tw-gradient-to: rgb(253 242 248); }
.to-pink-100 { --tw-gradient-to: rgb(252 231 243); }
.to-cyan-100 { --tw-gradient-to: rgb(207 250 254); }
.to-emerald-100 { --tw-gradient-to: rgb(209 250 229); }
.to-indigo-100 { --tw-gradient-to: rgb(224 231 255); }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

/* Borders */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-gray-100 { border-color: rgb(243 244 246); }
.border-gray-200 { border-color: rgb(229 231 235); }
.border-gray-700 { border-color: rgb(55 65 81); }
.border-blue-100 { border-color: rgb(219 234 254); }
.border-blue-200 { border-color: rgb(191 219 254); }
.border-green-200 { border-color: rgb(187 247 208); }
.border-amber-200 { border-color: rgb(253 230 138); }
.border-purple-200 { border-color: rgb(233 213 255); }
.border-pink-200 { border-color: rgb(251 207 232); }

/* Border Radius */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-b-lg { border-bottom-right-radius: 0.5rem; border-bottom-left-radius: 0.5rem; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

/* Opacity & Visibility */
.opacity-0 { opacity: 0; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Transform */
.hover\:scale-105:hover { transform: scale(1.05); }
.group-hover\:translate-x-1:hover { transform: translateX(0.25rem); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Group Hover States */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }
.group:hover .group-hover\:text-blue-600 { color: rgb(37 99 235); }
.group:hover .group-hover\:text-green-600 { color: rgb(22 163 74); }
.group:hover .group-hover\:text-purple-600 { color: rgb(147 51 234); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* Hover States */
.hover\:bg-gray-50:hover { background-color: rgb(249 250 251); }
.hover\:bg-gray-100:hover { background-color: rgb(243 244 246); }
.hover\:bg-gray-200:hover { background-color: rgb(229 231 235); }
.hover\:text-blue-600:hover { color: rgb(37 99 235); }
.hover\:text-white:hover { color: rgb(255 255 255); }
.hover\:border-blue-200:hover { border-color: rgb(191 219 254); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

/* Responsive - sm (640px) */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Responsive - md (768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:gap-8 { gap: 2rem; }
  .md\:mt-0 { margin-top: 0; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:min-w-\[120px\] { min-width: 120px; }
}

/* Responsive - lg (1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Custom animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Special classes for event countdown */
.countdown-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Yandex Ad container */
.yandex-ad-container {
  margin: 2rem 0;
  text-align: center;
}