﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.artist {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
}

.title {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.painting-image {
    flex: 1;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.painting-image img {
    width: 100%;
    height: auto;
    display: block;
}

.painting-details {
    flex: 1;
    min-width: 300px;
    /* background: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
}

.details-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.detail-label {
    /* font-weight: bold; */
    color: #2c3e50;
}

.description {
    margin-top: 5px;
}

.description h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.description p {
    margin-bottom: 15px;
    text-align: justify;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.preview-mobile {
    display: none;
}

.preview-desktop {
    display: flex;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .preview-desktop {
        display: none;
    }

    .preview-mobile {
        display: flex;
    }

}

@media (max-width: 1024px) {
    .preview-desktop {
        display: none;
    }

    .preview-mobile {
        display: flex;
    }
}


/* Голосование */

.voiting-head {
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 300;
    text-align: center;
    font-size: 30px;
}


.voting-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.vote-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.color-button {
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.color-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.color-button:hover::before {
    left: 100%;
}

.color-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.color-button:active {
    transform: translateY(-2px);
}

.good {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.neutral {
    background: linear-gradient(135deg, #FFA500, #ff8c00);
}

.bad {
    background: linear-gradient(135deg, #FF4444, #cc0000);
}

.option-label {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
}

/* Стили для результатов */
.results {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.results.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.results h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 400;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.result-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.good-indicator {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.neutral-indicator {
    background: linear-gradient(135deg, #FFA500, #ff8c00);
}

.bad-indicator {
    background: linear-gradient(135deg, #FF4444, #cc0000);
}

.result-numbers {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.result-count {
    color: #2c3e50;
    min-width: 30px;
}

.result-percent {
    color: #666;
    min-width: 50px;
    text-align: right;
}

.total-votes {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
    font-weight: 500;
    color: #2c3e50;
}

/* Анимации */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voted {
    animation: pulse 0.5s ease;
}

/* Адаптивность */
@media (max-width: 600px) {
    .voting-container {
        gap: 15px;
    }

    .color-button {
        width: 100px;
        height: 100px;
    }

    .result-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .result-numbers {
        justify-content: center;
    }
}

/* Высокие полупрозрачные стрелки для десктопа */

.desktop-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    height: 200px;
    display: flex;
    align-items: center;

}

.desktop-nav a {
    border-radius: 5px;
}

.desktop-nav.prev {
    left: 0;
}

.desktop-nav.next {
    right: 0;
    border-radius: 10px;
}



/* Альтернативный вариант с иконками */
.tall-arrow-icon {
    width: 60px;
    height: 180px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
}

.tall-arrow-icon:hover {
    width: 80px;
    background: rgba(0, 0, 0, 0.4);
}

.arrow-icon {
    width: 30px;
    height: 30px;
    border: solid rgba(255, 255, 255, 0.8);
    border-width: 0 3px 3px 0;
    transition: all 0.3s ease;
}

.prev .arrow-icon {
    transform: rotate(135deg);
}

.next .arrow-icon {
    transform: rotate(-45deg);
}

.tall-arrow-icon:hover .arrow-icon {
    border-color: white;
    transform: scale(1.2);
}

.prev:hover .arrow-icon {
    transform: rotate(135deg) scale(1.2) translateX(-2px);
}

.next:hover .arrow-icon {
    transform: rotate(-45deg) scale(1.2) translateX(2px);
}


/* Мобильная версия */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    gap: 20px;
}

.mobile-nav-button {
    width: 60px;
    height: 60px;
    /* background: rgba(255, 255, 255, 0.9); */
    background: rgba(236, 236, 236, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 34px;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-nav-button:hover {
    transform: scale(1.1);
    background: white;
}



.mobile-nav a.prev {
    margin-right: 5em;
}

.mobile-nav a {
    -webkit-tap-highlight-color: transparent;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .content-box {
        margin: 0 40px;
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .content-box {
        margin: 0 20px;
        padding: 40px 20px;
    }
}


.img-magnifier-container {
    position: relative;
    touch-action: none;
}

.img-magnifier-glass {
    position: absolute;
    border: 3px solid #000;
    border-radius: 20%;
    cursor: none;
    /* Задаем размер увеличительного стекла:*/
    width: 170px;
    height: 170px;
    touch-action: none;
}

@media (max-width: 768px) {
    .img-magnifier-glass {
        position: absolute;
        border: 3px solid #000;
        border-radius: 20%;
        cursor: none;
        width: 170px;
        height: 170px;
        z-index: 999;
        pointer-events: none;
        background-color: white;
        /* background-repeat: no-repeat; */
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
        transform: translate(-50%, -50%);
        /* Центрирование относительно точки касания */
    }
}

@media (max-width: 1024px) {
    .img-magnifier-glass {
        position: absolute;
        border: 3px solid #000;
        border-radius: 20%;
        cursor: none;
        width: 170px;
        height: 170px;
        z-index: 999;
        pointer-events: none;
        background-color: white;
        background-repeat: no-repeat;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
        transform: translate(-50%, -50%);
        /* Центрирование относительно точки касания */

    }

}


/* Стили для кнопок авторизации */
.auth-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 0 20px;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 140px;
}

.auth-button.logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 70px;
    min-height: 60px;
    margin-left: 18px;
}

/* Кнопка входа */
.login-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.login-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f6394);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(41, 128, 185, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.logout-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.logout-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f6394);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(41, 128, 185, 0.3);
}

.logout-button:active {
    transform: translateY(0);
}

/* Кнопка выхода */
/* .logout-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.logout-button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.3);
}

.logout-button:active {
    transform: translateY(0);
} */

/* Иконки для кнопок */
.auth-icon {
    font-size: 1.2rem;
}

.login-button .auth-icon::before {
    content: "→";
}

.logout-button .auth-icon::before {
    content: "←";
}

/* Информация о пользователе (если нужно отображать) */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .auth-container {
        justify-content: center;
        padding: 0 0px;
        justify-content: flex-end;
        /* margin-left: 20%; */
    }

    .auth-container.entered {
        justify-content: center;
        padding: 0 0px;
        justify-content: flex-end;
    }

    .auth-button {
        padding: 10px 20px;
        min-width: 120px;
        font-size: 0.95rem;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-tap-highlight-color: transparent;
    }

    .auth-button.logout-button {
        padding: 15px 15px;
        min-width: 60px;
        font-size: 1.7rem;
        margin-left: 15px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-tap-highlight-color: transparent;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

}

/* Анимация появления/исчезновения */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-button,
.user-info {
    animation: slideIn 0.5s ease;
}

/* Альтернативный вариант - кнопки в шапке */
.header-auth {
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (max-width: 768px) {
    .header-auth {
        position: static;
        margin-top: 15px;
        text-align: center;
    }
}

/* Вариант с иконками вместо текста (для компактного размещения) */
.auth-button.compact {
    min-width: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
}

.auth-button.compact .auth-text {
    display: none;
}

.auth-button.compact .auth-icon {
    font-size: 1.4rem;
    margin: 0;
}

/* Градиентные эффекты при наведении */
.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.auth-button:hover::before {
    transform: translateX(100%);
}





/* Контейнер модального окна */
.modal {
    display: none;
    /* Скрыто по умолчанию */
    position: fixed;
    /* Оставаться на месте */
    z-index: 1;
    /* Стоять над другим контентом */
    left: 0;
    top: 0;
    width: 100%;
    /* Полная ширина */
    height: 100%;
    /* Полная высота */
    background-color: rgba(0, 0, 0, 0.4);
    /* Полупрозрачный фон */
}

/* Содержимое модального окна */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% сверху и по центру */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Ширина */
    max-width: 500px;
    /* Максимальная ширина */
    border-radius: 5px;
}

/* Кнопка закрытия */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}








/* Стили модального окна */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* .modal-content {
    animation: fadeIn 0.3s ease-out;
} */

/* Стили формы */
#login_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Стили таблицы */
#login_form table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

/* Стили для строк формы */
#login_form tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

/* Стили для меток */
#login_form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* Стили для полей ввода */
#login_form input[type="tel"],
#login_form input[type="text"],
#login_form input[type="password"],
#login_form input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
}

#login_form input[type="tel"]:focus,
#login_form input[type="text"]:focus,
#login_form input[type="password"]:focus,
#login_form input[type="number"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Стили для кнопки отправки */
#login_form input[type="submit"] {
    background: linear-gradient(135deg, #4a90e2 0%, #357ae8 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    letter-spacing: 0.5px;
}

#login_form input[type="submit"]:hover {
    background: linear-gradient(135deg, #357ae8 0%, #2a65c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

#login_form input[type="submit"]:active {
    transform: translateY(0);
}

#login_form button {
    background: linear-gradient(135deg, #4a90e2 0%, #357ae8 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    letter-spacing: 0.5px;
}

#login_form button:hover {
    background: linear-gradient(135deg, #357ae8 0%, #2a65c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

#login_form button:active {
    transform: translateY(0);
}

/* Стили для ошибок */
#login_form .errorlist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 500;
}

#login_form .errorlist li {
    padding: 6px 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
    margin-top: 4px;
    border-left: 3px solid #e74c3c;
}

/* Стили для сообщений об ошибках кода */
#login_form br+br {
    margin-bottom: 15px;
}

#login_form table br~br~br {
    display: block;
    margin: 15px 0;
}

/* Стили для сообщений об ошибках верификации */
#login_form table br+br+br {
    margin-bottom: 20px;
}

#login_form table br~br~br~br {
    margin-top: 15px;
}

#login_form .text-error {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    background-color: rgba(231, 76, 60, 0.08);
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #e74c3c;
}

/* Стили для скрытых полей */
#login_form input[type="hidden"] {
    display: none;
}

/* Стили для сообщений об ошибках кода верификации */
#login_form table br+br+br+br {
    display: block;
    margin-top: 15px;
}

/* Адаптивность */
@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }

    #login_form input[type="tel"],
    #login_form input[type="text"],
    #login_form input[type="password"],
    #login_form input[type="number"] {
        padding: 10px 14px;
        font-size: 15px;
    }

    #login_form input[type="submit"] {
        padding: 12px 24px;
        font-size: 15px;
    }

    #login_form {
        gap: 5px;
    }
}

/* Стили для состояния инвалида */
#login_form input:invalid:not(:focus) {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.02);
}

/* Стили для успешного ввода */
#login_form input:valid:not(:focus) {
    border-color: #51cf66;
}

/* Стили для разделителей */
#login_form br {
    height: 1px;
    margin: 0;
    padding: 0;
    line-height: 0;
}








.gallery-header {
    /* Убираем position: fixed */
    width: 100%;
    background: #ffffff;
    /* border-bottom: 3px double #d0dbe9; */
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(66, 133, 244, 0.1);

    /* Добавляем "липкое" позиционирование */
    position: relative;
    top: 0;
    /* z-index: 1000; */
}

/* Стиль "вывеска галереи" */
.gallery-sign {
    font-family: 'Times New Roman', 'Palatino Linotype', serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    background: #f8fafc;
    border: 2px solid #4299e1;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    /* Анимация при скролле */
    transition: all 0.3s ease;
}

/* Уменьшаем размер при скролле (опционально) */
body.scrolled .gallery-sign {
    padding: 10px 30px;
    font-size: 1.8rem;
}

/* Декоративные уголки */
.gallery-sign::before,
.gallery-sign::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #4299e1;
    transition: all 0.3s ease;
}

.gallery-sign::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.gallery-sign::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

body.scrolled .gallery-sign::before,
body.scrolled .gallery-sign::after {
    width: 15px;
    height: 15px;
}

/* Подзаголовок */
.gallery-subtitle {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    color: #4a5568;
    letter-spacing: 8px;
    margin-top: 2px;
    /* text-transform: uppercase; */
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Скрываем подзаголовок при скролле для компактности */
body.scrolled .gallery-subtitle {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* Тонкие линии сверху и снизу */
.gallery-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a0c4ff, transparent);
}

.gallery-header::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a0c4ff, transparent);
}




.icon-container {
    display: flex;
    gap: 15px;
    /* padding-right: 5px; */
    justify-content: right;
}

.icon-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.login-icon {
    background: #3191D2;
    color: white;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

.logout-icon {
    background: #3191D2;
    color: white;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

.icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Tooltip подсказки */
.icon-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.icon-btn:hover::after {
    opacity: 1;
}

.user-container {
    display: flex;
    flex-direction: column;
    text-align: right;
    padding-top: 0px;
}

.user-preview {
    font-size: 12px;
}

.no-user-container {
    display: flex;
    flex-direction: column;
    text-align: right;
    justify-content: center;
}

.no-user-preview {
    font-size: 15px;
}




.agree-link a:link {
    text-decoration: underline;
    color: #2c3e50
}

.agree-link a:visited {
    text-decoration: dashed;
    color: #2c3e50;
}



.footer-personal-data-link {
    border-bottom: 2px dotted #2c3e50;
    font-size: 17px;

}

.footer-personal-data-link:link {
    text-decoration: none;
    color: #2c3e50;
}

.footer-personal-data-link:visited {
    text-decoration: none;
    color: #2c3e50;
}

@media (max-width: 480px) {
    .footer-personal-data-link {
        border-bottom: 2px dotted #2c3e50;
        font-size: 17px;

    }

    .footer-personal-data-link:link {
        text-decoration: none;
        color: #2c3e50;
    }

    .footer-personal-data-link:visited {
        text-decoration: none;
        color: #2c3e50;
    }
}

footer {
    background-color: #ffffff;
}




.exhibition-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* background: linear-gradient(45deg, #ff6b6b, #ffa36c); */
    background: linear-gradient(45deg, #ff6b6b, #F7C37A);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    letter-spacing: 1px;
    width: 30%;
    text-transform: uppercase;
    gap: 10px;

}

.exhibition-link:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
    color: white;
}

.exhibition-link:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
    color: white;
}

.exhibition-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    color: white;
}

.exhibition-link:hover::before {
    left: 100%;
}

.icon {
    margin-right: 15px;
    font-size: 2rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-title i {
    margin-right: 10px;
    color: #ffa36c;
}

.info-text {
    color: #b8c1ec;
    line-height: 1.6;
    font-size: 1.1rem;
}

.art-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.art-icon {
    font-size: 2.5rem;
    color: #ffa36c;
    background: rgba(255, 163, 108, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.art-icon:hover {
    transform: rotate(15deg) scale(1.2);
    background: rgba(255, 163, 108, 0.2);
}

.art-buttons-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-decoration: none;
    flex-direction: row;
    margin-top: 60px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .exhibition-link {
        font-size: 1.1rem;
        padding: 8px 25px;
        width: 100%;
        -webkit-tap-highlight-color: transparent;
    }

    .exhibition-link:hover {
        transform: none;
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
        color: white;
    }

    .exhibition-link:active {
        transform: none;
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
        color: white;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .art-buttons-container {
        display: flex;
        align-items: center;
        justify-content: space-around;
        text-decoration: none;
        flex-direction: row;
        margin-top: 50px;
    }
}


@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .exhibition-link {
        font-size: 1.1rem;
        padding: 17px 26px;
        flex-direction: row;
        gap: 15px;
        -webkit-tap-highlight-color: transparent;
    }

    .exhibition-link:hover {
        transform: none;
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
        color: white;
    }

    .exhibition-link:active {
        transform: none;
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
        color: white;
    }

    .icon {
        margin-right: 0;
    }

    .art-buttons-container {
        display: flex;
        align-items: center;
        justify-content: space-around;
        text-decoration: none;
        flex-direction: column;
        margin-top: 50px;
    }
}


.footer-org-info-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-decoration: none;
    flex-direction: column;
}

.footer-email-link {
    display:contents;
    color: inherit;
    text-decoration: underline;
}

.footer-email-link :hover {
    color: inherit;
    text-decoration: underline;
}

.footer-email-link :link {
    color: inherit;
    text-decoration: underline;
}

.footer-email-link :visited {
    color: inherit;
    text-decoration: underline;  
}