:root {
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --text: #7a2f78;
  --muted: #7a2f78;
  --border: rgba(31, 31, 31, 0.08);
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(248, 244, 238, 0.9), rgba(255, 255, 255, 1) 35%);
}

body > main {
  flex: 1 0 auto;
}

body > .site-footer {
  flex-shrink: 0;
}

.site-shell h1,
.site-shell h2,
.site-shell h3,
.site-shell h4,
.site-shell .logo-mark,
.site-shell .nav-link {
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-shell p,
.site-shell li,
.site-shell .lead,
.site-shell .small-label {
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
}

img {
  display: block;
  width: 100%;
}

.site-shell {
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}

.site-shell .container,
.site-shell .container-fluid,
.site-header .navbar,
.site-footer .container {
  padding-left: 4.5rem;
  padding-right: 4.5rem;
  max-width: 100%;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  color: var(--text) !important;
  text-transform: lowercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-decoration: none;
}

.logo-image {
  display: block;
  width: clamp(150px, 18vw, 220px);
  max-height: 38px;
  height: auto;
  object-fit: contain;
}

.nav-link {
  color: var(--text) !important;
  font-size: 0.98rem;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(31, 31, 31, 0.06);
}

.py-lg-6 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-banner {
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #efe6dc;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(17, 24, 39, 0.22)),
    url('../images/zrout/IMG_5418.jpg') center / cover no-repeat;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.25));
  z-index: 0;
}

.hero-banner-inner {
  color: #fff;
  max-width: 840px;
  text-align: center;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.eyebrow-light {
  color: #ffffff;
}

.hero-banner h1 {
  color: #ffffff;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 3px 18px rgba(17, 24, 39, 0.55);
}

.hero-banner .lead {
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 14px rgba(17, 24, 39, 0.55);
}

.hero-banner .eyebrow-light,
.hero-banner .lead {
  text-shadow: 0 2px 12px rgba(17, 24, 39, 0.45);
}

.intro-copy {
  max-width: 760px;
  padding: 0.25rem 0 0.5rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.intro-copy p,
.intro-note,
.intro-copy .intro-note--main,
.intro-copy .intro-note--sub,
.intro-copy .intro-note--accent {
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.intro-copy .intro-note--accent {
  color: #7a2f78;
}

.intro-copy .btn {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--text);
}

.hero-copy h1,
.hero-copy .display-4 {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1.02;
}

.hero-card,
.panel-card,
.project-card,
.product-card,
.contact-card,
.mini-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
}

.hero-card img {
  height: 320px;
  object-fit: cover;
}

.hero-card-body {
  padding: 1.2rem;
}

.hero-card-body h2 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.small-label {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--text);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.education-grid,
.project-grid,
.product-grid,
.mini-grid,
.contact-layout {
  display: grid;
  gap: 1rem;
}

.education-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card {
  padding: 1.25rem;
}

.panel-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.panel-card p,
.panel-card li,
.project-card p,
.product-card p,
.contact-card p,
.contact-list li {
  color: var(--text);
}

.panel-card ul {
  padding-left: 1rem;
  margin: 0.6rem 0 0;
}

.mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
  min-height: 108px;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-page {
  max-width: 1320px;
}

.project-shell {
  background: #f3f1ef;
  border-radius: 28px;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.portfolio-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.portfolio-intro .eyebrow {
  margin-bottom: 0.35rem;
}

.portfolio-intro h1 {
  color: var(--text);
  letter-spacing: -0.02em;
}

.portfolio-intro .lead {
  color: var(--muted) !important;
  font-size: 1.02rem;
  line-height: 1.6;
}

.joy-page {
  max-width: 1200px;
}

.joy-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.joy-intro .eyebrow {
  margin-bottom: 0.35rem;
}

.joy-intro h1 {
  color: var(--text);
  letter-spacing: -0.02em;
}

.joy-intro .lead,
.joy-intro p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.joy-intro .joy-soft-text {
  color: #7a2f78;
}

.product-shell {
  background: #d9d9d9;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.35rem;
  width: 100%;
}

.project-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 28px;
  border: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  width: 100%;
  aspect-ratio: 4 / 5.1;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 5px;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 50px rgba(255, 255, 255, 1);
}

.project-card img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(128, 128, 128, 0) 0%, rgba(128, 128, 128, 0.5) 45%, rgba(128, 128, 128, 1) 100%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 1;
}

.project-card:hover .project-card-body h3,
.project-card:focus-within .project-card-body h3 {
  color: #fff;
}

.project-card-body {
  position: absolute;
  left: 10%;
  right: 1rem;
  bottom: 5%;
  z-index: 1;
  padding: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.project-card:hover .project-card-body,
.project-card:focus-within .project-card-body {
  opacity: 1;
  transform: translateY(0);
}

.project-card-body h3 {
  margin: 0;
  color: #fff;
  font-size: 1.14rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-shadow: none;
}

.product-grid {
  grid-template-columns: repeat(2, 225px);
  justify-content: center;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
}

.product-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 28px;
  border: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  width: 225px;
  min-width: 0;
  aspect-ratio: 4 / 5.1;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 5px;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 50px rgba(255, 255, 255, 1);
}

.product-card::after {
  content: none;
}

.product-card:hover::after,
.product-card:focus-within::after {
  opacity: 1;
}

.product-card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  height: 20%;
  min-height: 0;
  padding: 0 0.35rem;
  place-items: center;
  opacity: 1;
  transform: none;
  background: #fff;
  transition: none;
}

.product-card:hover .product-card-body,
.product-card:focus-within .product-card-body {
  opacity: 1;
  transform: translateY(0);
}

.product-card-body h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(0.63rem, 0.975vw, 0.975rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: none;
}

.project-card-body,
.product-card-body {
  padding: 1rem 1.05rem 1.1rem;
}

.product-card-body {
  padding: 0 0.35rem;
}

.project-card-body {
  padding: 0;
}

.project-card-body h3,
.product-card-body h2 {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0;
  color: var(--text);
}

.project-card-body h3 {
  font-size: 0.882rem;
}

.project-card-body p,
.product-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-shadow: none;
}

.shop-detail-page {
  position: relative;
  min-height: 0;
  padding: clamp(3.5rem, 5vw, 5rem) clamp(1.5rem, 7vw, 7rem) 1.25rem;
  background: #d9d9d9;
}

.shop-detail-back {
  position: absolute;
  top: 2rem;
  left: clamp(1.5rem, 7vw, 7rem);
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.shop-detail-back:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.shop-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.shop-detail-media,
.shop-detail-copy {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.shop-detail-media {
  height: 586px;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.shop-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  height: 586px;
  overflow: hidden;
}

.shop-detail-label {
  margin: 0 0 1rem;
  color: #7a2f78;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.shop-detail-copy h1 {
  margin: 0 0 1.35rem;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.shop-detail-copy p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}

.shop-detail-copy .shop-detail-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
}

.shop-detail-contact {
  align-self: flex-start;
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--text);
  border-radius: 999px;
  color: #fff;
  background: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.shop-detail-contact:hover {
  color: var(--text);
  background: #fff;
}

.contact-shell {
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    url('../images/zrout/IMG_5418.jpg') center / cover no-repeat;
  border-radius: 28px;
  border: 0;
  background-clip: padding-box;
  padding: 1rem;
  display: flex;
  min-height: 67.5vh;
  flex-direction: column;
  justify-content: space-evenly;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.site-shell:has(.contact-page) {
  height: 100vh;
  overflow: hidden;
}

.site-shell:has(.contact-page) main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.site-shell:has(.contact-page) .contact-page {
  display: flex;
  width: 100%;
  padding: 0 !important;
}

.site-shell:has(.contact-page) .contact-shell {
  width: 100%;
  min-height: 0;
  border-radius: 0;
  flex: 1;
}

.site-shell:has(.contact-page) .site-footer {
  margin-top: 0;
}

.contact-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.3rem;
  text-align: center;
}

.contact-intro .eyebrow {
  margin-bottom: 0.35rem;
}

.contact-intro h1 {
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact-intro .lead {
  color: var(--muted) !important;
  font-size: 1.02rem;
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  padding: 1.3rem;
  border-radius: 24px;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.contact-card h2 {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}

.contact-card p,
.contact-card li,
.contact-card a {
  color: var(--text);
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-note {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.site-footer {
  border-top: 0;
  margin-top: 2rem;
  background: #d9d9d9;
}

.site-shell:has(.shop-detail-page) .site-footer {
  margin-top: 0;
}

.site-shell:has(.joy-page),
.site-shell:has(.shop-detail-page) {
  height: 100vh;
  overflow: hidden;
}

.site-shell:has(.joy-page) main,
.site-shell:has(.shop-detail-page) main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.site-shell:has(.joy-page) .joy-page {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  justify-content: center;
  padding: clamp(0.75rem, 2vh, 1.25rem) 4.5rem !important;
}

.site-shell:has(.joy-page) .product-shell {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 0;
  border-radius: 28px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vh, 2.25rem) clamp(1.5rem, 5vw, 4rem);
}

.site-shell:has(.joy-page) .joy-intro {
  margin-bottom: clamp(1rem, 2.5vh, 1.75rem) !important;
}

.site-shell:has(.joy-page) .site-footer,
.site-shell:has(.shop-detail-page) .site-footer {
  margin-top: 0;
}

.site-shell:has(.shop-detail-page) .shop-detail-page {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1.5rem, 6vw, 6rem) clamp(1rem, 2vh, 1.75rem);
}

.site-shell:has(.shop-detail-page) .shop-detail-shell {
  width: min(100%, 1080px);
  max-height: 100%;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.site-shell:has(.shop-detail-page) .shop-detail-media,
.site-shell:has(.shop-detail-page) .shop-detail-copy {
  height: min(52vh, 500px);
}

.site-shell:has(.shop-detail-page) .shop-detail-copy {
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
}

.site-shell:has(.shop-detail-page) .shop-detail-copy h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.site-shell:has(.shop-detail-page) .shop-detail-copy p {
  margin-bottom: 0.7rem;
}

.site-footer p,
.site-footer .text-muted {
  color: var(--text) !important;
}

.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
}

.footer-email {
  position: absolute;
  left: 30%;
}

.footer-socials {
  position: absolute;
  right: 72%;
}

.footer-year {
  position: absolute;
  left: 90%;
  white-space: nowrap;
}

.footer-socials a {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  color: var(--text);
  text-decoration: none;
}

.footer-socials svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  opacity: 0.7;
}

@media (max-width: 767.98px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-email,
  .footer-socials,
  .footer-year {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 0.75rem;
  }

  .nav-link {
    border-radius: 0;
  }
}

@media (max-width: 1199.98px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .hero-grid,
  .education-grid,
  .product-grid,
  .mini-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .hero-card img,
  .product-card img {
    height: 180px;
  }

  .project-card img {
    height: 100%;
    object-fit: cover;
    background: #eee9e4;
  }

  .project-card {
    border-radius: 16px;
  }

  .project-card-body {
    left: 0;
    right: auto;
    bottom: 0.65rem;
    width: calc(100% - 1.1rem);
    max-width: none;
    padding: 0 0.25rem;
    opacity: 1;
    transform: none;
    border-radius: 0;
    background: transparent;
  }

  .project-card-body h3 {
    font-size: 0.62rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 1px 5px rgba(17, 24, 39, 0.8);
  }

  .product-card img {
    height: 100%;
    object-fit: cover;
    background: transparent;
  }

  .product-card {
    width: min(78vw, 345px);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .shop-detail-page {
    padding: 5rem 1rem 3rem;
  }

  .shop-detail-back {
    left: 1rem;
  }

  .shop-detail-shell {
    grid-template-columns: 1fr;
  }

  .shop-detail-media {
    height: 42vh;
    min-height: 320px;
  }

  .shop-detail-copy {
    height: auto;
    padding: 2rem 1.5rem;
  }
}

/* Home page inspired by the original Vendula Strofova portfolio. */
body.site-shell {
  background: #fff;
}

.site-header {
  position: relative;
  z-index: 10;
  background: #d9d9d9;
  border: 0;
  box-shadow: none !important;
}

.site-header .navbar {
  min-height: 74px;
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
}

.logo-mark {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.08em !important;
  font-weight: 500;
}

.site-header .nav-link {
  font-size: 1.08rem;
}

.nav-link:hover,
.nav-link.active {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.home-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 74px));
  overflow: hidden;
  background: #dedede;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.home-hero-image {
  width: 100%;
  height: 100%;
  min-height: min(720px, calc(100vh - 74px));
  object-fit: cover;
  object-position: center;
}

.home-hero-copy {
  position: absolute;
  z-index: 1;
  top: 59%;
  left: 50%;
  width: fit-content;
  max-width: calc(100% - 3rem);
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  text-align: center;
  text-shadow: none;
}

.home-hero-copy h1 {
  margin: 0 0 0.4rem;
  color: #7a2f78;
  font-size: clamp(2.25rem, 5.4vw, 5.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.015em;
}

.home-hero-copy p {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.home-about {
  display: grid;
  place-items: center;
  min-height: 540px;
  padding: 3.5rem 2rem;
}

.home-about-copy {
  max-width: 900px;
  text-align: center;
}

.home-about-copy p {
  margin: 0 0 1.15rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2.35vw, 2rem);
  font-weight: 500;
  line-height: 1.45;
}

.home-about-copy .home-tilde {
  margin: 1.6rem 0;
  font-size: 2rem;
}

.home-education {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 1.5rem 0 3rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) max(clamp(1.5rem, 4vw, 4rem), calc((100vw - 1120px) / 2));
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
}

.home-education {
  display: grid;
  gap: 0.85rem;
  padding-left: 0;
}

.home-education::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6.9375rem;
  width: 2px;
  background: var(--text);
}

.bio-row {
  display: grid;
  grid-template-columns: 5.5rem 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  min-height: 1.8rem;
  position: relative;
  color: var(--text);
}

.bio-marker {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  margin: 0.45rem auto 0;
  border-radius: 50%;
  background: var(--text);
}

.bio-row--year .bio-marker {
  width: 1rem;
  height: 1rem;
  margin: 0.2rem auto 0;
  border: 2px solid var(--text);
  background: #fff;
}

.bio-date,
.bio-text {
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
}

.bio-date {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}

.bio-date--month {
  font-weight: 700;
}

.bio-text {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  text-align: left;
}

.bio-date {
  font-weight: 700;
}

.bio-text:empty,
.bio-date:empty {
  min-height: 1.45em;
}

.education-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 2.5rem;
  margin-top: 1.75rem;
  position: relative;
}

.education-row:first-child {
  margin-top: 0;
}

.education-row p,
.education-row h2 {
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
}

.education-row::before {
  content: none;
}

.education-row h2 {
  margin: 0 0 0.25rem;
}

.education-row p {
  margin: 0.05rem 0;
}

.education-year {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 700 !important;
  margin: 0.05rem 0;
}

.education-month {
  font-size: 0.82em;
  font-weight: 500;
}

.education-detail {
  padding-left: 1.5rem;
}

.project-detail {
  background: #fff;
  overflow-x: clip;
}

.project-detail-header {
  position: relative;
  max-width: 1460px;
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) clamp(0.75rem, 3.5vw, 3.5rem) clamp(3rem, 5vw, 4.5rem);
  text-align: left;
}

.project-kicker,
.project-detail-header .project-kicker {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.project-detail-title {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.15fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 10rem);
}

.project-detail-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.project-detail-header .project-year {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.project-intro-text {
  max-width: 610px;
  padding-top: 0.1rem;
}

.project-intro-text p {
  margin: 0 0 1.35rem;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
}

.project-intro-text p:first-child {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
}

.project-detail-hero {
  width: min(100% - 3rem, 1380px);
  margin: 0 auto;
  overflow: hidden;
}

.project-detail-hero img {
  width: calc(100% - 1.5rem);
  max-height: 86vh;
  object-fit: cover;
  object-position: center 48%;
}

.project-slider {
  position: relative;
  width: min(50vw, 820px);
  margin: 0 auto;
  overflow: visible;
}

.project-slider-viewport {
  width: 100%;
  overflow: visible;
  border-radius: 0;
}

.project-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 82vh;
}

.project-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  visibility: hidden;
  transform: translateX(calc(100vw + 100%));
  transition: transform 760ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.project-slide.is-active {
  visibility: visible;
  transform: translateX(0);
}

.project-slide.is-entering-right,
.project-slide.is-entering-left,
.project-slide.is-leaving-left,
.project-slide.is-leaving-right {
  visibility: visible;
}

.project-slide.is-entering-right {
  transform: translateX(calc(100vw + 100%));
  transition: none;
}

.project-slide.is-entering-left {
  transform: translateX(calc(-100vw - 100%));
  transition: none;
}

.project-slide.is-leaving-left {
  transform: translateX(calc(-100vw - 100%));
}

.project-slide.is-leaving-right {
  transform: translateX(calc(100vw + 100%));
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-slide--pink img {
  object-position: 5% 10%;
  transform: scale(1.2);
}

.project-slide--blue img {
  object-position: 96% 36%;
  transform: scale(1.22);
}

.project-slide--orange img {
  object-position: 48% 94%;
  transform: scale(1.2);
}

.project-slider-prev,
.project-slider-next {
  position: fixed;
  z-index: 2;
  top: 50%;
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-size: 0;
  cursor: pointer;
  transition: transform 160ms ease;
}

.project-slider-prev {
  left: 1.25rem;
}

.project-slider-next {
  right: 1.25rem;
}

.project-slider-prev::before,
.project-slider-next::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.85rem;
  height: 1.85rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.project-slider-prev::before {
  left: 0.55rem;
  transform: translateY(-50%) rotate(-135deg);
}

.project-slider-next::before {
  right: 0.55rem;
  transform: translateY(-50%) rotate(45deg);
}

.project-slider-prev:hover,
.project-slider-next:hover {
  background: transparent;
}

.project-slider-prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.project-slider-next:hover {
  transform: translateY(-50%) translateX(3px);
}

.project-slider-prev:focus-visible,
.project-slider-next:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.project-slider-prev[hidden],
.project-slider-next[hidden] {
  display: none;
}

.project-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(3rem, 8vw, 9rem);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) 2rem;
}

.project-story h2 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-story-copy {
  align-self: end;
  max-width: 610px;
}

.project-story-copy p {
  margin: 0 0 1.4rem;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 400;
  line-height: 1.75;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem);
  width: 100%;
  margin: 0 auto;
}

.project-gallery-item {
  margin: 0;
  height: min(70vw, 820px);
  overflow: hidden;
  background: #eee9e4;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery-item--pink {
  grid-row: span 2;
  height: 100%;
  min-height: 900px;
}

.project-gallery-item--pink img {
  object-position: 6% 8%;
  transform: scale(1.18);
}

.project-gallery-item--blue {
  height: 560px;
}

.project-gallery-item--blue img {
  object-position: 96% 38%;
  transform: scale(1.22);
}

.project-gallery-item--orange {
  height: 560px;
}

.project-gallery-item--orange img {
  object-position: 48% 92%;
  transform: scale(1.18);
}

.project-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: calc(100% - 1.5rem);
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.project-detail-nav a {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.project-detail-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.project-detail .project-detail-header {
  padding-top: 3.25rem;
  padding-bottom: 1.25rem;
}

.project-detail--bryle-se-zpetnym-zrcatkem .project-detail-header,
.project-detail--multifunkcni-auticko .project-detail-header,
.project-detail--mouchomlat-pongmaster .project-detail-header,
.project-detail--sachy-do-kapsy .project-detail-header,
.project-detail--misto-k-sezeni .project-detail-header {
  padding-top: 2rem;
  padding-bottom: 0.75rem;
}

.project-detail .project-detail-title {
  gap: clamp(2rem, 5vw, 5rem);
}

.project-detail .project-detail-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 3.15rem);
  line-height: 1.12;
  max-width: 100%;
  overflow-wrap: normal;
  text-wrap: balance;
}

.project-detail--multifunkcni-auticko .project-detail-header h1 {
  line-height: 1.12;
}

.project-detail .project-intro-text p {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.project-detail .project-intro-text p:first-child {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.project-detail .project-slider {
  width: min(37vw, 470px);
}

.project-detail .project-slides {
  max-height: 50vh;
  aspect-ratio: 3 / 4;
}

.project-detail .project-detail-nav {
  padding: 1rem 0 1.25rem;
}

.site-shell:has(.project-detail) .site-footer {
  margin-top: 0;
}

.site-shell:has(.project-detail) main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.site-shell:has(.project-detail) .project-detail {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.site-shell:has(.project-detail) .project-detail-nav {
  margin-top: auto;
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.8rem;
  }

  .site-header .navbar-brand {
    font-size: 1.05rem;
  }

  .logo-image {
    width: 170px;
    max-height: 30px;
  }

  .site-header .nav-link {
    font-size: 0.86rem;
  }

  .home-hero-copy h1 {
    font-size: clamp(1.8rem, 4.32vw, 4.16rem);
  }

  .home-hero-copy p {
    font-size: clamp(0.8rem, 1.44vw, 1.16rem);
  }

  .home-about-copy p {
    font-size: clamp(1rem, 1.88vw, 1.6rem);
  }

  .education-row p,
  .education-row h2,
  .project-intro-text p,
  .joy-intro p,
  .contact-card p,
  .contact-card li {
    font-size: 0.8rem;
  }

  .project-intro-text p:first-child,
  .joy-intro .lead,
  .contact-intro .lead {
    font-size: 0.96rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .product-card {
    width: 100%;
    border-radius: 16px;
  }

  .product-card-body h2 {
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .contact-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .contact-grid .contact-card {
    width: 100%;
  }

  .contact-list li:last-child {
    white-space: nowrap;
  }

  .contact-list li:nth-child(2) {
    margin-left: -0.25rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .site-shell:has(.joy-page),
  .site-shell:has(.shop-detail-page),
  .site-shell:has(.contact-page) {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .site-shell:has(.joy-page) main,
  .site-shell:has(.shop-detail-page) main,
  .site-shell:has(.contact-page) main {
    display: block;
  }

  .site-shell .container,
  .site-shell .container-fluid,
  .site-header .navbar,
  .site-footer .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .home-hero,
  .home-hero-image {
    min-height: 68vh;
  }

  .home-hero-image {
    object-position: 62% center;
  }

  .home-hero-copy {
    top: 59%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(100% - 3rem);
  }

  .home-about {
    min-height: auto;
    padding: 0.5rem 1.5rem;
  }

  .home-about-copy p {
    margin-bottom: 0.55rem;
  }

  .home-about-copy .home-tilde {
    margin: 0.35rem 0;
  }

  .home-education {
    padding: 1rem 1.5rem 6rem 0;
  }

  .bio-row {
    grid-template-columns: 4.5rem 1.5rem minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 1.65rem;
  }

  .home-education::before {
    left: 5.6875rem;
  }

  .bio-date,
  .bio-text {
    font-size: 0.8rem;
  }

  .education-row {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 3.5rem;
  }

  .education-detail {
    padding-left: 1rem;
  }

  .project-detail-header {
    padding-top: 5.5rem;
  }

  .project-detail-header h1 {
    font-size: clamp(2.45rem, 12.6vw, 3.85rem);
    line-height: 1.12;
  }

  .project-detail-title {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-intro-text {
    max-width: none;
  }

  .project-detail-hero {
    width: calc(100% - 2rem);
  }

  .project-detail-hero img {
    min-height: 68vh;
  }

  .project-detail .project-slider {
    width: min(76vw, 440px);
  }

  .project-slides {
    aspect-ratio: 4 / 5.5;
    max-height: 76vh;
  }

  .project-slider-next {
    right: 0.4rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .project-slider-prev {
    left: 0.4rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .project-slider-prev::before,
  .project-slider-next::before {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 2px 2px 0 0;
  }

  .project-story {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 5rem 1.5rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    width: calc(100% - 2rem);
  }

  .project-gallery-item,
  .project-gallery-item--pink,
  .project-gallery-item--blue,
  .project-gallery-item--orange {
    grid-row: auto;
    min-height: 0;
    height: 68vh;
  }

  .project-detail-nav {
    width: calc(100% - 1rem);
    padding: 3.5rem 0 5rem;
    font-size: 0.85rem;
  }

  .site-shell:has(.joy-page) .joy-page {
    padding: 0.75rem 1.25rem !important;
  }

  .site-shell:has(.joy-page) .product-shell {
    padding: 1rem !important;
  }
}
