/* ВАТР — основная таблица стилей */
:root {
	--green: #3db56e;
	--green-dark: #1e9f55;
	--lime: #a3cf3d;
	--yellow: #f1d000;
	--ink: #181c1b;
	--text: #313835;
	--slate: #474f4f;
	--muted: #8d9691;
	--line: #e8e8e8;
	--bg: #ffffff;
	--bg-alt: #f5f5f5;
	--radius: 6px;
	--wrap: 1200px;
	--font: "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	font: 400 17px/1.65 var(--font);
	color: var(--text);
	background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lime); }
h1, h2, h3, h4, h5, h6 { color: var(--slate); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .85em 1.6em; border-radius: var(--radius);
	background: var(--green); color: #fff; font-weight: 700; font-size: .92rem;
	letter-spacing: .05em; text-transform: uppercase;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--lime); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.btn-ghost { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--green-dark); }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--slate); color: #dfe5e2; font-size: .9rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: #dfe5e2; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--lime); }
.topbar-btn { font-weight: 600; }
.topbar-contacts { display: flex; gap: 24px; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(24,28,27,.08); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand { display: flex; align-items: flex-end; gap: 14px; }
.brand img, .brand .custom-logo { height: 72px; width: auto; transition: height .25s; }
.site-header.is-stuck .brand img { height: 52px; }
.brand-tag {
	font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark);
	padding-left: 14px; border-left: 2px solid var(--lime); line-height: 1.25; max-width: 9em;
	margin-bottom: 7px; /* нижний край совпадает с базовой линией букв «ВАТР» в логотипе */
}
.site-header.is-stuck .brand-tag { margin-bottom: 5px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav .menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a, .nav-home {
	display: inline-flex; align-items: center; gap: .4em;
	padding: 10px 14px; color: var(--text); font-weight: 500; border-radius: var(--radius);
	position: relative;
}
.site-nav a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .nav-home.is-current { color: var(--green-dark); }
.site-nav a:hover::after, .site-nav .current-menu-item > a::after, .nav-home.is-current::after { transform: scaleX(1); }
.site-nav .menu-item-has-children > a { padding-right: 26px; }
.site-nav .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
	border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.site-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px;
	background: #fff; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(24,28,27,.14);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { display: block; padding: 9px 12px; }
.site-nav .sub-menu a::after { display: none; }
.site-nav .sub-menu a:hover { background: var(--bg-alt); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: var(--slate); margin: 5px 0; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Главный экран ---------- */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background: var(--green) var(--img) right center / cover no-repeat;
}
.hero-in { min-height: clamp(380px, 56vh, 560px); display: flex; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero-text { max-width: 620px; }
.hero-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero-title { color: #fff; font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: .3em; }
.hero-lead { font-size: 1.15rem; opacity: .95; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn { background: #fff; color: var(--green-dark); }
.hero .btn:hover { background: var(--yellow); color: var(--ink); }
.hero .btn-ghost { background: transparent; color: #fff; }

/* ---------- Заголовок страницы ---------- */
.page-head { background: var(--bg-alt); padding: 48px 0 28px; }
.page-head h1 { margin: 0; }
.page-plain { padding-top: 40px; padding-bottom: 60px; }

/* ---------- Ряды и колонки (разметка страниц) ---------- */
.vr { position: relative; padding: 56px 0; }
.vr-h-small { padding: 32px 0; }
.vr-h-medium { padding: 64px 0; }
.vr-h-large { padding: 96px 0; }
.vr-h-huge { padding: 120px 0; }
.vr-h-full { min-height: 80vh; display: flex; align-items: center; }
.vr-h-full > .container { width: 100%; }
.vr + .vr:not(.vr-bg) { padding-top: 0; }
.vr-bg { background: var(--green) var(--img) center / cover no-repeat; color: #fff; padding: 72px 0; }
.vr.vr-bg + .vr { padding-top: 64px; }
.vr-bg h1, .vr-bg h2, .vr-bg h3, .vr-bg h4, .vr-bg a { color: #fff; }
.vr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 40px; align-items: start; }
.vr-vcenter .vr-grid { align-items: center; }
.vc { grid-column: span 12; min-width: 0; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; } .span-9 { grid-column: span 9; } .span-10 { grid-column: span 10; }
.vr-bg .vc-empty { min-height: 1px; }
.vc > * + * { margin-top: 14px; }

.rich { overflow-wrap: anywhere; }
.rich > :last-child { margin-bottom: 0; }
.rich ul { list-style: none; padding: 0; margin: 0 0 1em; }
.rich ul li { position: relative; padding-left: 30px; margin: 0 0 .55em; }
.rich ul li::before {
	content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
	background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.vr-bg .rich ul li::before { background-color: rgba(255,255,255,.28); }
.rich table { width: 100% !important; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.rich tr:first-child td { background: var(--bg-alt); }

.txt { margin: 0; }
h1.txt, h2.txt, h3.txt, h4.txt, h5.txt, h6.txt { margin: 0 0 .7em; }
.rich h4 { margin-top: .4em; }
.rich ul + h4, .rich p + h4 { margin-top: 1.2em; }
.vc > .sep + * { margin-top: 0; }
.txt-icon { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; }
.txt-icon .ico { margin-top: .3em; width: 18px; height: 18px; color: var(--lime); }
.vr-bg .txt-icon .ico { color: var(--yellow); }
.txt-icon a { display: inline-flex; gap: 10px; }

.pic { margin: 0; }
.pic img { border-radius: var(--radius); width: 100%; }
.pic a { display: block; overflow: hidden; border-radius: var(--radius); }
.pic a img { transition: transform .4s; }
.pic a:hover img { transform: scale(1.04); }
.span-3 .pic + .txt { text-align: center; font-weight: 600; margin-top: 12px; }

.sep { height: 24px; }
.sep-small { height: 16px; } .sep-medium { height: 32px; } .sep-large { height: 56px; } .sep-huge { height: 80px; }

/* Преимущества */
.benefit {
	display: flex; gap: 16px; align-items: center; padding: 16px 18px; margin: 0 0 12px;
	background: var(--bg-alt); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0;
	font-weight: 500;
}
.benefit-num {
	flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--green); color: #fff; font-weight: 700;
}

/* Карусель культур */
.carousel { position: relative; }
.carousel-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 12px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; margin: 0 !important; }
.carousel-track .pic a { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.carousel-btn {
	position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -29px; border: 0; border-radius: 50%;
	background: #fff; color: var(--green-dark); box-shadow: 0 6px 18px rgba(0,0,0,.18); cursor: pointer; display: grid; place-items: center;
}
.carousel-btn:hover { background: var(--green); color: #fff; }
.carousel-btn .ico { width: 22px; height: 22px; }
.carousel-btn.prev { left: -18px; } .carousel-btn.prev .ico { transform: rotate(180deg); }
.carousel-btn.next { right: -18px; }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }

/* Список записей */
.list { padding-top: 40px; padding-bottom: 60px; display: grid; gap: 24px; }
.card { display: grid; grid-template-columns: 240px 1fr; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.card-title { font-size: 1.3rem; }

/* 404 */
.notfound { text-align: center; padding: 100px 20px; }
.notfound-code { font-size: 6rem; font-weight: 700; color: var(--lime); line-height: 1; margin: 0 0 10px; }

/* ---------- Подвал ---------- */
.site-footer { color: #cfd6d3; margin-top: 40px; }
.footer-land { height: clamp(90px, 17vw, 330px); background: var(--img) center bottom / cover no-repeat; }
.footer-body { background: var(--slate); padding: 44px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 32px; align-items: start; }
.footer-logo { font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: .06em; }
.footer-addr { font-size: .92rem; margin-top: 10px; color: var(--muted); }
.menu-footer { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lime); }
.footer-contacts { display: grid; gap: 10px; justify-items: end; }
.footer-contacts a { display: inline-flex; gap: 10px; align-items: center; }
.footer-copy { border-top: 1px solid #5a6363; margin-top: 32px; padding-top: 18px; font-size: .85rem; color: var(--muted); }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 4px; }
.lightbox button { position: absolute; top: 14px; right: 18px; font-size: 40px; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
	.carousel-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
	.span-3 { grid-column: span 6; }
	.span-9 { grid-column: span 12; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
		background: #fff; padding: 10px 20px 20px; box-shadow: 0 16px 30px rgba(0,0,0,.12); max-height: calc(100vh - 80px); overflow-y: auto;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav a, .nav-home { width: 100%; padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav a::after, .site-nav .menu-item-has-children > a::before { display: none; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.header-in { min-height: 76px; }
	.brand img { height: 54px; }
	.vr-grid { gap: 24px; }
	.span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
	.vr-bg .vc-empty { display: none; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-contacts { justify-items: start; }
	.card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.topbar-btn span { display: none; }
	.topbar-contacts { gap: 14px; }
	.topbar-contacts a:last-child span { display: none; }
	.brand-tag { display: none; }
	.vr { padding: 36px 0; }
	.vr-bg { padding: 48px 0; }
	.span-3 { grid-column: span 12; }
	.carousel-track { grid-auto-columns: 78%; }
	.carousel-btn { display: none; }
	.hero-in { padding-top: 44px; padding-bottom: 44px; }
	.hero { background-position: 70% center; }
}
