:root {
  --paper: #ffffff;
  --surface: #f6f7f4;
  --surface-strong: #edf2ee;
  --ink: #141713;
  --ink-soft: #2f3933;
  --muted: #626c66;
  --muted-strong: #48534d;
  --blue: #285181;
  --blue-deep: #173653;
  --green: #627d66;
  --orange: #f58e49;
  --orange-deep: #db7330;
  --line: rgba(20, 23, 19, 0.13);
  --line-soft: rgba(20, 23, 19, 0.08);
  --shadow-soft: 0 18px 54px rgba(31, 38, 34, 0.1);
  --shadow-strong: 0 30px 90px rgba(20, 23, 19, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(128px, 174px) 1fr auto auto;
  align-items: center;
  gap: 22px;
  width: min(calc(100% - 36px), 1280px);
  min-height: 78px;
  margin: 18px auto -96px;
  padding: 12px 18px 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 58px rgba(20, 23, 19, 0.16);
  backdrop-filter: blur(22px) saturate(1.18);
}

.brand {
  display: block;
  height: 52px;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 2px;
  border-radius: 8px;
  background: var(--orange);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(98, 125, 102, 0.08);
}

.nav-links a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(246, 247, 244, 0.86);
}

.language-switcher button,
.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.language-switcher button:hover,
.language-switcher button.is-active,
.language-switcher a:hover,
.language-switcher a.is-active {
  color: #ffffff;
  background: var(--blue);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, color 180ms ease;
}

.header-cta,
.button.primary {
  color: #15120e;
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(245, 142, 73, 0.3);
}

.header-cta:hover,
.button.primary:hover {
  background: #ffa163;
  box-shadow: 0 18px 38px rgba(245, 142, 73, 0.36);
  transform: translateY(-1px);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  padding: 172px max(28px, calc((100vw - 1280px) / 2)) 112px;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  background: url("assets/header-tallinn-hero.jpg") center/cover no-repeat;
  transform: scale(1.03);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 15, 18, 0.84), rgba(18, 31, 35, 0.62) 46%, rgba(18, 31, 35, 0.08)),
    linear-gradient(0deg, rgba(8, 15, 18, 0.72), rgba(8, 15, 18, 0.16) 54%, rgba(8, 15, 18, 0.34));
}

.hero::after {
  content: "";
  position: absolute;
  right: max(28px, calc((100vw - 1280px) / 2));
  bottom: 78px;
  z-index: 2;
  width: min(38vw, 440px);
  height: 1px;
  background: rgba(255, 255, 255, 0.52);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: 82px;
  line-height: 0.93;
}

h2 {
  max-width: 800px;
  font-size: 54px;
  line-height: 0.98;
}

h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow),
.section-copy p,
.story-copy p,
.contact-copy p {
  max-width: 660px;
  color: inherit;
  font-size: 19px;
}

.hero-content p:not(.eyebrow) {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.proof-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 56px), 1280px);
  margin: -54px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(20px);
}

.proof-band div {
  min-height: 144px;
  padding: 32px 30px;
  border-right: 1px solid var(--line-soft);
}

.proof-band div:last-child {
  border-right: 0;
}

.proof-band strong {
  display: block;
  color: var(--blue);
  font-size: 36px;
  line-height: 0.96;
  letter-spacing: 0;
}

.proof-band span {
  display: block;
  max-width: 240px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.section {
  width: min(calc(100% - 64px), 1280px);
  margin: 0 auto;
  padding: 126px 0;
}

.intro-section,
.choice-section,
.seo-section,
.faq-section {
  display: grid;
  gap: 76px;
  align-items: start;
}

.intro-section,
.choice-section {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.section-copy,
.story-copy,
.contact-copy {
  max-width: 860px;
}

.section-copy {
  position: sticky;
  top: 128px;
}

.section-copy p,
.story-copy p,
.contact-copy p {
  color: var(--muted);
}

.service-list,
.choice-grid,
.seo-list,
.faq-list {
  display: grid;
}

.service-list {
  gap: 16px;
}

.service-list article {
  position: relative;
  min-height: 184px;
  padding: 34px 36px 34px 104px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-list article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 142, 73, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-list article:hover,
.choice-grid article:hover,
.seo-list article:hover {
  border-color: rgba(245, 142, 73, 0.3);
  box-shadow: 0 26px 70px rgba(31, 38, 34, 0.14);
  transform: translateY(-3px);
}

.service-list article:hover::before {
  opacity: 1;
}

.service-list span {
  position: absolute;
  top: 34px;
  left: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.service-list h3,
.service-list p,
.choice-grid h3,
.choice-grid p,
.seo-list h3,
.seo-list p {
  position: relative;
}

.service-list p,
.choice-grid p,
.seo-list p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.image-story {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(340px, 1fr) minmax(220px, 0.8fr);
  gap: 30px;
  align-items: center;
  padding: 132px max(32px, calc((100vw - 1280px) / 2));
  background:
    linear-gradient(180deg, rgba(237, 242, 238, 0.92), rgba(255, 255, 255, 0.72)),
    var(--surface-strong);
}

.story-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: var(--shadow-strong);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.story-image:hover img {
  transform: scale(1.045);
}

.story-image.tall {
  height: 670px;
}

.story-image.wide {
  height: 470px;
  margin-top: 86px;
}

.story-copy {
  padding: 0 28px;
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.check-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--orange), #ffb077);
  box-shadow: 0 8px 18px rgba(245, 142, 73, 0.28);
}

.choice-section {
  width: 100%;
  max-width: none;
  padding: 126px max(32px, calc((100vw - 1280px) / 2));
  background: var(--paper);
}

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

.choice-grid article {
  min-height: 268px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(31, 38, 34, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.choice-grid article:nth-child(1) {
  margin-top: 46px;
}

.choice-grid article:nth-child(2) {
  min-height: 310px;
  background: var(--blue);
  color: #ffffff;
}

.choice-grid article:nth-child(2) p {
  color: rgba(255, 255, 255, 0.76);
}

.choice-grid article:nth-child(3) {
  margin-top: 22px;
  background: #f3f6f0;
}

.seo-section {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.seo-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.seo-list article {
  min-height: 232px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.seo-list article:nth-child(2),
.seo-list article:nth-child(3) {
  background: #f2f6f2;
}

.faq-section {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding-top: 0;
}

.faq-list {
  gap: 14px;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 44px rgba(31, 38, 34, 0.07);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.faq-list details[open],
.faq-list details:hover {
  border-color: rgba(98, 125, 102, 0.28);
  box-shadow: 0 22px 64px rgba(31, 38, 34, 0.11);
}

.faq-list summary {
  cursor: pointer;
  padding: 24px 28px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.faq-list summary::marker {
  color: var(--orange);
}

.faq-list p {
  margin: 0;
  padding: 0 28px 28px;
  color: var(--muted);
  font-size: 17px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
  gap: 86px;
  align-items: start;
  padding: 132px max(32px, calc((100vw - 1280px) / 2));
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(20, 23, 19, 0.9), rgba(23, 54, 83, 0.88)),
    url("assets/panga-cliff.jpg") center/cover no-repeat;
}

.contact-copy {
  position: sticky;
  top: 128px;
  padding-top: 18px;
}

.contact-copy .eyebrow {
  color: #ffad75;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.contact-links a {
  width: fit-content;
  border-bottom: 2px solid rgba(245, 142, 73, 0.76);
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-links a:hover {
  color: #ffad75;
  border-color: #ffad75;
}

.quote-form {
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: rgba(250, 251, 249, 0.94);
  color: var(--ink);
  box-shadow: 0 34px 94px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.quote-form-header {
  display: grid;
  gap: 14px;
  margin-bottom: 4px;
}

.form-kicker {
  width: fit-content;
  margin: 0;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--blue-deep);
  background: rgba(40, 81, 129, 0.09);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-form h3 {
  font-size: 34px;
}

.quote-form-header p:not(.form-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.form-chips span,
.form-note {
  border: 1px solid rgba(40, 81, 129, 0.12);
  border-radius: 8px;
  color: #4d5d6d;
  background: rgba(255, 255, 255, 0.78);
}

.form-chips span {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #273241;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border: 1px solid #d8e1da;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

input::placeholder,
textarea::placeholder {
  color: #98a39b;
}

.captcha-field span {
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--orange);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 142, 73, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.form-note {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
}

.form-message.is-error {
  color: #9f2e1b;
}

.form-message.is-success {
  color: var(--blue);
}

.quote-form .button {
  width: 100%;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(32px, calc((100vw - 1280px) / 2));
  background: #101210;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer img {
  width: 156px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}

.site-footer p {
  margin: 0;
}

@keyframes hero-drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(112px, 154px) 1fr auto;
    width: min(calc(100% - 24px), 1280px);
    padding-right: 16px;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 42px;
  }

  .proof-band,
  .intro-section,
  .choice-section,
  .seo-section,
  .faq-section,
  .image-story,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-copy,
  .contact-copy {
    position: static;
  }

  .proof-band,
  .section {
    width: min(calc(100% - 36px), 1280px);
  }

  .proof-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-band div:nth-child(2) {
    border-right: 0;
  }

  .proof-band div:nth-child(1),
  .proof-band div:nth-child(2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .image-story,
  .contact-section,
  .choice-section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .image-story {
    gap: 34px;
  }

  .story-copy {
    padding: 0;
  }

  .story-image.tall,
  .story-image.wide {
    height: 380px;
    margin-top: 0;
  }

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

  .choice-grid article,
  .choice-grid article:nth-child(1),
  .choice-grid article:nth-child(2),
  .choice-grid article:nth-child(3) {
    min-height: 210px;
    margin-top: 0;
  }

  .seo-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 8px;
    width: min(calc(100% - 16px), 1280px);
    margin: 8px auto -76px;
    grid-template-columns: minmax(96px, 1fr) auto;
    gap: 12px;
    min-height: 68px;
    padding: 10px 12px 10px 16px;
  }

  .brand {
    height: 44px;
  }

  .header-cta {
    display: none;
  }

  .language-switcher button,
  .language-switcher a {
    min-width: 36px;
    min-height: 32px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .hero,
  .image-story,
  .contact-section,
  .choice-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section {
    width: min(calc(100% - 36px), 1280px);
  }

  .hero {
    min-height: 80svh;
    padding-top: 136px;
    padding-bottom: 74px;
  }

  .hero::after {
    display: none;
  }

  h1 {
    font-size: 43px;
    line-height: 0.98;
  }

  h2 {
    font-size: 34px;
    line-height: 1.04;
  }

  h3 {
    font-size: 22px;
  }

  .hero-content p:not(.eyebrow),
  .section-copy p,
  .story-copy p,
  .contact-copy p {
    font-size: 17px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-band {
    grid-template-columns: 1fr;
    width: min(calc(100% - 28px), 1280px);
    margin-top: -38px;
  }

  .proof-band div {
    min-height: 112px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .proof-band div:last-child {
    border-bottom: 0;
  }

  .proof-band strong {
    font-size: 29px;
  }

  .section,
  .image-story,
  .contact-section,
  .choice-section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .intro-section,
  .choice-section,
  .seo-section,
  .faq-section {
    gap: 42px;
  }

  .service-list article {
    min-height: 0;
    padding: 26px;
  }

  .service-list span {
    position: static;
    margin-bottom: 26px;
  }

  .story-image.tall,
  .story-image.wide {
    height: 300px;
  }

  .check-list {
    font-size: 16px;
  }

  .choice-grid article,
  .seo-list article,
  .quote-form {
    padding: 24px;
  }

  .faq-list summary {
    padding: 22px 22px;
    font-size: 17px;
  }

  .faq-list p {
    padding: 0 22px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-form h3 {
    font-size: 28px;
  }

  .contact-links {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
