:root{
    color-scheme:light;--orange:#F2AE80;--ink:#282A2E;--muted:#5c5d63;--paper:#fbf8f5;--line:#e5dcd4;
    font-family:"Inter","Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper)
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
a{color:inherit}
button,input,select{font:inherit;color:inherit}
button,a,input,select{outline-offset:4px}
:focus-visible{outline:3px solid #a34e25}
.container{width:min(1160px,calc(100% - 2.5rem));margin-inline:auto}
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.site-nav{display:flex;gap:clamp(.7rem,3vw,2.1rem);align-items:center}
.site-nav a,.text-link{text-decoration:none;font-weight:650}
.site-nav a:hover,.text-link:hover{text-decoration:underline;text-underline-offset:.3em}
.brand{display:block;width:clamp(120px,23vw,178px)}
.brand img{display:block;width:100%;max-height:53px;object-fit:contain;object-position:left center}
.portal,.primary,.more{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;text-decoration:none;font-weight:650;border-radius:10px;padding:.78rem 1rem}
.portal{border:1px solid var(--line);white-space:nowrap}
.hero{background:#282a2e;color:#fff9f3;border-bottom:5px solid var(--orange)}
.hero-inner{min-height:360px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:clamp(2rem,6vw,5rem);padding-block:clamp(3rem,7vw,6rem)}
.company{color:var(--orange);font-weight:700;margin:0 0 .85rem}
h1,h2,p{margin-top:0}
h1{font-size:clamp(2.7rem,7vw,5.5rem);line-height:.98;letter-spacing:-.065em;margin-bottom:1.25rem;max-width:12ch}
.hero p:not(.company){max-width:43ch;color:#ece1d9;line-height:1.6;margin-bottom:1.5rem}
.primary,.more{background:var(--orange);color:var(--ink);border:1px solid transparent}
.hero-photo{background:#fff;border-radius:20px;min-width:0;overflow:hidden;box-shadow:0 12px 44px #0003}
.hero-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;padding:1rem}
.catalog{padding-block:clamp(2.4rem,6vw,4.8rem);min-height:45vh}
.catalog h2{font-size:clamp(2rem,4vw,3.35rem);letter-spacing:-.055em;margin-bottom:1.35rem}
.controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,16rem);align-items:center;gap:.75rem;background:#fff;border:1px solid var(--line);border-radius:15px;padding:1rem}
.controls label{font-size:.93rem;font-weight:700}
.controls input,.controls select{border:1px solid #c8beb7;border-radius:9px;background:#fff;padding:.72rem .8rem;min-width:0;width:100%}
#status{margin:1rem 0;color:var(--muted);min-height:1.3em}
.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.product{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;min-width:0;box-shadow:0 3px 10px #282a2e08;transition:box-shadow .2s,border-color .2s}
.product:hover,.product:focus-within{box-shadow:0 12px 26px #282a2e14;border-color:#d5aa93}
.product button{width:100%;height:100%;padding:0;background:none;border:0;display:flex;flex-direction:column;text-align:left;cursor:pointer}
.product button:focus-visible{outline-offset:-4px}
.media,.gallery-photo{position:relative;display:grid;place-items:center;background:#f6f1ed;aspect-ratio:4/3;width:100%;overflow:hidden}
.media img,.gallery-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;padding:clamp(.35rem,1vw,1rem)}
.media{border-bottom:1px solid var(--line)}
.no-photo{color:var(--muted);font-size:.88rem}
.product-copy{padding:1rem;display:grid;gap:.45rem;align-content:start}
.product-copy small{color:var(--muted)}
.product-copy strong{font-size:1.06rem;overflow-wrap:anywhere}
.product-copy span{font-size:.86rem;font-weight:650;margin-top:.25rem;color:#873f20}
.more{display:flex;margin:1.5rem auto 0;cursor:pointer}
.developer-signature{display:flex;justify-content:center;flex-wrap:wrap;gap:.35rem .6rem;border-top:1px solid var(--line);padding:1rem;text-align:center;font-size:.85rem;color:var(--muted)}
dialog{border:1px solid var(--line);border-radius:20px;width:min(1060px,calc(100% - 2rem));max-height:90dvh;padding:clamp(1rem,2.6vw,2rem);color:var(--ink);box-shadow:0 24px 70px #16141944}
dialog::backdrop{background:#282a2ebd}
.about{background:#fff;border-block:1px solid var(--line)}
.about-inner,.contact{display:grid;grid-template-columns:1fr 1.4fr;align-items:center;gap:2rem;padding-block:clamp(2.6rem,6vw,5rem)}
.about h2,.contact h2{font-size:clamp(2.2rem,5vw,3.8rem);letter-spacing:-.06em;margin-bottom:.45rem}
.section-brand{font-weight:700;color:#873f20;margin-bottom:.4rem}
.about p:not(.section-brand),.contact p{line-height:1.65;color:var(--muted);max-width:57ch}
.contact-links{display:flex;align-items:center;justify-content:flex-end;gap:1.2rem;flex-wrap:wrap}
.detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem}
.detail-head h2{margin:.25rem 0 1.3rem;overflow-wrap:anywhere;letter-spacing:-.035em;font-size:clamp(1.24rem,2.5vw,1.9rem)}
.detail-head button{border:1px solid var(--line);background:#fff;border-radius:8px;cursor:pointer;font-size:1.5rem;width:44px;height:44px;flex-shrink:0}
.detail-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(1.1rem,3vw,2.25rem);align-items:start}
.detail-gallery,.detail-info{min-width:0}
.gallery-photo{aspect-ratio:4/3;max-height:55dvh;border-radius:14px;border:1px solid var(--line)}
.gallery-thumbs{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.6rem}
.gallery-thumbs button{padding:0;width:56px;height:50px;border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden;cursor:pointer}
.gallery-thumbs button[aria-pressed=true]{border:2px solid #a34e25}
.gallery-thumbs img{width:100%;height:100%;object-fit:contain}
.detail-meta{color:#743b22;background:#fbefe7;border-radius:8px;padding:.65rem .8rem;margin:0 0 1.1rem;line-height:1.45;overflow-wrap:anywhere}
.detail-info h3{font-size:1.18rem;margin:0 0 .55rem}
.description{overflow-wrap:anywhere;line-height:1.62;color:#414248}
.description p{margin:0 0 .8rem}
.description ul{margin:.6rem 0;padding-left:1.25rem}
.description li+li{margin-top:.35rem}
@media(max-width:760px){
    .header-inner{flex-wrap:wrap;padding-block:.65rem;gap:.7rem}
    .site-nav{order:3;flex:1 0 100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:.65rem}
    .hero-inner{grid-template-columns:1fr;min-height:0;gap:1.75rem}
    .hero-photo{max-width:520px}
    .products{grid-template-columns:repeat(2,minmax(0,1fr))}
    .controls{grid-template-columns:1fr;gap:.4rem}
    .controls label:not(:first-child){margin-top:.35rem}
    .about-inner,.contact{grid-template-columns:1fr;gap:1rem}
    .contact-links{justify-content:flex-start}
    .detail-layout{grid-template-columns:1fr}
    .gallery-photo{max-height:45dvh}
}
@media(max-width:390px){
    .container{width:calc(100% - 1.5rem)}
    .products{gap:.6rem}
    .product-copy{padding:.7rem}
    .product-copy strong{font-size:.94rem}
}

/* RelaxMed public catalog */
:root{--paper:#faf7f3;--line:#e8ded5;--warm:#f5ece3;--shadow:0 16px 44px #282a2e10}
.container{width:min(1240px,calc(100% - 3rem))}
.site-header{position:sticky;top:0;z-index:2;background:#fffdfaf5;backdrop-filter:blur(14px)}
#main,.catalog,.about,.contact{scroll-margin-top:6rem}
.portal,.primary,.more{min-height:44px;border-radius:12px}
.portal:hover,.primary:hover,.more:hover{box-shadow:inset 0 0 0 2px #282a2e22}
.hero{background:radial-gradient(ellipse at 83% 10%,#574139,transparent 54%),var(--ink);border-bottom:3px solid var(--orange)}
.hero-inner{min-height:470px}
.company,.section-brand{font-size:.78rem;letter-spacing:.15em;text-transform:uppercase}
h1{max-width:none;line-height:.98}
h1 em{display:block;color:var(--orange);font-family:Georgia,serif;font-weight:400;letter-spacing:-.045em}
.hero p:not(.company){font-size:clamp(1rem,1.6vw,1.16rem);margin-bottom:1.85rem}
.hero-photo{border:1px solid #ffffff90;border-radius:24px;background:#fff;box-shadow:0 22px 60px #0005}
.hero-photo img{padding:clamp(.75rem,3vw,2rem);aspect-ratio:5/4}
.controls{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:1rem;padding:1.15rem;border-radius:18px;box-shadow:var(--shadow)}
.filter-field{display:grid;gap:.45rem;min-width:0}
.controls input,.controls select{background:#fcfaf8;border:1px solid var(--line);min-height:46px}
#status{font-size:.94rem;margin-block:1.4rem 1rem}
.products{gap:clamp(.75rem,2vw,1.45rem)}
.product{border-radius:20px;box-shadow:0 5px 18px #282a2e08}
.product button{display:grid;grid-template-rows:auto 1fr}
.media,.gallery-photo{background:linear-gradient(145deg,#fff,#f7f2ed)}
.media img{padding:clamp(.45rem,1.4vw,1.15rem)}
.product-copy{padding:clamp(.85rem,2vw,1.4rem);grid-template-rows:auto 1fr auto;align-content:stretch}
.product-copy small{font-weight:600}
.product-copy strong{line-height:1.35}
.product-copy span{padding-top:.55rem;border-top:1px solid var(--line)}
.about{background:linear-gradient(105deg,var(--warm),#fffdfb)}
.about-inner{grid-template-columns:1fr 1.3fr}
.about p:not(.section-brand){font-size:clamp(1rem,2vw,1.2rem)}
.contact{margin-block:clamp(1.7rem,5vw,4rem);padding:clamp(1.35rem,4vw,3.6rem);grid-template-columns:1.2fr 1fr;border-radius:24px;background:var(--ink);color:#fff9f3}
.contact p{color:#ece1d9;margin-bottom:0}
.developer-signature{background:#fffdfb;padding-block:1.35rem}
dialog{border-radius:24px}
dialog::backdrop{backdrop-filter:blur(3px)}
.detail-head{border-bottom:1px solid var(--line);margin-bottom:1.35rem}
.detail-head button:hover{background:var(--warm)}
.detail-meta{border:1px solid #f1dfd3}
.gallery-thumbs button{border-radius:9px}
@media(max-width:760px){
    .site-header{position:static}
    #main,.catalog,.about,.contact{scroll-margin-top:1rem}
    .container{width:calc(100% - 1.5rem)}
    .site-nav{justify-content:center;gap:clamp(.8rem,5vw,2rem);font-size:.92rem}
    .hero-inner{min-height:0}
    .hero-photo{width:100%;max-width:none}
    .hero-photo img{aspect-ratio:16/10}
    .controls,.about-inner,.contact{grid-template-columns:1fr}
    .controls{gap:.8rem;padding:.85rem}
    .contact-links{gap:.9rem}
    .product-copy small{font-size:.75rem}
    .product-copy span{font-size:.79rem}
}

.site-header{border-top:3px solid var(--orange);box-shadow:0 4px 18px #282a2e0a}
.site-nav{gap:.2rem;margin-inline-start:auto}
.header-actions{display:flex;align-items:center;gap:.55rem}
.search-shortcut{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px}
.search-shortcut:hover{background:var(--warm)}
.search-shortcut span{position:relative;width:14px;height:14px;border:2px solid currentColor;border-radius:50%;margin:-3px 3px 0 0}
.search-shortcut span::after{content:"";position:absolute;top:9px;left:9px;width:7px;height:2px;background:currentColor;transform:rotate(45deg);transform-origin:left center}
#product-search{scroll-margin-top:7rem}
.site-nav a,.footer-nav a{display:inline-flex;align-items:center;min-height:44px;padding:.5rem clamp(.55rem,1.25vw,1rem);border-radius:10px}
.site-nav a:hover,.footer-nav a:hover{background:#fff;text-decoration:none;color:#873f20}
.portal{background:var(--orange);border-color:transparent}
.about{background:#f6eee5}
.about-inner{align-items:center;gap:clamp(1.25rem,5vw,4rem)}
.about .about-lead{font-family:Georgia,serif;font-size:clamp(1.08rem,2vw,1.45rem);line-height:1.35;margin:.85rem 0 0;color:var(--ink)}
.about-copy{background:#fffdfb;border:1px solid var(--line);border-radius:20px;padding:clamp(1.2rem,3vw,2.3rem)}
.about-copy p{margin-bottom:1.15rem}
.about-copy .text-link{color:#873f20}
.contact{background:radial-gradient(ellipse at top right,#55413a,transparent 75%),var(--ink)}
.contact-links{display:grid;gap:.65rem}
.contact-action{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:48px;padding:.85rem 1rem;border:1px solid #ffffff40;border-radius:12px;text-decoration:none;overflow-wrap:anywhere}
.contact-action:first-child{background:var(--orange);color:var(--ink);border-color:transparent}
.contact-action:hover{text-decoration:underline;text-underline-offset:.2em}
.site-footer{background:#fffdfb;border-top:1px solid var(--line)}
.footer-inner,.footer-nav{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.footer-inner{justify-content:space-between;padding-block:1.15rem}
.footer-nav a{font-weight:650;text-decoration:none}
@media(max-width:760px){
    .site-nav{justify-content:space-evenly;margin-inline-start:0}
    #product-search{scroll-margin-top:1rem}
    .footer-inner{justify-content:center;flex-direction:column}
    .footer-nav{justify-content:center}
}
@media(max-width:360px){
    .header-actions{gap:.35rem}
    .header-actions .portal{padding-inline:.65rem}
}

.catalog-layout{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(0,4fr);gap:clamp(1rem,2.5vw,2rem);align-items:start}
.category-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1rem}
.category-panel h3{margin:0 0 .65rem;font-size:1rem}
#category{display:grid;gap:.25rem}
#category button{border:1px solid transparent;border-radius:9px;padding:.65rem .75rem;text-align:left;background:transparent;cursor:pointer;line-height:1.3}
#category button:hover{background:var(--warm)}
#category button[aria-pressed=true]{background:var(--orange);font-weight:700}
.catalog-results .controls{grid-template-columns:minmax(0,1fr)}
a[aria-current=page]{background:var(--warm);color:#873f20}
.corporate-page{min-height:65vh;padding-block:clamp(1rem,4vw,3rem)}
.corporate-page h1{font-size:clamp(2.5rem,6vw,4.5rem);margin-bottom:1rem}
.corporate-page .about{border:0}
.corporate-page .contact{margin-top:0}
.contact address{font-style:normal;margin-top:1.25rem;line-height:1.5}
.location{background:#fff;border:1px solid var(--line);border-radius:20px;padding:clamp(.8rem,3vw,1.5rem)}
.location>div{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin-bottom:.85rem}
.location h2{margin:0}
.location iframe{display:block;width:100%;height:clamp(290px,42vw,450px);border:0;border-radius:12px;background:var(--warm)}
@media(max-width:760px){
    .catalog-layout{grid-template-columns:minmax(0,1fr)}
    #category{display:flex;overflow-x:auto;padding:4px;gap:.35rem}
    #category button{flex:none;white-space:nowrap;border-color:var(--line);min-height:44px}
}
