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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

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

/* Шапка */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header h1 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2em;
    color: #4B0082;
    margin-bottom: 10px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.main-nav a:hover {
    color: #4B0082;
    border-bottom: 2px solid #4B0082;
}

/* Контактная полоса */
.contact-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: #f8f8f8;
    margin-bottom: 30px;
    border-left: 4px solid #4B0082;
}

.contact-bar span {
    font-weight: 600;
    color: #4B0082;
}

/* Галерея */
.gallery-section {
    margin-bottom: 40px;
}

.topik {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 2em;
    color: white;
    text-align: center;
    padding: 0.5em;
    background: #4B0082;
    margin: 0 0 20px;
}

.gallery-tabs {
    text-align: center;
    margin-bottom: 20px;
}

.tab-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1em;
    transition: background 0.3s, color 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: #4B0082;
    color: white;
    border-color: #4B0082;
}

.gallery-container {
    text-align: center;
}

.gallery-container img {
    display: inline-block;
    width: 390px;
    margin: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.02);
}

.f {
    text-align: center;
    margin-top: 30px;
}

.lw {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8em;
    color: #4B0082;
    margin-bottom: 10px;
}

.lwn {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4B0082;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.btn:hover {
    background: #3a0063;
}

/* Цены */
.category {
    margin-bottom: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8em;
    color: white;
    background: #4B0082;
    padding: 15px;
    text-align: center;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
}

.price-table th,
.price-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.price-table th {
    background: #f5f5f5;
    color: #4B0082;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 0.95em;
}

.price-table th:nth-child(2),
.price-table th:nth-child(3),
.price-table td:nth-child(2),
.price-table td:nth-child(3) {
    text-align: center;
    color: #4B0082;
    font-weight: 600;
}

/* Форма */
.contact-section {
    background: #f9f9f9;
    padding: 40px 0;
    margin: 40px 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4B0082;
    font-family: 'Roboto Condensed', sans-serif;
}

#order-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#order-form input,
#order-form textarea {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#order-form textarea {
    min-height: 120px;
    resize: vertical;
}

#order-form button {
    padding: 12px;
    background: #4B0082;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
}

#order-form button:hover {
    background: #3a0063;
}

/* Футер */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 2px solid #eee;
}

.footer .phone {
    font-size: 1.3em;
    color: #4B0082;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .contact-bar {
        flex-direction: column;
        gap: 10px;
    }

    .gallery-container img {
        width: 100%;
        max-width: 350px;
    }

    .tab-btn {
        display: block;
        width: 80%;
        margin: 5px auto;
    }
}

/* Модальное окно */
.modal {
    display: block;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    width: 90%;
    height: 90%;
    top: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    z-index: 2001;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    z-index: 1002;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.carousel-btn:hover {
    background: rgba(255,255,255,1);
}

.carousel-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 4px;
}

/* Горизонтальный слайдер галереи */
.gallery-slider-container {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    padding: 0 10px; /* Только небольшие отступы (убраны отступы для кнопок, т.к. они убраны) */
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4B0082 #f0f0f0;
    padding: 10px 0;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.gallery-slider::-webkit-scrollbar {
    height: 8px;
}

.gallery-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.gallery-slider::-webkit-scrollbar-thumb {
    background: #4B0082;
    border-radius: 4px;
}

.gallery-slider::-webkit-scrollbar-thumb:hover {
    background: #3a0063;
}

.gallery-slide {
    flex: 0 0 auto;
    margin-right: 10px;
    scroll-snap-align: start;
}

.gallery-slide img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-slide img:hover {
    transform: scale(1.05);
}

/* Для адаптивности */
@media (max-width: 768px) {
    .gallery-slider-container {
        padding: 0 40px;
    }
    
    .gallery-slide img {
        width: 250px;
        height: 180px;
    }
}

/* Круглая кнопка Telegram */
.telegram-btn {
    position: fixed;
    bottom: 100px; /* Поднята выше */
    right: 30px;
    width: 60px;
    height: 60px;
    background: #0088cc; /* Цвет Telegram */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000; /* Ниже #back-to-top */
    transition: all 0.3s ease;
}

.telegram-btn:hover {
    background: #00a0e3;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.telegram-btn svg {
    width: 30px;
    height: 30px;
}

/* Кнопка "Наверх" - теперь такого же размера */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #4B0082;
    color: white;
    text-align: center;
    font-size: 28px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;

    /* Анимация появления */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* начальное смещение вниз */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #3a0063; /* Темнее фиолетовый при наведении */
    cursor: pointer;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196F3;
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification button:hover {
    opacity: 0.8;
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}