/* --- ГЛОБАЛЬНЫЕ НАСТРОЙКИ (MOBILE FIRST) --- */
:root {
    --bg-color: #FDFCFB;
    --text-main: #1A1A1A;
    --text-light: #555555;
    --accent: #B2A4D4;
    --accent-hover: #9686C2;
    --warning: #D35400;
    --white: #FFFFFF;
    --border: #E0E0E0;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --safe-area-bottom: env(safe-area-inset-bottom);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px; /* Отступ под плавающую кнопку */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 8px; }

/* --- КОНТЕЙНЕР --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- МОБИЛЬНАЯ ШАПКА И МЕНЮ --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
}
.logo span { color: var(--accent); }

/* Бургер-кнопка (видна только на мобильных) */
.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 30px;
}
.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* Меню навигации */
.menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none; /* Скрыто по умолчанию на мобиле */
}

.menu.active { display: flex; } /* Показываем JS-ом */

.menu a {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
}

.desktop-btn { display: none; } /* Скрываем кнопку в шапке на мобиле */

/* --- ПЛАВАЮЩАЯ КНОПКА (STICKY FOOTER) --- */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px 20px calc(15px + var(--safe-area-bottom));
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 999;
}

.sticky-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: var(--text-main);
    color: var(--white);
    padding: 16px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1rem;
}

/* --- СТИЛИ КОНТЕНТА (MOBILE) --- */
.page-header {
    text-align: center;
    padding: 40px 0 30px;
}
.page-title { font-family: var(--font-head); font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; }
.subtitle { font-size: 1rem; color: var(--text-light); }

.hero { padding: 60px 20px; text-align: center; }
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; }

/* Карточки услуг */
.service-block {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px; /* Меньше отступы на мобиле */
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-title { font-size: 1.6rem; margin-bottom: 10px; }

.service-meta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.warning-box {
    background: #FFF4E6;
    color: var(--warning);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 4px solid var(--warning);
}

/* Цены */
.pricing-tiers {
    display: grid;
    grid-template-columns: 1fr; /* Одна колонка на мобиле */
    gap: 20px;
}
.price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.3rem;
    margin-top: 20px;
}

/* Обо мне */
.about-grid { display: block; }
.photo-box { margin-bottom: 30px; height: 350px; }

/* --- DESKTOP ВЕРСИЯ (ОТ 769px) --- */
@media (min-width: 769px) {
    .burger-menu { display: none; }
    
    .menu {
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
        box-shadow: none;
        display: flex;
        gap: 30px;
        padding: 0;
    }
    
    .menu a { border-bottom: none; font-size: 0.9rem; padding: 0; }
    .desktop-btn { display: inline-block; padding: 10px 25px; border: 1px solid var(--text-main); border-radius: 50px; }
    .sticky-footer { display: none; } /* Скрываем липкую кнопку на компе */
    body { padding-bottom: 0; }
    
    .service-block { padding: 40px; }
    .service-meta { flex-direction: row; }
    .pricing-tiers { grid-template-columns: 1fr 1fr; }
    .price-box { flex-direction: row; align-items: center; }
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
}