/* ============ TOKENS ============ */
:root {
    --bg-dark: #111114;
    --bg-light: #f3ede2;
    --surface: #1e1e22;
    --surface-2: #26262b;
    --text: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #b5b5b8;
    --text-muted-dark: #555;
    --accent: #4d7cff;
    --accent-hover: #3d6bee;
    --border: #2e2e34;
    --star: #ffb648;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --container: 1200px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 34px;
    border-radius: 4px;
    font-weight: 400;
    font-size: 14px;
    transition: background .2s, color .2s, transform .2s;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--light {
    background: #fff;
    color: var(--text-dark);
}
.btn--light:hover { background: rgba(255,255,255,.85); }

.btn--ghost {
    border: 1px solid rgba(255,255,255,.6);
    color: #fff;
    background: transparent;
}
.btn--ghost:hover { background: rgba(255,255,255,.1); }

.btn--dark {
    background: var(--text-dark);
    color: #fff;
}
.btn--dark:hover { background: #000; }

.btn--outline-dark {
    border: 1px solid rgba(26,26,26,.45);
    color: var(--text-dark);
    background: transparent;
}
.btn--outline-dark:hover { background: rgba(26,26,26,.06); border-color: var(--text-dark); }

.section-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.agro__buttons .btn--dark {
    background: #f5cf8a;
    color: var(--text-dark);
}
.agro__buttons .btn--dark:hover { background: #efc274; }

.agro__buttons .btn--outline-dark { border-color: var(--text-dark); }

.btn--full { width: 100%; }

.btn--pill {
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    background: transparent;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
}
.btn--pill:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

/* ============ HEADER ============ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 22px 0;
}

.header__bar {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 4px 24px rgba(20, 30, 60, .08);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    flex-shrink: 0;
}

.logo__img {
    width: 26px;
    height: 21px;
    display: block;
    margin-left: 10px;
}

.logo__text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    color: var(--text-dark);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    transition: opacity .2s;
}
.nav__link:hover { opacity: .65; }

.nav__chevron {
    flex-shrink: 0;
    opacity: .65;
    transition: transform .2s;
}
.nav__link--has-sub:hover .nav__chevron { transform: rotate(180deg); }

.nav__item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav__item--has-sub::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.nav__sub {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 4px 24px rgba(20, 30, 60, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 50;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__item--has-sub:hover .nav__chevron { transform: rotate(180deg); }

.nav__sub-item { margin: 0; }
.nav__sub-link {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    transition: background .15s, opacity .15s;
}
.nav__sub-link:hover { background: rgba(255, 255, 255, .35); opacity: 1; }

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.header__phone-icon {
    flex-shrink: 0;
    color: var(--text-dark);
}

.header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    padding: 7px 17px;
    background: #fff;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s, color .2s;
    border-radius: 2px;
}
.header__cta:hover { background: var(--text-dark); color: #fff; }

.burger {
    display: none;
    width: 36px;
    height: 36px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.burger--open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.burger-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    min-width: 200px;
    padding: 8px 0;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 8px 24px rgba(20, 30, 60, .12);
    border-radius: 4px;
    z-index: 60;
}
.burger-menu__link {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    transition: background .15s, opacity .15s;
}
.burger-menu__link:hover { background: rgba(255, 255, 255, .55); }
.burger-menu__link--sub { padding-left: 32px; font-size: 12px; opacity: .85; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 720px;
    padding: 160px 0 90px;
    background: #142850;
    color: #fff;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20,40,80,.45) 0%, rgba(20,40,80,.15) 55%, rgba(20,40,80,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 560px;
}

.hero__eyebrow {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 14px;
    opacity: .85;
}

.hero__title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 28px;
}

.hero__text {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 36px;
    opacity: .95;
}

.hero__buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__logo {
    display: block;
    margin-top: 28px;
    max-width: 220px;
    padding-top: 20px;
    height: auto;
}

/* ============ SECTIONS ============ */
.section {
    padding: 90px 0;
}

.section--dark { background: var(--bg-dark); color: var(--text); }
.section--light { background: var(--bg-light); color: var(--text-dark); }
.section--gray {  background:  var(--surface); color: var(--text); }

.section__title {
    font-size: 38px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 56px;
}

/* ============ PRODUCT BLOCK ============ */
.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.product--reverse .product__gallery { order: 2; }
.product--reverse .product__info { order: 1; }

.product__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 12px;
}

.product__img {
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-color: #2a2a30;
}

.product__img--tall { grid-row: span 2; }
.product__img--wide { grid-column: span 2; }

.product__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tag {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: var(--radius-sm);
    font-size: 31px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.tag--dark { border-color: rgba(0,0,0,.4); color: var(--text-dark); }

.product__title {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}
.product__title--dark { color: var(--text-dark); }

.product__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}
.product__text--dark { color: var(--text-muted-dark); }

/* ============ WMS BLOCK ============ */
.wms-section {
    padding: 90px 0;
    padding-left: max(48px, calc((100vw - var(--container)) / 2 * 0.4));
    padding-right: max(48px, calc((100vw - var(--container)) / 2 * 0.4));
}

.wms {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.wms__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 12px;
    height: 460px;
}

.wms__img--main { grid-column: 1; grid-row: 1 / span 3; }
.wms__img--top  { grid-column: 2; grid-row: 1; }
.wms__img--mid  { grid-column: 2; grid-row: 2; }
.wms__img--bot  { grid-column: 2; grid-row: 3; }

.wms__img {
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-color: #2a2a30;
}

.wms__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 460px;
}

.wms__title {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
}

.wms__text {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
}

/* ============ ERP BLOCK ============ */
.erp-section {
    padding: 90px 0;
    padding-left: max(48px, calc((100vw - var(--container)) / 2 * 0.4));
    padding-right: max(48px, calc((100vw - var(--container)) / 2 * 0.4));
}

.erp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.erp__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 210px 150px;
    gap: 12px;
}

.erp__img {
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-color: #2a2a30;
}

.erp__img--a { grid-column: 1; grid-row: 1; }
.erp__img--c { grid-column: 1; grid-row: 2; }
.erp__img--d { grid-column: 1; grid-row: 3; }
.erp__img--b { grid-column: 2; grid-row: 1 / span 3; }

.erp__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 480px;
}

.erp__title {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
}

.erp__text {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
}

/* ============ AGRO BLOCK ============ */
.agro-section {
    padding: 90px 0;
    padding-left: max(48px, calc((100vw - var(--container)) / 2 * 0.4));
    padding-right: max(48px, calc((100vw - var(--container)) / 2 * 0.4));
}

.agro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
    gap: 20px;
    align-items: start;
}

.agro__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 460px;
    justify-self: end;
}

.agro__title {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.agro__text {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-dark);
}

.agro__gallery {
    display: grid;
    grid-template-columns: 0.85fr 2.3fr 1.5fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 540px;
}

.agro__img {
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-color: #d6cdb6;
}

.agro__img--wheat   { grid-column: 1; grid-row: 1; }
.agro__img--tractor { grid-column: 2; grid-row: 1 / span 2; }
.agro__img--combine { grid-column: 3; grid-row: 1; }
.agro__img--field   { grid-column: 3; grid-row: 2; }

/* ============ SOLUTIONS (TABS) ============ */
.solutions-tabs {
    width: 100%;
    background: #fff;
    padding: 10px 0;
}

.solutions {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: var(--bg-dark);
}

.solutions__tabs-row {
    position: relative;
    z-index: 3;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tab {
    padding: 7px 14px;
    border-radius: 0;
    border: 1px solid var(--text-dark);
    border-radius: 3px;
    background: transparent;
    color: var(--text-dark);
    font-size: 11px;
    transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.3); }
.tab--active {
    --tab-from: #5c8aff;
    --tab-to: #2a5fe6;
    background: linear-gradient(135deg, var(--tab-from) 0%, var(--tab-to) 100%);
    color: #fff;
    border-radius: 0;
    border-color: transparent;
}
.tab--active:hover {
    background: linear-gradient(135deg, var(--tab-from) 0%, var(--tab-to) 100%);
    border-color: transparent;
}
.tab--active[data-tab="1"] { --tab-from: #f5984c; --tab-to: #db671b; }
.tab--active[data-tab="2"] { --tab-from: #4dc06f; --tab-to: #1d8e44; }
.tab--active[data-tab="3"] { --tab-from: #4cc7cd; --tab-to: #1d8c97; }
.tab--active[data-tab="4"] { --tab-from: #b65ddb; --tab-to: #7426b3; }
.tab--active[data-tab="5"] { --tab-from: #d6a847; --tab-to: #946e1c; }
.tab--active[data-tab="6"] { --tab-from: #f0656e; --tab-to: #c32a3b; }

.solutions__stage {
    position: relative;
    min-height: 600px;
}

.solutions__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility 0s linear .45s;
}
.solutions__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility 0s linear 0s;
}

.solutions__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    z-index: 0;
}

.solutions__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,15,18,.92) 0%, rgba(15,15,18,.55) 55%, rgba(15,15,18,.25) 100%);
    z-index: 1;
}

.solutions__slide--split {
    --grad-from: #5c8aff;
    --grad-to: #2a5fe6;
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(255,255,255,.28) 0%, transparent 60%),
        radial-gradient(ellipse 80% 70% at 100% 100%, rgba(255,255,255,.15) 0%, transparent 55%),
        linear-gradient(135deg, var(--grad-from) 0%, var(--grad-to) 100%);
}

.solutions__slide--split[data-slide="1"] { --grad-from: #f5984c; --grad-to: #db671b; }
.solutions__slide--split[data-slide="2"] { --grad-from: #4dc06f; --grad-to: #1d8e44; }
.solutions__slide--split[data-slide="3"] { --grad-from: #4cc7cd; --grad-to: #1d8c97; }
.solutions__slide--split[data-slide="4"] { --grad-from: #b65ddb; --grad-to: #7426b3; }
.solutions__slide--split[data-slide="5"] { --grad-from: #d6a847; --grad-to: #946e1c; }
.solutions__slide--split[data-slide="6"] { --grad-from: #f0656e; --grad-to: #c32a3b; }

.solutions__slide--split .solutions__bg {
    left: auto;
    right: 0;
    width: auto;
    height: 100%;
    aspect-ratio: 4096 / 2731;
    background-size: cover;
    background-position: center;
}

.solutions__slide--split .solutions__overlay {
    display: none;
}

.solutions__container {
    position: relative;
    z-index: 2;
    padding-top: 30px;
    padding-bottom: 110px;
    min-height: 540px;
    display: flex;
    align-items: center;
}

.solutions__body {
    max-width: 480px;
    width: 100%;
}

.solutions__title {
    margin-top:40px;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 22px;
}

.solutions__subtitle {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 28px;
}

.solutions__text {
    font-size: 17px;
    line-height: 1.5;
    opacity: .9;
    margin-bottom: 32px;
}

.solutions__buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.solutions__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 65px;
    z-index: 4;
    pointer-events: none;
}
.solutions__controls > .container {
    pointer-events: none;
}
.solutions__controls .solutions__dots,
.solutions__controls .solutions__arrows {
    pointer-events: auto;
}

.solutions__dots {
    display: none;
    gap: 8px;
    margin-bottom: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    transition: background .2s, transform .2s;
}
.dot:hover { background: rgba(255,255,255,.6); }
.dot--active { background: #fff; }

.solutions__arrows {
    display: flex;
    gap: 10px;
}

.solutions__arrow {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, transform .2s;
}
.solutions__arrow:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.85);
}
.solutions__arrow:active { transform: scale(.94); }

/* ============ CERTIFICATES ============ */
.certs-section {
    padding: 80px 0 90px;
}

.certs__title {
    font-size: 43px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    margin-bottom: 64px;
}

.certs__mobile-header { display: none; }

.certs {
    position: relative;
}

.certs__stage {
    position: relative;
    height: 420px;
}

.cert {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 340px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .55);
    cursor: pointer;
    transform-origin: center center;
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0.5);
    opacity: 0;
    transition: transform .6s cubic-bezier(.22,.61,.36,1),
                opacity .35s ease,
                box-shadow .6s ease;
    will-change: transform, opacity;
}

.cert--instant {
    transition: none !important;
}

.cert--ghost {
    pointer-events: none;
}

.cert__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Coverflow positions */
.cert[data-pos="0"] {
    transform: translate(-50%, -50%) translateX(0) scale(1);
    opacity: 1;
    z-index: 5;
    cursor: default;
    box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .65);
}

.cert[data-pos="-1"] {
    transform: translate(-50%, -50%) translateX(-250px) scale(0.85);
    opacity: 0.85;
    z-index: 4;
}

.cert[data-pos="1"] {
    transform: translate(-50%, -50%) translateX(250px) scale(0.85);
    opacity: 0.85;
    z-index: 4;
}

.cert[data-pos="-2"] {
    transform: translate(-50%, -50%) translateX(-468px) scale(0.72);
    opacity: 0.5;
    z-index: 3;
}

.cert[data-pos="2"] {
    transform: translate(-50%, -50%) translateX(468px) scale(0.72);
    opacity: 0.5;
    z-index: 3;
}

.cert[data-pos="-3"] {
    transform: translate(-50%, -50%) translateX(-468px) scale(0.72);
    opacity: 0;
    z-index: 2;
}

.cert[data-pos="3"] {
    transform: translate(-50%, -50%) translateX(468px) scale(0.72);
    opacity: 0;
    z-index: 2;
}

.cert[data-pos="-1"]:hover,
.cert[data-pos="1"]:hover,
.cert[data-pos="-2"]:hover,
.cert[data-pos="2"]:hover {
    opacity: 1;
}

.certs__controls {
    display: flex;
    gap: 12px;
    padding-left: 8px;
}

.certs__arrow {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, transform .2s;
}
.certs__arrow:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
}
.certs__arrow:active { transform: scale(.94); }

/* ============ CERT LIGHTBOX ============ */
.cert-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: cert-lightbox-in .2s ease;
}

.cert-lightbox[hidden] { display: none; }

@keyframes cert-lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cert-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    user-select: none;
    -webkit-user-drag: none;
}

.cert-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}
.cert-lightbox__close:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .7);
}
.cert-lightbox__close:active { transform: scale(.94); }

/* ============ CTA PILL ============ */
.cta-section { padding: 0 0 90px; }

.cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-pill {
    --grad-from: #5c8aff;
    --grad-to: #2a5fe6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(255,255,255,.28) 0%, transparent 60%),
        radial-gradient(ellipse 80% 70% at 100% 100%, rgba(255,255,255,.15) 0%, transparent 55%),
        linear-gradient(135deg, var(--grad-from) 0%, var(--grad-to) 100%);
    color: #fff;
    padding: 64px 164px;
    border-radius: var(--radius-pill);
    text-align: center;
    box-shadow: 0 18px 40px -10px rgba(77,124,255,.4);
    transition: filter .2s, transform .2s;
}
.cta-pill:hover { filter: brightness(1.05); transform: translateY(-2px); }

.cta-eyebrow {
    font-size: 24px;
    color: rgba(255,255,255,.85);
    font-weight: 400;
}

.cta-pill__title {
    font-size: 54px;
    font-weight: 400;
    line-height: 1.15;
}

/* ============ FORM ============ */
.form {
    max-width: 658px;
    margin: 0 auto;
    background: #343434;
    border-radius: 15px;
    padding: 33px 66px 44px;
}

.form__title {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.form__legal {
    display: flex;
    align-items: center;
    gap: 23px;
    margin-bottom: 20px;
}

.legal-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    user-select: none;
}

.legal-option__label {
    color: #707070;
    font-size: 14px;
    line-height: 1.5;
}

input.legal-option__cb {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.legal-option__box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: #1e1e1e;
    position: relative;
    transition: background .2s;
}

input.legal-option__cb:checked + .legal-option__box {
    background: #1962e1;
}

input.legal-option__cb:checked + .legal-option__box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input.legal-option__cb:focus-visible + .legal-option__box {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.input {
    width: 100%;
    height: 51px;
    padding: 0 27px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: #1e1e1e;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.input::placeholder { color: #707070; }
.input:focus { outline: none; border-color: var(--accent); }

.btn--submit {
    height: 51px;
    width: 100%;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    background:
        radial-gradient(circle at 76% 110%, rgba(138,181,255,.7) 0%, rgba(107,161,255,0) 55%),
        radial-gradient(circle at 0% 0%, rgba(138,181,255,.55) 0%, rgba(107,161,255,0) 50%),
        linear-gradient(90deg, #1962e1 0%, #1962e1 100%);
    transition: filter .2s, transform .2s;
}
.btn--submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--submit:active { transform: translateY(0); }

/* CF7 integration: emit grid items unwrapped, style checkboxes to match design */
.section--form .wpcf7-form-control-wrap { display: contents; }
.section--form .form__legal .wpcf7-form-control-wrap { display: inline-flex; }

.form__legal .wpcf7-checkbox,
.form__legal .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.form__legal .wpcf7-list-item { padding: 0; }

.form__legal .wpcf7-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    user-select: none;
    flex-direction: row-reverse;
}

.form__legal .wpcf7-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: none;
    border-radius: 3px;
    background: #1e1e1e;
    cursor: pointer;
    position: relative;
    transition: background .2s;
}
.form__legal .wpcf7-checkbox input[type="checkbox"]:checked { background: #1962e1; }
.form__legal .wpcf7-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.form__legal .wpcf7-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.form__legal .wpcf7-list-item-label {
    color: #707070;
    font-size: 14px;
    line-height: 1.5;
}

/* ============ CONTACTS ============ */
.contacts-section {
    padding: 90px 0;
    padding-right: 0;
}

.contacts {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 56px;
    align-items: stretch;
    padding-left: max(32px, calc((100% - var(--container)) / 2 + 32px));
}

.contacts__info {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.contacts__info .section__title {
    text-align: left;
    margin-bottom: 32px;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 16px;
    color: var(--text);
    line-height: 1.5;
    list-style: none;
    padding: 0;
    margin-bottom: 48px;
}

.contacts__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contacts__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
}

.contacts__item a {
    color: inherit;
    text-decoration: none;
}
.contacts__item a:hover { color: #fff; }

.contacts__company {
    padding: 18px 20px;
    background: var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.contacts__company p { margin: 5px 0; }
.contacts__company-name {
    color: #fff;
    font-size: 14px;
}

.contacts__logo {
    display: block;
    margin-top: 20px;
    max-width: 160px;
    height: auto;
}

.contacts__map {
    position: relative;
    min-height: 480px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    overflow: hidden;
    background: #0f1320;
}

.contacts__map-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 48px;
    height: 48px;
    background: url('../icon-map.webp') center/contain no-repeat;
    pointer-events: none;
    z-index: 2;
}

/* ============ CONTENT PAGES ============ */
.site-main {
    padding: 140px 0 96px;
    min-height: 60vh;
}

.site-main > .container > article {
    max-width: 820px;
}

.site-main h1,
.site-main .site-page__title {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 28px;
    color: var(--text);
}

.site-main .entry-content h2,
.site-main .site-page__content h2 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    margin: 40px 0 16px;
}

.site-main .entry-content h3,
.site-main .site-page__content h3 {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
    margin: 32px 0 12px;
}

.site-main .entry-content p,
.site-main .site-page__content p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.site-main .entry-content a,
.site-main .site-page__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-main .entry-content a:hover,
.site-main .site-page__content a:hover { color: var(--accent-hover); }

.site-main .entry-content ul,
.site-main .entry-content ol,
.site-main .site-page__content ul,
.site-main .site-page__content ol {
    margin: 0 0 18px;
    padding-left: 24px;
    color: var(--text-muted);
}
.site-main .entry-content ul,
.site-main .site-page__content ul { list-style: disc; }
.site-main .entry-content ol,
.site-main .site-page__content ol { list-style: decimal; }
.site-main .entry-content li,
.site-main .site-page__content li { margin-bottom: 8px; line-height: 1.6; }

.site-main .entry-content img,
.site-main .site-page__content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.site-main .entry-content blockquote,
.site-main .site-page__content blockquote {
    margin: 24px 0;
    padding: 12px 20px;
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
    font-style: italic;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .header__bar { gap: 12px; }
    .nav__link { padding: 6px 10px; font-size: 12px; }
    .nav__link[href="#partners"],
    .nav__link[href="#reviews"],
    .nav__link[href="#promo"] { display: none; }
    .logo__text { display: none; }
    .header__phone { display: none; }
    .header__actions { gap: 10px; }

    .product {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product--reverse .product__gallery { order: 0; }

    .contacts-section { padding-right: 0; }
    .contacts {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-left: 0;
    }
    .contacts__info { padding-left: 32px; padding-right: 32px; }
    .contacts__map { min-height: 320px; border-radius: 0; }

    .wms-section { padding: 60px 0; padding-left: 0; padding-right: 0; }
    .wms {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 32px;
    }
    .wms__info { max-width: none; }
    .wms__gallery { height: 360px; }

    .erp-section { 
        padding: 60px 0;
        padding-left: max(48px, calc((100vw - var(--container)) / 2 * 0.4));
        padding-right: max(48px, calc((100vw - var(--container)) / 2 * 0.4));
    }
    .erp {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 32px;
    }
    .erp__info { max-width: none; }
    .erp__gallery { grid-template-rows: 130px 180px 130px; }

    .agro-section { padding: 60px 0; padding-left: 0; }
    .agro {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 32px;
    }
    .agro__info { max-width: none; padding-right: 0; }
    .agro__gallery { height: 420px; grid-template-columns: 0.9fr 2.2fr 1.4fr; }

    .certs__title { font-size: 24px; margin-bottom: 40px; }
    .certs__stage { height: 320px; }
    .cert { width: 180px; height: 256px; }
    .cert[data-pos="-1"] { transform: translate(-50%, -50%) translateX(-189px) scale(0.85); opacity: 0.85; }
    .cert[data-pos="1"]  { transform: translate(-50%, -50%) translateX(189px)  scale(0.85); opacity: 0.85; }
    .cert[data-pos="-2"] { transform: translate(-50%, -50%) translateX(-354px) scale(0.72); opacity: 0.5; }
    .cert[data-pos="2"]  { transform: translate(-50%, -50%) translateX(354px)  scale(0.72); opacity: 0.5; }
    .cert[data-pos="-3"] { transform: translate(-50%, -50%) translateX(-354px) scale(0.72); opacity: 0; }
    .cert[data-pos="3"]  { transform: translate(-50%, -50%) translateX(354px)  scale(0.72); opacity: 0; }

    .hero__title { font-size: 30px; }
    .cta-pill { padding: 50px 90px; gap: 10px; }
    .cta-pill__title { font-size: 24px; }
    .cta-eyebrow { font-size: 13px; }
    .form { padding: 28px 24px 32px; }
    .form__title { font-size: 24px; }
    .form__grid { grid-template-columns: 1fr; gap: 12px; }

    .solutions__stage { min-height: 580px; }
    .solutions__container { min-height: 580px; }
}

@media (max-width: 560px) {
    .tag { font-size: 20px; }
    .container { padding: 0 16px; }
    .section { padding: 60px 0; }
    .wms { padding: 0 16px; }
    .wms__gallery { height: 280px; gap: 8px; }
    .wms__title { font-size: 26px; }
    .erp { padding: 0 16px; }
    .erp__gallery { grid-template-rows: 90px 130px 90px; gap: 8px; }
    .erp__title { font-size: 26px; }
    .agro { padding: 0 16px; }
    .agro__title { font-size: 26px; }
    .agro__gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 120px 180px 120px;
        height: auto;
        gap: 8px;
    }
    .agro__img--wheat   { grid-column: 1; grid-row: 1; }
    .agro__img--tractor { grid-column: 2; grid-row: 1 / span 2; }
    .agro__img--combine { grid-column: 1; grid-row: 2; }
    .agro__img--field   { grid-column: 1 / span 2; grid-row: 3; }
    .hero { padding: 120px 0 60px; min-height: 600px; }
    .hero__title { font-size: 26px; }
    .hero__logo, .contacts__logo { margin-left: auto; margin-right: auto; }

    .header { padding: 14px 0; }
    .header__bar { gap: 6px; }
    .logo__img { width: 28px; height: 28px; }
    .nav { gap: 0; }
    .nav__link { padding: 6px 8px; font-size: 11px; }
    .nav__link[href="#certificates"] { display: none; }
    .burger { display: inline-flex; }
    .burger-menu:not([hidden]) { display: block; }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px;
    }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { flex-shrink: 0; }

    .solutions__title { font-size: 24px; margin-top: 0; }
    .solutions__subtitle { font-size: 20px; margin-bottom: 18px; }
    .solutions__text { font-size: 15px; margin-bottom: 24px; }

    /* Mobile: stack photo on top, stripe indicators, then colored block */
    .solutions__stage { min-height: 0; position: relative; }

    .solutions__slide {
        position: relative;
        inset: auto;
        display: none;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    .solutions__slide.is-active { display: flex; }

    .solutions__slide--split {
        flex-direction: column;
        background: var(--bg-dark);
    }

    .solutions__slide--split .solutions__bg {
        position: relative;
        inset: auto;
        width: 100%;
        height: 240px;
        aspect-ratio: auto;
        background-position: center;
        background-size: cover;
        flex-shrink: 0;
    }

    .solutions__slide--split .solutions__container {
        position: relative;
        flex: 1;
        min-height: 0;
        padding: 48px 16px 36px;
        display: block;
        background:
            radial-gradient(ellipse 70% 80% at 0% 0%, rgba(255,255,255,.28) 0%, transparent 60%),
            radial-gradient(ellipse 80% 70% at 100% 100%, rgba(255,255,255,.15) 0%, transparent 55%),
            linear-gradient(135deg, var(--grad-from) 0%, var(--grad-to) 100%);
    }

    .solutions__body { max-width: none; }

    /* Stripe indicators sit just below the photo, at the top of the colored block */
    .solutions__controls {
        position: absolute;
        top: 240px;
        left: 0;
        right: 0;
        bottom: auto;
        padding-top: 18px;
    }
    .solutions__controls > .container { padding: 0 16px; }
    .solutions__dots {
        display: flex;
        gap: 6px;
        margin-bottom: 0;
        justify-content: flex-start;
    }
    .dot {
        width: 28px;
        height: 3px;
        border-radius: 2px;
        background: rgba(255,255,255,.45);
    }
    .dot--active { background: #fff; }

    /* Arrows positioned at the right side, next to the title */
    .solutions__arrows {
        display: flex;
        position: absolute;
        right: 16px;
        top: 60px;
        gap: 8px;
        width: 72px;
        height: 32px;
        z-index: 5;
        pointer-events: auto;
    }
    .solutions__arrow {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border-color: rgba(255,255,255,.7);
    }

    .certs-section { padding: 40px 0 50px; }
    .certs__title--desktop { display: none; }
    .certs__controls:not(.certs__controls--mobile) { display: none; }
    .certs__mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 24px;
    }
    .certs__title--mobile {
        font-size: 34px;
        line-height: 1.2;
        text-align: left;
        margin: 0;
    }
    .certs__controls--mobile { padding-left: 0; gap: 8px; }
    .certs__controls--mobile .certs__arrow {
        width: 32px;
        height: 32px;
        border-color: rgba(255,255,255,.4);
    }

    .certs__stage { height: 300px; overflow: hidden; }
    .cert {
        width: 62%;
        max-width: 220px;
        height: 100%;
        border-radius: 8px;
        box-shadow: 0 12px 28px -10px rgba(0,0,0,.5);
    }
    .cert__img {
        object-fit: contain;
        object-position: center;
        image-rendering: -webkit-optimize-contrast;
    }
    .cert[data-pos="0"]  { transform: translate(-50%, -50%) translateX(0)     scale(1); opacity: 1; }
    .cert[data-pos="-1"] { transform: translate(-50%, -50%) translateX(-108%) scale(1); opacity: 1; }
    .cert[data-pos="1"]  { transform: translate(-50%, -50%) translateX(108%)  scale(1); opacity: 1; }
    .cert[data-pos="-2"] { transform: translate(-50%, -50%) translateX(-216%) scale(1); opacity: 0; }
    .cert[data-pos="2"]  { transform: translate(-50%, -50%) translateX(216%)  scale(1); opacity: 0; }
    .cert[data-pos="-3"] { transform: translate(-50%, -50%) translateX(-216%) scale(1); opacity: 0; }
    .cert[data-pos="3"]  { transform: translate(-50%, -50%) translateX(216%)  scale(1); opacity: 0; }

    .contacts__info { padding-left: 16px; padding-right: 16px; }
    .contacts__map { height: 280px; min-height: 280px; }

    .site-main { padding: 100px 0 60px; }
    .site-main h1,
    .site-main .site-page__title { font-size: 28px; margin-bottom: 20px; }
    .site-main .entry-content h2,
    .site-main .site-page__content h2 { font-size: 22px; margin-top: 28px; }
    .site-main .entry-content h3,
    .site-main .site-page__content h3 { font-size: 18px; margin-top: 24px; }
}
