/* Базовые переменные - ДОРОГОЙ МИНИМАЛИЗМ С GLASSMORPHISM */
:root {
    --accent: #07d9d3;
    --accent-hover: #05b5b0;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-color: #fafbfc;
    --bg-gray: #f2f5f8;
    --photo-bg: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(7, 217, 211, 0.15);
}

/* Сброс и базовые стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Calibri', 'Trebuchet MS', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    letter-spacing: 0.3px;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ЗАГЛАВНЫЕ БУКВЫ ДЛЯ ВСЕХ ЗАГОЛОВКОВ */
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Навигация и Шапка (Glassmorphism) */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Главная секция (Hero) */
.hero {
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 64px;
    margin: 0 0 15px 0;
    line-height: 1.1;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 35px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-photo {
    flex: 1;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.hero-photo img {
    width: 100%;
    max-width: 501px;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-photo:hover img {
    transform: scale(1.02);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 15px rgba(7, 217, 211, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 20px rgba(7, 217, 211, 0.4);
}

.btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Секции */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-gray {
    background-color: var(--bg-gray);
    max-width: 100%;
}

.section-title {
    font-size: 42px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Выравнивание текста */
.text-content p {
    text-align: justify;
    margin-bottom: 1.5rem;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

.text-content ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Сетка принципов */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.principle-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.principle-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--accent);
}

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.principle-card p {
    text-align: justify;
    color: var(--text-light);
}

/* Галерея сертификатов */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cert-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}
.cert-card img {
    width: 100%;
    height: auto;
    display: block;
}
.cert-card:hover {
    transform: scale(1.03);
}

/* Карточки "С чем я не работаю" */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0 50px 0;
}

.rule-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid #ff4757;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.rule-card:hover { transform: translateY(-5px); }

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.review-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}
.review-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.review-card p {
    text-align: left;
    flex-grow: 1;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

/* Консультации */
.consultations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.consultation-card {
    background: #fff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border-left: 6px solid var(--accent);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.consultation-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.consultation-card h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.consultation-card ul {
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-light);
}

.consultation-card li {
    margin-bottom: 12px;
}

.price-block {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin: 25px 0;
    margin-top: auto;
}

/* Аккордеон (Правила работы) */
details {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 25px 0;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
details[open] {
    background: #fff;
    box-shadow: var(--shadow-soft);
}

summary {
    font-weight: 700;
    font-size: 18px;
    outline: none;
    color: var(--text-dark);
    list-style: none; /* remove default arrow */
    position: relative;
    padding-right: 30px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--accent);
    transition: transform 0.3s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

details p {
    margin-top: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Чекбокс правил */
.rules-agreement {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    margin-top: 50px;
}

.rules-agreement label {
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
    color: var(--text-dark);
}

.rules-agreement input[type="checkbox"] {
    transform: scale(1.8);
    accent-color: var(--accent);
}

/* Кнопки контактов */
.contacts-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--text-dark);
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(7, 217, 211, 0.2);
}

.contact-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    max-width: 500px;
    font-size: 18px;
    border: none;
    box-shadow: 0 8px 15px rgba(7, 217, 211, 0.3);
}

.contact-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(7, 217, 211, 0.4);
}

.contacts-grid-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.maks-note {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 15px;
    text-align: center;
    font-style: italic;
}

/* Подвал */
footer {
    background-color: var(--text-dark);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 30px;
    margin-top: auto;
    font-size: 16px;
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Выпадающий контракт в карточках */
.contract-details {
    margin-top: 20px;
    background: var(--bg-gray);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero {
        gap: 40px;
    }
    .hero-title {
        font-size: 48px;
    }
    .consultations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 80px 20px 40px;
        gap: 25px;
        z-index: 999;
        overflow-y: auto;
    }
    .menu-toggle {
        display: block;
        z-index: 1000;
        position: relative;
        color: var(--text-dark);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        margin: 40px auto;
    }
    
    .hero-photo {
        width: 100%;
        max-width: 501px;
    }

    .section-title {
        font-size: 32px;
    }

    .btn {
        width: 100%;
        padding: 16px 20px;
    }
    
    .text-content p {
        text-align: left;
    }
    .nav-group { flex-direction: column; gap: 15px; width: 100%; }
}

/* --- ��������� --- */
.nav-brand-mobile { display: none; }
.logo-desktop { text-align: center; }
.header-logo-desktop { height: 104px; display: block; margin: 0 40px; }
.header-logo-mobile { height: 70px; display: block; }
.nav-group { flex: 1; display: flex; justify-content: center; gap: 30px; align-items: center; }

/* ������� ������������� ��� ������-��������� */
.logo-desktop a::after, .nav-brand-mobile a::after {
    display: none !important;
}

.footer-content { display: flex; flex-direction: column; align-items: center; }
.footer-logo { height: 240px; margin: 30px 0; filter: brightness(0) invert(1); }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; text-transform: uppercase; margin: 0 10px; transition: color 0.3s ease; }
.footer-links a:hover { color: #fff; }

@media (max-width: 768px) {
    .nav-brand-mobile { display: block; }
    .logo-desktop { display: block; margin: 20px auto; }
    .header-logo-desktop { margin: 0 auto; height: 160px; }
}

