/* About and Contact page layouts */
.about-page,.contacts-page{max-width:1440px;margin:0 auto;min-height:100vh;background:var(--paper)}
.about-page .about-header,.contacts-page .site-header{background:#eeede8!important}
.about-photo{position:relative;isolation:isolate;min-height:clamp(460px,57vw,690px);padding:clamp(32px,7vw,100px);display:flex;align-items:center;justify-content:flex-start;background:#bcbab2 url("/assets/about-workshop.jpg") center 52%/cover no-repeat;overflow:hidden}
.about-photo::before{content:"";position:absolute;inset:0;background:#17181620;z-index:-1}
.about-glass{width:min(590px,58%);padding:clamp(30px,5.2vw,68px);background:rgba(255,255,252,.86);backdrop-filter:blur(5px);border:1px solid rgba(255,255,255,.72);box-shadow:0 15px 48px #18181818}
.about-glass .eyebrow{margin:0 0 17px;font-family:var(--font-ui);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#5b5a55}
.about-glass h1{font-family:var(--font-display,var(--font-ui));font-weight:500;font-size:clamp(46px,6vw,76px);line-height:.98;letter-spacing:-.055em;margin:0 0 26px;color:var(--ink)}
.about-glass p:not(.eyebrow){font-family:var(--font-ui);font-size:clamp(16px,1.5vw,19px);line-height:1.6;max-width:470px;color:#41403c;margin:0}
.about-glass .about-detail{margin-top:13px!important;font-size:15px!important;color:#66645e!important}
.contacts-content{max-width:1320px;margin:0 auto;padding:clamp(48px,8vw,104px) 2.5% clamp(56px,8vw,100px)}
.contacts-content>.eyebrow{margin:0 0 15px;font:600 12px/1.2 var(--font-ui);letter-spacing:.13em;text-transform:uppercase;color:#6c6a64}
.contacts-content h1{margin:0;font:500 clamp(44px,6vw,72px)/.98 var(--font-display,var(--font-ui));letter-spacing:-.055em;color:var(--ink)}
.contacts-lead{max-width:570px;margin:20px 0 38px;font:400 16px/1.6 var(--font-ui);color:#5b5953}
.messenger-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.messenger-button{box-sizing:border-box;min-height:76px;padding:0 20px;display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none;font:600 17px/1 var(--font-ui);transition:filter .16s,transform .16s}
.messenger-button:hover,.messenger-button:focus-visible{filter:brightness(.93);transform:translateY(-2px);outline:3px solid #1b1b1b20;outline-offset:2px}
.messenger-button svg{width:25px;height:25px;flex:0 0 25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.messenger-button b{margin-left:auto;font-size:18px;font-weight:400}.messenger-viber{background:#7360f2}.messenger-whatsapp{background:#25d366}.messenger-telegram{background:#27a8e0}
.manager-contact{margin-top:38px;padding-top:24px;border-top:1px solid #d9d7d0;display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px}
.manager-contact p{flex-basis:100%;margin:0;color:#66645e;font:400 14px/1.4 var(--font-ui)}
.phone-copy,.footer-copy-number{border:1px solid #292824;background:transparent;color:inherit;cursor:pointer;font-family:var(--font-ui);transition:background .16s,color .16s}
.phone-copy{display:inline-flex;align-items:center;gap:13px;min-height:50px;padding:0 17px;background:#252421;color:#fff;font-size:16px;font-weight:600}
.phone-copy:hover,.phone-copy:focus-visible{background:var(--red);border-color:var(--red);outline:none}.phone-copy svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.copy-status{min-height:1.3em;color:#55534d;font:400 13px/1.3 var(--font-ui)}
.site-footer .footer-copy-number{padding:0;border:0;background:none;color:#f4f3ef;text-align:left;font:400 12px/1.45 Onest,Inter,Arial,sans-serif;cursor:pointer}.site-footer .footer-copy-number:hover,.site-footer .footer-copy-number:focus-visible{color:var(--red);outline:none}
.site-footer .footer-viber:hover{color:#a497ff}.site-footer .footer-whatsapp:hover{color:#25d366}.site-footer .footer-telegram:hover{color:#27a8e0}
.site-header nav a[href="contacts.html"].active{color:var(--red)}
@media(max-width:900px){.about-photo{min-height:500px;padding:7%}.about-glass{width:min(560px,72%)}.messenger-list{gap:10px}.messenger-button{padding-inline:15px}}
@media(max-width:700px){.about-photo{min-height:560px;padding:22px;align-items:flex-end;background-position:58% center}.about-photo::before{background:linear-gradient(0deg,#1115,transparent 65%)}.about-glass{box-sizing:border-box;width:100%;padding:28px 25px;background:rgba(255,255,252,.89)}.about-glass h1{font-size:48px;margin-bottom:19px}.about-glass p:not(.eyebrow){font-size:15px;line-height:1.55}.about-glass .about-detail{font-size:14px!important}.contacts-content{padding:52px 22px 62px}.contacts-content h1{font-size:48px}.contacts-lead{font-size:15px;margin:16px 0 27px}.messenger-list{grid-template-columns:1fr;gap:10px}.messenger-button{min-height:62px;font-size:16px}.manager-contact{margin-top:29px;padding-top:20px;gap:11px}.phone-copy{min-height:48px;font-size:15px}.copy-status{flex-basis:100%}}
@media(min-width:701px) and (max-width:1024px){.about-glass{width:min(540px,78%)}.about-photo{min-height:560px}.contacts-content{padding-left:2.5%;padding-right:2.5%}}
@media(prefers-reduced-motion:reduce){.messenger-button{transition:none}}

.global-copy-status{position:fixed;z-index:999;right:18px;bottom:18px;padding:11px 15px;background:#252421;color:#fff;font:500 13px/1.3 var(--font-ui);box-shadow:0 6px 22px #0002} .global-copy-status:empty{display:none}

/* Let short content fill the viewport while keeping the footer compact. */
.about-page,.contacts-page{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
.about-page>.about-photo{flex:1 0 auto}
.contacts-page>.contacts-content{flex:1 0 auto}
.about-page>.site-footer,.contacts-page>.site-footer{flex:0 0 auto;margin-top:auto}
/* Keep whole messenger marks safely inside their box. */
.messenger-button{overflow:visible}
.messenger-button svg{display:block;overflow:visible;flex-shrink:0;width:27px;height:27px}
.messenger-viber svg,.messenger-whatsapp svg{fill:none}
.messenger-telegram svg path{fill:currentColor;stroke:none}
@media(max-width:700px){.messenger-button svg{width:26px;height:26px}}

/* Use the same page background if the browser viewport extends beyond content. */
html,body{background:var(--paper)}

/* Give the contact buttons more room and preserve each logo's square proportions. */
.messenger-list{gap:14px}
.messenger-button{min-width:0;padding-inline:24px}
.messenger-button svg.messenger-logo{display:block;box-sizing:border-box;width:30px!important;height:30px!important;min-width:30px;max-width:30px;min-height:30px;max-height:30px;flex:0 0 30px;aspect-ratio:1/1;object-fit:contain;transform:none}
.messenger-whatsapp svg.messenger-logo,.messenger-viber svg.messenger-logo{fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.messenger-telegram svg.messenger-logo{fill:currentColor;stroke:none}
@media(max-width:900px){.contacts-content{padding-left:2%;padding-right:2%}.messenger-button{padding-inline:20px}}
@media(max-width:700px){.contacts-content{padding-left:22px;padding-right:22px}.messenger-button{padding-inline:20px}.messenger-button svg.messenger-logo{width:30px!important;height:30px!important;flex-basis:30px}}
/* Center the wider panel without shrinking it to its contents in the flex page. */
.contacts-content{box-sizing:border-box;width:100%;max-width:1320px}
.contacts-content{padding-left:6%;padding-right:6%}
@media(max-width:900px){.contacts-content{padding-left:6%;padding-right:6%}}
@media(max-width:700px){.contacts-content{padding-left:22px;padding-right:22px}}

/* Use the original brand SVG files without distorting their aspect ratios. */
.messenger-button img.messenger-logo{display:block;box-sizing:border-box;width:30px;height:30px;max-width:30px;max-height:30px;flex:0 0 30px;object-fit:contain;object-position:center}
@media(max-width:700px){.messenger-button img.messenger-logo{width:30px;height:30px;flex-basis:30px}}
/* The Viber mark has a taller silhouette; nudge it down for optical alignment. */
.messenger-viber .messenger-logo{transform:translateY(1.5px)}
