/* Sensa Legal · стили
   Фирменные токены Sensa: фиолетовый #7C7196, текст #1C1C1E, фон gradient
*/

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1C1C1E;
  background: linear-gradient(180deg, #F8F8F6 0%, #F0EEEA 55%, #E6E2DC 100%);
  min-height: 100vh;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Шапка === */

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Логотип === */
/* Брендбук v1.0, §04: знак к кеглю 1.55, зазор 0.42 кегля,
   начертание Golos Text 550, трекинг 0. SF Pro в логотипе запрещён
   лицензией Apple — в остальном интерфейсе используется дальше. */

@font-face {
  font-family: 'Golos Text';
  src: url('golos-text-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8.4px;
  text-decoration: none;
  color: #2B2733;
}

.brand-sign {
  width: 31px;
  height: 31px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 550;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1;
  color: #2B2733;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav a {
  color: #6C6C70;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: #7C7196;
}

.nav a.active {
  color: #1C1C1E;
  font-weight: 500;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px;
  border-radius: 8px;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6C6C70;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lang-switch a:hover {
  color: #1C1C1E;
}

.lang-switch a.active {
  background: white;
  color: #1C1C1E;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* === Контейнер === */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Главный контент === */

.content {
  background: white;
  border-radius: 20px;
  padding: 48px;
  margin: 32px auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
  .content {
    padding: 28px 22px;
    border-radius: 16px;
    margin: 16px auto;
  }
}

.content h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.content .meta {
  color: #8E8E93;
  font-size: 13px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.content .meta div {
  margin-bottom: 2px;
}

.content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 14px;
  color: #1C1C1E;
}

.content h2:first-of-type {
  margin-top: 0;
}

.content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #2C2C2E;
}

.content p {
  margin-bottom: 14px;
  color: #2C2C2E;
}

.content ul,
.content ol {
  margin: 8px 0 16px 0;
  padding-left: 24px;
}

.content li {
  margin-bottom: 6px;
  color: #2C2C2E;
}

.content strong {
  color: #1C1C1E;
  font-weight: 600;
}

.content a {
  color: #7C7196;
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 113, 150, 0.3);
  transition: border-color 0.15s ease;
}

.content a:hover {
  border-bottom-color: #7C7196;
}

.content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: 32px 0;
}

.content em {
  color: #6C6C70;
  font-style: italic;
}

/* Подвал */

.site-footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: #8E8E93;
  font-size: 13px;
}

.site-footer a {
  color: #7C7196;
  text-decoration: none;
}

/* Главная страница: карточки */

.intro {
  text-align: center;
  padding: 48px 0 32px;
}

.intro h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.intro p {
  color: #6C6C70;
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto;
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px auto;
  max-width: 640px;
}

@media (max-width: 600px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
}

.doc-card {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: #1C1C1E;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.06);
}

.doc-card .icon {
  width: 32px;
  height: 32px;
  background: rgba(124, 113, 150, 0.12);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7C7196;
  margin-bottom: 14px;
}

/* Иконки — Tabler Icons (MIT), встроены инлайном:
   ни одного внешнего запроса со страницы правовых документов */
.doc-card .icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.doc-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.doc-card p {
  font-size: 14px;
  color: #6C6C70;
  margin: 0;
}


/* === Грузинская типографика ===
   Шрифт не подгружается извне (никаких Google Fonts на странице
   политики конфиденциальности) — только системный стек.
   macOS/iOS: SF Pro покрывает мхедрули. Android: Noto Sans Georgian.
   Windows: Sylfaen. Linux: DejaVu Sans / Noto.
*/

html[lang="ka"] body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text',
               'Noto Sans Georgian', 'BPG Arial', 'Sylfaen',
               system-ui, sans-serif;
  line-height: 1.68;
}

/* мхедрули не имеет заглавных и капители — отрицательный трекинг,
   рассчитанный на латиницу и кириллицу, здесь только вредит */
html[lang="ka"] .content h1,
html[lang="ka"] .content h2,
html[lang="ka"] .intro h1 {
  letter-spacing: 0;
}

html[lang="ka"] .content h1 {
  line-height: 1.3;
}

html[lang="ka"] .content h2 {
  line-height: 1.35;
}

/* грузинские названия документов длиннее — поджимаю навигацию */
html[lang="ka"] .nav {
  font-size: 13.5px;
  gap: 18px;
}


/* sensa.gigolaev.com integration */
@font-face {
  font-family: 'Golos Text';
  src: url('/fonts/golos-text-cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}

body {
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.content .meta,
.site-footer { color: #5f5d65; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.content a,
.content h1,
.content h2,
.content h3 { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .site-header .container {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 14px;
    align-items: start;
  }

  .nav > a {
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .lang-switch {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
