/* Base styles */
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #f8fafc;
}

.font-sans {
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.text-slate-900 {
  color: #0f172a;
}

.bg-slate-50 {
  background-color: #f8fafc;
}

.min-h-screen {
  min-height: 100vh;
}

/* Layout */
.max-w-6xl {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Header */
.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

.bg-white\/60 {
  background-color: rgba(255, 255, 255, 0.6);
}

.border-b {
  border-bottom-width: 1px;
  border-color: #e2e8f0;
}

/* Flexbox */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.md\:grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.md\:grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gap-6 {
  gap: 1.5rem;
}

/* Typography */
.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-semibold {
  font-weight: 600;
}

.font-extrabold {
  font-weight: 800;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Colors */
.text-slate-600 {
  color: #475569;
}

.text-slate-700 {
  color: #334155;
}

.text-slate-500 {
  color: #64748b;
}

/* Links */
.hover\:underline:hover {
  text-decoration: underline;
}

/* Buttons */
.bg-gradient-to-r {
  background: linear-gradient(to right, #4f46e5, #9333ea);
}

.hover\:from-purple-700:hover {
  background: linear-gradient(to right, #7e22ce, #4f46e5);
}

.rounded-md {
  border-radius: 0.375rem;
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.text-white {
  color: white;
}

.font-medium {
  font-weight: 500;
}

/* Borders */
.border {
  border-width: 1px;
}

.border-indigo-600 {
  border-color: #4f46e5;
}

.text-indigo-600 {
  color: #4f46e5;
}

.hover\:bg-indigo-50:hover {
  background-color: #e0e7ff;
}

/* Card */
.bg-white {
  background-color: white;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.p-6 {
  padding: 1.5rem;
}

/* List */
.list-disc {
  list-style-type: disc;
}

.list-inside {
  list-style-position: inside;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

/* Preformatted text */
.whitespace-pre-wrap {
  white-space: pre-wrap;
}

/* Footer */
.text-center {
  text-align: center;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* === Header Fix === */
.header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* === Image Container === */
.device-preview-container {
  height: 224px; /* ~56 * 4 = 224px для пропорций */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.device-preview-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* === Buttons Flex Fix === */
.flex-col {
  flex-direction: column;
}

.sm\:flex-row {
  flex-direction: row;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .text-3xl {
    font-size: 1.875rem;
  }

  .py-16 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .gap-8 {
    gap: 1rem;
  }

  .device-preview-container {
    height: 180px;
  }
}