.goti-custom-light {
  --cl-accent: var(--goti-accent, #ec5918);
  --cl-accent-hover: var(--goti-accent-hover, #c7460d);
  --cl-text: var(--goti-ink, #202628);
  --cl-muted: var(--goti-muted, #61686b);
  --cl-line: var(--goti-line, #dfe3e3);
  --cl-surface: var(--goti-surface, #f3f5f5);
  color: var(--cl-text);
  font-family: var(--goti-font, Arial, sans-serif);
}
.page-redactor:has(.goti-custom-light) { max-width: none; }
.goti-custom-light.is-landing .cl-catalog,
.goti-custom-light.is-category-page :is(.cl-intro, .cl-categories) { display: none; }
.custom-light-page { width: 100%; }

.cl-page-head { max-width: 900px; margin: 30px 0 42px; }
.cl-page-head h1,
.cl-section-head h1,
.cl-product-details h1 {
  margin: 0;
  color: var(--cl-text);
  font: 700 clamp(32px, 4vw, 52px)/1.08 var(--goti-font, Arial, sans-serif);
  letter-spacing: -.04em;
}
.cl-page-head > p:last-child { max-width: 820px; color: var(--cl-muted); font-size: 18px; line-height: 1.6; }
.cl-eyebrow { margin: 0 0 8px; color: var(--cl-accent-hover); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cl-intro { max-width: 840px; margin-bottom: 36px; }
.cl-intro p { max-width: none; margin: 0; color: var(--cl-muted); font-size: 18px; line-height: 1.6; }

.cl-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 50px; }
.cl-category {
  display: flex;
  min-height: 84px;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--cl-line);
  border-radius: var(--goti-radius, 4px);
  background: #fff;
  color: var(--cl-text);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cl-category:hover,
.cl-category:focus-visible,
.cl-category.is-active { border-color: var(--cl-accent); box-shadow: 0 12px 30px rgba(24, 40, 46, .1); transform: translateY(-2px); }
.cl-category.is-active { background: var(--cl-surface); }
.cl-category-title { font-size: 18px; font-weight: 700; }
.cl-category-meta { display: flex; align-items: center; gap: 10px; color: var(--cl-muted); font-size: 12px; }
.cl-category-arrow { color: var(--cl-accent); font-size: 24px; }

.cl-catalog { padding: 42px 0 56px; border-top: 1px solid var(--cl-line); }
.cl-back { display: inline-flex; margin-bottom: 24px; color: var(--cl-accent-hover); font-size: 14px; font-weight: 700; text-decoration: none; }
.cl-back:hover { color: var(--cl-accent); }
.cl-section-head { display: flex; margin-bottom: 24px; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cl-section-head h2 { margin: 0; font-size: 34px; }
.cl-section-head h1 { font-size: clamp(32px, 3vw, 44px); }
.cl-count { color: var(--cl-muted); font-size: 14px; }

.cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cl-card {
  overflow: hidden;
  border: 1px solid var(--cl-line);
  border-radius: var(--goti-radius, 4px);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cl-card:hover,
.cl-card:focus-within { border-color: var(--cl-line); box-shadow: 0 14px 34px rgba(24, 40, 46, .1); transform: translateY(-2px); }
.cl-card-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.cl-card-visual { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; background: #fff; }
.cl-card-visual img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease, opacity .3s ease; }
.cl-card-hover { position: absolute; inset: 0; opacity: 0; }
.cl-card:hover .cl-card-hover,
.cl-card-open:focus-visible .cl-card-hover { opacity: 1; }
.cl-card:hover .cl-card-cover,
.cl-card-open:focus-visible .cl-card-cover { opacity: 0; }
.cl-card:hover img,
.cl-card-open:focus-visible img { transform: scale(1.02); }
.cl-card-body { display: block; min-height: 128px; padding: 18px 18px 20px; border-top: 1px solid var(--cl-line); }
.cl-card-title { display: block; min-height: 48px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.cl-card-foot { display: flex; margin-top: 14px; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cl-card-price { color: var(--cl-accent); font-size: 17px; font-weight: 700; }
.cl-card-arrow { color: var(--cl-accent); font-size: 25px; line-height: 1; transition: transform .18s ease; }
.cl-card:hover .cl-card-arrow { transform: translateX(4px); }
.cl-empty { display: none; color: var(--cl-muted); }

.cl-modal { position: fixed; z-index: 10020; inset: 0; display: none; padding: 22px; }
.cl-modal.is-open { display: flex; align-items: center; justify-content: center; }
.cl-modal-shade { position: absolute; inset: 0; background: rgba(24, 40, 46, .72); backdrop-filter: blur(4px); }
.cl-modal-panel {
  position: relative;
  width: min(1180px, 100%);
  height: calc(100vh - 44px);
  max-height: 900px;
  overflow: hidden;
  border: 1px solid var(--cl-line);
  border-radius: var(--goti-radius, 4px);
  background: #fff;
  box-shadow: var(--goti-shadow, 0 16px 44px rgba(24, 40, 46, .12));
}
.cl-modal-close { position: absolute; z-index: 4; top: 14px; right: 14px; width: 42px; height: 42px; padding: 0; border: 1px solid var(--cl-line); border-radius: var(--goti-radius, 4px); background: #fff; font-size: 27px; cursor: pointer; }
.cl-modal-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(350px, .85fr); width: 100%; height: 100%; min-height: 0; }
.cl-gallery { min-width: 0; min-height: 0; padding: 18px; overflow: auto; overscroll-behavior: contain; background: var(--cl-surface); }
.cl-gallery-main { display: flex; min-height: 520px; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--goti-radius, 4px); background: #fff; }
.cl-gallery-main img { display: block; width: 100%; height: 100%; max-height: 620px; object-fit: contain; }
.cl-thumbs-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; margin-top: 12px; align-items: center; gap: 8px; }
.cl-thumbs { display: flex; min-width: 0; overflow-x: auto; gap: 10px; scroll-behavior: smooth; scrollbar-width: none; }
.cl-thumbs::-webkit-scrollbar { display: none; }
.cl-thumb { width: 86px; height: 76px; padding: 0; flex: 0 0 86px; overflow: hidden; border: 1px solid var(--cl-line); border-radius: var(--goti-radius, 4px); background: #fff; cursor: pointer; }
.cl-thumb.is-active { border: 2px solid var(--cl-accent); }
.cl-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cl-thumbs-arrow { display: flex; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--goti-line-strong, #c9cfcf); border-radius: var(--goti-radius, 4px); background: #fff; color: var(--cl-text); font-size: 0; cursor: pointer; }
.cl-thumbs-arrow::after { display: block; width: 10px; height: 10px; content: ''; }
#cl-thumbs-prev::after { border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); }
#cl-thumbs-next::after { border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.cl-thumbs-arrow:hover { border-color: var(--cl-accent); color: var(--cl-accent); }
.cl-thumbs-arrow:disabled { opacity: .28; cursor: default; }

.cl-details { min-width: 0; min-height: 0; padding: 34px 30px 44px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.cl-details > h2 { margin: 0 42px 8px 0; font-size: 30px; }
.cl-price { margin: 0 0 20px; color: var(--cl-accent); font-size: 22px; font-weight: 700; }
.cl-variants { display: none; margin: 0 0 24px; }
.cl-variants.is-visible { display: block; }
.cl-variants h3 { margin: 0 0 12px; font-size: 17px; }
.cl-variant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cl-variant { display: flex; min-height: 64px; padding: 10px 12px; flex-direction: column; gap: 4px; border: 1px solid var(--cl-line); border-radius: var(--goti-radius, 4px); background: #fff; color: var(--cl-text); text-align: left; cursor: pointer; }
.cl-variant:hover,
.cl-variant:focus-visible { border-color: var(--cl-accent); }
.cl-variant.is-active { border-color: var(--cl-accent); background: var(--goti-surface-warm, #faf8f6); box-shadow: 0 0 0 1px var(--cl-accent); }
.cl-variant-name { font-size: 12px; line-height: 1.25; }
.cl-variant-price { color: var(--cl-accent); font-size: 13px; font-weight: 700; }

.cl-specs { margin: 0 0 24px; padding: 18px; border: 1px solid var(--cl-line); border-radius: var(--goti-radius, 4px); background: var(--cl-surface); }
.cl-specs h3,
.cl-form h3 { margin: 0 0 14px; font-size: 17px; }
.cl-specs dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; gap: 8px 14px; }
.cl-specs dt { color: var(--cl-muted); }
.cl-specs dd { margin: 0; text-align: right; font-weight: 700; }
.cl-field { margin-bottom: 12px; }
.cl-field label { display: block; margin: 0 0 5px; color: var(--cl-text); font-size: 13px; font-weight: 700; }
.cl-field :is(input, textarea) { width: 100%; border: 1px solid var(--cl-line); border-radius: var(--goti-radius, 4px); background: #fff; outline: none; }
.cl-field input { height: 46px; padding: 0 12px; }
.cl-field textarea { min-height: 96px; padding: 11px 12px; resize: vertical; }
.cl-field :is(input, textarea):focus { border-color: var(--cl-accent); box-shadow: 0 0 0 3px rgba(236, 89, 24, .1); }
.goti-custom-light .cl-consent {
  position: relative;
  display: flex;
  margin: 13px 0;
  align-items: flex-start;
  gap: 9px;
  color: var(--cl-muted);
  font-size: 12px;
  line-height: 1.45;
  visibility: visible;
  opacity: 1;
}
.goti-custom-light .cl-consent #cl-agree {
  position: static;
  left: auto;
  display: block;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  padding: 0;
  flex: 0 0 17px;
  opacity: 1;
  visibility: visible;
  -webkit-appearance: checkbox;
  appearance: checkbox;
  accent-color: var(--cl-accent);
  cursor: pointer;
}
.goti-custom-light .cl-consent label {
  position: static;
  display: block;
  margin: 0;
  padding: 0;
  color: var(--cl-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.goti-custom-light .cl-consent label::before,
.goti-custom-light .cl-consent label::after { display: none; content: none; }
.goti-custom-light .cl-consent a { color: var(--cl-accent-hover); text-decoration: underline; text-underline-offset: 2px; }
.cl-button { display: inline-flex; min-height: 46px; padding: 0 22px; align-items: center; justify-content: center; border: 1px solid var(--cl-accent); border-radius: var(--goti-radius, 4px); background: var(--cl-accent); color: #fff; font-weight: 700; cursor: pointer; }
.cl-button:hover { border-color: var(--cl-accent-hover); background: var(--cl-accent-hover); }
.cl-submit { width: 100%; }
.cl-form-status { display: none; margin: 12px 0 0; padding: 11px; border-radius: var(--goti-radius, 4px); font-size: 13px; }
.cl-form-status.is-visible { display: block; }
.cl-form-status.is-success { background: #edf7ed; color: #246b28; }
.cl-form-status.is-error { background: #fff0ef; color: #9c2e28; }

.cl-product { position: relative; padding-bottom: 70px; }
.cl-admin-edit { display: inline-flex; margin: 0 0 18px; padding: 9px 14px; border: 1px solid var(--cl-accent); border-radius: var(--goti-radius, 4px); color: var(--cl-accent-hover); font-weight: 700; text-decoration: none; }
.cl-product-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); align-items: start; gap: 30px; }
.cl-product-media-column,
.cl-product-details { min-width: 0; }
.cl-product-gallery { min-width: 0; padding: 16px; border: 1px solid var(--cl-line); border-radius: var(--goti-radius, 4px); background: var(--cl-surface); }
.cl-product-gallery .cl-gallery-main { min-height: 620px; }
.cl-product-media-column > .cl-specs { margin: 22px 0 0; }
.cl-product-details h1 { margin-bottom: 14px; font-size: clamp(32px, 3vw, 44px); }
.cl-product-teaser { color: var(--cl-muted); font-size: 17px; line-height: 1.55; }
.cl-product-details .cl-variants h2,
.cl-product-details .cl-specs h2,
.cl-product-details .cl-form h2 { margin: 0 0 14px; font-size: 20px; }
.cl-product-details .cl-specs { max-height: none; }

@media (max-width: 930px) {
  .cl-categories,
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-modal-panel { height: calc(100vh - 44px); max-height: calc(100vh - 44px); overflow-y: auto; }
  .cl-modal-content { display: block; height: auto; min-height: 100%; overflow: visible; }
  .cl-gallery,
  .cl-details { min-height: auto; overflow: visible; }
  .cl-gallery-main { min-height: 420px; }
  .cl-product-layout { grid-template-columns: 1fr; }
  .cl-product-gallery .cl-gallery-main { min-height: 480px; }
}
@media (max-width: 640px) {
  .cl-page-head h1,
  .cl-section-head h1,
  .cl-product-details h1 { font-size: 34px; }
  .cl-intro p,
  .cl-page-head > p:last-child { font-size: 16px; }
  .cl-categories,
  .cl-grid { grid-template-columns: 1fr; }
  .cl-category { min-height: 64px; }
  .cl-modal { padding: 0; }
  .cl-modal-panel { width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
  .cl-gallery { padding: 12px; }
  .cl-gallery-main { min-height: 335px; touch-action: pan-y; }
  .cl-details { padding: 28px 18px; }
  .cl-variant-list { grid-template-columns: 1fr; }
  .cl-product-gallery { padding: 10px; }
  .cl-product-gallery .cl-gallery-main { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .goti-custom-light *,
  .goti-custom-light *::before,
  .goti-custom-light *::after { transition: none !important; }
}
