/* Videokasettien – shared site styles (home pages + header/footer for articles) */
:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #0f1b2d;
  --ink-soft: #33415a;
  --muted: #5a6880;
  --line: #dde3ec;
  --line-strong: #c8d1de;
  --accent: #003580;          /* Finnish flag blue */
  --accent-hover: #00449f;
  --accent-bright: #7fb0f0;   /* accent on dark backgrounds */
  --accent-soft: #e7eff9;
  --navy: #0a1b33;
  --navy-2: #102644;
  --success: #1f7a4d;
  --error: #b42318;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
  --container: min(1160px, calc(100% - 48px));
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid #5b9bf0; outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: inherit; letter-spacing: -0.02em; text-wrap: balance; line-height: 1.12; font-weight: 750; }
p { text-wrap: pretty; }

.container { width: var(--container); margin: 0 auto; min-width: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--accent); border-radius: 8px; }
.skip-link:focus { left: 12px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding: 8px 0; }
.topbar a { color: #fff; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar-contacts { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.lang-note { color: rgba(255,255,255,.82); font-weight: 600; letter-spacing: .02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.nav { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; }
.brand img { width: 30px; height: 35px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15.5px; color: var(--ink-soft); font-weight: 550; }
.nav-links a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-actions { display: inline-flex; align-items: center; gap: 18px; margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--muted); }
.lang-switch a { padding: 6px 2px; }
.lang-switch a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lang-switch a[aria-current] { color: var(--ink); }
.lang-switch span { color: var(--line-strong); }

/* ---------- Buttons ---------- */
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { background: transparent; color: var(--accent); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--accent); background: var(--accent-soft); }
.button-light { background: #fff; color: var(--accent); }
.button-light:hover { background: var(--accent-soft); }
.button-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.button-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.site-header .button { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- Generic sections ---------- */
section { padding: clamp(56px, 7vw, 96px) 0; }
.eyebrow { display: inline-block; margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin-bottom: 14px; font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { margin-bottom: 0; color: var(--ink-soft); font-size: 18px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  padding: clamp(72px, 10vw, 136px) 0 clamp(64px, 8vw, 112px);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(8,22,44,.94) 0%, rgba(8,22,44,.84) 40%, rgba(8,22,44,.45) 72%, rgba(8,22,44,.25) 100%),
    url("../images/hero-umatic-1900.webp");
  background-size: cover; background-position: center 60%; background-repeat: no-repeat;
}
@media (max-width: 1280px) {
  .hero { background-image: linear-gradient(90deg, rgba(8,22,44,.94) 0%, rgba(8,22,44,.84) 45%, rgba(8,22,44,.5) 80%, rgba(8,22,44,.35) 100%), url("../images/hero-umatic-1200.webp"); }
}
.hero-copy { max-width: 660px; }
.hero .eyebrow { color: var(--accent-bright); }
.hero h1 { margin-bottom: 20px; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.hero-lead { max-width: 56ch; margin-bottom: 26px; color: rgba(255,255,255,.88); font-size: clamp(17px, 1.6vw, 20px); }
.hero-formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.hero-formats li { padding: 6px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 14px; font-weight: 600; line-height: 1.3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.82); font-size: 15px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); }

/* ---------- Facts strip ---------- */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-row > div { padding: 26px 24px; border-right: 1px solid var(--line); min-width: 0; }
.facts-row > div:first-child { padding-left: 0; }
.facts-row > div:last-child { border-right: 0; }
.facts-row strong { display: block; margin-bottom: 4px; font-size: 16.5px; }
.facts-row span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }

/* ---------- Formats ---------- */
.format-board { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.format-intro { position: sticky; top: 96px; padding: 30px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.format-intro h3 { margin-bottom: 12px; font-size: 26px; }
.format-intro p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.format-list { display: grid; gap: 12px; }
.format-row { display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 16px 22px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.format-row img { width: 96px; height: 80px; object-fit: contain; padding: 6px; border-radius: var(--radius-small); background: var(--surface-2); }
.format-row h3 { margin-bottom: 4px; font-size: 19px; }
.format-row p { margin: 0; color: var(--muted); font-size: 15.5px; }
.price-tag { color: var(--accent); font-weight: 750; white-space: nowrap; text-align: right; }

/* ---------- Article hub ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.article-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.article-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card strong { display: block; margin-bottom: 6px; font-size: 19px; line-height: 1.2; }
.article-card span { color: var(--muted); font-size: 15px; }
.article-card em { color: var(--accent); font-style: normal; font-weight: 700; font-size: 15px; }

/* ---------- Why block ---------- */
.why { background: var(--accent); color: #fff; }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.why h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.why-copy p { color: rgba(255,255,255,.9); font-size: 18px; }
.why-copy p:last-child { margin-bottom: 0; }

/* ---------- Prices ---------- */
.price-ledger { display: grid; gap: 16px; }
.price-group { display: grid; grid-template-columns: 300px minmax(0,1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.price-topic { padding: 28px; background: var(--surface-2); }
.price-topic h3 { margin-bottom: 8px; font-size: 22px; }
.price-topic p { margin: 0; color: var(--muted); font-size: 15.5px; }
.price-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.price-line:last-child { border-bottom: 0; }
.price-line strong { display: block; font-size: 17px; }
.price-line span { color: var(--muted); font-size: 15px; }
.price-line em { color: var(--accent); font-style: normal; font-size: 20px; font-weight: 750; white-space: nowrap; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.terms div { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-soft); font-size: 15.5px; }
.terms strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16.5px; }

/* ---------- Process ---------- */
.process { background: var(--navy); color: #fff; }
.process .eyebrow { color: var(--accent-bright); }
.process .section-head p { color: rgba(255,255,255,.78); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 30px 28px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: var(--navy-2); }
.step-number { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; background: #fff; color: var(--accent); font-weight: 800; font-size: 18px; }
.step h3 { margin-bottom: 10px; font-size: 22px; }
.step p { margin: 0; color: rgba(255,255,255,.8); }
.step a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About / Estonia block ---------- */
.about { background: var(--surface); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.about h2 { margin-bottom: 16px; font-size: clamp(28px, 3.4vw, 42px); }
.about p { color: var(--ink-soft); font-size: 18px; }
.about p:last-child { margin-bottom: 0; }
.about a { color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.about-stats { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.about-stats li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.about-stats b { min-width: 74px; color: var(--accent); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.about-stats span { color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }

/* ---------- SEO copy ---------- */
.seo-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.seo-aside h2 { margin-bottom: 12px; font-size: clamp(24px, 2.6vw, 32px); }
.seo-aside p { color: var(--muted); margin: 0; }
.seo-copy p { color: var(--ink-soft); font-size: 17.5px; max-width: 70ch; }
.seo-copy p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 20px; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--accent); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); max-width: 74ch; }

/* ---------- Contact ---------- */
.contact-panel { display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.contact-info { padding: clamp(28px, 4vw, 44px); background: var(--accent-soft); }
.contact-info h2 { margin-bottom: 12px; font-size: clamp(28px, 3.4vw, 40px); }
.contact-info > p { color: var(--ink-soft); }
.contact-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(0,53,128,.15); }
.contact-block strong { display: block; margin-bottom: 4px; }
.contact-block p { margin: 0; color: var(--ink-soft); }
.contact-block a { color: var(--accent); font-weight: 600; }
.contact-block a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-form { padding: clamp(28px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > label, .field-label { font-weight: 650; font-size: 15px; color: var(--ink); }
input, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,53,128,.15); }
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a96a8; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-small); font-size: 15px; cursor: pointer; }
.checks label:hover { border-color: var(--line-strong); background: var(--bg); }
.checks input { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); box-shadow: none; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.form-status { color: var(--muted); font-size: 15px; }
.form-status.is-success { color: var(--success); font-weight: 650; }
.form-status.is-error { color: var(--error); font-weight: 650; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); font-size: 15px; }
.contact + .site-footer, main + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 36px; padding: 52px 0 36px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.footer-brand img { width: 26px; height: 30px; }
.footer-grid p { margin: 0 0 6px; }
.footer-grid h2 { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.footer-grid a { color: #fff; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-bottom { padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav-links { display: none; }
}
@media (max-width: 960px) {
  .format-board, .why-grid, .price-group, .seo-layout, .contact-panel, .about-grid { grid-template-columns: 1fr; }
  .format-intro { position: static; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row > div { padding: 22px 20px; }
  .facts-row > div:first-child { padding-left: 20px; }
  .facts-row > div:nth-child(2n) { border-right: 0; }
  .facts-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps, .terms { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --container: calc(100% - 32px); }
  body { font-size: 16px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-note { display: none; }
  .nav { min-height: 62px; gap: 12px; }
  .brand { font-size: 19px; gap: 9px; }
  .brand img { width: 26px; height: 30px; }
  .site-header .button { display: none; }
  .hero {
    padding: 56px 0 56px;
    background-image: linear-gradient(180deg, rgba(8,22,44,.55) 0%, rgba(8,22,44,.8) 45%, rgba(8,22,44,.94) 100%), url("../images/hero-umatic-800.webp");
    background-position: center top;
  }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero-actions .button { flex: 1 1 100%; }
  .facts-row { grid-template-columns: 1fr; }
  .facts-row > div, .facts-row > div:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts-row > div:last-child { border-bottom: 0; }
  .format-row { grid-template-columns: 72px minmax(0,1fr); gap: 14px; padding: 14px; }
  .format-row img { width: 72px; height: 64px; }
  .price-tag { grid-column: 2; text-align: left; }
  .price-line { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .price-topic { padding: 22px 20px; }
  .form-grid, .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
