/*
Theme Name: VLG-PS Archive Restore
Theme URI: https://vlg-ps.ru/
Description: Воссоздание сайта ООО «Волгоградполимерсбыт» по снимку Wayback Machine от 25.04.2025. Независимая тема без Elementor.
Version: 1.2.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: vlg-ps-restore
License: GPL-2.0-or-later
*/
:root{--green:#009900;--grey:#eee;--ink:#151515;--max:1140px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:18px}body{margin:0;color:var(--ink);font:400 17px/1.65 Montserrat,Arial,sans-serif;background:#fff}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible{outline:2px solid #224edd;outline-offset:4px}img{max-width:100%;height:auto;vertical-align:middle}.vlg-wrap{max-width:var(--max);padding-inline:15px;margin-inline:auto}.skip-link{position:absolute;left:8px;top:-200px;z-index:10;background:#fff;padding:10px}.skip-link:focus{top:8px}.vlg-header{background:#fff}.vlg-header .vlg-wrap{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.vlg-nav,.vlg-phones{display:flex;align-items:center;gap:31px;flex-wrap:wrap}.vlg-phones a{font-size:15px;white-space:nowrap}.vlg-icon{width:1em;height:1em;fill:currentColor;display:inline-block;vertical-align:-.08em;margin-right:5px}.vlg-hero{background-color:#008600;background-position:center;background-size:cover;padding:50px 0;color:#fff;text-align:center}.vlg-hero.has-photo{background-image:linear-gradient(#00990080,#00990080),var(--hero-url);background-attachment:scroll}.vlg-hero h1{font-size:39px;line-height:1.4;margin:0;font-weight:600;text-transform:uppercase;overflow-wrap:anywhere}.vlg-section-title{padding:60px 0 40px;text-align:center}.vlg-section-title h2,.vlg-contacts h2{font-size:35px;font-weight:600;line-height:1.3;text-transform:uppercase;margin:0 0 20px}.vlg-product{padding:60px 0;background:#eee}.vlg-product:nth-of-type(even){background:#fff}.vlg-product.vlg-light{background:#fff}.vlg-product.vlg-grey{background:#eee}.vlg-product .vlg-wrap{display:grid;grid-template-columns:27% 33.333% 33.333%;justify-content:space-between;align-items:stretch}.vlg-product .vlg-gallery{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:18px;padding-right:10px}.vlg-gallery .vlg-photo{width:84%}.vlg-product.vlg-light .vlg-gallery{align-items:center;justify-content:flex-start}.vlg-product.vlg-light .vlg-gallery .vlg-photo,.vlg-product.vlg-pvc .vlg-gallery .vlg-photo{width:63%}.vlg-panel{background:white;padding:30px;min-width:0}.vlg-light .vlg-panel{background:#eee}.vlg-panel h3{margin:0 0 20px;font-size:21px;line-height:1.3;font-weight:600;text-transform:uppercase;overflow-wrap:anywhere}.vlg-panel h3:not(:first-child){margin-top:30px}.vlg-items{margin:0;padding:0;list-style:none;display:grid;gap:20px}.vlg-item{display:flex;align-items:center;gap:10px;line-height:1.35;min-width:0}.vlg-check{flex:0 0 30px;height:30px;border:2px solid #c51f26;color:#c51f26;border-radius:50%;display:grid;place-items:center;font-size:19px;font-weight:600}.vlg-light .vlg-check{color:#008600;border-color:#008600}.vlg-item-name{overflow-wrap:anywhere}.vlg-dots{flex:1;min-width:8px;border-bottom:1px dotted #224edd;align-self:center}.vlg-doc{background:#dcdcdc;color:#000;font-size:15px;padding:5px;flex:none}.vlg-doc.missing{color:#545454;background:#e6e6e6;cursor:default}.vlg-doc.available:hover{background:#ccc}.vlg-delivery-grid{display:grid;grid-template-columns:44% 48%;align-items:center;justify-content:space-between;gap:15px 0}.vlg-delivery-grid p{margin:0;font-weight:600;overflow-wrap:anywhere}.vlg-delivery-grid hr{grid-column:1/-1;width:100%;height:1px;border:0;background:#fe0000;margin:10px 0}.vlg-light .vlg-delivery-grid hr{background:#009900}.vlg-photo{margin:0;display:block;width:100%;height:auto;object-fit:contain}.vlg-photo.placeholder{display:grid;place-items:center;background:rgba(255,255,255,.62);border:1px dashed #b5b5b5;min-height:90px;padding:12px;color:#666;font-size:12px;text-align:center;line-height:1.3;aspect-ratio:4/3}.vlg-contacts{text-align:center;padding:60px 0 50px}.vlg-contact-links{display:flex;flex-wrap:wrap;justify-content:center;gap:25px 50px;font-size:26px}.vlg-contact-links a{overflow-wrap:anywhere}.vlg-contact-links .vlg-icon{color:#009900}.vlg-footer{padding:24px 0;background:#eee;text-align:center;font-size:15px}.vlg-top{position:fixed;bottom:15px;right:15px;display:grid;place-items:center;width:42px;height:42px;background:#008600;color:#fff;border-radius:2px;font-size:22px;z-index:5}.vlg-page{padding:45px 15px;min-height:50vh}.vlg-page h1{line-height:1.3}.vlg-page a{text-decoration:underline}.vlg-page .alignwide{max-width:100%}.vlg-pvc .vlg-gallery{align-items:center}.vlg-delivery-grid .full{grid-column:1/-1}.vlg-delivery-grid .full.vlg-photo{max-width:70%}.vlg-pvc .vlg-delivery-grid .vlg-photo{max-width:100%}@media(max-width:1024px){.vlg-hero.has-photo{background-attachment:scroll}.vlg-panel{padding:20px}.vlg-product .vlg-wrap{grid-template-columns:22% 37% 37%}.vlg-item{gap:7px}.vlg-check{flex-basis:24px;height:24px;font-size:14px}.vlg-contact-links{font-size:21px}}@media(max-width:767px){.vlg-header .vlg-wrap{padding-block:13px;gap:10px;justify-content:center}.vlg-nav,.vlg-phones{justify-content:center;gap:8px 20px;width:100%}.vlg-phones a{font-size:14px}.vlg-hero{padding:50px 0}.vlg-hero h1{font-size:19px}.vlg-section-title{padding:30px 0}.vlg-section-title h2,.vlg-contacts h2{font-size:27px;margin-bottom:10px}.vlg-product{padding:30px 0}.vlg-product .vlg-wrap{grid-template-columns:1fr;gap:20px;padding-inline:10px}.vlg-product .vlg-gallery{display:none}.vlg-panel h3{font-size:19px}.vlg-contacts{padding:30px 0}.vlg-contact-links{font-size:19px;flex-direction:column;gap:12px}.vlg-delivery-grid{grid-template-columns:40% 54%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.vlg-delivery-grid.text-only{grid-template-columns:1fr}.vlg-delivery-grid.text-only p{font-size:18px;line-height:1.45}.vlg-product.vlg-mixed .vlg-gallery,.vlg-product.vlg-magnesium .vlg-gallery,.vlg-product.vlg-oil .vlg-gallery,.vlg-product.vlg-hypo .vlg-gallery{align-items:center}.vlg-product.vlg-mixed .vlg-gallery .vlg-photo,.vlg-product.vlg-magnesium .vlg-gallery .vlg-photo,.vlg-product.vlg-oil .vlg-gallery .vlg-photo,.vlg-product.vlg-hypo .vlg-gallery .vlg-photo{width:70%}@media(max-width:767px){.vlg-delivery-grid.text-only p{font-size:16px}}

/* 1.2.4: single-photo product sections, delivery photo in the right column */
.vlg-product.vlg-two-column .vlg-wrap{grid-template-columns:63.666% 33.333%}
.vlg-delivery-grid.vlg-delivery-photo{grid-template-columns:1fr;justify-items:start}
.vlg-delivery-photo .vlg-photo{width:auto;max-width:100%;max-height:270px;object-fit:contain}
@media(max-width:1024px){.vlg-product.vlg-two-column .vlg-wrap{grid-template-columns:59% 37%}}
@media(max-width:767px){.vlg-product.vlg-two-column .vlg-wrap{grid-template-columns:1fr}.vlg-delivery-photo .vlg-photo{max-height:240px}}

/* Keep both requested images visible on small screens in new sections. */
@media(max-width:767px){.vlg-product.vlg-magnesium .vlg-gallery,.vlg-product.vlg-hypo .vlg-gallery{display:flex;padding:0;align-items:center}.vlg-product.vlg-magnesium .vlg-gallery .vlg-photo,.vlg-product.vlg-hypo .vlg-gallery .vlg-photo{width:auto;max-width:85%;max-height:260px;object-fit:contain}}
.vlg-main{display:block;width:100%;margin:0;padding:0}.vlg-panel,.vlg-gallery{min-width:0}.vlg-delivery-grid .vlg-photo{max-height:270px;object-fit:contain}.vlg-doc.available{cursor:pointer}.vlg-doc.available:hover{outline:1px solid #444}

/* 1.2.4: customer revisions. */
.vlg-header-contact{display:flex;align-items:center;gap:26px;margin-left:auto}
.vlg-header .vlg-phones{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:auto}
.vlg-site-link{font-size:15px;font-weight:600;color:#176b27;white-space:nowrap;border-left:1px solid #d5dfd6;padding-left:22px}
.vlg-hero.has-photo{background-image:linear-gradient(rgba(0,75,18,.78),rgba(0,75,18,.78)),var(--hero-url)}
.vlg-hero h1{line-height:1.3}
.vlg-company,.vlg-tagline,.vlg-location{display:block}
.vlg-company{font-size:clamp(23px,3.8vw,48px);font-weight:750;line-height:1.18;margin-bottom:14px;letter-spacing:-.02em;color:#fff;text-shadow:0 2px 6px #00310d88}
.vlg-tagline,.vlg-location{font-size:clamp(17px,2.4vw,30px);font-weight:600}
.vlg-location{margin-top:5px}
.vlg-delivery-line{white-space:nowrap}
.vlg-doc.missing{font-size:11px;line-height:1.2;color:#555;background:#e6e6e6;cursor:pointer;white-space:normal;max-width:70px;text-align:center;padding:5px 6px}
.vlg-doc.missing:hover{background:#d6d6d6}
@media(max-width:767px){.vlg-header-contact{width:100%;margin-left:0;justify-content:center;gap:15px;flex-wrap:wrap}.vlg-site-link{font-size:14px;padding-left:13px}.vlg-hero{padding:38px 0}.vlg-company{font-size:clamp(20px,5.4vw,30px);margin-bottom:13px}.vlg-tagline,.vlg-location{font-size:17px}.vlg-doc.missing{font-size:11px}}
.vlg-location{text-transform:none}
