:root {
    --text-white: #fff;
    --text-dark: #000;
    --gray-color: #3D4756;
    --flag-color: #1b4aa3;
    --blue-color: #000080;
    --blue-gray-color: #4f627e;
    --transition: 0.15s ease;
}

h2, h3, h4 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

input, textarea {
    font-family: Mont;
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 1rem;
}

.flex {
    display: flex;
}

.align-cetner {
    align-items: center;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.grid-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.gap-3 {
    gap: 3rem;
}

.gap-4 {
    gap: 4rem;
}

.gap-5 {
    gap: 5rem;
}

.image {
    max-width: 100%;
    height: auto;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 3rem !important;
}

.bold {
    font-weight: 700;
    color: var(--flag-color);
}

.brush {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    z-index: -1;
    top: 1.7rem;
    width: 17rem;
}

.relative {
    position: relative;
}

.brush-long {
    top: 1.8rem;
    width: 28rem;
}

.text-bold {
    font-weight: bold !important;
}

.head {
    position: relative;
}

.contact {
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--blue-gray-color);
}

.contact:hover {
    background-color: var(--blue-gray-color);
    color: white;
}

.splide__arrow {
    background: transparent !important;
    opacity: 1 !important;
}

.text-right {
    text-align: right;
}

.partner__head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.partner__title {
    max-width: 70%;
}

.partner__logo {
    margin-bottom: 2rem;
}

.partner__description {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.partner__cert {
    max-width: 16rem;
}

.partner__subheading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.partner__text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.partner__row {
    margin-bottom: 2.5rem;
}

.partner__link {
    display: inline-block;
    background-color: var(--blue-gray-color);
    border-radius: 7px;
    color: white !important;
    padding: 0.2rem 0.4rem;
    transition: var(--transition);
    margin-bottom: 0.2rem;
}

.partner__link:hover {
    background-color: #4f627eb2;
}

.input {
    display: block;
    padding: 0.5rem 0.8rem;
    color: black;
    border: 1px solid #d3d3d3;
    margin: 0 auto;
    border-radius: 8px;
    transition: var(--transition);
}

.input:focus {
    background-color: #d3d3d34d;
    border: 1px solid transparent;
}

@media (max-width: 992px) {
    .l-hide {
        display: none;
    }

    .partner__head {
        text-align: center;
    }
    
    .partner__link {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .partner__head {
        flex-direction: column;
    }

    .partner__title {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (min-width: 991px) {
    .m-hide {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .brush {
        display: none;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem !important;
    }

    .page.container, .partner.container {
        padding-top: 7rem !important;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 410px) {
    h1 {
        font-size: 2.2rem;
    }
}

/* По умолчанию элементы видимы */
.only-pc,
.only-mobile {
    display: block; /* поменяйте на inline/inline-flex и т.п. при необходимости */
}

/* Мобильные устройства (≤ 767.98px): скрываем .only-pc */
@media (max-width: 767.98px) {
    .only-pc {
      display: none !important;
    }
}

/* Планшеты и десктопы (≥ 768px): скрываем .only-mobile */
@media (min-width: 768px) {
    .only-mobile {
      display: none !important;
    }
}