/* Общие стили */


html {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Verdana', 'Roboto', sans-serif;
    background-color: #ffffff;
    background-image: url(../images/bodymine.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

@media (max-width:992px) and (min-width:768px) {
	
	body {
	background-image: url(../images/bodymine.jpg);
	background-size: 140% auto;
		}
		
}


@media (max-width:767px) {
	
	body {background-image: url(../images/bodyminemoby.png) !important;}
	.banner {height: 1020px !important;}
		
}


body {
    margin: 0;
    font-family: 'Verdana', 'Roboto', sans-serif;
    background-color: #ffffff;
    background-image: url(../images/bodymine.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}


.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}


.header-top {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 20px 0;
	background-image: url(../images/container%20header-top.png);
	background-repeat: no-repeat;
	background-position: right center;
}

.header-contacts {
	display: flex;
	align-items: center;
	gap: 15px;
	padding-right: 20px;
}

.header-contacts a {
	text-decoration: none;
	color: #575757;
	font-size: 34px;
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: bold;
}

.header-contacts .icon {
    width: 35px;
    height: 35px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.phone-icon {
	background-image: url(../images/phone-icon.png);
	background-repeat: no-repeat;
	background-position: center center;
}

.whatsapp-icon {
	background-image: url(../images/whatsapp-icon.png);
	background-repeat: no-repeat;
	background-position: center center;
}

.vk-icon {
	background-image: url(../images/vk-icon.png);
	background-repeat: no-repeat;
	background-position: center center;
}

.phone-code {
    color: #004d4d;
    font-weight: bold;
}

.phone-number {
	color: #393939;
	font-family: 'Bebas Neue', sans-serif;
	padding-top: 5px;
	letter-spacing: 2px;
	padding-left: 15px;
	padding-right: 10px;
}

/* Навигационная панель (десктоп) */
.header-nav {
    background: linear-gradient(to right, #d3d3d3, #a9a9a9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    height: 60px;
}

.logo {
    flex: 0 0 auto;
    padding: 0 0px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    display: block;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 0;
    align-items: center;
}

.nav-menu a:not(:first-child)::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #6b5246;
    border-radius: 50%;
    margin: 0 21px;
    vertical-align: middle;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 60px;
    padding: 0 10px;
}

.nav-menu a:hover {
    color: #004d4d;
}

@media (max-width: 1250px) {
    .nav-menu a:not(:first-child)::before {
        content: none;
        margin: 0;
    }
    
    .nav-menu a:not(:first-child) {
	border-left: 1px solid #939393;
	padding-left: 10px;
	margin-left: 5px;
    }
    
    .nav-menu {
        gap: 3px;
    }
    
    .nav-menu a {
        padding: 0 5px;
    }
}

.download-button {
    background-color: #ba7775;
    color: #ffffff;
    border: none;
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    cursor: pointer;
    height: 100%;
    padding: 0 20px;
    margin: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.download-button:hover {
    background-color: #995f5e;
}


/* Мобильное меню */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #d3d3d3, #a9a9a9);
    border-bottom: 1px solid #a9a9a9;
    padding: 10px 20px;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
}

.mobile-header-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header-contacts a {
    text-decoration: none;
    color: #575757;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.mobile-phone-number {
    color: #393939;
    font-family: 'Bebas Neue', sans-serif;
    padding-top: 3px;
    letter-spacing: 1px;
    padding-left: 10px;
    font-size: 24px;
    transition: font-size 0.3s ease;
}

.mobile-header .icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: cover;
    background-position: center;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

.menu-toggle.open .menu-icon {
    background: transparent;
}

.menu-toggle.open .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.open .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 999;
}

.mobile-menu.open {
    height: auto;
    padding: 20px 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-menu li {
    position: relative;
    padding: 10px 20px;
}

.mobile-nav-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background-color: #e0e0e0;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}

.mobile-nav-menu a:hover {
    color: #004d4d;
}

.mobile-download-button {
    background-color: #ba7775;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    padding: 12px 20px;
    margin: 10px 20px 0;
    text-align: center;
    transition: background-color 0.3s;
}

.mobile-download-button:hover {
    background-color: #995f5e;
}

/* Адаптация номера телефона для мобильных устройств */
@media (max-width: 992px) {
    .header-contacts {
	padding-right: 10px;
	gap: 10px;
	margin-left: auto;
	margin-right: auto;
    }
    
    .header-contacts a {
        font-size: 24px;
    }
    
    .header-contacts .phone-number {
        font-size: 24px;
        padding-left: 10px;
        letter-spacing: 1px;
    }
    
    .header-contacts .icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 476px) {
    .header-contacts a {
        font-size: calc(18px + (32 - 20) * ((100vw - 320px) / (476 - 320)));
    }
    
    .header-contacts .phone-number {
        font-size: calc(18px + (32 - 20) * ((100vw - 320px) / (476 - 320)));
        padding-left: 6px;
        letter-spacing: 0.5px;
    }
    
    .header-contacts .icon {
        width: calc(20px + (32 - 20) * ((100vw - 320px) / (476 - 320)));
        height: calc(20px + (32 - 20) * ((100vw - 320px) / (476 - 320)));
    }
}

@media (max-width: 320px) {
    .header-contacts a,
    .header-contacts .phone-number {
        font-size: 12px;
    }
    
    .header-contacts .icon {
        width: 16px;
        height: 16px;
    }
}

/* Переключение между десктопным и мобильным меню */
@media (max-width: 992px) {
    .header-top,
    .header-nav {
        display: none;
    }

    .mobile-header,
    .mobile-menu {
        display: flex;
    }
    
    /* Стили для мобильного header */
    .mobile-header {
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .mobile-header .header-contacts {
        padding-right: 0;
    }
}


/* Блок 1: Баннер */
.banner {
    height: 720px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}



.banner-content {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px 50px;
    text-align: center;
    box-sizing: border-box;
}

.button-container {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
}

.messageb {
	background-image: url(../images/button-container.png);
	background-repeat: no-repeat;
	background-position: center center;
}

.rounded-button {
    padding: 12px 30px;
    background-color: #b77c7d;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
	text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rounded-button:hover {
    background-color: #9b6768;
}


/* Блок "О нас" - ограничение по ширине */
.about-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}


.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1250px; 
}

/* Круглая картинка */
.image-column {
  flex: 0 0 400px; /* Фиксированная ширина 400px */
}

.circle-image {
  width: 100%;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
}

/* Текстовый блок */
.text-column {
  flex: 1;
  min-width: 0; /* Важно для корректного переноса текста */
}

/* Адаптация */
@media (max-width: 950px) {
  .about-content {
    gap: 30px;
  }
}

@media (max-width: 850px) {
  .about-content {
    flex-direction: column;
  }
  
  .image-column {
    flex: 0 0 auto;
    width: 400px;
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .circle-image {
    height: 300px;
  }
  
  .image-column {
    width: 300px;
  }
}




.text-image-block {
    display: flex;
    align-items: center;
    max-width: 960px;
    margin: 40px auto;
    gap: 40px;
}

.text-image-block.left {
    flex-direction: row;
}

.text-image-block.right {
    flex-direction: row-reverse;
}

.text-image-block.offset {
    transform: translateX(100px);
}

.image-wrapper {
    flex: 0 0 400px;
}

.image-wrapper img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ccc;
}

.text-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

/* Mobile styles */
@media (max-width: 1024px) {
    .text-image-block.offset {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .text-image-block {
        flex-direction: column !important;
        margin: 20px auto;
        gap: 20px;
    }

    .image-wrapper {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .image-wrapper img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    .text-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .text-content p {
        font-size: 16px;
    }
}


.text-image-block {
    display: flex;
    align-items: center;
    max-width: 960px;
    margin: 60px auto;
    gap: 40px;
    border-radius: 15px;
    padding: 30px;
    height: auto; /* Убираем фиксированную высоту */
    flex-wrap: wrap; /* На всякий случай, если нужно переносить */
}


.text-image-block.left {
	flex-direction: row;
	background-image: url(../images/text-image-blockleft.png);
	background-repeat: no-repeat;
	background-position: right center;
}

.text-image-block.right {
	flex-direction: row-reverse;
	background-image: url(../images/text-image-blockright.png);
	background-repeat: no-repeat;
	background-position: left center;
}

.souvenir-block {
    transform: translateX(0);
}

.discount-block {
    transform: translateX(100px);
}

.production-block {
    transform: translateX(20px);
}

.image-wrapper {
    flex: 0 0 400px;
}

.image-wrapper img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ccc;
}

.text-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

/* Mobile styles */
@media (max-width: 1024px) {
    .souvenir-block,
    .discount-block,
    .production-block {
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .text-image-block {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        margin: 30px auto;
        gap: 20px;
        padding: 20px;
    }

    .text-image-block.left .text-content {
        text-align: left;
        align-self: flex-start;
    }

    .text-image-block.right .text-content {
        text-align: right;
        align-self: flex-end;
    }

    .text-content {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .image-wrapper {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .image-wrapper img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}

@media (max-width: 480px) {
    .text-content p {
        font-size: 16px;
    }
}


/** Раздел с продуктами, потом адаптировать под движок**/


.product-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.product-section-header .product-section-icon {
    width: 61px;
    height: 44px;
    margin-right: 10px;
}

.product-section-header h1, .advantage-section-header h1 {
	font-size: 32px;
	color: #333;
	margin: 0;
	border-bottom: 4px dotted #ad8d85;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 1380px;
    margin: 0 auto;
}

.product-item {
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 10px;
}

.product-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.product-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 5px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #ff6b6b) border-box;
    animation: product-spin 3s linear infinite;
    z-index: 0;
}

.product-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    background-color: #cccccc; /* Серый фон для плейсхолдера */
}

.product-image:hover {
    transform: rotate(15deg);
}

.product-item-text {
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.product-item:hover .product-item-text {
    transform: translateX(10px);
}

.product-item-text h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.product-item-text p {
    margin: 10px 0 0;
    color: #666;
    font-size: 16px;
}

@keyframes product-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .product-item {
        flex-direction: column;
        text-align: center;
    }

    .product-image-wrapper {
        margin-bottom: 15px;
    }

    .product-item-text {
        margin-left: 0;
    }

    .product-item:hover .product-item-text {
        transform: translateX(0);
    }

    .product-section-header h1 {
        font-size: 24px;
    }
}



/**Блок доп. преимуществ***/

.advantage-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.advantage-section-header .advantage-section-icon {
    width: 61px;
    height: 44px;
    margin-right: 10px;
    border-radius: 0; /* Явно указано отсутствие закругления */
    border: none; /* Убрана граница */
}

.advantage-features {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1380px;
    margin: 0 auto;
}

.advantage-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
	margin-bottom: 35px !important;
}

.advantage-shift-left,
.advantage-shift-right {
    position: relative;
    width: calc(100% - 100px);
    max-width: 100%;
    margin: 0 auto;
}

.advantage-shift-left {
    left: -50px;
}

.advantage-shift-right {
    left: 50px;
}

/* Добавляем новый медиа-запрос специально для диапазона 1200-768px */


@media (max-width: 1400px) {
    .advantage-shift-left,
    .advantage-shift-right {
        width: 100%;
        left: 0;
        transform: none !important;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .advantage-shift-left,
    .advantage-shift-right {
        transform: translateX(0);
    }
    
    .advantage-feature-item {
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .advantage-title {
        width: 100%;
    }
}

.advantage-image {
    width: 100%;
    max-width: 454px;
    height: auto;
    max-height: 416px;
    object-fit: cover;
    border-radius: 0;
    animation: advantage-pulse 2s ease-in-out infinite;
}

.advantage-title {
    font-size: 28px;
    color: #333;
    margin: 36px 0 0;
    width: 85%;
    line-height: 1.3;
    font-weight: 600;
}

.advantage-text {
    font-size: 16px;
    color: #666;
    margin: 20px 0 0;
    max-width: 756px;
}

@keyframes advantage-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .advantage-section-header h1 {
        font-size: 28px;
    }

    .advantage-image {
        max-width: 400px;
        max-height: 366px;
        border-radius: 0;
    }

    .advantage-title {
        font-size: 24px;
    }

    .advantage-text {
        font-size: 14px;
    }

    .advantage-shift-left,
    .advantage-shift-right {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .advantage-image {
        max-width: 300px;
        max-height: 275px;
        border-radius: 0;
    }

    .advantage-title {
        font-size: 20px;
    }

    .advantage-text {
        font-size: 12px;
    }
}

/* Стили для кнопки вызова модального окна (исходный стиль) */
.send-message-btn {
    background-color: #bca590; /* Голубой цвет */
    color: white;
    border: none;
    padding: 15px 30px; /* Крупный размер */
    border-radius: 25px; /* Полностью закругленные края */
    font-size: 18px; /* Крупный текст */
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

.send-message-btn:hover {
    background-color: #a28d7a; /* Темнее при наведении */
}

/* Центрирование основной кнопки */
.button-container {
    text-align: center;
    width: 100%;
    padding: 20px 0;
}

/* Остальные стили остаются без изменений */
.modal-form-title {
    font-size: 24px;
    color: #5b3e3e;
    margin-bottom: 10px;
    font-weight: bold;
}

.modal-form-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.form-submit-btn {
    background-color: #bca590;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background-color: #a7927f;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.modal-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.modal-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

footer {
    background: #ad987d;
    color: white;
    padding: 20px 20px 0; /* Без padding-bottom */
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Для полной высоты дочерних элементов */
    border-top: 1px solid #555;
}

footer .logo {
    width: 385px; /* Фиксированная ширина контейнера под логотип */
    align-self: flex-end; /* Прилепить к нижней части футера */
}

footer .logo img {
    width: 385px; /* Фиксированный размер логотипа */
    height: 113px;
    display: block; /* Убирает лишние отступы под изображением */
}

.logo {
    flex: 0 0 auto; /* Стили для шапки */
    padding: 0 0px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 58px; /* Стили для шапки */
    display: block;
}

.menu {
    display: flex; /* Центрирование содержимого */
    justify-content: center; /* Центр по горизонтали */
    align-items: center; /* Центр по вертикали */
}

.menu ul {
    display: grid;
    grid-template-columns: repeat(3, auto); /* Три колонки */
    grid-template-rows: auto auto; /* Две строки */
    grid-auto-flow: row;
    gap: 10px 20px; /* Вертикальный и горизонтальный отступ */
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center; /* Центрируем весь блок */
}

.menu li:nth-child(4) {
    grid-column: 1 / span 3; /* Занимает всю ширину под тремя колонками */
    text-align: center;
}


.menu li {
    margin: 5px 0;
    padding: 0 5px; /* Уменьшено вдвое */
}


.menu a {
    color: white;
    text-decoration: none;
    position: relative;
    font-weight: 600;
}

.menu a::after {
    content: "";
    display: block;
    height: 2px;
    background: white;
    width: 0;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.menu a:hover::after {
    width: 100%;
}

.contacts {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Выравнивание влево */
    margin-bottom: 20px; /* Компенсация для визуального отступа снизу */
}

.contact-block {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-block i {
    font-size: 18px;
    margin-right: 10px;
    color: #fff; /* Цвет иконок */
}

.contact-details {
    font-size: 14px;
}

.contact-details p {
    margin: 5px;
}

.divider {
    width: 100%;
    height: 1px;
    background: #555;
    margin: 10px 0;
}

/* Адаптивность */
@media (max-width: 1200px) {
    footer {
        flex-direction: column;
        align-items: center;
        padding: 20px; /* Полный padding для мобильных */
    }

    footer .logo {
        width: 300px; /* Уменьшенный размер для мобильных */
        align-self: center; /* Центрируем на мобильных */
        margin-bottom: 20px; /* Восстанавливаем отступ */
    }

    footer .logo img {
        width: 300px; /* Уменьшенный размер логотипа */
        height: 79px; /* Пропорционально 285/113 */
    }

    .menu {
	width: 100%; /* Занимает всю ширину для центрирования */
	justify-content: center; /* Центр по горизонтали */
	align-items: center; /* Центр по вертикали */
	margin-bottom: 28px;
    }

    .menu ul {
        grid-template-columns: 1fr 1fr; /* Сохраняем две колонки */
        gap: 8px; /* Меньший отступ для мобильных */
    }

    .menu li {
        margin: 5px 0;
        padding: 0 8px; /* Меньшие отступы */
    }

    .menu a {
        font-size: 14px; /* Меньший размер шрифта для мобильных */
    }

    .contacts {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .contacts {
        align-items: center; /* Центрирование на мобильных */
    }

    .contact-block {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer .logo {
        width: 150px; /* Еще меньший размер для маленьких экранов */
    }

    footer .logo img {
        width: 150px;
        height: 59px; /* Пропорционально 285/113 */
    }

    .menu ul {
        grid-template-columns: 1fr; /* Переход на одну колонку для маленьких экранов */
        gap: 6px;
    }

    .menu li {
        margin: 3px 0;
        padding: 0 5px;
    }

    .menu a {
        font-size: 12px; /* Еще меньший шрифт */
    }
}



@media (max-width: 992px) {
    .text-image-block {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .text-image-block.left .text-content {
        align-self: flex-start;
        text-align: left;
        width: 100%;
        padding: 0 20px;
    }

    .text-image-block.right .text-content {
        align-self: flex-end;
        text-align: right;
        width: 100%;
        padding: 0 20px;
    }

    .image-wrapper {
        width: 100%;
        max-width: 400px;
    }

    .image-wrapper img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
	
	  .text-image-block.left,
    .text-image-block.right {
        background-image: none !important;
    }

 .text-image-block.left .text-content,
.text-image-block.right .text-content {
	background-color: #DCCCBD; /* Мягкий кофейный цвет */
	border-radius: 25px;
	padding: 30px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	text-align: left;
}

}

#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #b77c7d;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

#scrollToTopBtn:hover {
  background-color: #9b6768;
  transform: translateY(-3px);
}

#scrollToTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn svg {
  width: 24px;
  height: 24px;
}



.serii {
    padding-top: 50px;
}

.mod-articlesnews.newsflash {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    overflow: hidden;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.mod-articlesnews__item {
    width: 48%;
    padding-right: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 160px;
    background-image: url(../images/itemcatproducts.png);
    background-position: right bottom;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.mod-articlesnews__item:nth-child(2n+1) {
    clear: none;
}

/* Разделительная линия для десктопной верстки */
.mod-articlesnews__item::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Под блоком */
    left: 0;
    width: 100%; /* Полная ширина блока */
    height: 1px;
    background-color: #e0e0e0; /* Светло-серая линия */
}

/* Убираем разделитель у последнего элемента */
.mod-articlesnews__item:last-child::after {
    content: none;
}

/* Картинка - всегда слева */
.mod-articlesnews__item .newsflash-image {
    height: 130px;
    width: 130px;
    margin: 0;
    background: none;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    order: 1;
}

.mod-articlesnews__item .newsflash-image::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(../images/newsflashimage.png);
    background-size: cover;
    background-position: right bottom;
    animation: none;
    z-index: -1;
}

.mod-articlesnews__item .newsflash-image img {
    height: 110px;
    width: 110px;
    margin-top: 10px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

/* Заголовок */
.mod-articlesnews__item .newsflash-title {
    width: calc(95% - 130px);
    height: auto; /* Убираем фиксированную высоту для центрирования */
    margin-top: 40px;
    margin-left: 5%;
    padding: 10px 0; /* Убираем padding-top, добавляем симметричный padding */
    text-align: center; /* Центрирование по горизонтали */
    display: flex; /* Для вертикального центрирования */
    align-items: center; /* Центрирование по вертикали */
    justify-content: center; /* Усиление горизонтального центрирования */
    order: 2;
    background-color: #AC7862;
    border-radius: 80px;
}

.mod-articlesnews__item .newsflash-title a {
    color: #FFF;
    font-size: 21px;
    font-family: Verdana, sans-serif;
    font-weight: normal;
    text-decoration: none;
    display: block;
}

/* Hover effects */
.mod-articlesnews__item:hover .newsflash-image::before {
    animation: rotateBackground 1s linear infinite;
}

.mod-articlesnews__item:hover .newsflash-image img {
    animation: pulse 2s ease-in-out infinite;
}

.mod-articlesnews__item:hover .newsflash-title a {
    color: #FFFFFF;
}

.mod-articlesnews__item:hover .newsflash-title {
    background-color: #875B49;
}

/* Animations */
@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Media Queries */
@media (max-width: 1399px) and (min-width: 1201px) {
    .mod-articlesnews__item {
        width: 50%;
        padding-right: 4%;
    }
}

@media (max-width: 1200px) {
    .mod-articlesnews__item {
        width: 48%;
        height: auto;
        flex-direction: row; /* Горизонтальная раскладка */
        align-items: center;
        background-image: none;
        margin-bottom: 40px;
        position: relative;
    }

    .mod-articlesnews__item .newsflash-image {
        width: 200px;
        height: 200px;
        margin: 0 10px 0 0; /* Отступ справа для разделения с заголовком */
        flex-shrink: 0;
    }

    .mod-articlesnews__item .newsflash-image img {
        width: 170px;
        height: 170px;
        margin: 15px;
    }

    .mod-articlesnews__item .newsflash-title {
        width: calc(100% - 210px); /* Учитываем ширину изображения и отступ */
        margin: 0;
        padding: 10px 0;
        text-align: center; /* Центрирование по горизонтали */
        display: flex; /* Для вертикального центрирования */
        align-items: center; /* Центрирование по вертикали */
        justify-content: center; /* Усиление горизонтального центрирования */
        border-radius: 80px;
    }

    /* Разделительная линия */
    .mod-articlesnews__item::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 100%; /* Полная ширина блока */
        height: 1px;
        background-color: #e0e0e0;
    }

    /* Убираем разделитель у последнего элемента */
    .mod-articlesnews__item:last-child::after {
        content: none;
    }
}

@media (max-width: 760px) {
    .mod-articlesnews__item {
        width: 100%;
        flex-direction: column; /* Вертикальная раскладка */
        align-items: center;
        margin: 0 auto 40px;
    }

    .mod-articlesnews__item .newsflash-image {
        width: 200px;
        height: 200px;
        margin: 0 auto 10px;
    }

    .mod-articlesnews__item .newsflash-image img {
        width: 170px;
        height: 170px;
        margin: 15px;
    }

    .mod-articlesnews__item .newsflash-title {
        width: 100%;
        margin: 0;
        padding: 10px 0;
        text-align: center; /* Центрирование по горизонтали */
        display: flex; /* Для вертикального центрирования */
        align-items: center; /* Центрирование по вертикали */
        justify-content: center; /* Усиление горизонтального центрирования */
    }

    /* Разделительная линия */
    .mod-articlesnews__item::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 100%; /* Полная ширина блока */
        height: 1px;
        background-color: #e0e0e0;
    }

    /* Убираем разделитель у последнего элемента */
    .mod-articlesnews__item:last-child::after {
        content: none;
    }
}


.page-header {
  padding-left: 71px; /* общий отступ слева для всего блока */
  background-image: url('../images/h1f.png');
  background-repeat: no-repeat;
  background-position: left center; /* или left top, если нужно выровнять по верху */
  background-size: auto 50px; /* высота картинки 50px (настроить под ваш случай) */
  min-height: 50px; /* чтобы блок был не меньше высоты картинки */
}

.page-header h1 {
  font-size: 32px;
  color: #333;
  margin: 0;
  border-bottom: 4px dotted #ad8d85;
  /* padding-left: 0;  если нужно убрать отступ у h1 */
}



.modal-form-success {
    text-align: center;
    padding: 30px;
}

.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.success-message {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.success-close-btn {
    background-color: #976444;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.success-close-btn:hover {
    background: #3e8e41;
}


.phone-link, .email-link  {
    color: #FFF; 
    text-decoration: none;
    transition: color 0.3s ease;
}


.contact-separator {
    margin-left: 40px;
}


@media (max-width: 992px) {
  .mobile-menu .header-contacts {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует все contact-row */
    gap: 15px;
  }

  .mobile-menu .contact-row {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрирует содержимое строки */
    gap: 10px;
    flex-wrap: wrap;
  }

  .mobile-menu .contact-row a {
    display: flex;
    align-items: center;
    text-decoration: none;
  }



.mobile-menu .contact-separator {
  margin-top: -10px;
  margin-left: -30px;
}
	
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.mobile-menu.open {
  max-height: 1000px; /* Достаточно большое значение */
  padding: 20px 0;
}


.mod-articlesnews__item {
    cursor: pointer;
    position: relative; /* для корректной работы кликабельной области */
}
.mod-articlesnews__item a {
    position: relative; /* чтобы ссылка была поверх кликабельного div */
    z-index: 2;
}

.com-content-article__body {
	background-color: hsla(0,0%,100%,0.77);
}