/* Kluis — offsite backup storage. Светлая тема: фарфор + глубокий сине-зелёный. */
:root {
  --paper: #f7f4ee;
  --paper-soft: #efe9df;
  --card: #fffdf9;
  --ink: #16333a;
  --ink-soft: #4c6067;
  --line: #ddd4c6;
  --accent: #0e7c66;
  --accent-deep: #0a5c4c;
  --accent-soft: #dcefe9;
  --gold: #b98a2f;
  --bad: #b0492e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
}

a { color: var(--accent-deep); }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, .kl-display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ---------- шапка ---------- */
.kl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 30px;
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.kl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 21px;
}
.kl-brand:hover { text-decoration: none; }
.kl-brand small {
  display: block;
  font-family: "Public Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kl-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.kl-nav a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.kl-nav a:hover { color: var(--ink); }
.kl-nav .kl-nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
}
.kl-nav .kl-nav-cta:hover { background: var(--accent-deep); color: #fff; }

/* ---------- hero ---------- */
.kl-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 84px 30px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.kl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0 0 22px;
}
.kl-eyebrow i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.kl-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin: 0 0 22px;
}
.kl-hero .kl-lead {
  font-size: 18.5px;
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 540px;
}
.kl-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.kl-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.kl-btn-solid { background: var(--accent); color: #fff; }
.kl-btn-solid:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.kl-btn-line { border-color: var(--ink); color: var(--ink); }
.kl-btn-line:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.kl-hero-figure { margin: 0; }
.kl-hero-figure img {
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(22, 51, 58, 0.45);
}
.kl-hero-figure figcaption {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-top: 12px;
  text-align: center;
}

/* ---------- секции ---------- */
.kl-wrap { max-width: 1140px; margin: 0 auto; padding: 64px 30px; }
.kl-wrap + .kl-wrap { padding-top: 0; }
.kl-sec-title { font-size: 32px; margin: 0 0 10px; }
.kl-sec-sub { color: var(--ink-soft); margin: 0 0 40px; max-width: 640px; }

.kl-band {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.kl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.kl-card h3 { margin: 0 0 10px; font-size: 20px; }
.kl-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.kl-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 18px;
}

/* ---------- тарифы ---------- */
.kl-tiers { align-items: stretch; }
.kl-tier {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.kl-tier .kl-price {
  font-family: "Fraunces", serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
}
.kl-tier .kl-price small {
  font-family: "Public Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.kl-tier ul { margin: 0; padding: 0; list-style: none; flex: 1; }
.kl-tier li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.kl-tier li::before {
  content: "";
  position: absolute;
  left: 2px; top: 14px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.kl-tier .kl-flag {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--gold);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- поток / пояснение ---------- */
.kl-flow {
  background: var(--ink);
  color: #eef3f1;
  border-radius: 24px;
  padding: 44px;
}
.kl-flow h2 { color: #fff; margin: 0 0 14px; font-size: 28px; }
.kl-flow p { color: #b9c8c3; margin: 0 0 26px; max-width: 720px; }
.kl-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.kl-flow-item {
  border: 1px solid #2c4a4f;
  border-radius: 16px;
  padding: 20px;
}
.kl-flow-item b { display: block; margin-bottom: 6px; color: #fff; }
.kl-flow-item span { color: #9fb3ad; font-size: 14.5px; }
.kl-flow-item .kl-arrow { color: var(--gold); font-weight: 700; }

/* ---------- статус-полоса ---------- */
.kl-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.kl-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 8px 16px;
}
.kl-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ---------- частые вопросы ---------- */
.kl-faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
  padding: 0 24px;
}
.kl-faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  font-size: 16.5px;
  list-style: none;
}
.kl-faq summary::-webkit-details-marker { display: none; }
.kl-faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  margin-left: 16px;
}
.kl-faq details[open] summary::after { content: "–"; }
.kl-faq details p { margin: 0 0 22px; color: var(--ink-soft); }

/* ---------- форма входа ---------- */
.kl-auth { max-width: 440px; margin: 0 auto; }
.kl-auth .kl-card { padding: 36px; }
.kl-field { margin-bottom: 20px; }
.kl-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.kl-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
}
.kl-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.kl-auth .kl-btn { width: 100%; text-align: center; }
.kl-auth-note { color: var(--ink-soft); font-size: 14px; margin: 20px 0 0; text-align: center; }
.kl-alert {
  border: 1.5px solid #d8b4a4;
  background: #f7e9e2;
  color: var(--bad);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ---------- таблица сравнения ---------- */
.kl-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 18px; overflow: hidden; }
.kl-table th, .kl-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.kl-table th {
  background: var(--paper-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kl-table tr:last-child td { border-bottom: none; }

/* ---------- футер ---------- */
.kl-foot {
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 40px 30px 48px;
  color: var(--ink-soft);
  font-size: 14px;
}
.kl-foot-in {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.kl-foot a { color: var(--ink-soft); }
.kl-foot a:hover { color: var(--ink); }

/* ---------- страницы ошибок ---------- */
.kl-plain {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.kl-plain .kl-code {
  font-family: "Fraunces", serif;
  font-size: 84px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}
.kl-plain h1 { font-size: 28px; margin: 0 0 14px; }
.kl-plain p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 30px; }

@media (max-width: 860px) {
  .kl-hero { grid-template-columns: 1fr; padding: 56px 22px 48px; }
  .kl-wrap { padding: 48px 22px; }
  .kl-flow { padding: 30px 24px; }
  .kl-top { flex-direction: column; align-items: flex-start; gap: 12px; }
}
