/*
Theme Name: Лексмиль — канистры
Theme URI: https://lexmil.by/
Author: ATAS
Description: Одностраничная тема для продажи стальных канистр 10 и 20 литров в Минске.
Version: 1.2.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lexmil-canisters
*/

:root {
  --ink: #17221d;
  --muted: #64716a;
  --green: #173f32;
  --green-2: #286550;
  --paper: #ffffff;
  --soft: #f2f4ef;
  --line: #dfe4dd;
  --cream: #f6f5ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246,245,239,.94); border-bottom: 1px solid rgba(23,63,50,.09); backdrop-filter: blur(15px); }
.admin-bar .site-header { top: 32px; }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { display: flex; width: 118px; height: 58px; align-items: center; overflow: hidden; }
.logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.header-links { display: flex; align-items: center; gap: 34px; }
.header-links a { font-weight: 800; font-size: 16px; line-height: 1.2; }
.header-links .contact-button { padding: 13px 18px; background: var(--green); color: white; border-radius: 12px; transition: .2s ease; }
.header-links .contact-button:hover { background: var(--green-2); translate: 0 -1px; }
.header-links .link-label { display: block; margin-bottom: 5px; color: #bcd0c7; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

.hero { display: grid; grid-template-columns: 1.06fr .94fr; gap: 22px; padding-top: 34px; padding-bottom: 62px; }
.gallery, .product-copy { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.gallery { padding: 18px; }
.main-photo { position: relative; height: 570px; overflow: hidden; border-radius: 17px; background: #f8f9f7; }
.main-photo > img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.gallery-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.94); color: var(--green); font-size: 22px; cursor: pointer; box-shadow: 0 8px 24px rgba(24,63,50,.12); transition: .2s ease; }
.gallery-arrow:hover { background: var(--green); color: white; }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
.photo-count { position: absolute; right: 17px; bottom: 14px; padding: 7px 11px; border-radius: 20px; background: rgba(23,34,29,.77); color: white; font-size: 12px; font-weight: 800; }
.thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumbnail { height: 88px; padding: 0; border: 2px solid transparent; border-radius: 13px; overflow: hidden; background: white; cursor: pointer; }
.thumbnail.active { border-color: var(--green-2); }
.thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }

.product-copy { display: flex; flex-direction: column; padding: clamp(30px, 4vw, 54px); }
.availability { display: flex; align-items: center; gap: 9px; color: #367358; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.availability i { width: 9px; height: 9px; border-radius: 50%; background: #4d9d74; box-shadow: 0 0 0 5px #e6f2e9; }
h1 { margin: 24px 0 17px; font-size: clamp(42px, 5vw, 65px); line-height: .96; letter-spacing: -.055em; }
h1 span { color: var(--green-2); }
.lead { margin: 0 0 26px; max-width: 50ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.field-label { display: block; margin-bottom: 8px; color: #758078; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.choice-block { margin-top: auto; }
.volume-switch { display: flex; width: max-content; padding: 5px; gap: 4px; border-radius: 13px; background: var(--soft); }
.volume-switch button { padding: 11px 22px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 900; cursor: pointer; }
.volume-switch button.active { background: white; color: var(--green); box-shadow: 0 3px 10px rgba(27,60,48,.1); }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price { font-size: 48px; font-weight: 950; line-height: 1; letter-spacing: -.05em; }
.price small { font-size: 17px; letter-spacing: 0; }
.sku { text-align: right; }
.sku span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.buy-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin-top: 22px; }
.quantity { height: 52px; display: grid; grid-template-columns: 44px 1fr 44px; overflow: hidden; border: 1px solid #ccd4cd; border-radius: 12px; }
.quantity button { border: 0; background: var(--soft); color: var(--green); font-size: 22px; cursor: pointer; }
.quantity-input { width: 100%; min-width: 0; border: 0; border-inline: 1px solid #e3e7e2; border-radius: 0; background: white; color: var(--ink); text-align: center; font-weight: 900; outline: none; appearance: textfield; }
.quantity-input::-webkit-inner-spin-button, .quantity-input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-input:focus { box-shadow: inset 0 0 0 2px rgba(40,101,80,.22); }
.total-wrap strong { height: 52px; display: flex; align-items: center; padding: 0 17px; border-radius: 12px; background: var(--soft); font-size: 20px; }
.order-form { margin-top: 16px; }
.order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-fields label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.order-fields input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #ccd4cd; border-radius: 12px; background: white; color: var(--ink); outline: none; }
.order-fields input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(40,101,80,.12); }
.order-summary { margin: 10px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.order-button { width: 100%; height: 56px; display: grid; place-items: center; margin-top: 10px; border: 0; border-radius: 13px; background: var(--green); color: white; font-weight: 900; cursor: pointer; transition: .2s ease; }
.order-button:hover { background: var(--green-2); translate: 0 -1px; }
.order-button:disabled { cursor: wait; opacity: .7; }
.form-message { display: none; margin: 10px 0 0; padding: 11px 13px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.form-message.success, .form-message.error { display: block; }
.form-message.success { background: #e6f2e9; color: #2f7356; }
.form-message.error { background: #f7e8e6; color: #9b352c; }
.business-only { display: flex; align-items: center; gap: 11px; margin: 16px 0 0; padding: 13px 15px; border: 1px solid #cde2d5; border-radius: 12px; background: #edf6f0; color: var(--green); font-size: 16px; line-height: 1.25; }
.business-only strong { font-weight: 950; }
.business-only::before { content: "✓"; flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--green-2); color: white; font-weight: 900; }

.spec-section { padding: 76px 0; background: var(--green); color: white; }
.section-heading span, .eyebrow { display: block; margin-bottom: 12px; color: #9fbcaf; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.section-heading h2, .contact-card h2 { margin: 0 0 32px; font-size: clamp(36px, 4.5vw, 54px); line-height: 1; letter-spacing: -.045em; }
.spec-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; }
.description-card, .spec-list { border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.055); }
.description-card { padding: 34px; }
.description-card > p { margin: 0; max-width: 57ch; color: #d9e3de; font-size: 16px; line-height: 1.72; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 42px; }
.feature-row div { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.16); }
.feature-row b, .feature-row span { display: block; }
.feature-row b { margin-bottom: 6px; font-size: 18px; }
.feature-row span { color: #aebfb7; font-size: 12px; }
.spec-list { margin: 0; padding: 22px 30px; }
.spec-list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: #aebfb7; }
.spec-list dd { margin: 0; text-align: right; font-weight: 900; }

.seo-section { padding: 68px 0; background: #e9ede6; }
.seo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.seo-section .eyebrow { color: var(--green-2); }
.seo-section h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.03; letter-spacing: -.045em; }
.seo-section p { margin: 0; color: #526057; font-size: 17px; line-height: 1.75; }

.contact-section { padding: 76px 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border-radius: 24px; background: white; border: 1px solid var(--line); }
.contact-card { padding: 44px; }
.contact-card .eyebrow { color: var(--green-2); }
.contact-card h2 { margin-bottom: 8px; font-size: clamp(29px, 3.2vw, 40px); letter-spacing: -.035em; white-space: nowrap; }
.contact-intro { margin: 0 0 28px; color: var(--muted); }
.contact-list { display: grid; gap: 16px; }
.contact-list a small, .warehouse small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a b { font-size: 17px; }
.warehouse { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.warehouse p { margin: 5px 0 7px; font-weight: 850; line-height: 1.45; }
.warehouse span { color: var(--green-2); font-size: 13px; font-weight: 900; }
.map-wrap { position: relative; min-height: 510px; background: #dce3dc; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 510px; border: 0; display: block; }

footer { padding: 28px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 26px; }
.footer-company { flex: 0 0 auto; white-space: nowrap; font-size: clamp(9px, 2.7vw, 12px); }
.site-credit { margin-top: 14px; text-align: center; font-size: 11px; color: #7b867f; }
.site-credit a { color: var(--green-2); font-weight: 900; }
.site-credit a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .main-photo { height: 510px; }
  .choice-block { margin-top: 0; }
  .spec-grid, .contact-grid, .seo-grid { grid-template-columns: 1fr; }
  .seo-grid { gap: 20px; }
  .map-wrap, .map-wrap iframe { min-height: 400px; }
}

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-inner { height: 76px; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 7px; }
  .logo { width: 68px; height: 44px; }
  .header-links { display: contents; }
  .header-links .link-label { display: none; }
  .header-links > a:first-child { min-width: 0; justify-self: center; padding: 10px 8px; font-size: 10px; letter-spacing: -.025em; white-space: nowrap; }
  .header-links .phone { justify-self: end; padding: 10px 9px; font-size: 12px; white-space: nowrap; }
  .hero { padding-top: 14px; padding-bottom: 42px; gap: 12px; }
  .gallery { padding: 10px; border-radius: 18px; }
  .main-photo { height: 355px; }
  .gallery-arrow { width: 40px; height: 40px; }
  .thumbnails { gap: 6px; margin-top: 7px; }
  .thumbnail { height: 62px; border-radius: 9px; }
  .product-copy { padding: 25px 21px; border-radius: 18px; }
  h1 { margin-top: 20px; font-size: 42px; }
  .lead { font-size: 15px; }
  .price-row { align-items: flex-start; }
  .price { font-size: 42px; }
  .buy-row { grid-template-columns: 125px 1fr; }
  .total-wrap strong { padding-inline: 12px; font-size: 18px; }
  .order-fields { grid-template-columns: 1fr; }
  .spec-section, .contact-section, .seo-section { padding: 54px 0; }
  .section-heading h2 { font-size: 38px; }
  .contact-card h2 { font-size: clamp(27px, 8.2vw, 34px); }
  .description-card { padding: 25px 21px; }
  .feature-row { grid-template-columns: 1fr; margin-top: 30px; }
  .spec-list { padding: 15px 21px; }
  .spec-list div { font-size: 14px; }
  .contact-card { padding: 30px 23px; }
  .map-wrap, .map-wrap iframe { min-height: 350px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}
