:root {
  color-scheme: dark;
  --page: #05070b;
  --panel: #0c121b;
  --panel-strong: #111b29;
  --text: #f6f9ff;
  --muted: #a9b6c8;
  --line: rgba(255, 255, 255, 0.13);
  --blue: #3aa7ff;
  --blue-strong: #086fdb;
  --red: #f04452;
  --red-deep: #9e1725;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --moss-bg-image: url("public/images/moss-bilvask/moss-bilvask-fasade.png");
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #05070b;
}

body {
  position: relative;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background-color: #05070b;
  background-image: var(--moss-bg-image);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image: var(--moss-bg-image);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at top left, rgba(58, 167, 255, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(240, 68, 82, 0.15), transparent 30rem),
    linear-gradient(180deg, rgba(5, 7, 11, 0.28) 0%, rgba(5, 7, 11, 0.66) 36%, rgba(5, 7, 11, 0.92) 100%);
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

body,
button,
input {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0.7rem 1rem;
  background: rgba(5, 7, 11, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) auto minmax(104px, 0.8fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 8px;
  color: white;
  font-size: 0.84rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 1.8vw, 1.45rem);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding: 0.45rem 0;
}

.site-nav a:hover {
  color: var(--text);
}

.language-toggle {
  display: flex;
  justify-self: end;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.language-toggle button,
.menu-toggle {
  border: 0;
  color: var(--text);
  cursor: pointer;
}

.language-toggle button {
  min-width: 42px;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: transparent;
  font-weight: 800;
  font-size: 0.82rem;
}

.language-toggle button.is-active {
  background: var(--text);
  color: #07101c;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.section-band {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 7rem) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: clamp(620px, calc(100svh - 72px), 880px);
  background: #05070b;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero::before {
  z-index: 0;
  background: #05070b var(--moss-bg-image) center top / cover no-repeat;
}

.hero::after {
  z-index: 1;
  background:
    radial-gradient(circle at 18% 45%, rgba(58, 167, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 78% 62%, rgba(240, 68, 82, 0.12), transparent 24rem),
    linear-gradient(90deg, rgba(5, 7, 11, 0.62) 0%, rgba(5, 7, 11, 0.32) 38%, rgba(5, 7, 11, 0.08) 74%),
    linear-gradient(180deg, rgba(5, 7, 11, 0) 0%, rgba(5, 7, 11, 0.14) 56%, rgba(5, 7, 11, 0.68) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(8rem, 18vh, 13rem);
  padding-bottom: clamp(4rem, 12vh, 7rem);
}

.hero-copy p {
  max-width: 36rem;
  margin: 0;
  color: #d9e3ef;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: white;
  box-shadow: 0 12px 34px rgba(240, 68, 82, 0.28);
}

.button-secondary {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: white;
  box-shadow: 0 12px 34px rgba(58, 167, 255, 0.24);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.about-media,
.map-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-label {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading > p:not(.section-label),
.about-copy > p:not(.section-label) {
  color: var(--muted);
  line-height: 1.7;
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 18, 27, 0.92);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  background: #111b29;
  color: #dceeff;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table tbody th {
  min-width: 120px;
  color: var(--text);
}

.price-table td {
  color: var(--muted);
  line-height: 1.55;
}

.price-table td:not(:first-of-type) {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: 0;
}

.price-cards {
  display: none;
}

.services-section,
.prices-section,
.about-section,
.contact-section {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 15, 23, 0.88), rgba(7, 11, 17, 0.82)),
    rgba(5, 7, 11, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.services-section {
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #dceeff;
  font-weight: 800;
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.contact-section {
  align-items: stretch;
}

.contact-copy {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 27, 41, 0.68);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

.contact-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-list dd {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
}

.map-panel {
  display: grid;
  min-height: 440px;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(58, 167, 255, 0.18), transparent 45%),
    linear-gradient(315deg, rgba(240, 68, 82, 0.18), transparent 42%),
    rgba(12, 18, 27, 0.78);
}

.map-panel > div {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.map-panel span {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-panel strong {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.map-panel .button {
  width: fit-content;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 4rem) auto 1rem;
  padding: 2rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 7, 11, 0.78);
  color: var(--muted);
  text-align: center;
  backdrop-filter: blur(10px);
}

.site-footer strong,
.site-footer a {
  color: var(--text);
}

@media (max-width: 860px) {
  body {
    background-attachment: scroll;
    background-position: center top;
  }

  body::before {
    background-position: center top;
  }

  .site-header__inner {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9, 14, 22, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .language-toggle {
    justify-self: end;
  }

  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: clamp(680px, 82svh, 760px);
  }

  .hero::before {
    background-size: contain;
    background-position: center top;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.1) 0%, rgba(5, 7, 11, 0.18) 28%, rgba(5, 7, 11, 0.82) 58%, rgba(5, 7, 11, 0.94) 100%),
      radial-gradient(circle at 20% 70%, rgba(58, 167, 255, 0.16), transparent 18rem),
      radial-gradient(circle at 82% 70%, rgba(240, 68, 82, 0.14), transparent 16rem);
  }

  .hero-copy {
    padding-top: clamp(23rem, 52vw, 28rem);
    padding-bottom: 2.5rem;
  }

  .price-table-wrap {
    display: none;
  }

  .price-cards {
    display: grid;
    gap: 1rem;
  }

  .price-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(12, 18, 27, 0.92);
  }

  .price-card h3 {
    margin: 0;
    font-size: 1.2rem;
  }

  .price-card p {
    color: var(--muted);
    line-height: 1.55;
  }

  .price-card ul {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
  }

  .price-card li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
  }

  .price-card span {
    color: var(--muted);
  }
}

@media (max-width: 560px) {
  body {
    background-attachment: scroll;
    background-position: 58% top;
  }

  body::before {
    background-position: 58% top;
  }

  .site-header {
    padding-inline: 0.8rem;
  }

  .brand span:last-child {
    max-width: 8rem;
  }

  .language-toggle button {
    min-width: 36px;
  }

  .section-band {
    width: min(100% - 1rem, 1180px);
  }

  .services-section,
  .prices-section,
  .about-section,
  .contact-section {
    padding: 1rem;
  }

  .hero {
    min-height: 680px;
    align-items: flex-end;
  }

  .hero::before {
    background-size: 100% auto;
    background-position: center top;
  }

  .hero-copy {
    padding-top: 17.25rem;
    padding-bottom: 1.5rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .button {
    width: 100%;
    min-height: 46px;
    padding-inline: 0.75rem;
  }

  .contact-actions .button {
    width: 100%;
  }

  .service-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-panel .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
