:root{
--blue:#155dfc;
--orange:#ff6b00;
--text:#0f172a;
--muted:#53657d;
--line:#e5eaf1;
--soft:#f7f9fc;
}

.product-page{
background:#f7f9fc;
padding-bottom:70px;
}

.configurator-shell{
max-width:1320px;
margin:56px auto 80px;
padding:0 22px;
display:grid;
gap:22px;
}

.configurator-header{
display:flex;
justify-content:space-between;
align-items:center;
gap:22px;
padding:26px 30px;
border-radius:28px;
background:#fff;
border:1px solid var(--line);
box-shadow:0 18px 55px rgba(15,23,42,.07);
position:relative;
top:auto;
z-index:5;
}

.configurator-header h2{
font-size:clamp(36px,4vw,58px);
line-height:1;
letter-spacing:-.055em;
margin:6px 0 0;
color:var(--text);
}

.eyebrow{
font-size:12px;
font-weight:950;
letter-spacing:.16em;
text-transform:uppercase;
color:var(--orange);
}

.floating-price{
min-width:210px;
padding:18px 22px;
border-radius:22px;
background:linear-gradient(135deg,#111827,#172554);
color:#fff;
box-shadow:0 18px 48px rgba(15,23,42,.22);
}

.floating-price span{
display:block;
font-size:11px;
letter-spacing:.14em;
text-transform:uppercase;
font-weight:900;
opacity:.7;
margin-bottom:5px;
}

.floating-price strong{
display:block;
font-size:30px;
line-height:1.05;
letter-spacing:-.04em;
font-weight:950;
}

.rule-messages{
display:grid;
gap:10px;
}

.rule-message{
padding:13px 15px;
background:#fff7ed;
border:1px solid #fed7aa;
border-radius:16px;
font-weight:800;
font-size:14px;
color:#9a3412;
}

.configurator-layout{
display:grid;
grid-template-columns:320px 1fr;
gap:22px;
align-items:start;
}

.config-sidebar{
position:sticky;
top:92px;
}

.sidebar-card{
background:#fff;
border:1px solid var(--line);
border-radius:26px;
padding:22px;
box-shadow:0 18px 55px rgba(15,23,42,.07);
display:grid;
gap:16px;
}

.sidebar-card h3{
margin:0;
font-size:28px;
line-height:1;
letter-spacing:-.04em;
color:var(--text);
}

.summary-row{
display:grid;
gap:3px;
padding:10px 0;
border-bottom:1px solid #edf1f6;
}

.summary-row span{
font-size:11px;
font-weight:950;
letter-spacing:.12em;
text-transform:uppercase;
color:var(--orange);
}

.summary-row strong{
font-size:14px;
font-weight:850;
color:var(--text);
}

.sidebar-total{
display:flex;
justify-content:space-between;
align-items:flex-end;
padding-top:12px;
border-top:1px solid #edf1f6;
}

.sidebar-total span{
font-size:14px;
color:var(--muted);
}

.sidebar-total strong{
font-size:30px;
line-height:1;
letter-spacing:-.045em;
font-weight:950;
color:var(--text);
}

.config-btn{
width:100%;
height:56px;
border:0;
border-radius:999px;
background:linear-gradient(135deg,#155dfc,#0b49d1);
color:#fff;
font-size:16px;
font-weight:950;
cursor:pointer;
box-shadow:0 14px 36px rgba(21,93,252,.26);
transition:.18s ease;
}

.config-btn:hover{
transform:translateY(-2px);
}

.config-main{
display:grid;
gap:20px;
}

.config-area{
background:#fff;
border:1px solid var(--line);
border-radius:28px;
padding:24px;
box-shadow:0 18px 55px rgba(15,23,42,.055);
}

.config-area-head{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:18px;
padding-bottom:16px;
margin-bottom:18px;
border-bottom:1px solid #edf1f6;
}

.config-area-head h3{
font-size:clamp(32px,3.2vw,46px);
line-height:1;
letter-spacing:-.05em;
margin:6px 0 0;
color:var(--text);
}

.config-area-head span{
background:#eff6ff;
color:#155dfc;
padding:9px 13px;
border-radius:999px;
font-size:13px;
font-weight:900;
white-space:nowrap;
}

.config-groups{
display:grid;
gap:18px;
}

.config-group{
background:#fbfdff;
border:1px solid #e9eef6;
border-radius:24px;
padding:20px;
}

.group-top{
margin-bottom:16px;
}

.group-top h4{
font-size:clamp(26px,2.5vw,34px);
line-height:1;
letter-spacing:-.045em;
margin:0 0 6px;
color:var(--text);
}

.group-top p{
margin:0;
font-size:15px;
color:var(--muted);
}

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

.config-option{
position:relative;
display:grid;
gap:12px;
min-height:170px;
padding:18px;
border-radius:22px;
border:1px solid #dfe7f1;
background:#fff;
cursor:pointer;
transition:.18s ease;
box-shadow:0 8px 24px rgba(15,23,42,.035);
}

.config-option:hover{
transform:translateY(-3px);
border-color:#9bbcff;
box-shadow:0 16px 42px rgba(21,93,252,.12);
}

.config-option.selected{
border:2px solid var(--blue);
box-shadow:0 18px 50px rgba(21,93,252,.14);
background:#fbfdff;
}

.config-option.selected:after{
content:"✓";
position:absolute;
top:14px;
right:14px;
width:30px;
height:30px;
border-radius:999px;
display:flex;
align-items:center;
justify-content:center;
background:linear-gradient(135deg,#155dfc,#0b49d1);
color:#fff;
font-weight:950;
font-size:15px;
box-shadow:0 10px 24px rgba(21,93,252,.25);
}

.config-option input{
display:none;
}

.option-head{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:12px;
padding-right:36px;
}

.option-head strong{
font-size:22px;
line-height:1.12;
letter-spacing:-.035em;
font-weight:950;
color:var(--text);
}

.price-tag{
padding:8px 11px;
border-radius:999px;
background:#f1f5f9;
font-size:14px;
font-weight:950;
white-space:nowrap;
color:#0f172a;
}

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

.option-flags{
display:flex;
gap:8px;
flex-wrap:wrap;
margin-top:auto;
}

.flag{
padding:7px 10px;
border-radius:999px;
font-size:10px;
font-weight:950;
letter-spacing:.11em;
text-transform:uppercase;
}

.flag.blue{
background:#eaf1ff;
color:#155dfc;
}

.flag.orange{
background:#fff1e8;
color:#ea580c;
}

.flag.red{
background:#fee2e2;
color:#b91c1c;
}

.option-rule-message{
padding:10px 12px;
border-radius:14px;
background:#fff7ed;
border:1px solid #fed7aa;
font-size:13px;
line-height:1.45;
font-weight:750;
color:#9a3412;
}

.config-option.is-incompatible{
opacity:.55;
background:#fff7f7;
border-color:#fecaca;
}

.config-option.has-notice{
border-color:#fed7aa;
}

@media(max-width:1100px){
.configurator-layout{
grid-template-columns:1fr;
}
.config-sidebar{
position:relative;
top:auto;
}
}

@media(max-width:800px){
.configurator-header{
display:block;
padding:22px;
}
.configurator-header h2{
font-size:42px;
}
.floating-price{
width:100%;
margin-top:16px;
}
.config-area-head,
.option-head{
display:block;
}
.config-area-head span{
display:inline-flex;
margin-top:10px;
}
.option-grid{
grid-template-columns:1fr;
}
.option-head{
padding-right:38px;
}
.price-tag{
display:inline-flex;
margin-top:10px;
}
.config-option{
min-height:auto;
}
}