/* Modern responsive layout with dark mode */
/* Base reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --bg: #0b0e12;
  --bg-elev: #12161b;
  --text: #e6edf3;
  --muted: #9aa4af;
  --brand: #4aa8ff;
  --brand-2: #8b5cf6;
  --card: #0f1318;
  --border: #212933;
}
/* Light scheme (auto) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-elev: #f7f8fa;
    --text: #0f1720;
    --muted: #4b5563;
    --brand: #2563eb;
    --brand-2: #7c3aed;
    --card: #ffffff;
    --border: #e5e7eb;
  }
}
/* Manual theme override */
:root[data-theme="dark"] {
  --bg: #0b0e12; --bg-elev: #12161b; --text: #e6edf3; --muted: #9aa4af; --brand: #4aa8ff; --brand-2: #8b5cf6; --card:#0f1318; --border:#212933;
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-elev: #f7f8fa; --text: #0f1720; --muted:#4b5563; --brand:#2563eb; --brand-2:#7c3aed; --card:#ffffff; --border:#e5e7eb;
}

body {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
}

/* Header / nav */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(8px);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
}
.navbar {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px;
}
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: inline-block;
}
nav a {
  color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 500;
}
nav a:hover, nav a[aria-current="page"] {
  background: color-mix(in oklab, var(--brand) 20%, transparent);
}

/* Mobile nav */
.menu-toggle { display: none; }
.links { display: flex; gap: 4px; align-items: center; }
@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; align-items:center; gap:8px; cursor:pointer; padding:8px 10px; border:1px solid var(--border); border-radius:10px; }
  .links { display: none; flex-direction: column; padding: 8px 0; }
  .links.open { display: flex; }
}

/* Containers / cards */
.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.hero {
  padding: 48px 0; text-align: center;
  background: radial-gradient(1200px 400px at 50% -20%, color-mix(in oklab, var(--brand) 18%, transparent) 0%, transparent 60%);
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 12px 30px rgba(0,0,0,0.16);
}
/* Typography */
h1 { font-size: clamp(28px, 3vw, 44px); line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: clamp(22px, 2.4vw, 32px); margin: 24px 0 8px; }
h3 { font-size: 20px; margin: 16px 0 6px; }
p  { margin: 8px 0; color: var(--text); }
.muted { color: var(--muted); }
/* Footer */
footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 24px 16px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.footer-inner a { color: var(--muted); text-decoration:none; margin-right:12px; }
.footer-inner a:hover { color: var(--text); }
small { color: var(--muted); }
.badge { font-size: 12px; padding: 4px 8px; background: color-mix(in oklab, var(--brand) 18%, transparent); border-radius: 999px; border: 1px solid var(--border); }
.main-content { padding: 24px 0 64px; }
article.prose { display:block; }
article.prose img, article.prose video, article.prose iframe { max-width: 100%; border-radius: 12px; }
article.prose table { width: 100%; border-collapse: collapse; }
article.prose th, article.prose td { padding: 8px; border: 1px solid var(--border); }
kbd { background: var(--bg-elev); border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

/* === Centered text adjustments (requested) === */
.container, .hero, .card, article.prose { text-align: center; }
article.prose img, article.prose video, article.prose iframe { display: block; margin-left: auto; margin-right: auto; }
article.prose table { margin-left: auto; margin-right: auto; text-align: center; }
article.prose th, article.prose td { text-align: center; }
h1, h2, h3, p { text-align: center; }


/* === Services grid === */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; text-align: center; }
.service-card .icon-wrap { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto 12px; display:flex; align-items:center; justify-content:center; background: color-mix(in oklab, var(--brand) 16%, transparent); }
.service-card .icon-wrap img, .service-card .icon-wrap svg { width: 46px; height: 46px; color: var(--brand); }
.service-card h3 { margin-top: 6px; margin-bottom: 8px; }
.service-card p { color: var(--muted); }
.contact-card { grid-column: 1 / -1; }
.contact-card a { color: var(--brand); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }


/* === Service card images (realistic photos) === */
.service-card .card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
  display: block;
  border: 1px solid var(--border);
}

/* === Compact services layout (3/2/1 columns) === */
.services-grid { 
  display: grid; 
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: 12px; 
}
@media (max-width: 900px) { 
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } 
}
@media (max-width: 560px) { 
  .services-grid { grid-template-columns: 1fr; gap: 8px; } 
}
.service-card { padding: 14px; border-radius: 14px; }
.service-card .card-img { border-radius: 12px; margin-bottom: 8px; }
.service-card h3 { margin-top: 4px; margin-bottom: 6px; }
.service-card p { font-size: 0.98rem; line-height: 1.5; }

/* === Utilities === */
.pt-2 { padding-top: 8px; }
.pt-4 { padding-top: 16px; }
.pt-6 { padding-top: 24px; }
.pt-8 { padding-top: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.logo-center{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 24px 0;
}
.logo-center img{
  height: 200px;   /* смени размера при нужда */
  width: auto;
}