/* ============================================
   1. БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ============================================ */
:root {
    --primary: #f2a6b0;
    --primary-hover: #e8919c;
    --text-dark: #2d2a28;
    --text-gray: #6b5f5a;
    --bg-light: #fef9f7;
    --border-color: #f0e8e5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* Кнопки */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 40px;
    border-radius: 60px;
    border: none;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(242, 166, 176, 0.35);
    text-align: center;
}
.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(242, 166, 176, 0.45);
}

/* Секции */
.section { padding: 70px 0; }
.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: -8px;
    margin-bottom: 40px;
}
.text-center { text-align: center; }

/* ============================================
   2. ШАПКА И НАВИГАЦИЯ
   ============================================ */
.navbar {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(254, 249, 247, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { height: 70px; width: auto; object-fit: contain; transition: 0.2s; }
.logo img:hover { opacity: 0.85; }

.nav-links { display: flex; gap: 32px; font-weight: 500; font-size: 0.9rem; }
.nav-links a { transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* Бургер */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
}
.mobile-menu.active { display: flex; }
.mobile-link { font-size: 1.5rem; font-weight: 600; padding: 12px; }
.mobile-link:hover { color: var(--primary); }
.btn-mobile { background: var(--primary); color: #fff; padding: 16px 40px; border-radius: 60px; margin-top: 16px; }
body.menu-open { overflow: hidden; }

/* Кнопка закрытия мобильного меню (крестик) */
.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 0;
}
.mobile-close span {
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-close span:first-child { transform: rotate(45deg); }
.mobile-close span:last-child { transform: rotate(-45deg); }
.mobile-close:hover span { background-color: var(--primary); }

/* ============================================
   3. ГЛАВНЫЙ ЭКРАН (HERO)
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    background: var(--text-dark);
}
.hero-slider { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(45, 42, 40, 0.85) 0%, rgba(45, 42, 40, 0.4) 100%);
    z-index: 2;
}
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 60px;
}
.hero-content { max-width: 650px; color: #fff; }
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-content h1 span { color: var(--primary); }
.hero-content .sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
.hero-content .btn-primary-large {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 18px 48px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 8px 24px rgba(242, 166, 176, 0.4);
    margin-bottom: 48px;
}
.hero-content .btn-primary-large:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
}
.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 32px;
    margin-top: 48px;
}
.hero-stats .stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stats .number { font-size: 2rem; font-weight: 700; color: #fff; }
.hero-stats .label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }

/* ============================================
   4. ГЛАВНАЯ: ПОЛНОШИРИННЫЙ СПИСОК УСЛУГ
   ============================================ */
.services-list-full {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}
.service-row-link { display: block; border-radius: 20px; }
.service-row {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 40px;
    min-height: 120px;
    display: flex;
    align-items: center;
    transition: 0.3s ease;
}
.service-row-link:hover .service-row {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #e8deda;
}
.service-row-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}
.service-text h3 { font-size: 1.4rem; font-weight: 600; margin: 0; }
.service-text p { font-size: 0.95rem; color: var(--text-gray); margin: 4px 0 0 0; }
.service-row-arrow {
    font-size: 1.5rem;
    color: var(--text-dark);
    opacity: 0.5;
    transition: 0.3s ease;
    margin-left: 20px;
}
.service-row-link:hover .service-row-arrow {
    transform: translateX(8px);
    opacity: 1;
    color: var(--primary);
}

/* ============================================
   5. ГЛАВНАЯ: О НАС
   ============================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text { font-size: 1.05rem; color: var(--text-gray); line-height: 1.7; margin-bottom: 24px; }
.about-features-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.about-features-list li {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
    background: #fff;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: 0.2s ease;
}
.about-features-list li:hover { transform: translateX(4px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04); }
.about-image-wrapper { border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); }
.about-image { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.about-image-wrapper:hover .about-image { transform: scale(1.03); }

/* ============================================
   6. ГЛАВНАЯ: МАСТЕР
   ============================================ */
.master-block {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 64px;
    align-items: center;
    background: #fcf9f7;
    border-radius: 32px;
    padding: 48px;
    border: 1px solid var(--border-color);
}
.master-image-wrapper { border-radius: 24px; overflow: hidden; aspect-ratio: 3/4; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); }
.master-img { width: 100%; height: 100%; object-fit: cover; }
.master-content { display: flex; flex-direction: column; }
.master-content .section-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: #9b8f8a; margin-bottom: 8px; }
.master-name { font-size: 2.2rem; font-weight: 700; margin: 0 0 4px 0; }
.master-title { font-size: 1rem; color: var(--primary); font-weight: 600; margin-bottom: 24px; }
.master-text { font-size: 1.05rem; color: var(--text-gray); line-height: 1.7; margin-bottom: 32px; }
.master-actions { display: flex; gap: 16px; align-items: center; }
.btn-master-social {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 24px;
    border-radius: 60px;
    border: 1px solid #e8deda;
    transition: 0.2s;
}
.btn-master-social:hover { background: #fff; color: var(--text-dark); }

/* ============================================
   7. ГЛАВНАЯ: ОТЗЫВЫ
   ============================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.review-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: 0.3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.review-stars { color: #f5b342; font-size: 1.2rem; letter-spacing: 2px; }
.review-date { font-size: 0.85rem; color: #9b8f8a; }
.review-text { font-size: 1rem; color: #4a3f3a; line-height: 1.6; margin-bottom: 24px; flex-grow: 1; font-style: italic; }
.review-footer { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--border-color); padding-top: 16px; }
.review-author { display: flex; flex-direction: column; gap: 4px; }
.author-name { font-weight: 700; }
.author-service { font-size: 0.85rem; color: var(--text-gray); }
.review-source { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* ============================================
   8. ГЛАВНАЯ: КОНТАКТЫ
   ============================================ */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; }
.contact-icon { font-size: 1.8rem; min-width: 40px; }
.contact-item h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 6px 0; }
.contact-item p { margin: 0; color: var(--text-gray); font-size: 1.05rem; }
.contact-item a { color: var(--text-gray); transition: 0.2s; }
.contact-item a:hover { color: var(--primary); }
.contact-info .btn { margin-top: 24px; width: 100%; max-width: 300px; padding: 16px; }
.map-wrapper { width: 100%; height: 400px; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.map-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================
   9. ГЛАВНАЯ: FAQ
   ============================================ */
.faq-section { padding: 80px 0; background: var(--bg-light); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--text-gray); line-height: 1.6; }

/* ============================================
   10. ФУТЕР
   ============================================ */
.footer {
    padding: 40px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--text-gray);
    font-size: 0.9rem;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a:hover { color: var(--primary); }

/* ============================================
   11. СТРАНИЦЫ КАТЕГОРИЙ (/services/<id>/)
   ============================================ */
.category-page-container { padding-top: 120px; padding-bottom: 80px; max-width: 900px; }
.category-header { margin-bottom: 40px; text-align: left; }
.category-header .section-title { font-size: 2.4rem; margin-bottom: 12px; color: var(--text-dark); line-height: 1.1; }
.category-desc { font-size: 1.1rem; color: var(--text-gray); line-height: 1.6; max-width: 700px; }
.services-list { display: flex; flex-direction: column; gap: 16px; }
.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    transition: 0.3s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); border-color: #e8deda; }
.service-info { flex: 1; padding-right: 20px; }
.service-name { font-size: 1.35rem; font-weight: 600; color: var(--text-dark); margin: 0 0 10px 0; display: flex; align-items: center; gap: 12px; }
.bestseller-badge { font-size: 0.75rem; background: #fff3e0; color: #f57c00; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.service-desc { font-size: 0.95rem; color: var(--text-gray); margin: 0 0 16px 0; line-height: 1.6; }
.read-more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--primary); transition: 0.2s; }
.read-more-link:hover { color: var(--primary-hover); }
.read-more-link .arrow { transition: transform 0.2s; }
.read-more-link:hover .arrow { transform: translateX(4px); }
.service-action { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; min-width: 180px; }
.service-price-block { display: flex; flex-direction: column; align-items: flex-end; }
.old-price { font-size: 0.9rem; color: #9b8f8a; text-decoration: line-through; }
.current-price { font-size: 1.6rem; font-weight: 700; color: var(--text-dark); }
.btn-primary-large { padding: 12px 32px; font-size: 0.95rem; border-radius: 60px; white-space: nowrap; width: 100%; text-align: center; background: var(--primary); color: #fff; font-weight: 600; transition: 0.2s; }
.btn-primary-large:hover { background: var(--primary-hover); }
.btn-secondary { background: #faf9f8; color: var(--text-gray); display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 60px; font-weight: 600; border: 1px solid var(--border-color); transition: 0.2s; }
.btn-secondary:hover { background: #fff; color: var(--text-dark); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.back-button-wrap { text-align: center; margin-top: 48px; }
.empty-state { text-align: center; padding: 48px; color: var(--text-gray); font-size: 1rem; background: #fcf9f7; border-radius: 20px; border: 1px dashed #e8deda; }

/* ============================================
   12. СТРАНИЦЫ УСЛУГ (/service/<id>/)
   ============================================ */
.service-page-container { padding-top: 120px; padding-bottom: 80px; max-width: 1040px; }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 64px; }
.service-layout.no-image { display: block; max-width: 720px; margin: 0 auto 64px auto; }
.service-image-side { border-radius: 24px; overflow: hidden; background: #fcf9f7; aspect-ratio: 4/5; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05); position: sticky; top: 120px; }
.service-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-header-block { margin-bottom: 32px; }
.bestseller-badge-large { display: inline-block; font-size: 0.8rem; background: #fff3e0; color: #f57c00; padding: 6px 14px; border-radius: 20px; font-weight: 600; margin-bottom: 16px; }
.service-detail-title { font-size: 2.6rem; font-weight: 700; color: var(--text-dark); margin: 0; line-height: 1.1; letter-spacing: -0.5px; }
.service-buy-card { background: #faf9f8; border: 1px solid var(--border-color); border-radius: 20px; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 48px; }
.price-wrapper { display: flex; flex-direction: column; gap: 4px; }
.price-label { font-size: 0.8rem; color: #9b8f8a; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.price-values { display: flex; align-items: baseline; gap: 12px; }
.old-price-large { font-size: 1.1rem; color: #9b8f8a; text-decoration: line-through; }
.current-price-large { font-size: 2rem; font-weight: 700; color: var(--text-dark); }
.service-detail-description { color: #4a3f3a; }
.service-detail-description h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.service-detail-description p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; }
.seo-content-block { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-color); }
.seo-heading { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.seo-subheading { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); margin-top: 32px; margin-bottom: 12px; }
.seo-text { font-size: 1rem; color: var(--text-gray); line-height: 1.7; margin-bottom: 16px; }
.seo-list { list-style: none; padding: 0; margin: 0 0 24px 0; display: flex; flex-direction: column; gap: 12px; }
.seo-list li { position: relative; padding-left: 20px; font-size: 1rem; color: var(--text-gray); line-height: 1.6; }
.seo-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background-color: var(--primary); }
.service-back-link { margin-top: 48px; }
.service-back-link a { color: #9b8f8a; font-weight: 600; font-size: 0.95rem; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.service-back-link a:hover { color: var(--primary); }
.arrow-left { transition: transform 0.2s; }
.service-back-link a:hover .arrow-left { transform: translateX(-4px); }
.related-services-section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border-color); }
.related-services-section .section-title { text-align: left; margin-bottom: 24px; font-size: 1.5rem; }
.related-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.related-service-card { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 20px 24px; transition: 0.3s; display: flex; flex-direction: column; gap: 8px; }
.related-service-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.04); }
.rel-service-name { font-size: 1rem; font-weight: 600; color: var(--text-dark); }
.rel-service-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* ============================================
   13. БЛОГ И СТАТЬИ
   ============================================ */
.blog-page-container { padding-top: 120px; padding-bottom: 80px; max-width: 1040px; }
.blog-header { text-align: center; margin-bottom: 56px; }
.blog-header .section-title { font-size: 2.4rem; margin-bottom: 12px; }
.blog-subtitle { font-size: 1.1rem; color: var(--text-gray); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.article-card { background: #fff; border: 1px solid var(--border-color); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; }
.article-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); }
.article-image-wrap { height: 220px; overflow: hidden; background: #fcf9f7; }
.article-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.article-card:hover .article-img { transform: scale(1.05); }
.article-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--border-color); color: #9b8f8a; font-weight: 600; font-size: 1.2rem; }
.article-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.article-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: #9b8f8a; margin-bottom: 12px; }
.article-title { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin: 0 0 12px 0; line-height: 1.3; }
.article-excerpt { font-size: 0.95rem; color: var(--text-gray); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.article-read-more { font-size: 0.9rem; font-weight: 600; color: var(--primary); transition: 0.2s; }
.article-card:hover .article-read-more { color: var(--primary-hover); }

/* Страница статьи */
.article-page { padding-top: 100px; padding-bottom: 80px; }
.article-hero { width: 100%; height: 400px; margin-bottom: 48px; overflow: hidden; border-radius: 32px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body-container { max-width: 760px; }
.article-header { margin-bottom: 32px; text-align: center; }
.article-meta { font-size: 0.9rem; color: #9b8f8a; margin-bottom: 16px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.article-meta .sep { color: #e8deda; }
.article-main-title { font-size: 2.6rem; font-weight: 700; color: var(--text-dark); line-height: 1.2; letter-spacing: -0.5px; margin: 0; }
.article-text { font-size: 1.1rem; color: #4a3f3a; line-height: 1.8; }
.article-text p { margin-bottom: 24px; }
.article-text h2 { font-size: 1.6rem; color: var(--text-dark); margin: 40px 0 20px 0; font-weight: 700; }
.article-text h3 { font-size: 1.3rem; color: var(--text-dark); margin: 32px 0 16px 0; font-weight: 600; }
.article-text ul, .article-text ol { margin-bottom: 24px; padding-left: 24px; }
.article-text li { margin-bottom: 8px; }
.article-text img { max-width: 100%; height: auto; border-radius: 16px; margin: 32px 0; }
.article-text blockquote { border-left: 4px solid var(--primary); padding-left: 20px; margin: 32px 0; font-style: italic; color: var(--text-gray); }
.article-cta { background: #fcf9f7; border: 1px solid var(--border-color); border-radius: 24px; padding: 40px; text-align: center; margin-top: 64px; }
.article-cta h3 { font-size: 1.4rem; color: var(--text-dark); margin: 0 0 12px 0; }
.article-cta p { color: var(--text-gray); margin-bottom: 24px; }
.article-cta .btn-primary-large { display: inline-block; width: auto; }
.article-back { margin-top: 40px; text-align: center; }
.article-back a { color: #9b8f8a; font-weight: 600; transition: 0.2s; }
.article-back a:hover { color: var(--primary); }

/* ============================================
   14. СТРАНИЦА ПОЛИТИКИ
   ============================================ */
.policy-page-container { padding-top: 120px; padding-bottom: 80px; max-width: 800px; }
.policy-title { font-size: 2.4rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.policy-date { font-size: 0.95rem; color: #9b8f8a; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.policy-content { font-size: 1rem; color: #4a3f3a; line-height: 1.7; }
.policy-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin: 32px 0 16px 0; }
.policy-content p { margin-bottom: 16px; }
.policy-content ul { margin-bottom: 16px; padding-left: 20px; }
.policy-content li { margin-bottom: 8px; }

/* ============================================
   15. МОБИЛЬНЫЙ АДАПТИВ (ОДИН БЛОК)
   ============================================ */
@media (max-width: 900px) {
    .nav-links, .nav-actions .btn { display: none; }
    .menu-toggle { display: flex; }
    .logo img { height: 40px; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { order: -1; aspect-ratio: 16/9; }
    
    .master-block { grid-template-columns: 1fr; padding: 32px 24px; }
    .master-image-wrapper { aspect-ratio: 1/1; max-width: 300px; margin: 0 auto; }
    .master-actions { flex-direction: column; }
    
    .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
    .map-wrapper { height: 300px; }

    /* Адаптив страниц услуг */
    .service-layout { grid-template-columns: 1fr; gap: 32px; }
    .service-image-side { aspect-ratio: 16/9; position: relative; top: 0; }
    .service-detail-title { font-size: 2rem; }
    .service-buy-card { flex-direction: column; align-items: flex-start; padding: 20px; gap: 20px; }
    .btn-primary-large { width: 100%; }

    /* Адаптив блога */
    .article-page { padding-top: 80px; }
    .article-hero { height: 250px; border-radius: 0; margin-bottom: 32px; }
    .article-main-title { font-size: 1.8rem; }
    .article-text { font-size: 1rem; }
    .article-cta { padding: 24px; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    
    /* Мобильный Hero */
    .hero { min-height: auto; padding-top: 100px; padding-bottom: 40px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .sub { font-size: 1rem; }
    .hero-content .btn-primary-large { width: 100%; text-align: center; padding: 16px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; margin-top: 32px; padding-top: 24px; }
    .hero-stats .number { font-size: 1.6rem; }

    /* Мобильные Услуги на главной */
    .service-row { padding: 20px; min-height: 80px; }
    .service-text h3 { font-size: 1.1rem; }
    .service-text p { display: none; }
    
    /* Мобильный футер и кнопка */
    .footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
    
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: #fff;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }
    .sticky-btn {
        display: block;
        width: 100%;
        background: var(--primary);
        color: #fff;
        text-align: center;
        padding: 16px;
        border-radius: 60px;
        font-weight: 600;
        font-size: 1.05rem;
    }
    body { padding-bottom: 80px; }

    /* Адаптив категорий */
    .category-page-container { padding-top: 90px; }
    .category-header .section-title { font-size: 2rem; }
    .service-card { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
    .service-info { padding-right: 0; }
    .service-action { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; border-top: 1px solid var(--border-color); padding-top: 20px; min-width: auto; }
    .service-price-block { align-items: flex-start; }
    .btn-primary-large { width: auto; padding: 10px 24px; }

    /* Адаптив блога */
    .blog-page-container { padding-top: 90px; }
    .blog-grid { grid-template-columns: 1fr; gap: 24px; }
    .blog-header .section-title { font-size: 2rem; }

    /* Адаптив политики */
    .policy-page-container { padding-top: 90px; }
    .policy-title { font-size: 1.8rem; }
}

/* Сетка для карточек */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на ПК */
    gap: 30px;
    margin-top: 40px;
}

/* Сама карточка */
.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Легкая тень */
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Эффект при наведении на ПК */
.service-card:hover {
    transform: translateY(-5px); /* Приподнимаем */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); /* Усиливаем тень */
}

/* Обертка картинки */
.service-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

/* Сама картинка */
.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Зум картинки при наведении */
.service-card:hover .service-card-img {
    transform: scale(1.05);
}

/* Иконка поверх фото */
.service-card-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Текстовый контент */
.service-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    color: #333;
}

.service-card-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Чтобы кнопка всегда была прижата к низу */
}

/* Кнопка внутри карточки */
.service-card-btn {
    display: inline-flex;
    align-items: center;
    color: #8b6b4d; /* Замените на ваш фирменный цвет, например, зеленый из хедера */
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.service-card-btn .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Анимация стрелочки при наведении */
.service-card:hover .service-card-btn {
    color: #000; 
}
.service-card:hover .service-card-btn .arrow {
    transform: translateX(5px);
}

/* АДАПТИВ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
        gap: 20px;
    }
    
    .service-card-image-wrapper {
        height: 180px; /* Уменьшаем высоту фото на телефоне */
    }
    
    .service-card-content {
        padding: 20px;
    }
}