/* SecureLink web – shared styles (index + three chapters) */
:root {
  --bg: #ffffff; --bg-alt: #f3f6fa; --text: #1c2430; --muted: #5a6575; --line: #dde3ea;
  --brand: #1f5fbf; --brand-dark: #133f82; --accent: #2bb673; --card: #ffffff;
  --hero-from: #0f2c5c; --hero-to: #1f5fbf;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11151b; --bg-alt: #171c24; --text: #e6eaf0; --muted: #9aa6b4; --line: #2a313c;
          --card: #1b212a; --brand: #6ea8ff; --brand-dark: #4d8ae6; --hero-from: #0a1a36; --hero-to: #153f80; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
         backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.logo img { width: 34px; height: auto; display: block; }
nav { display: flex; align-items: center; }
nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a.active { color: var(--brand); }
nav a.cta { color: #fff; background: var(--brand); padding: 8px 14px; border-radius: 8px; }
/* language switch: current language bold, the other one a link to the same page */
.lang { margin-left: 18px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.lang b { color: var(--text); }
.lang a { margin-left: 6px; }
/* phones: the menu moves to its own row under the logo instead of disappearing */
@media (max-width: 760px) {
  header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  nav { width: 100%; flex-wrap: wrap; gap: 6px 16px; }
  nav a { margin-left: 0; font-size: 15px; }
  nav a.cta { padding: 6px 12px; }
  .lang { margin-left: auto; }
}

.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; padding: 88px 0 80px; }
.hero.small { padding: 64px 0 56px; }
.hero .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: #a9c4ef; margin: 0 0 10px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.15; margin: 0 0 18px; max-width: 780px; }
.hero p { font-size: 20px; max-width: 700px; margin: 0 0 30px; color: #dbe6f7; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn-light { background: #fff; color: var(--hero-from); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.5); }
/* buttons side by side wrap cleanly on phones */
.hero .btn, .cta-band .btn { margin: 0 8px 10px 0; }
.btn-brand { background: var(--brand); color: #fff; }

section { padding: 76px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 19px; max-width: 720px; margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
             background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 21px; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card ul { margin: 0 0 18px; padding-left: 20px; }
.card li { margin: 0 0 6px; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }

/* chapter: text + picture side by side, alternating */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip > :first-child { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature.flip > :first-child { order: 0; } }
.feature h3 { font-size: 24px; margin: 0 0 12px; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.phones { display: flex; gap: 18px; justify-content: center; }
.phones img { width: 46%; max-width: 240px; border-radius: 28px; box-shadow: 0 18px 40px rgba(15, 44, 92, .22); border: 1px solid var(--line); }
.phones.one img { width: 60%; max-width: 280px; }
.shot { border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 44, 92, .18); border: 1px solid var(--line); }
/* place for a picture that is still coming */
.placeholder { aspect-ratio: 16 / 10; border: 2px dashed var(--line); border-radius: 16px; display: grid; place-items: center;
               color: var(--muted); text-align: center; padding: 20px; background: var(--card); font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.fact b { display: block; font-size: 18px; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 15px; }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }
.principle { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.principle b { display: block; margin-bottom: 4px; }
.principle span { color: var(--muted); font-size: 15px; }

.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto 24px; }
.contact .big { font-size: 22px; margin: 6px 0; }
.contact .big a { text-decoration: none; font-weight: 600; }
footer { border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--muted); font-size: 14px; background: var(--bg-alt); }
footer .cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 28px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer .cols b { display: block; color: var(--text); margin-bottom: 8px; }
footer .cols a, footer .cols span { display: block; margin-bottom: 5px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--brand); }
footer .copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

.schema { margin: 0; }
.schema svg { width: 100%; height: auto; display: block; }
.schema figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }
@media (max-width: 900px) { .grid[style] { grid-template-columns: 1fr !important; } }
/* click-to-enlarge screenshots (lightbox.js) */
img.shot, .phones img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 10, 20, .88); display: none;
            align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* text still waiting for Petr – visible on the test site, must be gone before production */
.todo { background: #fff3c4; color: #6b5300; border-radius: 4px; padding: 0 5px; font-size: .9em; }

/* numbered steps (how we work, how to start) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps, .steps.three { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 18px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
                    background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* contact hub */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .choices { grid-template-columns: 1fr; } }
.choice { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
          padding: 26px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.choice:hover { border-color: var(--brand); transform: translateY(-2px); }
.choice h3 { margin: 0 0 8px; font-size: 21px; }
.choice p { margin: 0 0 16px; color: var(--muted); }
.choice .go { margin-top: auto; color: var(--brand); font-weight: 600; }
.minor { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.minor a { font-weight: 600; text-decoration: none; }

/* frequently asked questions */
.faq h2 { margin-top: 44px; font-size: 24px; }
.faq h2:first-child { margin-top: 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 14px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }

/* forms */
.form { max-width: 760px; }
.form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 8px; margin: 0 0 18px; background: var(--card); }
.form legend { font-weight: 600; padding: 0 6px; }
.form .q { margin: 0 0 18px; }
.form .q > label, .form .q > .label { display: block; font-weight: 600; margin-bottom: 6px; }
.form .req { color: #c0392b; }
.form .opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.form .help { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.form .options label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-weight: 400; cursor: pointer; }
.form .options input { margin-top: 5px; accent-color: var(--brand); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); border-color: var(--brand); }
.form .err { color: #c0392b; font-size: 14px; margin: 4px 0 0; }
.form .q.bad input[type=text], .form .q.bad input[type=email], .form .q.bad textarea { border-color: #c0392b; }
.form button { font: inherit; font-weight: 600; border: 0; cursor: pointer; }
.form .send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form .note { color: var(--muted); font-size: 14px; margin: 0; }
/* trap field for robots: people never see it */
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; }
.notice.bad { background: color-mix(in srgb, #c0392b 12%, transparent); border: 1px solid color-mix(in srgb, #c0392b 40%, transparent); }
.notice.ok { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.summary { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: 15px; }
.summary th, .summary td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.summary th { width: 38%; color: var(--muted); font-weight: 600; }
.ticket { font-size: 22px; font-weight: 700; letter-spacing: .03em; }
@media print {
  header, footer, .no-print { display: none !important; }
  .hero { background: none; color: #000; padding: 0; }
  .hero p, .hero h1 { color: #000; }
}
