/* PaikPaik — one-pager
   Design source: Figma "PaikPaik veeb", node 1:283 (Desktop - 1). */

:root {
  --color-bg: #f1f1e9;
  --color-text: #343434;
  --color-accent: #a24d2a;
  --color-white: #ffffff;
  --color-olive: #6c6c4a;
  --color-olive-card: #6d6d4b;
  --color-terracotta: #af6445;
  --color-card-light: #e2dfd0;

  --font-body: "Outfit", "Segoe UI", sans-serif;

  --content-max: 1280px;
  --container-pad: clamp(20px, 5.5vw, 80px);
  --section-gap: clamp(64px, 8.3vw, 120px);
  --header-h: 120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

.hero-media picture,
.about-photo picture,
.before-after-img picture,
.feature-img picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

h1, h2, h3, p, ul, dl, dd, figure {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-olive);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 56px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  padding: 19px 24px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--color-olive);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #5a5a3d;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-card-light);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(var(--content-max), 100% - 2 * var(--container-pad));
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  justify-self: start;
}

.logo-mark {
  height: clamp(48px, 4.6vw, 66px);
  width: auto;
  aspect-ratio: 72 / 66;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: clamp(32px, 5.5vw, 80px);
  list-style: none;
  padding: 0;
  font-size: 22px;
  color: var(--color-accent);
}

.main-nav a {
  transition: opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 0.6;
}

.header-cta {
  justify-self: end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 8px var(--container-pad) 32px;
  background: var(--color-bg);
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 22px;
  color: var(--color-accent);
}

.site-header.nav-open .mobile-nav {
  display: flex;
}

/* Hero */

.hero-media {
  position: relative;
  height: clamp(420px, 50vw, 720px);
  overflow: hidden;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0) 100%);
}

.hero-title {
  z-index: 1;
  position: absolute;
  top: 39.6%;
  left: calc((100% - min(var(--content-max), 100% - 2 * var(--container-pad))) / 2);
  transform: translateY(-50%);
  max-width: min(697px, 100% - 2 * var(--container-pad));
  color: var(--color-white);
  font-size: clamp(34px, 4.45vw, 64px);
  font-weight: 300;
  line-height: 1.1;
}

/* Services */

.services {
  position: relative;
  z-index: 2;
  width: min(var(--content-max), 100% - 2 * var(--container-pad));
  margin: clamp(-170px, -11.8vw, -60px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(260px, 23.6vw, 340px), auto);
  gap: 24px;
}

.service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.25vw, 32px);
  padding: 48px 24px;
  text-align: center;
}

.service-card h3,
.service-card p {
  text-box: trim-both cap alphabetic;
}

.service-card h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.19;
  text-wrap: balance;
}

.service-card p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 247px;
}

.service-card--light {
  background: var(--color-card-light);
  color: var(--color-accent);
}

.service-card--terracotta {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.service-card--olive {
  background: var(--color-olive-card);
  color: var(--color-white);
}

/* About */

.about {
  width: min(1062px, 100% - 2 * var(--container-pad));
  margin: clamp(48px, 6.95vw, 100px) auto 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-content {
  flex: 1 1 628px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.about-content h2 {
  color: var(--color-accent);
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.1;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: clamp(18px, 1.4vw, 20px);
}

.about-more summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-olive-card);
  font-size: clamp(18px, 1.4vw, 20px);
  cursor: pointer;
  list-style: none;
}

.about-more summary::-webkit-details-marker {
  display: none;
}

.about-more summary svg {
  transition: transform 0.2s ease;
}

.about-more[open] summary svg {
  transform: rotate(180deg);
}

.about-more ul {
  margin-top: 8px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.about-photo {
  flex: 0 1 410px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature sections (text + photo) */

.feature {
  width: min(var(--content-max), 100% - 2 * var(--container-pad));
  margin: var(--section-gap) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}

.feature--top {
  align-items: start;
}

.feature--reverse .feature-img {
  order: -1;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-text h2 {
  color: var(--color-accent);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.4;
}

.feature-body strong,
.pricing strong {
  font-weight: 700;
}

.feature-img {
  aspect-ratio: 628 / 471;
  overflow: hidden;
  background: #d9d9d9;
}

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

/* Hinnakiri */

.pricing {
  width: min(var(--content-max), 100% - 2 * var(--container-pad));
  margin: var(--section-gap) auto 0;
  padding-bottom: var(--section-gap);
}

.pricing h2 {
  color: var(--color-accent);
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.pricing-table {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 18px;
  line-height: 1.4;
  text-align: left;
}

.pricing-table thead th {
  padding: 0 24px 16px 0;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 500;
  vertical-align: bottom;
}

.pricing-vat {
  font-weight: 400;
  opacity: 0.8;
}

.pricing-table tbody th,
.pricing-table tbody td {
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid rgba(52, 52, 52, 0.18);
  vertical-align: top;
}

/* Column edges line up with the service cards above at full width (326/1280, 302/1280) */
.pricing-table th:first-child {
  width: 25.47%;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  width: 23.6%;
  padding-right: 0;
}

.pricing-table tbody th {
  color: var(--color-accent);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 400;
  line-height: 1.25;
}

.price-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price strong {
  color: var(--color-accent);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.price span {
  font-size: 16px;
}

.pricing-notes {
  margin-top: 40px;
  padding-left: 24px;
  max-width: 845px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
}

/* Portfolio */

.portfolio {
  width: min(var(--content-max), 100% - 2 * var(--container-pad));
  margin: var(--section-gap) auto 0;
}

.portfolio h2 {
  color: var(--color-accent);
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.portfolio-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.before-after {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.before-after-img {
  position: relative;
  aspect-ratio: var(--r, 1);
  background: #d9d9d9;
  overflow: hidden;
}

.before-after-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-white);
  color: var(--color-accent);
  border-radius: 56px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.portfolio-item h3 {
  color: var(--color-accent);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.4;
}

.portfolio-details {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 9.2vw, 133px);
}

.portfolio-text {
  flex: 1 1 auto;
  max-width: 845px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.4;
}

.portfolio-text strong {
  font-weight: 600;
}

.portfolio-side {
  flex: 0 0 302px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  line-height: 1.4;
}

.portfolio-meta {
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 32px;
  row-gap: 8px;
}

.plan h4 {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 500;
}

.plan ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan li,
.plan-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.plan li span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.plan-total {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(52, 52, 52, 0.18);
  font-weight: 600;
}

/* Articles and other materials */

.materials {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(52, 52, 52, 0.18);
}

.materials h3 {
  color: var(--color-accent);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.4;
}

.materials-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.materials-group h4 {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 500;
}

.materials-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.materials-group li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.materials-group a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  align-self: flex-start;
  color: var(--color-accent);
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.materials-group a svg {
  flex: none;
  align-self: center;
}

.materials-group a:hover,
.materials-group a:focus-visible {
  text-decoration-thickness: 2px;
}

.materials-source {
  font-size: 14px;
  opacity: 0.75;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Process thumbnails */

.gallery {
  margin-top: 16px;
}

.gallery-title {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 500;
}

.gallery-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, 150px);
  gap: 8px;
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: #d9d9d9;
  overflow: hidden;
  cursor: zoom-in;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.thumb:hover img,
.thumb:focus-visible img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Image viewer */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 16, 12, 0.92);
  color: var(--color-white);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 56px 12px 24px;
}

.lightbox::backdrop {
  background: rgba(20, 16, 12, 0.92);
}

.lb-figure {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb-caption {
  max-width: 60ch;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
}

.lb-close,
.lb-prev,
.lb-next {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lb-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover,
.lb-close:focus-visible,
.lb-prev:focus-visible,
.lb-next:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox [hidden] {
  visibility: hidden;
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

/* Contact */

.contact {
  background: var(--color-card-light);
  padding: var(--section-gap) var(--container-pad);
}

.contact-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6.7vw, 96px);
  align-items: start;
}

.contact-info h2 {
  color: var(--color-accent);
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.contact-lead {
  margin-top: 24px;
  max-width: 44ch;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 300;
}

.contact-details {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 32px;
  row-gap: 8px;
  font-size: 18px;
}

.contact-details a,
.social-links a {
  color: var(--color-accent);
}

.contact-details a:hover,
.contact-details a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-links {
  margin-top: 32px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid currentColor;
  border-radius: 56px;
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--color-accent);
  color: var(--color-white);
}

/* The form is switched off with the `hidden` attribute on <form> in index.html */
.contact-form[hidden] {
  display: none;
}

.contact-inner:has(> .contact-form[hidden]) {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.contact-inner:has(> .contact-form[hidden]) .contact-lead {
  margin-inline: auto;
}

.contact-inner:has(> .contact-form[hidden]) .contact-details {
  grid-template-columns: auto auto;
  justify-content: center;
  text-align: left;
}

.contact-inner:has(> .contact-form[hidden]) .social-links {
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.field label {
  font-size: 16px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(52, 52, 52, 0.25);
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  font-size: 18px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}

.contact-form .btn {
  align-self: flex-start;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.4em;
  font-size: 16px;
}

.form-status.is-error {
  color: var(--color-accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px var(--container-pad);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.footer-inner > p {
  justify-self: end;
}

.footer-inner .logo-mark {
  height: 40px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--color-accent);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ===== Narrow desktop ===== */

@media (max-width: 1200px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(240px, auto);
    gap: 20px;
  }

  .service-card {
    padding: 40px 32px;
  }

  .service-card p {
    max-width: 36ch;
  }
}

/* ===== Tablet ===== */

@media (max-width: 1024px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    margin-left: auto;
  }
}

@media (max-width: 860px) {
  .portfolio-details {
    flex-direction: column;
    gap: 24px;
  }

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

  .portfolio-side {
    flex-basis: auto;
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 760px) {
  .about {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    text-align: center;
  }

  .about-content {
    align-items: center;
  }

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

  .feature-img {
    order: -1;
  }

  .feature-text {
    gap: 24px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
    flex: none;
    width: min(320px, 80%);
    align-self: center;
  }
}

/* ===== Mobile ===== */

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  }

  .before-after {
    gap: 16px;
  }

  .lightbox[open] {
    grid-template-columns: 1fr;
    padding: 56px 8px 72px;
  }

  .lb-prev,
  .lb-next {
    position: absolute;
    bottom: 12px;
  }

  .lb-prev {
    left: calc(50% - 56px);
  }

  .lb-next {
    right: calc(50% - 56px);
  }

  :root {
    --header-h: 80px;
  }

  .header-cta {
    display: none;
  }

  .mobile-nav .btn {
    width: 100%;
  }

  .services {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .service-card {
    padding: 48px 24px;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
  }

  .hero-title {
    z-index: 1;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    align-self: stretch;
  }

  .pricing-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .pricing-table,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table tbody th,
  .pricing-table tbody td {
    display: block;
    width: auto;
  }

  .pricing-table tr {
    padding: 24px 0;
    border-bottom: 1px solid rgba(52, 52, 52, 0.18);
  }

  .pricing-table tr:first-child {
    border-top: 1px solid var(--color-accent);
  }

  .pricing-table tbody th,
  .pricing-table tbody td {
    padding: 0;
    border: 0;
  }

  .pricing-table th:first-child,
  .pricing-table td:last-child {
    width: auto;
  }

  .pricing-table tbody td {
    margin-top: 12px;
  }

  .pricing-table .price::before {
    content: "Hind (KM ei lisandu)";
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    opacity: 0.7;
  }

  .pill {
    top: 8px;
    left: 8px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-inner > .logo,
  .footer-inner > p {
    justify-self: center;
  }
}

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