/* ============================================================
   solorune-lab
   Шрифты: Google Sans, Google Sans Code (self-hosted)
   Иконки: Tabler Icons (inline SVG)
   ============================================================ */

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/google-sans-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/google-sans-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/google-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/google-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans Code';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/google-sans-code-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans Code';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/google-sans-code-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --font-sans: 'Google Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Google Sans Code', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --bg: #0b0d0c;
  --surface: #111514;
  --surface-2: #171c1a;
  --line: #232a27;
  --line-strong: #333c38;
  --text: #eef1ef;
  --text-2: #a4ada8;
  --text-3: #737d78;
  --accent: #4fdcae;
  --accent-strong: #6fe7c0;
  --accent-soft: rgba(79, 220, 174, 0.14);
  --accent-ink: #06231a;

  --container: 1120px;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #eef1ef;
  --line: #e2e7e4;
  --line-strong: #ccd4d0;
  --text: #101513;
  --text-2: #525d58;
  --text-3: #69736d;
  --accent: #0a7f64;
  --accent-strong: #086a53;
  --accent-soft: rgba(10, 127, 100, 0.10);
  --accent-ink: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.logo-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ── NAV ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  height: 64px;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.icon-btn:active {
  transform: translateY(1px);
}
.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: flex;
}

.menu-btn {
  display: none;
}
.menu-btn .menu-icon-open,
.menu-btn .menu-icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-btn .menu-icon-close {
  display: none;
}
.menu-btn[aria-expanded="true"] .menu-icon-open {
  display: none;
}
.menu-btn[aria-expanded="true"] .menu-icon-close {
  display: flex;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  padding: 8px 32px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 11px 0;
  font-size: 15px;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu a:hover {
  color: var(--text);
}

/* ── HERO ────────────────────────────────────────────────── */

.hero {
  padding: 136px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.5fr);
  gap: 64px;
  align-items: end;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 26px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--text-2);
  max-width: 44ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-facts {
  border-top: 1px solid var(--line);
}
.hero-facts > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.hero-facts dt {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 3px;
}
.hero-facts dd {
  font-size: 13.5px;
  color: var(--text-2);
}

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
    color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-strong);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text-3);
}

/* ── SECTIONS ────────────────────────────────────────────── */

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.section-head .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.section-head h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.prose .lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.01em;
}

.prose {
  max-width: 68ch;
}
.prose p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.72;
  text-wrap: pretty;
}
.prose p + p {
  margin-top: 16px;
}
.prose .lead + p {
  margin-top: 24px;
}
.prose strong {
  color: var(--text);
  font-weight: 500;
}

/* ── STACK ───────────────────────────────────────────────── */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  list-style: none;
  border-top: 1px solid var(--line);
}
.stack-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.stack-item .logo-mark {
  color: var(--text-2);
  transition: color 160ms var(--ease);
}
.stack-item:hover .logo-mark {
  color: var(--accent);
}

/* ── PROJECT ─────────────────────────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
}
.project-grid h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.project-grid p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.project-grid p + p {
  margin-top: 14px;
}
.project-grid strong {
  color: var(--text);
  font-weight: 500;
}
.project-grid .btn {
  margin-top: 28px;
}

.project-meta {
  border-top: 1px solid var(--line);
}
.project-meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.project-meta dt {
  font-size: 12px;
  color: var(--text-3);
}
.project-meta dd {
  font-size: 12.5px;
  color: var(--text-2);
  text-align: right;
}

/* ── SERVICES ────────────────────────────────────────────── */

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}
.service {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.service.is-wide {
  grid-column: 1 / -1;
}
.service > .icon {
  width: 21px;
  height: 21px;
  color: var(--accent);
  margin-top: 2px;
}
.service h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}
.service p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 46ch;
  text-wrap: pretty;
}
.service-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}

/* ── PRIVACY ─────────────────────────────────────────────── */

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.privacy-lead {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 18ch;
  text-wrap: balance;
}
.privacy-list {
  list-style: none;
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-2);
}
.privacy-list li:first-child {
  border-top: 1px solid var(--line);
}
.privacy-list .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  margin-top: 3px;
}

/* ── CONTACT ─────────────────────────────────────────────── */

.contact-lead {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 16ch;
  margin-bottom: 34px;
  text-wrap: balance;
}

.contact-list {
  border-top: 1px solid var(--line);
}
.contact-link {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.contact-link:hover {
  color: var(--accent);
}
.contact-link > .icon {
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: color 160ms var(--ease);
}
.contact-link:hover > .icon {
  color: var(--accent);
}
.contact-name {
  font-size: 16px;
  font-weight: 500;
}
.contact-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.contact-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform 160ms var(--ease), color 160ms var(--ease);
}
.contact-link:hover .contact-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* ── PAGE HERO ───────────────────────────────────────────── */

.page-hero {
  padding: 132px 0 64px;
  border-bottom: 1px solid var(--line);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 160ms var(--ease);
}
.back-link:hover {
  color: var(--text);
}
.back-link .icon {
  width: 15px;
  height: 15px;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ── SPEC GROUPS ─────────────────────────────────────────── */

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.spec-group h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.spec-group dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
}
.spec-group dt {
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.spec-group dd {
  font-size: 13px;
  color: var(--text-2);
  text-align: right;
}

/* ── TOOL CLOUD ──────────────────────────────────────────── */

.tool-list {
  columns: 3;
  column-gap: 40px;
  list-style: none;
  font-size: 14.5px;
  color: var(--text-2);
}
.tool-list li {
  padding: 7px 0;
  break-inside: avoid;
}

/* ── CTA ROW ─────────────────────────────────────────────── */

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}
.cta-row p {
  font-size: 14px;
  color: var(--text-2);
}
.cta-row strong {
  color: var(--text);
  font-weight: 500;
}

/* ── FOOTER ──────────────────────────────────────────────── */

.footer {
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
}
.footer-inner a {
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-inner a:hover {
  color: var(--text-2);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid,
  .project-grid,
  .privacy-grid,
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding-top: 120px;
  }
  .hero-facts {
    max-width: 420px;
  }
  .stack-grid {
    grid-template-columns: 1fr 1fr;
  }
  .privacy-lead {
    max-width: 24ch;
  }
  .tool-list {
    columns: 2;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .mobile-menu {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding: 108px 0 64px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }
  .hero-desc {
    font-size: 16px;
  }
  .section {
    padding: 60px 0;
  }
  .section-head {
    margin-bottom: 28px;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .service.is-wide {
    grid-column: auto;
  }
  .contact-link {
    grid-template-columns: 22px minmax(0, 1fr) 18px;
  }
  .contact-meta {
    display: none;
  }
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .tool-list {
    columns: 1;
  }
  .page-hero {
    padding: 108px 0 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
