/* ==========================================================================
   ФИНАЛЬНЫЙ ЧИСТЫЙ CSS (V 6.0) - APPLE STYLE + ИДЕАЛЬНЫЙ МОБИЛЬНЫЙ
   ========================================================================== */

/* --- 1. ЦВЕТА СЕКЦИЙ --- */
.page-id-17 .entry-content .content-section-light { background-color: #ffffff !important; }
.page-id-17 .entry-content .content-section-pink { background-color: #FFF0F5 !important; }
.page-id-17 .entry-content .content-section-blue { background-color: #F0F8FF !important; }
.page-id-17 .entry-content .content-section-orange { background-color: #FFF8E1 !important; }

/* --- 2. ТИПОГРАФИКА --- */
.page-id-17 .entry-content h1,
.page-id-17 .entry-content h2,
.page-id-17 .entry-content h3 {
    color: #2c3e50 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.page-id-17 .entry-content p, 
.page-id-17 .entry-content li, 
.page-id-17 .entry-content td {
    color: #4a4a4a !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* ЗАГОЛОВОК H1 */
h1 { text-wrap: balance; margin-top: 0; }
@media (max-width: 768px) {
    h1 { font-size: 28px !important; line-height: 1.3 !important; }
}

/* --- 3. КНОПКИ --- */
.page-id-17 .entry-content .apple-button {
    background: #ff9a9e !important; color: #fff !important; border-radius: 30px !important;
    padding: 15px 35px !important; font-size: 18px !important; text-decoration: none !important;
    display: inline-block !important; transition: transform 0.2s !important; border: none !important;
}
.page-id-17 .entry-content .apple-button:hover { transform: scale(1.05) !important; background: #ff8085 !important; }

/* КНОПКИ APPLE BLUE (Для услуг) */
.apple-blue-btn {
    display: inline-block; background-color: #0071e3; color: #fff !important; padding: 12px 24px;
    border-radius: 980px; font-size: 17px; font-weight: 500; text-decoration: none; transition: all 0.3s ease;
}
.apple-blue-btn:hover { background-color: #0077ed; transform: scale(1.02); }
.full-width-btn { display: block; width: 100%; text-align: center; }

/* --- 4. ОБЩИЕ ЭЛЕМЕНТЫ --- */
/* Картинки по умолчанию */
.page-id-17 .entry-content img:not(.le-header img):not(.card-image-full img):not(.training-img-height img) {
    border-radius: 20px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    width: 100% !important; height: auto !important; display: block !important;
}
/* Карточки отзывов */
.page-id-17 .entry-content .feature-card {
    background: #fff !important; border-radius: 20px !important; padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; height: 100% !important;
}
/* Сетки */
.page-id-17 .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.page-id-17 .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.page-id-17 .le-header img { border-radius: 0 !important; box-shadow: none !important; width: auto !important; max-height: 40px !important; }

/* Блок О мастере */
.bento-card { background-color: #F5F5F7; border-radius: 24px; padding: 35px; height: 100%; }
.apple-list { list-style: none; padding: 0; margin: 20px 0; }
.apple-list li { margin-bottom: 24px; padding-left: 15px; border-left: 2px solid #000; }
.edu-header { font-size: 18px; font-weight: 700; color: #1d1d1f; }
.edu-desc { font-size: 16px; color: #86868b; }

/* Прайс и FAQ */
.price-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; border-radius: 15px; overflow: hidden; }
.price-table th { background: #F0F8FF; padding: 15px; font-weight: bold; text-align: left; }
.price-table td { padding: 15px; border-bottom: 1px solid #eee; }
.page-id-17 .entry-content details { background: #fff !important; margin-bottom: 15px; border-radius: 10px; padding: 20px; }
.page-id-17 .entry-content summary { font-weight: 600; cursor: pointer; color: #2c3e50; }


/* =========================================================================
   БЛОК 3: УСЛУГИ - APPLE STYLE (PC + MOBILE)
   ========================================================================= */

/* Сетка */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* 1. Общая карточка */
.apple-card {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    position: relative;
}
.apple-card:hover { transform: translateY(-5px); }

/* 2. Текст */
.card-body {
    padding: 25px 30px 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: transparent !important;
}
.card-body h3 { margin-top: 10px; font-size: 21px; font-weight: 700; color: #1d1d1f; margin-bottom: 12px; }
.card-body p { color: #515154; font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
.design-note { background: #F5F5F7; padding: 15px; border-radius: 12px; font-size: 14px !important; margin-bottom: 20px; }
.card-footer { margin-top: auto; }

/* 3. Обучение */
.grid-2-training { display: grid; grid-template-columns: 1fr 1fr; height: 100%; align-items: center; }


/* --- НАСТРОЙКИ КАРТИНОК ДЛЯ КОМПЬЮТЕРА (мин. ширина 901px) --- */
@media (min-width: 901px) {
    .card-image-full,
    .training-img-height {
        padding: 15px 15px 0 15px !important;
        height: 320px !important;
        width: 100%;
        background: transparent !important;
        box-sizing: border-box;
    }
    .card-image-full img,
    .training-img-height img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
        display: block !important;
        transition: transform 0.3s ease;
    }
    .apple-card:hover img { transform: scale(1.02); }
}


/* --- НАСТРОЙКИ ДЛЯ ТЕЛЕФОНОВ (ИСПРАВЛЕННЫЕ) --- */
@media (max-width: 900px) {
    
    /* Сбрасываем сетки в 1 колонку */
    .page-id-17 .grid-2, 
    .services-grid, 
    .grid-2-training {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .page-id-17 .content-wrapper { padding: 0 20px !important; }
    .bento-card { padding: 25px; }

    /* Таблица цен */
    .price-table thead { display: none; }
    .price-table tr { display: block; margin-bottom: 20px; border: 1px solid #e0e0e0; border-radius: 12px; padding: 20px; }
    .price-table td { display: block; border: none; padding: 5px 0; }
    .price-table td:nth-child(3) { font-weight: bold; background: #f4f4f4; padding: 10px; border-radius: 8px; text-align: center; }
    .price-table td:nth-child(3):before { content: "Стоимость: "; font-weight: normal; }

    /* ФИКС КАРТИНОК НА МОБИЛЬНОМ (Закругляем и добавляем отступы как на ПК) */
    .apple-card { height: auto !important; }
    
    .card-image-full,
    .training-img-height {
        /* Добавляем отступы, чтобы было красиво и не прилипало */
        padding: 15px 15px 0 15px !important; 
        height: auto !important;
        width: 100% !important;
        background: transparent !important;
    }

    .card-image-full img,
    .training-img-height img {
        /* ЗАКРУГЛЯЕМ ВСЕ УГЛЫ */
        border-radius: 20px !important; 
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; /* Легкая тень */
    }
    
    .card-body { padding: 20px; }
}

/* ==========================================================================
   СТИЛИ ДЛЯ БЛОКА 4 (ПРЕИМУЩЕСТВА)
   ========================================================================== */

/* 1. Сетка преимуществ */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 2. Карточка преимущества */
.benefit-card {
    background: #ffffff;
    border-radius: 24px; /* Apple Style */
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04); /* Очень мягкая тень */
    display: flex;
    align-items: flex-start; /* Выравнивание по верху */
    gap: 25px; /* Расстояние между иконкой и текстом */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

/* Эффект при наведении */
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* 3. Кружок для иконки */
.benefit-icon-wrap {
    flex-shrink: 0; /* Чтобы кружок не сплющивался */
    width: 70px;
    height: 70px;
    background-color: #FFF3E0; /* Светло-оранжевый фон под иконку */
    border-radius: 50%; /* Делаем круг */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; /* Размер эмодзи */
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05); /* Внутренняя тень для объема */
}

/* 4. Текстовая часть */
.benefit-content h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.benefit-content p {
    color: #515154;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
}

/* МОБИЛЬНАЯ ВЕРСИЯ ДЛЯ БЛОКА 4 */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }
    
    .benefit-card {
        flex-direction: column; /* Иконка сверху, текст снизу */
        align-items: center; /* Центрируем всё */
        text-align: center; /* Текст по центру */
        padding: 30px 20px;
    }
    
    .benefit-icon-wrap {
        margin-bottom: 20px; /* Отступ от иконки до текста */
        width: 80px; /* Чуть крупнее на телефоне */
        height: 80px;
        font-size: 36px;
    }
}

/* ==========================================================================
   БЛОК 5: ТАЙМЛАЙН ВИЗИТА (APPLE STYLE)
   ========================================================================== */

/* Контейнер списка */
.apple-timeline {
    position: relative;
    padding-left: 10px;
}

/* Элемент списка (Шаг) */
.timeline-item {
    display: flex;
    gap: 20px;
    padding-bottom: 40px; /* Отступ снизу */
    position: relative;
}

/* Вертикальная линия (соединяет шаги) */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px; /* Центр кружка */
    top: 40px; /* Начинается под кружком */
    bottom: 0;
    width: 2px;
    background-color: #E5E5EA; /* Apple Light Grey */
}

/* Убираем линию у последнего элемента */
.timeline-item:last-child::before {
    display: none;
}

/* Кружок с цифрой */
.timeline-marker {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #0071e3; /* Apple Blue */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    z-index: 2; /* Поверх линии */
    box-shadow: 0 0 0 4px #fff; /* Белая обводка, чтобы отделить от линии */
}

/* Текст шага */
.timeline-content h3 {
    margin: 0 0 8px 0;
    font-size: 19px;
    font-weight: 700;
    color: #1d1d1f;
}
.timeline-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #424245;
}

/* Маленькая синяя кнопка (для записи) */
.apple-small-btn {
    display: inline-block;
    background-color: #EBF4FF; /* Очень светло-синий фон */
    color: #0071e3 !important; /* Синий текст */
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.apple-small-btn:hover {
    background-color: #0071e3;
    color: #fff !important;
}

/* Плашка времени (для шага 3) */
.time-badge {
    margin-top: 10px;
    background-color: #F5F5F7;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #6e6e73;
    display: inline-block;
}

/* ==========================================================================
   БЛОК 6: ЛОКАЦИЯ (APPLE SETTINGS STYLE)
   ========================================================================== */

/* Карточка локации */
.apple-location-card {
    background: #ffffff;
    border-radius: 24px; /* Скругление Apple */
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); /* Мягкая тень */
    max-width: 800px; /* Ограничиваем ширину, чтобы не было слишком растянуто */
    margin: 0 auto; /* Центрируем */
    overflow: hidden;
    padding: 10px 0; /* Отступы сверху и снизу */
}

/* Строка с информацией */
.loc-row {
    display: flex;
    align-items: flex-start; /* Иконка сверху */
    padding: 20px 30px;
    border-bottom: 1px solid #F5F5F7; /* Тонкая линия разделителя */
    transition: background 0.2s;
}

.loc-row:last-of-type {
    border-bottom: none; /* Убираем линию у последнего элемента перед кнопкой */
}

.loc-row:hover {
    background-color: #FAFAFC; /* Легкая подсветка при наведении */
}

/* Иконка (Эмодзи) */
.loc-icon {
    font-size: 28px;
    margin-right: 20px;
    min-width: 40px; /* Фиксируем ширину, чтобы текст был ровно */
    text-align: center;
    padding-top: 2px;
}

/* Блок текста */
.loc-info {
    display: flex;
    flex-direction: column;
}

/* Заголовок (Адрес, Метро...) */
.loc-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #86868b; /* Apple Grey */
    margin-bottom: 5px;
    font-weight: 600;
}

/* Значение (Сам адрес...) */
.loc-value {
    font-size: 18px;
    color: #1d1d1f; /* Apple Black */
    font-weight: 500;
    line-height: 1.4;
}

/* Обертка для кнопки */
.loc-btn-wrapper {
    padding: 30px;
    background-color: #FAFAFC; /* Слегка серый фон внизу */
    border-top: 1px solid #eee;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .loc-row {
        padding: 15px 20px; /* Чуть меньше отступы */
    }
    .loc-icon {
        font-size: 24px;
        margin-right: 15px;
        min-width: 30px;
    }
    .loc-value {
        font-size: 16px;
    }
}

/* ==========================================================================
   БЛОК 8: ОТЗЫВЫ (APPLE REVIEWS STYLE)
   ========================================================================== */

/* Сетка отзывов */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Карточка отзыва */
.review-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Большая кавычка на фоне */
.review-quote-icon {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 120px;
    color: #f2f2f7; /* Очень светло-серый */
    font-family: serif;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

/* Звезды */
.review-stars {
    color: #FFB900; /* Яркий золотой цвет Apple */
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Текст отзыва */
.review-body {
    flex-grow: 1;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}
.review-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #424245; /* Apple Dark Grey */
    font-style: italic;
    margin: 0;
}

/* Блок автора */
.review-author {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid #f5f5f7;
    padding-top: 20px;
}

/* Аватар с буквой (Инициал) */
.author-avatar {
    width: 45px;
    height: 45px;
    background-color: #FFF3E0; /* Светло-оранжевый */
    color: #E65100; /* Темно-оранжевый текст */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 15px;
}

/* Инфо автора */
.author-info {
    display: flex;
    flex-direction: column;
}
.author-info strong {
    font-size: 16px;
    color: #1d1d1f;
    margin-bottom: 2px;
}
.author-info span {
    font-size: 13px;
    color: #86868b; /* Серый подтекст */
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }
    .review-card {
        padding: 25px;
    }
}