/* ========================================
   СТИЛИ ХЕДЕРА И ФУТЕРА
   ======================================== */
/* ХЕДЕР */
.site-header {
    background-color: #fff; /* Белый фон */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.header-content {
    padding: 10px 20px;
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: var(--header-row-h, auto);
    min-height: 0;
}
.header-left {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}
.header-center {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-shrink: 0;
}
.site-header .menu-module {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    flex-shrink: 0;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #666;
}
.logo.logo-img {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}
.logo.logo-img img {
    display: block;
    height: auto;
    width: auto;
    max-width: none;
    max-height: none;
}
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Иконки авторизации в хедере */
.auth-icon {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}
.auth-icon:hover,
.auth-icon:hover .auth-text {
    color: #ff0000;
}
.auth-icon-symbol {
    color: inherit;
    transition: filter 0.3s;
}
.auth-icon:hover .auth-icon-symbol {
    filter: sepia(1) saturate(10000%) hue-rotate(300deg);
}
.auth-text {
    font-size: 13px;
    font-weight: normal;
}

.icon-18plus {
    font-size: 12px;
    color: #ff0000;
    font-weight: bold;
}

/* ФУТЕР */
.site-footer {
    background: none;
    border: 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.footer-frame {
    padding: 15px 20px;
    text-align: center;
    border: 0;
    background: none;
}
.footer-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-left {
    flex-shrink: 0;
}
.footer-feedback-link {
    font-size: 13px;
    color: #0066cc !important;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
}
.footer-feedback-link:hover {
    color: #ff0000 !important;
    text-decoration: underline !important;
}
.footer-text {
    font-size: 14px;
    color: #666;
    flex: 1;
}
.footer-text a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
.footer-text a:hover {
    text-decoration: underline;
}

/* Модальная форма обратной связи */
.fb-modal {
    text-align: left;
    min-width: 340px;
}
.fb-modal-title {
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}
.fb-modal-table {
    width: 100%;
    border-spacing: 0 6px;
}
.fb-modal-table td {
    padding: 2px 0;
    font-size: 11pt;
    color: #444;
    vertical-align: top;
}
.fb-modal-table td:first-child {
    white-space: nowrap;
    padding-right: 8px;
    width: 1%;
}
.fb-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 11pt;
    border: 1px solid #bbb;
    border-radius: 3px;
    box-sizing: border-box;
}
.fb-input:focus {
    border-color: #0066cc;
    outline: none;
}
.fb-textarea {
    width: 100%;
    min-height: 120px;
    padding: 6px 8px;
    font-size: 11pt;
    border: 1px solid #bbb;
    border-radius: 3px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}
.fb-textarea:focus {
    border-color: #0066cc;
    outline: none;
}
.fb-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}
.fb-btn {
    padding: 7px 18px;
    font-size: 11pt;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.fb-btn-send {
    background-color: #4CAF50;
    color: #fff;
}
.fb-btn-send:hover {
    background-color: #45a049;
}
.fb-btn-cancel {
    background-color: #999;
    color: #fff;
}
.fb-btn-cancel:hover {
    background-color: #777;
}

/* ========================================
   АДАПТИВНОСТЬ ХЕДЕРА И ФУТЕРА
   ======================================== */
/* Планшет (до 1024px) */
@media (max-width: 1024px) {
    .header-content,
    .footer-frame {
        padding: 10px 20px;
    }
}

/* Мобильный (до 450px): три строки — лого; иконки авторизации + 18+; меню */
@media (max-width: 450px) {
    .header-content,
    .footer-frame {
        padding: 10px 20px;
    }
    .header-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        gap: 10px;
    }
    .header-left {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: start;
    }
    .header-center {
        display: contents;
    }
    .header-center .header-icons {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }
    .header-right {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
    .site-header .menu-module {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: stretch;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .logo {
        font-size: 20px;
    }
    .auth-icon {
        font-size: 13px;
    }
    .auth-text {
        display: none; /* Скрываем текст на мобильных */
    }
    .icon-18plus {
        font-size: 11px;
    }
    .footer-text {
        font-size: 13px;
    }
}