/* Современные стили в стиле фронтенда */
:root {
  --radius: 0.5rem;
  --background: hsl(0 0% 100%);
  --foreground: hsl(222.2 84% 4.9%);
  --card: #ffffff;
  --card-foreground: #171717;
  --popover: #ffffff;
  --popover-foreground: #171717;
  --primary: hsl(221.2 83.2% 53.3%);
  --primary-foreground: hsl(210 40% 98%);
  --secondary: hsl(217.2 32.6% 17.5%);
  --secondary-foreground: hsl(210 40% 98%);
  --muted: hsl(217.2 32.6% 17.5%);
  --muted-foreground: hsl(215 20.2% 65.1%);
  --accent: #f5f5f5;
  --accent-foreground: #171717;
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;
  --border: hsl(214.3 31.8% 91.4%);
  --input: #e5e5e5;
  --ring: #737373;
  --chart-1: #0ea5e9;
  --chart-2: #3b82f6;
  --chart-3: #6366f1;
  --chart-4: #8b5cf6;
  --chart-5: #a855f7;
  --sidebar: #fafafa;
  --sidebar-foreground: #171717;
  --sidebar-primary: #171717;
  --sidebar-primary-foreground: #fafafa;
  --sidebar-accent: #f5f5f5;
  --sidebar-accent-foreground: #171717;
  --sidebar-border: #e5e5e5;
  --sidebar-ring: #737373;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
  outline-color: var(--ring);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
}

/* Утилиты */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.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; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.leading-none { line-height: 1; }
.text-center { text-align: center; }
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.transition-all { transition: all 0.15s ease-in-out; }
.disabled\:pointer-events-none:disabled { pointer-events: none; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.outline-none { outline: none; }
.focus-visible\:border-ring:focus-visible { border-color: var(--ring); }
.focus-visible\:ring-ring\/50:focus-visible { box-shadow: 0 0 0 3px rgba(115, 115, 115, 0.5); }
.aria-invalid\:ring-destructive\/20[aria-invalid="true"] { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
.aria-invalid\:border-destructive[aria-invalid="true"] { border-color: var(--destructive); }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }

/* Responsive grid */
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Background colors */
.bg-muted { background-color: var(--muted); }

/* Компоненты */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-header {
  display: grid;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0.375rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.card-title {
  line-height: 1;
  font-weight: 600;
}

.card-content {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  outline: none;
  cursor: pointer;
  border: none;
  height: 2.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.button:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(115, 115, 115, 0.5);
}

.button[aria-invalid="true"] {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  border-color: var(--destructive);
}

.button-default {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.button-default:hover {
  background-color: rgba(23, 23, 23, 0.9);
}

.button-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.button-secondary:hover {
  background-color: rgba(245, 245, 245, 0.8);
}

.button-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.button-destructive:hover {
  background-color: rgba(239, 68, 68, 0.9);
}

.input {
  display: flex;
  height: 2.25rem;
  width: 100%;
  min-width: 0;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background-color: transparent;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  outline: none;
}

.input[type="file"] {
  padding: 0.5rem;
  height: auto;
  min-height: 2.25rem;
  cursor: pointer;
}

.input:disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(115, 115, 115, 0.5);
}

.input[aria-invalid="true"] {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  border-color: var(--destructive);
}

.input::placeholder {
  color: var(--muted-foreground);
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--foreground);
}

.label-destructive {
  color: var(--destructive);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-destructive {
  color: var(--destructive);
}

.underline {
  text-decoration: underline;
}

.underline-offset-4 {
  text-underline-offset: 4px;
}

/* Анимации */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
  .text-base {
    font-size: 0.875rem;
  }
  
  .card {
    margin: 1rem;
    padding: 1rem;
  }
  
  .card-header,
  .card-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.main-header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav .btn.btn-primary {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--primary-foreground);
  text-align: center;
  padding: 6rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
}

.btn.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-foreground);
  color: var(--primary-foreground);
}

.btn.btn-secondary:hover {
  background-color: var(--primary-foreground);
  color: var(--primary);
}

/* About Section */
.about-section {
  padding: 4rem 1rem;
  background-color: hsl(210, 40%, 98%);
}

.about-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: center;
}

.feature-item {
  background-color: var(--background);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.feature-item img {
  height: 50px;
  margin-bottom: 1.5rem;
}

.feature-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

/* Footer */
.main-footer-bottom {
  background-color: var(--secondary);
  color: var(--muted-foreground);
  text-align: center;
  padding: 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero .subtitle {
    font-size: 1.1rem;
  }
  .main-header .container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Form & Card Styles */
.card {
  background-color: #ffffff;
  color: var(--text-color);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
} 