:root {
  --brand: #305daa;
  --brand-dark: #23477f;
  --accent: #03c4eb;
  --ink: #1f2933;
  --muted: #5b6672;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 10px;
  --wrap: 1120px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -48px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font-weight: 800; font-size: 1.35rem; letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--brand); }
.lang-switch { gap: 4px !important; border-left: 1px solid var(--line); padding-left: 20px !important; }
.lang-switch a { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .85rem; letter-spacing: .04em; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul:not(.lang-switch) a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lang-switch { flex-direction: row !important; border-left: 0; padding: 12px 0 0 !important; gap: 8px !important; }
  .lang-switch a { border: 1px solid var(--line); padding: 6px 14px; }
}

/* Hero */
.hero { position: relative; color: #fff; text-align: center; background: #1b2433 url("/assets/img/hero.webp") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,.55), rgba(10,20,40,.45)); }
.hero-inner { position: relative; padding: 120px 20px 130px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin-bottom: .35em; }
.hero-tagline { display: block; font-size: .45em; font-weight: 600; letter-spacing: .12em; color: var(--accent); margin-top: .5em; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 640px; margin: 0 auto 2em; opacity: .95; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: .95rem; text-decoration: none; letter-spacing: .02em; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brand); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--ink); }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); border-radius: 2px; margin-top: 14px; }
.section-title.center { text-align: center; }
.section-title.center::after { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.2rem; color: var(--ink); }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.about-img { border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20,40,80,.15); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.quotes-title { margin-top: 1.8em; font-size: 1.15rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.quotes { display: grid; gap: 14px; }
.quotes blockquote { margin: 0; padding: 16px 20px 16px 52px; background: var(--bg-alt); border-radius: var(--radius); position: relative; font-style: italic; color: #34404c; }
.quotes blockquote::before { content: "“"; position: absolute; left: 16px; top: 2px; font-size: 3rem; line-height: 1; color: var(--accent); font-style: normal; font-family: Georgia, serif; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-img { max-width: 420px; aspect-ratio: 4 / 3; }
}

/* Services */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(20,40,80,.08); display: flex; flex-direction: column; }
.card > img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 26px 28px 30px; }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.icon { width: 26px; height: 26px; fill: var(--brand); flex: none; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
audio { width: 100%; margin-top: 4px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Banner */
.banner { min-height: 300px; display: flex; align-items: flex-end; background: #6b7f9a url("/assets/img/tallinn.webp") center 40% / cover no-repeat; position: relative; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,20,40,.6)); }
.banner p { position: relative; color: #fff; font-size: 1.2rem; font-weight: 600; margin: 0 auto; padding-bottom: 24px; width: 100%; text-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.contact-form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.req { font-weight: 400; color: var(--muted); font-size: .85em; }
.field input, .field textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #cfd6de; border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid rgba(48,93,170,.25); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 140px; }
.field-captcha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-captcha label { margin: 0; }
.field-captcha input { width: 90px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form-status.ok { color: #1c7c3c; }
.form-status.err { color: #b42318; }
.contact-aside { background: var(--bg-alt); border-radius: var(--radius); padding: 30px; align-self: start; }
.contact-aside h3 { font-size: 1.15rem; }
.contact-aside h3:not(:first-child) { margin-top: 1.4em; }
.eres { width: 200px; margin: 4px 0 8px; }
address { font-style: normal; line-height: 1.7; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Footer */
.site-footer { background: #17202c; color: #b8c2cf; font-size: .9rem; padding: 26px 0; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: #dfe6ee; }

/* Privacy */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal .updated { color: var(--muted); font-size: .92rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 60px 20px; }
