/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
     background: url('images/mainback.png') repeat;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

[id] {
  scroll-margin-top: 80px;
}

section {
    /* margin-top: 40px; */
    padding-top: 40px;
    /* box-shadow:  0 30px 30px -10px rgba(0, 0, 0, 0.3);  */
}

#exp {
     /* box-shadow:  0 30px -30px -10px rgba(0, 0, 0, 0.3); */
}
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

/* .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
} */

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #e67e22;
}

.btn-primary:hover {
    background-color: #d35400;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    /* background-color: rgba(255, 255, 255, 0.95); */
    background-color: rgba(0, 0, 0, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0px 0px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.logo span {
    color: #e67e22;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #8a8a8a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-list a:hover {
    color: #ffffff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
}

/* Блок "Обо мне" */
.about-section {
    /* margin-top: 100px; */
    /* background-color: white; */
    /* background: url('images/mainback.png') repeat; */
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-content h1 {
    font-size: 2.8rem;
    text-align: center;
}
.about-content{
    text-align: center;
}
.subtitle {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
}

.subtitletext {
    color: #ffffff;
    font-weight:normal;
    margin-bottom: 10px;
    font-size: 1rem;
    text-align:justify;
}

.about-text {
    margin: 25px 0;
}

.qualifications {
    list-style: none;
    margin: 15px 0 25px;
}

.qualifications li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.qualifications i {
    color: #27ae60;
    margin-right: 10px;
}

/* Галерея */
/* Галерея */
/* Галерея - полная ширина */
.gallery-section {
    background-color: #f1f2f6;
    padding: 0 !important; /* Убираем вертикальные отступы секции */
    margin: 10px 0; /* Добавляем отступы сверху/снизу если нужно */
}

/* Контейнер для заголовков (если они остаются над галереей) */
.gallery-section .container {
    padding-bottom: 40px; /* Отступ под заголовками */
}

/* Основной контейнер галереи */
.gallery-container {
    position: relative;
    overflow: hidden;
    width: 100vw; /* Полная ширина viewport */
    margin-left: calc(-50vw + 50%); /* Центрирование для компенсации отступов body */
    /* height: 500p; Фиксированная высота */
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопки навигации */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    z-index: 10;
    transition: all 0.3s;
    opacity: 0.7;
}

.gallery-btn:hover {
    background-color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn-prev {
    left: 20px;
}

.gallery-btn-next {
    right: 20px;
}

/* Точки навигации */
.gallery-dots {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
}

.gallery-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-dots span.active {
    background-color: #e67e22;
    border-color: white;
    transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .gallery-container {
        height: 400px;
    }
    
    .gallery-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        left: 10px;
        right: 10px;
    }
    
    .gallery-btn-prev {
        left: 10px;
    }
    
    .gallery-btn-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        height: 300px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.fullwidth-gallery {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    height: 500px;
    position: relative;
     /* background: url('images/mainback.png') repeat; */
}



/* 

.gallery-section {
    background-color: #f1f2f6;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    padding: 10px;
}

.gallery-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    z-index: 10;
    transition: all 0.3s;
}

.gallery-btn:hover {
    background-color: white;
}

.gallery-btn-prev {
    left: 20px;
}

.gallery-btn-next {
    right: 20px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.gallery-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gallery-dots span.active {
    background-color: #e67e22;
} */

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.service-content p {
    color: #555;
    margin-bottom: 15px;
}

.price {
    font-weight: 700;
    color: #e67e22 !important;
    font-size: 1.3rem;
}

/* Контакты */
.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
     /* background: url('images/mainback.png') repeat; */
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    color: #e67e22;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links h3 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f1f2f6;
    border-radius: 50%;
    color: #333;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #e67e22;
    color: white;
    transform: translateY(-5px);
}

#map {
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Футер */
.footer {
    background-color: #1a1a1a;
    color: rgb(129, 129, 129);
    padding: 30px 0;
    text-align: center;
}

.footer a {
    color: #e67e22;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #333;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
}

.modal-content textarea {
    min-height: 100px;
    resize: vertical;
}

.grid-container {
     /* box-shadow: inset 0 -10px 20px -5px rgba(0, 0, 0, 0.4);  */
  display: grid;
  grid-template-columns: repeat(auto-fit, 380px);
  gap: 20px;
  padding: 0px;
  justify-content: center;
  /* background: url('images/mainback.png') repeat; */
}

.grid-item {
  width: 380px;
  height: 170px;
  border-radius: 30px;
  background: linear-gradient(to bottom, #d8c590, #bda566);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: clamp(24px, 4vw, 28px);
  line-height: 110%;
  /* box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);  опционально: тень  */
}
.grid-item p {
    text-align: center;
    color: #876b21;
    font-weight: bold;
    /* text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); */
}

.hibold {
    color: #6f5d2c;
    font-size: 1.3em;
    display: block;
    margin: 10px;
    padding: 0px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contacts-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}



@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .btn-small {
        display: none;
    }
    
    .section {
        padding-top: 40px;
    }
    
    .gallery-slide img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .grid-item {
  width: 90%;
  height: 160px;
  margin:0 5%;
    }
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .gallery-slide img {
        height: 250px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
    }
}

.otzyvy_container {
  display: grid;
  place-items: center;
}
.otzyvy {
    width: 90vw;
    max-width: 750px;
    margin: 0 auto;
    padding: 0px;
    height: 1350px;
    border-radius: 10px;
    overflow-y: scroll;
}