/* AGROCOPS KVVVK — premium AgriTech header (scoped) */

.agrocops-header-slot {
    --ah-white: #ffffff;
    --ah-page: #FBFDF9;
    --ah-pale: #EFF7E8;
    --ah-green: #177A2E;
    --ah-bright: #75C93E;
    --ah-ink: #182019;
    --ah-muted: #687169;
    --ah-grad: linear-gradient(90deg, #135B24 0%, #1A8A35 48%, #146628 100%);
    --ah-cta: linear-gradient(90deg, #1B8A32 0%, #4DB83A 46%, #86E24A 100%);
    --ah-cta-hover: linear-gradient(90deg, #1F9A38 0%, #58C644 46%, #96ED5A 100%);
    position: relative;
    z-index: 1001;
    background: var(--ah-page);
    isolation: isolate;
}

header.agrocops-header,
header.agrocops-header.transparent,
header.agrocops-header.header-light,
header.agrocops-header.header-mobile {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 14px 0 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    height: auto !important;
    z-index: 1001;
}

header.agrocops-header.smaller {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background: rgba(251, 253, 249, 0.94) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

header.agrocops-header *,
header.agrocops-header *::before,
header.agrocops-header *::after {
    box-sizing: border-box;
}

header.agrocops-header a {
    text-decoration: none !important;
}

header.agrocops-header a:focus-visible,
header.agrocops-header button:focus-visible,
header.agrocops-header #menu-btn:focus-visible {
    outline: 2px solid var(--ah-bright);
    outline-offset: 3px;
    border-radius: 10px;
}

/* Atmosphere */
.agrocops-header__fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.agrocops-header__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.agrocops-header__glow--tl {
    top: -80px;
    left: 8%;
    width: 280px;
    height: 180px;
    background: rgba(117, 201, 62, 0.09);
}

.agrocops-header__glow--tr {
    top: -60px;
    right: 6%;
    width: 340px;
    height: 220px;
    background: rgba(23, 122, 46, 0.07);
}

.agrocops-header__circuit,
.agrocops-header__leaf {
    position: absolute;
    display: block;
}

.agrocops-header__circuit {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
}

.agrocops-header__leaf--tr {
    top: -28px;
    right: 0.5%;
    width: min(320px, 24vw);
    opacity: 0.11;
}

.agrocops-header__leaf--bl {
    left: 0;
    bottom: -36px;
    width: min(260px, 20vw);
    opacity: 0.09;
}

header.agrocops-header #topbar,
header.agrocops-header .agrocops-nav {
    position: relative;
    z-index: 2;
}

/* Top contact bar */
header.agrocops-header #topbar,
header.agrocops-header.smaller #topbar,
header.agrocops-header.header-mobile #topbar {
    display: flex !important;
    justify-content: center;
    width: 100%;
    max-width: 1520px;
    margin: 0 auto 12px !important;
    padding: 0 24px !important;
    overflow: visible !important;
    background: transparent !important;
    transition: transform 0.45s ease, opacity 0.35s ease, margin 0.45s ease, max-height 0.45s ease;
}

.agrocops-topbar__bar {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 22px 0 36px;
    color: #ffffff;
    background: var(--ah-grad);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -10px 18px rgba(0, 0, 0, 0.12),
        0 8px 22px rgba(19, 91, 36, 0.28),
        0 0 0 1px rgba(23, 122, 46, 0.08);
}

.agrocops-topbar__bar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 22px,
            rgba(255, 255, 255, 0.04) 22px 23px
        ),
        radial-gradient(circle at 18% 50%, rgba(117, 201, 62, 0.16), transparent 34%),
        radial-gradient(circle at 82% 50%, rgba(8, 40, 16, 0.22), transparent 38%);
}

.agrocops-topbar__bar > * {
    position: relative;
    z-index: 1;
}

.agrocops-topbar__contacts {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    gap: 0;
}

header.agrocops-header #topbar a,
header.agrocops-header #topbar .agrocops-topbar__address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 18px 0 0;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

header.agrocops-header #topbar a i,
header.agrocops-header #topbar .agrocops-topbar__address i {
    color: #ffffff !important;
    font-size: 13px;
}

.agrocops-topbar__sep {
    display: block;
    width: 1px;
    height: 18px;
    margin-right: 18px;
    background: rgba(255, 255, 255, 0.28);
    flex: 0 0 1px;
}

header.agrocops-header #topbar .social-icons,
header.agrocops-header #topbar .agrocops-topbar__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    float: none;
    height: 46px;
}

header.agrocops-header #topbar .social-icons a,
header.agrocops-header #topbar .agrocops-topbar__social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px;
    max-height: 30px;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    background: rgba(8, 40, 16, 0.32);
    color: #ffffff !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-align: center;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

header.agrocops-header #topbar .social-icons a i,
header.agrocops-header #topbar .social-icons a i::before,
header.agrocops-header #topbar .social-icons i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    float: none !important;
    position: static !important;
    vertical-align: middle !important;
    text-shadow: none !important;
    transform: none !important;
}

header.agrocops-header #topbar .social-icons a:hover,
header.agrocops-header #topbar .social-icons a:focus-visible {
    transform: scale(1.05);
    border-color: rgba(198, 240, 138, 0.45);
    background: rgba(23, 122, 46, 0.55);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 12px rgba(117, 201, 62, 0.35);
}

header.agrocops-header.smaller #topbar {
    max-height: 0;
    margin-bottom: 0 !important;
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
    overflow: hidden !important;
}

/* Main navigation surface */
header.agrocops-header .agrocops-nav {
    display: flex;
    justify-content: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
}

header.agrocops-header .agrocops-nav__panel,
header.agrocops-header .de-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    max-width: none;
    min-height: 70px;
    margin: 0;
    padding: 5px 28px;
    background: var(--ah-white);
    border: none;
    border-top: 1px solid rgba(23, 122, 46, 0.08);
    border-radius: 0;
    box-shadow:
        0 10px 28px rgba(24, 32, 25, 0.06),
        0 1px 0 rgba(23, 122, 46, 0.04);
    transition: min-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header.agrocops-header.smaller .agrocops-nav__panel {
    min-height: 62px;
    padding-top: 4px;
    padding-bottom: 4px;
    box-shadow:
        0 16px 36px rgba(24, 32, 25, 0.12),
        0 4px 14px rgba(23, 122, 46, 0.08);
}

header.agrocops-header .de-flex-col,
header.agrocops-header .header-col-mid,
header.agrocops-header .menu_side_area {
    display: flex;
    align-items: center;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

header.agrocops-header .header-col-mid {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

/* Logo */
header.agrocops-header #logo,
header.agrocops-header.smaller #logo,
header.agrocops-header.header-mobile #logo {
    display: flex !important;
    align-items: center;
    max-width: none !important;
    padding: 0 8px 0 2px;
    margin: 0;
}

header.agrocops-header #logo a,
header.agrocops-header .agrocops-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agrocops-logo-mark {
    display: block;
    width: 44px;
    height: 44px;
    overflow: hidden;
    flex: 0 0 44px;
    border-radius: 50%;
    background: #ffffff;
}

header.agrocops-header #logo img,
header.agrocops-header #logo .logo-main,
header.agrocops-header.smaller #logo .logo-main,
header.agrocops-header.header-mobile #logo .logo-main,
header.agrocops-header.smaller.scroll-light #logo .logo-main,
header.agrocops-header .agrocops-logo-mark img {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    height: 44px !important;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: multiply;
    transition: height 0.3s ease;
}

header.agrocops-header #logo .logo-mobile {
    display: none !important;
}

header.agrocops-header.smaller .agrocops-logo-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

header.agrocops-header.smaller #logo img.logo-main,
header.agrocops-header.smaller .agrocops-logo-mark img {
    height: 38px !important;
}

.agrocops-brand {
    display: block;
    color: #177A2E;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

header.agrocops-header.smaller .agrocops-brand {
    font-size: 14px;
}

.agrocops-logo-divider {
    display: block;
    width: 1px;
    height: 36px;
    margin: 0 6px 0 8px;
    background: rgba(24, 32, 25, 0.12);
    flex: 0 0 1px;
}

header.agrocops-header.smaller .agrocops-logo-divider {
    height: 32px;
}

/* Menu */
header.agrocops-header.smaller .agrocops-header__fx {
    opacity: 0.4;
}

header.agrocops-header #mainmenu,
header.agrocops-header.header-mobile #mainmenu,
header.agrocops-header .header-col-mid #mainmenu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 12px;
    position: relative;
    top: auto;
    left: auto;
    counter-reset: none;
}

header.agrocops-header #mainmenu li,
header.agrocops-header #mainmenu > li,
header.agrocops-header.header-mobile #mainmenu li {
    display: flex;
    float: none !important;
    position: relative;
    margin: 0 !important;
    padding: 0;
    list-style: none;
    width: auto;
    border: none !important;
}

header.agrocops-header #mainmenu > li:not(:last-child)::after,
header.agrocops-header #mainmenu > li.has-child:not(:last-child)::after,
header.agrocops-header.header-light #mainmenu > li.has-child:not(:last-child)::after,
header.agrocops-header.smaller.scroll-light #mainmenu > li.has-child:not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    right: -8px;
    width: 1px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    font-family: inherit !important;
    line-height: 0 !important;
    color: transparent !important;
    background: rgba(24, 32, 25, 0.08) !important;
    transform: translateY(-50%);
    pointer-events: none;
}

header.agrocops-header #mainmenu > li::before,
header.agrocops-header.smaller #mainmenu > li::before {
    content: none !important;
    display: none !important;
}

header.agrocops-header #mainmenu a,
header.agrocops-header #mainmenu > li > a,
header.agrocops-header #mainmenu a.menu-item,
header.agrocops-header.smaller #mainmenu > li > a,
header.agrocops-header.header-light #mainmenu a,
header.agrocops-header.header-mobile #mainmenu a.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 78px;
    min-height: 54px;
    padding: 6px 12px 10px !important;
    position: relative !important;
    color: #3d4540 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    line-height: 1.15;
    text-align: center;
    text-transform: none !important;
    background: transparent;
    border-radius: 12px;
    transition: color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

header.agrocops-header #mainmenu a i,
header.agrocops-header #mainmenu a .agrocops-nav__icon {
    display: block;
    color: #5f6a62;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.28s ease, color 0.28s ease;
}

header.agrocops-header #mainmenu a span,
header.agrocops-header #mainmenu a span.agrocops-nav__label,
header.agrocops-header #mainmenu a span:not(.badge),
header.agrocops-header #mainmenu li:hover a span:not(.badge),
header.agrocops-header #mainmenu a.active span:not(.badge) {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: none;
    margin: 0 !important;
    color: inherit !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.15;
    text-transform: none !important;
    border: none !important;
    white-space: nowrap;
}

header.agrocops-header #logo,
header.agrocops-header .agrocops-nav__tools {
    flex-shrink: 0;
}

header.agrocops-header #mainmenu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: #75C93E;
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(117, 201, 62, 0);
    transform: translateX(-50%);
    transition: width 0.28s ease, box-shadow 0.28s ease;
}

header.agrocops-header #mainmenu > li.is-active > a,
header.agrocops-header #mainmenu > li > a.active,
header.agrocops-header #mainmenu > li > a[aria-current="page"] {
    color: #177A2E !important;
    background: radial-gradient(circle at 50% 36%, rgba(239, 247, 232, 0.95), rgba(239, 247, 232, 0.15) 70%, transparent 100%);
}

header.agrocops-header #mainmenu > li.is-active > a i,
header.agrocops-header #mainmenu > li > a.active i {
    color: #75C93E !important;
}

header.agrocops-header #mainmenu > li.is-active > a::after,
header.agrocops-header #mainmenu > li > a.active::after,
header.agrocops-header #mainmenu > li > a[aria-current="page"]::after {
    width: 40px;
    box-shadow: 0 0 12px rgba(117, 201, 62, 0.65);
}

header.agrocops-header #mainmenu > li > a:hover,
header.agrocops-header #mainmenu > li > a:focus-visible {
    color: var(--ah-green) !important;
    background: rgba(239, 247, 232, 0.7);
}

header.agrocops-header #mainmenu > li > a:hover i,
header.agrocops-header #mainmenu > li > a:focus-visible i {
    color: var(--ah-bright) !important;
    transform: translateY(-2px);
}

header.agrocops-header #mainmenu > li > a:hover::after,
header.agrocops-header #mainmenu > li > a:focus-visible::after {
    width: 34px;
    box-shadow: 0 0 8px rgba(117, 201, 62, 0.35);
}

header.agrocops-header.smaller #mainmenu a.menu-item {
    min-height: 48px;
    padding-top: 4px !important;
    padding-bottom: 6px !important;
}

/* Submenu (Gallery albums) */
header.agrocops-header #mainmenu a i.agrocops-nav__caret {
    display: inline-block;
    margin-left: 5px;
    color: inherit;
    font-size: 8px;
    line-height: 1;
    vertical-align: middle;
    transition: transform 0.28s ease;
}

header.agrocops-header #mainmenu > li.agrocops-nav__has-sub:hover a i.agrocops-nav__caret,
header.agrocops-header #mainmenu > li.agrocops-nav__has-sub:focus-within a i.agrocops-nav__caret,
header.agrocops-header #mainmenu > li.agrocops-nav__has-sub.is-open a i.agrocops-nav__caret {
    transform: rotate(-180deg);
}

header.agrocops-header #mainmenu .agrocops-subnav__toggle {
    display: none;
}

header.agrocops-header #mainmenu ul.agrocops-subnav {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: max-content;
    min-width: 248px;
    max-width: 300px;
    max-height: min(70vh, 420px);
    height: auto;
    margin: 0;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    background: var(--ah-white, #fff);
    border: 1px solid rgba(23, 122, 46, 0.12);
    border-radius: 16px;
    box-shadow: 0 22px 46px rgba(24, 32, 25, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

/* keeps hover alive while the pointer crosses the gap below the nav item */
header.agrocops-header #mainmenu ul.agrocops-subnav::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

header.agrocops-header #mainmenu > li.agrocops-nav__has-sub:hover > ul.agrocops-subnav,
header.agrocops-header #mainmenu > li.agrocops-nav__has-sub:focus-within > ul.agrocops-subnav,
header.agrocops-header #mainmenu > li.agrocops-nav__has-sub.is-open > ul.agrocops-subnav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 10px);
}

header.agrocops-header #mainmenu ul.agrocops-subnav li {
    width: 100%;
}

header.agrocops-header #mainmenu ul.agrocops-subnav li.is-filtered-out,
header.agrocops-header #mainmenu ul.agrocops-subnav li.agrocops-subnav__empty[hidden] {
    display: none !important;
}

header.agrocops-header #mainmenu ul.agrocops-subnav li::after,
header.agrocops-header #mainmenu ul.agrocops-subnav li::before {
    content: none !important;
}

header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px !important;
    color: #3d4540 !important;
    font-size: 13.5px !important;
    text-align: left;
    background: transparent;
    border-radius: 10px;
}

header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item::after {
    content: none;
}

header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item i {
    flex: 0 0 auto;
    color: #75C93E;
    font-size: 15px;
}

header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item span {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    white-space: normal;
}

header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item:hover,
header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item:focus-visible {
    color: #177A2E !important;
    background: rgba(239, 247, 232, 0.9);
}

header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item:hover i,
header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item:focus-visible i {
    color: #177A2E;
    transform: none;
}

header.agrocops-header #mainmenu ul.agrocops-subnav li.is-active > a.menu-item {
    color: #177A2E !important;
    font-weight: 600 !important;
    background: rgba(239, 247, 232, 0.9);
}

header.agrocops-header #mainmenu ul.agrocops-subnav li.agrocops-subnav__search {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 6px;
    margin-bottom: 2px;
    background: var(--ah-white, #fff);
}

header.agrocops-header #mainmenu .agrocops-subnav__search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    color: #5f6a62;
    background: #eef5ea;
    border: 1px solid rgba(23, 122, 46, 0.18);
    border-radius: 10px;
}

header.agrocops-header #mainmenu .agrocops-subnav__search-field:focus-within {
    border-color: rgba(23, 122, 46, 0.35);
    box-shadow: 0 0 0 3px rgba(117, 201, 62, 0.16);
}

header.agrocops-header #mainmenu .agrocops-subnav__search-field i {
    flex: 0 0 auto;
    color: #75C93E;
    font-size: 14px;
    transform: none !important;
}

header.agrocops-header #mainmenu .agrocops-subnav__search-input,
header.agrocops-header #mainmenu input.agrocops-subnav__search-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 0;
    color: #182019;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

header.agrocops-header #mainmenu .agrocops-subnav__search-input::placeholder {
    color: #6b756e;
    font-weight: 500;
}

header.agrocops-header #mainmenu .agrocops-subnav__search-input::-webkit-search-decoration,
header.agrocops-header #mainmenu .agrocops-subnav__search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

header.agrocops-header #mainmenu ul.agrocops-subnav li.agrocops-subnav__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    color: #687169;
    font-size: 13px;
    font-weight: 500;
}

/* CTA */
.agrocops-nav__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 6px;
    flex: 0 0 auto;
}

header.agrocops-header .agrocops-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 148px;
    height: 40px;
    padding: 0 5px 0 12px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    background: var(--ah-cta);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(23, 122, 46, 0.26);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

header.agrocops-header .agrocops-cta i.agrocops-cta__leaf {
    font-size: 12px;
    color: #ffffff;
}

header.agrocops-header .agrocops-cta__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--ah-green);
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(23, 122, 46, 0.12);
    transition: transform 0.28s ease;
}

header.agrocops-header .agrocops-cta__arrow i {
    font-size: 11px;
    color: var(--ah-green);
}

header.agrocops-header .agrocops-cta:hover,
header.agrocops-header .agrocops-cta:focus-visible {
    transform: translateY(-2px);
    background: var(--ah-cta-hover);
    box-shadow: 0 16px 30px rgba(23, 122, 46, 0.38);
}

header.agrocops-header .agrocops-cta:hover .agrocops-cta__arrow,
header.agrocops-header .agrocops-cta:focus-visible .agrocops-cta__arrow {
    transform: translateX(3px);
}

header.agrocops-header #btn-extra {
    display: none !important;
}

header.agrocops-header #menu-btn,
header.agrocops-header.header-mobile #menu-btn,
header.agrocops-header.header-light #menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px 0 0;
    padding: 0;
    float: none;
    color: var(--ah-green) !important;
    background: var(--ah-pale);
    border: 1px solid rgba(23, 122, 46, 0.16);
    border-radius: 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

header.agrocops-header #menu-btn:before {
    font-size: 16px;
    line-height: 1;
}

.agrocops-drawer-meta {
    display: none;
}

header.agrocops-header .agrocops-cta--drawer {
    display: none;
}

/* Inner-page spacing now that the header occupies flow */
.agrocops-header-slot ~ #content #subheader {
    padding-top: 64px;
}

.agrocops-header-slot ~ #content .focus-beacons__stage {
    padding-top: 48px;
}

.agrocops-header-slot ~ #content .krishi-section {
    margin-top: 0 !important;
}

body.agrocops-nav-lock {
    overflow: hidden;
}

@media (max-width: 1400px) {
    header.agrocops-header #topbar {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    header.agrocops-header .agrocops-nav__panel,
    header.agrocops-header .de-flex {
        padding-left: 18px;
        padding-right: 18px;
    }

    header.agrocops-header #mainmenu {
        gap: 10px;
    }

    header.agrocops-header #mainmenu > li:not(:last-child)::after,
    header.agrocops-header #mainmenu > li.has-child:not(:last-child)::after,
    header.agrocops-header.header-light #mainmenu > li.has-child:not(:last-child)::after {
        right: -5px;
    }

    header.agrocops-header #mainmenu a.menu-item {
        min-width: 76px;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 12px !important;
    }

    header.agrocops-header #mainmenu a span.agrocops-nav__label,
    header.agrocops-header #mainmenu a span:not(.badge) {
        font-size: 12px !important;
    }

    header.agrocops-header #mainmenu a i {
        font-size: 16px;
    }

    header.agrocops-header .agrocops-cta {
        width: 136px;
        height: 38px;
    }
}

@media (max-width: 1200px) {
    header.agrocops-header #topbar a,
    header.agrocops-header #topbar .agrocops-topbar__address {
        font-size: 12px;
        padding-right: 10px;
    }

    .agrocops-topbar__sep {
        margin-right: 10px;
    }

    header.agrocops-header #logo img.logo-main,
    header.agrocops-header .agrocops-logo-mark img {
        height: 40px !important;
    }

    header.agrocops-header .agrocops-logo-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    header.agrocops-header .agrocops-brand {
        font-size: 14px;
    }

    header.agrocops-header #mainmenu {
        gap: 6px;
    }

    header.agrocops-header #mainmenu > li:not(:last-child)::after,
    header.agrocops-header #mainmenu > li.has-child:not(:last-child)::after,
    header.agrocops-header.header-light #mainmenu > li.has-child:not(:last-child)::after {
        right: -3px;
    }

    header.agrocops-header #mainmenu a.menu-item {
        min-width: 64px;
        min-height: 50px;
        gap: 3px;
    }
}

@media only screen and (max-width: 992px) {
    .agrocops-header-slot {
        min-height: 118px;
    }

    header.agrocops-header,
    header.agrocops-header.header-mobile,
    header.agrocops-header.smaller,
    header.agrocops-header.header-mobile.smaller {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 10px 0 0 !important;
        background: var(--ah-page) !important;
    }

    header.agrocops-header #topbar,
    header.agrocops-header.header-mobile #topbar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    header.agrocops-header.smaller #topbar {
        max-height: none;
        margin-bottom: 8px !important;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        overflow: visible !important;
    }

    header.agrocops-header .agrocops-nav__panel,
    header.agrocops-header .de-flex {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        min-height: 56px;
        padding: 6px 16px;
        border-radius: 0;
    }

    header.agrocops-header .de-flex-col:first-child { order: 1; }
    header.agrocops-header .agrocops-nav__tools { order: 2; }
    header.agrocops-header .header-col-mid { display: contents; }
    header.agrocops-header #mainmenu { order: 3; }
    header.agrocops-header .agrocops-cta--drawer { order: 4; }
    header.agrocops-header .agrocops-drawer-meta { order: 5; }

    header.agrocops-header #mainmenu,
    header.agrocops-header.header-mobile #mainmenu,
    header.agrocops-header .header-col-mid #mainmenu {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 8px;
        padding: 6px 4px 4px;
        gap: 4px;
        position: static !important;
        top: auto !important;
        left: auto !important;
    }

    header.agrocops-header.menu-open #mainmenu,
    header.agrocops-header.header-mobile.menu-open #mainmenu {
        display: flex;
    }

    header.agrocops-header #mainmenu > li,
    header.agrocops-header.header-mobile #mainmenu li {
        width: 100%;
    }

    header.agrocops-header #mainmenu > li:not(:last-child)::after,
    header.agrocops-header #mainmenu > li.has-child:not(:last-child)::after,
    header.agrocops-header.header-light #mainmenu > li.has-child:not(:last-child)::after {
        display: none !important;
    }

    header.agrocops-header #mainmenu a.menu-item,
    header.agrocops-header.header-mobile #mainmenu a.menu-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 14px;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 12px 14px !important;
        text-align: left;
        border-radius: 14px;
    }

    header.agrocops-header #mainmenu a::after {
        left: 14px;
        bottom: 8px;
        transform: none;
    }

    header.agrocops-header #mainmenu > li.is-active > a::after,
    header.agrocops-header #mainmenu > li > a.active::after {
        width: 44px;
    }

    header.agrocops-header #mainmenu a span.agrocops-nav__label,
    header.agrocops-header #mainmenu a span:not(.badge) {
        max-width: none;
        font-size: 16px !important;
    }

    /* Submenu becomes an accordion inside the drawer */
    header.agrocops-header #mainmenu > li.agrocops-nav__has-sub {
        flex-direction: column;
        align-items: stretch;
    }

    header.agrocops-header #mainmenu a i.agrocops-nav__caret {
        display: none;
    }

    header.agrocops-header #mainmenu .agrocops-subnav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 6px;
        right: 6px;
        width: 40px;
        height: 40px;
        padding: 0;
        color: #5f6a62;
        font-size: 12px;
        background: rgba(239, 247, 232, 0.75);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: transform 0.28s ease, color 0.28s ease;
    }

    header.agrocops-header #mainmenu > li.agrocops-nav__has-sub.is-open > .agrocops-subnav__toggle {
        color: #177A2E;
        transform: rotate(-180deg);
    }

    header.agrocops-header #mainmenu ul.agrocops-subnav,
    header.agrocops-header.header-mobile #mainmenu li ul.agrocops-subnav,
    header.agrocops-header #mainmenu > li.agrocops-nav__has-sub:hover > ul.agrocops-subnav,
    header.agrocops-header #mainmenu > li.agrocops-nav__has-sub:focus-within > ul.agrocops-subnav {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        min-width: 0;
        max-width: none;
        height: auto !important;
        max-height: 0;
        margin: 0;
        padding: 0 0 0 26px;
        overflow: hidden !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    header.agrocops-header #mainmenu ul.agrocops-subnav::before {
        content: none;
    }

    header.agrocops-header #mainmenu > li.agrocops-nav__has-sub.is-open > ul.agrocops-subnav {
        max-height: 620px;
        padding-top: 2px;
        padding-bottom: 6px;
    }

    header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item {
        min-height: 46px;
        padding: 10px 14px !important;
        font-size: 15px !important;
    }

    header.agrocops-header #mainmenu ul.agrocops-subnav a.menu-item span {
        font-size: 15px !important;
    }

    header.agrocops-header #mainmenu ul.agrocops-subnav li.agrocops-subnav__search {
        position: static;
        padding: 4px 0 8px;
        background: transparent;
    }

    header.agrocops-header #mainmenu .agrocops-subnav__search-field {
        min-height: 44px;
        background: rgba(239, 247, 232, 0.9);
    }

    header.agrocops-header #mainmenu .agrocops-subnav__search-input,
    header.agrocops-header #mainmenu input.agrocops-subnav__search-input {
        height: 42px;
        font-size: 15px;
    }

    header.agrocops-header .agrocops-logo-divider,
    header.agrocops-header .agrocops-cta:not(.agrocops-cta--drawer) {
        display: none;
    }

    header.agrocops-header #menu-btn {
        display: inline-flex !important;
        z-index: 5;
    }

    header.agrocops-header.menu-open .agrocops-nav__panel {
        padding-bottom: 18px;
        border-radius: 0;
        box-shadow: 0 22px 48px rgba(24, 32, 25, 0.14);
    }

    header.agrocops-header.menu-open .agrocops-cta--drawer,
    header.agrocops-header.menu-open .agrocops-drawer-meta {
        display: flex;
        grid-column: 1 / -1;
    }

    header.agrocops-header .agrocops-cta--drawer {
        width: 100%;
        max-width: 280px;
        margin: 10px 8px 4px;
    }

    .agrocops-drawer-meta {
        flex-direction: column;
        gap: 12px;
        margin: 8px 8px 6px;
        padding: 16px;
        background: var(--ah-pale);
        border-radius: 18px;
    }

    .agrocops-drawer-meta a,
    .agrocops-drawer-meta span {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        color: var(--ah-ink);
        font-size: 14px;
        font-weight: 500;
    }

    .agrocops-drawer-meta i {
        color: var(--ah-green);
    }

    .agrocops-drawer-meta .social-icons {
        display: flex;
        gap: 10px;
    }

    .agrocops-drawer-meta .social-icons a {
        width: 44px;
        height: 44px;
        justify-content: center;
        color: var(--ah-green);
        background: var(--ah-white);
        border: 1px solid rgba(23, 122, 46, 0.16);
        border-radius: 50%;
    }

    header.agrocops-header #topbar .agrocops-topbar__address,
    header.agrocops-header #topbar .agrocops-topbar__sep--address,
    header.agrocops-header #topbar .agrocops-topbar__social {
        display: none !important;
    }

    .agrocops-topbar__bar {
        justify-content: center;
        min-height: 38px;
        padding: 0 14px;
        border-radius: 999px;
    }

    header.agrocops-header #topbar a {
        font-size: 12px;
        padding-right: 10px;
    }

    .agrocops-header__leaf--tr,
    .agrocops-header__leaf--bl {
        opacity: 0.05;
    }
}

@media only screen and (max-width: 767px) {
    header.agrocops-header #topbar,
    header.agrocops-header.header-mobile #topbar {
        display: flex !important;
    }

    header.agrocops-header #logo .logo-main,
    header.agrocops-header .agrocops-logo-mark img {
        display: block !important;
        height: 40px !important;
    }

    header.agrocops-header .agrocops-logo-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    header.agrocops-header .agrocops-brand {
        font-size: 14px;
    }

    header.agrocops-header #logo .logo-mobile {
        display: none !important;
    }

    header.agrocops-header #topbar .agrocops-topbar__contacts a:nth-child(n + 3),
    header.agrocops-header .agrocops-topbar__sep:last-of-type {
        display: none;
    }

    .agrocops-header-slot ~ #content #subheader {
        padding-top: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    header.agrocops-header *,
    header.agrocops-header *::before,
    header.agrocops-header *::after,
    header.agrocops-header #topbar {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto;
    }

    header.agrocops-header #mainmenu > li > a:hover i,
    header.agrocops-header .agrocops-cta:hover,
    header.agrocops-header .agrocops-cta:hover .agrocops-cta__arrow,
    header.agrocops-header #topbar .social-icons a:hover {
        transform: none;
    }
}
