/* Сброс отступов и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #f8f5f2; /* Теплый нейтральный фон */
    color: #333;
    line-height: 1.6;
}

a.VK, a.dikidi, a.TG {
    color: white;
    text-decoration: none;
}

/*Разделительные линии*/
hr {
    border: none;
    height: 1px;
    background-color: #e0c9b7;
    margin: 30px auto;
    width: 80%;
}
/*Конец разделительных линий*/

/*Заголовок сайта*/
.warm-hands {
    width: 100%;
    background-color: #d35400; /* Оранжевый фон */
    padding: 40px 0;
    margin: 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
}

.warm-hands h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: white; /* Белый текст на оранжевом фоне */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: inline-block;
}

.warm-hands {
    transition: background-color 0.5s ease;
}

.warm-hands:hover {
    background-color: #e67e22; /* Светлее при наведении */
}
/*Конец заголовка сайта*/

h3 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #7f8c8d;
    font-weight: 300;
    font-size: 1.2rem;
    margin: 15px 0;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1rem;
}

.btn-primary {
    background: #e67e22;
    color: white;
}

.btn-secondary {
    background: rgb(29, 161, 223);
    color: white;
}

.btn-third {
    background: rgb(83, 175, 218);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Блок с фото и текстом */
.content-block {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto;
    gap: 40px;
    padding: 0 20px;
}

.image-container {
    flex: 1;
    min-width: 300px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.MainText {
    flex: 1;
    /* text-align: left; */
    padding: 0;
}

/*Основной текст*/
.MainText {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align:left;
}

.Zagolovok {
    text-align: center;
}

.MainText p:first-child {
    font-size: 1.8rem;
    color: #d35400;
    font-weight: 500;
    margin-bottom: 20px;
}

.MainText p:last-child {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    font-size: 1.1rem;
    line-height: 1.8;
}
/*Конец основного текста*/

/* Галерея изображений */
.gallery-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.gallery-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.gallery-item p {
    font-family: 'Montserrat', sans-serif;
    color: #d35400;
    font-weight: 500;
}

.gallery-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.2s; }
.gallery-item:nth-child(2) { animation-delay: 0.4s; }
.gallery-item:nth-child(3) { animation-delay: 0.6s; }

.gallery-container {
    position: relative;
    padding-top: 40px;
}

.gallery-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #e67e22;
    border-radius: 3px;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px auto;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 280px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #d35400;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.service-card h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #e67e22;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.03);
}

footer {
    background: #d35400;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-family: 'Montserrat', sans-serif;
}

.map {
    text-align: center;
    
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.warm-hands, .MainText, .buttons-container, .services-container {
    animation: fadeIn 0.8s ease-out forwards;
}

.MainText { animation-delay: 0.2s; }
.buttons-container { animation-delay: 0.4s; }
.services-container { animation-delay: 0.6s; }

@media (max-width: 768px) {
    .warm-hands h1 {
        font-size: 2.5rem;
    }
    
    .ButtonsTable, .ThreeTable {
        display: flex;
        flex-direction: column;
        border-spacing: 10px;
    }
    
    .ButtonsTable th, .ThreeTable th {
        margin-bottom: 10px;
    }
    
    .ThreeText {
        display: flex;
        flex-direction: column;
    }
    
    .ThreeText th {
        margin-bottom: 30px;
    }
}

/* МЕНЮ */

#header {
    position: sticky;
    top: 0;
    width: 100%;
    box-shadow: 0rem .5rem 1rem rgba(0, 0, 0, .1);
    background-color: white;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: relative;
}

.logo {
    width: 5rem;
}

/* Бургер-меню всегда видимо и двигается со страницей */
.nav-button {
    display: block;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.bar, .bar1, .bar2 {
    width: 4rem;
    height: 0.5rem;
    background: #333;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    transition: .3s;
}

/* Прячем бургер-иконку при открытом меню */
.nav-button.change {
    opacity: 0;
    visibility: hidden;
}

/* Боковое меню справа */
.nav-items {
    position: fixed;
    right: -300px; /* Скрыто за правым краем */
    top: 0;
    width: 300px;
    height: 100vh;
    background: white;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nav-items.show {
    right: 0; /* Появляется справа */
}

/* Шапка меню (внутри меню) */
.menu-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 2;
}

.close-menu-btn {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #333;
    transition: color 0.3s ease;
    padding: 5px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu-btn:hover {
    color: #d35400;
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #d35400;
    font-weight: 600;
}

/* Ссылки меню */
.nav-links {
    list-style: none;
    padding: 20px 30px;
    flex-grow: 1;
}

.nav-links li {
    margin: 1.5rem 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.nav-links li:last-child {
    border-bottom: none;
}

.nav-links li a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    padding: 10px 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links li a:hover {
    color: #d35400;
    padding-left: 10px;
}

/* Затемнение фона при открытом меню */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Для больших экранов можно сделать меню шире */
@media screen and (min-width: 768px) {
    .navbar {
        padding: 1rem 10%;
    }
    
    .nav-items {
        width: 350px;
        right: -350px;
    }
    
    .nav-links li a {
        font-size: 1.4rem;
    }
}

/* Адаптация для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .nav-items {
        width: 280px;
        right: -280px;
    }
    
    .menu-header {
        padding: 15px 20px;
    }
    
    .nav-links {
        padding: 20px;
    }
    
    .nav-links li a {
        font-size: 1.1rem;
    }
    
    .bar, .bar1, .bar2 {
        width: 3rem;
    }
    
    .close-menu-btn {
        font-size: 2rem;
    }
}