/* 🌟 Современный редизайн с анимациями 🌟 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Merriweather:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: #2c3e50;
    line-height: 1.6;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    animation: fadeIn 1s ease-in-out;
}

/* 🔥 Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Верхняя панель */
.top-bar {
    background: linear-gradient(90deg, #fff, #fff);
    color: white;
    padding: 12px 0;
    text-align: center;
    animation: slideUp 1s ease-in-out;
}

/* Кнопка-ссылка */
.external-link {
    display: inline-block;
    background: linear-gradient(135deg, #ff6a00, #ee0979);
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.external-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Шапка */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #ecf0f1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    animation: slideUp 1.2s ease-in-out;
}

.logo {
    margin-top: 10px; /* Настройте нужное значение */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}
/* Навигация */
nav ul li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}
nav ul li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 5px;
    background: #0047ab;
    transition: width 0.3s;
}
nav ul li a:hover::after {
    width: 100%;
}

/* Кнопки / карточки */
.image-button {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    animation: scaleIn 0.8s ease-in-out;
}
.image-button:hover {
    transform:none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Галерея */
.gallery-item img {
    transition: transform 0.4s ease;
}
.gallery-item img:hover {
    transform: scale(1.08);
}

/* Индикаторы */
.gallery-dot {
    transition: transform 0.3s, background 0.3s;
}
.gallery-dot:hover {
    transform: scale(1.3);
    background: #0047ab;
}

/* Соц. иконки */
.social-icons a {
    transition: all 0.4s;
}
.social-icons a:hover {
    background-color: #0047ab;
    transform: scale(1.1);
}

/* Заголовки */
.section-title {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    position: relative;
    animation: fadeIn 1.5s ease;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #000, #000000);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Подвал */
footer {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: white;
    padding: 50px 5%;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

/* --- Оставляем остальную часть старого CSS для структуры --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

/* Верхняя планка */
.top-bar {
    background-color: #fff;
    color: white;
    padding: 12px 0;
    text-align: center;
}

.external-link {
    display: inline-block;
    background-color: #3498db;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.external-link:hover {
    background-color: #808080;
    transform: translateY(-2px);
}

/* Шапка */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}
.logo {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
}
.logo img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}
.logo i {
    margin-right: 10px;
    font-size: 28px;
}
.header-right {
    display: flex;
    align-items: center;   /* всё строго по центру */
    gap: 12px;             /* расстояние между элементами */
}
.contact {
    margin-right: 20px;
    font-weight: bold;
    color: #2c3e50;
    white-space: nowrap;
}
.contact i {
    margin-right: 5px;
    color: #27ae60;
}
.phone-icon {
    display: none;
    margin-right:0px;
    color: #2c3e50;
    font-size: 20px;
    text-decoration: none;
}
.menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #2c3e50;
}

/* Навигация */
nav {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    padding: 0 5%;
}
nav.active {
    display: block;
}
nav ul {
    list-style: none;
}
nav ul li {
    border-bottom: 1px solid #eee;
}
nav ul li:last-child {
    border-bottom: none;
}
nav ul li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #0047ab;
}

/* Медиа-блок */
.media-container {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
}
.media-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопки */
.buttons-section {
    padding: 40px 5%;
    background-color: #ecf0f1;
}
.section-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0047ab;
}

.image-button {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.image-button:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.button-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Для экранов больше 700px */
@media (min-width: 701px) {
    .button-image {
        height: 350px; /* или любая другая высота */
    }
}



.button-image-art {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-top: 15px;
}


.button-text {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

/* Слайдер */
.gallery-section {
    margin-top: 15px;
    padding: 20px 5%;
    background-color: white;
    position: relative;
}
.gallery {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}
.gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    scrollbar-width: none; /* Firefox */
}
.gallery-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.gallery-item img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Навигация слайдера */
.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    padding: 0 15px;
}
.gallery-nav button {
    background-color: rgba(44, 62, 80, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: background-color 0.3s;
    position: relative;
}
.gallery-nav button:hover {
    background-color: rgba(26, 37, 47, 0.9);
}

/* Индикаторы слайдов */
.gallery-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 1px;
}
.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}
.gallery-dot.active {
    background-color: #2c3e50;
}
.gallery-dot:hover {
    background-color: #95a5a6;
}

/* Сеточная галерея */
.gallery-grid,
.gallery-grid-auto {
    display: grid;
    gap: 30px;
    padding: 20px 0;
}
.gallery-grid {
    grid-template-columns: repeat(2, 1fr);
}
.gallery-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.gallery-item-auto img {
    width: 100%;
    height: auto;
    display: block;
}

/* Карта */
.map-section {
    padding: 0 5% 20px;
    margin-top: 30px;
    background-color: #ecf0f1; /* светло-серый фон за картой */
}
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #ecf0f1;
}
#map {
    width: 100%;
    height: 100%;
     background-color: #ecf0f1;

}

/* Подвал */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 5%;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}
.footer-links a {
    color: #ecf0f1;
    margin: 0 10px 10px;
    text-decoration: none;
    font-size:17px;
}
.footer-links a:hover {
    text-decoration: underline;
}
.social-icons {
    margin-top: 10px;
    margin-bottom: 20px;
    display:flex;
    justify-content:center;
    gap: 30px;
    
}



.social-icons a {
    display: inline-block;
    color: white;
    background-color: 2a5298;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    margin: 0 5px;
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Блок "О нас" */
.about-section {
    padding: 30px 5%;
    background-color: #ecf0f1;
}
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.about-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
    font-family: 'Roboto', sans-serif;
}
.about-list {
    margin: 20px 0;
    padding-left: 20px;
}
.about-list li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

/* Адаптивность - ОСНОВНЫЕ ИЗМЕНЕНИЯ ДЛЯ КОМПАКТНОСТИ */

    
    /* Уменьшаем отступы секций */
    .buttons-section {
        padding: 25px 4% 15px;
    }
    
    .gallery-section {
        padding: 10px 4% 5px;
    }
    
    .map-section {
        padding: 5px 4% 15px;
    }
    
    /* Уменьшаем отступы заголовков */
    .section-title {
        margin-bottom: 12px;
        font-size: 22px;
    }
    
    /* Делаем навигационные кнопки меньше */
    .gallery-nav button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* Уменьшаем высоту карты */
    .map-container { 
        height: 300px; 
    }
    
    header { 
        flex-wrap: wrap; 
    }
    .logo { 
        font-size: 20px; 
    }
    .contact { 
        font-size: 14px; 
    }



    
    .gallery-section {
        padding: 5px 3% 0;
    }
    
    .map-section {
        padding: 10 3% 40px;
    }
    
    .section-title {
        margin-bottom: 8px;
        font-size: 20px;
    }
    
    /* Уменьшаем высоту изображений в галерее */
    .gallery-item img {
        max-height: 45vh;
    }
    
    /* Уменьшаем индикаторы */
    .gallery-dot {
        width: 10px;
        height: 10px;
    }
    
    
    .button-text { 
        font-size: 14px; 
    }
    
    .logo { 
        font-size: 18px; 
    }
    .contact { 
        display: none; 
    }
    .map-container { 
        height: 250px; 
    }
    .gallery-nav {
        padding: 0 5px;
    }
    .gallery-nav button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }


/* Для очень маленьких экранов (например, iPhone 5/SE) */

    
    .gallery-nav button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .buttons-section {
        padding: 15px 2% 8px;
    }
    
    .gallery-section {
        padding: 3px 2% 0;
    }
    
    .map-section {
        padding: 0 2% 10px;
    }



    .phone-icon { 
        display: block; 
    }
    .logo img { 
        max-height: 90px; 
    }






/* Стили для формы замера */
.zamer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.zamer-instructions {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.zamer-instructions p {
    margin-bottom: 8px;
}

.zamer-map-container {
    width: 100%;
    margin-bottom: 20px;
}

.zamer-map {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.zamer-options {
    margin-bottom: 30px;
}

.day-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.day-option {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.day-card {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.day-card:hover {
    background-color: #d6dbdf;
    transform: translateY(-5px);
}

.day-card h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.address-info {
    flex: 2;
    min-width: 250px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.address-text {
    font-weight: bold;
    margin-bottom: 10px;
}

.distance-text {
    color: #7f8c8d;
}

.zamer-type-selector {
    margin-bottom: 30px;
}

.subsection-title {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.subsection-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
}

.zamer-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.type-option {
    cursor: pointer;
}

.type-card {
    background-color: #ecf0f1;
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    height: 100%;
}

.type-card:hover {
    background-color: #d6dbdf;
    transform: translateY(-5px);
}

.type-card h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.4;
}

.photo-upload-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.photo-upload-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.photo-upload-section li.success {
    color: #27ae60;
}

.photo-upload-section li.error {
    color: #e74c3c;
}

.zamer-output {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.calculation-result {
    text-align: left;
}

.contact-info-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 15px 0;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.error-message {
    color: #e74c3c;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fadbd8;
    border-radius: 5px;
}

.checkmark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: none;
    width: 24px;
    height: 24px;
}

/* Адаптивность для мобильных устройств */

    
    .day-option {
        min-width: 100%;
    }
    
    .address-info {
        min-width: 100%;
    }
    
    .zamer-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zamer-map {
        height: 350px;
    }



    
    .zamer-type-grid {
        grid-template-columns: 1fr;
    }
    
    .zamer-map {
        height: 300px;
    }
    
    .day-card h3 {
        font-size: 1.3rem;
    }
    
    .type-card h4 {
        font-size: 1rem;
    }



/* Красивое оформление текста */
/* Улучшенное оформление текста */
/* Красивое оформление текста в синих тонах */
.about-content {
    font-family: 'Roboto', sans-serif;
    color: #2c3e50;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 30px;
    text-align: center;
}

.about-text {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* Выделение важных слов */
.about-text b {
    color: #1e6bd6;
    font-weight: 600;
    background: rgba(30, 107, 214, 0.08);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Блоки для перечислений */
.about-highlight {
    background: #f0f6fc;
    border-left: 4px solid #1e6bd6;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 12px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
}

/* Списки преимуществ */
.about-advantages {
    margin: 20px 0;
    padding: 20px 25px;
    background: #f0f6fc;
    border-radius: 8px;
    border: 1px solid #d6e6fa;
}

.about-advantages h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #1e6bd6;
}

.about-advantages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-advantages li {
    margin-top: 0;
    margin-bottom: 12px;
    padding-left: 5px;
    border-left: 4px solid #1e6bd6;
    font-size: 16px;
    color: #333;
}

/* 🔧 Исправление бага с серой полосой */
.about-section {
    padding: 30px 5% 10px; /* снизу меньше отступ */
    background-color: #ecf0f1;
}

.map-section {
    margin-top: 10; /* убираем разрыв */
}



/* 🔵 Синие кнопки для расчета и калькулятора */
.calc-button, .zamer-output button, .type-card.selected {
    background: linear-gradient(135deg, #1e6bd6, #0047ab);
    color: white !important;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 71, 171, 0.3);
}
.calc-button:hover, .zamer-output button:hover, .type-card.selected:hover {
    background: linear-gradient(135deg, #0047ab, #002d72);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.45);
}


.top-bar .external-link {
    background: linear-gradient(135deg, #fff, #fff) !important;
    color: #000 !important;
}
.top-bar .external-link:hover {
    background: linear-gradient(135deg, #0047ab, #002d72) !important;
}

.about-text .external-link {
    background: linear-gradient(135deg, #1e6bd6, #0047ab) !important;
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    padding: 14px 28px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 71, 171, 0.3);
}
.about-text .external-link:hover {
    background: linear-gradient(135deg, #0047ab, #002d72) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.45);
}
/* 🌟 Современный стиль для статьи с анимациями 🌟 */

/* 1. Фон и эффекты */
.about-section {
    background: linear-gradient(135deg, #f8faff, #eef3ff); /* Лёгкий синий градиент */
    position: relative;
    overflow: hidden;
    padding: 40px 3%;
    animation: fadeInUp 1s ease forwards;
}


@keyframes float {
  from { transform: translateY(0px); }
  to { transform: translateY(20px); }
}

/* 2. Анимация появления */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. Карточки и список преимуществ */
.about-advantages li {
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #1e6bd6; /* Линия слева для каждого элемента */
    margin-left: 10px;
    padding-left: 10px;
}
.about-advantages li:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 4. Линия под заголовком */
.section-title {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #000, rgb(0, 0, 0));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Пульсация линии */
@keyframes pulseLine {
  0%, 100% { width: 60px; opacity: 0.6; }
  50% { width: 100px; opacity: 1; }
}

/* 5. Выделение текста */
.about-text b {
    color: #1e6bd6;
    font-weight: 600;
    background: rgba(30, 107, 214, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
}

/* 6. Стиль для ссылок */
.about-text .external-link {
    display: inline-block;
    background: linear-gradient(135deg, #1e6bd6, #0047ab);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.about-text .external-link:hover {
    background: linear-gradient(135deg, #0047ab, #002d72);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* 7. Стиль для текста */
.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}
.about-advantages {
    margin-top: 20px;
    padding: 20px;
    background: #f0f6fc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* 🎨 Улучшения для слайдера и текста */

/* Обновление слайдера */
.s-home-slider {
    padding: 0;
    background-color: #ecf0f1;  /* Светлый фон для слайдера */
}

.home-slider__item {
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.home-slider__item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.home-slider__title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.home-slider__desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

/* Кнопки слайдера */
.btn-br {
    display: inline-block;
    background: linear-gradient(135deg, #1e6bd6, #0047ab);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-br:hover {
    background-color: #003c6c;
    transform: translateY(-4px);
}

/* Мобильный вид для слайдера */

    .home-slider__desc {
        font-size: 14px;
    }


/* Обновление слайдерных изображений */
.home-slider__img-image img {
    transition: transform 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-slider__img-image img:hover {
    transform: scale(1.05);
}

/* Оформление списка с адресами */
.home-slider-content__list li {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

/* Добавление отступов для текста */
.about-section {
    padding: 80px 3% 60px;
}

/* Текст в разделе "О нас" */
.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* Заголовки и список преимуществ */
.about-advantages h3 {
    font-size: 26px;
    color: #1e6bd6;
    margin-bottom: 15px;
}

.about-advantages ul {
    list-style: none;
    padding: 0;
}

.about-advantages li {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
    border-left: 4px solid #1e6bd6;
    padding-left: 10px;
}

.about-advantages li:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Анимации для текста */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}




/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* --- Слайдер: фон статичный, анимация только текста и фото --- */
/* --- Слайдер: фон статичный, анимация только текста и фото --- */
.slider-container {
  display: none;
  justify-content: space-between;
  align-items: center;
  background-color: #ecf0f1; /* фон не двигается */
  border-radius: 15px;
  overflow: hidden;
  margin: 0px;
  padding: 10 0px;
  position: relative;
  height: auto; /* фиксированная высота, чтобы не прыгало */
  
}
/* Для экранов шире 550px */
@media (min-width: 300px) {
  .slider-container {
    height: auto; /* новый размер блока */
    padding: 10px 10px; /* можно менять отступы */

  }
}
/* Для экранов шире 550px */
@media (min-width: 550px) {
  .slider-container {
    max-Height: 600px; /* новый размер блока */
    padding: 20px 10px; /* можно менять отступы */



  }
}

/* Для экранов шире 550px */
@media (min-width: 850px) {
  .slider-container  {
    padding: 10px 0; /* увеличенный отступ для больших экранов */
    max-Height:600px;
  }
}




.slider-container.active {
  display: flex;
}

/* Текст */
.slider-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: #000000;
  padding: 10px 20px 40px 20px;
}




.slider-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.slider-description {
  font-size: 16px;
  line-height: 0.9;
  margin: 0;
}

/* Точки */
.dots {
  position: absolute;
  bottom: 15px;
  left: 40px;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: #000000
  ;
  transform: scale(1.2);
}

/* Фото */
.slider-image {
  margin-left: 10px;
}

.slider-image img {
  width: 100%;
  max-width: auto; /* было 400px */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(77, 76, 165, 0.2);
}


/* Для экранов шире 550px */
@media (min-width: 300px) {
  .slider-image {
    max-width: auto;

  }
}


/* Для экранов шире 550px */
@media (min-width: 550px) {
  .slider-image {
    padding: 10px 0; /* увеличенный отступ для больших экранов */
    max-Height:600px;
    Max-width: 300px;



  }
}



/* Для экранов шире 550px */
@media (min-width: 850px) {
  .slider-image {
    padding: 10px 0; /* увеличенный отступ для больших экранов */
    max-Height:600px;
    Max-width: 300px;




  }
}




/* --- Анимации --- */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOutSlide {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-40px); }
}

.slider-container.active .slider-text {
  animation: fadeSlideIn 0.8s ease-in-out forwards;
}

.slider-container.active .slider-image img {
  animation: fadeSlideIn 0.8s ease-in-out forwards;
}

.slider-container.fade-out .slider-text {
  animation: fadeOutSlide 0.6s ease-in-out forwards;
}

.slider-container.fade-out img {
  animation: fadeOutSlide 0.6s ease-in-out forwards;
}

.slider-wrapper {
  margin-top: 0px; /* регулируй — 20px, 40px, 60px */
}

/* --- Поправки отступов для уменьшения пространства --- */
.about-section {
  padding: 15px 1% 30px; /* было 80px 5% 60px */
}

.slider-wrapper {
  margin-bottom: 0px; /* уменьшили нижний отступ */
}

.slider-container {
  padding: 15px 16px; /* уменьшили паддинг сверху/снизу */
}



/* 📱 Телефон рядом с кнопкой меню + разделитель */
.header-right {
    display: flex;
    align-items: center;   /* всё строго по центру */
    gap: 12px;             /* расстояние между элементами */
}

.phone-icon,
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;       /* одинаковый размер */
    line-height: 1;        /* убираем лишние отступы */
    color: #2c3e50;
    background: none;
    border: none;
    cursor: pointer;
}

/* Показываем телефон-иконку на мобильных */

    .contact {
        display: none;
    }


.section-divider {
  width: 100%;
  height: 3px;                 /* толщина полоски */
  background: #b6b6b6;         /* цвет (серый, можно заменить) */
  margin: 0px 0;              /* отступы сверху и снизу */
}


/* === Белый фон для всех элементов === */
body,
header,
.s-home-slider,
.buttons-section,
.gallery-section,
.map-section,
.about-section,
.image-button,
.home-slider__item,
.about-content,
.day-card,
.type-card,
.photo-upload-section,
.slider-container.active,
.zamer-output {
    background: #fff !important;
}

/* Черный контур вокруг всех основных блоков */

header,
.buttons-section,
.buttons-section img,
.s-home-slider,
.about-section,
.image-button,
.home-slider__item,
.day-card,
.type-card,
.photo-upload-section,
.slider-container,
.zamer-output {
    outline: 1px solid #000; /* вместо border */
    outline-offset: -1px;    /* чтобы не "выпирал" наружу */
    border: none !important; /* убрать старый */
}



.home-slider__item,
.slider-container,
.about-content,
.day-card,
.type-card,
.photo-upload-section,
.zamer-container,
.zamer-output {
    border-radius: 0 !important;
}

/* Отдельная линия-разделитель */
.divider {
    width: 2px;
    height: 22px;           /* равномерная высота */
    background-color: #2c3e50;
    align-self: center;     /* строго по центру */
}


.section-title,
h2, h3 {
    line-height: 0.9;   /* компактнее */
}


/* 📱📲 Две фотки на планшетах без точек */

  




/* === Базовые стили остаются как есть === */

/* 💻 Адаптация до 1200px (ноутбуки и планшеты в горизонтали) */
@media (max-width: 1200px) {
  body { font-size: 15px; }
  header { flex-wrap: wrap; padding: 10px 3%; }
  .logo { font-size: 20px; }
  nav { width: 100%; padding: 0 3%; }
  .section-title { font-size: 26px; }
  .gallery-container .swiper-slide img { max-height: 65vh; }
  footer { padding: 30px 3%; }
}

/* 📱 Адаптация до 992px (планшеты) */
@media (max-width: 992px) {
  body { font-size: 14px; }
  header { flex-direction: column; align-items: flex-start; }
  .header-right { margin-top: 10px; }
  
  .map-container { height: 280px; }
}

/* 📱 Адаптация до 768px (маленькие планшеты и большие смартфоны) */
@media (max-width: 768px) {
  body { font-size: 17px; }
  .section-title { font-size: 22px; text-align: center; }
  nav ul { flex-direction: column; gap: 10px; }
  .contact { display: none; }
  .phone-icon { display: flex; }
  .gallery-container .swiper-slide img { max-height: 55vh; }
  
  footer { text-align: center; }
}

/* 📱 Адаптация до 550px (смартфоны) */
@media (max-width: 550px) {
  
  .gallery-container .swiper-slide img { max-height: 50vh; }
  
  .section-title { font-size: 20px; }
}

/* 📱 Адаптация до 480px (обычные смартфоны) */
@media (max-width: 480px) {
  body { font-size: 12px; }
  .logo { font-size: 18px; }
  .menu-toggle { font-size: 20px; }
  .section-title { font-size: 18px; }
  .map-container { height: 220px; }
}

/* 📱 Адаптация до 320px (маленькие экраны) */
@media (max-width: 320px) {
  body { font-size: 11px; }
  .logo { font-size: 16px; }
  .section-title { font-size: 16px; }
}



.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* всегда две колонки */
  gap: 20px;
}



/* 🖼️ Галерея — 2 фото в ряд на больших экранах, 1 фото на мобилках */
.gallery-item {
  flex: 0 0 50%;
}

@media (max-width: 550px) {
  .gallery-item {
    flex: 0 0 100%;
  }
}



/* Лайтбокс */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}


/* 📱 Блок справа (телефон + разделитель + меню) */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;   /* прижать вправо */
}

/* Вертикальная палочка-разделитель */
.divider {
    width: 2px;
    height: 22px;
    background-color: #2c3e50;
    align-self: center;
}

/* --- Адаптив --- */
@media (max-width: 992px) {
  header { 
      flex-direction: row;   /* оставить в линию, не переносить вниз */
      align-items: center;
  }

  .header-right {
      margin-left: auto;     /* прижать вправо */
  }
}


/* Увеличение шрифта в бургер-меню */
@media (max-width: 992px) {
    nav ul li a {
        font-size: 16px !important; /* Увеличиваем размер шрифта */
        padding: 16px 0 !important; /* Увеличиваем отступы для удобства касания */
        font-weight: 600; /* Делаем текст более жирным */
    }
    
    /* Увеличение иконки бургер-меню */
    .menu-toggle {
        font-size: 28px !important; /* Увеличиваем размер иконки */
    }
}


/* Галерея в один столбец */
.gallery-column {
    display: flex;
    flex-direction: column; /* Расположение сверху вниз */
    gap: 10px;              /* Отступы между изображениями */
}

.gallery-column img {
    width: 100%;           /* Растягиваем на всю ширину контейнера */
    height: auto;          /* Сохраняем пропорции */
    border-radius: 5px;    /* Закругленные углы, по желанию */
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-column img:hover {
    transform: scale(1.02); /* Легкое увеличение при наведении */
}



/* Стили для блока с реквизитами */
.requisites {
    background: #fff;
    padding: 30px;
    margin: 30px 5%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-in-out;
    border-left: 4px solid #000;
}

.requisites-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.requisites-content p {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.requisites-content p strong {
    color: #000;
    min-width: 180px;
    display: inline-block;
}

/* Адаптивность для реквизитов */
@media (max-width: 768px) {
    .requisites {
        margin: 20px 3%;
        padding: 20px;
    }
    
    .requisites-content {
        grid-template-columns: 1fr;
    }
    
    .requisites-content p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .requisites-content p strong {
        margin-bottom: 5px;
    }
}