/* Unified styling for the home page, catalog sections, and model pages. */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/geologica-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/geologica-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/geologica-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/geologica-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/golos-text-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/golos-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ag-night: #101e17;
  --ag-forest: #172c20;
  --ag-lime: #deefa6;
  --ag-paper: #f4f4ea;
  --ag-line: #243b2629;
  --ag-gutter: clamp(20px, 4.5vw, 80px);
  --ag-control-font: "Golos Text", Manrope, Arial, sans-serif;
  --ag-display-font: Geologica, "Golos Text", Arial, sans-serif;
}

body.home-page,
body[data-category],
body.product-page {
  font-family: var(--ag-control-font);
}

:where(.home-page, body[data-category], .product-page) :is(h1, h2, h3, .home-task-copy strong) {
  font-family: var(--ag-display-font);
}

.home-page .header {
  padding-inline: var(--ag-gutter);
}
.header .brand.agro-lockup,
.top .brand.agro-lockup {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.brand.agro-lockup::before { content: none; }
.agro-lockup img {
  display: block;
  height: auto;
  filter: drop-shadow(0 2px 5px #08130dba);
}
.agro-lockup .agro-mark { width: clamp(38px, 4vw, 60px); }
.agro-lockup .agro-name {
  color: #f5f7eb;
  font-family: var(--ag-control-font);
  font-size: clamp(18px, 1.65vw, 29px);
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .012em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #08130dba;
  white-space: nowrap;
}
.home-page .header .agro-name {
  position: relative;
  text-shadow: 0 -1px 0 #fff9, 0 1px 0 #819671, 0 2px 0 #435a36,
    0 3px 0 #223823, 0 5px 9px #08130de8;
}
.home-page .header .agro-name::after {
  content: attr(data-reflection);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  text-shadow: none;
  background: linear-gradient(108deg, transparent 43%, #8de95c 48%, #e9ffd0 50%, #8de95c 52%, transparent 57%);
  background-size: 280% 100%;
  background-position: 110% center;
  background-clip: text;
  animation: agro-name-reflection 6s ease-in-out 1.1s infinite;
}
@keyframes agro-name-reflection {
  0%, 18% { background-position: 110% center; }
  48%, 100% { background-position: -10% center; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .header .agro-name::after { animation: none; }
}
.home-page .header .nav a {
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  text-shadow: 0 1px 8px #101e17;
}
.home-page .header .nav a:hover {
  border-color: var(--ag-lime);
  color: var(--ag-lime);
}
.home-page .header .phone,
.home-page .dawn .actions .btn:first-child {
  background: var(--ag-lime);
  color: var(--ag-night);
}
.home-page .header .phone,
.home-page .dawn .actions .btn {
  border-radius: 6px;
}
.home-page .dawn .actions .btn-outline {
  background: #101e1752;
  border-color: #f4f4ea88;
  color: #fff;
}
.home-page .dawn .actions .btn-outline:hover { background: #101e17de; }
.home-page .hero.dawn::after {
  background:
    radial-gradient(ellipse at bottom left, #000b, transparent 63%),
    linear-gradient(180deg, #0005, transparent 16%);
}
.home-page .hero.dawn, .home-page .dawn .dawn-scene { background-color: #141414; }
.home-page .dawn h1 em { color: var(--ag-lime); }
.home-page .dawn p { max-width: 41ch; }
.home-page .dawn .hero-foot { justify-content: flex-start; }
.home-page .dawn .hero-foot :is(a, button) {
  min-height: 44px;
  text-align: center;
}
.home-page .dawn .hero-foot a { display: inline-flex; align-items: center; }
.home-page .home-tasks {
  background: var(--ag-night);
}
.home-page .home-task + .home-task { border-inline-start: 1px solid #f4f4ea35; }
.home-page .home-task::before {
  background: linear-gradient(0deg, #0b1b14f5, #0b1b1466 40%, transparent 69%);
}
.home-page .home-task img {
  transition: transform .5s cubic-bezier(.2,.7,.25,1);
}
.home-page .home-task:focus-visible { outline-offset: -5px; z-index: 1; }
.home-page .home-task-copy {
  position: relative;
  padding: clamp(24px, 3.6vw, 64px);
  padding-inline-end: clamp(78px, 7vw, 108px);
  font-size: clamp(14px, 1.2vw, 17px);
  color: #f1f3e9;
}
.home-page .home-task-copy strong {
  color: #fff;
  font-size: clamp(28px, 3.1vw, 54px);
}
.home-page .home-task-copy strong span {
  position: absolute;
  inset-inline-end: clamp(24px, 3vw, 54px);
  inset-block-end: clamp(25px, 3.6vw, 64px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #f4f4ea77;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.home-page .home-task:is(:hover,:focus-visible) .home-task-copy strong span {
  background: var(--ag-lime);
  color: var(--ag-night);
  border-color: var(--ag-lime);
}
@media (hover:hover) {
  .home-page .home-task:hover img { transform: scale(1.045); }
}

.home-page .home-tasks + .precision {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(56px, 8vw, 128px) var(--ag-gutter);
  background: var(--ag-night);
  color: var(--ag-paper);
}
.home-page .precision .precision-media { margin: 0; }
.home-page .precision .precision-media img { border-radius: 6px; box-shadow: none; }
.home-page .precision .precision-note { color: #bec9bd; }
.home-page .precision .section-tag { color: var(--ag-lime); }
.home-page .precision .precision-copy h2 { text-wrap: balance; }
.home-page .precision .precision-copy p { color: #d6ddd2; }
.home-page .precision-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ag-lime);
}

.home-page #catalog,
body[data-category] main .catalog {
  background: #e9ecdf;
}
.home-page #catalog .catalog,
body[data-category] main .catalog {
  padding-inline: var(--ag-gutter);
}
.home-page #catalog .catalog-head {
  padding-block-end: 20px;
  border-bottom: 1px solid var(--ag-line);
}
.home-page #catalog-title { margin-block: 0; }
.home-page .catalog-brands {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: calc(-1 * var(--ag-gutter));
  background: var(--ag-night);
}
.home-page .catalog-brands .home-task { min-height: clamp(360px, 40vw, 640px); }
.home-page .catalog-brands .home-task-copy {
  padding: clamp(20px, 2.5vw, 42px);
  padding-inline-end: 70px;
}
.home-page .catalog-brands .home-task-copy strong { font-size: clamp(25px, 2.65vw, 44px); }
.home-page .catalog-brands .home-task-copy strong span {
  inset-inline-end: clamp(16px, 1.6vw, 28px);
  inset-block-end: clamp(20px, 2.5vw, 42px);
  width: 42px;
  height: 42px;
}
.home-page .catalog-brand--agroapollo {
  background: radial-gradient(ellipse at 50% 36%, #526a54, #152b21 76%);
}
.home-page .catalog-brand--agroapollo img {
  object-fit: contain;
  box-sizing: border-box;
  padding: 0 5% 22%;
}
.home-page .catalog-brand--sibzavodagro img { object-position: 26% center; }

@media (max-width: 1050px) {
  .home-page .catalog-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home-page .catalog-brands { grid-template-columns: 1fr; }
  .home-page .catalog-brands .home-task { min-height: clamp(320px, 87vw, 480px); }
}

.home-page #catalog .ag-result-count { margin-block: 18px 24px; }
.home-page #catalog .grid,
body[data-category] .products { gap: clamp(12px, 1.8vw, 28px); }
.home-page .category-card,
body[data-category] .catalog .product {
  border-radius: 10px;
  border: 1px solid var(--ag-line);
  background: var(--ag-paper);
  box-shadow: none;
}
.home-page .category-card:is(:hover,:focus-visible),
body[data-category] .catalog .product:hover {
  box-shadow: 0 12px 32px #15291b16;
}
.home-page .category-type { color: #426143; font-weight: 700; }
.home-page .category-more { border-color: var(--ag-line); }
body[data-category] .catalog .bar { border-bottom: 1px solid var(--ag-line); }
.product-gallery .visual { border-radius: 8px; }
.product-gallery .gallery-thumb { border-radius: 6px; }

.home-page .about {
  padding-inline: var(--ag-gutter);
}
.home-page .contact {
  background: var(--ag-forest);
  padding: clamp(64px, 8vw, 120px) var(--ag-gutter);
}
.home-page .contact-inner { max-width: 1600px; }
.home-page .contact .bigphone {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 16px 22px;
  border: 1px solid #d7e9af61;
  border-radius: 6px;
  color: var(--ag-lime);
}
.home-page .contact .bigphone:hover { background: #324833; }
.ag-footer {
  background: var(--ag-night);
  border-top: 1px solid #f4f4ea25;
}
.ag-tools .ag-contact-toggle,
.ag-tools .ag-up { border-radius: 6px; }

@media (max-width: 820px) {
  .home-page .hero.dawn::after {
    background: linear-gradient(180deg, #0009, transparent 20%, transparent 39%, #0009 68%, #000c);
  }
  .home-page .hero.dawn { height: auto; min-height: max(700px, 100svh); }
  .home-page .dawn .hero-content { padding-inline: var(--ag-gutter); }
  .home-page .dawn .hero-foot {
    position: static;
    margin: 0;
    padding-inline: var(--ag-gutter);
    gap: 8px;
  }
  .home-page .home-tasks + .precision { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .header .brand.agro-lockup,
  .top .brand.agro-lockup { gap: 7px; }
  .agro-lockup .agro-mark { width: clamp(32px, 9vw, 44px); }
  .agro-lockup .agro-name { font-size: clamp(14px, 4.3vw, 22px); }
  .home-page .home-task + .home-task {
    border-inline-start: 0;
    border-top: 1px solid #f4f4ea35;
  }
  .home-page .contact .bigphone { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .home-task img { transition: none; }
  .home-page .home-task:hover img { transform: none; }
}
@media (max-width: 360px) {
  .home-page .header { padding-inline: 12px; gap: 8px; }
  .home-page .header .nav a { font-size: 13px; padding-inline: 5px; white-space: nowrap; }
}

/* Direction changes mark the transitions between the field video and catalog. */
.home-page .home-tasks,
.home-page #catalog,
body[data-category] .section-hero,
.home-page .contact {
  position: relative;
}
.home-page .home-tasks::before,
.home-page #catalog::before,
body[data-category] .section-hero::after,
.home-page .contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, #dded9e 0 14%, #628547 14% 36%, #203b2d 36%);
  pointer-events: none;
}
body[data-category] .section-hero::after { inset: auto 0 0; }
.home-page .header .nav a,
.topnav a,
.ag-contact-toggle,
.ag-media-link {
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.home-page .header .nav a:is(:hover,:focus-visible),
.topnav a:is(:hover,:focus-visible),
.ag-contact-toggle:is(:hover,:focus-visible) {
  box-shadow: inset 0 -2px #dfeda4, 0 0 16px #d5e49c38;
}
.home-page .header .nav { flex-wrap: wrap; }
.ag-media-link { color: inherit; text-underline-offset: .25em; }
:is(.ag-media-link,.group-jumps a):focus-visible {
  outline: 3px solid #d9b651;
  outline-offset: 4px;
}
.group-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 24px;
}
.group-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #879888;
  border-radius: 6px;
  color: #173a2c;
}
.group-jumps a:hover { background: #deefa6; }
.product-section { scroll-margin-top: 24px; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .home-page .home-task { perspective: 700px; }
  .home-page .home-task:hover img { transform: scale(1.045) rotateX(1deg); }
  .home-page .home-task-copy strong span { transition: transform .2s, background-color .2s; }
  .home-page .home-task:hover .home-task-copy strong span { transform: translate(3px,-3px); }
}
@media (max-width: 600px) {
  .home-page .header .nav { gap: 4px; }
  .home-page .header .nav a {
    flex: 1 0 auto;
    font-size: clamp(11px, 3.2vw, 14px);
    padding-inline: 4px;
    white-space: nowrap;
  }
  .topnav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .header .nav a,.topnav a,.ag-contact-toggle,.ag-media-link { transition: none; }
}

.group-jumps[hidden] { display: none; }
.catalog-group + .catalog-group { margin-block-start: clamp(36px, 6vw, 84px); }
.catalog-group > h3 { margin: 0 0 18px; font-size: clamp(24px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.035em; }
.model-media { display: table; margin: 18px 0; }

.home-page .category-card[data-brand="agroapollo"] .category-photo,
body[data-category="agroapollo"] .product-image,
body[data-brand="agroapollo"] .gallery-visual,
body[data-brand="agroapollo"] .media-card-image:has(img) { background: #e8ede3; }
.home-page .category-card[data-brand="agroapollo"] .category-photo:has(img) .image-fallback,
body[data-category="agroapollo"] .product-image:has(img) .image-fallback,
body[data-brand="agroapollo"] .gallery-visual:has(img) .image-fallback { visibility: hidden; }
.home-page .category-card[data-brand="agroapollo"] .category-photo img,
body[data-category="agroapollo"] .product-image img,
body[data-brand="agroapollo"] .gallery-visual img,
body[data-brand="agroapollo"] .media-card-image img {
  object-fit: contain;
  box-sizing: border-box;
  padding: clamp(12px, 2vw, 28px);
}
body[data-category="agroapollo"] .section-hero { background-color: var(--ag-night); }
body[data-category="agroapollo"] .section-hero-media { inset: 4% 3% 3% 38%; }
body[data-category="agroapollo"] .section-hero-img { object-fit: contain; object-position: center; }
body[data-category="agroapollo"] .section-hero-shade { background: linear-gradient(0deg, #101e17 1%, #101e17ac 18%, transparent 48%); }
body[data-brand="agroapollo"] .gallery-dialog-inner img { background: #e8ede3; border-radius: 6px; }
.agroapollo-pdf { display: inline-block; margin-top: 12px; font-weight: 700; }
.manufacturer-filter button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #879888;
  border-radius: 6px;
  color: #173a2c;
  background: transparent;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.manufacturer-filter button:hover { background: #deefa6; }
.manufacturer-filter button[aria-pressed="true"] { background: #214534; color: #fff; border-color: #214534; }
.manufacturer-filter button:focus-visible { outline: 3px solid #d9b651; outline-offset: 3px; }
body[data-category="sibzavodagro"] .section-hero-img { object-position: 60% 50%; }
body[data-category="sibzavodagro"] .section-hero-shade {
  background: linear-gradient(0deg, #101e17f5 1%, #101e17c2 37%, #101e1740 68%);
}
body[data-category="barsagro"] .section-hero-img { object-position: 48% 58%; }
body[data-category="barsagro"] .section-hero-shade {
  background: linear-gradient(0deg, #101e17f5 1%, #101e17b0 40%, #101e1720 78%);
}

body :is(button, input[type="button"], input[type="submit"], input[type="reset"],
  .btn, .phone, .ag-phone, .ag-call, .bigphone, a.tel, .links a,
  .topnav a, .header .nav a, .hero-foot a, .group-jumps a, a.ag-media-link,
  .contact-social, .contact-route, .catalog-jump-links a,
  .catalog-section-picker > summary, .catalog-section-menu a,
  .catalog-reset, a.media-card, .showcase-link, .media-watch-on-youtube) {
  font-family: var(--ag-control-font) !important;
  font-style: normal !important;
  font-weight: 750 !important;
  letter-spacing: 0;
}

.home-page .dawn .actions .btn {
  --cta-edge: #0b1b13;
  --cta-highlight: #c8dfa56b;
  position: relative;
  min-height: 52px;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 var(--cta-highlight), 0 4px 0 var(--cta-edge), 0 10px 22px #050c08a6;
  transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s ease-out;
}
.home-page .dawn .actions .btn:first-child {
  --cta-edge: #899e58;
  --cta-highlight: #fff8;
  background: linear-gradient(#e6f3b6, #d2e58e);
}
.home-page .dawn .actions .btn-outline { background-color: #182d23dd; }
.home-page .dawn .actions .btn:is(:hover,:focus-visible) {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 var(--cta-highlight), 0 6px 0 var(--cta-edge), 0 14px 26px #050c08b0;
  animation-play-state: paused;
}
.home-page .dawn .actions .btn:focus-visible { outline: 2px solid #f0f6c7; outline-offset: 5px; }
.home-page .dawn .actions .btn:active {
  transform: translateY(3px) scale(.985);
  box-shadow: inset 0 2px 8px #0b221c29, 0 1px 0 var(--cta-edge), 0 3px 6px #050c0880;
  animation-play-state: paused;
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .home-page .dawn .actions .btn { animation: hero-cta-float 2.6s ease-in-out; }
  .home-page .dawn .actions .btn-outline { animation-delay: -.65s; }
}
@keyframes hero-cta-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }

.showcase-scroll { position: relative; }
.showcase-frames > noscript { position: absolute; inset: 0; }
.showcase-frame:not([src]) { visibility: hidden; }
.showcase-scroll.is-scrollable { height: calc(100svh + var(--showcase-travel)); }
.machine-showcase {
  position: sticky;
  top: 0;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  height: 100svh;
  overflow: hidden;
  color: #f6f8ed;
  background: var(--ag-night);
  touch-action: pan-y pinch-zoom;
}
.showcase-frames, .machine-showcase::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.showcase-frames { z-index: -2; display: flex; }
.showcase-frame {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: 53% 58%;
}
.showcase-zone[aria-disabled="true"] { cursor: default; }
.showcase-zone[aria-disabled="true"] span { opacity: .35; }
.machine-showcase::after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, #0a1913fa, #0a191390 18%, transparent 58%);
}
.showcase-zone {
  position: absolute;
  inset-block: 0;
  display: flex;
  align-items: center;
  width: 50%;
  padding: 0 var(--ag-gutter);
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.showcase-zone:first-of-type { inset-inline-start: 0; justify-content: flex-start; }
.showcase-zone[data-step="1"] { inset-inline-end: 0; justify-content: flex-end; }
.showcase-zone span {
  display: grid;
  place-items: center;
  width: clamp(50px, 5.5vw, 84px);
  height: clamp(50px, 5.5vw, 84px);
  border: 1px solid #fff8;
  border-radius: 50%;
  background: #10241cbd;
  box-shadow: 0 8px 22px #050c085c;
  font-size: clamp(24px, 3vw, 36px);
  font-style: normal;
  transition: background-color .18s, color .18s, transform .18s;
}
.showcase-zone:is(:hover,:focus-visible) span { background: var(--ag-lime); color: var(--ag-night); }
.showcase-zone:active span { transform: scale(.94); }
.showcase-zone:focus-visible { outline: none; }
.showcase-zone:focus-visible span { outline: 2px solid #fff; outline-offset: 4px; }
.showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 75%;
  padding: 0 0 clamp(45px, 8vh, 84px) var(--ag-gutter);
  pointer-events: none;
}
.showcase-copy h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 82px);
  font-weight: 700;
  letter-spacing: -.058em;
  line-height: 1;
  text-wrap: balance;
}
.showcase-model { margin: 0 0 18px; color: #deeaa6; font-size: clamp(17px, 2.25vw, 32px); font-weight: 750; }
.showcase-link, .showcase-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #edf3e7a6;
  border-radius: 8px;
  color: #f5f8ed;
  background: #142a20d9;
  font-size: 16px;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}
.showcase-link:hover, .showcase-skip:hover { background: #e3eead; color: #102419; }
.showcase-link:focus-visible, .showcase-skip:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.showcase-controls {
  position: absolute;
  z-index: 1;
  inset-inline-end: var(--ag-gutter);
  inset-block-end: clamp(86px, 12vh, 126px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.showcase-count {
  padding: 8px 12px;
  border-radius: 6px;
  background: #142a20d9;
  font: 700 14px/1.2 Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}
.showcase-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .showcase-controls { inset-block: 22px auto; gap: 8px; }
  .showcase-copy { max-width: 95%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .dawn .actions .btn, .showcase-frame, .showcase-zone span { transition: none; }
}
@media (min-width: 1050px) {
  .home-page #catalog #catalog-manufacturers .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body[data-category="agroapollo"] .section-hero-media { inset: 0 0 auto; height: 185px; }
  body[data-category="agroapollo"] .section-hero-inner { padding-top: 193px; }
  body[data-category="agroapollo"] .section-hero-shade { background: none; }
}


/* Field light and controls */
:is(button, [role="button"], summary, .btn, .phone, .bigphone, .nav a, .topnav a,
  .media-header nav a, .field-actions a, .field-footer a, .more, .links .call,
  .home-task, .category-card, .product-image, .showcase-link, .ag-media-link,
  .gallery-all, .group-jumps a):not(:disabled, [aria-disabled="true"]):focus-visible {
  outline: 2px solid #bfdc78;
  outline-offset: 3px;
}

@media (hover: hover) {
  :is(button, [role="button"], summary, .btn, .phone, .bigphone, .nav a, .topnav a,
    .media-header nav a, .field-actions a, .field-footer a, .more, .links .call,
    .showcase-link, .ag-media-link, .group-jumps a):not(:disabled, [aria-disabled="true"]):hover {
    filter: brightness(1.08) drop-shadow(0 0 7px #a7d85d82);
  }
}

:is(button, [role="button"], summary, .btn, .phone, .bigphone, .nav a, .topnav a,
  .media-header nav a, .field-actions a, .field-footer a, .more, .links .call,
  .home-task, .category-card, .product-image, .showcase-link, .ag-media-link,
  .group-jumps a):not(:disabled, [aria-disabled="true"]):active {
  filter: brightness(1.14) drop-shadow(0 0 8px #a7d85d9e);
}

.home-page .header .nav a {
  min-height: 44px;
  font-size: clamp(17px, 1.38vw, 22px);
  padding-inline: clamp(8px, 1vw, 16px);
}

.home-page .header .nav a:is(:hover, :focus-visible, :active) {
  color: #ecf7c8;
  background: #12352278;
  box-shadow: inset 0 -2px #c2df81, 0 4px 20px #80b7452b;
}

.home-page :is(.field-hero, .dawn) .field-actions { gap: 10px 12px; }
.home-page :is(.field-hero, .dawn) .field-actions a {
  --button-glow: #fff9c07a;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 10px clamp(13px, 1.5vw, 24px);
  border: 1px solid #dceba87a;
  border-radius: 6px;
  font: 750 clamp(16px, 1.3vw, 21px)/1.15 var(--ag-control-font);
  background-image: radial-gradient(circle at var(--control-x, 50%) var(--control-y, 50%), var(--button-glow), transparent 67%);
  background-size: 0 0;
  box-shadow: 0 4px 0 #162317bb, 0 9px 22px #09140e79;
  transition: transform .2s ease, color .2s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.home-page :is(.field-hero, .dawn) .field-actions .btn { color: #172619; background-color: #deefa6; }
.home-page :is(.field-hero, .dawn) .field-actions .field-contact {
  --button-glow: #91d26277;
  color: #f4f8e8;
  background-color: #183427ca;
}
.home-page :is(.field-hero, .dawn) .field-actions a:is(:hover, :focus-visible, :active) {
  background-size: 100% 100%;
  box-shadow: 0 4px 0 #162317bb, 0 8px 25px #9ad75157;
}
.home-page :is(.field-hero, .dawn) .field-actions a:is(:hover, :focus-visible) { transform: translateY(-3px); }
.home-page :is(.field-hero, .dawn) .field-actions a:active { transform: translateY(2px); }

.field-title-wrap {
  --wind-lean: 0deg;
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
}
.home-page .field-hero #field-title {
  position: relative;
  margin: 0;
  text-shadow: 0 1px 0 #fff3, 0 3px 0 #28301c, 0 5px 0 #162118, 0 13px 25px #11150bc4;
}
.field-title-line { display: block; position: relative; width: fit-content; max-width: 100%; }
.field-title-sheen { position: absolute; inset: 0; pointer-events: none; }
.field-title-sheen::before {
  content: attr(data-line);
  display: block;
  color: transparent;
  background: linear-gradient(106deg, transparent 34%, #edf9b868 45%, #fffada 50%, #daf39a94 56%, transparent 67%);
  background-size: 300% 100%;
  background-position: 100% 0;
  background-clip: text;
  text-shadow: none;
}
.field-title-wrap.is-shining .field-title-sheen::before { animation: field-title-shine 1.1s ease-out both; }
.field-title-wrap.is-shining em .field-title-sheen::before { animation-delay: .11s; }
@keyframes field-title-shine { from { background-position-x: 100%; } to { background-position-x: 0%; } }
.field-title-rye {
  position: absolute;
  z-index: -1;
  inset: -58% -7% -23% -5%;
  pointer-events: none;
  opacity: .44;
  transform-origin: center bottom;
  transform: skewX(var(--wind-lean));
  mask-image: linear-gradient(0deg, transparent 1%, #000 27%, #000 88%, #000a 100%);
  transition: transform .68s cubic-bezier(.17,.65,.24,1), opacity .45s ease;
}
.field-title-rye::before,
.field-title-rye::after {
  content: "";
  position: absolute;
  transform-origin: 50% 100%;
  background-repeat: no-repeat;
}
.field-title-rye::before {
  inset: 0;
  background: url("/rye-optimized.webp") center bottom / 100% 100% no-repeat;
  opacity: .72;
}
.field-title-rye::after {
  inset: 4% -1% -8% 1%;
  background-image: url("/rye-detail-optimized.webp"), url("/rye-detail-optimized.webp");
  background-size: 49% 92%, 43% 69%;
  background-position: 4% bottom, 96% bottom;
  mask-image: linear-gradient(90deg, #0009, #000 16%, #000c 75%, #0006);
}
.field-title-wrap.is-in-wind .field-title-rye { opacity: .85; }
.field-title-wrap.is-in-wind .field-title-rye::before { animation: field-rye-sway 2.9s ease-in-out infinite; }
.field-title-wrap.is-in-wind .field-title-rye::after { animation: field-rye-sway 3.5s ease-in-out -.8s infinite reverse; }
.field-title-wrap.is-in-wind #field-title {
  text-shadow: 0 1px 0 #fff5, 0 3px 0 #28301c, 0 5px 0 #162118, 0 8px 19px #14170de8, 0 0 25px #d7eaa95e;
}
@keyframes field-rye-sway {
  0%, 100% { transform: skewX(-2deg); }
  50% { transform: skewX(3deg); }
}

.ag-pointer-light {
  position: fixed;
  z-index: 75;
  top: 0;
  left: 0;
  width: 164px;
  height: 164px;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #bcf17a32, #8adb5b15 43%, transparent 71%);
  transition: opacity .25s ease;
  pointer-events: none;
}
.ag-pointer-light.is-visible { opacity: 1; }

@media (max-width: 700px) {
  .home-page .header .nav { gap: 4px; }
  .home-page .header .nav a { font-size: clamp(14px, 3.8vw, 17px); padding-inline: 3px; }
  .home-page :is(.field-hero, .dawn) .field-actions a { gap: 8px; min-height: 48px; padding-inline: 11px; }
  .home-page .field-hero #field-title { font-size: clamp(1.95rem, 10vw, 4.3rem); letter-spacing: -.075em; }
  .field-title-rye { inset-inline: -4%; }
  .field-title-rye::before { background-image: url("/rye-optimized-mobile.webp"); }
  .field-title-rye::after { background-image: url("/rye-detail-mobile.webp"), url("/rye-detail-mobile.webp"); }
}

@media (prefers-reduced-motion: reduce) {
  .ag-pointer-light { display: none; }
  .home-page :is(.field-hero, .dawn) .field-actions a, .field-title-rye { transition: none; transform: none; }
  .field-title-wrap.is-shining .field-title-sheen::before,
  .field-title-wrap.is-in-wind .field-title-rye::before,
  .field-title-wrap.is-in-wind .field-title-rye::after { animation: none; }
}

/* Video hero and the interactive field. */
@media (min-width: 821px) {
  .home-page .video-hero .hero-content {
    width: fit-content;
    max-width: 100%;
    margin: auto 0 0;
    padding: clamp(110px, 16svh, 160px) var(--ag-gutter) clamp(28px, 5svh, 52px);
  }
  .home-page .video-hero .field-title-line { white-space: nowrap; }
}
.home-page .dawn .field-title-sheen { inset-inline: .025em .07em; }
.home-page #about { scroll-margin-top: 105px; }
.home-page .dawn .field-title-wrap { margin-block: 14px 16px; }
.home-page .dawn .field-title-wrap h1 { margin: 0; }
.hero-presenter {
  position: absolute;
  z-index: 1;
  inset-block-end: clamp(72px, 11svh, 110px);
  inset-inline-end: 0;
  width: min(19.5vw, 360px, 44svh);
  translate: 9% 0;
  pointer-events: none;
}
.hero-presenter-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px #08180e8c);
  mask-image: linear-gradient(#000 0 83%, transparent 100%);
}
.home-page .dawn .dawn-scene :is(img, video) { object-position: center; }

#field-play .field-copy { width: min(540px, calc(100% - 2 * var(--ag-gutter))); }
#field-play-title {
  margin: 0;
  font-size: clamp(42px, 5.9vw, 86px);
  letter-spacing: -.065em;
  line-height: 1;
  text-wrap: balance;
  text-shadow: 0 6px 28px #0c190dd4;
}
@media(max-width: 820px) {
  .hero-presenter {
    inset-block: clamp(54svh, 59svh, 64svh) auto;
    width: clamp(118px, 34vw, 168px);
    translate: 4% 0;
  }
  .home-page .video-hero .field-title-line { white-space: nowrap; }
  .home-page .video-hero .hero-content {
    position: relative;
    padding-block: clamp(320px, 45svh, 415px) max(72px, calc(56px + env(safe-area-inset-bottom, 0px)));
  }
  .home-page .video-hero .field-actions { gap: 8px; }
  .home-page .video-hero .field-actions a {
    gap: 6px;
    min-height: 46px;
    padding-inline: 9px;
    font-size: clamp(15px, 4vw, 17px);
  }
  .home-page .video-hero .hero-foot { gap: 6px; padding-bottom: 54px; }
  .home-page .video-hero .hero-foot :is(a, button) { padding: 8px 9px; font-size: 12px; }
  .home-page .video-hero { height: auto; min-height: 100svh; }
  #field-play .field-copy { padding-top: clamp(40px, 8vw, 90px); }
}
@media (max-width: 360px) {
  .home-page .video-hero .hero-content { padding-block-start: max(285px, 41svh); }
}


/* Catalog covers */
body[data-category] #products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
body[data-category] #products .catalog-tile { min-width: 0; scroll-margin-top: 20px; }
body[data-category] #products .catalog-tile > .products { grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 821px) {
  body[data-category] #products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  body[data-category] #products .catalog-tile {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
  body[data-category] #products .catalog-tile > .products { grid-row: 2; }
  body[data-category] #products .catalog-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.home-page #catalog .category-card,
body[data-category] #products .product {
  display: grid;
  grid-template: "cover" 1fr / minmax(0, 1fr);
  isolation: isolate;
  min-height: clamp(390px, 39vw, 650px);
  background: #132c21;
  color: #f7faef;
  border-color: #647e5f35;
  overflow: hidden;
}
.home-page #catalog .category-card > *,
body[data-category] #products .product > :is(.product-image, .catalog-card-gallery, .product-content) { grid-area: cover; }
.home-page #catalog .category-card .category-photo,
body[data-category] #products .product-image {
  display: block;
  position: relative;
  min-height: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #183226;
}
body[data-category] #products .catalog-card-gallery { min-height: 100%; }
.home-page #catalog .category-photo img,
body[data-category] #products .product-image img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-page #catalog .category-card[data-brand="agroapollo"] .category-photo img,
body[data-category="agroapollo"] #products .product-image img {
  object-fit: contain;
  object-position: center 30%;
  padding: 4% 9% 21%;
  background: radial-gradient(ellipse at center 30%, #728674, #263e30 74%);
}
.home-page #catalog .category-photo:has(img) .image-fallback,
body[data-category] #products .product-image:has(img) .image-fallback { visibility: hidden; }
.home-page #catalog .category-card .category-photo:not(:has(img)) .image-fallback,
body[data-category] #products .product-image:not(:has(img)) .image-fallback { align-items: flex-start; }
.home-page #catalog .category-card .category-body,
body[data-category] #products .product-content {
  z-index: 2;
  display: flex;
  align-self: end;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: clamp(70px, 10vw, 140px) clamp(18px, 3.2vw, 52px) clamp(20px, 3.2vw, 44px);
  background: linear-gradient(0deg, #0b2118 4%, #0b2118f5 32%, #0b2118c4 62%, transparent);
  pointer-events: none;
}
body[data-category="razor"] #products .product-content {
  padding-top: clamp(36px, 5vw, 76px);
  background: linear-gradient(0deg, #111813fa, #111813dc 42%, transparent);
}
body[data-category="razor"] #products .product-image img[src="/assets/razor/kalibr-catalog.webp"] {
  background: #efeee7;
  object-fit: scale-down;
  object-position: center 22%;
}
body[data-category] #products .product:has(.catalog-card-description) {
  grid-template-rows: minmax(clamp(390px, 39vw, 650px), 1fr) auto;
  background: #f1f3e8;
}
body[data-category] #products .catalog-card-description {
  margin: 0;
  padding: 18px clamp(18px, 3.2vw, 44px) 22px;
  color: #20362b;
  font: 400 clamp(15px, 1.4vw, 17px)/1.58 var(--ag-control-font);
  text-wrap: pretty;
}
.home-page .catalog-intro {
  max-width: 60ch;
  color: #384e41;
  font-size: clamp(16px, 1.65vw, 20px);
  line-height: 1.55;
}
.company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.home-page #catalog .category-card h3,
body[data-category] #products .product h3 {
  margin: 0 0 3px;
  color: #f8faef;
  font-size: clamp(29px, 3.55vw, 56px);
  font-family: var(--ag-display-font);
  font-weight: 625;
  letter-spacing: -.035em;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px #0a1a13b0;
}
.home-page #catalog .category-card .category-type,
.home-page #catalog .category-card .category-more span { color: #d8eaa2; }
.home-page #catalog .category-card .category-more {
  margin-top: 8px;
  padding-top: 10px;
  border-color: #def0b94a;
}
.home-page #catalog .category-card p,
body[data-category] #products .product-content :is(.type, .spec) {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  color: #e1e9db;
  font-size: clamp(13px, 1.15vw, 17px);
}
body[data-category] #products .product-content .links {
  margin-top: 7px;
  align-items: center;
  flex-wrap: wrap;
}
body[data-category] #products .product-content a { pointer-events: auto; }
body[data-category] #products .product-content .more {
  color: #e1efad;
  text-underline-offset: 4px;
}
body[data-category] #products .catalog-card-gallery .gallery-step { top: 34%; }
body[data-category] #products .catalog-card-gallery .catalog-photo-count {
  top: 12px;
  bottom: auto;
}
@media (max-width: 700px) {
  .home-page #catalog .category-card,
  body[data-category] #products .product { min-height: clamp(365px, 98vw, 510px); }
  .home-page #catalog .category-card .category-body,
  body[data-category] #products .product-content { padding-top: 75px; }
  .home-page #catalog .category-card h3,
  body[data-category] #products .product h3 { font-size: clamp(25px, 7.1vw, 36px); }
  body[data-category] #products .product:has(.catalog-card-description) {
    grid-template-rows: minmax(clamp(365px, 98vw, 510px), 1fr) auto;
  }
}

/* Contacts on the home page. */
.home-page #contact {
  background: radial-gradient(ellipse at 20% 5%, #244032, #0e2118 68%);
}
.home-page #contact .contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(28px, 5vw, 92px);
}
.home-page #contact h2 { margin-block: 17px 22px; font-size: clamp(40px, 5.5vw, 80px); }
.home-page #contact .bigphone { margin: 0; gap: 16px; }
.contact-hours {
  display: grid;
  gap: 5px;
  margin: 29px 0 25px;
  padding-inline-start: 15px;
  border-inline-start: 2px solid #9ebb6a;
}
.contact-hours > span, .contact-map-address > span { font-size: 13px; color: #c8d6c1; }
.contact-hours strong {
  color: #e4f1ba;
  font-size: clamp(27px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 7px 10px;
  color: #f2f8e9;
  border: 1px solid #e8f1cf3d;
  border-radius: 7px;
  background: #192f23;
  font: 750 16px/1 var(--ag-control-font);
}
a.contact-social:is(:hover, :focus-visible) { background: #294432; border-color: #b4d77b; }
.contact-social img, .hero-social img { display: block; width: 29px; height: 29px; border-radius: 50%; }
.home-page .dawn .hero-foot { pointer-events: none; }
.home-page .dawn .hero-foot .hero-socials {
  display: flex;
  gap: 7px;
  margin-inline-start: auto;
  margin-inline-end: 74px;
}
.home-page .dawn .hero-foot .hero-social {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: #e3f4c86b;
  background: #172f23c9;
}
.home-page .dawn .hero-foot .hero-social:is(:hover, :focus-visible) {
  border-color: #dcefa5;
  box-shadow: 0 0 15px #bbe17b70;
}
.home-page .dawn .hero-foot .hero-youtube {
  display: inline-flex;
  gap: 9px;
  width: auto;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  font: 650 14px/1.2 var(--ag-control-font);
}
.home-page .dawn .hero-foot .hero-youtube-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 19px;
  padding: 0;
  border-radius: 5px;
  background: #f0242e;
}
.hero-youtube-icon::after {
  content: "";
  margin-inline-start: 2px;
  border-block: 4px solid transparent;
  border-inline-start: 7px solid #fff;
}
.contact-social-hint { max-width: 46ch; margin: 13px 0 0; font-size: 13px; }
.contact-copy {
  padding: 0;
  border: 0;
  background: transparent;
  color: #dceca9;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-copy-status:empty { display: none; }
.contact-copy-status:not(:empty) { display: block; color: #e4f1ba; }
.contact-map {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(390px, 39vw, 540px);
  padding: clamp(16px, 2.3vw, 34px);
  border: 1px solid #b8d09260;
  border-radius: 8px;
  overflow: hidden;
  background: #183228;
}
.contact-map > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 29px;
  height: 29px;
  border: 2px solid #c5dc78;
  border-radius: 50% 50% 50% 5px;
  background: #162f23;
  box-shadow: 0 0 0 9px #cae6872e, 0 0 28px #d6ee9a75;
  transform: translate(-50%, -92%) rotate(-45deg);
}
.contact-map-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: #ddefa1;
  border-radius: 50%;
}
.contact-map-address {
  display: grid;
  gap: 5px;
  max-width: 390px;
  padding: 14px 16px;
  margin-bottom: 11px;
  color: #f5f9ed;
  background: #12271eeb;
  border: 1px solid #c3db8f55;
  border-radius: 6px;
}
.contact-map-address > strong { font-size: clamp(20px, 2vw, 29px); line-height: 1.14; letter-spacing: -.04em; }
.contact-map-address address { font-size: 13px; line-height: 1.4; font-style: normal; color: #d9e4d3; }
.contact-map-address a { margin-top: 5px; color: #e5f1ae; text-decoration: underline; text-underline-offset: 4px; }
.contact-map-credit {
  position: absolute;
  bottom: 4px;
  right: 8px;
  color: #e6edf4;
  padding: 3px 5px;
  background: #12271eec;
  font-size: 10px;
}
@media (max-width: 820px) {
  .home-page .dawn .hero-foot .hero-socials {
    position: absolute;
    z-index: 4;
    inset-block-start: clamp(113px, 14svh, 140px);
    inset-inline-start: var(--ag-gutter);
    margin: 0;
  }
  .home-page #contact .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-map { min-height: clamp(350px, 105vw, 480px); }
}
@media (max-width: 420px) and (max-height: 700px) {
  .home-page .hero.dawn.video-hero { min-height: 100svh; }
  .home-page .video-hero .hero-presenter {
    inset-block-start: clamp(52svh, 58svh, 62svh);
    width: clamp(108px, 34vw, 140px);
  }
  .home-page .video-hero .hero-content {
    padding-block: 232px max(72px, calc(56px + env(safe-area-inset-bottom, 0px)));
  }
  .home-page .video-hero .field-title-line { white-space: nowrap; }
  .home-page .video-hero .hero-foot { padding-bottom: 72px; }
  .home-page .video-hero .field-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline-end: 0;
    gap: 8px 10px;
  }
  .home-page .video-hero .field-actions a {
    min-width: 0;
    width: auto;
    padding-inline: 6px;
    gap: 4px;
    font-size: 14px;
    letter-spacing: -.02em;
  }
}

@media (max-width: 520px) {
  .home-page .video-hero .hero-content p {
    max-width: min(41ch, calc(100% - clamp(80px, 26vw, 120px)));
  }
  .home-page .video-hero .field-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .home-page .video-hero .field-actions a {
    min-width: 0;
    padding-inline: 8px;
    gap: 5px;
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .home-page .video-hero .field-actions a {
    padding-inline: 5px;
    gap: 4px;
    font-size: 12.5px;
  }
}

/* Give section titles the same directional light as their photographic cards. */
:is(h1, h2, h3):not(#field-title, .catalog-section-menu h3, .product-page #name) {
  text-wrap: balance;
  text-shadow: 0 1px #fbfbf650, 0 2px 1px #173a2c25;
}
.product-page #name { text-shadow: 0 1px #fff8, 0 2px 1px #173a2c32; }
.home-page :is(#precision, .company-facts, #contact) h2,
.home-page .home-task-copy strong {
  text-shadow: 0 1px #f5fae84d, 0 2px #12271e, 0 4px 12px #0b2019b3;
}
.home-page :is(#catalog-title, #showcase-title, #company-facts-title, #contact-title, #field-play-title),
.home-page .home-task-copy strong {
  font-weight: 800;
}
.home-page .header .nav {
  column-gap: clamp(5px, 1vw, 16px);
}
.home-page .header .nav a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding-inline: clamp(10px, 1.5vw, 24px);
  border: 1px solid #d4e99a36;
  border-radius: 7px;
  background: #17382b88;
  font-size: clamp(18px, 1.8vw, 26px);
  text-shadow: 0 2px #112b20, 0 4px 8px #0c1b14bb;
}
.home-page .header .nav a:focus-visible {
  outline: 2px solid #d4e99a;
  outline-offset: 3px;
}
.home-page .catalog-brands .home-task-copy strong {
  font-size: clamp(23px, 2.15vw, 39px);
  overflow-wrap: anywhere;
}
.home-page .catalog-brand--range img { object-position: 74% center; }
.home-page .catalog-domestic { margin-block-start: clamp(36px, 6vw, 80px); }
.home-page .catalog-domestic[hidden] { display: none; }
.home-page .catalog-domestic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) {
  .home-page .catalog-domestic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.home-page .catalog-domestic-grid .home-task { min-height: clamp(260px, 29vw, 390px); }
.home-page .catalog-domestic-grid .home-task-copy { padding: clamp(20px, 3vw, 44px); }
@media (max-width: 700px) {
  .home-page .header .nav a {
    min-height: 44px;
    padding-inline: clamp(6px, 2vw, 14px);
    font-size: clamp(15px, 4.35vw, 21px);
  }
  .home-page .catalog-domestic-grid { grid-template-columns: 1fr; }
  .home-page .catalog-brands .home-task-copy strong { font-size: clamp(26px, 7vw, 38px); }
}

/* Storefront navigation and keyboard controls. */
.site-skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1100;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ag-lime);
  color: var(--ag-night);
  font-weight: 750;
  transform: translateY(calc(-100% - 24px));
}
.site-skip-link:focus {
  outline: 2px solid var(--ag-night);
  outline-offset: 2px;
  transform: none;
}
:where(.home-page, .product-page, body[data-category]) :is(a, button, summary, input, select):focus-visible {
  outline: 2px solid #2d7447;
  outline-offset: 3px;
}
:where(.home-page, .product-page, body[data-category]) :is(.header, .top, .ag-tools, .hero, .contact, .ag-footer) :is(a, button, summary):focus-visible {
  outline-color: var(--ag-lime);
}
.ag-tools {
  inset-block-end: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
}
.home-page .ag-tools.is-at-contact:not(:focus-within) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* A compact entry to the category list above its photo covers. */
.home-page #catalog .catalog-head {
  align-items: end;
  gap: 12px;
  padding-block-end: 16px;
}
.home-page #catalog .catalog-heading { display: grid; gap: 8px; }
.home-page #catalog .ag-result-count {
  margin: 0;
  color: #425946;
  font-variant-numeric: tabular-nums;
}
.home-page #catalog .ag-result-count:empty { display: none; }
.home-page #catalog .catalog-group { margin-block-start: clamp(28px, 4vw, 56px); }
.home-page #catalog .catalog-navigation :is(a, summary):hover { border-color: #789a72; }
@media (min-width: 1000px) {
  .home-page #catalog .catalog-navigation {
    grid-template-columns: minmax(max-content, 3fr) minmax(0, 5fr);
  }
  .home-page #catalog .catalog-section-picker > summary { margin-inline-start: auto; }
}

body[data-category] .catalog .bar {
  display: grid;
  grid-template-columns: minmax(260px, 540px) max-content;
  justify-content: space-between;
  align-items: end;
  gap: 12px 24px;
  padding: 0 0 16px;
  margin-block: 16px 12px;
}
body[data-category] .catalog .bar .counter {
  grid-column: 2;
  grid-row: 1;
  padding-block: 12px;
  color: #425946;
  font-variant-numeric: tabular-nums;
}
.catalog-search-field {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.catalog-search-field label { font-size: .875rem; font-weight: 750; color: #284633; }
.catalog-search-control {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding-inline: 12px 4px;
  border: 1px solid #78917c;
  border-radius: 8px;
  background: #f8faf4;
}
.catalog-search-control:focus-within { border-color: #2d7447; box-shadow: 0 0 0 2px #2d74473c; }
body[data-category] .catalog .catalog-search-control input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 4px 8px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ag-night);
  font: 500 1rem/1.5 var(--ag-control-font);
}
.catalog-search-control input::placeholder { color: #526858; opacity: 1; }
.catalog-search-control input::-webkit-search-cancel-button { -webkit-appearance: none; }
.catalog-search-clear {
  flex: none;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  color: #234632;
  background: transparent;
  cursor: pointer;
}
.catalog-search-clear:hover { background: #e8f1db; }
.catalog-search-clear[hidden] { display: none; }
body[data-category] #empty {
  min-height: 72px;
  padding: 16px;
  border: 1px solid #bacbb5;
  border-radius: 8px;
  background: #f8faf4;
  color: #3a5241;
  text-align: start;
}
body[data-category] #products .product-content .call {
  background: var(--ag-lime);
  color: #183424;
}
body[data-category] #products .product-content .call:is(:hover,:focus-visible) { background: #edf5c8; }
body[data-category] #products .product-content :is(.call, .more) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 700px) {
  .home-page #catalog .catalog { padding-block-start: 48px; }
  .home-page #catalog .catalog-navigation { margin-block: 12px 16px; }
  .home-page .catalog-brands {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 420px);
    gap: 8px;
    overflow: auto;
    padding-inline: var(--ag-gutter);
    padding-block-end: 8px;
    background: transparent;
    scroll-snap-type: inline proximity;
    scroll-padding-inline: var(--ag-gutter);
    scrollbar-width: thin;
  }
  .home-page .catalog-brands .home-task {
    min-height: clamp(248px, 66vw, 336px);
    border: 1px solid #233e30;
    border-radius: 8px;
    scroll-snap-align: start;
  }
  .home-page .catalog-brands .home-task-copy { padding: 16px 58px 16px 16px; }
  body[data-category] .catalog .bar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body[data-category] .catalog .bar .counter { grid-column: 1; grid-row: 2; padding: 0; }
  .home-page .contact-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .contact-social { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: .8125rem; }
  .home-page .contact-social > span { display: none; }
  .home-page .contact-copy { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .catalog-brands { scroll-snap-type: none; }
}
