:root {
    --primary-purple: #401a7f;
    --secondary-purple: #463883;
    --accent-purple: #fe78d7;
    --accent-blue: #62d1e4;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #777777;
    --border-radius: 10px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
html.overlay-open .navbar-fixed-top {
    z-index: 400;
}

.element-invisible {
    margin: 0;
    padding: 0;
    width: 1px;
    position: absolute !important;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    max-width: 100%;
}

.main-container .region.region-header h1,
.main-container .region.region-header .h1 {
    margin-top: 15;
}

.navigation-top-wrapper {
    padding-top: 15px;
}

/* ===== NAVIGATION ===== */
.navbar {
    margin-bottom: 0 !important;
    background: transparent;
}
.navbar-header {
    flex-shrink: 0
}
.navbar-header::before, .navbar-header::after {
    display: none;
}
.navbar-header img {
    height: 80px !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
}

@media (min-width: 1224px) {
    .navbar-header {
        height: auto !important;
    }

    .navbar-header img {
        width: 90px !important;
    }


    .region.region-navigation {
        display: flex;
        align-items: center !important;
    }
}

/* ===== SUPERFISH MENU ===== */
#superfish-main li,
#superfish-main-accordion li {
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
    margin-right: 8px;
    transition: var(--transition);
}

/* Desktop menu styles */
@media (min-width: 1224px) {
    #superfish-main {
        margin-top: 0 !important;
    }

    .active-trail {
        background: var(--secondary-purple) !important;
        color: var(--white) !important;
        border: none !important;
        text-decoration: none !important;
        outline: none !important;
    }

    .sf-depth-1 a:hover {
        background: #fe78d7 !important;
        border-radius: var(--border-radius) !important;
        color: var(--white) !important;
    }
}

/* Front page specific menu styles */
.path-frontpage #superfish-main li:nth-child(3).active-trail,
.path-frontpage #superfish-main li:nth-child(4).active-trail {
    background: transparent !important;
    color: var(--accent-blue) !important;
}

.path-frontpage #superfish-main li:nth-child(3).active-trail a,
.path-frontpage #superfish-main li:nth-child(4).active-trail a {
    color: var(--accent-blue) !important;
}

.path-frontpage #superfish-main li:nth-child(3).active-trail a:hover,
.path-frontpage #superfish-main li:nth-child(4).active-trail a:hover {
    background: #fe78d7 !important;
    color: var(--white) !important;
}

/* Dropdown styles */
#superfish-main .sf-depth-2.sf-no-children,
#superfish-main .sf-multicolumn-wrapper {
    background: var(--primary-purple) !important;
    border-radius: var(--border-radius);
}

/* Mobile menu styles */
@media (max-width: 1223px) {
    /* .active-trail {
        background-color: var(--primary-purple) !important;
    } */

    .sf-depth-1 a:hover {
        background-color: #fe78d7 !important;
        border-radius: var(--border-radius) !important;
    }
}

#superfish-main-toggle:hover {
    color: #848282 !important;
    text-decoration: none;
}

/* ===== CONTENT STYLES ===== */
.content {
    /* color: var(--text-dark); */
    color: var(--white);
}

.block-title,
.page-header {
    border: none !important;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 15px;
    background: var(--white);
}

#main-standardfront-page {
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
}

.submitted {
    margin-bottom: 1em;
    font-style: italic;
    font-weight: normal;
    color: var(--text-light);
}

/* ===== FORM STYLES ===== */
.form-group:last-child,
.panel:last-child {
    margin-bottom: 0;
}

.form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(140, 82, 254, 0.2);
}

/* Error states */
.error,
.form-group.has-error {
    color: #a94442;
}

.form-group.has-error .form-control {
    border-color: #a94442;
}

.form-group.has-error label {
    color: #a94442;
    font-weight: 600;
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.btn-primary:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

/* ===== TABLE STYLES ===== */
.table-striped>tbody>tr:nth-child(odd)>td.module,
.table>tbody>tr>td.module {
    background: #ddd;
    font-weight: 700;
}

/* ===== MODAL & OVERLAY ===== */
#overlay-container,
.overlay-modal-background,
.overlay-element {
    z-index: 1500;
}

.modal-backdrop {
    z-index: 1610;
}

.modal {
    z-index: 1620;
}

.modal-dialog {
    z-index: 1630;
}

.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
}

/* ===== UTILITY CLASSES ===== */
.justify-content-center {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
}

.hidden-anonymous {
    display: none !important;
}

body.user-logged-in .visible-admin {
    display: inline-block !important;
}

/* ===== ACCESSIBILITY ===== */
body.path-frontpage h1.page-header {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== SEARCH FORM ===== */
form#search-block-form {
    margin: 0;
}

.navbar #block-search-form {
    float: none;
    margin: 5px 0 5px 5px;
}

@media (min-width: 992px) {
    .navbar #block-search-form {
        float: right;
    }
}

/* ===== ACTION LINKS ===== */
ul.action-links {
    margin: 12px 0;
    padding: 0;
}

ul.action-links li {
    display: inline;
    margin: 0;
    padding: 0 6px 0 0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .navbar-header {
        text-align: center;
    }

    .form-horizontal .form-group label {
        text-align: left;
        padding-left: 0;
    }
}

/* ===== ANIMATIONS ===== */
.glyphicon-spin {
    display: inline-block;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

/* ===== IMAGE STYLES ===== */
img {
    max-width: 100%;
    height: auto;
    /* border-radius: var(--border-radius); */
}

/* ===== TEXT FORMATTING ===== */
.text-format-wrapper {
    margin-bottom: 15px;
}

.filter-wrapper {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    background: #f8f9fa;
}

.hero_slider {
    position: relative;
    width: 100%;
}

.views_slideshow_cycle_teaser_section {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1900 / 600;
}

.views_slideshow_cycle_slide {
    width: 100% !important;
    height: auto !important;
}

.views_slideshow_cycle_slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.views-field.views-field-field-izobrazhenie-kategorii-tur.image-category {
    box-shadow: 15px 15px 30px rgba(25, 39, 48, 0.6), 15px 15px 0 1px rgba(25, 39, 48, 0.03) !important;
    backdrop-filter: blur(10px) !important;
}

.views-col {
    padding: 10px !important;
}

/* @media (min-width: 768px) and (max-width: 1300px) {
    #navbar-collapse {
        width: 100%;
        display: flex !important;
        justify-content: center;
    }
} */

.view-napravleniya img {
    border-radius: 16px 16px 0 0;
}

.resultPanel-info {
    color: #fff !important;
}
a.logo {
    display: inline-block;
}