* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: #0e0a0a; background-color: #FFFBF7; overflow-x: hidden; } img { max-width: 100%; height: auto; } /***** Header *****/ .header { width: 100%; padding: 0; display: flex; flex-direction: column; background-color: #FFFBF7; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; } .header-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; flex-wrap: wrap; } .logo-container { display: flex; align-items: center; gap: 15px; } .logo-img { height: 60px; width: auto; border-radius: 8px; object-fit: contain; transition: all 0.3s ease; border: 2px solid transparent; } .logo-img:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255, 184, 168, 0.4); border-color: #FFB8A8; } .slogan { font-family: 'Dancing Script', cursive; font-weight: 600; background-color: #8E7CC3; color: white; text-align: center; margin-top: 5px; display: none; width: 100%; border: 2px solid #8E7CC3; border-radius: 30px; padding: 8px 15px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; margin-bottom: 10px; position: relative; } .slogan:hover { background-color: #FF9A7A; color: #4A4A4A; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .slogan:active { transform: translateY(1px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .slogan::after { content: "✉️"; margin-left: 8px; font-size: 1.2em; } .menu { width: 100%; background-color: #8E7CC3; } .menu ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0; } .menu_item { margin: 0; flex-grow: 1; text-align: center; border-right: 1px solid rgba(255,255,255,0.2); } .menu_item:last-child { border-right: none; } .menu_item a { color: white; font-weight: 600; font-size: 16px; text-decoration: none; padding: 15px 5px; display: block; transition: all 0.3s ease; } .menu_item a:hover { background-color: #FF9A7A; color: #4A4A4A; } .menu-toggle { display: none; background: #8E7CC3; color: white; border: none; font-size: 24px; padding: 10px 15px; cursor: pointer; text-align: center; z-index: 1001; border-radius: 5px; transition: all 0.3s ease; } .menu-toggle:hover { background-color: #FF9A7A; color: #4A4A4A; } /***** Main Content *****/ main { padding: 20px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; } h1, h2, h3, h4 { margin: 45px 0; text-align: center; } h1 { font-size: 2.2rem; color: #4A4A4A; margin-bottom: 10px; } h1 i { color: #FFB8A8; margin-right: 10px; } h2 { font-size: 1.8rem; color: #523c96; margin: 25px 0 15px; } h2 i { color: #FFB8A8; margin-right: 10px; } h3 { font-size: 1.5rem; color: #422893; } h3 i { color: #c75f48; margin-right: 10px; } h4 { font-size: 1.2rem; color: #4A4A4A; } p { margin: 15px 0; font-size: 18px; line-height: 1.6; } p i { color: #FFB8A8; margin-right: 8px; } /* Стили для отзывов */ .otzuv_obo_mne { margin: 30px 0; padding: 30px; background: linear-gradient(to right, rgba(142, 124, 195, 0.1), rgba(255, 184, 168, 0.1)); border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative; overflow: hidden; } .otzuv_obo_mne:before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: linear-gradient(to bottom, #8E7CC3, #FFB8A8); } .otzuv-section { margin: 40px 0; width: 100%; } .otzuv-title { text-align: center; margin-bottom: 20px; } .otzuv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; width: 100%; margin: 30px 0; } .otzuv-item { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; transition: all 0.3s ease; aspect-ratio: 3/4; } .otzuv-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); } .otzuv-img { width: 100%; height: 100%; object-fit: cover; display: block; } .otzuv-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(142, 124, 195, 0.9); color: white; padding: 10px; font-size: 14px; transform: translateY(100%); transition: transform 0.3s ease; } .otzuv-item:hover .otzuv-caption { transform: translateY(0); } .otzuv-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; flex-direction: column; padding: 15px; } .modal-content { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; } .modal-caption { color: white; margin-top: 15px; text-align: center; max-width: 100%; padding: 0 10px; font-size: 16px; } .close-modal { position: absolute; top: 15px; right: 15px; color: white; font-size: 35px; cursor: pointer; z-index: 1001; background: rgba(142, 124, 195, 0.7); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .modal-navigation { position: absolute; bottom: 20px; width: 100%; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; padding: 0 10px; } .nav-button { padding: 12px 24px; background: linear-gradient(135deg, #8E7CC3, #6a5ba3); color: white; border: none; border-radius: 30px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; font-size: 16px; min-width: 140px; } .nav-button:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(142, 124, 195, 0.4); background: linear-gradient(135deg, #FF9A7A, #FFB8A8); } /***** Footer *****/ .footer { width: 100%; padding: 30px 15px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; background-color: #8E7CC3; margin-top: 40px; } .footer_copyright { color: white; font-weight: 600; font-size: 18px; margin: 10px 0; text-align: center; width: 100%; } .footer_copyright i { color: #FFB8A8; margin: 0 5px; } .footer_menu ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0; } .footer_menu_item { margin: 5px 10px; } .footer_menu_link { color: white; font-weight: 600; font-size: 14px; text-decoration: none; transition: all 0.3s ease; padding: 5px; } .footer_menu_link:hover { background-color: #FF9A7A; color: #4A4A4A; border-radius: 4px; } .social-links { display: flex; justify-content: center; flex-wrap: wrap; margin: 15px 0; width: 100%; } .social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background-color: white; color: #8E7CC3; margin: 5px; font-size: 20px; transition: all 0.3s ease; flex-shrink: 0; } .social-icon:hover { transform: translateY(-3px); background-color: #FF9A7A; color: white; } /***** Стили для бокового меню *****/ .side-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; } .side-menu-overlay.active { opacity: 1; visibility: visible; } .side-menu { position: fixed; top: 0; right: -100%; width: auto; min-width: 280px; max-width: 90%; height: 100%; background-color: #8E7CC3; z-index: 2001; overflow-y: auto; transition: right 0.4s ease; box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2); border-radius: 0 0 0 15px; } .side-menu.active { right: 0; } .side-menu-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; background-color: rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.2); position: sticky; top: 0; z-index: 2002; min-height: 60px; border-radius: 0 0 0 15px; } .side-menu-title { color: white; font-weight: 600; font-size: 18px; margin: 0; } .close-menu { background: none; border: none; font-size: 28px; color: white; cursor: pointer; transition: transform 0.3s; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; z-index: 2003; font-weight: bold; background-color: rgba(255, 255, 255, 0.9); border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); color: #8E7CC3; } .close-menu:hover { transform: rotate(90deg); background-color: white; color: #FF9A7A; } .side-menu ul { list-style: none; padding: 0; margin: 0; max-height: 80vh; overflow-y: auto; } .side-menu-item { border-bottom: 1px solid rgba(255, 255, 255, 0.2); } .side-menu-item:last-child { border-bottom: none; } .side-menu-link { display: block; padding: 15px 20px; color: white; font-weight: 600; text-decoration: none; transition: all 0.3s; white-space: nowrap; } .side-menu-link:hover { background-color: #FF9A7A; color: #4A4A4A; } .side-menu-link i { margin-right: 10px; width: 20px; text-align: center; color: #FFB8A8; } /***** Медиазапросы для разных экранов *****/ /* Очень маленькие экраны (до 320px) - гамбургер-меню */ @media (max-width: 320px) { .header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; } .header-top { flex-direction: column; align-items: center; text-align: center; padding: 10px; } .logo-container { flex-direction: column; margin-bottom: 10px; width: 100%; } .logo-img { height: 50px; } .slogan { display: block; font-size: 16px; margin-top: 5px; padding: 6px 12px; } .menu-toggle { display: block; width: 100%; } .menu { display: none; } .otzuv-gallery { grid-template-columns: 1fr; gap: 15px; } .otzuv_obo_mne { padding: 15px; margin: 20px 0; } h1 { font-size: 1.5rem; } h2 { font-size: 1.3rem; } p { font-size: 14px; } /* Добавляем отступ для основного контента, чтобы избежать наложения */ main { padding-top: 180px; position: relative; z-index: 1; } /* Исправление бокового меню для очень маленьких экранов */ .side-menu { width: 100%; right: -100%; height: 100%; border-radius: 0; } .side-menu.active { right: 0; } .side-menu-header { padding: 15px; min-height: 50px; position: sticky; top: 0; background-color: rgba(0, 0, 0, 0.1); border-radius: 0; } .close-menu { width: 35px; height: 35px; font-size: 28px; } .side-menu ul { max-height: 60vh; } } /* Малые экраны (321px - 503px) */ @media (max-width: 503px) { .header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; } .header-top { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 15px; } .logo-container { flex-direction: row; align-items: center; margin-bottom: 0; flex: 1; } .logo-img { height: 55px; } .slogan { display: block; text-align: center; margin-top: 5px; width: 100%; font-size: 14px; padding: 5px 5px; } .menu-toggle { display: flex; align-items: center; justify-content: center; width: 60px; height: 40px; margin-left: 10px; } .menu { display: none; } .otzuv-gallery { grid-template-columns: 1fr; gap: 15px; } h1 { font-size: 1.7rem; } h2 { font-size: 1.4rem; } p { font-size: 16px; } /* Добавляем отступ для основного контента, чтобы избежать наложения */ main { padding-top: 190px; position: relative; z-index: 1; } .side-menu-header { min-height: 50px; } .side-menu ul { max-height: 60vh; } } /* Средние экраны (504px - 768px) */ @media (min-width: 504px) and (max-width: 768px) { .header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; } .header-top { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 15px; } .logo-container { flex-direction: row; align-items: center; margin-bottom: 0; flex: 1; } .logo-img { height: 55px; } .slogan { display: block; margin-top: 0; margin-left: 0px; width: auto; flex: 1; font-size: 22px; padding: 10px 3px; } .menu-toggle { display: flex; align-items: center; justify-content: center; width: 60px; height: 40px; margin-left: 10px; } .menu { display: none; } .otzuv-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; } h1 { font-size: 1.9rem; } h2 { font-size: 1.6rem; } /* Добавляем отступ для основного контента, чтобы избежать наложения */ main { padding-top: 145px; position: relative; z-index: 1; } .side-menu-header { min-height: 50px; } .side-menu ul { max-height: 60vh; } } /* Большие экраны (769px и выше) - фиксированное меню */ @media (min-width: 769px) { .header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; flex-direction: row; flex-wrap: nowrap; align-items: center; padding: 0; } .header-top { padding: 10px 20px; flex: 0 0 auto; } .logo-img { height: 65px; } .slogan { display: none; } .menu { display: flex; position: static; width: auto; flex: 1 1 auto; } .menu-toggle { display: none; } .menu ul { flex-direction: row; justify-content: flex-end; } .menu_item a { padding: 15px 10px; font-size: 15px; } .otzuv-gallery { grid-template-columns: repeat(3, 1fr); } /* Добавляем отступ для основного контента, чтобы избежать наложения */ main { padding-top: 120px; position: relative; z-index: 1; } } /* Большие экраны (992px и выше) - обычное меню */ @media (min-width: 992px) { .header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; padding: 0; } .header-top { padding: 15px 20px; flex: 0 0 auto; } .slogan { display: none; } .menu { width: auto; flex-grow: 1; display: block !important; position: static; max-height: none !important; } .menu-toggle { display: none; } .menu ul { justify-content: flex-end; flex-direction: row; } .menu_item a { font-size: 16px; padding: 18px 15px; } .otzuv-gallery { grid-template-columns: repeat(4, 1fr); } /* Добавляем отступ для основного контента, чтобы избежать наложения */ main { padding-top: 120px; position: relative; z-index: 1; } } /* Очень большие экраны (1200px и выше) */ @media (min-width: 1200px) { .menu_item a { font-size: 18px; padding: 20px 25px; } .footer_copyright { font-size: 18px; } .otzuv-gallery { grid-template-columns: repeat(5, 1fr); } } /* Высокие экраны (ориентация портрет) */ @media (max-height: 600px) and (orientation: portrait) { .modal-content { max-height: 60vh; } .modal-navigation { bottom: 5px; } } /* Планшеты в альбомной ориентации */ @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) { .otzuv-gallery { grid-template-columns: repeat(4, 1fr); } }