:root {
    --hero-height: 90vh;
    --brand: #198754;
    --text: #222;
    --muted: #6c757d;
    --radius: 1rem;
    --shadow: 0 12px 30px rgba(0, 0, 0, .08);
    --card: #ffffff;
    --soft: #f6fbf8;
    --ring: 0px 1px 20px #49505736;
    --logo: #b1ce58;
}

html[data-bs-theme="light"],
:root {
    /* Color for hero-slim card-icon and other on non-index */
    --bs-primary: #198754;
    --bs-primary-rgb: 25, 135, 84;
    --bs-link-color: #198754;
    --bs-link-hover-color: #146c43;
    /* bi-icon color */
    --brand-green: #198754;

}

/* Style of fonts for html's */
body {
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
}

h1,
h2,
h3 {
    letter-spacing: .2px;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 800;
}

.container {
    max-width: 1300px;
}

.rounded-4 {
    border-radius: var(--radius) !important;
}

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.section-soft {
    background: linear-gradient(180deg, #f6faf8 0%, #fff 100%);
}

/* btn color */
.btn-primary {
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #146c43;
    --bs-btn-active-bg: #146c43;
    --bs-btn-active-border-color: #13653f;
    --bs-btn-disabled-bg: #198754;
    --bs-btn-disabled-border-color: #198754;
}

/* Outline btn color */
.btn-outline-primary {
    --bs-btn-color: #198754;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-bg: #198754;
    --bs-btn-hover-border-color: #198754;
    --bs-btn-active-bg: #146c43;
    --bs-btn-active-border-color: #146c43;
}

/* if someone doesnt have our color */
.bg-primary {
    background-color: #198754 !important;
}

.text-primary {
    color: #198754 !important;
}

.border-primary {
    border-color: #198754 !important;
}

/* Smooth anchors */
html {
    scroll-behavior: smooth;
}

/* icon color */
.bi {
    color: var(--brand-green);
}

.btn .bi,
a .bi,
.text-white .bi,
.navbar .nav-link .bi,
.btn-outline-light .bi,
.btn-light .bi,
.btn-primary .bi {
    color: currentColor !important;
}

/* TOPBAR */
.topbar {
    --tb-h: 38px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    background: #198754;
    color: #fff;
    height: var(--tb-h);
}

.topbar .container {
    height: 100%;
}

.topbar .topbar-link {
    color: #fff;
    text-decoration: none;
    opacity: .95;
    display: inline-flex;
    align-items: center;
}

.topbar .topbar-link:hover {
    opacity: 1;
    text-decoration: underline;
}


/* NAVBAR */
.navbar.fixed-top {
    top: 38px;
}

.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--brand);
}

/* HERO */
.hero {
    position: relative;
    margin-top: 56px;
    min-height: 70vh;
    color: #fff;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-pos, center);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 26, 20, .70), rgba(14, 26, 20, .78));
    z-index: 1;
}

.hero .badge-pill {
    display: inline-block;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    font-weight: 700;
    letter-spacing: .08em;
}

.hero .container,
.hero .orb {
    z-index: 2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(24px);
    opacity: .35;
    animation: float 18s ease-in-out infinite;
}

.orb.one {
    width: 240px;
    height: 240px;
    background: #23c07a;
    top: 8%;
    left: 6%;
}

.orb.two {
    width: 300px;
    height: 300px;
    background: #00a36c;
    bottom: -40px;
    right: 8%;
    animation-duration: 22s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-18px)
    }
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: all .6s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}


/* Maps */
.yandex-map {
    height: 420px;
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--radius);
    width: 100%;
}

@media (min-width: 992px) {

    #map-routes,
    #map-minsk {
        height: 420px;
        min-height: 320px;
    }

}

/* Мобильная «карточная» таблица для #priceTable */
@media (max-width: 575.98px) {
    #priceTable thead {
        display: none;
    }

    #priceTable tbody tr {
        display: block;
        margin-bottom: .75rem;
        border: 1px solid var(--bs-border-color);
        border-radius: .5rem;
        overflow: hidden;
    }

    #priceTable tbody td {
        display: flex;
        justify-content: space-between;
        gap: .75rem;
        padding: .5rem .75rem;
        border-bottom: 1px dashed var(--bs-border-color);
    }

    #priceTable tbody td:last-child {
        border-bottom: 0;
    }

    #priceTable tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--bs-secondary-color);
    }
}

/* SERVICES */
.svc-card {
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0px 1px 20px #49505736;
}

.svc-badge {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bs-success);
    font-weight: 700
}

.table thead th {
    font-weight: 700;
}

.input-group .input-group-text {
    background: #f3f7f5;
}

.doc-badge {
    background: #f6f7f9;
    color: #222;
}

/* Крупный бейдж для списка документов */
.doc-badge-lg {
    font-size: 1rem;
    /* было ~0.75em у .badge */
    line-height: 1.25;
    padding: .65rem 1rem;
    /* визуально «воздушнее» */
    border-radius: .75rem;
    text-align: left;
    /* читается лучше, чем центр */
}

/* PURCHASE */
/* Мобильная адаптация таблиц */
@media (max-width: 575.98px) {
    .rtable thead {
        display: none;
    }

    .rtable tbody tr {
        display: block;
        margin-bottom: .75rem;
        border: 1px solid var(--bs-border-color);
        border-radius: .5rem;
        overflow: hidden;
        background: #fff;
    }

    .rtable tbody td {
        display: block;
        text-align: left;
        padding: .5rem .75rem;
        border-bottom: 1px dashed var(--bs-border-color);
        gap: 0;
    }

    .rtable tbody td:last-child {
        border-bottom: 0;
    }

    .rtable tbody td::before {
        display: none;
    }
}

.value-card {
    background: var(--card);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--ring);
    height: 100%;
}

.table thead th {
    font-weight: 700;
}

.input-group .input-group-text {
    background: #f3f7f5;
}

/* Steps */
.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #23c07a, #198754);
    box-shadow: 0 10px 24px rgba(25, 135, 84, .35);
}

/* SALES */
/* Мобильная адаптация таблицы прайса */
@media (max-width: 575.98px) {
    #priceTable thead {
        display: none;
    }

    #priceTable tbody tr {
        display: block;
        margin-bottom: .75rem;
        border: 1px solid var(--bs-border-color);
        border-radius: .5rem;
        overflow: hidden;
        background: #fff;
    }

    #priceTable tbody td {
        display: flex;
        justify-content: space-between;
        gap: .75rem;
        padding: .5rem .75rem;
        border-bottom: 1px dashed var(--bs-border-color);
    }

    #priceTable tbody td:last-child {
        border-bottom: 0;
    }

    #priceTable tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--bs-secondary-color);
    }
}

.table-responsive {
    border-radius: 10px;
    box-shadow: 0px 1px 20px #93939336;
}

/* CONTACTS */
.contact-card i {
    color: var(--bs-primary);
}

.map-frame {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--bs-box-shadow-sm);
}

/* ABOUT */
.brand-highlight {
    color: var(--brand);
    font-weight: 600;
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border-style: solid;
    border-color: var(--brand);
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 1.7rem;
}

/* ===== stats ===== */
.stat {
    text-align: center;
    background: #fff;
    border-radius: 18px;
    padding: 24px 16px;
    height: 100%;
    box-shadow: var(--ring);
}

.stat .num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--brand)
}

.stat .cap {
    color: var(--muted)
}

/* ===== STORY (sticky cards) ===== */
.pillars-section {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 3rem 0 80px 0;
}

.pillars-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    height: 70vh;
    background: var(--card);
    border-radius: 30px;
    margin-bottom: 10px;
    overflow: hidden;
    position: sticky;
    top: 10%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    transition: transform 0s ease, opacity .3s ease;
}

.pillars-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillars-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.pillars-tag {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: .4rem;
    font-weight: 700;
}

@media (max-width: 992px) {
    .pillars-content {
        padding: 1.5rem
    }
}

@media (max-width: 768px) {
    .pillars-card {
        grid-template-columns: 1fr;
        height: auto
    }

    .pillars-image {
        height: 240px
    }
}

/* ===== TEAM ===== */
.team-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--ring);
    height: 100%;
}

.avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}

.role {
    color: var(--muted);
    font-size: .95rem
}

/* CAREERS */
/* JOB CARDS */
.job-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--ring);
    height: 100%;
}

.job-badges .badge {
    margin-right: .35rem;
    margin-bottom: .35rem
}

/* CONTACTS */
.company-card .icon {
    font-size: 1.7rem;
}
/* COMMANDEER */
.value-card dd{ min-width:0; } 
.value-card .text-break{
  overflow-wrap:anywhere;   
  word-break:break-word;      
}
@page { size: A4; margin: 12mm; }
@media print {
  /* скрыть всё лишнее */
  body * { visibility: hidden; }
  #companyCard, #companyCard * { visibility: visible; }

  /* расположить карточку как страницу */
  #companyCard{
    position: absolute; left: 0; top: 0;
    width: 186mm;               /* 210 - 2*12 мм полей */
  }

  /* косметика для печати */
  .value-card{ box-shadow:none !important; border:1px solid #ddd; }
  #navbarMain, #topbar, .hero, .btn, .copy-btn{ display:none !important; }

  /* лучшее соответствие цветам при печати */
  body{ -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* FOOTER */
.footer {
    background: #f5f5f5;
    /* темнее низа героев — шов незаметен */
    border-top: 1px solid #ffffff26;
    color: #e6ebf2;
}

.footer h6 {
    color: var(--text);
}

.link-footer {
    color: var(--muted);
    text-decoration: none;
}

.link-footer:hover {
    color: var(--text);
    text-decoration: underline;
}