/* Safro — simple company website
   Brand: royal blue #1D3FD6, deep #152CA8, cyan accent #12B5E6 */

:root {
  --brand: #1d3fd6;
  --brand-strong: #152ca8;
  --cyan: #0fb4e6;
  --ink: #0c1330;
  --body: #3c4468;
  --muted: #6f7899;
  --bg: #f6f8fd;
  --surface: #ffffff;
  --line: #e3e9f5;
  --radius: 12px;
  --wrap: 1080px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--body); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.active { color: var(--brand); }

/* hamburger */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 40px; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--brand-strong); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0 76px;
}
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .tagline { font-size: 1.15rem; color: #d7e0ff; font-weight: 500; margin-bottom: .2em; }
.hero p.lead { color: #e6ecff; max-width: 620px; margin: 0 auto 1.6em; font-size: 1.08rem; }
.hero .store-cta { background: #fff; color: var(--brand); margin-top: 6px; }
.hero .store-cta:hover { background: #eef2ff; }
/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--cyan); margin-bottom: 8px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
section.alt .card { background: var(--bg); }
.card .ico {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(29,63,214,.09); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: .95rem; color: var(--body); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.step p { font-size: .95rem; margin: 0; }

/* contact */
.contact-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; max-width: 620px; margin: 0 auto; text-align: center;
}
.contact-box .row { margin: 8px 0; }
.contact-box .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-box .val { font-size: 1.05rem; color: var(--ink); font-weight: 600; }

/* ---------- Legal / document pages ---------- */
.doc { padding: 44px 0 60px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.doc .updated { color: var(--muted); font-size: .9rem; margin: -6px 0 28px; }
.doc h2 { font-size: 1.25rem; margin-top: 34px; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.ph { color: var(--brand-strong); background: #eef2ff; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #aeb6d6;
  padding: 40px 0 28px; font-size: .92rem;
}
.site-footer a { color: #cdd5f2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { max-width: 280px; }
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand p { color: #8f98bd; font-size: .9rem; }
.footer-bottom { border-top: 1px solid #222a4d; padding-top: 18px; color: #8f98bd; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 58px; }
  section.block { padding: 44px 0; }

  .site-header .wrap { position: relative; min-height: 58px; flex-wrap: nowrap; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 6px 20px 14px; box-shadow: 0 12px 20px rgba(12,19,48,.06);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
}
