/*
Theme Name: Margarita Studio
Theme URI: https://margarita-studio.ru
Author: Маргарита Степанова
Description: Современная минималистичная тема для студии красоты
Version: 2.0.0
Text Domain: margarita-studio
*/

/* ======================================== */
/* ИМПОРТ ШРИФТОВ */
/* ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;400;500;600;700&display=swap');

/* ======================================== */
/* ПЕРЕМЕННЫЕ */
/* ======================================== */
:root {
    --bg: #FFFFFF;
    --bg-alt: #F7F7F9;
    --text: #1A1A1A;
    --text-light: #6B6B6B;
    --border: #EAEAEF;
    --accent: #000000;
    --card: #FFFFFF;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

body.dark-mode {
    --bg: #0A0A0A;
    --bg-alt: #111111;
    --text: #EDEDED;
    --text-light: #888888;
    --border: #222222;
    --accent: #FFFFFF;
    --card: #111111;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.large-text {
    font-size: 18px;
}
body.large-text h1 {
    font-size: clamp(52px, 9vw, 96px);
}
body.large-text h2 {
    font-size: clamp(36px, 6vw, 60px);
}
body.large-text h3 {
    font-size: 22px;
}
body.large-text p {
    font-size: 18px;
}

/* ======================================== */
/* RESET & БАЗА */
/* ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MyCustomFont2', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (min-width: 768px) {
.site-main {
    width: 1140px;
    margin: auto;
}}

/* ======================================== */
/* ТИПОГРАФИКА */
/* ======================================== */
h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(44px, 7vw, 80px);
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: 'MyCustomFont', sans-serif;
}

h1 .accent {
    font-weight: 400;
    color: var(--text-light);
    display: block;
}

h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    font-family: 'MyCustomFont', sans-serif;
    text-align: left;
    color: #000000;
    line-height: 40px;
}
/* ===== СТИЛИ ДЛЯ СТАТЕЙ (БЛОГ) ===== */
.single-news .entry-content h2,
.single-news h2 {
    font-size: 28px !important;
    font-weight: 600 !important;
    margin-top: 35px !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
    color: #2D1B2E !important;
}

.single-news .entry-content h3,
.single-news h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    color: #2D1B2E !important;
}

.single-news .entry-content h4,
.single-news h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
    color: #444 !important;
}

.single-news .entry-content p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
    color: #333 !important;
}

.single-news .entry-content ul,
.single-news .entry-content ol {
    margin-bottom: 20px !important;
    padding-left: 25px !important;
}

.single-news .entry-content li {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 8px !important;
}

/* Таблицы в статьях */
.single-news table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    background: #fff;
}

.single-news th,
.single-news td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.single-news th {
    background: #f5f0f1;
    font-weight: bold;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    font-family: 'MyCustomFont', sans-serif;
}

/* ======================================== */
/* КНОПКИ */
/* ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'MyCustomFont2', sans-serif;
    text-decoration: none !important;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: #000;
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

/* ======================================== */
/* ШАПКА (header) */
/* ======================================== */
.header {
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
    transition: transform 0.4s ease, background 0.3s;
}

body.dark-mode .header {
    background: rgba(10, 10, 10, 0.8);
}

.header.hide {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 0px;
    display: flex;
    flex-direction: column;
}

.header-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.header-row-bottom {
    width: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    font-family: 'MyCustomFont', sans-serif;
    -webkit-text-stroke: 0.8px;
}

.logo span {
    font-size: 20px;
    font-weight: 400;
    color: #adadad;
    display: block;
}

.nav-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-wrapper::-webkit-scrollbar {
    height: 2px;
}

.nav {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    min-width: min-content;
}

.nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.nav a:hover {
    opacity: 0.6;
}

/* ======================================== */
/* HERO БЛОК (главный баннер) */
/* ======================================== */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 665px;
}
@media (max-width: 768px) {
    .hero {
        margin-top: 0px;
        min-height: auto;
        background-position: 60% !important;
    }
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 60px;
    background: linear-gradient(to top, #000000d9, #c9d1ff00);
}
.hero-content h1,
.hero-content p {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-buttons .btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}
.hero-buttons .btn-primary:hover {
    background: transparent;
    color: #fff;
}
.hero-buttons .btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.hero-buttons .btn-outline:hover {
    background: #fff;
    color: #000;
}

/* ======================================== */
/* УСЛУГИ (services) */
/* ======================================== */
.services {
    padding: 100px 0;
}
.section-center {
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 28px;
    text-align: center;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    color: #fff;
    justify-content: space-between;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    border-radius: 24px;
    z-index: 1;
}
.service-card > * {
    position: relative;
    z-index: 2;
}
.skrol {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-direction: row;
    justify-content: space-between;
    padding: 5px;
    padding-top: 30px;
}
.service-card h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}
.service-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}
.service-price {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    padding: 6px 16px;
    border-radius: 40px;
    margin: 0 auto;
    align-items: center;
    width: -webkit-fill-available;
    justify-content: center;
}

/* ======================================== */
/* О МАСТЕРЕ (about) */
/* ======================================== */
.about {
    padding: 100px 0 200px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 32px;
}
.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 18px;
}
.about-stats {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: solid 1px #d1d1d1;
    padding: 10px;
    border-radius: 25px;
    background: #f7f7f7;
}
.stat-number {
    font-size: 36px;
    font-weight: 600;
    font-family: 'MyCustomFont', sans-serif;
    -webkit-text-stroke: 1.2px;
}
.stat-label {
    font-size: 15px;
    color: var(--text-light);
}

/* ======================================== */
/* ПОРТФОЛИО (portfolio) */
/* ======================================== */
.portfolio {
    padding: 150px 0 150px 0;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.portfolio-item {
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
}
.portfolio-overlay span {
    color: white;
    font-size: 17px;
    font-weight: 500;
}

/* ======================================== */
/* ПРЕИМУЩЕСТВА (benefits) */
/* ======================================== */
.benefits {
    padding: 100px 0;
    background: #b8bac3;
    color: var(--bg);
}
.benefits {
    align-items: center;
        position: relative;
        background-size: cover;
        background-position: bottom;
        background-repeat: no-repeat;
        width: 100%;
        margin: 0;
}
.benefits h2 {
    color: var(--bg);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    padding: 0 30px;
}
.benefit-icon {
    font-size: 36px;
    margin-bottom: 16px;
    opacity: 0.8;
}
.benefit-item {
    border: solid 1px #ffffff;
    border-radius: 25px;
    padding: 20px;
    background: #000000b8;
}
.benefit-item h3 {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--bg);
}
.benefit-item p {
    font-size: 16px;
    opacity: 0.7;
    color: var(--bg);
}

/* ======================================== */
/* ОТЗЫВЫ (reviews) */
/* ======================================== */
.reviews-section {
    padding: 100px 0;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.review-card {
    background: var(--card);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.review-card:hover {
    transform: translateY(-4px);
}
.review-stars {
    color: #FFB800;
    font-size: 18px;
    margin-bottom: 16px;
}
.review-text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
}
.review-author {
    font-weight: 600;
    font-size: 20px;
}
.review-service {
    font-size: 15px;
    color: var(--text-light);
}
.reviews-footer {
    text-align: center;
    margin-top: 40px;
}

/* ======================================== */
/* КОНТАКТЫ (contacts) */
/* ======================================== */
.contacts {
    padding: 100px 0;
    background: var(--bg-alt);
}
.zag {
    color: #fff;
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}
.contact-item {
    background: var(--card);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
}
.contact-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    -webkit-text-stroke: 0.9px;
}
.contact-item p,
.contact-item a {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: none;
}
.contact-item a:hover {
    color: var(--text);
}

/* ======================================== */
/* ПОДВАЛ (footer) */
/* ======================================== */
.footer {
    padding: 48px 0 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 32px;
}
.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    padding: 15px;
    border: solid 1px #bfbfbf;
    border-radius: 25px;
}
.social-links a:hover {
    color: var(--text) !important;
}
.footer p {
    font-size: 12px;
    color: var(--text-light);
}
.ggs {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.ggs-img {
    width: 80px;
}
.ggs-text {
    font-size: 15px !important;
}

/* ======================================== */
/* АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ */
/* ======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    .hero-grid {
        padding: 0 40px;
    }
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======================================== */
/* МОБИЛЬНАЯ ВЕРСИЯ */
/* ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 0px;
    }
    .hero-grid {
        padding: 0 24px;
    }
    .header-inner {
        padding: 0;
    }
    .logo {
        font-size: 26px;
        padding: 15px;
    }
    .nav a {
        font-size: 18px;
        padding: 5px 15px;
        border: solid 1px #515151;
        border-radius: 25px;
        margin-bottom: 10px;
    }
    .hero {
        margin-top: 0px;
        /* фон теперь задаётся через инлайн-стиль в блоке */
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        padding: 40px 20px;
    }
    h1 {
        font-size: 36px;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 5px 10px;
    }
    .services {
        padding: 60px 0;
    }
    .services-grid,
    .portfolio-grid,
    .benefits-grid,
    .reviews-grid,
    .contacts-grid {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 24px 20px 24px;
    }
    .service-card,
    .portfolio-item,
    .benefit-item,
    .review-card,
    .contact-item {
        flex: 0 0 290px;
    }
    .portfolio-item {
        flex: 0 0 200px;
    }
    .benefit-item {
        flex: 0 0 200px;
    }
    .review-card {
        flex: 0 0 280px;
    }
    .contact-item {
        flex: 0 0 220px;
    }
    .about {
        padding: 60px 20px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    .skrol {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        flex-direction: row;
        justify-content: space-between;
    }
    /* фоны для секций удалены – они будут задаваться через inline или через админку */
    .benefits {
        background: var(--accent); /* просто цвет */
    }
    .contacts {
        background: var(--bg-alt);
    }
}

/* ======================================== */
/* ДОПОЛНИТЕЛЬНО: шрифты и обводки */
/* ======================================== */
@font-face {
    font-family: 'MyCustomFont';
    src: url('/wp-content/uploads/2026/03/LinotypeSyntaxCom-Regular-1.ttf') format('truetype');
}
/* Убираем дублирующийся body с другим шрифтом */

@font-face {
    font-family: 'MyCustomFont2';
    src: url('/wp-content/uploads/2026/03/XO_Oriel_CN_Nu.ttf') format('truetype');
}
.texta {
    font-size: 20px;
    margin-block-end: .9rem;
}
a:active, a:hover {
    color: #000 !important;
}
.wait {
    color: #aaa !important;
    border: solid 1px #aaa;
}
.wait:hover {
    color: #aaa !important;
}
.color-wait {
    color: #aaa;
}
.hero-content p, .service-card p, .review-text, .about-content p {
    white-space: pre-line;
}
@media (max-width: 768px) {
h2 {
    padding: 0% 5%;
    
}}
/* ======================================== */
/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦ УСЛУГ */
/* ======================================== */

.single-service-page {
    padding-top: 100px;
}
.service-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 60px;
}
.service-hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
}
.accent-text {
    color: #e0e0e0;
}
.service-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.service-hero-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}
.hero-price, .hero-time {
    font-size: 20px;
    font-weight: 500;
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 40px;
}
.btn-hero {
    background: #fff;
    color: #000;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
}
.service-description {
    padding: 60px 20px;
}
.description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.description-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.description-text p {
    color: var(--text-light, #6B6B6B);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 18px;
}
.description-features {
    background: var(--bg-alt, #F7F7F9);
    padding: 32px;
    border-radius: 24px;
}
.description-features h3 {
    font-size: 20px;
    margin-bottom: 20px;
}
.description-features ul {
    list-style: none;
    padding: 0;
    font-size: 18px;
}
.description-features li {
    margin-bottom: 12px;
    color: var(--text-light, #6B6B6B);
}
.procedure-steps {
    padding: 60px 0;
    background: var(--bg-alt, #F7F7F9);
}
.procedure-steps h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 32px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.step-card {
    text-align: center;
    padding: 32px;
    background: var(--card, #FFFFFF);
    border-radius: 24px;
    border: 1px solid var(--border, #EAEAEF);
}
.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent, #000);
    opacity: 0.3;
    font-family: 'MyCustomFont', serif;
}
.step-card h3 {
    font-size: 20px;
    margin: 16px 0 12px;
}
.step-card p {
    color: var(--text-light, #6B6B6B);
    font-size: 16px;
    line-height: 1.6;
}
.parameters-section {
    padding: 60px 0;
}
.parameters-section h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 32px;
}
.parameters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.param-card {
    text-align: center;
    padding: 15px;
    background: #f7f7f9;
    border-radius: 24px;
    border: 1px solid var(--border, #EAEAEF);
}
.param-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}
.param-card p {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}
.param-note {
    font-size: 16px;
    color: var(--text-light, #6B6B6B);
}
.prices-section {
    padding: 60px 0;
}
.prices-section h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 32px;
}
.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.price-card {
    text-align: center;
    background: #f7f7f9;
    padding: 15px;
    border-radius: 24px;
    border: 1px solid var(--border, #EAEAEF);
}
.price-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}
.price-card .price {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent, #000);
}
.price-note {
    font-size: 16px;
    color: var(--text-light, #6B6B6B);
}
.aftercare-section {
    padding: 60px 0;
    background: var(--bg-alt, #F7F7F9);
}
.aftercare-section h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 32px;
}
.aftercare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 30px;
}
.aftercare-item {
    background: var(--card, #FFFFFF);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border, #EAEAEF);
}
.aftercare-item h3 {
    font-size: 24px;
    margin-bottom: 20px;
}
.aftercare-item ul {
    list-style: none;
    padding: 0;
}
.aftercare-item li {
    margin-bottom: 12px;
    color: var(--text-light, #6B6B6B);
}
.aftercare-note {
    text-align: center;
    font-size: 16px;
    color: var(--text-light, #6B6B6B);
    max-width: 600px;
    margin: 0 auto;
}
.gallery-section {
    padding: 60px 0;
    background: var(--bg-alt, #F7F7F9);
}
.gallery-section h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 32px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 24px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.advantages-section {
    padding: 60px 0;
}
.advantages-section h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 32px;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.advantage-item {
    text-align: center;
    padding: 24px;
    background: #f7f7f9;
    border-radius: 24px;
    border: 1px solid var(--border, #EAEAEF);
}
.advantage-icon {
    font-size: 40px;
    margin-bottom: 16px;
}
.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.advantage-item p {
    font-size: 16px;
    color: var(--text-light, #6B6B6B);
    line-height: 1.6;
}
.faq-section {
    padding: 60px 0;
    background: var(--bg-alt, #F7F7F9);
}
.faq-section h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 32px;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--card, #FFFFFF);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border, #EAEAEF);
}
.faq-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}
.faq-item p {
    color: var(--text-light, #6B6B6B);
    font-size: 14px;
    line-height: 1.6;
}
.contacts-section {
    padding: 60px 0;
    background: var(--bg-alt, #F7F7F9);
}
.contacts-section h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 32px;
}
.contacts-section .contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.contacts-section .contact-item {
    background: var(--card, #FFFFFF);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border, #EAEAEF);
}
.contacts-section .contact-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}
.contacts-section .contact-item p,
.contacts-section .contact-item a {
    color: var(--text-light, #6B6B6B);
    text-decoration: none;
    font-size: 16px;
}
.contacts-section .contact-item a:hover {
    color: var(--text, #1A1A1A);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .steps-grid,
    .parameters-grid,
    .advantages-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .description-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .prices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacts-section .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .single-service-page {
        padding-top: 80px;
    }
    .service-hero {
        padding: 50px 0;
    }
    .service-hero-content h1 {
        font-size: 36px;
    }
    .service-subtitle {
        font-size: 16px;
    }
    .service-hero-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .steps-grid,
    .parameters-grid,
    .advantages-grid,
    .gallery-grid,
    .prices-grid,
    .faq-grid,
    .contacts-section .contacts-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 20px;
        grid-template-columns: none;
    }
    .step-card, .param-card, .advantage-item, .gallery-item, .price-card, .faq-item, .contact-item {
        flex: 0 0 260px;
        min-width: 240px;
    }
    .description-grid {
        display: block;
    }
    .aftercare-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
    }
    .aftercare-item {
        flex: 0 0 280px;
        min-width: 260px;
    }
}
.hero-stories {
    margin-top: 30px;
}
.hero-stories .stories-list {
    justify-content: center;
}
@media (max-width: 768px) {
    .hero-stories .story-circle {
        width: 140px;
        height: 140px;
    }
}
.privacy-policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: inherit;
    line-height: 1.6;
}
.privacy-policy-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
}
.privacy-policy-container h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #0a2f6c;
}
.privacy-policy-container p {
    margin-bottom: 15px;
}
.privacy-policy-container a {
    color: #0a2f6c;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .privacy-policy-container {
        padding: 20px;
    }
    .privacy-policy-container h1 {
        font-size: 28px;
    }
    .privacy-policy-container h2 {
        font-size: 20px;
    }
}
.privacy-policy-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
}
.privacy-policy-container h2 {
    font-size: 22px;
    margin: 25px 0 12px;
    color: #0a2f6c;
}
/* Стили для заголовков в блоке Услуги */
.services .container.section-center {
    text-align: center;
}

.services .services-category-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 600;
    color: #2D1B2E;
}

.services .services-category-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Отступы для карточек */
.services .services-grid {
    margin-top: 20px;
}
/* Стиль для кнопки Услуги в футере */
/* Кнопка Услуги в футере — изумрудная */
.services-btn-footer {
    display: inline-block;
    background: #0F766E;
    color: white;
    padding: 10px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
}

.services-btn-footer:hover {
    background: #0D5D56;
    transform: translateY(-2px);
    color: white;
}
/* Исправление для кнопки Записаться */
.btn-primary,
.btn.btn-primary,
a.btn-primary {
    background: #E8B4B8 !important;
    color: #1A1A2E !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
a.btn-primary:hover {
    background: #d4a0a4 !important;
    color: #1A1A2E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(232, 180, 184, 0.4) !important;
}

/* Если кнопка с outline (пустая) */
.btn-outline,
.btn.btn-outline {
    background: transparent !important;
    color: #E8B4B8 !important;
    border: 2px solid #E8B4B8 !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.btn-outline:hover,
.btn.btn-outline:hover {
    background: #E8B4B8 !important;
    color: #1A1A2E !important;
    transform: translateY(-2px) !important;
}
/* Исправление для фона в блоке Герой услуги */
.service-hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 400px;
}
.yandex-reviews-section {
    padding: 60px 20px;
    background: #f9f5f6;
}
.yandex-reviews-section .section-title {
    font-size: 32px;
    color: #2D1B2E;
}
@media (max-width: 768px) {
    .yandex-reviews-section iframe {
        height: 600px !important;
    }
}
.contacts-detailed {
    padding: 60px 20px;
    background: #ffffff;
}
.contacts-grid-detailed {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.contacts-info-detailed h2 {
    margin-bottom: 30px;
    color: #2D1B2E;
}
.contact-item-detailed {
    display: flex;
    gap: 16px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.contact-icon-detailed {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
}
.contact-item-detailed strong {
    display: block;
    color: #2D1B2E;
    font-weight: 600;
}
.contact-item-detailed p {
    margin-top: 4px;
    color: #555;
}
.contact-item-detailed a {
    color: #E8B4B8;
    text-decoration: none;
}
.contact-item-detailed a:hover {
    text-decoration: underline;
}
.contacts-map-detailed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .contacts-grid-detailed {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contacts-map-detailed iframe {
        height: 280px;
    }
}
.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.btn-outline:hover {
    background: #E8B4B8;
    color: #1A1A2E !important;
}
@media (max-width: 768px) {
    .groups-grid {
        grid-template-columns: 1fr !important;
    }
}