/* Основные стили для сайта Полиграф-Краснодар */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

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

/* Шапка */
header {
    background: linear-gradient(135deg, #1a2a4c 0%, #2c3e50 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.logo-container {
    margin-right: 15px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease; /* Добавляем плавный переход для анимации */
}

.logo:hover {
    transform: scale(2); /* Увеличиваем логотип в 2 раза при наведении */
}

.header-text h1 {
    font-size: 1.4rem; /* Увеличиваем размер шрифта */
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-decoration: underline; /* Добавляем подчеркивание */
}

.header-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    transition: font-style 0.3s ease;
    font-style: italic;
}

.header-text p:hover {
    font-style: normal;
    cursor: pointer;
}

.header-phone {
    margin-left: 20px;
}

.header-phone a {
    display: inline-block;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.header-phone a:hover {
    background: linear-gradient(to right, #3ca0de, #2c89c9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Основной блок */
.hero {
    background: linear-gradient(rgba(26, 42, 76, 0.6), rgba(26, 42, 76, 0.6)), url('../images/101.png') center center/cover fixed;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.4) 100%);
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.detector-text {
    display: block;
    font-size: 2.2rem; /* такой же размер шрифта, как у основного заголовка */
    font-weight: 500;
    margin-top: 0.5rem;
}

.hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Раздел услуг */
.services {
    padding: 2.5rem 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.service-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.service-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.service-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-item a:hover {
    text-decoration: underline;
}

/* Преимущества */
.advantages {
    background: 
        linear-gradient(rgba(26, 42, 76, 0.7), rgba(26, 42, 76, 0.7)),
        url('../images/101.png') center center/cover fixed;
    padding: 3rem 0;
    color: white;
    position: relative;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.advantages h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    border-radius: 3px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    color: white;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.15);
}

.advantage-item h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.advantage-item p {
    color: #ecf0f1;
}

/* Отзывы клиентов */
.testimonials {
    padding: 2.5rem 0;
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 1.5rem;
}

.testimonial-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
    color: #2c3e50;
}

/* Блок контактов */
.contact {
    padding: 3rem 0;
    background: 
        linear-gradient(rgba(15, 30, 55, 0.75), rgba(15, 30, 55, 0.75)),
        url('../images/101.png') center center/cover fixed;
    color: white;
    position: relative;
}

.contact h2, .contact h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.contact h2::after, .contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3498db;
    border-radius: 2px;
}

.contact-description {
    text-align: center;
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #ecf0f1;
}

.contact-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 25px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-details h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.4rem;
}

.contact-details ul {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.contact-details li {
    margin: 12px 0;
    font-size: 1.1rem;
    padding: 8px 0;
    line-height: 1.4;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
}

.contact a:hover {
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* Секция с картой */
.map-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 10px;
}

.map-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3498db;
    border-radius: 2px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* При клике на карту курсор должен меняться */
.map-container:hover {
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* Подвал */
footer {
    background: linear-gradient(135deg, #1a2a4c 0%, #2c3e50 100%);
    color: white;
    padding: 3rem 0 0;
    margin-top: 3rem;
    position: relative;
}

.privacy-links {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem 0;
    text-align: right;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-links .container {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.privacy-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.75rem;
    margin-left: 25px;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
}

.privacy-links a::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #3498db;
}

.privacy-links a:hover {
    color: #ecf0f1;
}

/* Кнопка "Связаться" для других страниц */
.contact-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.contact-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Стили для страниц услуг */
.service-detail {
    padding: 3rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.service-detail h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.service-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3498db;
    border-radius: 2px;
}

.service-detail p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: #34495e;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-detail ul {
    margin: 1.5rem auto;
    padding-left: 1.5rem;
    max-width: 800px;
}

.service-detail li {
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

/* Стили для политики конфиденциальности */
.privacy-policy {
    padding: 2.5rem 0;
}

.privacy-policy h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.privacy-policy h3 {
    margin: 1.5rem 0 1rem 0;
    color: #2c3e50;
}

.privacy-policy p {
    margin-bottom: 1rem;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.back-link a {
    display: inline-block;
    padding: 12px 25px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.back-link a:hover {
    background-color: #34495e;
}

/* Cookie баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2a4c 100%);
    color: white;
    padding: 25px 0;
    z-index: 10000;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    margin-right: 15px;
}

.cookie-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.cookie-text a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cookie-btn.accept {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
}

.cookie-btn.decline {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
}

.cookie-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    
    .header-info {
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .logo {
        height: 50px;
    }
    
    .header-phone {
        margin: 15px 0 0 0;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .services h2, 
    .advantages h2,
    .testimonials h2 {
        font-size: 1.5rem;
    }
    
    .service-grid,
    .advantage-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-links .container {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .privacy-links a {
        margin: 5px 10px;
        display: inline-block;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        margin: 5px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact a {
        display: block;
        margin: 5px auto;
        max-width: 80%;
    }
    
    footer {
        padding: 1.5rem 0 0;
    }
    
    .contact-details {
        padding: 15px;
    }
    
    .contact-description {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .service-item,
    .advantage-item,
    .testimonial-item {
        padding: 20px 15px;
    }
    
    .header-text h1 {
        font-size: 1.1rem;
    }
    
    .privacy-links a {
        font-size: 0.65rem;
        margin: 3px 5px;
    }
}

/* Стили для карусели документов */
.documents {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.documents h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.documents h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    border-radius: 3px;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 25px 0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.carousel {
    display: flex;
    animation: slide 120s linear infinite;
    width: calc(44 * 300px);
}

.carousel-slide {
    min-width: 300px;
    margin-right: 20px;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.03);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%); /* Перемещаем на полную ширину карусели для бесшовной прокрутки */
    }
}

/* Приостановка анимации при наведении */
.carousel-container:hover .carousel {
    animation-play-state: paused;
}

/* Модальное окно для просмотра изображений */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.close:hover {
    color: #bbb;
}

/* Адаптивность для карусели */
@media (max-width: 768px) {
    .carousel {
        width: calc(44 * 250px);
    }
    
    .carousel-slide {
        min-width: 250px;
    }
    
    .carousel-slide img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .carousel {
        width: calc(44 * 200px);
    }
    
    .carousel-slide {
        min-width: 200px;
    }
    
    .carousel-slide img {
        height: 150px;
    }
    
    .documents h2 {
        font-size: 1.5rem;
    }
}

/* Стили для кнопки "Отзывы на Яндексе" */
.yandex-reviews-button {
    text-align: center;
    margin-top: 2.5rem;
}

.yandex-review-link {
    display: inline-block;
    background: linear-gradient(to right, #ffcc00, #ffda33);
    color: #000;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
    border: 1px solid #e6b800;
    letter-spacing: 0.5px;
}

.yandex-review-link:hover {
    background: linear-gradient(to right, #ffe04d, #ffe866);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 204, 0, 0.4);
}

/* Адаптивность для кнопки Яндекс */
@media (max-width: 768px) {
    .yandex-review-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .yandex-review-link {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Стили для модального окна маршрута */
.route-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.route-modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.route-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.route-modal-content p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.route-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.route-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.yandex-maps {
    background-color: #ffcc00;
    color: #000;
}

.yandex-navi {
    background-color: #f00;
    color: white;
}

.google-maps {
    background-color: #4285f4;
    color: white;
}

.cancel {
    background-color: #95a5a6;
    color: white;
}

/* Адаптивность для модального окна маршрута */
@media (max-width: 480px) {
    .route-modal-content {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .route-btn {
        padding: 10px 15px;
    }
}
