/* --- Стили для секции-гида по выбору печати --- */

#guide {
    background-color: var(--white); /* Белый фон для чередования с секцией --bg-light */
}

.guide-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -40px auto 50px;
    color: #666;
    font-size: 16px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.guide-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    background-color: #fff;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.guide-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.guide-card-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 20px;
}

.guide-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.guide-card-text {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.guide-card ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.guide-card ul li {
    font-size: 15px;
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}

.guide-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--secondary-color);
    font-weight: 700;
}

.guide-cta {
    text-align: center;
    background-color:#1a3757;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.guide-cta p {
    font-size: 18px;
    font-weight: 600;
    color: #ffff;
    max-width: 600px;
    margin: 0 auto 20px;
}


/* --- Стили для секции "Искусство оттиска" --- */
#art-of-imprint {
    position: relative;
    padding: 100px 0;
    /* Эффект параллакса для фона */
    background-image: linear-gradient(rgba(13, 44, 78, 0.95), rgba(13, 44, 78, 0.95)), url(https://images.unsplash.com/photo-1506784983877-45594efa4c85?q=80&w=2069&auto=format&fit=crop);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

#art-of-imprint .art-title,
#art-of-imprint .art-subtitle {
    text-align: center;
    color: var(--white);
}

#art-of-imprint .art-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

#art-of-imprint .art-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 60px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.art-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.art-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Начальное состояние для анимации при прокрутке */
    opacity: 0;
    transform: translateY(50px);
}

/* Класс, который будет добавляться JS при появлении на экране */
.art-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Добавляем задержку для каждой следующей карточки */
.art-card:nth-child(2) { transition-delay: 0.2s; }
.art-card:nth-child(3) { transition-delay: 0.4s; }


.art-card:hover {
    transform: scale(1.05);
}

.art-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.art-card:hover img {
    transform: scale(1.1);
}

.art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 25px 25px;
    box-sizing: border-box;
    color: var(--white);
    text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    
    /* Свойства для Glassmorphism-эффекта при наведении */
    opacity: 0;
    backdrop-filter: blur(0px);
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

.art-card:hover .art-overlay {
    opacity: 1;
    backdrop-filter: blur(5px);
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
}

.art-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s 0.2s ease, opacity 0.4s 0.2s ease;
}

.art-overlay p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s 0.3s ease, opacity 0.4s 0.3s ease;
}

.art-card:hover .art-overlay h3,
.art-card:hover .art-overlay p {
    transform: translateY(0);
    opacity: 1;
}
/* --- Стили для секции "Отзывы клиентов" --- */

#testimonials {
    background-color: var(--bg-light); /* Светлый фон для контраста */
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.testimonial-icon {
    font-size: 60px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 0.5;
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; /* Заставляет текст занимать все доступное пространство */
    font-style: italic;
}

.testimonial-rating {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-author strong {
    display: block;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
}

.testimonial-author span {
    font-size: 14px;
    color: #777;
}

/* =================================== */
/* === СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА === */
/* =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff; /* Используем переменную var(--white), если она у вас есть */
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.is-open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.modal-close:hover {
    color: #333; /* Используем переменную var(--primary-color) или var(--text-color) */
}

.modal-content h3 {
    font-size: 24px;
    /* color: var(--primary-color); */
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
}

.modal-content .form-group input {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
    text-align: center;
}

/* =================================== */
/* === СТИЛИ ДЛЯ ПЛАВАЮЩИХ ИКОНОК === */
/* =================================== */

/* Контейнер для иконок */
.floating-contacts {
    position: fixed; /* Самое главное - фиксация на экране */
    top: 50%; /* Вертикально по центру */
    left: 23px;
    transform: translateY(-50%); /* Точное центрирование по вертикали */
    z-index: 999; /* Чтобы были поверх всех элементов */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Расстояние между иконками */
}

/* Ссылка-кнопка */
.floating-contacts .contact-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: #fff;
    border-radius: 0 12px 12px 0; /* Скругление только правых углов */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    
    /* Сдвигаем влево, чтобы была видна только часть */
    transform: translateX(-15px);
}

/* Анимация пульсации */
@keyframes pulse {
    0% { transform: scale(1) translateX(-15px); }
    50% { transform: scale(1.1) translateX(-15px); }
    100% { transform: scale(1) translateX(-15px); }
}

/* Применяем анимацию */
.floating-contacts .contact-link {
    animation: pulse 3s infinite ease-in-out;
    animation-delay: var(--delay); /* Индивидуальная задержка для каждой иконки */
}

/* Эффект при наведении курсора */
.floating-contacts .contact-link:hover {
    transform: translateX(0); /* Выдвигаем полностью */
    animation-play-state: paused; /* Останавливаем пульсацию при наведении */
}

/* Цвета для каждой иконки */
.contact-link.phone {
    background: #4CAF50; /* Зеленый */
    --delay: 0.5s;
}

.contact-link.telegram {
    background: #24A1DE; /* Голубой */
    --delay: 1s;
}

.contact-link.whatsapp {
    background: #25D366; /* Ярко-зеленый */
    --delay: 1.5s;
}

/* Стили для самих иконок внутри ссылок */
.contact-link svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* =========================== */
/* === СТИЛИ ДЛЯ КНОПКИ "НАВЕРХ" === */
/* =========================== */

.back-to-top {
    position: fixed; /* Фиксация на экране */
    bottom: 30px;
    right: 30px;
    z-index: 998; /* Чуть ниже плавающих иконок, чтобы не мешать */

    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%; /* Делаем кнопку круглой */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    text-decoration: none;

    /* Прячем кнопку по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Класс для показа кнопки */
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.back-to-top svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}