:root {
  --ink: #17201c;
  --muted: #5e6862;
  --paper: #fffdf8;
  --line: #d9ddd8;
  --green-dark: #17372a;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Päis */
.hero {
  position: relative;
  min-height: clamp(520px, 38.8vw, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: #202522;
}

.hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 42%,
    rgba(8, 15, 11, 0.18) 62%,
    rgba(8, 15, 11, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 46px;
}

#hero-title {
  margin: 0;
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

#offer-title {
  margin: 18px 0 0;
  max-width: 1000px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Partnerid */
.section {
  padding: 88px 0;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.partner-card {
  min-height: 145px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.partner-card strong {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.partner-card span {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

/* Jalus */
.site-footer {
  padding: 48px 0;
  background: var(--green-dark);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* Tahvel */
@media (max-width: 900px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 560px;
  }
}

/* Mobiil */
@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 460px;
  }

  .hero-picture img {
    object-position: center;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  #hero-title {
    font-size: clamp(2.9rem, 13vw, 4.25rem);
    line-height: 0.9;
  }

  #offer-title {
    margin-top: 12px;
    font-size: clamp(1.35rem, 6.4vw, 2rem);
    line-height: 1.1;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    min-height: 0;
    padding: 26px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Väga väike telefon */
@media (max-width: 420px) {
  .hero {
    min-height: 420px;
  }

  #hero-title {
    font-size: 2.85rem;
  }

  #offer-title {
    font-size: 1.35rem;
  }
}