/**
 * Xender BioPharma — layout chrome & patterns (TASK-016)
 * Expanded from v10 design system; maintainable (not minified).
 */

/* —— Top bar —— */
.top {
  background: var(--navy);
  color: #d9e8f6;
  font-size: 13px;
}

.top .container {
  height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.top-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.top a:hover {
  color: #fff;
}

/* —— Sticky header —— */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(7, 29, 56, 0.08);
  backdrop-filter: blur(16px);
}

.header-row {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.logo img {
  width: 178px;
  height: 54px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav > a,
.drop-btn {
  border: 0;
  background: transparent;
  padding: 11px 12px;
  border-radius: 10px;
  color: #405067;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.nav > a:hover,
.nav > a.active,
.drop-btn:hover,
.drop-btn.active {
  color: var(--blue);
  background: #eef7ff;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.22s;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown-menu a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #f3f8fc;
  color: var(--blue);
}

.dropdown-menu small {
  font-weight: 500;
  color: #8794a5;
}

.header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.icon-btn,
.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--navy);
  cursor: pointer;
}

.menu-btn {
  display: none;
}

/* —— Mobile panel —— */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(4, 25, 44, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: 0.22s;
}

.mobile-panel.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: relative;
  width: min(88vw, 360px);
  height: 100%;
  background: #fff;
  padding: 24px;
  transform: translateX(-100%);
  transition: 0.25s;
  overflow: auto;
  display: grid;
  gap: 5px;
  align-content: start;
}

.mobile-panel.open .mobile-nav {
  transform: none;
}

.mobile-nav > a,
.mobile-products-btn {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid #edf2f6;
  background: transparent;
  text-align: left;
  color: #20344b;
  font-weight: 800;
  cursor: pointer;
}

.mobile-sub {
  display: none;
  padding: 4px 0 8px 15px;
}

.mobile-sub.open {
  display: grid;
}

.mobile-sub a {
  display: block;
  padding: 11px;
  color: #52657a;
}

.mobile-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #edf5fb;
  color: #08294a;
  font-size: 25px;
  cursor: pointer;
}

/* —— Sections —— */
.section {
  padding: 92px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f5f9fc, #fff);
}

.heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.heading h2 {
  margin-top: 12px;
}

.heading p {
  font-size: 17px;
  margin-top: 17px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 710px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 35%, rgba(44, 145, 219, 0.18), transparent 26%),
    linear-gradient(115deg, #fff 0%, #f7fbff 56%, #e8f5ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  right: -180px;
  bottom: -280px;
  background: radial-gradient(circle, rgba(99, 173, 69, 0.18), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 70px;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.hero-copy h1 span {
  color: var(--blue);
}

.hero-copy .lead {
  max-width: 670px;
  margin-top: 25px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e7f2;
  font-size: 12px;
  font-weight: 800;
  color: #28435e;
  box-shadow: 0 6px 18px rgba(7, 29, 56, 0.05);
}

.chip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 7px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.hero-note {
  display: flex;
  gap: 24px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #dbe6ef;
}

.hero-note div {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.hero-note strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.hero-note span span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.check {
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: #eaf7e6;
  color: #4e9634;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}

.hero-media {
  position: relative;
  height: 520px;
}

.hero-frame {
  position: absolute;
  inset: 0;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(7, 29, 56, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #dbeaf5;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 29, 56, 0.35));
}

.slide-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
  z-index: 2;
}

.slide-caption strong {
  display: block;
  font-size: 20px;
}

.slide-caption span {
  font-size: 13px;
  opacity: 0.9;
}

.slider-controls {
  position: absolute;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(7, 29, 56, 0.28);
  color: #fff;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.dots {
  position: absolute;
  left: 28px;
  top: 28px;
  display: flex;
  gap: 7px;
  z-index: 3;
}

.dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  transition: 0.2s;
  cursor: pointer;
}

.dot.active {
  width: 27px;
  background: #fff;
}

.float-card {
  position: absolute;
  z-index: 4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  box-shadow: var(--shadow2);
  display: flex;
  align-items: center;
  gap: 11px;
}

.float-card.one {
  left: -34px;
  top: 86px;
}

.float-card.two {
  right: -28px;
  bottom: 70px;
}

.float-icon {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #edf7ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.float-card strong {
  font-size: 13px;
  color: var(--navy);
  display: block;
}

.float-card span span {
  font-size: 11px;
  color: var(--muted);
}

/* —— Trust strip —— */
.trust {
  position: relative;
  margin-top: -32px;
  z-index: 5;
}

.trust-grid {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 15px 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border: 0;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f0f8ec;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.trust-item span span {
  font-size: 12px;
  color: var(--muted);
}

/* —— Categories —— */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.categories.categories-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cat-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: 0.25s;
  min-height: 205px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.cat-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -38px;
  bottom: -38px;
  background: #eef7ff;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #bfd7ea;
}

.cat-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: linear-gradient(145deg, #edf7ff, #dceefc);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.cat-card h3 {
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.cat-card p {
  font-size: 13px;
  margin-top: 9px;
  position: relative;
  z-index: 1;
}

.cat-card .cat-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* —— Products —— */
.product-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 35px;
}

.product-top .heading {
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d9e4ee;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(7, 29, 56, 0.1);
  border-color: #c5d6e6;
}

/* White landscape stage — matches live packaging photos (wide + white bg) */
.product-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: #fff;
  border-bottom: 1px solid #e8eef4;
  position: relative;
  overflow: hidden;
}

.product-media img {
  position: absolute;
  inset: 10px 12px;
  width: calc(100% - 24px);
  height: calc(100% - 20px);
  margin: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.product-media .media-fallback {
  position: absolute;
  inset: 10px 12px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.04em;
  background: #f7fafc;
  border: 1px dashed #d5e0ea;
  border-radius: 12px;
}

.product-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 10px;
  margin: 0 0 10px;
  background: #eef5fb;
  border: 1px solid #d5e3f0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-transform: uppercase;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.product-body h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.02em;
}

.product-body p {
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 0;
  min-height: 0;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.product-meta span {
  background: #f3f7fa;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 10px;
  color: #57687c;
  font-weight: 700;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.product-actions .btn {
  height: 42px;
  padding: 0 12px;
  font-size: 12px;
  flex: 1;
}

/* —— Split / why —— */
.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 70px;
  align-items: center;
}

.photo-card {
  height: 520px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: linear-gradient(145deg, #0b4780, #1766b2 50%, #63ad45);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 29, 56, 0.55));
  pointer-events: none;
}

.photo-card .photo-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat {
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stat strong {
  display: block;
  font-size: 27px;
  color: var(--navy);
  font-family: var(--font-display);
}

.stat span {
  font-size: 12px;
  color: var(--muted);
}

.quality-list {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.quality-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.quality-row strong {
  font-size: 14px;
  color: var(--navy);
  display: block;
}

.quality-row span span {
  font-size: 12px;
  color: var(--muted);
}

/* —— CTA —— */
.cta {
  padding: 70px 0;
}

.cta-box {
  background: linear-gradient(135deg, #071d38, #0e4c82 65%, #1676b7);
  border-radius: 30px;
  padding: 50px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -100px;
  top: -140px;
  background: rgba(99, 173, 69, 0.18);
}

.cta-box h2,
.cta-box p {
  color: #fff;
}

.cta-box h2 {
  font-size: 38px;
}

.cta-box p {
  opacity: 0.78;
  margin-top: 12px;
}

.cta-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.cta-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
}

/* —— Footer —— */
.footer {
  background: #06182f;
  color: #afc0d3;
  padding: 68px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1fr;
  gap: 44px;
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
}

.footer p,
.footer a {
  font-size: 13px;
  color: #afc0d3;
}

.footer a {
  display: block;
  margin: 9px 0;
}

.footer a:hover {
  color: #fff;
}

.footer-logo img {
  width: 195px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 45px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.footer-bottom a {
  display: inline;
  margin: 0;
}

.newsletter-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.newsletter-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.newsletter-form label {
  font-size: 12px;
  font-weight: 700;
  color: #c5d6e5;
  display: grid;
  gap: 7px;
}

/* —— Floating —— */
.floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.floating button,
.floating a {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 0;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow2);
  font-size: 18px;
  cursor: pointer;
}

.floating .wa {
  background: #25a55f;
}

.back-to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 0;
  background: var(--navy);
  color: #fff;
  display: none;
  place-items: center;
  box-shadow: var(--shadow2);
  cursor: pointer;
}

.back-to-top.is-visible {
  display: grid;
}

/* —— Modals —— */
.search-modal,
.enquiry-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 29, 56, 0.68);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.search-modal.open,
.enquiry-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(650px, 100%);
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-head {
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h3 {
  font-size: 20px;
}

.close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: #f1f5f8;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-body {
  padding: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.form-panel label {
  font-size: 12px;
  font-weight: 800;
  color: #4e5e72;
  display: grid;
  gap: 7px;
}

.field input,
.field select,
.field textarea,
.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  border: 1px solid #ccd9e4;
  border-radius: 12px;
  padding: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 102, 178, 0.1);
}

.field textarea,
.form-panel textarea {
  min-height: 105px;
  resize: vertical;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.demo-success {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eaf7e6;
  color: #2f6b1f;
  font-size: 13px;
  font-weight: 600;
}

.demo-success.is-visible {
  display: block;
}

.field-error {
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

.captcha-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.captcha-prompt {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

/* —— Inner pages —— */
.page-hero,
.catalog-hero {
  padding: 72px 0 56px;
  background: linear-gradient(120deg, #f7fbff, #edf7fc);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.catalog-hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  margin-top: 12px;
}

.page-hero p,
.catalog-hero p {
  margin-top: 16px;
  max-width: 720px;
  font-size: 17px;
}

.catalog-hero-row {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 55px;
  align-items: center;
}

.catalog-visual {
  height: 260px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.catalog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-wrap {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  padding: 60px 0 90px;
}

.filter-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  height: max-content;
  position: sticky;
  top: 104px;
}

.filter-panel h3 {
  font-size: 18px;
  margin-bottom: 18px;
}

.filter-group {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.filter-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.filter-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8694a4;
  font-weight: 900;
  margin-bottom: 11px;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: #536277;
}

.filter-option label {
  display: flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.filter-option input {
  accent-color: var(--blue);
}

.count {
  font-size: 10px;
  background: #f0f5f8;
  border-radius: 999px;
  padding: 3px 7px;
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 45px 0 15px;
  outline: none;
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #edf6fd;
  color: var(--blue);
  cursor: pointer;
}

.catalog-toolbar select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 34px 0 13px;
  background: #fff;
  color: #48586b;
}

.catalog-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.catalog-grid .product-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
}

.no-results {
  display: none;
  border: 1px dashed #bfcfdd;
  border-radius: 20px;
  padding: 55px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.no-results.is-visible {
  display: block;
}

/* —— Content helpers —— */
.prose {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-top: 0.5rem;
}

.prose ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card,
.info-card,
.form-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow2);
}

.value-card h3,
.info-card h3 {
  margin-bottom: 10px;
}

.value-card p,
.info-card p {
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.faq-item p {
  margin-top: 10px;
  font-size: 14px;
}

.details-stage {
  border: 1px solid #d9e4ee;
  border-radius: 24px;
  background: #fff;
  min-height: 0;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.details-stage img {
  position: absolute;
  inset: 16px 18px;
  width: calc(100% - 36px);
  height: calc(100% - 32px);
  margin: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.details-stage .media-fallback {
  position: absolute;
  inset: 16px 18px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  background: #f7fafc;
  border: 1px dashed #d5e0ea;
  border-radius: 12px;
}

.error-panel {
  text-align: center;
  padding: 80px 20px;
}

.error-panel h1 {
  font-size: clamp(48px, 8vw, 96px);
}

.error-panel p {
  margin: 16px auto 28px;
  max-width: 480px;
}

/* —— Responsive —— */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-chips,
  .hero-actions,
  .hero-note {
    justify-content: center;
  }

  .hero-media {
    max-width: 650px;
    width: 100%;
    margin: auto;
  }

  .categories,
  .categories.categories-3,
  .product-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .split,
  .two-col,
  .catalog-hero-row {
    grid-template-columns: 1fr;
  }

  .catalog-visual {
    display: none;
  }

  .catalog-wrap {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .top .top-links:first-child {
    display: none;
  }

  .top .container {
    justify-content: center;
  }

  .header-row {
    height: 70px;
  }

  .logo {
    min-width: 0;
  }

  .logo img {
    width: 145px;
  }

  .header-actions .icon-btn {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 55px 0 65px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-chips,
  .hero-actions,
  .hero-note {
    justify-content: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-note {
    display: grid;
    gap: 13px;
  }

  .hero-media {
    height: 380px;
  }

  .hero-frame {
    border-radius: 28px;
  }

  .float-card.one {
    left: -5px;
    top: 55px;
  }

  .float-card.two {
    right: -5px;
    bottom: 44px;
  }

  .float-card {
    padding: 10px;
  }

  .trust {
    margin-top: -20px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    padding: 8px 17px;
  }

  .trust-item {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 13px 4px;
  }

  .trust-item:last-child {
    border-bottom: 0 !important;
  }

  .section {
    padding: 68px 0;
  }

  .categories,
  .categories.categories-3,
  .product-grid,
  .catalog-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .product-top {
    display: block;
  }

  .product-top .btn {
    margin-top: 20px;
  }

  .split {
    gap: 35px;
  }

  .photo-card {
    height: 380px;
  }

  .cta-box {
    padding: 34px 25px;
    display: block;
  }

  .cta-box h2 {
    font-size: 30px;
  }

  .cta-actions {
    margin-top: 24px;
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    display: block;
  }

  .catalog-hero,
  .page-hero {
    padding: 50px 0 40px;
  }

  .catalog-wrap {
    padding-top: 35px;
  }

  .catalog-toolbar {
    display: grid;
  }

  .catalog-toolbar select {
    width: 100%;
  }

  .form-grid,
  .captcha-box {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .floating {
    right: 10px;
    bottom: 10px;
    flex-direction: row;
  }
}
