main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.logo {
    width: 2.5rem;
}

.name {
    font-size: 1.5rem;
}

/* --- Sprites --- */
.vk, .ok {
  width: 48px;
  height: 48px;
  background-image: url(../media/image14.png); /* пример */
}
.ok { /* сдвиг под пример */
  background-position: -183px -122px;
}

.bs-primary-bg-subtle {
    background-color: var(--bs-primary-bg-subtle)
}

.cheap, .contract, .online {
    width: 218px;
    height: 218px;
    background-image: url(../media/image14.png);
}
.cheap { background-position: -334px -622px; }
.online { background-position: 0 -313px; }

/* --- Carousel uniform image sizes --- */
#carousel-wrapper .carousel-item {
    height: 550px;
}

#carousel-wrapper .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Form field errors in red --- */
.help-block,
.help-block-error,
.invalid-feedback,
.has-error .help-block {
    color: #dc3545;
}

/* --- Новый стиль для главной страницы --- */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-index {
    min-height: 100vh;
    padding-bottom: 40px;
    animation: fade-in 1s ease-out;
}

.body-content {
    margin-top: 40px;
}

.columns-hero .hero-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.09);
    transition: transform 0.18s, box-shadow 0.18s;
    padding: 44px 24px 36px 24px;
    margin-bottom: 24px;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.columns-hero .hero-card:hover {
    transform: translateY(-5px) scale(1.024);
    box-shadow: 0 18px 34px 0 rgba(31, 38, 135, 0.12);
}
.columns-hero img.hero-img {
    background: transparent !important;
    box-shadow: 0 4px 24px 0 rgba(49,49,77,0.09);
    border-radius: 50%;
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 2rem;
    border: none;
}
.columns-hero h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 14px;
}
.columns-hero p {
    color: #666;
    min-height: 61px;
    font-size: 1.08rem;
}
.columns-hero .btn {
    border-radius: 71px;
    font-size: 1.06rem;
    padding: 12px 18px;
    border: 2px solid #c7cad6;
    color: #57597a;
    background: transparent;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.16s;
}
.columns-hero .btn:hover {
    color: #fff;
    background: #6c4ad2; /* фирменный/яркий цвет */
    border-color: #6c4ad2;
    box-shadow: 0 2px 18px #6c4ad255;
    text-shadow: 0 1px 7px #5d45b5ae;
}
@media (max-width: 991px) {
    .columns-hero .hero-card { min-height: 470px; }
}
@media (max-width: 767px) {
    .body-content {
        margin-top: 12px;
        margin-bottom: 30px;
    }
    .columns-hero .hero-card {
        min-height: unset;
        padding: 32px 10px 22px 10px;
    }
    .site-index {
        padding-bottom: 10px;
    }
}

/* --- Новый современный HEADER --- */
.custom-header, .custom-navbar {
    background: rgba(255,255,255,0.62) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 6px 32px 0 #6c4ad226;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border: 1.5px solid #ece8f722;
    margin-bottom: 0.2rem;
    min-height: 70px;
    padding-top: 0.7rem;
}
.navbar-brand .brandname {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: 900;
    color: #5e45c2 !important;
    letter-spacing: 2px;
    font-size: 2.2rem;
    text-shadow: 0 4px 24px #bfb7ef62;
    line-height: 1;
}
.custom-navbar .navbar-nav .nav-link, .custom-navbar .navbar-nav .btn-link {
    color: #55467b !important;
    font-weight: 700;
    margin-left: 1.6rem;
    font-size: 1.09rem;
    transition: color .18s, text-shadow .18s;
    border-radius: 8px;
    padding: 6px 18px 6px 12px;
    position: relative;
    overflow: hidden;
}
.custom-navbar .navbar-nav .nav-link:hover, .custom-navbar .navbar-nav .btn-link:hover {
    color: #fff !important;
    background: linear-gradient(85deg, #6c4ad2 0%, #998fe8 100%);
    text-shadow: 0 2px 8px #998fe899;
    box-shadow: 0 2px 12px #6a4ad228;
    animation: navfade .18s;
}
@keyframes navfade {
  0% { filter: blur(8px); opacity: 0; }
  100% { filter: blur(0); opacity: 1; }
}
.custom-header .logo {
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: none;
    box-shadow: 0 2px 16px #927fe621;
}

/* --- Новый современный футер --- */
.custom-footer {
    background: rgba(255,255,255,0.88);
    border-top: 1.5px solid #edeafd90;
    box-shadow: 0 -12px 34px 0 #836ad921;
    border-radius: 40px 40px 0 0;
    min-height: 54px;
    padding-bottom: 1.5rem;
    margin-top: 3rem;
    font-size: .98rem;
    position: relative;
}
.custom-footer .row { border-top: 1.5px solid #f2eeff50; margin-top: 0.8rem; }
.custom-footer .small { color: #7766a7; font-family: 'Montserrat', monospace; }
.custom-footer a, .custom-footer a:visited {
    color: #6c4ad2;
    text-decoration: none;
    transition: color .16s;
    border-radius: 5px;
    padding: 2px 6px;
}
.custom-footer a:hover {
    color: #fff;
    background: #6c4ad2;
    text-shadow: 0 0 10px #ad98f2;
}
.custom-footer img {
    opacity: 0.8;
    margin-right: 0.2em;
    margin-bottom: 0.1em;
    transition: opacity 0.18s, transform .14s;
}
.custom-footer img:hover { opacity: 1; transform: scale(1.15); }

main > .container {
  animation: fade-in 1s ease-out;
}