/* ==========================================================================
   1. СБРОС И ОСНОВНЫЕ НАСТРОЙКИ (Variables & Base)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

:root {
    --deep-blue: #264653;
    --soft-green: #8BA88E;
    --bg-light: #F9FAFA;
    --text-dark: #333333;
    --text-muted: #555555;
    --white: #FFFFFF;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    color: var(--deep-blue);
    font-weight: 600;
}

a {
    color: var(--deep-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--soft-green);
}

section {
    padding: 60px 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. ШАПКА И ЛОГОТИП (Header & Logo)
   ========================================================================== */
header {
    background-color: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Стили логотипа с монограммой */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-monogram {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo-brand:hover .logo-monogram {
    transform: scale(1.06);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Навигационное меню (Desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.nav-links a {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    padding: 4px 6px;
}

/* ==========================================================================
   3. КНОПКИ (Buttons)
   ========================================================================== */
.btn {
    display: inline-block;
    background-color: var(--soft-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    background-color: var(--deep-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(38, 70, 83, 0.25);
}

/* ==========================================================================
   4. ГЛАВНЫЙ БЛОК (Hero Section)
   ========================================================================== */
.hero {
    background-color: var(--deep-blue);
    color: var(--white);
    text-align: center;
    padding: 35px 20px 50px;
}

.hero h1 {
    color: var(--white);
    font-size: 2.6rem;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    display: block;
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 10px;
    color: #d1d5db;
    letter-spacing: 0.5px;
}

.hero-text {
    max-width: 680px;
    margin: 25px auto 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 10px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.video-subtitle {
    font-style: italic;
    max-width: 700px;
    margin: 20px auto;
    color: #d1d5db;
}

/* ==========================================================================
   5. СЕКЦИИ И КАРТОЧКИ (Cards, Lists & Requests)
   ========================================================================== */
ul.custom-list {
    list-style: none;
    padding-left: 0;
}

ul.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

ul.custom-list li::before {
    content: '⁃';
    position: absolute;
    left: 0;
    color: var(--soft-green);
    font-weight: bold;
}

.requests-section {
    padding: 40px 20px;
}

.requests-intro {
    max-width: 800px;
    margin: 0 0 25px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a4a4a;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    align-items: start; /* Изменено с stretch на start для корректного раскрытия карточек */
}

.card {
    background: #fdfbf7;
    border: 1px solid #e8e2d8;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--soft-green);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.card h3 {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: #264653;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
    border-bottom: 2px solid #8BA88E;
    padding-bottom: 8px;
}

.card .custom-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #333333;
}

.card .custom-list li:last-child {
    margin-bottom: 0;
}

.card .custom-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #8BA88E;
    font-size: 1.1rem;
    line-height: 1;
}

.card .custom-list strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Дополнение: Специфичные стили для раскрывающихся карточек (details.card)
   -------------------------------------------------------------------------- */
details.card {
    cursor: pointer;
}

/* Шапка карточки */
details.card summary.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Убираем дефолтную стрелку браузера */
    user-select: none;
}

details.card summary.card-header::-webkit-details-marker {
    display: none;
}

/* Убираем подчеркивание и нижний отступ у H3 в закрытой карточке */
details.card summary.card-header h3 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Разделительная линия и появление списка при открытии */
details.card[open] .custom-list {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e8e2d8;
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6. РАСКРЫВАЮЩИЕСЯ БЛОКИ FAQ И ПОДХОДЫ (Details)
   ========================================================================== */
details {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

details[open] {
    background-color: #F0F4F2;
}

summary {
    padding: 20px;
    font-weight: 600;
    font-family: 'Lora', serif;
    color: var(--deep-blue);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    color: var(--soft-green);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.details-content {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
}

/* ==========================================================================
   7. ЦЕНЫ И ФУТЕР (Price, Footer & Floating Button)
   ========================================================================== */
.price-block {
    background: var(--white);
    border: 2px solid var(--soft-green);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.price-block .amount {
    font-size: 3rem;
    font-family: 'Lora', serif;
    color: var(--deep-blue);
    margin: 20px 0;
}

footer {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 40px 0;
}

footer a {
    color: var(--soft-green);
}

footer .legal-links {
    margin-top: 20px;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--soft-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-chat-btn:hover {
    background-color: var(--deep-blue);
    transform: scale(1.05);
    color: var(--white);
}

.floating-chat-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* ==========================================================================
   8. МОБИЛЬНАЯ АДАПТАЦИЯ (Media Queries)
   ========================================================================== */
@media (max-width: 768px) {
    .menu-icon {
        display: block !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
        gap: 15px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 8px 0;
    }

    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }
}
/* ==========================================================================
   Стили для блока «Обо мне» (About Block)
   ========================================================================== */
.about-card {
    background: #fdfbf7;
    border: 1px solid #e8e2d8;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.about-greeting {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: var(--deep-blue);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.about-card p:last-of-type {
    margin-bottom: 30px;
}

.about-features-title {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--deep-blue);
    margin-top: 30px;
    margin-bottom: 18px;
    font-weight: 600;
}

.about-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-features-list li {
    background: var(--white);
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid var(--soft-green);
    font-size: 0.9rem;
    line-height: 1.55;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.about-features-list li strong {
    color: var(--deep-blue);
}

/* Адаптируем отступы для мобильных устройств */
@media (max-width: 768px) {
    .about-card {
        padding: 25px 18px;
    }
}
