:root {
  --primary: #0A66C2;
  --primary-dark: #004182;
  --text: #1f2937;
  --muted: #f6f7fb;
  --border: #e5e7eb;
  --bg: #ffffff;
}

/* === Reset & baastoon === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Navigeerimine === */
nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

nav .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

nav .links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav .links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

nav .links a:hover {
  color: var(--primary);
}

/* Tekst-logo */
.brand {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

/* Keelelüliti ja nav nupp */
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.actions .langs a {
  margin: 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.actions .langs a:hover {
  color: var(--primary);
}

.btn-nav {
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  transition: 0.2s;
}

.btn-nav:hover {
  background: var(--primary-dark);
}

/* === Hero === */
.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1505148230170-2ec5ce2f3fd0?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,50,100,0.35);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 16px;
  font-weight: 800;
}

.hero p {
  font-size: 18px;
  margin: 0 0 22px;
}

/* === Üldised nupud === */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
}

/* === Sektsioonid === */
section {
  padding: 60px 0;
}

section h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 16px;
}

.lead {
  color: #4b5563;
  margin: 0 0 16px;
}

/* === Tekst === */
.text {
  max-width: 900px;
  margin: 0 auto;
  color: #374151;
}

.text h2, 
.text h3 {
  text-align: left;
}

.text ul {
  padding-left: 18px;
}

/* === Grid & kaardid === */
.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto 14px;
}

.card h3 {
  margin: 10px 0 6px;
}

.card p {
  color: #555;
  margin: 0 0 10px;
}

/* === Vormid === */
.form-section {
  background: var(--muted);
}

form {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  padding: 26px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 700px) {
  form .row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

input, 
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button.btn {
  width: 100%;
}

/* === Footer === */
footer {
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.small {
  font-size: 13px;
  color: #6b7280;
}

/* === Responsiivsus === */
@media (max-width: 1024px) {
  nav .links {
    gap: 12px;
    font-size: 15px;
  }
  .card img {
    height: 300px;
  }
}

/* === Desktop (≥769px) === */
@media (min-width: 769px) {
  .brand {
    font-size: 16px; /* sama kui menüü linkidel */
  }
  .menu-toggle {
    display: none; /* hamburger peidetud */
  }
}

/* === Mobiil (≤768px) === */
@media (max-width: 768px) {
  nav .inner {
    padding: 0 15px;
  }

  nav .links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid var(--border);
  }

  nav .links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .btn-nav {
    padding: 8px 14px;
    font-size: 13px;
  }

  .actions .langs a {
    font-size: 12px;
  }

  .brand {
    font-size: 14px; /* sama suur kui Est/Rus/Eng */
  }

  .hero {
    padding: 80px 15px;
  }
}

/* === Väikseimad ekraanid (≤480px) === */
@media (max-width: 480px) {
  .btn, .btn-nav {
    padding: 6px 12px;
    font-size: 12px;
  }

  nav .links {
    font-size: 13px;
    gap: 8px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }
}
