@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --primary-color: #D00F3B;
    --dark-color: #000000;
    --light-color: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
}
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --link-color: #FA788C;
}
body:not([data-theme]) {
    --bg-primary: #0a0a0a;
    --bg-secondary: #f7f7f7;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    vertical-align: middle;
    transition: ease-in-out all 0.2s;
}
html, body {
    background-color: var(--bg-primary);
}
body {
    font-family: "Roboto", sans-serif;
    font-size: 1.2rem;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    line-height: 1.6;
    color: var(--text-primary);
    transition: var(--transition);
    overflow-x: hidden;
}
.toolbar-loading {
    padding-left: 72px;
}
[data-admin-toolbar="expanded"] body {
    padding-left: 264px;
}
.row {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
}
.col {
    flex-direction: column;
}
.aic {
    align-items: center;
}
.fo {
    flex: 1;
}
.sb {
    justify-content: space-between;
}
.flex {
    display: flex;
}
a {
    color: var(--link-color);
    text-decoration: none;
}
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
img {
    max-width: 100%;
    height: auto;
    border: none;
}
.admin-toolbar {
    min-height: 100vh;
}

/* Header */
header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-radius: 10px;
    z-index: 50;
    max-width: 1420px;
    margin: auto;
    padding: 10px;
}
header .row {
    gap: 0px 100px;
}
header .row .header-main,
header .row .header-main .menu {
    flex: 1 1 0%;
}
header .row .header-main .menu {
    max-width: 630px;
}
.not-front header {
    background-color: var(--bg-secondary);
}
.toolbar-loading header {
    left: 72px;
}
[data-admin-toolbar="expanded"] header {
    left: 264px;
}
.toolbar-loading.path-taxonomy header {
    top: 80px;
}
.toolbar-loading.path-taxonomy .inner-page {
    padding-top: 220px;
}
header .logotype a, header .logotype span {
    display: block;
    background: url("../images/logotype/logotype.svg") center no-repeat;
    width: 170px;
    height: 66px;
    background-size: contain;
}
header .menu li.has-children ul {
    opacity: 0;
    visibility: hidden;
    height: 0;
    position: absolute;
    flex-direction: column;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 7%);
    border-radius: 6px;
    top: 50px;
    left: -17px;
    min-width: 280px;
}
header .menu ul {
    justify-content: space-between;
}
header .menu li {
    position: relative;
}
header .menu li a {
    color: var(--text-primary);
    gap: 0px 7px;
    white-space: nowrap;
}
header .menu li.has-children a .menu-toggle {
    background-image: url("../images/icons/drop-down.svg");
    width: 10px;
    height: 10px;
    display: block;
    background-size: contain;
    background-position: center;
}
header .menu li.has-children:after {
    content: "";
    width: 100%;
    height: 20px;
    position: absolute;
}
header .menu li.has-children:hover ul {
    opacity: 1;
    visibility: visible;
    height: auto;
}
header .menu li.has-children ul li a {
    font-size: 1rem;
    width: 100%;
    padding: 6px;
    border-radius: 5px;
}
header .menu li.has-children ul li a:hover {
    background-color: #f8f9fa;
}

/* Main */
.hero {
    background-color: var(--bg-secondary);
    min-height: 70vh;
}
.inner-page {
    padding-top: 160px;
}

/* Custom Drupal messages */
.custom-messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    min-width: 300px;
    pointer-events: none;
}
.custom-message {
    background-color: #4fae4d;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    position: relative;
    animation: slideIn 0.3s ease-out;
    font-size: 14px;
    line-height: 1.5;
    pointer-events: auto;
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
.custom-message.closing {
    animation: slideOut 0.3s ease-in forwards;
}
.custom-message__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    line-height: 1;
}
.custom-message__close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.custom-message__close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}
.custom-message__content {
    margin-bottom: 10px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
}

.custom-message__content ul {
    margin: 0;
    padding-left: 20px;
}
.custom-message__content li {
    margin-bottom: 5px;
}
.custom-message__content em {
    font-style: normal;
}
.custom-message__content a {
    color: #fff;
}
.custom-message__timer {
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 8px;
    font-weight: normal;
}
.custom-message--status {
    background-color: #4fae4d;
}
.custom-message--warning {
    background-color: #f39c12;
}
.custom-message--error {
    background-color: #e74c3c;
}
.custom-message--info {
    background-color: #3498db;
}
@media (max-width: 768px) {
    .custom-messages-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }

    .custom-message {
        font-size: 13px;
        padding: 15px;
    }
}
@media (max-width: 480px) {
    .custom-message {
        padding: 12px;
    }

    .custom-message__content {
        margin-right: 25px;
    }
}
.messages:not(.custom-message) {
    display: none;
}
.custom-message:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}