:root {
  --blue: #1e6fd9;
  --blue-dark: #1557ad;
  --blue-deep: #0f3f86;
  --ink: #162033;
  --muted: #5b6575;
  --line: #e5eaf1;
  --bg: #ffffff;
  --soft: #f4f7fb;
  --radius: 14px;
  --max: 1080px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  letter-spacing: 0;
  color: #071b3a;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue-dark);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  background: var(--blue-deep);
  color: #fff;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.7rem 0;
  font-size: 0.92rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar a.mark-header:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
}

.mark-header {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 7px;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.topbar-left,
.topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  position: relative;
  z-index: 40;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.1rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.lang-switcher-btn:hover {
  opacity: 0.85;
}

.lang-flag {
  width: 14px;
  height: 10px;
  border-radius: 1px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.lang-chevron {
  width: 0.7rem;
  height: 0.7rem;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.lang-switcher.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 8.5rem;
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 35, 70, 0.1);
}

.lang-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.2;
  box-sizing: border-box;
}

a.lang-option:hover {
  background: var(--soft);
  color: var(--blue-dark);
  text-decoration: none;
}

.lang-option.is-active {
  color: var(--blue-deep);
  font-weight: 600;
}

.lang-option-code {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.topbar .lang-menu a {
  color: var(--ink);
}

.footer-note {
  color: var(--muted);
  font-size: 0.86em;
  font-weight: 400;
}

.hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 0.85rem;
  max-width: 14ch;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 auto 1.25rem;
  max-width: 36ch;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
}

.hero-contact {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.hero-contact a {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--blue-dark);
}

.btn-primary:hover {
  background: #f0f6ff;
  color: var(--blue-deep);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.stats {
  background: var(--blue);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  opacity: 0.9;
  font-size: 0.95rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--soft);
}

.section-blue {
  background: var(--blue);
  color: #fff;
}

.section-blue a:not(.btn) {
  color: #fff;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(30, 111, 217, 0.12);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.section-blue .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.section-head h2,
.section h2 {
  margin: 0 0 0.65rem;
}

.section-head p,
.lede {
  margin: 0 auto;
  max-width: 68ch;
  color: var(--muted);
}

.section-blue .lede {
  color: rgba(255, 255, 255, 0.92);
}

.prose {
  max-width: 68ch;
  margin: 0 auto;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.aside-note {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  --accent: var(--blue);
  --accent-soft: #eaf2fc;
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 52%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 3px 0 var(--accent);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, #fff);
  box-shadow: inset 0 3px 0 var(--accent), 0 10px 24px color-mix(in srgb, var(--accent) 16%, transparent);
  transform: translateY(-2px);
  color: inherit;
}

.card-media {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--accent);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent);
}

.card-fallback {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}

.card-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 0.4rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.card--domeeninimi { --accent: #1e6fd9; --accent-soft: #e8f1fc; }
.card--catch { --accent: #0f766e; --accent-soft: #e7f6f4; }
.card--tanklad { --accent: #c2410c; --accent-soft: #fff1e8; }
.card--weather { --accent: #0369a1; --accent-soft: #e7f4fb; }
.card--elektriauto { --accent: #15803d; --accent-soft: #e8f7ee; }
.card--sahkoauto { --accent: #0f766e; --accent-soft: #e6f7f2; }
.card--qr { --accent: #1f2937; --accent-soft: #eef1f4; }
.card--backlink { --accent: #b45309; --accent-soft: #fff6e8; }
.card--kiirlaen { --accent: #1d4ed8; --accent-soft: #eaf0ff; }
.card--lainaa { --accent: #0e7490; --accent-soft: #e7f7fb; }
.card--autopesula { --accent: #0284c7; --accent-soft: #e7f5fc; }
.card--hotellid { --accent: #b45309; --accent-soft: #fff4e8; }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 1.15rem 1.1rem 1.05rem;
  box-shadow: 0 10px 24px rgba(15, 45, 90, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  min-height: 0;
}

.domain-card:hover {
  transform: translateY(-3px);
  border-color: #1d64d8;
  box-shadow: 0 16px 34px rgba(15, 45, 90, 0.14);
}

.domain-tld {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(29, 100, 216, 0.1);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.domain-name {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: #0b2559;
  line-height: 1.15;
  word-break: break-word;
  padding-right: 2.4rem;
}

.domain-label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #52657f;
}

.domain-price {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: #fff3c4;
  color: #7a5200;
  font-weight: 700;
  font-size: 0.92rem;
}

.domain-cta {
  margin-top: 0.9rem;
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: 0;
}

.domain-cta:hover {
  background: var(--blue-dark);
  color: #fff;
}

.domain-card .domain-cta:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 2px;
}

.domain-grid[hidden],
.sale-empty[hidden] {
  display: none !important;
}

.btn-secondary {
  background: #fff;
  color: var(--blue-dark);
  border: 1.5px solid #9fc0ef;
}

.btn-secondary:hover {
  background: #f0f6ff;
  color: var(--blue-deep);
  border-color: var(--blue);
}

.center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 1.75rem;
}

.footer-nav h2,
.footer-contact h2 {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.55rem;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-brand p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 28rem;
}

.footer-brand .mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.footer-contact a {
  color: var(--ink);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-meta a {
  color: var(--muted);
}

.article-page .site-header {
  margin-bottom: 0;
}

.article-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}

.article-hero .crumb {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.article-hero h1 {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
}

.article {
  padding: 2.5rem 0 4rem;
}

.article-body {
  max-width: 68ch;
  margin: 0 auto;
}

.article-body h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.35rem;
}

.article-body p,
.article-body li {
  color: var(--ink);
}

.article-body .source {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--soft);
  border-radius: 12px;
  font-size: 0.95rem;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found h1 {
  margin: 0 0 0.75rem;
}

.not-found p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 1100px) {
  .domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .stats-grid,
  .two-col,
  .footer-grid,
  .domain-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.25rem 0 2.75rem;
  }

  .section {
    padding: 3rem 0;
  }
}
