/*
Theme Name: Agrotehservis
Theme URI: https://ats.ck.ua/
Author: SEOWORK
Author URI: https://seowork.in.ua/
Description: Легка функціональна тема для аграрної компанії ПрАТ «ЧОП „Агротехсервіс“» (група «Юнікорнс»). Авто-створення сторінок кампанії, cookie-банер зі згодою, Schema.org / Rank Math SEO, повна адаптивність, вимкнені коментарі та зайві віджети.
Version: 1.4.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agrotehservis
Tags: agriculture, business, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============ TOKENS ============ */
:root {
  --bg: #f6f1e7;
  --bg-alt: #efe7d6;
  --surface: #ffffff;
  --ink: #1f2a1c;
  --green-900: #1b2a18;
  --green-700: #2f4a28;
  --accent: #6f8f33;
  --accent-strong: #56751f;
  --gold: #c8923a;
  --earth: #8f5d3b;
  --muted: #6c7a64;
  --line: rgba(31, 42, 28, 0.10);
  --line-strong: rgba(31, 42, 28, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(27, 42, 24, 0.06);
  --shadow: 0 18px 50px -22px rgba(27, 42, 24, 0.30);
  --maxw: 1200px;
  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Sticky footer: main fills remaining height, footer pinned to bottom */
#content { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; color: var(--green-900); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.95rem; padding: 13px 24px; border-radius: 100px; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(86, 117, 31, .6); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--green-900); }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(246, 241, 231, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand .logo { width: 38px; height: 38px; flex: 0 0 auto; }
.brand .name { font-family: var(--ff-display); font-weight: 600; font-size: 1.08rem; color: var(--green-900); line-height: 1.05; }
.brand .name small { display: block; font-family: var(--ff-body); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 2px; }
.main-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.main-nav ul { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; flex-wrap: nowrap; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 0.9rem; position: relative; white-space: nowrap; }
.main-nav a:hover { color: var(--accent-strong); text-decoration: none; }
.main-nav .current-menu-item > a { color: var(--accent-strong); }
.header-cta { display: inline-flex; flex: 0 0 auto; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 9px; cursor: pointer; flex: 0 0 auto; }
.burger span { width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; transition: .3s; }

/* ============ HERO ============ */
.hero { position: relative; padding: 76px 0 88px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(700px 420px at 82% 0%, rgba(111, 143, 51, 0.16), transparent 60%), radial-gradient(560px 380px at 6% 92%, rgba(200, 146, 58, 0.12), transparent 60%); }
.hero-field { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 0; opacity: .5; background-image: repeating-linear-gradient(95deg, transparent 0 26px, rgba(47, 74, 40, 0.06) 26px 28px); mask-image: linear-gradient(180deg, transparent, #000); -webkit-mask-image: linear-gradient(180deg, transparent, #000); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.pill { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); padding: 8px 15px; border-radius: 100px; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 600px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 50px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; }
.hero-stats .s .n { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1; color: var(--green-900); }
.hero-stats .s .n span { color: var(--accent); }
.hero-stats .s .l { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 7px; }

/* ============ SECTIONS ============ */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* cards grid */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(111, 143, 51, 0.12); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 18px; }
.card h3 { font-size: 1.22rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px; }

/* stat strip */
.strip { background: var(--green-900); color: #eef3e9; border-radius: 22px; padding: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip .s .n { font-family: var(--ff-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; line-height: 1; }
.strip .s .n span { color: var(--gold); }
.strip .s .l { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(238, 243, 233, 0.7); margin-top: 8px; font-weight: 600; }

/* split */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.pline { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.pline:last-child { border-bottom: 0; padding-bottom: 0; }
.pline .i { color: var(--accent); flex: 0 0 auto; }
.pline b { display: block; font-family: var(--ff-display); font-weight: 600; }
.pline span { color: var(--muted); font-size: 0.93rem; }

/* fleet */
.fleet-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.fleet-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fleet-media { aspect-ratio: 16/10; background: linear-gradient(150deg, #e9e1cf, #f3eddf); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.fleet-media svg { width: 62%; opacity: .8; }
.fleet-cap { padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; }
.fleet-cap b { font-family: var(--ff-display); font-weight: 600; }
.fleet-cap span { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }

/* grain purchase banner */
.grain { display: grid; grid-template-columns: 1.05fr 0.95fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.grain-body { padding: 40px; }
.grain-crops { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.grain-crops span { background: rgba(111, 143, 51, 0.12); color: var(--accent-strong); border: 1px solid var(--line); padding: 8px 16px; border-radius: 100px; font-weight: 700; font-size: 0.9rem; }
.grain-media { background: #1b2a18; min-height: 300px; }
.grain-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* vacancies */
.vac-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vac-tags span { background: rgba(111, 143, 51, 0.12); color: var(--accent-strong); border: 1px solid var(--line); padding: 7px 14px; border-radius: 100px; font-weight: 700; font-size: 0.86rem; }
.vac-urgent { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #1b2a18; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: 14px; }

/* careers template */
.vac-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 48px 44px; background: linear-gradient(150deg, var(--green-900), var(--green-700)); color: #eef3e9; margin-bottom: 22px; }
.vac-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 146, 58, 0.28), transparent 70%); }
.vac-hero > * { position: relative; z-index: 2; }
.vac-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: 14px; }
.vac-hero p { color: rgba(238, 243, 233, 0.85); max-width: 640px; font-size: 1.08rem; }
.vac-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.vac-perk { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.vac-perk .pi { font-size: 1.5rem; line-height: 1; display: block; margin-bottom: 8px; }
.vac-perk b { display: block; font-family: var(--ff-display); font-weight: 600; margin-bottom: 3px; }
.vac-perk span { color: var(--muted); font-size: 0.9rem; }
.vac-gh { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); margin: 8px 0 14px; }
.vac-role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.vac-role { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.vac-role:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.vac-role b { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 5px; }
.vac-role span { color: var(--muted); font-size: 0.92rem; }
.vac-offer { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px; margin-bottom: 22px; }
.vac-offer h2 { font-size: 1.4rem; margin-bottom: 14px; }
.vac-offer ul { margin: 0; padding-left: 1.15em; }
.vac-offer li { margin: 8px 0; }
.vac-cta { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; background: var(--green-900); color: #eef3e9; border-radius: 18px; padding: 28px 32px; }
.vac-cta .ci { font-size: 1.05rem; font-weight: 700; }
.vac-cta .ci a { color: var(--gold); }
.vac-cta .btn { margin-left: auto; }
@media (max-width: 900px) { .vac-perks { grid-template-columns: repeat(2, 1fr); } .vac-role-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vac-hero { padding: 32px 24px; } .vac-perks, .vac-role-cards { grid-template-columns: 1fr; } .vac-cta .btn { margin-left: 0; width: 100%; justify-content: center; } }

/* CTA pai */
.pai { position: relative; overflow: hidden; border-radius: 24px; background: linear-gradient(150deg, var(--green-900), var(--green-700)); color: #eef3e9; padding: 46px; }
.pai::after { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 146, 58, 0.30), transparent 70%); }
.pai-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; }
.pai h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.pai p { color: rgba(238, 243, 233, 0.82); margin-bottom: 22px; }
.guar { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.guar li { display: flex; gap: 11px; align-items: flex-start; }
.guar li svg { color: var(--gold); flex: 0 0 auto; margin-top: 3px; }
.pai-box { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 26px; align-self: start; backdrop-filter: blur(6px); }
.pai-box .ct { font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(238, 243, 233, 0.6); font-weight: 700; }
.pai-box .who { font-family: var(--ff-display); font-size: 1.4rem; color: #fff; margin: 6px 0; }
.pai-box .tel { display: block; font-size: 1.3rem; font-weight: 800; color: var(--gold); margin: 12px 0 18px; }
.pai-box .tel:hover { text-decoration: none; }

/* group */
.gcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: transform .3s, box-shadow .3s; }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gcard .gk { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.gcard h3 { font-size: 1.45rem; }
.gcard p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }

/* contacts / requisites */
.req-list { display: grid; gap: 2px; }
.req-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.req-row:last-child { border-bottom: 0; }
.req-row .k { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; flex: 0 0 auto; padding-top: 2px; }
.req-row .v { text-align: right; font-weight: 700; }

/* form */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-family: var(--ff-body); font-size: 0.96rem; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111, 143, 51, 0.15); }

/* ============ PAGE / EDITOR CONTENT ============ */
.page-hero { padding: 56px 0 26px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.breadcrumbs { font-size: 0.84rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.entry { padding: 50px 0 70px; }
.entry-content { max-width: 820px; margin: 0 auto; font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content > p:first-of-type { font-size: 1.18rem; color: var(--green-700); }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.9em; }
.entry-content h3 { font-size: 1.32rem; margin-top: 1.5em; color: var(--accent-strong); }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ol { padding-left: 1.4em; }
.entry-content ul li { position: relative; padding-left: 30px; margin: 10px 0; }
.entry-content ul li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.entry-content ol li { margin: 8px 0; }
.entry-content a { color: var(--accent-strong); text-decoration: underline; }
.entry-content strong { color: var(--green-900); }
.entry-content blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; color: var(--muted); font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .wp-block-image figure, .entry-content figure { margin: 1.4em 0; }
/* Core button block → theme style */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.entry-content .wp-block-button__link, .entry-content .wp-element-button {
  background: var(--accent); color: #fff; border-radius: 100px; padding: 13px 26px;
  font-weight: 700; text-decoration: none; display: inline-block; transition: background .2s, transform .2s;
}
.entry-content .wp-block-button__link:hover { background: var(--accent-strong); transform: translateY(-2px); color: #fff; }
/* Core columns spacing */
.entry-content .wp-block-columns { gap: 22px; margin: 1.4em 0; }
.entry-content .wp-block-group.has-background, .entry-content .wp-block-group.is-style-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface);
}

/* ============ FOOTER ============ */
.site-footer { background: var(--green-900); color: rgba(238, 243, 233, 0.78); padding: 56px 0 30px; margin-top: 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer h4 { color: #fff; font-family: var(--ff-display); font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: rgba(238, 243, 233, 0.78); }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 0.84rem; }
.footer-bottom .legal a { margin-left: 16px; }

/* ============ COOKIE BANNER ============ */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 760px; margin: 0 auto; background: var(--green-900); color: #eef3e9; border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.5); display: none; }
.cookie-banner.show { display: block; animation: cb-up .4s ease; }
@keyframes cb-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner p { font-size: 0.92rem; margin-bottom: 16px; color: rgba(238, 243, 233, 0.88); }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: 0.88rem; }

/* ============ 404 / SEARCH ============ */
.notfound { padding: 90px 0; text-align: center; }
.notfound .code { font-family: var(--ff-display); font-size: clamp(4rem, 14vw, 9rem); color: var(--accent); line-height: 1; }
.search-form { display: flex; gap: 8px; max-width: 420px; margin: 20px auto 0; }
.search-form input { flex: 1; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ WP CORE ============ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100000; }
.skip-link:focus { left: 12px; top: 12px; }
.aligncenter { margin-inline: auto; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .pai-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 0.86rem; }
}
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .main-nav.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 22px; }
  .main-nav.open ul { flex-direction: column; gap: 16px; align-items: flex-start; }
  .main-nav.open a { font-size: 1rem; }
  .grid-3, .grid-2, .strip { grid-template-columns: 1fr; }
  .strip { gap: 22px; }
  .grain { grid-template-columns: 1fr; }
  .grain-body { padding: 28px 22px; }
  .grain-media { min-height: 220px; order: -1; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .pai, .strip { padding: 30px 22px; }
  .req-row { flex-direction: column; gap: 4px; }
  .req-row .v { text-align: left; }
}
