/* Fonts - Local copies */

/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Inter-Bold.ttf') format('truetype');
}

/* Oxanium */
@font-face {
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Oxanium-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Oxanium-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Oxanium-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Oxanium-Bold.ttf') format('truetype');
}

/* PetMe64 pixel font */
@font-face {
  font-family: 'PetMe64-Medium';
  src: url('/fonts/PetMe64.woff2') format('woff2'),
       url('/fonts/PetMe64.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Screen-reader only utility */
.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;
}

/* Base */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--desktop-p-font-family, "Inter", sans-serif);
  font-size: var(--desktop-p-font-size, 20px);
  line-height: var(--desktop-p-line-height, 32px);
  color: var(--tumma, #111827);
  background: var(--valkoinen, #ffffff);
}

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

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

address {
  font-style: normal;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1 {
  font-family: var(--desktop-h1-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-h1-font-size, 64px);
  line-height: var(--desktop-h1-line-height, 80px);
  font-weight: var(--desktop-h1-font-weight, 600);
}

h2 {
  font-family: var(--desktop-h2-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-h2-font-size, 44px);
  line-height: var(--desktop-h2-line-height, 54px);
  font-weight: var(--desktop-h2-font-weight, 600);
  color: var(--sahkonsininen, #002677);
}

h3 {
  font-family: var(--desktop-h3-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-h3-font-size, 32px);
  line-height: var(--desktop-h3-line-height, 40px);
  font-weight: var(--desktop-h3-font-weight, 600);
  color: var(--sahkonsininen, #002677);
}

.lead {
  font-family: var(--desktop-ingressi-font-family, "Inter", sans-serif);
  font-size: var(--desktop-ingressi-font-size, 24px);
  line-height: var(--desktop-ingressi-line-height, 40px);
  font-weight: var(--desktop-ingressi-font-weight, 500);
}

/* Button */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--keltainen, #fed801);
  color: #272530;
  font-family: var(--desktop-button-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-button-font-size, 14px);
  line-height: var(--desktop-button-line-height, 16px);
  font-weight: var(--desktop-button-font-weight, 600);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 16px 24px;
  background: linear-gradient(
    142.13deg,
    rgba(254, 248, 255, 0.19) 0%,
    rgba(254, 248, 255, 0) 100%
  );
  backdrop-filter: blur(7px);
  color: var(--valkoinen, #ffffff);
  font-family: "transducer", "Oxanium", sans-serif;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0.01em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on hero tags */
.hero-tags .tag::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 40px;
  height: 400px;
  margin-top: -200px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: rotate(45deg) translateX(300px);
}

.hero-tags .tag:hover::before {
  animation: shimmer 1.7s linear forwards;
}

@keyframes shimmer {
  from { transform: rotate(45deg) translateX(300px); }
  to { transform: rotate(45deg) translateX(-200px); }
}

a.tag-small {
  text-decoration: none;
  color: var(--valkoinen, #ffffff);
}

.tag-small {
  display: inline-block;
  padding: 8px 12px;
  background: linear-gradient(142.13deg, rgba(254, 248, 255, 0.189) 1.8%, rgba(254, 248, 255, 0) 99.75%);
  backdrop-filter: blur(87.96089935302734px);
  color: var(--valkoinen, #ffffff);
  font-family: "transducer", "Oxanium", sans-serif;
  font-size: 14px;
  line-height: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-tags .tag-small:hover {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Header */
.site-header {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Music player panel - header right edge */
.music-player-panel {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 101;
  background: rgba(30, 35, 50, 0.95);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  border-radius: 4px 0 0 4px;
}

.music-player-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.music-player-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.music-player-btn img {
  display: block;
  filter: brightness(0) invert(1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  height: 4rem;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
  height: 2.5rem;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a,
.main-nav .lang-toggle {
  color: var(--valkoinen, #ffffff);
  font-family: "transducer", "Oxanium", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.main-nav a:hover {
  opacity: 0.8;
}

.main-nav a.active,
.lang-toggle .active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  /* Fallback for browsers without image-set support */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    url(/images/responsive/hero-bg-1920w.jpg) center / cover no-repeat,
    url(/images/hero-bg-placeholder.jpg) center / cover no-repeat;
  /* Modern browsers with WebP support */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    image-set(
      url(/images/responsive/hero-bg-1920w.webp) type("image/webp"),
      url(/images/responsive/hero-bg-1920w.jpg) type("image/jpeg")
    ) center / cover no-repeat,
    url(/images/hero-bg-placeholder.jpg) center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  color: var(--valkoinen, #ffffff);
}

@media (min-width: 1921px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      url(/images/responsive/hero-bg-2560w.jpg) center / cover no-repeat,
      url(/images/hero-bg-placeholder.jpg) center / cover no-repeat;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      image-set(
        url(/images/responsive/hero-bg-2560w.webp) type("image/webp"),
        url(/images/responsive/hero-bg-2560w.jpg) type("image/jpeg")
      ) center / cover no-repeat,
      url(/images/hero-bg-placeholder.jpg) center / cover no-repeat;
  }
}

@media (max-width: 1280px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      url(/images/responsive/hero-bg-1280w.jpg) center / cover no-repeat,
      url(/images/hero-bg-placeholder.jpg) center / cover no-repeat;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      image-set(
        url(/images/responsive/hero-bg-1280w.webp) type("image/webp"),
        url(/images/responsive/hero-bg-1280w.jpg) type("image/jpeg")
      ) center / cover no-repeat,
      url(/images/hero-bg-placeholder.jpg) center / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      url(/images/responsive/hero-bg-640w.jpg) center / cover no-repeat,
      url(/images/hero-bg-placeholder.jpg) center / cover no-repeat;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      image-set(
        url(/images/responsive/hero-bg-640w.webp) type("image/webp"),
        url(/images/responsive/hero-bg-640w.jpg) type("image/jpeg")
      ) center / cover no-repeat,
      url(/images/hero-bg-placeholder.jpg) center / cover no-repeat;
  }
}

.hero h1 {
  margin-bottom: 24px;
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero .lead {
  margin-bottom: 48px;
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.4);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Intro */
.intro {
  padding: 80px 0;
}

.intro .container {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.intro-content {
  flex: 1;
}

.intro-content h2 {
  margin-bottom: 24px;
}

.intro-content p {
  margin-bottom: 16px;
}

.python-logo {
  width: 127px;
  height: 127px;
  flex-shrink: 0;
}

/* How We Work (Blue section) */
.how-we-work {
  background: var(--keskisininen, #002677);
  color: var(--valkoinen, #ffffff);
  padding: 80px 0;
  text-align: center;
}

.how-we-work h2 {
  color: var(--valkoinen, #ffffff);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.feature {
  text-align: center;
}

.feature img {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.feature p {
  font-size: 20px;
  line-height: 32px;
}

/* Methods */
.methods {
  padding: 80px 0;
}

.methods h2 {
  margin-bottom: 48px;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.method {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.method img {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.methods h3 {
  text-align: center;
  margin-bottom: 24px;
}

.methods .btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* Clients */
.clients {
  background: var(--vaaleanharmaa, #f4f4f8);
  padding: 80px 0;
  text-align: center;
}

.clients h2 {
  margin-bottom: 48px;
}

.client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.client-logos img {
  max-height: 80px;
  width: auto;
  mix-blend-mode: multiply;
}

/* Portfolio */
.portfolio {
  padding: 80px 0;
}

.portfolio h2 {
  margin-bottom: 24px;
}

.portfolio > .container > p {
  margin-bottom: 48px;
}

.portfolio .btn {
  margin-top: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Testimonial */
.testimonial {
  background: var(--vaaleanharmaa, #f4f4f8);
  padding: 80px 0;
}

.testimonial blockquote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  display: block;
  width: 56px;
  margin: 0 auto 24px;
}

.testimonial p {
  font-size: 20px;
  line-height: 32px;
  margin-bottom: 24px;
}

.testimonial cite {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.testimonial-nav__btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blog */
.blog {
  padding: 80px 0;
}

.blog h2 {
  margin-bottom: 16px;
}

.section-intro {
  margin-bottom: 48px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  position: relative;
  color: var(--valkoinen, #ffffff);
  overflow: hidden;
  aspect-ratio: 7/8;
  min-height: 500px;
  background: var(--tummansininen, #001644);
  max-width: 100%;
}

/* Sharp image (bottom layer) */
.blog-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.8);
  z-index: 0;
  transform: scale(1.05);
}

/* Blurred image (top layer with gradient mask) */
.blog-card-img-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: blur(8px) brightness(0.5);
  z-index: 1;
  transform: scale(1.05);
  mask-image: linear-gradient(to top, black 0%, black 30%, transparent 55%);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 55%);
}


.blog-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 4;
}

.blog-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.blog-card-content a {
  text-decoration: none;
  color: inherit;
}

.blog-card h3 {
  color: var(--valkoinen, #ffffff);
  margin-bottom: 8px;
}

.blog-card .meta {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.blog-card p:last-child {
  font-size: 14px;
  line-height: 22px;
  opacity: 0.9;
}

/* Careers */
.careers {
  background: linear-gradient(to right, #111827, #1a1a2e);
  color: var(--valkoinen, #ffffff);
  padding: 80px 0;
}

.careers-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.careers-text {
  flex: 1;
}

.careers h2 {
  color: var(--valkoinen, #ffffff);
  font-family: "PetMe64-Medium", sans-serif;
  font-size: 27px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.careers p {
  margin-bottom: 24px;
}

.careers-image {
  width: 284px;
  height: auto;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--tummansininen, #001644);
  color: var(--valkoinen, #ffffff);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-title {
  font-family: var(--desktop-footer-h-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-footer-h-font-size, 28px);
  line-height: var(--desktop-footer-h-line-height, 36px);
  color: var(--valkoinen, #ffffff);
  margin: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.footer-info address,
.footer-contact a,
.footer-legal p {
  font-size: 16px;
  line-height: 26px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact a:first-child {
  text-decoration: underline;
}

.footer-social p {
  font-weight: 700;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--kirkkaansininen, #1a90fe);
}

.social-links img {
  width: 20px;
  height: 20px;
}

.footer-media-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 16px;
  line-height: 26px;
}

.footer-media-link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Generic Page Components – Reusable across pages
   ========================================================================== */

/* Page Hero – full-width banner with bg image + gradient overlay.
   Set background-image via inline style on the element. */
.page-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-start;
  padding: 120px 0 60px;
  color: var(--valkoinen, #ffffff);
  background-size: cover;
  background-position: center;
  background-color: var(--tummansininen, #001644);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 22, 68, 0.85) 0%,
    rgba(0, 22, 68, 0.3) 50%,
    transparent 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  flex: fit-content;
}

.page-hero h1 {
  margin-bottom: 16px;
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-hero .lead {
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.4);
}

.page-hero__meta {
  font-size: 16px;
  line-height: 24px;
  opacity: 0.9;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Page Body – white content section with standard heading/paragraph spacing. */
.page-body {
  padding: 80px 0;
  background: var(--valkoinen, #ffffff);
}

.page-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-body p {
  margin-bottom: 16px;
}

.page-body ul,
.page-body ol {
  padding-left: 2em;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 360px;
    padding: 100px 0 40px;
  }
}

/* ==========================================================================
   End Generic Page Components
   ========================================================================== */

/* Services Page */
.services-hero {
  /* Fallback for browsers without image-set support */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    url(/images/responsive/services-hero-bg-1920w.jpg) center / cover no-repeat,
    var(--tummansininen, #001644);
  /* Modern browsers with WebP support */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    image-set(
      url(/images/responsive/services-hero-bg-1920w.webp) type("image/webp"),
      url(/images/responsive/services-hero-bg-1920w.jpg) type("image/jpeg")
    ) center / cover no-repeat,
    var(--tummansininen, #001644);
  min-height: 604px;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  color: var(--valkoinen, #ffffff);
}

@media (max-width: 1280px) {
  .services-hero {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      url(/images/responsive/services-hero-bg-1280w.jpg) center / cover no-repeat,
      var(--tummansininen, #001644);
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      image-set(
        url(/images/responsive/services-hero-bg-1280w.webp) type("image/webp"),
        url(/images/responsive/services-hero-bg-1280w.jpg) type("image/jpeg")
      ) center / cover no-repeat,
      var(--tummansininen, #001644);
  }
}

@media (max-width: 640px) {
  .services-hero {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      url(/images/responsive/services-hero-bg-640w.jpg) center / cover no-repeat,
      var(--tummansininen, #001644);
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
      image-set(
        url(/images/responsive/services-hero-bg-640w.webp) type("image/webp"),
        url(/images/responsive/services-hero-bg-640w.jpg) type("image/jpeg")
      ) center / cover no-repeat,
      var(--tummansininen, #001644);
  }
}

.services-hero h1 {
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}

.services-hero .lead {
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.4);
}

/* Services Grid Section */
.services-section {
  background: var(--vaaleanharmaa, #f4f4f8);
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card-new {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 490px;
}

.service-card-new::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to top, black 30%, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 70%);
  z-index: 0;
}

.service-card-new-content {
  position: relative;
  z-index: 1;
  padding: 5px 24px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  color: var(--valkoinen, #ffffff);
}

.service-card-new-content h3 {
  color: var(--valkoinen, #ffffff);
  font-family: "transducer", "Oxanium", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.service-card-new-content h4 {
  color: var(--valkoinen, #ffffff);
  font-family: "transducer", "Oxanium", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.service-card-new-content p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 24px;
  padding-right: 60px;
}

.service-card-new .btn-arrow {
  position: absolute;
  right: 5%;
  bottom: 10%;
  z-index: 1;
}

/* Services CTA Section */
.services-cta {
  background: var(--vaalein-harmaa, #f8f8fc);
  padding: 80px 0;
  text-align: center;
}

.services-cta h2 {
  margin-bottom: 24px;
}

.services-cta p {
  margin: 0 auto 32px;
}

/* Responsive */
@media (max-width: 1024px) {
  h1 {
    font-size: var(--laptop-h1-font-size, 56px);
    line-height: var(--laptop-h1-line-height, 72px);
  }

  h2 {
    font-size: var(--laptop-h2-font-size, 40px);
    line-height: var(--laptop-h2-line-height, 54px);
  }

  h3 {
    font-size: var(--laptop-h3-font-size, 28px);
    line-height: var(--laptop-h3-line-height, 36px);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

@media (max-width: 768px) {
  h1 {
    font-size: var(--mobile-h1-font-size, 28px);
    line-height: var(--mobile-h1-line-height, 34px);
  }

  h2 {
    font-size: var(--mobile-h2-font-size, 26px);
    line-height: var(--mobile-h2-line-height, 32px);
  }

  h3 {
    font-size: var(--mobile-h3-font-size, 22px);
    line-height: var(--mobile-h3-line-height, 28px);
  }

  body {
    font-size: var(--mobile-p-font-size, 14px);
    line-height: var(--mobile-p-line-height, 24px);
  }

  .lead {
    font-size: var(--mobile-ingressi-font-size, 16px);
    line-height: var(--mobile-ingressi-line-height, 24px);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 105;
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a,
  .main-nav .lang-toggle {
    font-size: 20px;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  /* Music player below hamburger on mobile */
  .music-player-panel {
    top: 80%;
    transform: none;
    padding: 8px 6px;
    border-radius: 0 0 0 4px;
  }

  .music-player-btn {
    padding: 5px;
  }

  .music-player-btn img {
    width: 12px;
    height: 12px;
  }

  .intro .container {
    flex-direction: column;
  }

  .python-logo {
    align-self: center;
  }

  .portfolio-grid,
  .blog-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-hero {
    min-height: 400px;
    padding: 100px 0 60px;
  }

  .careers-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    text-align: center;
  }

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

  .social-links {
    justify-content: center;
  }
}

/* ==========================================================================
   Services Page – Intro Section
   ========================================================================== */

.services-intro {
  padding: 80px 0;
  background: var(--valkoinen, #ffffff);
}

.services-intro__body {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.services-intro__text {
  flex: 1;
}

.services-intro__text h2 {
  margin-bottom: 20px;
}

.services-intro__text p {
  max-width: none;
}

.services-intro__icon {
  flex-shrink: 0;
}

/* ==========================================================================
   Services Page – Section Header (above card grid)
   ========================================================================== */

.services-section__header {
  margin-bottom: 48px;
}

.services-section__header h2 {
  margin-bottom: 16px;
}

.services-section__header p {
}

/* ==========================================================================
   Services Page – Arrow Button (yellow square on cards)
   ========================================================================== */

.btn-arrow {
  display: inline-block;
  align-self: flex-end;
  line-height: 0;
  transition: opacity 0.2s;
}

.btn-arrow:hover {
  opacity: 0.8;
}

.btn-arrow img {
  display: block;
}

/* ==========================================================================
   Services Page – Process Section
   ========================================================================== */

.process-section {
  padding: 80px 0;
  background: var(--valkoinen, #ffffff);
}

.process-section h2 {
  margin-bottom: 16px;
}

.process-section__subtitle {
  margin-bottom: 80px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 48px 24px;
}

.process-card {
  grid-column: span 2;
  position: relative;
  border: 2px solid var(--kirkkaansininen, #1a90fe);
  padding: 56px 24px 32px;
  display: flex;
  flex-direction: column;
}

/* Center orphan cards in the last row when the count isn't a multiple of 3 */
.process-card:last-child:nth-child(3n + 1) {
  grid-column: 3 / span 2;
}

.process-card:last-child:nth-child(3n + 2) {
  grid-column: 4 / span 2;
}

.process-card:nth-last-child(2):nth-child(3n + 1) {
  grid-column: 2 / span 2;
}

.process-card__icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--valkoinen, #ffffff);
  padding: 0 12px;
  line-height: 0;
}

.process-card__icon img {
  width: 80px;
  height: 80px;
}

.process-card p {
  flex: 1;
}

/* ==========================================================================
   Services Page – Contact Form Section
   ========================================================================== */

.services-contact {
  padding: 80px 0;
  background: var(--vaaleanharmaa, #f4f4f8);
}

.services-contact h2 {
  margin-bottom: 16px;
}

.services-contact__subtitle {
  margin-bottom: 30px;
}

.services-contact__form {
  max-width: 900px;
}

.services-contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.services-contact__input,
.services-contact__textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--kirkkaansininen, #1a90fe);
  background: var(--valkoinen, #ffffff);
  font-family: var(--desktop-p-font-family, "Inter", sans-serif);
  font-size: 16px;
  line-height: 24px;
  color: var(--tumma, #111827);
  outline: none;
  transition: border-color 0.2s;
}

.services-contact__input:focus,
.services-contact__textarea:focus {
  border-color: var(--sahkonsininen, #002677);
}

.services-contact__input::placeholder,
.services-contact__textarea::placeholder {
  color: #6b7280;
}

.services-contact__textarea {
  resize: vertical;
  min-height: 150px;
}

.services-contact__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
}

.services-contact__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--kirkkaansininen, #1a90fe);
}

.services-contact__checkbox label {
  font-size: 14px;
  line-height: 20px;
}

.services-contact__checkbox a {
  color: var(--kirkkaansininen, #1a90fe);
  text-decoration: underline;
}

/* ==========================================================================
   Service Detail Page – Body Content
   ========================================================================== */

/* Service detail page uses generic .page-body — only service-specific extras below */

/* Feature cards (e.g. "Why Interjektio" section) */
.service-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0 40px;
}

.service-feature-card {
  border: 2px solid var(--kirkkaansininen, #1a90fe);
  padding: 32px 24px;
  text-align: center;
}

.service-feature-card strong {
  display: block;
  font-family: var(--desktop-h4-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-h4-font-size, 26px);
  line-height: var(--desktop-h4-line-height, 32px);
  font-weight: 600;
  color: var(--sahkonsininen, #002677);
  margin-bottom: 12px;
}

.service-feature-card p {
  max-width: none;
  margin-bottom: 0;
}

/* ==========================================================================
   Services Page – Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .services-intro__body {
    flex-direction: column;
    gap: 32px;
  }

  .services-intro__icon {
    order: -1;
    align-self: center;
  }

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

  .process-card,
  .process-card:last-child:nth-child(3n + 1),
  .process-card:last-child:nth-child(3n + 2),
  .process-card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: auto;
  }

  .services-contact__row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .service-features {
    grid-template-columns: 1fr;
  }
}

/* Blog index hero uses generic .page-hero – no custom CSS needed */

/* ==========================================================================
   Blog Index – Tag Filter
   ========================================================================== */

.blog-listing {
  padding: 0 0 80px;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 32px 0;
}

.blog-filter__btn {
  display: inline-block;
  padding: 9px 24px;
  background: linear-gradient(
    142.13deg,
    rgba(254, 248, 255, 0.19) 0%,
    rgba(254, 248, 255, 0) 100%
  );
  backdrop-filter: blur(7px);
  color: var(--tumma, #111827);
  font-family: "transducer", "Oxanium", sans-serif;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--kirkkaansininen, #1a90fe);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.blog-filter__btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.blog-filter__btn--active {
  background: #FED801;
  color: var(--tumma, #111827);
  border-color: #FED801;
}

/* ==========================================================================
   Blog Index – CTA Section
   ========================================================================== */

.blog-cta {
  background: var(--vaaleanharmaa, #f4f4f8);
  padding: 80px 0;
}

.blog-cta h3 {
  margin-bottom: 32px;
}

/* Blog Archive – back link & breadcrumb */
.blog-archive-header {
  margin-bottom: 32px;
}

.btn-back {
  display: inline-block;
  font-family: 'Oxanium', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tummansininen, #001644);
  text-decoration: none;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--sininen, #0055ff);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--vaaleanharmaa, #f4f4f8);
  border-radius: 6px;
  font-family: 'Oxanium', sans-serif;
  font-size: 0.9rem;
  color: var(--harmaa, #6b7280);
}

.breadcrumb a {
  color: var(--kirkkaansininen, #1a90fe);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--tummansininen, #001644);
}

.breadcrumb__sep::after {
  content: '›';
  font-size: 1.1rem;
  color: var(--harmaa, #6b7280);
}

.breadcrumb__current {
  color: var(--tummansininen, #001644);
  font-weight: 600;
}

/* Blog post hero uses generic .page-hero + .page-hero__meta – no custom CSS needed */

/* ==========================================================================
   Blog Post – Tags
   ========================================================================== */

.blog-post-tags {
  padding: 24px 0;
  border-bottom: 1px solid var(--vaaleanharmaa, #f4f4f8);
}

.blog-post-tags .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-post-tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--kirkkaansininen, #1a90fe);
  border-radius: 4px;
  font-family: "transducer", "Oxanium", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--sahkonsininen, #002677);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.blog-post-tag:hover {
  background: var(--kirkkaansininen, #1a90fe);
  color: #ffffff;
}

/* ==========================================================================
   Blog Post – Prose Content
   ========================================================================== */

.blog-post-content {
  padding: 48px 0 80px;
}

.prose {
  max-width: 800px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--tumma, #111827);
}

.prose h2 {
  font-size: var(--desktop-h3-font-size, 32px);
  line-height: var(--desktop-h3-line-height, 40px);
  margin-top: 48px;
  margin-bottom: 16px;
}

.prose h3 {
  font-size: var(--desktop-h4-font-size, 26px);
  line-height: var(--desktop-h4-line-height, 32px);
  margin-top: 36px;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 20px;
}

.prose a {
  color: var(--kirkkaansininen, #1a90fe);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--sahkonsininen, #002677);
}

.prose ul,
.prose ol {
  padding-left: 2em;
  margin-bottom: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose blockquote {
  border-left: 4px solid var(--kirkkaansininen, #1a90fe);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--vaaleanharmaa, #f4f4f8);
  font-style: italic;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose img {
  border-radius: 8px;
  margin: 24px 0;
}

.prose pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.6;
  margin: 24px 0;
}

.prose code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.9em;
}

.prose :not(pre) > code {
  background: var(--vaaleanharmaa, #f4f4f8);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--sahkonsininen, #002677);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border: 1px solid var(--vaaleanharmaa, #f4f4f8);
  text-align: left;
}

.prose th {
  background: var(--vaaleanharmaa, #f4f4f8);
  font-weight: 700;
}

/* ==========================================================================
   Blog – Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .blog-filter__btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .prose {
    font-size: 16px;
    line-height: 1.75;
  }

  .prose h2 {
    font-size: var(--mobile-h3-font-size, 22px);
    line-height: var(--mobile-h3-line-height, 28px);
    margin-top: 36px;
  }

  .prose h3 {
    font-size: 20px;
    line-height: 26px;
    margin-top: 28px;
  }

  .prose pre {
    font-size: 13px;
    padding: 16px;
  }
}

/* About page uses generic .page-hero and .page-body */

.about-cta {
  padding: 80px 0 40px;
  background: var(--vaaleanharmaa, #f4f4f8);
}

.about-cta h2 {
  margin-bottom: 16px;
}

.about-cta__subtitle {
  font-family: var(--desktop-h3-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-h4-font-size, 26px);
  line-height: var(--desktop-h4-line-height, 32px);
  font-weight: 600;
  color: var(--sahkonsininen, #002677);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-info {
  padding: 80px 0;
  background: var(--valkoinen, #ffffff);
}

.contact-info p {
  margin-bottom: 16px;
}

.contact-info h2 {
  margin-top: 48px;
  margin-bottom: 32px;
}

.contact-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.contact-info__avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
}

.contact-info__card h3 {
  font-family: var(--desktop-h3-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-h4-font-size, 26px);
  line-height: var(--desktop-h4-line-height, 32px);
  font-weight: 600;
  color: var(--sahkonsininen, #002677);
  margin-bottom: 8px;
}

.contact-info__card address {
  font-style: normal;
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-info__card p {
  margin-bottom: 4px;
}

.contact-info__role {
  font-weight: 500;
  color: var(--sahkonsininen, #002677);
  margin-bottom: 8px;
}

.contact-info__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.contact-info__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--kirkkaansininen, #1a90fe);
  border-radius: 0;
}

.contact-info__social a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .contact-info__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Works / Portfolio Page
   ========================================================================== */

.works-intro {
  padding: 80px 0 40px;
  background: var(--valkoinen, #ffffff);
}

.works-intro h2 {
  margin-bottom: 16px;
}

.works-intro p {
  margin-bottom: 0;
}

.works-grid-section {
  padding: 0 0 80px;
  background: var(--valkoinen, #ffffff);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.works-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.works-card__image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.works-card__company {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: rgba(0, 22, 68, 0.7);
  color: var(--valkoinen, #ffffff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
}

.works-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 24px;
}

.works-card__content h3 {
  font-family: var(--desktop-h4-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-h4-font-size, 26px);
  line-height: var(--desktop-h4-line-height, 32px);
  font-weight: 600;
  color: var(--sahkonsininen, #002677);
  margin-bottom: 8px;
}

.works-card__content p {
  margin-bottom: 0;
  max-width: none;
  flex: 1;
}

.works-card__arrow {
  align-self: flex-end;
  margin-top: 16px;
}

.works-cta {
  padding: 80px 0 40px;
  background: var(--vaaleanharmaa, #f4f4f8);
}

.works-cta h2 {
  max-width: 800px;
  margin-bottom: 16px;
}

.works-cta__subtitle {
  font-family: var(--desktop-h3-font-family, "transducer", "Oxanium", sans-serif);
  font-size: var(--desktop-h4-font-size, 26px);
  line-height: var(--desktop-h4-line-height, 32px);
  font-weight: 600;
  color: var(--sahkonsininen, #002677);
  margin-bottom: 16px;
}

.works-cta p {
  max-width: 700px;
}

@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .works-card__content h3 {
    font-size: var(--mobile-h4-font-size, 20px);
    line-height: var(--mobile-h4-line-height, 26px);
  }
}

/* 404 Error Page */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 80px);
  padding: 120px 0 80px;
  background: var(--tummansininen, #001644);
  color: var(--valkoinen, #ffffff);
}

.error-page__code {
  display: block;
  font-family: var(--heading-font-family, "transducer", "Oxanium", sans-serif);
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  color: var(--keltainen, #fed801);
  margin-bottom: 24px;
}

.error-page h1 {
  margin-bottom: 16px;
}

.error-page .lead {
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.85;
}

.error-page .btn {
  display: inline-flex;
}

@media (max-width: 768px) {
  .error-page__code {
    font-size: 100px;
  }

  .error-page {
    padding: 100px 0 60px;
  }
}
