/*
Theme Name: АКС · Испытательная лаборатория
Description: Корпоративный сайт Алтын Керемет Сервис
Version: 1.1
Requires PHP: 7.4
*/
@font-face{font-family:Golos;src:url(assets/golos.ttf) format("truetype");font-weight:400 900;font-display:swap}
:root{--ink:#152839;--navy:#132d43;--brand:#ffd324;--paper:#fafaf7;--sub:#435465;--rule:#d1d7d8;--pad:clamp(22px,4.8vw,92px)}
*{box-sizing:border-box}
html{scroll-padding-top:20px}
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.5 Golos,Arial,sans-serif;-webkit-font-smoothing:antialiased}
body::selection,::selection{color:#152839;background:#ffdc56}
a{color:inherit;text-underline-offset:.27em;text-decoration-thickness:1px}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #0476ad;outline-offset:4px}
a:hover{text-decoration-thickness:2px}
img{display:block;max-width:100%;height:auto}
svg.icon{width:20px;height:20px;flex:none}
.shell{max-width:1660px;margin-inline:auto;padding-inline:var(--pad)}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{font-weight:600;line-height:1.08;letter-spacing:-.04em}
h2{font-size:clamp(30px,3.3vw,53px)}
p+p{margin-top:1em}
.skip{position:absolute;z-index:10;transform:translateY(-140%);background:white;padding:12px}.skip:focus{transform:none}
.mast{border-bottom:1px solid var(--rule);background:#fff}
.mast-in{min-height:85px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-size:18px;font-weight:650;line-height:1.1;letter-spacing:-.045em;flex:none}
.brand img{width:50px;height:50px}
.desktop-nav,.actions,.hero-actions,.about-links,.cred-in,.cred-title,.documents a,.catalog-link,.language summary,.header-phone,.filters{display:flex;align-items:center}
.desktop-nav{gap:clamp(16px,2.4vw,40px)}.desktop-nav a,.header-phone,.dropdown a,.service-row{text-decoration:none}
.desktop-nav a,.actions{font-size:.9rem;font-weight:530}
.desktop-nav a:hover,.desktop-nav a[aria-current],.drop-panel a:hover,.drop-panel a[aria-current]{text-decoration:underline}
.actions{gap:23px}.header-phone{gap:8px;white-space:nowrap}.header-phone svg{width:16px}
.dropdown{position:relative}.dropdown summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;gap:6px}.dropdown summary::-webkit-details-marker{display:none}
.language svg:first-child{width:16px}.language svg:last-child{width:12px}.drop-panel{background:white;border:1px solid var(--rule);position:absolute;z-index:5;right:0;top:100%;min-width:150px;padding:6px}
.drop-panel a{display:block;padding:10px}.menu{display:none}
.hero{display:grid;grid-template-columns:1.09fr 1fr;align-items:stretch;padding-top:clamp(28px,3.2vw,54px);padding-bottom:clamp(28px,3.2vw,54px);gap:clamp(28px,3.6vw,65px)}
.hero-text{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:24px 0}
.hero h1{font-size:clamp(49px,5.1vw,86px);font-weight:620;line-height:1.005;letter-spacing:-.047em;max-width:12em;overflow-wrap:break-word}
.hero-desc{font-size:clamp(17px,1.38vw,22px);line-height:1.5;color:var(--sub);margin-top:26px;max-width:39ch}
.hero-actions{margin-top:clamp(28px,3vw,47px);gap:clamp(18px,2.4vw,38px)}
.button{border:0;border-radius:3px;min-height:52px;padding:14px 23px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;font:600 1rem/1.35 Golos,Arial,sans-serif;text-align:center}
.primary{background:var(--brand);color:#22200e}.primary:hover{background:#edc21c}
.catalog-link{gap:7px;font-size:15px;text-decoration:none;font-weight:550}.catalog-link:hover{text-decoration:underline}.catalog-link .icon{width:15px}
.hero-photo{position:relative;min-height:clamp(385px,33vw,525px);background:#798690;overflow:hidden}
.hero-photo img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:55% 53%}
.credentials{background:var(--navy);color:#fff}.cred-in{min-height:76px;gap:28px}.cred-title{font-size:17px;font-weight:550;gap:12px}.cred-title .icon{color:var(--brand);width:24px;height:24px}.standard{border-left:1px solid #62727e;padding-left:28px;color:#dce3e7;font-size:14px}.cred-in a{margin-left:auto;font-size:.93rem}
.catalog{padding-top:clamp(55px,5.5vw,88px);padding-bottom:clamp(56px,6.2vw,100px)}
.catalog-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px;flex-wrap:wrap}
.filters{gap:4px;flex-wrap:wrap}.filters a{font-size:.9rem;text-decoration:none;color:var(--sub);padding:8px 13px;border-radius:2px}
.filters a[aria-current]{background:var(--ink);color:white}.filters a:not([aria-current]):hover{background:#e5e9e7;color:var(--ink)}
.services-list{border-top:1px solid #a2adb2}.service-row{display:grid;grid-template-columns:1fr .83fr 32px;gap:28px;align-items:center;padding:24px 0;border-bottom:1px solid var(--rule)}
.service-row strong{font-size:clamp(19px,1.64vw,27px);font-weight:560;line-height:1.2;letter-spacing:-.035em}
.service-row span{color:var(--sub);font-size:15px}.service-row svg{width:18px;justify-self:end}.service-row:hover strong{text-decoration:underline;text-decoration-color:#b99200;text-underline-offset:5px}.service-row:hover svg{transform:translateX(3px)}
.about-band{background:#e9eeef}.about-grid{padding-block:clamp(55px,6vw,96px);display:grid;grid-template-columns:1fr minmax(220px,34%);gap:13%;align-items:center}
.lead{font-size:clamp(18px,1.5vw,24px);line-height:1.55;margin:23px 0;max-width:47ch}
.about-links{gap:22px;flex-wrap:wrap;font-weight:540}.certificate-card{display:block;position:relative;overflow:hidden;background:#d8dfe1;padding:26px 30px 0;text-decoration:none}
.certificate-card img{width:min(220px,70%);margin:0 auto -90px;object-fit:cover;transform:rotate(-4deg)}.certificate-card span{position:relative;display:flex;align-items:center;justify-content:space-between;padding:15px 0;background:var(--ink);color:white;margin:0 -30px;padding-inline:20px}
.inner{padding-top:32px;padding-bottom:clamp(50px,6vw,95px);min-height:45vh}
.inner:has(+.catalog){padding-bottom:0;min-height:0}.inner+.catalog{padding-top:25px}
.crumb{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;color:var(--sub);font-size:.85rem;margin-bottom:clamp(30px,4vw,70px)}
.inner h1{font-size:clamp(38px,5.4vw,83px);max-width:21ch;margin:0 0 34px;overflow-wrap:anywhere}
.article{max-width:72ch;font-size:1.14rem;line-height:1.65}.article h2{font-size:clamp(23px,2.2vw,36px);margin:1.5em 0 .45em}.article h2:first-child{margin-top:0}.article .button,.article .about-links{margin-top:30px}.summary{font-size:1.4rem;line-height:1.4;margin-bottom:20px}
.accredit-grid,.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,7vw,100px);align-items:start}
.accredit-grid>img{width:100%;max-width:350px;border:1px solid var(--rule)}
.documents{margin-top:25px}.documents a{gap:12px;border-block-start:1px solid var(--rule);padding:18px 0;text-decoration:none}.documents a:hover{text-decoration:underline}.documents small{margin-left:auto;font-size:13px}
.contact-info h2,.quote h2{font-size:clamp(24px,2.3vw,38px);margin-bottom:20px}.contact-info a{display:block;width:fit-content;margin-top:12px}.contact-phone{font-size:1.55rem;font-weight:550;text-decoration:none}
.wa-link{font-weight:570}.quote{padding:clamp(22px,2.5vw,40px);background:#e9eeef}.quote label{display:block;font-size:.94rem;font-weight:520}
.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quote input:not([type="checkbox"]),.quote textarea{display:block;width:100%;padding:10px 12px;border:1px solid #9ca8ae;border-radius:2px;background:#fff;margin:7px 0 16px;font:400 1rem/1.35 Golos,Arial,sans-serif;color:var(--ink)}
.quote textarea{resize:vertical}.quote label.consent{display:flex;gap:8px;align-items:flex-start;font-size:.85rem;font-weight:400;margin-bottom:20px}.consent input{margin-top:4px;accent-color:var(--ink)}.response{display:flex;align-items:flex-start;gap:.6em;margin:10px 0 20px}.quote .trap{display:none}
footer{background:var(--navy);color:#fff}.foot-in{display:flex;justify-content:space-between;align-items:center;gap:25px;padding-block:42px}.foot-in>div{display:grid;gap:8px;font-size:14px}.foot-in>div span{color:#ced6dd}.footer-quote{color:var(--brand);font-weight:590}
@media(max-width:1100px){.mast-in{gap:15px}.header-phone svg{display:none}.hero h1{font-size:5.3vw}.actions{gap:12px}.desktop-nav{gap:14px}.hero-photo{min-height:360px}}
@media(max-width:900px){.header-phone{display:none}.hero{gap:22px;grid-template-columns:1.07fr 1fr}.hero-desc{margin-top:18px}.hero-photo{min-height:315px}.hero-actions{gap:16px}.button{padding-inline:17px}.standard{padding-left:15px}.cred-in{gap:15px}.catalog-head{display:block}.filters{margin-top:20px}}
@media(max-width:720px){.mast-in{min-height:70px}.brand{font-size:16px;gap:9px}.brand img{width:42px;height:42px}.desktop-nav{display:none}.actions{gap:20px}.menu{display:block}.menu .drop-panel{width:195px}.hero{display:flex;flex-direction:column;gap:24px;padding-top:32px;padding-bottom:22px}.hero-text{padding:0}.hero h1{font-size:clamp(37px,9.5vw,65px);line-height:1.02}.hero-desc{font-size:17px;max-width:45ch}.hero-actions{margin-top:23px}.hero-photo{width:100%;aspect-ratio:1.84;min-height:0}.hero-photo img{object-position:55% 62%}.cred-in{display:grid;grid-template-columns:1fr auto;padding-block:16px;gap:5px 12px}.cred-title{font-size:15px;gap:7px}.cred-title .icon{width:18px}.standard{border:0;padding-left:25px;font-size:12px;grid-row:2}.cred-in a{font-size:13px;grid-column:2;grid-row:1/3}.catalog{padding-top:40px}.filters{gap:2px}.filters a{padding:8px 10px}.catalog-head{margin-bottom:18px}.service-row{grid-template-columns:1fr 20px;gap:6px 12px;padding-block:18px}.service-row span{grid-column:1;font-size:14px}.service-row svg{grid-column:2;grid-row:1/3}.about-grid,.contact-grid,.accredit-grid{grid-template-columns:1fr;gap:32px}.certificate-card{max-width:420px}.field-pair{grid-template-columns:1fr}.foot-in{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:25px 15px}.foot-in .brand{grid-column:1/-1}.footer-quote{font-size:15px}.inner{padding-top:22px}.inner h1{font-size:clamp(34px,8.2vw,55px)}}
@media(max-width:380px){.cred-in{display:flex;align-items:flex-start;flex-direction:column;gap:6px}.standard{padding-left:0}.cred-in a{margin-left:0}.hero-actions{gap:14px}.filters a{font-size:13px}.hero h1{font-size:9vw}}
@media(prefers-reduced-motion:no-preference){.service-row svg{transition:transform .16s ease-out}}
.all-services{margin-top:22px;font-weight:550}
.related,.general-message,.contact-map,.contact-info h3{margin-top:1.7rem}
.related{gap:12px 24px}
.contact-map summary,.general-message summary{cursor:pointer;font-weight:580}
.contact-map iframe{display:block;border:0;width:100%;height:280px;margin-top:12px}
.general-message{padding:20px;border:1px solid var(--rule);font-size:1rem}
.general-message form,.general-message p{margin-top:18px}.general-message label{display:block;margin-bottom:10px}
.general-message input:not([type=checkbox]),.general-message textarea,.lab-search input[type=search]{display:block;width:100%;font:inherit;border:1px solid #85949c;padding:10px;background:white;margin-top:5px}
.general-message label.trap{display:none}.general-message .consent{display:flex;align-items:baseline;gap:8px}
.lab-search{display:flex;align-items:end;gap:8px}.lab-search label{min-width:0;flex:1}.lab-search .button{min-height:45px;padding:10px 14px}
.search-menu .drop-panel{width:clamp(260px,31vw,400px);padding:16px}.search-results .lab-search{max-width:620px}.search-results li{padding:.6em 0}.search-results>p{margin-top:1.4rem}
.archive-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:18px;margin-top:28px}
.archive-gallery>a{display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:10px;border:1px solid var(--rule);background:#fff;text-decoration:none}.archive-gallery>a:hover{border-color:var(--ink)}
.archive-gallery>a img{width:100%;height:164px;object-fit:contain}.archive-gallery.clients>a img{height:96px}.archive-gallery>a span{font-size:14px;margin-top:8px}
.scan-view{width:min(850px,94vw);max-height:92vh;color:var(--ink);border:0;padding:15px}.scan-view::backdrop{background:#101b27c9}
.scan-view>img{width:100%;height:auto;object-fit:contain;max-height:70vh}.scan-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}.scan-controls strong{margin-right:auto}.scan-controls button{cursor:pointer;background:#eef1ef;border:0;padding:8px 10px;color:var(--ink);font:inherit}
.scan-original{display:inline-block;margin-top:8px}.scope-scroll{overflow:auto;max-height:72vh;margin-top:24px;border:1px solid var(--rule);background:#fff}.scope-scroll table{border-collapse:separate;border-spacing:0;width:100%;min-width:1050px;font-size:14px}.scope-scroll :is(th,td){padding:10px;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);text-align:left;vertical-align:top}.scope-scroll th{position:sticky;top:0;background:var(--navy);color:white}
@media(max-width:720px){.search-menu .drop-panel{position:fixed;top:68px;left:12px;right:12px;width:auto}.actions{gap:12px}.scope-scroll{max-height:65vh}}
@media(max-width:400px){.mast-in{padding-inline:14px;gap:8px}.mast-in .brand{font-size:14px;gap:7px}.mast-in .brand img{width:36px;height:36px}.mast-in .actions{gap:9px}}
