/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 10px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.beta-warning {
    position: absolute;
    left: 20px;
    top: 5px;
    right: 70px; /* Отступ справа для кнопки информации (40px кнопка + 20px отступ + 10px запас) */
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 4px;
    max-width: 220px;
    z-index: 1;
}

.beta-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.beta-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 11px;
    line-height: 1.2;
    color: #856404;
}

.beta-text strong {
    font-weight: bold;
    color: #856404;
    font-size: 11px;
}

.beta-text span {
    color: #856404;
    font-size: 9px;
}

header h1 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
    padding: 0;
    color: #003366;
    text-transform: uppercase;
    display: block;
    position: relative;
    z-index: 0;
    width: 100%;
}

.info-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin: 0;
    padding: 0;
}

.info-button:hover {
    background-color: #0052a3;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: white;
    display: block;
}

/* Основной контент - две колонки */
.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.left-column {
    flex: 1;
    min-width: 300px;
}

.right-column {
    flex: 0 0 350px;
    min-width: 300px;
}

/* Секции */
section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

section h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #003366;
}

section h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #003366;
}

/* Поля ввода */
.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: inline-block;
    width: 150px;
    font-size: 14px;
}

.input-group input[type="number"],
.input-group input[type="text"] {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    width: 100px;
}

.input-group.inline {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

.input-group.inline label {
    width: auto;
    margin-right: 5px;
}

/* Система вкладок для металлов */
.metal-tabs-container {
    margin-top: 10px;
}

.metal-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 0;
}

.metal-tab {
    background-color: #e0e0e0;
    border: none;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    z-index: 1;
}

.metal-tab:hover {
    background-color: #d0d0d0;
}

.metal-tab.active {
    background-color: #fff;
    color: #003366;
    border: 2px solid #ddd;
    border-bottom: 2px solid #fff;
    margin-bottom: -2px;
    z-index: 2;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.metal-tab-content {
    background-color: #fff;
    border: 2px solid #ddd;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 4px 4px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    height: auto;
    box-sizing: border-box;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.trk-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.trk-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trk-input-group label {
    font-size: 13px;
    font-weight: normal;
    min-width: 25px;
}

.trk-inputs input[type="text"] {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    text-align: center;
}

/* Выпадающий список для толщины */
.select-wrapper {
    position: relative;
    display: inline-block;
}

.select-wrapper input[readonly] {
    width: 80px;
    padding: 5px 25px 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    text-align: center;
    background-color: #fff;
    cursor: pointer;
}

.thickness-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 10px;
}

/* Таблицы профилей */
.profile-config {
    margin-top: 20px;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.profile-config > h2 {
    margin-bottom: 15px;
}

.profile-tables {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-table-wrapper {
    flex: 1;
    min-width: 250px;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.profile-table-wrapper > h3 {
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 14px;
    font-weight: bold;
    color: #003366;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table td {
    padding: 5px;
    font-size: 13px;
}

.profile-table td:first-child {
    padding-right: 30px;
    text-align: left;
}

.profile-table .shelf-input {
    width: 80px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Чекбоксы и радиокнопки */
.checkbox-group,
.radio-group {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    margin-right: 5px;
}

.checkbox-group label,
.radio-group label {
    font-size: 14px;
}

/* Toggle Switch стили */
.toggle-group {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s;
    margin-right: 10px;
    flex-shrink: 0;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: #0066cc;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    user-select: none;
}

.options-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}

.double-leaf-section {
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.double-leaf-section h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #003366;
}

.double-leaf-section .input-group.inline {
    margin-top: 5px;
}

.threshold-type-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.threshold-type-section .toggle-group {
    margin-right: 0;
    margin-bottom: 5px;
}

.glass-sections-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.glass-options-section,
.glass-std-section {
    flex: 1;
    min-width: 250px;
    margin-top: 0;
}

.glass-options-section h2,
.glass-std-section h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 0;
    color: #003366;
}

.glass-info {
    margin-top: 10px;
    font-size: 13px;
    color: gray;
}

.glass-info.active {
    color: blue;
}

/* Диаграмма */
.diagram-section {
    text-align: center;
}

.diagram-section h2 {
    font-size: 14px;
    color: gray;
    margin-bottom: 10px;
}

#profile-canvas {
    background-color: white;
    border: 1px solid #ddd;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Кнопки */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #0066cc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: #0052a3;
}

.btn-primary:active,
.btn-secondary:active {
    background-color: #003d7a;
}

.btn-secondary {
    background-color: #007bff;
    margin-top: 20px;
}

/* Результаты */
.results-section {
    margin-top: 30px;
    padding: 20px;
}

.results-section h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #003366;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.results-table thead {
    background-color: #e6f2ff;
}

.results-table th {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #003366;
    border: 1px solid #ddd;
}

.results-table td {
    padding: 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.results-cell {
    font-size: 13px;
    line-height: 1.8;
    color: #333;
    white-space: pre-line;
}

.nesting-results {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-line;
    color: #003366;
    font-weight: bold;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }

    .right-column {
        flex: 1;
        width: 100%;
    }

    .profile-tables {
        flex-direction: column;
    }

    .profile-table-wrapper {
        width: 100%;
    }

    .results-table {
        font-size: 12px;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px;
    }
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 15px;
    }

    header {
        min-height: 50px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .beta-warning {
        position: relative;
        left: 0;
        top: auto;
        right: auto;
        transform: none;
        max-width: 220px;
        padding: 3px 8px;
        width: auto;
        order: 1;
        margin-bottom: 5px;
    }
    
    .beta-icon {
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .beta-text {
        font-size: 9px;
        flex-direction: column;
        gap: 0;
        line-height: 1.1;
    }
    
    .beta-text strong {
        font-size: 9px;
    }
    
    .beta-text span {
        font-size: 8px;
    }
    
    header h1 {
        font-size: 18px;
        margin: 0;
        padding-right: 50px; /* Отступ справа для иконки */
        order: 2;
        width: 100%;
        text-align: left;
    }
    
    .info-button {
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .info-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Улучшенная видимость ссылки Telegram на планшетах */
    .telegram-link {
        text-decoration: underline !important;
        text-decoration-thickness: 3px !important;
        text-underline-offset: 5px !important;
        padding: 5px 8px !important;
        font-size: 16px !important;
    }
    
    .telegram-link:active {
        background-color: rgba(79, 195, 247, 0.3) !important;
        color: #b3e5fc !important;
        transform: scale(0.98) !important;
    }

    section {
        padding: 10px;
        margin-bottom: 15px;
    }

    section h2 {
        font-size: 14px;
    }

    .main-content {
        gap: 15px;
    }

    .left-column,
    .right-column {
        width: 100%;
        min-width: 100%;
    }

    .input-group label {
        width: 120px;
        font-size: 13px;
    }

    .input-group input[type="number"],
    .input-group input[type="text"] {
        width: 90px;
        font-size: 13px;
    }

    .metal-tabs {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .metal-tab {
        font-size: 11px;
        padding: 8px 10px;
        flex: 1;
        min-width: 80px;
    }
    
    .trk-inputs {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .trk-input-group {
        width: 100%;
    }

    .profile-tables {
        flex-direction: column;
    }

    .profile-table-wrapper {
        width: 100%;
    }

    .profile-table td:first-child {
        padding-right: 15px;
    }

    .options-section {
        flex-direction: column;
        gap: 10px;
    }

    .input-group.inline {
        display: block;
        margin-bottom: 10px;
    }

    .checkbox-group,
    .radio-group {
        display: block;
        margin-bottom: 8px;
    }

    .toggle-group {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .threshold-type-section {
        flex-direction: column;
    }

    .results-table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 6px;
        min-width: 120px;
    }

    .glass-sections-wrapper {
        flex-direction: column;
    }

    .glass-options-section,
    .glass-std-section {
        width: 100%;
        min-width: 100%;
    }

    #profile-canvas {
        width: 100%;
        max-width: 340px;
        height: auto;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 13px;
        padding: 10px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    header {
        min-height: 45px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .beta-warning {
        position: relative;
        left: 0;
        top: auto;
        right: auto;
        transform: none;
        max-width: 200px;
        padding: 3px 8px;
        width: auto;
        order: 1;
        margin-bottom: 5px;
    }
    
    .beta-icon {
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .beta-text {
        font-size: 8px;
        flex-direction: column;
        gap: 0;
        line-height: 1.1;
    }
    
    .beta-text strong {
        font-size: 8px;
    }
    
    .beta-text span {
        font-size: 7px;
    }
    
    header h1 {
        font-size: 14px;
        margin: 0;
        padding-right: 45px; /* Отступ справа для иконки */
        line-height: 1.3; /* Улучшаем читаемость при переносе */
        order: 2;
        width: 100%;
        text-align: left;
    }
    
    .info-button {
        right: 5px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .info-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Улучшенная видимость ссылки Telegram на мобильных */
    .telegram-link {
        text-decoration: underline !important;
        text-decoration-thickness: 3px !important;
        text-underline-offset: 5px !important;
        padding: 6px 10px !important;
        font-size: 17px !important;
        display: inline-block !important;
    }
    
    .telegram-link:active {
        background-color: rgba(79, 195, 247, 0.35) !important;
        color: #b3e5fc !important;
        transform: scale(0.97) !important;
    }

    .input-group label {
        width: 100px;
        font-size: 12px;
    }

    .input-group input[type="number"],
    .input-group input[type="text"] {
        width: 80px;
        font-size: 12px;
    }

    .profile-table td {
        font-size: 12px;
        padding: 3px;
    }

    .profile-table .shelf-input {
        width: 70px;
    }

    section h2,
    section h3 {
        font-size: 13px;
    }

    .results-list {
        font-size: 12px;
    }

    .nesting-results {
        font-size: 10px;
        padding: 10px;
    }
}

/* Стили для disabled полей */
input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Стили для фокуса */
input:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Улучшение читаемости на мобильных */
@media (max-width: 768px) {
    .container {
        box-shadow: none;
        border-radius: 0;
    }

    body {
        background-color: #fff;
    }
}

/* Информационная панель */
.info-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.info-overlay.active {
    display: block;
}

.info-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100%;
    background-color: #f5f5f5;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.info-panel.active {
    left: 0;
}

.info-panel-header {
    background-color: #003366;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.info-panel-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.close-info-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.close-info-btn:hover {
    transform: scale(1.2);
}

.info-panel-content {
    padding: 20px;
}

.info-card {
    background-color: #003366;
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.info-card-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.info-card-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.info-card-content p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 14px;
}

.info-card-content a {
    text-decoration: none;
}

.info-card-content .telegram-link {
    color: #4fc3f7 !important;
    text-decoration: underline !important;
    text-decoration-color: #4fc3f7 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.info-card-content .telegram-link:hover {
    color: #b3e5fc !important;
    background-color: rgba(79, 195, 247, 0.25) !important;
    text-decoration-color: #b3e5fc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(79, 195, 247, 0.4) !important;
}

.info-card-content .telegram-link:active {
    transform: translateY(0) !important;
    background-color: rgba(79, 195, 247, 0.35) !important;
    box-shadow: 0 2px 4px rgba(79, 195, 247, 0.3) !important;
}

.info-card-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-card-content li {
    margin: 8px 0;
    line-height: 1.6;
}

.telegram-link {
    color: #4fc3f7 !important;
    text-decoration: underline !important;
    text-decoration-color: #4fc3f7 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.telegram-link:hover {
    color: #b3e5fc !important;
    background-color: rgba(79, 195, 247, 0.25) !important;
    text-decoration-color: #b3e5fc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(79, 195, 247, 0.4) !important;
}

.telegram-link:active {
    transform: translateY(0) !important;
    background-color: rgba(79, 195, 247, 0.35) !important;
    box-shadow: 0 2px 4px rgba(79, 195, 247, 0.3) !important;
}

/* Модальное окно для уведомлений */
.message-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.message-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.message-modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.message-modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-modal-icon {
    font-size: 28px;
    line-height: 1;
}

.message-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.message-modal-body {
    padding: 24px;
}

.message-modal-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.message-modal-footer {
    padding: 16px 24px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.message-modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.message-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.message-modal-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.developer-card {
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
}

.version-card {
    background: linear-gradient(135deg, #003366 0%, #0052a3 100%);
}

.contacts-card {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
}

/* Футер */
.site-footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    background-color: #f9f9f9;
    position: relative;
    z-index: 1;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.footer-separator {
    color: #999;
    margin: 0 10px;
}

.footer-copyright {
    color: #666;
    font-size: 12px;
}

.footer-copyright p {
    margin: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .info-panel {
        width: 100%;
        left: -100%;
    }
    
    .info-button {
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-links a {
        font-size: 13px;
    }
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 2px solid #0066cc;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-notice-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice-text {
    flex: 1;
    min-width: 250px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.cookie-notice-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-notice-link {
    color: #0066cc;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.3s;
}

.cookie-notice-link:hover {
    color: #0052a3;
}

.cookie-notice-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cookie-notice-btn:hover {
    background-color: #0052a3;
}

.cookie-notice-btn:active {
    transform: scale(0.98);
}

/* Адаптивность для Cookie Notice */
@media (max-width: 768px) {
    .cookie-notice {
        padding: 15px;
    }
    
    .cookie-notice-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cookie-notice-text {
        font-size: 13px;
        min-width: 100%;
    }
    
    .cookie-notice-buttons {
        width: 100%;
        justify-content: flex-end;
    }
    
    .cookie-notice-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
