/* e-Dokument — nordic minimal, teal + white */

:root {
  --teal: #0f8a7e;
  --teal-dark: #0d7264;
  --teal-soft: #e6f4f1;
  --ink: #16211f;
  --muted: #5d6b68;
  --line: #e2e8e6;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(15, 138, 126, 0.10);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: block; }
.brand-name { font-size: 1.2rem; letter-spacing: -0.02em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: .96rem;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--teal-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, transform .05s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--teal-soft) 0%, var(--bg) 70%);
  padding: 72px 0 88px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* Hero card */
.hero-card { display: flex; justify-content: center; }
.doc-card {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.doc-title { font-weight: 600; font-size: .95rem; }
.doc-tag {
  font-size: .74rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.doc-line { height: 10px; border-radius: 6px; background: #eef2f1; margin-bottom: 10px; }
.doc-line.short { width: 62%; }
.doc-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.sign-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem;
}
.sign-avatar.alt { background: #b9c6c3; }
.sign-meta { display: flex; flex-direction: column; margin-right: auto; }
.sign-meta strong { font-size: .92rem; }
.sign-meta span { font-size: .78rem; color: var(--muted); }
.dot-pulse {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #f0a500;
  box-shadow: 0 0 0 0 rgba(240, 165, 0, .5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 165, 0, .5); }
  70% { box-shadow: 0 0 0 8px rgba(240, 165, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 165, 0, 0); }
}

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0 0 40px; max-width: 40em; }

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: none;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-ico {
  font-size: 1.7rem;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); margin: 0; }

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.plan-featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.plan-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: .74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.3rem; }
.plan-desc { color: var(--muted); min-height: 3em; margin: 0 0 12px; }
.plan-price { font-size: 1.15rem; color: var(--muted); margin: 0 0 20px; }
.plan-price span { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.plan-price-custom { font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 11px;
}
.plan-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink);
}
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}
.plan .btn { margin-top: auto; }

/* Security */
.security {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 48px;
  align-items: center;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.check-list li {
  padding-left: 34px;
  position: relative;
  font-size: 1.05rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 800;
}
.security-badge { display: flex; justify-content: center; }

/* Forms */
.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: var(--white);
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-intro { color: var(--muted); margin: 0 0 22px; }
.form-card label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin: 14px 0 6px;
}
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color .15s, background .15s;
}
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-card textarea { resize: vertical; }
.form-card .btn { margin-top: 20px; }
.form-hint { text-align: center; font-size: .88rem; margin: 14px 0 0; }
.form-msg {
  margin: 14px 0 0;
  padding: 0;
  font-size: .92rem;
  font-weight: 500;
  min-height: 1.2em;
}
.form-msg.error { color: #c0392b; }
.form-msg.success { color: var(--teal-dark); }

/* Contact */
.contact { display: grid; gap: 30px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.contact-item h3 { font-size: 1rem; color: var(--teal-dark); }
.contact-item p { margin: 0; color: var(--muted); }
.contact-item a { color: var(--muted); }
.contact-item a:hover { color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c8d2d0;
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand .brand-name { color: var(--white); font-size: 1.25rem; font-weight: 700; }
.footer-brand p { margin: 8px 0 0; max-width: 26em; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #c8d2d0; font-size: .95rem; }
.footer-links a:hover { color: var(--white); }
.footer-legal { margin-top: 24px; }
.footer-legal p { margin: 0; font-size: .85rem; color: #8fa19d; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { order: -1; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .security { grid-template-columns: 1fr; }
  .security-badge { order: -1; }
  .forms-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 12px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
}
