:root {
    --red: #e1191b;
    --red-dark: #b80f13;
    --nut: #4f1d09;
    --hazelnut: #cc7d48;
    --cream: #f7f2e9;
    --beige: #fff8ef;
    --chocolate: #200100;
    --sage: #5b7c62;
    --ink-soft: #6d5a50;
    --line: rgba(79, 29, 9, 0.14);
    --white: #fffdf8;
    --shadow: 0 20px 50px rgba(79, 29, 9, 0.12);
    --shadow-soft: 0 10px 26px rgba(79, 29, 9, 0.1);
    --radius: 20px;
    --radius-sm: 12px;
    --container: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--chocolate);
    background: var(--cream);
    line-height: 1.55;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.link-button {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.link-button:hover {
    color: var(--red);
}

.top-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.top-action i {
    display: none;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 242, 233, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.topbar {
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-soft);
}

.topbar__inner,
.topbar__links,
.topbar__contact,
.messengers,
.main-nav,
.nav-panel,
.nav-list,
.hero-actions {
    display: flex;
    align-items: center;
}

.topbar__inner {
    min-height: 38px;
    justify-content: flex-end;
    gap: 20px;
}

.topbar__links,
.topbar__contact {
    gap: 18px;
    flex-wrap: wrap;
}

.messengers {
    gap: 8px;
}

.messengers a {
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--nut);
    background: rgba(255, 248, 239, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.top-action {
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 999px;
}

.messengers a:hover {
    color: var(--white);
    background: var(--red);
}

.topbar a:hover,
.nav-list a:hover,
.text-link:hover {
    color: var(--red);
}

.main-nav {
    min-height: 78px;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo__image {
    display: block;
    width: 150px;
    height: auto;
}

.nav-panel {
    gap: 22px;
}

.nav-list {
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
}

.nav-toggle,
.nav-close {
    display: none;
    border: 0;
    background: transparent;
    color: var(--nut);
    cursor: pointer;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--red);
    box-shadow: 0 14px 26px rgba(225, 25, 27, 0.22);
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(225, 25, 27, 0.28);
}

.btn--small {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 14px;
}

.btn--ghost {
    color: var(--white);
    background: rgba(32, 1, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

.btn--ghost:hover {
    background: rgba(32, 1, 0, 0.42);
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--nut);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(32, 1, 0, 0.78), rgba(79, 29, 9, 0.54) 45%, rgba(32, 1, 0, 0.08));
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -44%);
    color: var(--white);
}

.hero-slide__content h1,
.hero-slide__content h2 {
    max-width: 780px;
    margin: 0 0 20px;
    color: var(--white);
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-slide__content p:not(.eyebrow) {
    max-width: 640px;
    margin: 0 0 28px;
    color: rgba(255, 253, 248, 0.88);
    font-size: 20px;
}

.hero-actions {
    gap: 14px;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 46px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--red);
}

.section {
    padding: 88px 0;
}

.section-head {
    margin-bottom: 34px;
}

.section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
    gap: 30px;
    align-items: end;
}

.section-head h2 {
    margin: 0;
    color: var(--nut);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-head p:not(.eyebrow) {
    margin: 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 13px;
}

.help-section {
    background: linear-gradient(180deg, var(--cream), var(--beige));
}

.help-board {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
}

.help-tabs {
    display: grid;
    gap: 10px;
}

.help-tab {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--nut);
    background: rgba(255, 248, 239, 0.74);
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.help-tab i {
    color: var(--hazelnut);
}

.help-tab.is-active {
    color: var(--white);
    background: var(--nut);
    box-shadow: var(--shadow-soft);
}

.help-tab.is-active i {
    color: var(--beige);
}

.help-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.solution-card,
.event-card,
.question-card,
.news-card,
.project-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.solution-card {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    color: var(--nut);
    font-weight: 750;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.solution-card:hover {
    border-color: rgba(225, 25, 27, 0.36);
    transform: translateY(-2px);
}

.solution-card i {
    color: var(--red);
}

.callback-strip {
    padding: 78px 0;
    background: var(--nut);
}

.callback-strip__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 46px;
    align-items: center;
}

.callback-strip img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(32, 1, 0, 0.35);
}

.quick-form {
    padding: 34px;
    border-radius: 24px;
    background: var(--beige);
    box-shadow: var(--shadow);
}

.quick-form h2 {
    margin: 0 0 12px;
    color: var(--nut);
    font-size: 36px;
}

.quick-form p:not(.eyebrow) {
    margin: 0 0 24px;
    color: var(--ink-soft);
}

.quick-form label,
.site-search {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--nut);
    font-size: 14px;
    font-weight: 700;
}

.quick-form input,
.site-search input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    padding: 0 16px;
    color: var(--chocolate);
}

.quick-form input:focus,
.site-search input:focus {
    outline: 3px solid rgba(225, 25, 27, 0.16);
    border-color: var(--red);
}

.event-grid,
.question-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.event-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.event-card h3,
.question-card h3,
.news-card h3,
.project-card h3 {
    margin: 12px 0 10px;
    color: var(--nut);
    line-height: 1.2;
}

.event-card p,
.question-card p,
.news-card p,
.project-card p {
    color: var(--ink-soft);
}

.event-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
}

.event-card__foot a,
.text-link {
    color: var(--red);
    font-weight: 800;
}

.section-head--split > .text-link {
    justify-self: end;
}

.badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--sage);
    font-size: 13px;
    font-weight: 800;
}

.badge--fresh {
    background: var(--red);
}

.question-section {
    background: var(--beige);
}

.question-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.question-card i {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    background: var(--hazelnut);
    font-size: 24px;
}

.question-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.content-section {
    background: var(--cream);
}

.content-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.9fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.content-column {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.content-column > .text-link {
    align-self: flex-end;
    margin-top: auto;
    padding-top: 18px;
    text-align: right;
}

.news-list {
    display: grid;
    gap: 16px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 18px;
}

.news-list .news-card {
    margin-bottom: 0;
}

.news-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.news-card div {
    flex: 1;
    padding: 20px;
}

.news-card span {
    color: var(--hazelnut);
    font-size: 14px;
    font-weight: 800;
}

.news-card .text-link {
    display: inline-flex;
    margin-top: 4px;
}

.article-library {
    margin-top: 46px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.article-card span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--sage);
    font-size: 13px;
    font-weight: 800;
}

.article-card h3 {
    margin: 16px 0 14px;
    color: var(--nut);
    font-size: 24px;
    line-height: 1.2;
}

.article-card h2 {
    margin: 16px 0 14px;
    color: var(--nut);
    font-size: 28px;
    line-height: 1.16;
}

.article-card p {
    margin: 0 0 14px;
    color: var(--ink-soft);
}

.article-card p:last-child {
    margin-bottom: 0;
}

.article-card--feature {
    overflow: hidden;
}

.article-card--feature h3 {
    margin: 28px 0 12px;
    color: var(--nut);
    font-size: 22px;
    line-height: 1.2;
}

.article-lead {
    font-size: 18px;
    color: var(--chocolate);
}

.article-figure {
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--beige);
}

.article-figure img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.article-figure figcaption {
    padding: 14px 18px;
    color: var(--ink-soft);
    font-size: 14px;
}

.article-figure--split img {
    height: 280px;
}

.article-note,
.article-summary {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid rgba(225, 25, 27, .18);
    border-radius: var(--radius-sm);
    background: rgba(255, 248, 239, .78);
}

.article-note strong {
    color: var(--nut);
}

.article-checklist,
.article-summary ol {
    display: grid;
    gap: 10px;
    padding-left: 22px;
    color: var(--ink-soft);
}

.article-checklist li::marker,
.article-summary li::marker {
    color: var(--red);
    font-weight: 800;
}

.site-header--static {
    position: static;
}

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

.article-nav__list {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
}

.articles-hero {
    padding-top: 74px;
    background: var(--beige);
}

.articles-hero h1 {
    margin: 0;
    color: var(--nut);
    font-size: clamp(38px, 5vw, 66px);
    line-height: .98;
}

.article-grid--page {
    grid-template-columns: 1fr;
    max-width: 980px;
}

.article-grid--page .article-card {
    scroll-margin-top: 24px;
}

.article-card .text-link {
    display: inline-flex;
    margin-top: 4px;
}

.project-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    flex: 1;
    min-height: 160px;
    padding: 22px;
    margin-bottom: 14px;
    background-position: center;
    background-size: cover;
}

.project-card:nth-of-type(2) {
    margin-bottom: 0;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(32, 1, 0, 0.78), rgba(79, 29, 9, 0.48));
}

.project-card h3,
.project-card p {
    color: var(--white);
}

.project-card--wms {
    background-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=900&q=80");
}

.project-card--erp {
    background-image: url("https://images.unsplash.com/photo-1581092921461-eab62e97a780?auto=format&fit=crop&w=900&q=80");
}

.client-grid {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
    margin-bottom: 18px;
}

.client-grid img {
    display: block;
    width: 100%;
    height: 74px;
    object-fit: contain;
    object-position: center;
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.about-section {
    background: var(--beige);
}

.about-tabs {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.about-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--line);
}

.about-tabs__nav button {
    flex: 1;
    min-height: 62px;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--nut);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.about-tabs__nav button:last-child {
    border-right: 0;
}

.about-tabs__nav button.is-active {
    color: var(--white);
    background: var(--nut);
}

.about-tabs__content {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 24px;
    padding: 26px;
}

.about-visual {
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
}

.about-visual img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.about-tabs__panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.about-item {
    position: relative;
    min-height: 108px;
    padding: 22px;
    border-radius: 18px;
    background: var(--beige);
    overflow: hidden;
}

.about-item::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 42%;
    background-image: var(--about-image);
    background-position: center;
    background-size: cover;
    opacity: 0.2;
    mask-image: linear-gradient(90deg, transparent, #000 34%);
}

.about-item > * {
    position: relative;
    z-index: 1;
}

.about-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--nut);
    font-size: 22px;
}

.about-item p {
    margin: 0;
    color: var(--ink-soft);
}

.bottom-search {
    padding: 34px 0;
    background: var(--beige);
    border-top: 1px solid var(--line);
}

.bottom-search__inner {
    display: grid;
    grid-template-columns: 220px minmax(260px, 1fr) 340px;
    gap: 26px;
    align-items: end;
}

.logo--light {
    background: transparent;
}

.site-search {
    position: relative;
    margin: 0;
    color: var(--nut);
}

.site-search input {
    padding-right: 44px;
}

.site-search i {
    position: absolute;
    right: 16px;
    bottom: 17px;
    color: var(--hazelnut);
}

.seo-content {
    padding: 48px 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
}

.seo-content h2 {
    margin: 0 0 16px;
    color: var(--nut);
    font-size: 22px;
}

.seo-content p {
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.footer {
    padding: 56px 0 0;
    color: rgba(255, 253, 248, 0.78);
    background: var(--nut);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
}

.footer h3 {
    margin: 0 0 16px;
    color: var(--white);
}

.footer a {
    display: block;
    margin-bottom: 10px;
}

.footer a:hover {
    color: var(--white);
}

.footer-contacts p,
.footer-contacts address {
    margin: 0 0 14px;
    font-style: normal;
}

.footer-phone {
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
}

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

.footer-icons a {
    display: grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    padding: 0 8px;
    margin: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 253, 248, 0.12);
    font-size: 13px;
    font-weight: 800;
}

.footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 34px 0 74px;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 253, 248, 0.18);
    font-size: 13px;
}

.footer__bottom p {
    margin: 0;
}

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

.socials a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 253, 248, 0.12);
}

.commercial-offer {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
    color: var(--white);
    background: var(--red);
    box-shadow: none;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.footer .commercial-offer {
    margin-bottom: 0;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 86px;
    z-index: 80;
    max-width: 360px;
    padding: 16px 18px;
    border-radius: 16px;
    color: var(--white);
    background: var(--nut);
    box-shadow: var(--shadow);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(32, 1, 0, 0.56);
    backdrop-filter: blur(6px);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--beige);
    box-shadow: 0 30px 80px rgba(32, 1, 0, 0.3);
    transform: translateY(12px);
    transition: transform 0.2s ease;
}

.modal.is-open .modal__dialog {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--nut);
    background: var(--white);
    cursor: pointer;
}

.modal__dialog h2 {
    margin: 0 44px 12px 0;
    color: var(--nut);
    font-size: 34px;
    line-height: 1.1;
}

.modal__dialog p:not(.eyebrow) {
    margin: 0 0 22px;
    color: var(--ink-soft);
}

.modal-form {
    display: grid;
    gap: 16px;
}

.modal-form label {
    display: grid;
    gap: 8px;
    color: var(--nut);
    font-size: 14px;
    font-weight: 700;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    color: var(--chocolate);
    padding: 14px 16px;
}

.modal-form textarea {
    resize: vertical;
    min-height: 130px;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: 3px solid rgba(225, 25, 27, 0.16);
    border-color: var(--red);
}
