@font-face {
  font-family: "Sofia Pro";
  src: url("../fonts/sofiapro-medium-webfont.woff2") format("woff2"),
       url("../fonts/sofiapro-medium-webfont.woff") format("woff");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("../fonts/sofiapro-semibold-webfont.woff2") format("woff2"),
       url("../fonts/sofiapro-semibold-webfont.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("../fonts/sofiapro-bold-webfont.woff2") format("woff2"),
       url("../fonts/sofiapro-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4f0;
  --white: #fff;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: #e6e2db;
  --navy: #0b1428;
  --navy-2: #111b33;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(11, 20, 40, 0.12);
  --header: 4.6rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Sofia Pro", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: 3.6rem;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.55rem; }
h1 { font-size: 2.25rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.topbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--navy);
  color: #e8e6e1;
  text-align: center;
  font-size: 16px;
  padding: 0.75rem 1.2rem;
}
.topbar p { margin: 0; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #e7f3ee;
  border-bottom: none;
}
.header-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.4rem;
}
.logo { justify-self: start; }
.logo svg { width: 200px; height: 42px; color: var(--ink); display: block; }
.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.7rem;
}
.header-shop {
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
}
.header-shop:hover { color: #000; }
.header-rule {
  width: 22px;
  height: 2px;
  background: #000;
  flex: none;
}
.icon-phone {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #55a685;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  flex: none;
}
.icon-phone .material-symbols-outlined { font-size: 20px; }
.icon-phone:hover { background: #478c70; }
.menu-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--ink);
  display: none;
  place-items: center;
  border-radius: 50%;
}
.menu-toggle:hover { background: #f3f1ec; }
.menu-toggle .material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-size: 28px;
  color: #000;
  line-height: 1;
}
.menu-icon-close {
  display: none;
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
  color: #000;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: #000;
  padding: 0.35rem 0;
}
.main-nav a:hover { color: #000; }
.nav-item { position: relative; }
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.8rem;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.55rem 0;
  z-index: 25;
}
.nav-sub a {
  display: block;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}
.nav-sub a:hover { background: #f6f4f0; }
.nav-item:hover .nav-sub,
.nav-item.is-open .nav-sub { display: block; }

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1.2rem 0;
}
.slider {
  position: relative;
  height: min(56vh, 520px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0d12;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-media {
  position: absolute;
  inset: 0;
  background: right center / cover no-repeat var(--bg);
  transform: scale(1.03);
}
.slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.62) 0%, rgba(8, 10, 14, 0.18) 46%, transparent 72%);
}
.slide-copy {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 460px;
  color: #fff;
  z-index: 2;
}
.slide-brand {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: #fff;
}
.slide-copy h1, .slide-copy h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); color: #fff; }
.slide-copy p { color: #fff; max-width: 38ch; }
.btn-on-dark {
  background: #fff;
  color: #141414;
}
.btn-on-dark:hover { background: #f3f1ec; }
.slider-arrows {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: flex;
  gap: 0.45rem;
  z-index: 3;
}
.slider-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.slider-arrow svg { width: 18px; height: 18px; }
.slider-dots {
  position: absolute;
  right: 1.4rem;
  bottom: 1.15rem;
  display: flex;
  gap: 0.45rem;
  z-index: 3;
}
.slider-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, border-radius 0.25s ease, background 0.2s ease;
}
.slider-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}
.slider-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 4;
  overflow: hidden;
}
.slider-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
@keyframes slider-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 44px;
  padding: 0 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-light:hover { background: #f3f1ec; }
.btn-dark:hover { background: #18233f; }

.featured {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.15rem 1.2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.feature-card {
  position: relative;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border: 0;
  outline: none;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.feature-card:focus,
.feature-card:focus-visible { outline: none; }
.nested-cats {
  max-width: 1280px;
  margin: 0.9rem auto 0;
  padding: 0 1.2rem;
}
.nested-panel {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.nested-panel.is-open { display: grid; }
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: brightness(0.72);
}
.feature-meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.feature-title {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  min-height: 2.5em;
  color: var(--ink);
  text-align: left;
}
.feature-card.is-active .feature-title { font-weight: 700; }
.feature-go {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: #55a685;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.feature-card.is-product {
  background: #fff;
  color: var(--ink);
  min-height: 320px;
}
.feature-card.is-product img {
  filter: none;
  object-fit: contain;
  padding: 2.2rem 2.2rem 5rem;
}
.cat-page { padding: 2.4rem 1.4rem 4rem; max-width: 1280px; margin: 0 auto; }
.crumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.subcat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  scroll-margin-top: 7rem;
}
.subcat-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 1.4rem;
  background: #fff;
}
.subcat-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  min-height: 2.5em;
  padding: 0 1.1rem 0.4rem;
}
.subcat-go {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 0.5rem;
  margin: 0 1.1rem 1.15rem;
  padding: 0.4rem 0.95rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: #55a685;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.subcat-go .material-symbols-outlined,
.feature-go .material-symbols-outlined {
  font-size: 20px;
}
.cat-intro { max-width: 62ch; color: var(--muted); }
.service-card.is-product { text-decoration: none; color: inherit; display: block; }
.service-card.is-product img { object-fit: contain; background: #fff; padding: 1.2rem; }

.stats, .services, .industries, .about, .places, .faq, .contact {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.2rem 1.4rem 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.section-head { margin-bottom: 1.6rem; }
.section-head h2, .stats h2, .about h2, .contact h2, .industries h2, .places h2, .faq h2, .eshop-inner h2, .cat-page h1 {
  font-size: 2rem;
}

.stats {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
.stats-intro { background: #e7f3ee; border-radius: 20px; padding: 2.2rem; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.stats-grid div {
  padding: 0.4rem 0.2rem 1.2rem;
}
.stats-grid strong { display: block; font-size: 1.7rem; letter-spacing: -0.03em; }
.stats-grid span { color: var(--muted); font-size: 16px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}
.service-card img { height: 170px; width: 100%; object-fit: cover; }
.service-card div { padding: 1.05rem 1.1rem 1.2rem; }
.service-card h3 { font-size: 1.25rem; }
.service-card p, .service-card h3 { margin-bottom: 0.4rem; }
.service-card p { color: var(--muted); font-size: 16px; }
.service-card.is-hidden, .subcat-card.is-hidden { display: none; }
.search-empty { text-align: center; color: var(--muted); padding: 1rem 0 0; }

.eshop { padding: 4rem 1.2rem 0; }
.eshop-inner {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--radius);
  min-height: 360px;
  padding: 3rem 2.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(11, 20, 40, 0.8) 0%, rgba(11, 20, 40, 0.48) 48%, rgba(11, 20, 40, 0.08) 72%, transparent 100%),
    center / cover no-repeat url("../assets/eshop-sklad.jpg");
}
.eshop-copy { width: 50%; max-width: 50%; }
.eshop-inner a { color: #fff; }
.eshop-inner .btn { margin-top: 0.4rem; color: var(--ink); }

.industries ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.industries li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 500;
}

.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: start;
}
.about-copy, .about-sustain {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
}
.about-sustain { background: #e7f3ee; }
.about-sign { margin-top: 1.2rem; }

.places-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.places-grid article {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
}
.places-grid a { font-weight: 600; }

.faq-list details {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.faq-list summary::-webkit-details-marker,
.faq-list summary::marker { display: none; content: ""; }
.faq-list summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #55a685;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { color: var(--muted); margin: 0.7rem 0 0; }

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding-bottom: 4rem;
}
.contact-facts { list-style: none; padding: 0; color: var(--muted); }
.contact-facts li { margin: 0.35rem 0; }
.contact-form {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  display: grid;
  gap: 0.8rem;
}
.contact-form label { font-size: 0.86rem; font-weight: 600; display: grid; gap: 0.35rem; }
.contact-form input, .contact-form textarea {
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #faf9f6;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  box-shadow: none;
  background: #f3f1ec;
}
.form-note { color: #1b6b45; font-size: 0.9rem; margin: 0; }

.site-footer {
  width: 100%;
  max-width: none;
  margin: 2.4rem 0 0;
  background: #e7f3ee;
  color: var(--ink);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.2rem 1.4rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-news h2 {
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 2rem;
}
.footer-news p { color: var(--ink); font-size: 16px; }
.news-form {
  display: flex;
  max-width: 420px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 1.4rem;
}
.news-form input {
  border: 0;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
}
.news-form button {
  border: 0;
  background: transparent;
  padding: 0 0.85rem;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.news-form button .material-symbols-outlined { font-size: 22px; }
.footer-social-label { font-size: 0.82rem; margin-bottom: 0.45rem; }
.social { display: flex; gap: 0.7rem; }
.social a {
  width: 28px;
  height: 28px;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.social .material-symbols-outlined { font-size: 22px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  width: 100%;
}
.footer-cols h3 {
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}
.footer-cols a {
  display: block;
  width: fit-content;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  margin: 0.38rem 0;
}
.footer-cols a::after,
.footer-bottom a:not(.to-top)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.footer-cols a:hover::after,
.footer-bottom a:not(.to-top):hover::after {
  transform: scaleX(1);
}
.footer-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}
.footer-with-icon .material-symbols-outlined {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  margin-right: 5px;
}
.footer-with-icon::after {
  left: calc(28px + 1.1rem);
  width: calc(100% - 28px - 1.1rem);
}
.footer-bottom {
  padding: 1rem 1.4rem 1.3rem;
  border-top: 1px solid rgba(11, 20, 40, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 16px;
  color: var(--ink);
}
.footer-bottom p { margin: 0; }
.footer-bottom a:not(.to-top) {
  position: relative;
  color: var(--ink);
  text-decoration: none;
}
.to-top {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.to-top .material-symbols-outlined { font-size: 20px; }

@media (max-width: 980px) {
  .header-main {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding-inline: 0.8rem;
    gap: 0.45rem;
  }
  .logo { grid-column: 1; grid-row: 1; }
  .logo svg { width: 148px; height: 32px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 0.45rem; }
  .header-shop { font-size: 1rem; }
  .header-rule { width: 16px; }
  .menu-toggle { display: grid; }
  body.menu-open .menu-icon-open { display: none; }
  body.menu-open .menu-icon-close { display: block; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
    padding: 0.6rem 0 1rem;
  }
  body.menu-open { overflow: hidden; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: calc(100dvh - 8.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .main-nav.is-open > a,
  .main-nav.is-open .nav-item {
    display: block;
    width: 98%;
    text-align: center;
  }
  .main-nav.is-open a {
    display: block;
    width: 98%;
    margin-inline: auto;
    text-align: center;
    padding: 0.7rem 0;
  }
  .featured, .services-grid, .places-grid, .stats, .about, .contact, .footer-grid, .footer-cols {
    grid-template-columns: 1fr;
  }
  .nested-panel, .subcat-grid, .case-photos { grid-template-columns: repeat(2, 1fr); }
  .main-nav.is-open .nav-sub {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    width: 98%;
    margin: 0 auto;
    padding: 0 0 0.3rem;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .slider { height: 520px; }
  .slide-copy { left: 1.3rem; right: 1.3rem; }
  .eshop-copy { width: 100%; max-width: 100%; }
  h1 { font-size: 1.85rem; }
  h2, .section-head h2, .stats h2, .about h2, .contact h2, .industries h2, .places h2, .faq h2, .eshop-inner h2, .cat-page h1 {
    font-size: 1.7rem;
  }
  .footer-bottom {
    flex-wrap: wrap;
    margin-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .featured { grid-template-columns: 1fr; }
  .stats-grid, .footer-cols { grid-template-columns: 1fr; }
  .slider-arrows { top: 0.75rem; right: 0.75rem; }
  .slider-arrow { width: 38px; height: 38px; }
  .feature-card { min-height: 220px; }
  .nested-panel, .subcat-grid, .case-photos { grid-template-columns: 1fr; }
}

.case-teaser {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.2rem 1.4rem 0;
}
.case-teaser-more { margin: 1.6rem 0 0; }
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.case-filters button {
  border: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-weight: 600;
}
.case-filters button.is-active { background: #55a685; color: #fff; }
.case-card img {
  height: 200px;
  object-fit: cover;
  padding: 0;
  background: #e7e4de;
}
.case-card h3 {
  min-height: 3.75em;
  padding-top: 1.05rem;
}
.case-card .subcat-go { margin-top: auto; }
.case-lead { max-width: 68ch; color: var(--muted); }
.case-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.case-photos button {
  border: 0;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
}
.case-photos img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(11, 20, 40, 0.82); }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .case-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .case-photos { grid-template-columns: 1fr; }
  .case-photos img { height: 220px; }
}

.case-page .case-photos { margin-bottom: 2.4rem; }
.photo-band-wrap {
  width: 100%;
  margin-top: 2.8rem;
  overflow: hidden;
}
.photo-band-wrap + .site-footer { margin-top: 0; }
.photo-band {
  --photo-cols: 10;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--photo-cols), minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
}
.photo-band-row { display: contents; }
.photo-band a {
  display: none;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.photo-band a.is-on {
  display: block;
  aspect-ratio: 1;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band a.is-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  animation: photo-flash 0.7s ease;
}
@keyframes photo-flash {
  0% { opacity: 0; }
  28% { opacity: 0.28; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-band a.is-flash::after { animation: none; }
}

.catalog-card img {
  object-fit: cover;
  object-position: top center;
  background: #fff;
}
.catalog-search {
  display: grid;
  gap: 0.35rem;
  max-width: 28rem;
  margin-top: 1.4rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.catalog-search input {
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #faf9f6;
  font-weight: 400;
}
.catalog-search input:focus {
  outline: none;
  box-shadow: none;
  background: #f3f1ec;
}
.catalog-table-wrap { overflow-x: auto; margin-top: 1rem; }
.catalog-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
}
.catalog-table th,
.catalog-table td {
  text-align: left;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #eceae4;
  white-space: nowrap;
}
.catalog-table th { font-weight: 600; }
.catalog-table tbody tr:hover td,
.catalog-table tbody tr.is-asked td { background: #f6f4f0; }
.catalog-table tr[hidden] { display: none; }
.catalog-ask { width: 1%; text-align: right; }
.catalog-ask-btn {
  border: 0;
  border-radius: 999px;
  background: #55a685;
  color: #fff;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  cursor: pointer;
  opacity: 0;
}
.catalog-table tbody tr:hover .catalog-ask-btn,
.catalog-table tbody tr:focus-within .catalog-ask-btn,
.catalog-table tbody tr.is-asked .catalog-ask-btn { opacity: 1; }
.case-page h2 { margin-top: 2.4rem; }
.catalog-note { max-width: 68ch; }
@media (hover: none) {
  .catalog-ask-btn { opacity: 1; }
}
.catalog-sheets { grid-template-columns: 1fr; max-width: 860px; }
.catalog-sheets img {
  height: auto;
  object-fit: contain;
  background: #fff;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.profile-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.profile-card.is-hidden { display: none; }
.profile-card.is-asked { background: #f3faf6; }
.profile-zoom {
  border: 0;
  padding: 0.7rem 0.7rem 0;
  background: transparent;
  cursor: zoom-in;
}
.profile-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.profile-card h3 {
  font-size: 1.05rem;
  min-height: 0;
  margin: 0.75rem 0.9rem 0.15rem;
  padding: 0;
}
.profile-card p {
  margin: 0 0.9rem 0.7rem;
  color: var(--muted);
}
.profile-card .catalog-ask-btn {
  opacity: 1;
  align-self: flex-end;
  margin: 0 0.8rem 0.85rem;
}
@media (max-width: 980px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
}
