/* Основные стили */
* {
    box-sizing: border-box;
}
/* Добавлено для корректной работы min-height: 100vh у body */
html {
    height: 100%;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(255, 253, 250); /* Новый молочно-песочный белый фон */
    color: #4E342E; /* Теплый темно-коричневый основной цвет текста */
    /* Добавлено для flexbox layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* Добавлено, чтобы main занимал доступное пространство */
main {
    flex-grow: 1;
}
header {
    background: #ffffff; /* Фон оставлен без изменений */
    padding: 1em 0;
}
/* Внутренний контейнер для ограничения ширины контента */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
/* Убедись, что фоны растягиваются на всю ширину */
header, footer, section {
    width: 100%;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
nav div {
    display: flex;
    align-items: center;
}
nav div a {
    color: #ef5350bf; /* Новый мягкий кораллово-оранжевый */
    margin-left: 3em;
    text-decoration: none;
    font-size: x-large;
    transition: color 0.2s ease;
}
/* Скрытие меню на мобильных устройствах */
.burger-menu {
    display: none;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #ef5350bf;
    cursor: pointer;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
nav div {
    display: flex;
    align-items: center;
}
nav div a {
    color: #ef5350bf; /* Новый мягкий кораллово-оранжевый */
    margin-left: 3em;
    text-decoration: none;
    font-size: x-large;
    transition: color 0.2s ease;
}

/* Медиазапрос для планшетов (ширина экрана до 1024px) */
@media (max-width: 1024px) {
    body {
        font-size: 18px; /* Увеличиваем шрифт для планшетов */
    }

    .mainphoto {
        height: 600px; /* Увеличиваем высоту для планшетов */
    }

    .mainphoto .text h2 {
        font-size: 2.5em; /* Подгоняем размер заголовка */
    }

    .mainphoto .text h3 {
        font-size: 1.2em; /* Подгоняем размер подзаголовка */
    }

    .service-item, .also-rent, .free-also-rent {
        width: 45%; /* Уменьшаем ширину карточек на планшетах */
    }

    .footer-column {
        margin-bottom: 30px; /* Увеличиваем отступы между колонками */
    }
}








/* === MAIN PHOTO SECTION === */
.mainphoto {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 750px;
    position: relative;
    margin-top: 20px;
    background: #fbf8f0;
    overflow: hidden;
}
.mainphoto .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 20px;
}
.mainphoto .mainphoto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(80%) sepia(20%) contrast(90%);
}
.mainphoto .text {
    position: relative;
    z-index: 2;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.mainphoto .text h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #EF5350;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}
.mainphoto .text h3 {
    font-size: 1.3em;
    font-weight: normal;
    line-height: 1.8;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.mainphoto .text button {
    padding: 15px 30px;
    background-color: #EF5350;
    color: #fff;
    border: 2px solid #EF5350;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.mainphoto .text button:hover {
    background-color: #fff;
    color: #EF5350;
    box-shadow: 0 4px 10px rgba(239, 83, 80, 0.3);
}
.mainphoto .text button a {
    color: inherit;
    text-decoration: none;
}

/* === RESPONSIVE (MOBILE <768px) === */
@media (max-width: 768px) {
    html, body {
        font-size: 14px;
    }
    header .content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        max-width: 99%;
        padding: 0 20px;
    }
    content{
        width: 768px;
        max-width: 99%;
    }
    nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    }
    nav div {
    display: flex;
    align-items: center;
    }
    nav div a {
    color: #ef5350bf; /* Новый мягкий кораллово-оранжевый */
    margin-left: 1em;
    text-decoration: none;
    font-size: large;
    transition: color 0.2s ease;
    }
    nav div a1 {
        margin-left: 0.1em;
    }
    .mainphoto {
        height: auto;
        padding: 20px 0;
    }
    .mainphoto .content {
        height: auto;
        padding: 10px;
    }
    .mainphoto .text {
        padding: 20px;
    }
    .mainphoto .text h2 {
        font-size: 2em;
    }
    .mainphoto .text h3 {
        font-size: 1em;
    }
    .mainphoto .text button {
        font-size: 1em;
        padding: 10px 20px;
    }
    
    .main-content .image-block {
    flex: 1 1 500px;
    max-width: 80%;
    max-height: 400px;
}

    /* Services section */
    .service-item {
        width: 99% !important;
        margin: 2em 0 !important;
    }

    /* Footer */
    footer, .footer-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }
    .footer-column {
        width: 99%;
        margin-bottom: 30px;
    }
}








/* BEST SELLER */
.best-seller {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #EF5350; /* Новый мягкий кораллово-оранжевый фон */
    color: white;
    padding: 10px 20px;
    border: 0px solid #d93f19e1; /* Белая рамка */
    transition: box-shadow 0.3s ease;
    box-shadow: 0 6px 10px rgba(255, 47, 0, 0.348);
    border-radius: 30px;
    width: max-content;
    font-size: 1.3em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 0px 5px rgba(255, 47, 0, 0.939);
}
.TopSales h2 {
    font-size: xx-large;
    margin-bottom: 70px;
    margin-top: 50px;
    color: #4E342E;
}

















/* SERVICES & GALLERY */
.bestSales {
    padding: 10px;
    text-align: center;
    background-color: rgb(255, 253, 250); /* Фон оставлен без изменений (очень светлый розовый) */
    margin-top: 50px;
}
.service-item {
    position: relative;
    display: inline-block;
    margin: 20px;
    padding: 10px;
    border-bottom: 1px solid rgba(239, 83, 80, 0.3); /* Линия на основе нового цвета */
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 10px rgba(78, 52, 46, 0.15);
    width: 340px;
    margin-top: 2em;
    transition: box-shadow 0.3s ease;
    background-color: #ffffff;
}
.service-item:hover {
    box-shadow: 0 10px 15px rgba(239, 83, 80, 0.339); /* Свечение при наведении на основе нового цвета */
}
.service-item h1{
    font-size: 2em;
    color: #362420;
    margin-top: 1.2em;
    font-weight: bolder;
}
.service-item p{
    font-size: 0.8em;
    color:#867b77c8;
    margin-top: -0.4em;
}
.service-item h5{
    font-size: 0.8em;
    color: #897c78d5;
    margin-top: -1.5em;
}
.service-item hr {
    width: 200px;
    height: 3px;
    background-color: rgba(251, 192, 45, 0.7); /* Золотой разделитель оставлен */
    border: none;
    margin: 30px auto;
}
.bestSales .service-item button {
    background-color: transparent;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    border: 3px solid #EF5350; /* Новый мягкий кораллово-оранжевый */
    border-radius: 15px;
    font-size: 1em;
    cursor: pointer;
    padding: 10px 20px;
    margin-top: 15px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.bestSales .service-item button:hover {
    background-color: #EF5350; /* Новый мягкий кораллово-оранжевый фон */
    color: white;
    box-shadow: 0 4px 10px rgba(239, 83, 80, 0.3); /* Свечение */
}
.bestSales .service-item button a {
    color: inherit;
    text-decoration: none;
}
.service-item img {
    width: 95%;
    height: 350px;
    position: center;
    border-radius: 3%;
    object-fit: cover;
}
.TopSales h2{
  font-size: 2.7em;
  margin-top: 1em;
  margin-bottom: 1.5em;
  color: #EF5350
}



















/* PRODUCT CARDS SECTION */
.also-rents {
    margin-top: 50px;
    padding: 5px;
    text-align: center;
}
.also-rent {
    background-color: #fff;
    width: 330px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(78, 52, 46, 0.1);
    margin: 10px;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    transition: box-shadow 0.3s ease;
}
.also-rent:hover {
    box-shadow: 0 6px 12px rgba(78, 52, 46, 0.15);
}
.also-rent img {
    width: 100%;
    height: 330px;
    border-radius: 8px;
}
.also-rent h3 {
    font-size: 1.2em;
    margin-top: 15px;
    color: #4E342E;
}
.also-rent .price {
    font-size: 1.1em;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый для цены */
    font-weight: bold;
}
.content-also-rent h1{
  font-size: 2.7em;
  margin-top: 1em;
  margin-bottom: 1.2em;
  color: #EF5350
}










.free-rents {
    margin-top: 50px;
    padding: 40px 20px;
    text-align: center;
    display: flex; /* Сделаем flex-контейнер */
    justify-content: center; /* Выравнивание элементов по центру */
    flex-wrap: wrap; /* Чтобы элементы не выходили за пределы, если не помещаются */
    background-color: #FFFBF7; /* Фон блока */
    border-radius: 10px; /* Закругленные углы */
    box-shadow: 0 4px 8px rgba(78, 52, 46, 0.1); /* Тень блока */
}

.free-rents h1 {
    font-size: 2.7em;
    margin-bottom: 30px;
    color: #EF5350; /* Коралловый цвет */
}

.free-also-rent {
    background-color: #fff;
    width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(78, 52, 46, 0.1);
    margin: 10px;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.free-also-rent:hover {
    box-shadow: 0 6px 12px rgba(78, 52, 46, 0.15);
}

.free-also-rent img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.free-also-rent h3 {
    font-size: 1.2em;
    margin-top: 15px;
    color: #4E342E;
}

.free-also-rent .price {
    font-size: 1.1em;
    color: #EF5350; /* Коралловый цвет для цены */
    font-weight: bold;
}
















/* Галерея - Ограничение ширины изображений */
.gallery1 {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    width: 100%;
}
.gallery1-container {
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.gallery1-item {
    width: 300px;
    height: 300px;
    height: auto;
    overflow: hidden;
}
.gallery1-item p {
    text-align: center;
    font-size: x-large;
    margin-top: 45%;
    color:#ff403d;
}
.gallery1-item img {
    width: 90%;
    height: 300px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(78, 52, 46, 0.1);
}
.gallery1 a {
  font-size: 2.2em;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    display: block;
    margin-top: 1em;
    margin-bottom: 1.2em;
    text-decoration: none;
    transition: color 0.3s ease;
}
.gallery1 a:hover {
    color: #FF8A65; /* Светлее кораллово-оранжевый при наведении */
}






















/* Стили для Галереи */
.gallery {
    padding: 40px 0;
    background-color: rgb(255, 253, 250); /* Фон оставлен без изменений (очень светлый розовый) */
    text-align: center;
}
.gallery h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    font-weight: bold;
}
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 10fr));
    gap: 20px;
    max-width: 80%;
    max-height: 80%;
    margin: 0 auto;
    padding: 0 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(78, 52, 46, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 370px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(78, 52, 46, 0.2);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item a {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.gallery-item a:hover {
    background-color: #EF5350; /* Новый мягкий кораллово-оранжевый фон */
    color: white;
}


















/* Контакты - Стили */
.contact {
    padding: 50px 20px;
    text-align: center;
    background-color: rgb(255, 253, 250); /* Фон оставлен без изменений (очень светлый розовый) */
}
.contact h1 {
    font-size: 2.5em;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    margin-bottom: 20px;
    text-align: center;
}
.contact h2 {
    font-size: 2em;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    margin-bottom: 20px;
    text-align: center;
}
.contact p {
    font-size: 1.1em;
    color: #4E342E;
    text-align: center;
}
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.contact-item {
    background-color: #ffffff;
    width: 300px;
    height: 200px;
    padding: 75px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(78, 52, 46, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(239, 83, 80, 0.25); /* Свечение при наведении на основе нового цвета */
}
.contact-item i {
    font-size: 3em;
    color: #FBC02D; /* Золотой цвет для иконок оставлен */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.contact-item:hover i {
    transform: scale(1.1);
}
.contact-item p {
    font-size: 1.1em;
    color: #4E342E;
    margin-top: 10px;
}
.contact-link {
    color: #4E342E;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}
.contact-link:hover {
    color: #EF5350; /* Новый мягкий кораллово-оранжевый при наведении */
}
/* Скрытый чекбокс */
.popup-toggle {
    display: none;
  }
  
  /* Кнопки контактов */
  .contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 10px;
    background: #f1f1f1;
    color: #222;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  /* WhatsApp — базовый и при наведении */
  .contact-button.whatsapp {
    color: #25d366;
  }
  .contact-button.whatsapp:hover {
    background-color: #25d366;
    color: #fff;
  }
  
  /* Instagram — базовый и при наведении градиент */
  .contact-button.instagram {
    color: #E1306C;
  }
  .contact-button.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
  }
  
  /* Телефон (работает как кнопка через label) */
  .contact-button.phone {
    color: #333;
    font-size: 15px;
    width: 123px;
    margin-right: 5px;
    padding-right: -500px;
  }
  .contact-button.phone:hover {
    background-color: #ddd;
  }
  
  /* Затемнение */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  
  /* Плашка */
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    max-width: 400px;
    height: 50vh;
    background: #f9f9f9;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 30px 25px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    color: #222;
  }
  
  /* Закрытие */
  .popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    color: #444;
    transition: color 0.3s;
  }
  .popup-close:hover {
    color: #000;
  }
  
  /* Активные состояния */
  #popup-phone:checked ~ .contact-container + .popup-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  #popup-phone:checked ~ .contact-container + .popup-overlay + .popup-phone {
    opacity: 1;
    pointer-events: auto;
    display: flex;
  }
  
















/* BACKDROPS MAIN SECTION */
.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    background-color: #FFFBF7; /* Новый молочно-песочный белый фон */
    text-align: left;
}

.main-content.text-block button {
  margin-top: 30px;
  padding: 15px 30px;
  background-color: transparent;
  color: #EF5350; /* Новый мягкий кораллово-оранжевый */
  border: 2px solid #EF5350; /* Новый мягкий кораллово-оранжевый */
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  margin-left: 25%;
  text-shadow: none;
}

.main-content .image-block {
    flex: 1 1 500px;
    max-width: 600px;
    max-height: 600px;
}
.main-content .image-block img {
    width: 100%;
    max-height: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(78, 52, 46, 0.15);
    object-fit: cover;
}
.main-content .text-block {
    flex: 1 1 400px;
    max-width: 600px;
}
.main-content .text-block button{
  margin-top: 30px;
    padding: 10px 15px;
    background-color: transparent;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    border: 2px solid #EF5350; /* Новый мягкий кораллово-оранжевый */
    border-radius: 5px;
    font-size: 1.5em;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    margin-left: 25%;
    text-shadow: none;
}
.main-content .text-block button:hover {
    background-color: #EF5350; /* Новый мягкий кораллово-оранжевый фон */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(239, 83, 80, 0.3); /* Свечение на основе нового цвета */
}
.main-content .text-block button a {
    color: inherit;
    text-decoration: none;
}

.main-content .text-block h1 {
    font-size: 2.8em;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    margin-bottom: 20px;
}
.main-content .text-block h3 {
    font-size: 1.5em;
    color: #A1887F; /* Мягкий теплый бежево-серый */
    margin-bottom: 15px;
}
.main-content .text-block p {
    font-size: 1.1em;
    color: #4E342E;
    line-height: 1.6;
    margin-bottom: 10px;
}













/* BACKDROPS GALLERY */
.gallery-section {
    background-color: rgb(255, 253, 250); /* Фон оставлен без изменений (очень светлый розовый) */
    padding: 60px 20px;
    text-align: center;
}
.gallery-section h2 {
    font-size: 2.5em;
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    margin-bottom: 40px;
    font-weight: bold;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}.gallery-grid .gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(78, 52, 46, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* НАСТРОЙКА ШИРИНЫ ДЛЯ FLEX-ЭЛЕМЕНТОВ */
    /* calc(25% - (3/4 * 20px)) для 4 элементов и 20px gap */
    /* В данном случае (3 зазора между 4 элементами), 20px * 3 = 60px. 60px / 4 = 15px. */
    flex: 0 0 calc(25% - 15px); /* Базовая ширина для 4 элементов в ряд, учитывая зазор */

    min-width: 250px; /* Чтобы элементы не становились слишком маленькими */
    max-width: 350px; /* Максимальная ширина, если нужно */
    height: 350px; /* Фиксированная высота для всех элементов галереи */
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.gallery-grid .gallery-item:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 16px rgba(78, 52, 46, 0.2);
}
.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}


.gallery-grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}.gallery-grid3 .gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(78, 52, 46, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;


    /* НАСТРОЙКА ШИРИНЫ ДЛЯ FLEX-ЭЛЕМЕНТОВ */
    /* calc(25% - (3/4 * 20px)) для 4 элементов и 20px gap */
    /* В данном случае (3 зазора между 4 элементами), 20px * 3 = 60px. 60px / 4 = 15px. */
    flex: 0 0 calc(200% - 150px); /* Базовая ширина для 4 элементов в ряд, учитывая зазор */
    object-position: center;
    min-width: 450px; /* Чтобы элементы не становились слишком маленькими */
    max-width: 550px; /* Максимальная ширина, если нужно */
    height: 350px; /* Фиксированная высота для всех элементов галереи */
}

.gallery-grid3 .gallery-item img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.gallery-grid3 .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(78, 52, 46, 0.2);
}
.gallery-grid3 .gallery-item:hover img {
    transform: scale(1.3);
}



.gallery-grid4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(435px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}.gallery-grid4 .gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(78, 52, 46, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;


    /* НАСТРОЙКА ШИРИНЫ ДЛЯ FLEX-ЭЛЕМЕНТОВ */
    /* calc(25% - (3/4 * 20px)) для 4 элементов и 20px gap */
    /* В данном случае (3 зазора между 4 элементами), 20px * 3 = 60px. 60px / 4 = 15px. */
    flex: 0 0 calc(20% - 150px); /* Базовая ширина для 4 элементов в ряд, учитывая зазор */
    object-position: center;
    min-width: 350px; /* Чтобы элементы не становились слишком маленькими */
    max-width: 450px; /* Максимальная ширина, если нужно */
    height: 350px; /* Фиксированная высота для всех элементов галереи */
}

.gallery-grid4 .gallery-item img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.gallery-grid4 .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(78, 52, 46, 0.2);
}
.gallery-grid4 .gallery-item:hover img {
    transform: scale(1.3);
}




/* Кнопка с динамическим эффектом */
.button2 {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 9999;
    width: 50px;
    height: 50px;
    background-color: rgba(78, 52, 46, 0.1);
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    box-shadow: 2px 6px 12px rgba(78, 52, 46, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.button2::before {
    color: #8D6E63;
    pointer-events: none;
    margin-right: 1px;
    transition: color 0.3s ease;
}
.button2 span {
    display: inline-block;
}
.button2:hover {
    background-color: rgba(78, 52, 46, 0.2);
    transform: translateY(-50%) scale(1.05);
}
.button2:hover::before {
    color: #4E342E;
}
.button2:active {
    background-color: rgba(78, 52, 46, 0.3);
    transform: translateY(-50%) scale(0.97);
}
.button2:disabled, .button2[disabled] {
    background-color: rgba(189, 189, 189, 0.1);
    cursor: default;
}
.button2:disabled::before, .button2[disabled]::before {
    color: rgba(141, 110, 99, 0.4);
}
.button3 {
  text-align: center; /* Центрируем кнопку внутри блока */
  position: fixed; /* Фиксируем кнопку в правом нижнем углу */
  bottom: 20px; /* Отступ от нижнего края */
  right: 20px; /* Отступ от правого края */
  z-index: 1000; /* Чтобы кнопка всегда была поверх других элементов */
}

.button3-link {
  display: inline-block;
  font-size: 2em; /* Увеличиваем размер стрелочки */
  padding: 10px 15px; /* Отступы внутри кнопки */
  background-color: #ef535076; /* Цвет фона кнопки */
  color: rgba(255, 255, 255, 0.48); /* Цвет текста (стрелочки) */
  text-decoration: none; /* Убираем подчеркивание */
  border-radius: 50%; /* Скругляем кнопку */
  cursor: pointer; /* Курсор в виде руки при наведении */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Плавные переходы */
}

.button3-link:hover {
  background-color: #761b1b; /* Изменяем цвет фона при наведении */
  transform: scale(1.1); /* Увеличиваем кнопку при наведении */
}





















/* Улучшенные стили для футера */
footer {
    background-color: #fbf8ee; /* Фон оставлен без изменений (нежно-кремовый) */
    color: #4E342E;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 80%;
    max-width: 1200px;
}
.footer-column {
    text-align: center;
    margin-bottom: 30px;
}
.footer-column h3 {
    color: #EF5350; /* Новый мягкий кораллово-оранжевый */
    margin-bottom: 50px;
    font-size: 1.5em;
    font-weight: bold;
}
.footer-column p, .footer-column li {
    font-size: 1em;
    margin-top: 30px;
    line-height: 1.6;
    color: #4E342E;
}
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.social-links a {
  display: inline-block;
  margin: 4px 10px;
  font-size: 1.1em;
  text-decoration: none;

  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  opacity: 0.5; /* ← приглушённый эффект */
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.social-links a:hover {
  opacity: 1; /* ← становится ярче */
  filter: brightness(1.1); /* лёгкое свечение */
}

.social-links a i {
  margin-right: 8px;
  font-size: 1.3em;
  vertical-align: middle;
  color: #A1887F;
  transition: color 0.3s ease;
}

.social-links a:hover i {
  color: #EF5350; /* Иконка меняет цвет при наведении */
}

.contact-info p {
    margin-bottom: 8px;
}
.contact-info i {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
    color: #A1887F;
}
.delivery-cities ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
.delivery-cities li {
    display: inline-block;
    margin: 0 10px;
    font-size: 1em;
    color: #4E342E;
}
.copyright {
    font-size: 0.9em;
    color: #A1887F;
    margin-top: 0px;
}
