/*
Theme Name: YouKarta
Theme URI: https://youkarta.ru/
Author: Vash Master
Author URI: https://youkarta.ru/
Description: Тема для сайта по ремонту, дизайну и реставрации.
Version: 1.0.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youkarta
*/

/* --- Custom CSS from Mockup --- */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #F9F8F6;
    color: #383838;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
}
.bg-brand-green { background-color: #3A4F41; }
.text-brand-green { color: #3A4F41; }
.bg-brand-accent { background-color: #C1A98A; }
.text-brand-accent { color: #C1A98A; }
.hover\:bg-brand-green-dark:hover { background-color: #2c3a30; }
.bg-brand-light-beige { background-color: #F1EBE5; }

.hero-bg {
     background-image: url('https://placehold.co/1920x1080/444/FFF?text=%D0%A1%D0%BE%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9%20%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D1%8C%D0%B5%D1%80');
     background-size: cover;
     background-position: center;
}
.text-shadow {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
.soft-shadow {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
}
.soft-shadow-hover:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
.portfolio-img-hover {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-img-hover:hover {
    transform: scale(1.05);
}

/* --- Стили для страницы "Прайс-лист" (Адаптивная версия) --- */
.price-list-section__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.price-list-section__items {
    display: flex;
    flex-direction: column;
}

.price-list-item {
    display: flex;
    flex-wrap: wrap; /* Позволяет переносить элементы */
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1ebe5;
}

.price-list-item:last-child {
    border-bottom: none;
}

.price-list-item__info {
    flex-basis: 100%; /* На мобильных занимает всю ширину */
    margin-bottom: 0.5rem;
}

.price-list-item__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #383838;
}

.price-list-item__description {
    font-size: 0.875rem;
    color: #6b7280;
    display: block; /* Описание всегда видно */
    margin-top: 0.25rem;
}

.price-list-item__price {
    flex-basis: 100%; /* На мобильных занимает всю ширину */
    text-align: left; /* Выравнивание по левому краю на мобильных */
}

.price-list-item__price span:first-child {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3A4F41;
}

.price-list-item__unit {
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

/* Убираем точечную линию по умолчанию */
.price-list-item__info::after {
    display: none;
}

/* Стили для экранов от 768px и больше */
@media (min-width: 768px) {
    .price-list-item {
        flex-wrap: nowrap; /* Запрещаем перенос на больших экранах */
        align-items: flex-start;
    }
    .price-list-item__info {
        display: flex;
        flex-basis: auto;
        flex-grow: 1;
        overflow: hidden;
        align-items: baseline;
        margin-bottom: 0;
    }
    .price-list-item__title {
        padding-right: 0.5rem;
        /* white-space: nowrap; - УБРАНО */
    }
    .price-list-item__description {
        margin-left: 1rem;
        margin-top: 0;
        /* white-space: nowrap; - УБРАНО */
    }
    .price-list-item__price {
        flex-basis: auto;
        flex-shrink: 0;
        text-align: right;
        padding-left: 0.5rem;
    }
    .price-list-item__price span:first-child {
        font-size: 1.125rem;
    }
    /* Возвращаем точечную линию на больших экранах */
    .price-list-item__info::after {
        display: block;
        content: '';
        flex-grow: 1;
        border-bottom: 2px dotted #d1d5db;
        position: relative;
        top: -0.4em;
        margin-left: 0.5rem; /* Добавляем отступ для линии */
    }
}


/* --- Профессиональная типографика для контента (Версия 3.0) --- */
.prose {
    color: #383838;
}
.prose h2 {
    font-family: 'Lora', serif;
    color: #212121;
    font-size: 2.25rem;
    line-height: 1.3;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #e0e0e0;
}
.prose h3 {
    font-family: 'Lora', serif;
    color: #2c3a30;
    font-size: 1.875rem;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.prose p {
    font-family: 'Manrope', sans-serif;
    line-height: 1.85; 
    font-size: 1.125rem;
    margin-bottom: 1.5em;
}
.prose a {
    color: #3A4F41;
    text-decoration: none;
    background-image: linear-gradient(to top, #c1a98a66 30%, transparent 30%);
    transition: background-image 0.3s ease;
}
.prose a:hover {
    background-image: linear-gradient(to top, #c1a98a 40%, transparent 40%);
}
.prose ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}
.prose ol {
    list-style: none;
    counter-reset: ordered-list-counter;
    padding-left: 0;
    margin-bottom: 1.5em;
}
.prose li {
    position: relative;
    padding-left: 2.5em;
    margin-bottom: 1em;
}
.prose ul > li::before {
    content: '';
    position: absolute;
    left: 0.5em;
    top: 0.4em;
    width: 1em;
    height: 1em;
    background-color: #C1A98A;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
}
.prose ol > li::before {
    counter-increment: ordered-list-counter;
    content: counter(ordered-list-counter);
    position: absolute;
    left: 0;
    top: -0.1em;
    font-family: 'Lora', serif;
    font-size: 1.75em;
    font-weight: 700;
    color: #C1A98A;
    line-height: 1;
}
.prose blockquote {
    font-family: 'Lora', serif;
    font-style: italic;
    border-left: none; 
    color: #4a4a4a;
    padding: 1.5em 2em;
    margin: 2.5em 0;
    background-color: #F1EBE5; 
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.prose blockquote::before {
    content: '“';
    font-family: 'Lora', serif;
    position: absolute;
    top: -0.1em;
    left: 0.1em;
    font-size: 5em;
    color: #C1A98A;
    opacity: 0.6;
    line-height: 1;
}
.prose blockquote p {
    font-size: 1.2rem;
    position: relative; 
    z-index: 1;
    margin-bottom: 0;
}
.prose img {
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    margin-top: 2em;
    margin-bottom: 2em;
}
.prose figure figcaption {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9em;
    color: #777;
    text-align: center;
    margin-top: 0.8em;
}
.prose hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 3.5em auto;
    width: 50%;
}

/* --- Выравнивание изображений по центру --- */
.aligncenter,
div.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Для изображений с подписями */
.wp-caption.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

/* --- Стиль таблиц a-la The New York Times --- */
table.custom-table {
    width: 100%;
    border-collapse: collapse; /* Убираем двойные рамки */
    font-family: 'Georgia', 'Times New Roman', serif; /* Элегантный шрифт с засечками */
    margin: 25px 0;
    font-size: 16px;
    text-align: left;
}

/* Стили для заголовков таблицы */
table.custom-table th {
    font-weight: bold;
    padding: 12px 15px;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
    letter-spacing: 0.5px;
}

/* Стили для ячеек таблицы */
table.custom-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd; /* Тонкая серая линия между строками */
    color: #333333;
}

/* Убираем линию у последней строки для чистого вида */
table.custom-table tbody tr:last-of-type td {
    border-bottom: none;
}

/* Стиль для подписи к таблице */
table.custom-table caption {
    caption-side: bottom;
    padding: 15px 0;
    font-style: italic;
    font-size: 14px;
    color: #666666;
    text-align: left;
}
