/* Kalusoft — the only stylesheet. Dark for every visitor. */
:root {
  --bg: #0f1115;
  --surface: #171a20;
  --border: #2a2e36;
  --text: #e8e8ea;
  --muted: #9aa0aa;
  --accent: #14b8a6;
  --on-accent: #04201d;
  --radius: 12px;
  --max: 1100px;
  --gutter: 16px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans Georgian", "Sylfaen", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

/* Skip link: hidden until focused */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: inline-block; border-radius: 6px; }
.brand img { width: 152px; height: 32px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9375rem;
}
.site-nav a:hover { background: var(--surface); color: var(--accent); }
.site-nav .lang {
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
}
.site-nav .lang:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 559px) {
  .site-nav { width: 100%; }
  .site-nav ul { margin-left: -8px; gap: 2px; }
  .site-nav a { padding: 8px; font-size: 0.875rem; }
  .site-nav .lang { margin-left: 2px; }
}

/* Sections */
main section { padding: 72px 0; }
main section + section { border-top: 1px solid var(--border); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(1.875rem, 1.2rem + 3.2vw, 3.25rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 16px; }

.lead { color: var(--muted); font-size: 1.1875rem; max-width: 40em; }

.hero { padding: 96px 0 88px; }
.hero h1 { max-width: 18em; }
.hero .lead { margin-bottom: 32px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #2dd4bf; border-color: #2dd4bf; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--text); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Products */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin-top: 32px;
}
.tile {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tile p { color: var(--muted); flex: 1; }
.tile .btn { align-self: flex-start; margin-top: 8px; }

/* About */
.about p { max-width: 46em; color: var(--muted); }

/* Contact */
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list .btn { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 20px; }
.contact-list .btn-label { display: inline-flex; align-items: center; gap: 10px; }
.contact-list .btn-value { color: var(--muted); font-weight: 400; font-size: 0.9375rem; }

@media (max-width: 559px) {
  .contact-list li, .contact-list .btn { width: 100%; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer p { margin: 0; }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

main:focus { outline: none; }
