@font-face {
    font-family: 'tilda';
    src: url('/web/fonts/TildaSans-VF_TTF_Web/TildaSans-VF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0 auto;
    box-sizing: border-box;
}

/*___________________________________________________________*/

header {
    background-color: black;
    height: 110px;
}

.menu {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding-top: 40px;
}

.menu__left, .menu__right {
    display: flex;
    gap: 50px; 
}

.menu__left {
    justify-content: flex-start; 
}

.menu__right {
    justify-content: flex-end;
}

.menu__center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu__center a img {
    width: 80px;
}

a {
    font-family: tilda;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

/*___________________________________________________________*/

.menu__user {
    position: relative;
    display: inline-block;
}

.menu__userName {
    color: white;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: tilda;
    font-size: 20px;
}

.menu__userName:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu__userDropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
}

.menu__userDropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-family: tilda;
    font-size: 16px;
    transition: background-color 0.3s;
}

.menu__userDropdown a:hover {
    background-color: #f8f9fa;
    color: #000;
}

.menu__userDropdown a:last-child {
    border-bottom: none;
}

.menu__user:hover .menu__userDropdown {
    display: block;
}

/*___________________________________________________________*/

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal__content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal__title {
    font-family: tilda;
    font-size: 24px;
    font-weight: 700;
    color: black;
    margin: 0;
}

.modal__close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: black;
    background: none;
    border: none;
}

.modal__close:hover {
    color: #666;
}

.modal__formGroup {
    margin-bottom: 20px;
}

.modal__formLabel {
    display: block;
    margin-bottom: 8px;
    font-family: tilda;
    font-size: 16px;
    font-weight: 600;
    color: black;
}

.modal__formInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: tilda;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.modal__formInput:focus {
    outline: none;
    border-color: #007bff;
}

.modal__formActions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    justify-content: center;
}

.modal__adminBtn--cancel,
.modal__adminBtn--save {
    width: 300px;
    height: 45px;
    border: none;
    border-radius: 8px;
    font-family: tilda;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__adminBtn--cancel {
    background: black;
    color: white;
}

.modal__adminBtn--cancel:hover {
    background: #5a6268;
}

.modal__adminBtn--save {
    background: black;
    color: white;
}

.modal__adminBtn--save:hover {
    background: #5a6268;
}

.modal__authSwitch {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal__authSwitch a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.modal__authSwitch a:hover {
    text-decoration: underline;
}

.modal__message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    font-family: tilda;
    font-size: 14px;
    text-align: center;
    border: 1px solid transparent;
}

.modal__message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.modal__message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/*___________________________________________________________*/

.container {
    width: 1400px;
    margin: 0 auto;
}

/*___________________________________________________________*/

footer {
    background: black;
    padding: 100px 40px 30px;
}

.container--footer {
    width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: start;
}

.footer--left {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.footer--left__footer-title {
    font-family: tilda;
    font-size: 30px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer--left__footer-text {
    font-family: tilda;
    font-size: 16px;
    line-height: 1.6;
    color: white;
    max-width: 700px;
}

.footer--right {
    display: flex;
    gap: 130px;
    align-items: flex-start;
}

.footer--right__social-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer--right__social-title {
    font-family: tilda;
    font-size: 30px;
    font-weight: 700;
    color: white;    
}    

.footer--right__social-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer--right__social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
}

.footer--right__social-name {
    font-family: tilda;
    font-size: 16px;
    font-weight: 500;
}

.faq-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-section__faq-title {
    font-family: tilda;
    font-size: 30px;
    font-weight: 700;
    color: white;
}

.faq-section__faq-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-section__faq-link {
    font-family: tilda;
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
}

.faq-section__faq-link:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom__copyright {
    font-family: tilda;
    font-size: 14px;
    color: white;
    margin-top: 30px;
}

/*___________________________________________________________*/

@media (max-width: 1400px) {
    .container, .container--footer {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .footer--right {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .container--footer {
        grid-template-columns: 1fr;
    }
    
    .footer--right {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 20px 0;
    }
    
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu__center {
        position: static;
        transform: none;
        margin: 15px 0;
    }
    
    .footer--right {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer--left__footer-title {
        font-size: 24px;
    }
    
    .footer--right__social-title,
    .faq-section__faq-title {
        font-size: 24px;
    }
    
    .modal__content {
        margin: 20% auto;
        padding: 20px;
    }
}