@font-face{font-family:Roboto;src:url(fonts/roboto-300.ttf?v=20261121-k17) format('truetype');font-weight:300;font-display:swap}
@font-face{font-family:Roboto;src:url(fonts/roboto-400.ttf?v=20261121-k17) format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Roboto;src:url(fonts/roboto-500.ttf?v=20261121-k17) format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:Roboto;src:url(fonts/roboto-600.ttf?v=20261121-k17) format('truetype');font-weight:600;font-display:swap}
:root{--coral:#f8927b;--ink:#575757;--muted:#999;--border:#888;--panel:#f4f4f4}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:Roboto,Arial,sans-serif;font-weight:300;font-size:16px}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--border);border-radius:9px;padding:16px 25px;background:#fff;color:#666;line-height:1.25;transition:background .18s,border-color .18s,color .18s}button:hover{background:#eee}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #b9523a;outline-offset:4px}a{color:inherit;text-decoration:none}svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.2;flex:none}.primary,button.active{background:var(--coral);border-color:var(--coral);color:white;font-weight:500}.primary:hover{background:#ed826c;border-color:#ed826c}.text-button{border:0;padding:8px 0;background:transparent;font-size:13px;font-weight:300;display:inline-flex;align-items:center;gap:9px;color:#888}.text-button:hover{background:transparent;color:#b95e49}.site-header{max-width:1160px;margin:18px auto 0}.header-top{display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-family:Georgia,'Times New Roman',serif;font-size:18px;color:#111}.brand-square{width:34px;height:34px;background:var(--coral);display:inline-block}.reset span{font-size:18px;line-height:1}.main-nav{display:flex;align-items:center;justify-content:center;gap:36px;margin-top:22px;font-weight:400;font-size:14px;min-height:21px;color:#262626}.accent-link{color:#f47763}.main-nav a:hover{color:var(--coral)}.hero{text-align:center;margin-top:39px}.hero h1{font-size:38px;font-weight:300;margin:0;line-height:1.25}.hero p{font-size:20px;margin:14px 0 27px;color:#888}.hero h2{font-size:32px;line-height:1.3;font-weight:300;margin:14px 0 0}.steps{max-width:1072px;margin:57px auto 9px;display:flex;justify-content:space-between;gap:20px}.step-indicator{width:134px;min-height:37px;padding:7px 0 12px;border:none;border-bottom:2px solid transparent;border-radius:0;font-size:13px;background:transparent;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:300;color:#aaa}.step-indicator:hover{background:transparent;color:#666}.step-indicator.current{border-bottom-color:var(--coral);color:#777}.step-dot{width:14px;height:14px;border:1px solid #ccc;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:10px}.current .step-dot{border:4px solid var(--coral)}.complete .step-dot{background:#f8e4dd;border:0;color:#bb8a7e}.builder{display:grid;grid-template-columns:1fr 1fr;max-width:1600px;margin:auto;align-items:stretch}.preview{min-width:0;padding:43px 0 0}.preview-inner{max-width:580px;width:calc(100% - 90px);margin:0 auto}.canvas-wrap{width:100%;aspect-ratio:580/456;position:relative;isolation:isolate}.canvas-wrap canvas{width:100%;height:100%;display:block}.canvas-wrap.dragover{outline:2px dashed var(--coral);outline-offset:6px}.pendant-controls{position:absolute;inset:0;pointer-events:none}.pendant-outline{position:absolute;border:1px dashed rgba(248,146,123,.5);pointer-events:none}.remove-pendant{position:absolute;width:23px;height:23px;padding:0;border:1px solid #999;border-radius:50%;background:#fff;color:#666;font:20px/20px Arial;pointer-events:auto;right:-12px;top:-11px;display:grid;place-items:center}.remove-pendant:hover{background:#fff0ec;border-color:var(--coral);color:#bc6149}.preview-actions{display:flex;justify-content:center;align-items:center;gap:26px;margin-top:26px}.small-button{font-size:13px;display:inline-flex;align-items:center;gap:7px;padding:11px 18px;border-radius:12px;font-weight:300}.preview-actions svg{width:14px;height:14px}.step-panel{padding:53px 40px 52px;background:#f4f4f4 url(bg.jpg?v=20261121-k17) center/cover;min-height:889px;display:flex;flex-direction:column;min-width:0}.step-panel h2{font-size:24px;color:#111;font-weight:400;margin:0 0 28px;text-transform:uppercase;line-height:1.25}.field-label{display:block;margin:0 0 19px;font-size:16px;color:#484848;font-weight:300}.choice-row{display:flex;flex-wrap:wrap;gap:10px}.materials{max-width:535px;margin-bottom:33px}.materials button{padding:16px 25px;font-weight:400}.weaves{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 24px;margin-bottom:29px}.weave-card{background:transparent;border:0;padding:0;border-radius:10px;font-weight:400;font-size:16px;min-width:0}.weave-card:hover{background:transparent}.weave-card .image-box{display:block;background:rgba(255,255,255,.88);border:2px solid transparent;border-radius:11px;padding:2px;aspect-ratio:1;overflow:hidden;margin-bottom:16px}.weave-card img{width:100%;height:100%;object-fit:contain;display:block;border-radius:7px}.weave-card.selected .image-box{border-color:var(--coral)}.weave-card:hover .image-box{border-color:#f9bdad}.muted{color:#999;font-size:13px;line-height:1.5}.length-hint{margin:0 0 39px}.panel-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:1px}.cost{font-size:20px;font-weight:300;white-space:nowrap}.cost strong{font-weight:400;color:#707070}.nav-buttons{display:flex;gap:12px}.nav-buttons button{padding:14px 16px;font-size:14px;min-height:46px;border-radius:12px}.filters{display:flex;gap:8px;margin:0 0 28px;flex-wrap:wrap}.filters button{font-size:14px;padding:13px 20px;border-radius:6px;white-space:nowrap}.catalog-scroll{height:440px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d9d3cf transparent;overscroll-behavior:contain;mask-image:linear-gradient(#000 94%,transparent)}.pendants-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 22px;padding:0 2px 24px}.pendant-card{background:rgba(255,255,255,.8);border:2px solid transparent;border-radius:9px;padding:0 6px 14px;display:flex;align-items:center;flex-direction:column;min-width:0;height:185px;font-weight:300;font-size:14px;gap:7px}.pendant-card:hover{border-color:#f5c7bb;background:#fff}.pendant-card.selected{border-color:var(--coral);background:#fff}.pendant-card.unavailable{opacity:.65}.pendant-image{height:136px;display:flex;align-items:center;justify-content:center;width:100%}.pendant-image img{max-width:100%;max-height:132px;object-fit:contain;pointer-events:none}.pendant-card.mini .pendant-image img{max-width:56px;max-height:66px}.pendant-card span:last-child{line-height:1.15}.add-row{display:flex;justify-content:flex-end;margin:16px 0 38px;gap:12px}.add-row button{font-size:14px;font-weight:500;min-width:185px;padding:14px 20px;border-color:#bbb}.add-row button:hover{background:#e4e4e4}.step-2{min-height:857px}.step-2 .panel-bottom{margin-top:auto}.lengths{margin-bottom:30px}.lengths button{min-width:74px}.stone-group{background:#ffffff80;border:1px solid #e6e1dd;border-radius:10px;padding:18px;margin:0 0 16px}.stone-group legend{font-size:15px;padding:0 5px}.stone-options{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.stone-option{padding:10px 6px;font-size:13px;background:#fff;min-width:0;border-color:#ddd;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;gap:8px}.stone-option img{width:45px;height:45px;object-fit:contain}.stone-option.selected{border:2px solid var(--coral);padding:9px 5px}.details-content{margin-bottom:30px}.engraving-row{background:#ffffffb3;border:1px solid #e7e3df;border-radius:10px;padding:18px;margin-bottom:16px}.check-label{display:flex;align-items:center;gap:10px;line-height:1.5;font-size:15px;cursor:pointer}.check-label input{width:18px;height:18px;margin:0;accent-color:var(--coral);flex:none}.engraving-row input[type=text]{margin-top:15px}.privacy{font-size:13px;line-height:1.7;color:#888}.privacy a{text-decoration:underline;text-underline-offset:3px}input:not([type=checkbox]):not([type=hidden]):not([type=file]),textarea{display:block;width:100%;padding:14px 16px;color:#444;border:1px solid #b9b8b6;border-radius:8px;background:#fff;font-size:16px;font-weight:300;line-height:1.4}textarea{resize:vertical;min-height:90px}.order-form{display:grid;gap:15px;margin-bottom:20px}.order-form>label{font-size:14px;display:grid;gap:8px}.order-form>label.check-label{display:flex;align-items:flex-start;gap:10px}.order-form .muted{font-size:12px}.order-summary{font-size:14px;line-height:1.6;background:#fff9;padding:14px 18px;border-radius:8px;margin-bottom:24px}.summary-line{display:flex;justify-content:space-between;gap:20px;padding:4px 0}.success-panel{text-align:center;justify-content:center}.success-panel h2{line-height:1.5}.success-panel p{line-height:1.7}.success-icons{display:flex;justify-content:center;gap:16px;margin:18px 0 28px}.success-icons a{width:66px;height:66px;border:1px solid #ccc;background:#fff;border-radius:50%;display:grid;place-items:center;color:#a4a1a1}.success-icons svg{width:31px;height:31px;stroke-width:1.5}.success-panel .primary{display:inline-block;align-self:center;padding:16px 25px;border-radius:10px}.error-message{color:#a33f2b;font-size:14px;line-height:1.5;background:#fff0ea;padding:13px;border-radius:8px;margin-bottom:20px}.toast{position:fixed;z-index:50;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;padding:16px 22px;background:#fff;color:#784b40;box-shadow:0 4px 35px #0002;border:1px solid #edbaa9;border-radius:10px;font-size:15px;line-height:1.5}.toast[hidden]{display:none}footer{display:flex;justify-content:space-between;gap:20px;margin:24px auto 26px;padding:0 4.5%;font-size:11px;color:#aaa}footer i{font-style:normal;margin:0 12px}.loading{padding:20px}.noscript{text-align:center;color:#a33f2b}.shimmer canvas{animation:chain-shimmer 3.6s ease-in-out infinite}@keyframes chain-shimmer{0%,100%{filter:brightness(1)}50%{filter:brightness(1.035)}}
@media(min-width:1600px){.builder{border-right:1px solid #f5f5f5}.step-panel{padding-right:60px;padding-left:60px}}
@media(max-width:1190px){.site-header{margin:18px 32px 0}.steps{margin-left:50px;margin-right:50px}.hero h1{font-size:35px}.hero h2{font-size:29px}.step-panel{padding:40px 26px}.weaves{gap:16px}.materials button{padding:14px 16px}.filters{gap:6px}.filters button{padding:11px 12px}.pendants-grid{gap:14px 12px}.cost{font-size:17px}.panel-bottom{flex-wrap:wrap}.preview-inner{width:calc(100% - 48px)}.nav-buttons{margin-left:auto}}
@media(max-width:760px){.site-header{margin:16px 18px 0}.brand{font-size:14px;gap:9px}.brand-square{width:27px;height:27px}.reset{font-size:11px;gap:4px}.reset span{font-size:16px}.main-nav{gap:12px 22px;flex-wrap:wrap;margin-top:24px;font-size:12px;line-height:1.5}.hero{margin:31px 18px 0}.hero h1{font-size:26px;line-height:1.3}.hero p{font-size:16px;margin:12px 0 20px}.hero h2{font-size:22px;line-height:1.4;margin-top:12px}.steps{margin:30px 12px 8px;gap:0}.step-indicator{font-size:10px;flex:1;width:auto;gap:6px;min-height:53px;flex-direction:column;padding:5px 2px 10px}.step-dot{width:13px;height:13px}.builder{display:flex;flex-direction:column}.preview{padding:21px 0 25px}.preview-inner{width:calc(100% - 38px);max-width:470px}.preview-actions{gap:22px}.small-button{min-height:43px}.preview-actions .text-button{min-height:43px;font-size:12px}.step-panel{padding:28px 20px 30px;min-height:0}.step-panel h2{font-size:21px;margin-bottom:25px}.field-label{font-size:15px;margin-bottom:16px}.materials{display:grid;grid-template-columns:1fr 1fr;margin-bottom:27px;gap:9px}.materials button{font-size:14px;min-height:48px;padding:12px}.weaves{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 12px;margin-bottom:26px}.weave-card{font-size:13px}.weave-card .image-box{margin-bottom:9px}.length-hint{font-size:12px;margin-bottom:27px}.panel-bottom{gap:20px;align-items:center}.cost{font-size:17px;white-space:normal}.panel-bottom .nav-buttons{margin-left:auto}.nav-buttons button{padding:13px 17px;min-height:46px}.filters{gap:7px;margin-bottom:21px}.filters button{font-size:12px;min-height:42px;padding:10px 12px}.catalog-scroll{height:462px}.pendants-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px}.pendant-card{height:166px;font-size:12px;padding:0 4px 10px}.pendant-image{height:124px}.pendant-image img{max-height:119px}.pendant-card.mini .pendant-image img{max-height:60px;max-width:50px}.add-row{margin:18px 0 28px}.add-row button{min-height:46px}.stone-options{grid-template-columns:1fr 1fr}.stone-option{min-height:94px}.lengths{gap:8px}.lengths button{min-width:68px;padding:13px}.stone-group{padding:12px}.details-content{margin-bottom:25px}footer{flex-direction:column;text-align:center;align-items:center;font-size:10px;margin:22px 0;gap:10px;padding:0 18px}.remove-pendant{width:25px;height:25px;right:-14px;top:-14px}.toast{bottom:14px;font-size:14px;padding:13px 16px}.success-panel{min-height:540px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.fixed-stones{grid-column:1/-1;margin:5px 0;font-size:14px}

/* Client corrections, slides 13–24, 09.11.2026. */
.hero{margin-top:24px}
.hero h1{font-size:32px}
.hero h2{font-size:25px;margin-top:10px}
.builder{max-width:1360px;margin:28px auto 0}
.preview{padding-top:24px}
.preview-inner{width:calc(100% - 56px);max-width:540px}
.step-panel{min-height:560px;padding:28px 32px}
.step-panel h2{font-size:22px;margin-bottom:20px}
.materials{margin-bottom:24px}
.materials button{padding:12px 18px;font-size:14px}
.weaves{gap:18px 16px;margin-bottom:20px}
.weave-card{font-size:14px}
.weave-card .image-box{margin-bottom:9px}
.length-hint{margin-bottom:24px}
.panel-bottom{gap:12px;flex-wrap:wrap}
.cost{font-size:17px}
.nav-buttons{margin-left:auto}
.nav-buttons button{padding:12px 15px;min-height:44px}
.filters{margin-bottom:18px}
.filters button{padding:11px 13px;font-size:13px}
.catalog-scroll{height:335px}
.add-row{margin-bottom:24px}
.stone-group{border:0;background:none;padding:0;margin:0 0 22px}
.stone-group legend{font-size:13px;padding:0;margin-bottom:12px}
.stone-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.stone-option,.stone-option.selected{border:0;padding:0;background:transparent;border-radius:8px;font-size:12px;line-height:1.4;gap:9px;min-height:0;overflow-wrap:anywhere}
.stone-option:hover{background:transparent}
.stone-photo{display:block;width:100%;max-width:104px;aspect-ratio:1;border:2px solid transparent;border-radius:8px;background:#fff;padding:8px}
.stone-photo img{width:100%;height:100%;object-fit:contain}
.stone-option.selected .stone-photo{border-color:var(--coral)}
.stone-option:hover:not(:disabled) .stone-photo{border-color:#f9bdad}
.stone-unavailable{font-size:11px}
.engraving-description{font-size:14px;line-height:1.6;margin:0 0 14px}
.engraving-row{display:flex;align-items:center;gap:14px;border:0;background:transparent;padding:0;margin-bottom:14px}
.engraving-row label{flex:1;min-width:0}
.engraving-row input[type=text]{margin:0}
.engraving-thumb{width:48px;height:62px;object-fit:contain;flex:none}
.engraving-thumb.mini{padding:13px 10px}
.step-4 .privacy{font-size:12px;line-height:1.5}
.step-5{min-height:0;padding:22px 28px}
.step-5 h2{margin-bottom:14px}
.step-5 .field-label{font-size:14px;margin-bottom:12px}
.order-form{gap:9px;margin-bottom:16px}
.order-form>label,.contact-row>label{font-size:13px;display:grid;gap:5px;min-width:0}
.contact-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.contact-row>label .muted{font-size:9px;line-height:1.2;min-height:12px}
.order-form input:not([type=checkbox]),.order-form textarea{padding:8px 11px;font-size:14px;line-height:1.3}
.order-form textarea{min-height:62px}
.order-form .required-note{margin:0;font-size:10px}
.order-form>label.check-label{font-size:11px;line-height:1.4;gap:8px}
.order-form>label.check-label input{width:16px;height:16px}
.necklace-dialog{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:22px;border:0;border-radius:14px;color:var(--ink);background:#fff;overflow:auto;box-shadow:0 16px 80px #0003}
.necklace-dialog::backdrop{background:#0007}
.necklace-dialog h2{font-size:20px;text-align:center;font-weight:400;margin:0 56px 14px}
.necklace-dialog .dialog-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
}
.dialog-close svg { width: 22px; height: 22px; stroke-width: 1.7; stroke-linecap: round; }
.necklace-dialog .full-preview{width:min(100%,calc((100dvh - 175px) * 580 / 456));margin:auto}
.necklace-dialog .small-button{margin:18px auto 0;display:flex}
.order-complete{display:block;max-width:1160px}
.order-complete .preview{display:none}
.success-panel{min-height:420px;padding:46px 32px;align-items:center}
.success-panel h2{font-size:24px;margin-bottom:16px}
.success-message{font-size:15px;line-height:1.6!important;margin:0;max-width:920px;font-weight:400}
.success-icons{margin:20px 0;gap:12px}
.success-icons a{width:52px;height:52px;border:0;color:#a1a1a1}
.success-icons svg{width:28px;height:28px;stroke-width:1.8}
.success-contacts{display:flex;justify-content:center;gap:70px;margin-top:26px;font-size:13px;text-align:center}
.success-contacts p{margin:0 0 7px;line-height:1.4}
.contact-icons{display:flex;justify-content:center;gap:12px}
.contact-icons a{width:32px;height:32px;display:grid;place-items:center;color:#929292}
.contact-icons svg{width:27px;height:27px;stroke-width:1.6}
.success-contacts a:hover{color:#b95e49}
@media(min-width:761px) and (max-height:800px){
  .site-header{margin-top:12px}
  .main-nav{margin-top:16px}
  .hero{margin-top:18px}
  .hero h1{font-size:29px}
  .hero h2{font-size:22px;margin-top:7px}
  .builder{margin-top:20px}
  .step-panel{min-height:520px;padding:24px}
  .step-5{min-height:0;padding:18px 24px}
  .step-5 h2{font-size:20px;margin-bottom:10px}
  .order-form{gap:8px;margin-bottom:12px}
  .order-form textarea{min-height:56px}
  .preview{padding-top:18px}
}
@media(max-width:1000px) and (min-width:761px){
  .step-panel{padding:24px 20px}
  .preview-inner{width:calc(100% - 32px)}
  .contact-row{gap:8px}
  .order-form input:not([type=checkbox]){font-size:13px;padding:8px}
  .stone-options{gap:8px}
}
@media(max-width:760px){
  .hero{margin-top:26px}
  .hero h1{font-size:26px}
  .hero h2{font-size:21px}
  .builder{margin-top:20px}
  .preview{padding:12px 0 24px}
  .preview-inner{width:calc(100% - 38px);max-width:470px}
  .step-panel{min-height:0;padding:26px 20px}
  .step-panel h2{font-size:21px}
  .materials button{min-height:46px}
  .weave-card{font-size:13px}
  .filters button{min-height:42px;font-size:12px;padding:10px 12px}
  .catalog-scroll{height:375px}
  .stone-options{gap:8px}
  .stone-photo{padding:4px}
  .stone-option,.stone-option.selected{font-size:11px}
  .step-5{padding:24px 18px 10px}
  .order-form input:not([type=checkbox]),.order-form textarea{font-size:16px}
  .contact-row{gap:8px}
  .contact-row>label .muted{font-size:9px;min-height:23px}
  .step-5 .panel-bottom{position:sticky;bottom:0;z-index:3;padding:12px 0;background:#f4f4f4}
  .step-5 .cost{font-size:16px}
  .step-5 .nav-buttons button{font-size:13px;padding:12px}
  .necklace-dialog{padding:18px 12px}
  .success-panel{min-height:0;padding:34px 20px}
  .success-panel h2{font-size:21px}
  .success-message{font-size:14px}
  .success-message br{display:none}
  .success-contacts{gap:24px;font-size:12px;width:100%;justify-content:space-around}
}

/* Client corrections, slides 27–30, 12.11.2026. */
.site-header{max-width:1160px;margin:24px auto 0;padding-top:20px;border-top:1px solid #e5e5e5}
.header-top{display:grid;grid-template-columns:250px 1fr auto auto;gap:36px;align-items:center}
.brand{display:block;min-width:0}
.brand img{display:block;width:100%;height:auto}
.brand-tagline{margin:0;text-align:center;font-size:14px;line-height:1.4}
.header-contact{text-align:center;white-space:nowrap;font-weight:400}
.header-contact>a{display:block;font-size:19px;line-height:1.4}
.header-contact>span{display:block;font-size:10px;line-height:1.5}
.callback{padding:12px 16px;border-radius:4px;background:#626262;color:white;font-size:12px;font-weight:500;text-align:center;white-space:nowrap}
.callback:hover{background:#484848}
.main-nav{justify-content:space-between;gap:20px;margin-top:24px;font-size:14px;line-height:1.5}
.hero{margin:36px 18px 0;color:#666}
.hero h1{font-size:32px;font-weight:300}
.hero h2{font-size:27px;font-weight:300;margin-top:24px}
.filters button:disabled,.filters button:disabled:hover{background:#dedede;border-color:#ccc;color:#777;opacity:1;cursor:not-allowed;font-weight:300}
.pendant-card.unavailable{cursor:not-allowed}
@media(max-width:1190px){
  .site-header{margin:20px 28px 0}
  .header-top{grid-template-columns:220px 1fr auto auto;gap:22px}
  .main-nav{gap:15px;font-size:13px}
}
@media(min-width:601px) and (max-width:760px){
  .builder{display:grid;grid-template-columns:1fr 1fr}
  .preview-inner{width:calc(100% - 24px)}
  .step-panel{padding:20px 16px}
  .pendants-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .preview-actions{gap:8px;flex-wrap:wrap}
}
@media(max-width:900px){
  .header-top{grid-template-columns:210px 1fr auto;gap:16px}
  .brand-tagline{display:none}
}
@media(max-width:600px){
  .site-header{margin:12px 14px 0;padding-top:12px}
  .header-top{grid-template-columns:minmax(0,1fr) auto;gap:12px 10px}
  .brand{width:100%;max-width:205px}
  .header-contact>a{font-size:15px}
  .header-contact>span{font-size:8px}
  .brand-tagline{display:block;grid-row:2;grid-column:1;text-align:left;font-size:11px;line-height:1.35}
  .callback{grid-row:2;grid-column:2;padding:9px 12px;font-size:11px;justify-self:end}
  .main-nav{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:22px;padding:8px 2px 10px;margin-top:12px;font-size:12px;scrollbar-width:thin}
  .main-nav a{flex:none;white-space:nowrap}
  .hero{margin:20px 14px 0}
  .hero h1{font-size:24px;line-height:1.25}
  .hero h2{font-size:18px;line-height:1.4;margin-top:12px}
  /* Slide 28: keep preview beside every step on phones. */
  .builder{display:grid;grid-template-columns:minmax(0,41fr) minmax(0,59fr);align-items:start;margin-top:20px}
  .preview{position:sticky;top:0;align-self:start;padding:8px 6px 12px;background:#fff}
  .preview-inner{width:100%;max-width:none}
  .preview .canvas-wrap{width:100%}
  .preview-actions{flex-direction:column;align-items:center;margin-top:8px;gap:4px}
  .preview-actions .small-button,.preview-actions .text-button{max-width:100%;min-height:32px;padding:6px;font-size:11px;gap:4px}
  .step-panel{padding:12px 8px;min-height:0;overflow-wrap:anywhere}
  .step-panel h2{font-size:16px;margin-bottom:10px}
  .step-panel .field-label{font-size:12px;margin-bottom:8px}
  .materials{grid-template-columns:minmax(0,1fr);gap:6px;margin-bottom:16px}
  .materials button{min-height:32px;padding:7px 8px;font-size:12px}
  .weaves{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 6px;margin-bottom:14px}
  .weave-card{font-size:11px}
  .weave-card .image-box{margin-bottom:5px}
  .length-hint{font-size:12px;margin-bottom:16px}
  .filters{gap:4px;margin-bottom:8px;flex-wrap:wrap}
  .filters button{max-width:100%;white-space:normal;font-size:11px;min-height:28px;padding:6px 8px}
  /* Let wrapped filters share the viewport with the catalog and navigation. */
  .step-panel.step-2{height:max(610px,100svh)}
  .step-2 .catalog-scroll{height:calc(100svh - 230px);min-height:260px;flex:1 1 auto;mask-image:none}
  .pendants-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 2px 8px}
  .pendant-card{height:auto;min-height:112px;font-size:11px;padding:0 2px 4px;gap:2px}
  .pendant-image{height:75px;flex:none}
  .pendant-image img{max-height:73px}
  .pendant-card.mini .pendant-image img{max-height:44px;max-width:min(38px,100%)}
  .step-2 .add-row{margin:8px 0}
  .step-2 .add-row button{width:100%;min-height:32px;min-width:0;padding:7px 8px;font-size:12px}
  .step-panel .panel-bottom{margin-top:auto;padding-top:8px;gap:6px;flex-direction:column;align-items:stretch;flex-wrap:nowrap}
  .step-panel .cost{font-size:12px;line-height:1.4}
  .cost strong{display:block;font-size:15px}
  .step-panel .nav-buttons{margin-left:0;gap:4px;width:100%}
  .step-panel .nav-buttons button{flex:1;min-width:0;min-height:36px;padding:7px 4px;font-size:12px}
  .lengths{gap:5px;margin-bottom:16px}
  .lengths button{min-width:0;padding:8px;font-size:12px}
  .stone-group{min-width:0;margin-bottom:16px}
  .stone-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 6px}
  .fixed-stones{font-size:12px}
  .details-content{margin-bottom:16px}
  .engraving-description{font-size:12px}
  .engraving-row{gap:6px}
  .engraving-thumb{width:30px;height:42px}
  .engraving-row input[type=text]{padding:8px 6px;font-size:16px;min-width:0}
  .contact-row{grid-template-columns:minmax(0,1fr);gap:9px}
  .contact-row>label .muted{min-height:0}
  .order-form>label,.contact-row>label{font-size:12px}
  .order-form input:not([type=checkbox]),.order-form textarea{min-width:0;padding:8px 6px}
  .step-5 .panel-bottom{position:static}
  .builder.order-complete{display:block}
}

@media(max-width:600px){
  /* 12.11 m3: preview held in the vertical middle of the screen on phones. */
  .preview{position:relative;top:auto;align-self:stretch}
  .preview-inner{position:sticky;top:calc(50svh - 112px)}
}
@media(max-width:600px){
  /* 12.11 m4: on step 1 the preview starts level with the chain weaves, then stays mid-screen. */
  .builder:has(.step-panel.step-1) .preview-inner{margin-top:var(--m4-offset,220px)}
}

/* WZ 22429519 / g19 candidate. Append AFTER the current mobile styles.
   CSS only: preserve application, catalog, prices and desktop rules. */
@media (max-width: 600px) {
  html {
    --mobile-dock-space: calc(108px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: var(--mobile-dock-space);
  }

  body { padding-bottom: var(--mobile-dock-space); }
  .site-header { margin: 8px 12px 0; padding-top: 8px; }
  .header-top { gap: 8px 10px; }
  .brand-tagline { font-size: 10px; }
  .callback { padding: 8px 10px; }
  .main-nav { margin-top: 6px; padding: 6px 2px; gap: 18px; }
  .hero { margin: 12px 12px 0; }
  .hero h1 { font-size: 20px; line-height: 1.25; }
  .hero h2 { font-size: 14px; line-height: 1.35; margin-top: 6px; }

  .builder {
    display: grid;
    grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
    align-items: stretch;
    margin-top: 12px;
  }
  .preview {
    position: relative;
    top: auto;
    align-self: stretch;
    padding: 10px 6px 12px;
  }
  .preview-inner {
    position: sticky;
    top: max(8px, calc((100svh - var(--mobile-dock-space) - 180px) / 2));
    width: 100%;
    max-width: 164px;
    margin: 0 auto;
  }
  /* The first preview starts alongside the chain choices, then stays centered
     in the usable viewport while the options scroll. Overrides the m4 offset. */
  .builder:has(.step-panel.step-1) .preview-inner { margin-top: 174px; }
  .preview-actions { margin-top: 4px; gap: 2px; }
  .preview-actions .small-button,
  .preview-actions .text-button { min-height: 32px; }

  .step-panel { padding: 10px 8px 16px; min-height: 0; }
  .step-panel h2 { font-size: 16px; line-height: 20px; margin-bottom: 10px; }
  .step-panel .field-label { font-size: 12px; line-height: 15px; margin-bottom: 6px; }
  .materials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
  }
  .materials button { min-height: 44px; font-size: 12px; line-height: 15px; padding: 5px 4px; }
  .weaves {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 6px;
    margin-bottom: 10px;
  }
  .weave-card { font-size: 11px; line-height: 14px; align-self: start; }
  .weave-card .image-box { margin-bottom: 4px; border-radius: 8px; }
  .length-hint { font-size: 11px; line-height: 1.4; margin-bottom: 8px; }

  /* Keep the real controls, their handlers and validation. All five steps use
     the same dock. Body padding lets the final field scroll fully above it. */
  .step-panel .panel-bottom {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    margin: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #fff;
    border-top: 1px solid #e7e3df;
    box-shadow: 0 -3px 16px #00000008;
  }
  .step-panel .cost { font-size: 12px; line-height: 20px; text-align: center; }
  .step-panel .cost strong { display: inline; font-size: 15px; margin-left: 4px; }
  .step-panel .nav-buttons { display: flex; width: 100%; gap: 8px; margin: 0; }
  .step-panel .nav-buttons button { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .step-panel .nav-buttons [data-action="back"] { flex: 0 0 30%; }
  .step-panel .nav-buttons [data-action="next"] { flex: 1; }
  .toast { bottom: var(--mobile-dock-space); }

  .step-panel.step-2 { height: auto; }
  .step-2 .catalog-scroll {
    height: clamp(240px, calc(100svh - 330px), 460px);
    min-height: 0;
    flex: none;
  }
  .step-2 .add-row button { min-height: 44px; }
  .builder.order-complete { display: block; }
}

/* Client corrections, slides 31–33, 16.11.2026. */
footer .footer-disclaimer{font-size:9px;line-height:1.45;color:#c4c4c4;max-width:560px}
@media(max-width:600px){
  /* Two full rows + two gaps + 30% of the next card, at every phone width. */
  .step-2 .catalog-scroll{
    --catalog-card-height:112px;
    --catalog-row-gap:6px;
    height:calc(var(--catalog-card-height) * 2.3 + var(--catalog-row-gap) * 2);
    -webkit-mask-image:linear-gradient(#000 calc(100% - 12px),rgba(0,0,0,.65));
    mask-image:linear-gradient(#000 calc(100% - 12px),rgba(0,0,0,.65));
  }
  .step-2 .pendants-grid{grid-auto-rows:var(--catalog-card-height);row-gap:var(--catalog-row-gap)}
  .step-2 .pendant-card{height:var(--catalog-card-height);min-height:0}
}

/* Center each removal control just above its own pendant frame. */
.remove-pendant{width:23px;height:23px;right:auto;transform:translate(-50%,calc(-100% - 3px))}

@media (min-width: 761px) and (max-height: 1000px) {
  .step-1 .weave-card .image-box {
    max-width: 105px;
    margin-inline: auto;
  }
}

.stone-group legend { max-width: 100%; }
.stone-pendant { display: flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 400; }
.pendant-image { --photo-height: 112px; --mount-size: 13px; }
.mounted-pendant {
  position: relative;
  display: block;
  margin-top: 8px;
  width: min(100%, calc(var(--photo-height) * var(--photo-aspect) * min(var(--body-scale, 1), 1.08)));
  aspect-ratio: var(--photo-aspect);
  flex: none;
}
.mounted-pendant .pendant-body { position: relative; display: block; width: 100%; height: 100%; max-height: none; }
.mounted-pendant .mount-ring {
  position: absolute;
  width: calc(var(--mount-size) * var(--ring-scale, 1));
  height: calc(var(--mount-size) * var(--ring-scale, 1));
  max-width: none;
  max-height: none;
  left: var(--eye-x);
  top: var(--eye-y);
  transform: translate(-50%, calc((var(--body-overlap) - 1) * 100%));
}
.mounted-pendant .mount-tube {
  position: absolute;
  overflow: hidden;
  width: calc(var(--mount-size) * var(--tube-width));
  height: calc(var(--mount-size) * var(--tube-height));
  left: var(--eye-x);
  top: calc(var(--eye-y) - var(--mount-size) * var(--tube-offset));
  transform: translate(-50%, -100%);
}
.mount-tube img { display: block; width: 100%; height: auto; }
.detail-pendant { display: grid; place-items: center; flex: none; }
.detail-pendant .mounted-pendant { margin-top: var(--mount-size); }
.detail-pendant > .pendant-body { width: 100%; height: 100%; object-fit: contain; }
.stone-thumb { width: 25px; height: 32px; --photo-height: 23px; --mount-size: 4.8px; }
.engraving-thumb { --photo-height: 47px; --mount-size: 7px; }

@media (min-width: 761px) {
  .step-panel:not(.success-panel) {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    height: max(430px, calc(100dvh - var(--builder-top, 235px) - 16px));
    row-gap: 12px;
  }
  .step-content {
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #d9d3cf transparent;
    padding: 5px 5px 0;
    margin: -5px -5px 0;
  }
  .step-2 .step-content {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }
  .step-2 .catalog-scroll { height: auto; min-height: 0; }
  .step-2 .add-row { margin-bottom: 0; }
  .step-panel .panel-bottom { margin-top: 0; }
}

@media (max-width: 600px) {
  .pendant-image { --photo-height: 62px; --mount-size: 8px; }
  .mounted-pendant { margin-top: 5px; }
  .engraving-thumb { --photo-height: 32px; --mount-size: 5px; }
}

@media (max-width: 480px) {
  .remove-pendant { width: 16px; height: 16px; font-size: 13px; line-height: 1; }
  .necklace-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    padding: 16px 0;
  }
  .necklace-dialog .full-preview { width: min(100%, calc((100dvh - 128px) * 580 / 620)); aspect-ratio: 580 / 620; }
  .necklace-dialog #zoom-close { position: sticky; bottom: 0; margin-top: 10px; }
}

/* Keep the controls aligned with the displayed outline at every viewport size. */
.remove-pendant {
  height: 28px;
  border: 0;
  background: transparent;
  display: grid;
  align-items: end;
}
.remove-pendant span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #999;
  border-radius: 50%;
  background: #fff;
}
/* A raised removal control points to the top of its own outline. */
.remove-pendant::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 50%;
  height: var(--remove-rise, 0px);
  border-left: 1px dotted #aaa;
}
.remove-pendant:hover { background: transparent; }
.remove-pendant:hover span { background: #fff0ec; border-color: var(--coral); }
.remove-pendant:focus-visible { outline-offset: 1px; }

.necklace-dialog .full-preview {
  width: min(100%, calc((100dvh - 154px) * 580 / 620));
  aspect-ratio: 580 / 620;
}
.necklace-dialog { overscroll-behavior: contain; }
.preview-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 6px;
  background: #ffffffed;
}
.preview-error[hidden] { display: none; }
.preview-error button { padding: 8px; font-size: 12px; }
.image-unavailable { font-size: 12px; text-align: center; color: #767676; }
.stone-photo .image-unavailable { display: grid; place-items: center; height: 100%; }

.catalog-scroll { mask-image: none; }
.catalog-scroll.more-cards {
  mask-image: linear-gradient(#000 calc(100% - 12px), #000a);
}
.filters button[aria-pressed=true]:disabled { border-color: #9f9b98; }
.add-row { flex-wrap: wrap; }
.availability { width: 100%; margin: 0; color: #676767; font-size: 12px; line-height: 1.35; }
.order-form .field-error { color: #a33f2b; font-size: 12px; line-height: 1.35; }
.order-form [aria-invalid=true] { border-color: #a33f2b !important; }
footer .footer-disclaimer { color: #767676; }
.step-panel h2:focus { outline: none; }

@media (min-width: 761px) and (max-width: 900px) {
  .pendants-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stone-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 4px 12px;
    overflow: visible;
    font-size: 11px;
  }
  .main-nav a { padding-block: 3px; }
  .remove-pendant { width: 22px; font: 13px/1 Arial,sans-serif; }
  .remove-pendant span { width: 16px; height: 16px; }
  .builder:has(.step-panel.step-1) .preview-inner { margin-top: max(0px, calc(var(--preview-offset, 188px) - 10px)); }
  .step-2 .catalog-scroll { mask-image: none; }
  .step-2 .catalog-scroll.more-cards { mask-image: linear-gradient(#000 calc(100% - 12px), #000a); }
  .step-2 .add-row { gap: 5px; }
  .step-2 .availability { font-size: 11px; }
  .order-form input, .order-form textarea { scroll-margin-bottom: 22px; }
}
@media (max-width: 480px) {
  .necklace-dialog .full-preview { width: min(100%, calc((100dvh - 128px) * 580 / 620)); }
}
@media (max-width: 430px) and (max-height: 760px) {
  .hero { margin-top: 8px; }
  .builder { margin-top: 8px; }
  .step-panel.step-1 { padding-top: 7px; }
  .step-1 h2 { margin-bottom: 4px; }
  .step-1 .field-label { margin-bottom: 4px; }
  .step-1 .materials { margin-bottom: 5px; }
  .step-1 .weaves { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 3px; }
  .step-1 .weave-card[data-weave=thick-yakor] { grid-column: span 2; }
  .step-1 .weave-card .image-box { width: min(100%, 41px); margin-inline: auto; }
  .step-1 .weave-card { font-size: 10px; line-height: 1.2; }
  .step-1 .length-hint { margin-bottom: 0; }
}

@media (max-width: 430px) and (max-height: 680px) {
  .builder:has(.step-panel.step-1) .preview-inner {
    margin-top: max(0px, calc(var(--preview-offset, 188px) - 38px));
  }
}

/* gen37 k9 final: placeholder lighter than entered text, focus ring distinct from error red */
input::placeholder,textarea::placeholder{color:#b8b8b8;opacity:1}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:#f2a796}
input:not([aria-invalid=true]):focus,textarea:not([aria-invalid=true]):focus{border-color:#f2a796}

.bracelets-nav {
  position: relative;
  flex: none;
}
.bracelets-nav > button {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  line-height: inherit;
  white-space: nowrap;
}
.bracelets-nav > button:hover,
.bracelets-nav > button[aria-expanded="true"] {
  color: var(--coral);
}
.bracelets-nav > button::after {
  display: inline-block;
  margin-left: 4px;
  border: 3px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
  vertical-align: 2px;
  content: "";
}
.bracelets-nav > button[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
#bracelets-links {
  position: absolute;
  z-index: 5;
  inset-block-start: 100%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: min(232px, calc(100vw - 36px));
  margin: 0;
  padding: 10px 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 12px #0002;
  list-style: none;
  text-align: center;
  font-size: 14px;
}
#bracelets-links a {
  display: block;
  padding: 5px 10px;
  line-height: 1.5;
  white-space: normal;
}
@media (max-width: 760px) {
  .main-nav {
    position: relative;
    flex-wrap: wrap;
    overflow: visible;
  }
  .bracelets-nav { position: static; }
}
@media (max-width: 600px) {
  .bracelets-nav > button { padding-block: 3px; }
}

/* Reserve two complete rows even when filters wrap or a restriction is shown. */
@media (min-width: 901px) {
  .step-panel.step-2 {
    height: auto;
    align-self: start;
    padding-block: 20px;
    grid-template-rows: auto auto;
  }
  .step-2 .step-content { overflow: visible; grid-template-rows: auto auto auto auto auto; }
  .step-2 .catalog-scroll {
    --card-height: 150px;
    --row-gap: 12px;
    height: calc(2 * var(--card-height) + var(--row-gap));
    mask-image: none;
  }
  .step-2 .pendants-grid { row-gap: var(--row-gap); padding-bottom: 0; }
  .step-2 .pendant-card { height: var(--card-height); padding-bottom: 6px; gap: 3px; }
  .step-2 .pendant-image { height: 103px; --photo-height: 89px; }
  .step-2 .pendant-image > img { max-height: 90px; }
  .step-2 .add-row { margin-top: 10px; }
}
@media (max-width: 600px) {
  .step-2 .single-pendant-hint {
    scroll-margin-bottom: var(--mobile-dock-space);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #484848;
  }
}

@media (min-width: 901px) {
  .step-2 .add-row:has(.availability) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .step-2 .add-row .availability { grid-row: 1; grid-column: 1; }
  .step-2 .add-row:has(.availability) button { grid-column: 2; }
}

/* The full chain selection shares the first screen with its price and navigation. */
@media (min-width: 761px) {
  .step-panel.step-1 {
    align-self: start;
    height: auto;
    min-height: max(0px, calc(100dvh - var(--builder-top, 280px) - 16px));
    grid-template-rows: 1fr auto;
    padding-block: clamp(16px, 2.5vh, 25px);
    row-gap: 10px;
  }
  .step-1 .step-content { overflow: visible; }
  .step-1 h2 { margin-bottom: 12px; }
  .step-1 .field-label { margin-bottom: 8px; }
  .step-1 .materials { gap: 6px 8px; margin-bottom: 16px; }
  .step-1 .materials button { padding: 10px 16px; }
  .step-1 .weaves { row-gap: 10px; margin-bottom: 10px; }
  .step-1 .weave-card { align-self: start; }
  .step-1 .weave-card .image-box {
    width: min(100%, clamp(65px, calc((100dvh - var(--builder-top, 280px) - 346px) / 2), 108px));
    max-width: none;
    margin: 0 auto 5px;
  }
  .step-1 .length-hint { margin-bottom: 0; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .step-1 .materials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-1 .weaves { column-gap: 4px; }
  .step-1 .weave-card { font-size: 13px; }
}
@media (min-width: 761px) and (max-height: 800px) {
  main:has(.step-1) .hero { margin-top: 20px; }
  main:has(.step-1) .hero h2 { margin-top: 10px; }
  .builder:has(.step-1) .preview-inner {
    max-width: min(540px, max(260px, calc((100dvh - var(--builder-top, 280px) - 100px) * 580 / 456)));
  }
}

/* Keep the complete first-step selection above the phone navigation. */
@media (min-width: 431px) and (max-width: 600px) {
  .step-1 .weaves { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-1 .weave-card .image-box { width: min(100%, 70px); margin-inline: auto; }
  .step-1 .weave-card[data-weave="thick-yakor"] { grid-column: span 2; }
}

@media (min-width: 601px) and (max-width: 760px) {
  .step-panel.step-1 { padding: 12px; }
  .step-1 h2 { font-size: 18px; margin-bottom: 8px; }
  .step-1 .field-label { margin-bottom: 6px; }
  .step-1 .materials { gap: 6px; margin-bottom: 12px; }
  .step-1 .materials button { min-height: 32px; padding: 6px; font-size: 13px; }
  .step-1 .weaves { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 4px; margin-bottom: 5px; }
  .step-1 .weave-card { font-size: 12px; line-height: 1.2; }
  .step-1 .weave-card .image-box { width: min(100%, 51px); margin: 0 auto 3px; }
  .step-1 .weave-card[data-weave="thick-yakor"] { grid-column: span 2; }
  .step-1 .length-hint { margin-bottom: 8px; }
  .step-1 .panel-bottom { gap: 6px; }
}

@media (min-width: 901px) and (max-width: 1190px) and (max-height: 800px) {
  .step-1 .materials { gap: 6px 4px; }
  .step-1 .materials button { padding: 8px; }
  .step-1 .weaves { column-gap: 8px; }
}

@media (max-width: 340px) and (max-height: 600px) {
  body:has(.step-1) .main-nav { gap: 1px 9px; padding-block: 2px; font-size: 10px; }
  body:has(.step-1) .main-nav a,
  body:has(.step-1) .bracelets-nav > button { padding-block: 1px; }
  main:has(.step-1) .hero h1 { font-size: 18px; }
  main:has(.step-1) .hero h2 { margin-top: 3px; font-size: 12px; }
  .step-1 .materials { gap: 3px; }
  .step-1 .materials button { min-height: 30px; padding: 3px; }
  .step-1 .weave-card .image-box { width: min(100%, 32px); margin-bottom: 2px; }
  .step-1 .weaves { margin-bottom: 1px; }
  .step-1 .length-hint { font-size: 10px; }
}

/* Reserve room for full collection names while keeping the catalog's row preview. */
@media (max-width: 430px) {
  .step-2 .catalog-scroll { --catalog-card-height: 126px; }
}
@media (max-width: 340px) {
  .step-2 .catalog-scroll { --catalog-card-height: 138px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .step-2 .pendant-card { height: auto; min-height: 185px; }
}
@media (min-width: 901px) and (max-width: 1190px) {
  .step-2 .catalog-scroll { --card-height: 180px; }
}

/* Corporate header and footer, matching juliettes.ru */
.jl-header { position: relative; z-index: 20; background: #fff; color: #444; font-family: Roboto, Arial, sans-serif; font-weight: 400; }
.jl-burgerbar { display: none; }
.jl-header__grid { position: relative; width: 1200px; height: 145px; margin: 0 auto; }
.jl-brand { position: absolute; top: 22px; left: 8px; display: block; width: 270px; line-height: 0; }
.jl-brand img { display: block; width: 100%; height: auto; }
.jl-tagline { position: absolute; top: 30px; left: 380px; width: 240px; margin: 0; color: #575757; font-size: 16px; font-weight: 400; line-height: 21px; text-align: center; }
.jl-tagline__mark { position: absolute; top: 9px; left: 29px; width: 182px; height: 22px; background: #ebebeb; pointer-events: none; }
.jl-tagline__text { position: relative; z-index: 1; }
.jl-phone { position: absolute; top: 25px; left: 745px; width: 174px; height: 49px; text-align: center; }
.jl-phone > a { position: absolute; top: 0; left: 0; width: 174px; color: #818181; font-size: 21px; font-weight: 400; line-height: 33px; white-space: nowrap; }
.jl-phone > span { position: absolute; top: 30px; left: -6px; width: 180px; color: #444; font-family: Arial, Arial, sans-serif; font-size: 12px; line-height: 19px; white-space: nowrap; }
.jl-callback { position: absolute; top: 29px; left: 1040px; display: flex; align-items: center; justify-content: center; width: 140px; height: 42px; border: 0; border-radius: 5px; background: #666; color: #fff; font-size: 14px; font-weight: 700; line-height: 28px; text-align: center; transition: background-color .18s ease-in-out; }
.jl-callback:hover { background: #444; color: #fff; }
.jl-nav { position: absolute; top: 96px; right: 0; left: 0; height: 25px; color: #444; font-size: 16px; font-weight: 400; line-height: 25px; }
.jl-nav__link { position: absolute; top: 0; display: block; color: inherit; white-space: nowrap; }
.jl-nav__link--collection { left: 21px; width: 134px; text-align: center; }
.jl-nav__link--pendants { left: 353px; width: 77px; text-align: center; }
.jl-nav__link--rings { left: 501px; width: 143px; text-align: center; }
.jl-nav__link--earrings { left: 704px; width: 134px; text-align: center; }
.jl-nav__link--works { left: 929px; width: 102px; text-align: center; }
.jl-nav__link--contacts { left: 1099px; width: 80px; text-align: right; }
.jl-nav .jl-nav__bracelets { position: absolute; top: 0; left: 219px; width: 75px; line-height: 25px; }
.jl-nav .jl-nav__bracelets > button { display: block; height: 25px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: 400 16px/25px Roboto, Arial, sans-serif; white-space: nowrap; }
.jl-nav a:hover,
.jl-nav .jl-nav__bracelets > button:hover,
.jl-nav .jl-nav__bracelets > button[aria-expanded="true"] { color: #f47763; }

.jl-burger { position: relative; display: block; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.jl-burger span { position: absolute; left: 0; display: block; width: 30px; height: 2px; background: #f8937a; }
.jl-burger span:nth-child(1) { top: 6px; }
.jl-burger span:nth-child(2) { top: 14px; }
.jl-burger span:nth-child(3) { top: 22px; }
body.jl-menu-open { overflow: hidden; }
body.jl-menu-open .jl-header { z-index: 1000; }
.jl-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.jl-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s ease; }
.jl-drawer__panel { position: absolute; top: 0; left: 0; width: 300px; max-width: 86vw; height: 100%; padding: 28px 24px 40px; overflow-y: auto; background: #fff; transform: translateX(-100%); transition: transform .28s ease; }
.jl-drawer__close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #666; font: 32px/1 Arial, Arial, sans-serif; }
.jl-drawer__close::before { content: "×"; }
.jl-drawer__nav { display: flex; flex-direction: column; padding-top: 44px; }
.jl-drawer__nav a { padding: 11px 0; border-bottom: 1px solid #eee; color: #444; font-size: 15px; line-height: 1.4; }
.jl-drawer__nav a:hover { color: #e9765e; }
body.jl-menu-open .jl-drawer { visibility: visible; pointer-events: auto; }
body.jl-menu-open .jl-drawer__backdrop { opacity: 1; }
body.jl-menu-open .jl-drawer__panel { transform: none; }

.jl-footer { display: block; margin: 0; padding: 0; background: #444; color: #fff; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 25px; text-align: left; }
.jl-footer__grid { position: relative; width: 1200px; height: 380px; margin: 0 auto; }
.jl-footer a { color: inherit; text-decoration: none; }
.jl-footer a:hover { color: #f8937a; }
.jl-footer p { margin: 0; }
.jl-footer__legal { position: absolute; top: 75px; left: 20px; width: 260px; padding-top: 21px; color: #fff; font-size: 13px; line-height: 21px; }
.jl-footer__pay-card { position: absolute; top: 75px; left: 384px; width: 211px; height: 81px; background: #fff; }
.jl-footer__pay-card img { position: absolute; top: 10px; left: 32px; width: 148px; height: auto; }
.jl-footer__pay-note { position: absolute; top: 183px; left: 350px; width: 280px; color: #fff; font-family: Arial, Arial, sans-serif; font-size: 10px; line-height: 20px; text-align: center; }
.jl-footer__pay-more { position: absolute; top: 229px; left: 350px; width: 280px; color: #fff; font-family: Arial, Arial, sans-serif; font-size: 10px; line-height: 16px; text-align: center; }
.jl-footer__links { position: absolute; inset: 0; pointer-events: none; }
.jl-footer__col { position: absolute; width: 200px; margin: 0; padding: 0; list-style: none; }
.jl-footer__col--main { top: 80px; left: 720px; }
.jl-footer__col--second { top: 81px; left: 980px; }
.jl-footer__col li { list-style: none; }
.jl-footer__col a { display: block; white-space: nowrap; pointer-events: auto; }
.jl-footer__col--main li + li { margin-top: 11px; }
.jl-footer__col--main li:nth-child(5) { margin-top: 8px; }
.jl-footer__col--main li:nth-child(6) { margin-top: 8px; }
.jl-footer__col--second li + li { margin-top: 14px; }
.jl-footer__col--second li:nth-child(3) { margin-top: 13px; }
.jl-footer__privacy { position: absolute; top: 205px; left: 980px; width: 200px; color: #fff; font-size: 16px; line-height: 18px; opacity: .5; }
.jl-footer__privacy a { pointer-events: auto; }
.jl-footer__copy { position: absolute; top: 298px; left: 501px; width: 183px; color: #fff; font-size: 14px; line-height: 22px; text-align: center; }
.jl-footer__copy span { display: block; }

@media (max-width: 1199px) {
  .jl-burgerbar { display: flex; align-items: center; height: 60px; padding-left: 30px; background: #fff; }
  .jl-header__grid { width: 960px; height: 115px; }
  .jl-brand { top: 36px; left: -1px; width: 240px; }
  .jl-tagline { top: 41px; left: 310px; width: 200px; }
  .jl-tagline__mark { top: 9px; left: -9px; width: 205px; height: 22px; }
  .jl-phone { top: 40px; left: 580px; width: 170px; }
  .jl-phone > a { width: 170px; }
  .jl-phone > span { top: 25px; left: -10px; }
  .jl-callback { top: 40px; left: 800px; width: 150px; height: 42px; font-size: 13px; line-height: 26px; }
  .jl-nav { display: none; }

  .jl-footer__grid { width: 960px; height: 380px; }
  .jl-footer__legal { top: 45px; }
  .jl-footer__pay-card { top: 42px; left: 285px; }
  .jl-footer__pay-card img { top: 13px; }
  .jl-footer__pay-note { top: 130px; left: 251px; }
  .jl-footer__pay-more { top: 184px; left: 251px; }
  .jl-footer__col--main { top: 40px; left: 550px; }
  .jl-footer__col--main li:nth-child(5) { margin-top: 7px; }
  .jl-footer__col--main li:nth-child(6) { margin-top: 9px; }
  .jl-footer__col--second { top: 40px; left: 760px; }
  .jl-footer__col--second li + li { margin-top: 13px; }
  .jl-footer__col--second li:nth-child(3) { margin-top: 9px; }
  .jl-footer__privacy { top: 166px; left: 760px; }
  .jl-footer__copy { top: 271px; left: 390px; }
}

@media (max-width: 959px) {
  .jl-header__grid { width: 640px; height: 145px; }
  .jl-brand { top: 15px; left: 0; width: 260px; }
  .jl-tagline { top: 71px; left: 16px; width: 180px; }
  .jl-tagline__mark { top: 7px; left: -3px; width: 186px; height: 26px; }
  .jl-phone { top: 15px; left: 460px; width: 170px; height: 50px; }
  .jl-phone > a { width: 170px; }
  .jl-phone > span { top: 30px; left: -5px; }
  .jl-callback { top: 70px; left: 460px; width: 170px; height: 42px; }

  .jl-footer__grid { width: 640px; height: 440px; }
  .jl-footer__legal { top: 31px; }
  .jl-footer__pay-card { top: 220px; left: 10px; }
  .jl-footer__pay-card img { top: 14px; left: 33px; }
  .jl-footer__pay-note { top: 308px; left: -3px; width: 240px; }
  .jl-footer__pay-more { top: 344px; left: -3px; width: 240px; }
  .jl-footer__links { inset: auto; top: 25px; left: 330px; display: flex; flex-direction: column; align-items: flex-start; width: 200px; }
  .jl-footer__col { position: static; display: contents; }
  .jl-footer__col--main li:nth-child(1) { order: 1; }
  .jl-footer__col--main li:nth-child(2) { order: 2; }
  .jl-footer__col--main li:nth-child(3) { order: 3; }
  .jl-footer__col--main li:nth-child(4) { order: 4; }
  .jl-footer__col--main li:nth-child(5) { order: 5; }
  .jl-footer__col--main li:nth-child(6) { order: 8; }
  .jl-footer__col--second li:nth-child(1) { order: 6; }
  .jl-footer__col--second li:nth-child(2) { order: 7; }
  .jl-footer__col--second li:nth-child(3) { order: 9; }
  .jl-footer__links .jl-footer__col li { margin: 0 0 5px; }
  .jl-footer__col--second li:nth-child(3) { margin-top: -2px; }
  .jl-footer__privacy { top: 127px; left: 20px; }
  .jl-footer__copy { top: 365px; left: 207px; }
}

@media (max-width: 639px) {
  .jl-header__grid { width: 480px; height: 165px; }
  .jl-brand { top: 25px; left: 0; width: 260px; }
  .jl-tagline { top: 85px; left: 17px; width: 180px; }
  .jl-tagline__mark { top: 10px; left: -5px; width: 186px; height: 26px; }
  .jl-phone { top: 30px; left: 295px; width: 170px; }
  .jl-phone > a { width: 170px; }
  .jl-phone > span { top: 30px; left: -4px; width: 179px; }
  .jl-callback { top: 90px; left: 305px; width: 150px; }

  .jl-footer__grid { width: 480px; height: 510px; }
  .jl-footer__legal { top: 38px; left: 20px; width: 200px; }
  .jl-footer__pay-card { top: 262px; left: 10px; }
  .jl-footer__pay-card img { top: 17px; left: 29px; }
  .jl-footer__pay-note { top: 351px; left: 1px; width: 240px; }
  .jl-footer__pay-more { top: 396px; left: 1px; width: 240px; }
  .jl-footer__links { top: 38px; left: 270px; }
  .jl-footer__links .jl-footer__col li { margin: 0 0 8px; }
  .jl-footer__col--second li:nth-child(3) { margin-top: 0; }
  .jl-footer__privacy { top: 162px; left: 22px; }
  .jl-footer__copy { top: 438px; left: 130px; width: 200px; }
}

@media (max-width: 479px) {
  .jl-header__grid { width: 320px; height: 165px; }
  .jl-brand { top: 0; left: -10px; width: 340px; }
  .jl-tagline { top: 77px; left: 0; width: 320px; font-size: 15px; line-height: 20px; }
  .jl-tagline__mark { display: none; }
  .jl-phone { top: 102px; left: 75px; width: 170px; height: 33px; }
  .jl-phone > a { width: 170px; }
  .jl-phone > span { display: none; }
  .jl-callback { display: none; }

  .jl-footer__grid { width: 320px; height: 660px; }
  .jl-footer__legal { top: 476px; left: 0; width: 320px; padding-top: 13px; color: #bdbdbd; font-size: 10px; line-height: 13px; text-align: center; }
  .jl-footer__pay-card { top: 273px; left: 54px; width: 211px; height: 85px; }
  .jl-footer__pay-card img { top: 18px; left: 32px; }
  .jl-footer__pay-note { top: 372px; left: 40px; width: 240px; }
  .jl-footer__pay-more { top: 416px; left: 40px; width: 240px; }
  .jl-footer__links { top: 11px; left: 60px; width: 200px; align-items: stretch; text-align: center; }
  .jl-footer__links .jl-footer__col li { margin: 0 0 4px; }
  .jl-footer__col--second li:nth-child(3) { margin-top: -2px; }
  .jl-footer__privacy { top: 442px; left: 60px; width: 200px; color: #bdbdbd; font-size: 10px; line-height: 12px; opacity: .95; text-align: center; }
  .jl-footer__copy { top: 608px; left: 0; width: 320px; color: #bdbdbd; font-size: 10px; line-height: 13px; }
}

@media (max-width: 339px) {
  .jl-brand { left: 0; width: 100%; }
}

@media (min-width: 1200px) {
  .jl-drawer { display: none; }
}
