/* -------------------- RESET & GLOBAL -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Единый цвет основного текста */
p, .about-page p, .section-description, .answer-text, .contact-value, .caption .size {
    color: #574b35;
}

h1 {
    text-align: center;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 25px;
    color: #574b35;
    font-size: 1.65rem;
}
h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1.8em 0 0.8em;
    color: #574b35;
    border-left: 4px solid #d9c5a7;
    padding-left: 20px;
	}
h3 {
    font-size: 1 rem;
    font-weight: 500;
    color: #574b35;
	}

/* Видео */

    .video-container {
        max-width: 500px;
        margin: 20px auto;
        border-radius: 16px;
        overflow: hidden;
        background: #000;
    }
    .video-container video {
        width: 100%;
        height: auto;
        display: block;
    }		
			

/* -------------------- БЛОК 1: ЛОГОТИП (PNG) -------------------- */
.block1 {
    padding-top: 48px;
    padding-bottom: 32px;
    text-align: center;
}
.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.logo-link:hover {
    opacity: 0.8;
}
.logo-img {
    width: 300px;
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* -------------------- БЛОК 2: МЕНЮ  -------------------- */
.block2 {
    background-color: #ffffff;
    border-top: 1px solid #eaeef2;
    border-bottom: 1px solid #eaeef2;
    padding: 12px 0;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(2px);
}
.menu-nav {
    display: flex;
    justify-content: center;
}
.menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-list li a {
    text-decoration: none;
    font-weight: 400;
    font-size: 0.92rem;
    color: #b87c4f;
    padding: 8px 4px;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}
.menu-list li a:hover {
    color: #b87c4f;
    border-bottom-color: #b87c4f;
}
.menu-list li a:link,
.menu-list li a:visited {
    color: #5f5f5f;
}
.menu-list li a:active {
    color: #b87c4f;
}

/* -------------------- БЛОК 4: ПОДВАЛ -------------------- */
.block4 {
    padding: 16px 0 32px 0;
}
.footer-block {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #6b6b6b;
}
.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-logo-link:hover {
    opacity: 0.8;
}
.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
}
.oferta-link {
    text-decoration: none;
    color: #2c3e50;
    border-bottom: 1px dashed #b87c4f;
    font-size: 0.9rem;
}
.oferta-link:hover {
    color: #b87c4f;
}
.oferta-link:link,
.oferta-link:visited {
    color: #2c3e50;
}

/* -------------------- ОБЩИЕ ЭЛЕМЕНТЫ -------------------- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.divider-line {
    flex: 1;
    height: 1px;
    background-color: #d9c5a7;
}
.divider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.divider-icon img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 100%;
}

.btn-link {
    display: inline-block;
    background: transparent;
    border: 1px solid #b87c4f;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: #b87c4f;
    transition: all 0.2s;
    margin-top: 8px;
}


/* Универсальный класс intro-text (центрированный курсив) */
.intro-text {
    text-align: center;
    font-style: italic;
    margin-bottom: 1.2em;
    color: #574b35;
}

/* Убираем голубую подсветку при касании на мобильных устройствах */
a,
button,
input,
textarea,
select,
[role="button"],
.simple-slider__thumb,
[onclick] {
    -webkit-tap-highlight-color: transparent;
}
/* -------------------- СТИЛИ ДЛЯ СТРАНИЦЫ ГАЛЕРЕЯ (index) -------------------- */
h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1.8em 0 0.8em;
    color: #574b35;
    border-left: none;
    padding-left: 20px;
	}

.block3 {
    padding: 0 0 32px 0;
}
.gallery-section {
    margin-bottom: 64px;
}
.gallery-section:last-child {
    margin-bottom: 0;
}
.section-header {
    text-align: center;
    margin-bottom: 32px;
}
.section-header h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: #574b35;
}
.section-description {
    max-width: 800px;
    margin: 0 auto 24px auto;
    font-size: 1rem;
    line-height: 1.5;
    color: #574b35;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.gallery-item {
    display: flex;
    flex-direction: column;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.gallery-item a {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    text-decoration: none;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Фон под описанием каждой работы */
.caption {
    padding: 10px 8px 12px;
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
    background-color: #fff;
    line-height: 1.4;
}
.caption span {
    display: block;
}
.caption .title {
    font-weight: 500;
    color: #574b35;
}
.caption .size {
    font-size: 0.75rem;
    color: #574b35;
}

/* -------------------- СТИЛИ ДЛЯ СТРАНИЦЫ "О СЕБЕ" -------------------- */
.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 60px;
}
.about-page h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1.8em 0 0.8em;
    color: #574b35;
    border-left: 4px solid #d9c5a7;
    padding-left: 20px;
}
.about-page p {
    font-size: 1rem;
    line-height: 1.6;
    color: #574b35;
    margin-bottom: 1.2em;
}
.about-page .photo {
    margin: 2em 0;
    text-align: center;
}
.about-page .photo img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
   /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); */
}
.about-page .photo figcaption {
    font-size: 1.1 rem;
    color: #ba997c;
    margin-top: 8px;
    font-style: italic;
}

/* -------------------- СТИЛИ ДЛЯ СТРАНИЦЫ "КОНТАКТЫ" -------------------- */
.contacts-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 60px;
}
.contacts-info {
    background: #fef9f0;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f0e5d8;
}
.contacts-intro {

    font-style: italic;
    color: #b87c4f;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 0 10px;
}
.contact-item {
    margin: 28px 0;
}
.contact-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b87c4f;
    margin-bottom: 8px;
    font-weight: 500;
}
.contact-value {
    font-size: 1.6rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}
.contact-value:hover {
    color: #b87c4f;
}
.contact-value.email {
    font-size: 1.3rem;
    word-break: break-all;
}

/* -------------------- СТИЛИ ДЛЯ СТРАНИЦЫ FAQ (АККОРДЕОН) -------------------- */
.faq-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 60px;
}
.accordion {
    width: 100%;
}
.accordion-item {
    background: #ffffff;
    border-bottom: 1px solid #eaeef2;
    margin-bottom: 8px;
}
.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #574b35;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}
.accordion-header:hover {
    color: #b87c4f;
}
.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.07s ease-out;
    padding: 0;
}
.accordion-item.active .accordion-content {
    max-height: 4000px;
    padding-bottom: 24px;
}
.answer-text {
    line-height: 1.6;
    margin-bottom: 24px;
}
.answer-text p {
    margin-bottom: 1em;
}
.answer-images {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 500px;
    margin: 0 auto;
}
.answer-images figure {
    margin: 0;
    text-align: center;
}
.answer-images img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #f8f8f8;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.05);*/
}
.answer-images figcaption {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-top: 10px;
    font-style: italic;
}

/* -------------------- СТИЛИ ДЛЯ СТРАНИЦЫ ДРЕВОВИДКИ (и подобных статей) -------------------- */
/* Наследуют .about-page, поэтому дополнительные правила не требуются. 
   Для поэтических вставок используйте .intro-text */

/* Адаптивность для мобильных устройств (единая) */
@media (max-width: 768px) {
    .menu-list {
        gap: 1rem;
    }
    .menu-list li a {
        font-size: 0.85rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .divider-icon img {
        height: 24px;
    }
    .section-header h2 {
        font-size: 1.3rem;
    }
    .section-description {
        font-size: 0.95rem;
        padding: 0 16px;
    }
}
@media (max-width: 640px) {
    .block1 {
        padding-top: 32px;
        padding-bottom: 24px;
    }
    .container {
        padding: 0 16px;
    }
    .menu-list {
        gap: 0.8rem;
    }
    .menu-list li a {
        font-size: 0.8rem;
        padding: 6px 2px;
    }
    .gallery-grid {
        gap: 12px;
    }
    .btn-link {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    .caption {
        font-size: 0.7rem;
        padding: 8px 6px 10px;
    }
    .caption .size {
        font-size: 0.65rem;
    }
    .divider-icon img {
        height: 20px;
    }
    .about-page p, .answer-text, .contact-value {
        font-size: 0.95rem;
    }
    .accordion-header {
        font-size: 1rem;
        padding: 16px 0;
    }
    .answer-images {
        gap: 24px;
    }
