/* Единый графитовый фон на весь экран */
html, body {
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
    font-family: "Georgia", serif;
    color: #f2e8cf;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Контейнер для центровки контента */
.page-wrapper {
    width: 95%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    box-sizing: border-box;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* БЮРО: компактно, по ширине спирали */
.logo-title-top {
    font-size: 22px;
    letter-spacing: 10px; /* Плотнее, но с воздухом */
    text-indent: 10px;    /* Коррекция центровки */
    color: #cd7f32;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Спираль: лаконичная, 100х100 */
.spiral-svg {
    width: 100px;
    height: 100px;
    margin: 1px 0;
}

/* Нижняя надпись */
.logo-title-bottom {
    font-size: 13px;
    letter-spacing: 4px;
    color: #cd7f32;
    text-transform: uppercase;
    line-height: 1.6;
    margin-top: 5px;
}

/* Меню: возвращаем благородные линии */
nav {
    margin-top: 40px;
    mardin-bottom: 1px;
    border-top: 1px solid rgba(205, 127, 50, 0.4);
    border-bottom: 1px solid rgba(205, 127, 50, 0.4);
    padding: 15px 0;
    width: 100%;
    max-width: 700px; /* Меню теперь компактное в центре */
    display: flex;
    justify-content: center;
}

nav a {
    color: #cd7f32 !important;
    text-decoration: none !important;
    margin: 0 15px;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

blockquote {
    /* Отступы снаружи (сверху и снизу от остального текста) */
    margin: 40px auto; 
    
    /* Внутренние отступы (между текстом и линиями) — делаем их минимальными */
    padding: 10px 0; 
    
    border-top: 1px solid rgba(205, 127, 50, 0.6);
    border-bottom: 1px solid rgba(205, 127, 50, 0.6);
    max-width: 700px;
    text-align: center;
}

blockquote p {
    /* ОБНУЛЯЕМ все отступы текста внутри, чтобы они не раздували рамку */
    margin: 0 !important; 
    padding: 0 !important;
    
    font-style: italic;
    font-size: 19px;
    color: #cd7f32;
    line-height: 1.5; /* Плотная межстрочка */
    text-indent: 0 !important; /* Убираем красную строку */
}

/* /* --- ОСНОВНОЙ ТЕКСТ --- */
.main-content {
    max-width: 750px;       /* Оптимальная ширина для чтения */
    margin-top: 30px !important;      /* Отступы сверху и снизу */
    margin-bottom: 20px auto; 
    text-align: justify;    /* Выравнивание по ширине (как в книге) */
    line-height: 1.7;       /* Простор между строками */
    letter-spacing: 0.5px;  /* Легкость текста */
    color: #f2e8cf;         /* Светло-кремовый цвет */
}

/* Оформление абзацев внутри контента */
.main-content p {
    margin-bottom: 25px;
}

/* --- ЗАГОЛОВКИ --- */
h2 {
    color: #cd7f32;         /* Бронза */
    font-weight: normal;
    font-size: 28px;        /* Благородный размер */
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 1px;
    margin-bottom: 30px;
}

h3 {
    color: #cd7f32;
    font-weight: normal;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 30px;

}

/* Контейнер для кнопки, чтобы были отступы сверху и снизу */
.appointment-area {
    margin: 30px auto;
    text-align: center;
}

.appointment-area p {
    text-align: center !important; /* Центрируем текст над кнопкой */
    text-indent: 0 !important;   /* Убираем красную строку, если она есть */
    margin-bottom: 20px;
    font-style: italic;
    color: rgba(242, 232, 207, 0.8); /* Чуть приглушенный цвет текста */
}

/* Сама кнопка */
.cta-button {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid #cd7f32; /* Тонкая бронзовая рамка */
    color: #cd7f32 !important;  /* Принудительно бронзовый цвет текста */
    text-decoration: none !important; /* Убираем подчеркивание */
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 4px;
    transition: all 0.4s ease; /* Плавная анимация при наведении */
}

/* Эффект при наведении мышки */
.cta-button:hover {
    background-color: #cd7f32; /* Кнопка заливается бронзой */
    color: #1a1a1a !important;  /* Текст становится темным (графитовым) */
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.3); /* Легкое свечение */
}

footer {
    width: 100%;
    max-width: 800px;
    margin: 80px auto 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Тонкая линия-разделитель */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(205, 127, 50, 0.5), transparent);
    margin-bottom: 40px;
}

/* Иконка Телеграм */
.tg-icon-link {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-bottom: 25px;
}

.tg-svg {
    width: 30px; /* Размер иконки */
    height: 30px;
    fill: #cd7f32; /* Цвет бронзы */
}

.tg-icon-link:hover {
    transform: scale(1.1); /* Легкое увеличение при наведении */
}

.tg-icon-link:hover .tg-svg {
    fill: #f2e8cf; /* Иконка светлеет при наведении */
}

/* Адрес сайта */
.footer-email {
    margin-bottom: 15px;
}

.footer-email a {
    color: #cd7f32;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 5px; /* Большой разлет букв как в логотипе */
    font-weight: normal;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(205, 127, 50, 0.2);
    padding-bottom: 2px;
}

.footer-email a:hover {
    color: #f2e8cf;
    border-bottom: 1px solid #f2e8cf;
}

/* Копирайт */
.footer-copyright {
    color: rgba(242, 232, 207, 0.5);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.offer-link {
    color: #cd7f23 !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(205, 127, 50, 0.4);
    translation; all 0.3s else;
}

.offer-link:hover {
    color: #f2e8cf !important;
    border-bottom: 1px solid #f2e8cf;
}

@media (max-width: 768px) {
    /* Эти правила сработают ТОЛЬКО на телефонах */
    
    /* Делаем так, чтобы БЮРО и текст не прилипали к краям */
    .page-wrapper {
        padding: 40px 15px !important;
    }

    /* На телефоне меню в один ряд не влезает, пустим его в столбик */
    nav {
        flex-direction: column !important;
        gap: 15px;
    }

    /* Уменьшим разлет букв в БЮРО, чтобы слово не разрывало экран телефона */
    .logo-title-top {
        letter-spacing: 10px !important;
        text-indent: 10px !important;
        font-size: 20px !important;
    }

    /* Чтобы длинные заголовки на телефоне не уезжали вправо */
    h2, h3 {
        font-size: 20px !important;
        word-wrap: break-word;
    }
}