:root {
  color-scheme: light;
  --navy: #08264c;
  --blue: #086f9f;
  --teal: #0896ad;
  --sky: #eaf5fb;
  --soft: #f5f9fc;
  --white: #ffffff;
  --ink: #10233f;
  --muted: #62748c;
  --line: #e3edf4;
  --shadow: 0 20px 60px rgba(8, 38, 76, 0.12);
  --page: 1280px;
  --gutter: 32px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--soft);
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

body.modal-open {
  overflow: hidden;
}

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

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

.container {
  width: min(var(--page), calc(100% - var(--gutter)));
  margin: 0 auto;
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  min-height: 82px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(var(--page), calc(100% - var(--gutter)));
  margin: 0 auto;
}

.topbar-solid {
  position: relative;
  width: 100%;
  padding-inline: max(16px, calc((100% - var(--page)) / 2));
  background: rgba(245, 249, 252, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  width: 132px;
  display: block;
}

.brand img {
  width: 100%;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.topbar-cta,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 800;
}

.topbar-cta,
.button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(8, 150, 173, 0.22);
}

.button-secondary {
  color: var(--blue);
  border-color: rgba(8, 111, 159, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, #f3f9fd 0%, rgba(243, 249, 253, 0.94) 36%, rgba(243, 249, 253, 0.28) 70%),
    url("assets/hero-fregat-city.png") right center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  padding-top: 86px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 span,
.section-head h2 span {
  color: var(--teal);
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: #31445d;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.stats {
  position: relative;
  z-index: 2;
  margin-top: -56px;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats-panel article {
  min-height: 126px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px 16px;
  align-content: center;
  padding: 24px;
  background: var(--white);
}

.stat-icon {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--teal);
  background: #e7f7fa;
  font-weight: 900;
}

.stats-panel strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}

.stats-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.section {
  padding: 86px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head.two-col {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 54px;
  align-items: end;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.inline-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.catalog-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(8, 38, 76, 0.06);
}

.product-trigger {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.product-trigger:hover,
.product-trigger:focus-visible,
.product-trigger.is-active {
  border-color: rgba(8, 150, 173, 0.5);
  box-shadow: 0 18px 42px rgba(8, 38, 76, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.feature-card {
  min-height: 230px;
  padding: 26px;
}

.feature-card span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--teal);
  background: #e7f7fa;
  font-weight: 900;
}

.feature-card:nth-child(2) span {
  color: #2e9b6e;
  background: #edf8f1;
}

.feature-card:nth-child(3) span {
  color: #7864da;
  background: #f1efff;
}

.feature-card:nth-child(4) span {
  color: #db7c39;
  background: #fff2e8;
}

.feature-card h3 {
  margin: 44px 0 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-modal {
  width: min(700px, calc(100% - 32px));
  height: min(880px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(8, 38, 76, 0.28);
  overscroll-behavior: contain;
}

.product-modal::after {
  content: "";
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: block;
  height: 56px;
  margin-top: -56px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white));
}

.product-modal.is-at-bottom::after {
  opacity: 0;
}

.product-modal::backdrop {
  background: rgba(8, 38, 76, 0.42);
  backdrop-filter: blur(8px);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  min-height: 100%;
  background: var(--white);
}

.product-detail-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(320px, 46dvh, 430px);
  min-height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6fbfe, #dcecf6);
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-detail-media img.is-cover-top {
  object-position: center 42%;
}

.product-detail-copy {
  min-width: 0;
  padding: 30px 34px 34px;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-topline .eyebrow {
  margin: 0;
}

.detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: rgba(8, 38, 76, 0.9);
  box-shadow: 0 14px 34px rgba(8, 38, 76, 0.26);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.detail-close:hover,
.detail-close:focus-visible {
  border-color: rgba(8, 150, 173, 0.55);
  color: var(--white);
  background: var(--teal);
  outline: none;
}

.product-detail h3 {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.product-detail-copy > p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.detail-ai-cta {
  gap: 10px;
  color: var(--white);
  background: linear-gradient(135deg, #0b376c 0%, #0896ad 100%);
  box-shadow: 0 16px 34px rgba(8, 111, 159, 0.28);
}

.detail-ai-cta[hidden] {
  display: none !important;
}

.detail-ai-cta span {
  min-width: 34px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.detail-ai-cta:hover,
.detail-ai-cta:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.detail-portfolio {
  margin: 34px -34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(8, 38, 76, 0.1);
}

.portfolio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 34px 12px 0;
}

.portfolio-head h4,
.portfolio-head p {
  margin: 0;
}

.portfolio-head h4 {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}

.portfolio-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.portfolio-shell {
  position: relative;
  overflow: hidden;
  padding-right: 34px;
}

.portfolio-shell::after {
  content: "";
  position: absolute;
  inset: 0 0 5px auto;
  z-index: 1;
  width: 70px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--white));
}

.detail-portfolio.is-at-end .portfolio-shell::after {
  opacity: 0;
}

.portfolio-arrow[hidden] {
  display: none;
}

.portfolio-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(8, 38, 76, 0.18);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
}

.portfolio-arrow[data-portfolio-dir="-1"] {
  left: 8px;
}

.portfolio-arrow[data-portfolio-dir="1"] {
  right: 42px;
}

.portfolio-arrow:hover,
.portfolio-arrow:focus-visible {
  border-color: rgba(8, 150, 173, 0.5);
  color: var(--white);
  background: var(--teal);
  outline: none;
}

.portfolio-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 188px;
  gap: 10px;
  min-width: 0;
  overflow-x: hidden;
  padding: 0 42px 8px 0;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0 42px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.portfolio-track::-webkit-scrollbar {
  display: none;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(8, 38, 76, 0.08);
  border-radius: 8px;
  background: #dfeaf1;
  box-shadow: 0 8px 20px rgba(8, 38, 76, 0.08);
  cursor: zoom-in;
  scroll-snap-align: start;
}

.portfolio-card:focus-visible {
  outline: 3px solid rgba(8, 150, 173, 0.32);
  outline-offset: 3px;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 38, 76, 0) 40%, rgba(8, 38, 76, 0.72)),
    rgba(8, 150, 173, 0.08);
  pointer-events: none;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.94) brightness(0.96);
}

.portfolio-card figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 34px 10px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.image-viewer {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  color: var(--white);
  background: #071b34;
  box-shadow: 0 30px 90px rgba(8, 38, 76, 0.38);
}

.image-viewer::backdrop {
  background: rgba(8, 23, 43, 0.68);
  backdrop-filter: blur(8px);
}

.image-viewer figure {
  margin: 0;
}

.image-viewer img {
  width: 100%;
  max-height: calc(100dvh - 118px);
  object-fit: contain;
  background: #071b34;
}

.image-viewer figcaption {
  padding: 16px 20px 18px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--white);
  background: rgba(8, 38, 76, 0.88);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.viewer-close:hover,
.viewer-close:focus-visible {
  background: var(--teal);
  outline: none;
}

.tryon-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  background: #f5f9fc;
  box-shadow: 0 30px 90px rgba(8, 38, 76, 0.32);
}

.tryon-dialog::backdrop {
  background: rgba(8, 23, 43, 0.64);
  backdrop-filter: blur(10px);
}

.tryon-screen {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 30px;
}

.tryon-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 26px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 38, 76, 0.98), rgba(8, 150, 173, 0.94)),
    url("assets/product-furniture-photo-v5.png") center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(8, 38, 76, 0.16);
}

.tryon-badge {
  width: fit-content;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.tryon-head h3 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
}

.tryon-head p:not(.tryon-badge) {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.6;
}

.tryon-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: var(--white);
  background: rgba(8, 38, 76, 0.86);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.tryon-close:hover,
.tryon-close:focus-visible {
  background: var(--teal);
  outline: none;
}

.tryon-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.tryon-top,
.tryon-workspace {
  display: grid;
  gap: 18px;
}

.tryon-top {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.tryon-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.tryon-picker,
.tryon-upload,
.tryon-selected,
.tryon-comment,
.tryon-summary {
  border: 1px solid rgba(8, 38, 76, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(8, 38, 76, 0.08);
}

.tryon-picker {
  padding: 22px;
}

.tryon-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tryon-section-head span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.tryon-section-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.tryon-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tryon-product {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #dfeaf1;
  box-shadow: 0 10px 24px rgba(8, 38, 76, 0.08);
  cursor: pointer;
}

.tryon-product img {
  width: 100%;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(0.98) brightness(0.98);
}

.tryon-product::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 38, 76, 0) 34%, rgba(8, 38, 76, 0.76));
  pointer-events: none;
}

.tryon-product span {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 32px 9px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.18;
}

.tryon-product.is-selected {
  border-color: var(--teal);
  box-shadow:
    0 0 0 3px rgba(8, 150, 173, 0.18),
    0 18px 34px rgba(8, 111, 159, 0.2);
}

.tryon-product.is-selected::before {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.tryon-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.tryon-upload,
.tryon-selected,
.tryon-comment,
.tryon-summary {
  padding: 20px;
}

.tryon-upload-box {
  position: relative;
}

.tryon-dropzone {
  position: relative;
  min-height: 168px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 20px;
  border: 2px dashed rgba(8, 111, 159, 0.32);
  border-radius: 8px;
  color: var(--navy);
  background: linear-gradient(135deg, #f8fcff, #e8f5fb);
  cursor: pointer;
  text-align: center;
}

.tryon-dropzone.has-image {
  border-style: solid;
  background: #0b2440;
}

.tryon-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tryon-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tryon-upload-preview[hidden] {
  display: none;
}

.tryon-upload-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.tryon-dropzone.has-image .tryon-upload-copy {
  align-self: end;
  width: calc(100% + 40px);
  margin: auto -20px -20px;
  padding: 36px 16px 14px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 38, 76, 0), rgba(8, 38, 76, 0.82));
}

.tryon-dropzone strong {
  font-size: 18px;
}

.tryon-dropzone small {
  max-width: 230px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tryon-dropzone.has-image small {
  color: rgba(255, 255, 255, 0.82);
}

.tryon-upload-reset {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: var(--white);
  background: rgba(8, 38, 76, 0.82);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.tryon-upload-reset[hidden] {
  display: none;
}

.tryon-upload-reset:hover,
.tryon-upload-reset:focus-visible {
  background: var(--teal);
  outline: none;
}

.tryon-comment-field {
  display: grid;
  gap: 8px;
}

.tryon-comment-field span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.tryon-comment-field textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid rgba(8, 111, 159, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fcff;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.tryon-comment-field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 150, 173, 0.16);
}

.tryon-summary .tryon-comment {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tryon-preview {
  min-height: 168px;
  display: grid;
  place-items: center;
  gap: 10px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--muted);
  background: #eaf5fb;
  text-align: center;
}

.tryon-preview img {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

.tryon-preview strong {
  padding: 0 12px 12px;
  color: var(--navy);
  font-size: 14px;
}

.tryon-result {
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(8, 111, 159, 0.14);
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(232, 245, 251, 0.88)),
    #edf6fb;
  text-align: center;
}

.tryon-result img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.tryon-generate {
  width: 100%;
  min-height: 48px;
}

.tryon-generate:disabled {
  color: #8ca0b8;
  background: #dfe8ef;
  box-shadow: none;
  cursor: not-allowed;
}

.tryon-generate.is-loading {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  cursor: progress;
}

.tryon-generate.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 9px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: tryon-spin 0.8s linear infinite;
}

.tryon-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.tryon-download {
  justify-content: center;
  color: var(--blue);
  background: #e8f5fb;
  box-shadow: none;
}

.tryon-download:hover,
.tryon-download:focus-visible {
  color: var(--white);
  background: var(--blue);
  outline: none;
}

.tryon-download[hidden] {
  display: none;
}

@keyframes tryon-spin {
  to {
    transform: rotate(360deg);
  }
}

.tryon-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tryon-status.is-error {
  color: #b42318;
}

.detail-tags span {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--blue);
  background: #e7f7fa;
  font-size: 12px;
  font-weight: 900;
}

.detail-options {
  margin-top: 24px;
}

.detail-options-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.detail-options h4,
.detail-options p {
  margin: 0;
}

.detail-options h4 {
  color: var(--navy);
  font-size: 16px;
}

.detail-options p {
  color: var(--muted);
  font-size: 13px;
}

.detail-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.option-card {
  position: relative;
  aspect-ratio: 1.52 / 1;
  min-height: 132px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(8, 38, 76, 0.1);
  border-radius: 8px;
  background: #dfeaf1;
  box-shadow: 0 8px 20px rgba(8, 38, 76, 0.08);
  cursor: zoom-in;
}

.option-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(0.96) brightness(0.96);
}

.option-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 38, 76, 0) 38%, rgba(8, 38, 76, 0.76));
  pointer-events: none;
}

.option-card span {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 32px 10px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.18;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 26px;
}

.detail-columns h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 16px;
}

.detail-columns ul,
.detail-columns ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.detail-cta {
  min-width: 190px;
}

.about {
  background: linear-gradient(180deg, var(--soft), #edf6fb);
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.about-copy h2,
.contacts h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.about-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 14px 38px rgba(8, 38, 76, 0.06);
}

.about-points article {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: var(--white);
}

.about-points span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--teal);
  background: #e7f7fa;
  font-weight: 900;
}

.about-points strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.about-points p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.about-action {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 2px;
}

.about-action ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-action li {
  color: #31445d;
  font-size: 14px;
}

.about-action li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--teal);
  font-weight: 900;
}

.services {
  padding: 86px 0;
  background: var(--white);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-list article {
  min-height: 132px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8, 38, 76, 0.06);
}

.service-list img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  padding: 5px;
  border: 1px solid rgba(8, 150, 173, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, var(--white) 0 54%, rgba(234, 245, 251, 0.92) 55% 100%);
  box-shadow:
    0 0 0 10px rgba(234, 245, 251, 0.72),
    0 14px 28px rgba(8, 38, 76, 0.08);
}

.service-list h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.18;
}

.service-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.catalog {
  padding-top: 30px;
}

.catalog-groups {
  display: grid;
  gap: 30px;
}

.catalog-group {
  display: grid;
  gap: 14px;
}

.catalog-group-head {
  padding-top: 6px;
}

.catalog-group-head .eyebrow {
  margin-bottom: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-grid article {
  min-height: 132px;
  padding: 20px;
}

.catalog-grid article.catalog-card-icon {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: center;
}

.catalog-card-icon img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(8, 38, 76, 0.12);
}

.catalog-grid h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.catalog-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.portfolio-preview {
  background: var(--white);
}

.portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.portfolio-preview-grid a,
.portfolio-hero-card,
.portfolio-page-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #dfeaf1;
  box-shadow: 0 12px 32px rgba(8, 38, 76, 0.08);
}

.portfolio-preview-grid a {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.portfolio-preview-grid img,
.portfolio-hero-card img,
.portfolio-page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-preview-grid img {
  filter: grayscale(1) saturate(0.1) contrast(0.94);
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.portfolio-preview-grid a:hover img,
.portfolio-preview-grid a:focus-visible img {
  filter: grayscale(0) saturate(0.95) contrast(1);
  transform: scale(1.02);
}

.portfolio-preview-grid a::after,
.portfolio-hero-card::after,
.portfolio-page-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 38, 76, 0) 42%, rgba(8, 38, 76, 0.76));
  pointer-events: none;
}

.portfolio-preview-grid span,
.portfolio-hero-card span,
.portfolio-page-card figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 44px 18px 18px;
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.portfolio-more-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(8, 38, 76, 0.96), rgba(8, 150, 173, 0.9)),
    var(--navy);
  pointer-events: none;
}

.portfolio-more-card span {
  z-index: 2;
  display: grid;
  place-items: center;
  inset: 0;
  padding: 22px;
  color: var(--white);
  text-align: center;
}

.portfolio-more-card::after {
  display: none;
}

.portfolio-hero {
  padding: 86px 0;
  background: linear-gradient(180deg, #f5f9fc, #eaf5fb);
}

.portfolio-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.62fr);
  gap: 56px;
  align-items: center;
}

.portfolio-hero h1 {
  max-width: 760px;
}

.portfolio-hero-card {
  min-height: 430px;
}

.portfolio-page-section {
  padding-top: 74px;
}

.portfolio-category {
  display: grid;
  gap: 22px;
}

.portfolio-category + .portfolio-category {
  margin-top: 72px;
}

.portfolio-category-head {
  max-width: 780px;
}

.portfolio-category-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
}

.portfolio-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.portfolio-page-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-page-card {
  min-height: 260px;
  margin: 0;
}

.portfolio-page-card.is-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 534px;
}

.final-cta {
  padding: 58px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 38, 76, 0.98), rgba(8, 111, 159, 0.9)),
    var(--navy);
}

.final-cta .eyebrow,
.final-cta h2 {
  color: var(--white);
}

.final-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.final-cta .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.contacts {
  padding: 70px 0;
  color: var(--white);
  background: var(--navy);
}

.contacts .eyebrow,
.contacts h2 {
  color: var(--white);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.48fr);
  gap: 40px;
  align-items: center;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-panel a,
.contact-panel span {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
  }

  .hero {
    min-height: 620px;
    background:
      linear-gradient(90deg, rgba(243, 249, 253, 0.98) 0%, rgba(243, 249, 253, 0.88) 100%),
      url("assets/hero-fregat-city.png") center / cover no-repeat;
  }

  .stats-panel,
  .feature-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head.two-col,
  .about-panel,
  .contacts-grid,
  .portfolio-hero-grid,
  .final-cta-grid {
    grid-template-columns: 1fr;
  }

  .about-points,
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-preview-grid,
  .portfolio-page-grid,
  .portfolio-page-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-page-card.is-large {
    min-height: 420px;
  }

  .final-cta-actions {
    justify-content: flex-start;
  }

  .product-modal {
    height: min(820px, calc(100dvh - 24px));
  }

  .product-detail-media {
    height: 360px;
    min-height: 360px;
  }

  .tryon-layout {
    grid-template-columns: 1fr;
  }

  .tryon-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-panel {
    gap: 34px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .container,
  .topbar {
    width: min(100% - var(--gutter), var(--page));
  }

  .topbar {
    position: static;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 0;
    align-items: center;
  }

  .brand {
    width: min(148px, 52vw);
  }

  .nav {
    position: fixed;
    inset: auto 10px max(10px, env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(8, 38, 76, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 46px rgba(8, 38, 76, 0.22);
    backdrop-filter: blur(16px);
  }

  .nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 4px;
    color: var(--navy);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
  }

  .nav a:nth-child(5) {
    display: none;
  }

  .nav a:hover,
  .nav a:focus-visible,
  .nav a[aria-current="page"] {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--teal));
    outline: none;
  }

  body.modal-open .nav {
    display: none;
  }

  .topbar-cta {
    width: fit-content;
    min-height: 42px;
    padding-inline: 16px;
  }

  .hero {
    min-height: auto;
    padding: 28px 0 58px;
  }

  h1 {
    font-size: clamp(32px, 9.6vw, 44px);
  }

  .lead {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .stats {
    margin-top: -34px;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .about-points article {
    min-height: 0;
    grid-template-columns: 38px 1fr;
    gap: 6px 12px;
    align-items: start;
    padding: 14px;
  }

  .about-points span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .about-points strong {
    font-size: 15px;
    line-height: 1.18;
  }

  .about-points p {
    font-size: 12px;
    line-height: 1.38;
  }

  .feature-grid,
  .service-list,
  .catalog-grid,
  .portfolio-preview-grid,
  .portfolio-page-grid,
  .portfolio-page-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
  }

  .catalog-groups {
    gap: 26px;
  }

  .stats-panel article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    min-height: 0;
    padding: 12px;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .stats-panel strong {
    display: block;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.1;
  }

  .stats-panel p {
    grid-column: 1 / -1;
    margin-top: 0;
    font-size: 10.5px;
    line-height: 1.32;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    gap: 16px;
  }

  .section-head h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .section-head p:not(.eyebrow) {
    line-height: 1.55;
  }

  .about-copy p {
    margin-top: 16px;
    line-height: 1.55;
  }

  .about-action {
    gap: 14px;
  }

  .about-action ul {
    gap: 7px;
  }

  .about-action li {
    font-size: 13px;
  }

  .feature-card {
    display: block;
    min-height: 0;
    padding: 14px;
  }

  .feature-card span {
    width: 38px;
    height: 38px;
  }

  .feature-card h3 {
    margin: 16px 0 0;
    font-size: 15px;
  }

  .feature-card p {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.34;
  }

  .service-list article,
  .catalog-grid article {
    min-height: 0;
    padding: 12px;
  }

  .service-list article {
    display: block;
  }

  .service-list img {
    width: 54px;
    height: 54px;
    box-shadow: 0 0 0 6px rgba(234, 245, 251, 0.72);
  }

  .service-list h3,
  .catalog-grid h3 {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.15;
  }

  .service-list p,
  .catalog-grid p {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.35;
  }

  .catalog-grid article.catalog-card-icon {
    display: block;
  }

  .catalog-card-icon img {
    width: 56px;
    height: 56px;
  }

  .portfolio-preview-grid a,
  .portfolio-page-card {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .portfolio-page-card.is-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .portfolio-hero-card {
    min-height: 260px;
  }

  .portfolio-preview-grid span,
  .portfolio-page-card figcaption {
    padding: 34px 12px 12px;
    font-size: 13px;
  }

  .portfolio-preview-grid .portfolio-more-card {
    grid-column: 1 / -1;
    min-height: 54px;
    aspect-ratio: auto;
  }

  .portfolio-preview-grid .portfolio-more-card span {
    position: relative;
    z-index: 2;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: var(--white);
  }

  .portfolio-hero {
    padding: 52px 0 62px;
  }

  .portfolio-category + .portfolio-category {
    margin-top: 54px;
  }

  .final-cta {
    padding: 46px 0;
  }

  .final-cta-actions,
  .final-cta .button {
    width: 100%;
  }

  .product-detail-copy {
    padding: 20px;
  }

  .product-detail-media {
    height: 218px;
    min-height: 218px;
  }

  .product-detail h3 {
    margin-top: 14px;
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.06;
  }

  .product-detail-copy > p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
  }

  .detail-tags {
    gap: 6px;
    margin-top: 14px;
  }

  .detail-tags span {
    padding: 7px 9px;
    font-size: 11px;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .detail-actions .button {
    min-height: 44px;
    width: auto;
    padding: 0 12px;
    font-size: 13px;
  }

  .detail-ai-cta {
    gap: 7px;
  }

  .detail-ai-cta span {
    min-width: 30px;
    min-height: 24px;
  }

  .detail-options {
    margin-top: 20px;
  }

  .detail-options-head {
    margin-bottom: 10px;
  }

  .detail-portfolio {
    margin-right: -24px;
  }

  .portfolio-head {
    margin-right: 24px;
  }

  .portfolio-head h4 {
    font-size: 20px;
  }

  .portfolio-shell {
    padding-right: 24px;
  }

  .portfolio-arrow[data-portfolio-dir="1"] {
    right: 32px;
  }

  .detail-options-grid {
    display: flex;
    gap: 10px;
    margin-right: -20px;
    padding: 0 20px 10px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }

  .option-card {
    flex: 0 0 156px;
    min-height: 104px;
    scroll-snap-align: start;
  }

  .tryon-dialog {
    width: min(100% - 12px, 680px);
    max-height: calc(100dvh - 12px);
  }

  .tryon-screen {
    max-height: calc(100dvh - 12px);
    padding: 10px;
  }

  .tryon-head {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
  }

  .tryon-badge {
    margin-bottom: 10px;
    padding: 7px 9px;
  }

  .tryon-head h3 {
    max-width: 260px;
    font-size: 27px;
  }

  .tryon-head p:not(.tryon-badge) {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .tryon-close {
    width: 42px;
    height: 42px;
  }

  .tryon-layout {
    gap: 10px;
    margin-top: 10px;
  }

  .tryon-top,
  .tryon-workspace {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tryon-picker,
  .tryon-top,
  .tryon-workspace,
  .tryon-side,
  .tryon-upload,
  .tryon-selected,
  .tryon-comment,
  .tryon-summary {
    min-width: 0;
  }

  .tryon-picker,
  .tryon-upload,
  .tryon-selected,
  .tryon-comment,
  .tryon-summary {
    padding: 12px;
  }

  .tryon-summary .tryon-comment {
    padding: 0;
  }

  .tryon-section-head {
    margin-bottom: 10px;
  }

  .tryon-section-head span {
    width: 28px;
    height: 28px;
  }

  .tryon-section-head h4 {
    font-size: 17px;
  }

  .tryon-product-grid {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    margin-right: -12px;
    padding: 0 12px 8px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }

  .tryon-product {
    flex: 0 0 142px;
    scroll-snap-align: start;
  }

  .tryon-product,
  .tryon-product img {
    min-height: 104px;
  }

  .tryon-product span {
    padding: 26px 8px 8px;
    font-size: 11px;
  }

  .tryon-side {
    gap: 10px;
  }

  .tryon-dropzone {
    min-height: 96px;
    padding: 14px;
  }

  .tryon-dropzone.has-image .tryon-upload-copy {
    width: calc(100% + 28px);
    margin: auto -14px -14px;
    padding: 28px 12px 12px;
  }

  .tryon-dropzone strong {
    font-size: 16px;
  }

  .tryon-comment-field textarea {
    min-height: 96px;
    padding: 12px;
  }

  .tryon-preview {
    min-height: 112px;
  }

  .tryon-preview img {
    height: 86px;
  }

  .tryon-result {
    min-height: 154px;
  }

  .tryon-result img {
    min-height: 154px;
  }

  .tryon-actions {
    margin-top: 10px;
  }

  .option-card,
  .option-card img {
    min-height: 0;
  }

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

  .about-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359px) {
  .feature-grid,
  .service-list,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}
