/*
 * Main Stylesheet for Postural Training Club
 * Version: 1.0
 * Last Updated: 2025-04-04
 * Author: Postural Training Club Team
 */

/* Base styles based on the original design with theme-specific enhancements */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f6f8fa; /* Lighter background for better readability */
    margin: 0;
    padding: 0;
}

/* Container for content */
.container {
    max-width: 1000px; /* Wider container for better layout */
    margin: 0 auto;
    padding: 30px 40px;
    background-color: #ffffff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-top: 0;
}

h1 {
    font-size: 2.2em;
    color: #fff;
    margin-bottom: 0.3em;
    text-align: center;
    font-weight: 600;
}

h2 {
    font-size: 1.6em;
    color: #34495e;
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.4em;
    font-weight: 500;
}

h3 {
    font-size: 1.3em;
    color: #3a5573;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 500;
}

/* Paragraph and text */
p {
    margin-bottom: 1.1em;
    text-align: justify;
    hyphens: auto;
}

strong, b {
    font-weight: 600;
    color: #000;
}

/* Lists */
ul, ol {
    margin-top: 0.5em;
    margin-bottom: 1.1em;
    padding-left: 1.8em;
}

li {
    margin-bottom: 0.6em;
    text-align: justify;
    hyphens: auto;
}

li:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Header Styling */
.page-header {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    padding: 40px 0 30px;
    margin-bottom: 0;
    text-align: center;
    position: relative;
}

.page-header .container {
    background: transparent;
    box-shadow: none;
    padding-bottom: 10px;
}

.page-header h1 {
    margin-top: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.page-header h2 {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: -0.2em;
    margin-bottom: 1em;
    font-weight: normal;
    border-bottom: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Logo placeholder */
.logo-placeholder {
    margin: 0 auto 15px;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.temp-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: white;
    letter-spacing: 1px;
}

/* Metadata styling */
.metadata {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 1em;
    line-height: 1.4;
}

/* Navigation */
.main-nav {
    background-color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.main-nav .container {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    margin: 0;
    text-align: center;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.main-nav a.active {
    background-color: #3498db;
    color: white;
}

/* Main content styling */
.page-content {
    padding: 20px 0 50px;
}

/* Table of contents */

/* Улучшенная навигация - оглавление */
.toc-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.toc-section h2 {
    margin-top: 0;
    font-size: 1.3em;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.toc ul {
    column-width: 300px;
    column-gap: 30px;
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 10px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.toc a {
    color: #3498db;
    text-decoration: none;
    display: inline-block;
    padding: 3px 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.toc a:hover {
    background-color: #e1f0fa;
    color: #2980b9;
    text-decoration: none;
}

/* Навигация верхнего уровня */
.main-nav {
    background-color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    margin: 0;
    text-align: center;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.main-nav a.active {
    background-color: #3498db;
    color: white;
}

/* Секции и якоря */
section {
    scroll-margin-top: 70px; /* Отступ при переходе по якорю */
}

/* Вернуться к содержанию */
.back-to-toc {
    text-align: right;
    font-size: 0.9em;
    margin-top: 20px;
}

.back-to-toc a {
    color: #7f8c8d;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.back-to-toc a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

@media (max-width: 768px) {
    .toc ul {
        column-width: auto;
        columns: 1;
    }
}


/* Back to top links */
.back-to-toc {
    text-align: right;
    font-size: 0.9em;
    margin-top: 20px;
}

.back-to-toc a {
    color: #7f8c8d;
}

/* Summary note for short offer */
.summary-note {
    background-color: #e1f5fe;
    border-left: 4px solid #03a9f4;
    padding: 15px 20px;
    margin: 0 0 30px;
    border-radius: 4px;
}

.summary-note p {
    margin: 0;
}

/* Key points for short offer */
.key-point {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.key-point:last-child {
    border-bottom: none;
}

.key-point h3 {
    color: #34495e;
    margin-bottom: 10px;
}

/* Full offer link */
.full-offer-link {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}

.full-offer-link p {
    margin-bottom: 15px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}

.btn-primary {
    background-color: #3498db;
    padding: 12px 25px;
    font-size: 1.05em;
}

/* Home page document cards */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.document-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.document-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.document-card p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.document-card .btn {
    width: 100%;
}

/* Welcome section */
.welcome-section {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-section h2 {
    margin-top: 0;
}

.welcome-section p {
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

/* Additional info */
.additional-info {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.additional-info h2 {
    margin-top: 0;
}

/* Club rules styling */
.rule-item {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.rule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rules-section {
    margin-bottom: 40px;
}

.rules-section h2 {
    margin-top: 40px;
    color: #2c3e50;
    border-bottom: 2px solid #e8ebed;
}

.rules-section:first-of-type h2 {
    margin-top: 0;
}

/* Contact section */
.contact-section {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.contact-section h2 {
    margin-top: 0;
}

.contact-section a {
    font-weight: 500;
}

/* Personal data agreement styling */
.signature-block {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.signature-block p {
    margin-bottom: 15px;
}

.signature-block .note {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

/* Requisites styling */
.requisites {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
    font-style: normal;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

/* Footer */

/* Стили для контейнера внутри футера */
.footer-container {
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    padding: 15px 40px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.page-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 50px;
}

.page-footer p {
    margin: 5px 0;
    text-align: center;
    font-size: 0.9em;
}

.page-footer a {
    color: #3498db;
}

/* Медиа-запросы для футера */
@media (max-width: 768px) {
    .footer-container {
        padding: 15px 25px !important;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 10px 20px !important;
    }
}


/* Responsiveness */
@media (max-width: 992px) {
    .container {
        padding: 25px 30px;
    }

    .toc ul {
        column-width: auto;
        columns: 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 25px;
    }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.4em; }

    .page-header h2 { font-size: 1em; }

    .main-nav a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .toc ul {
        columns: 1;
    }
}

@media (max-width: 576px) {
    body { padding: 0; }

    .container {
        margin: 0;
        padding: 15px 20px;
        border-radius: 0;
    }

    .page-header {
        padding: 30px 0 20px;
    }

    h1 { font-size: 1.6em; }
    h2 { font-size: 1.3em; }
    h3 { font-size: 1.15em; }

    p, li {
        text-align: left;
        hyphens: none;
    }

    ul, ol { padding-left: 1.2em; }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .toc-section {
        padding: 15px;
    }

    .logo-placeholder {
        width: 60px;
        height: 60px;
    }

    .temp-logo {
        font-size: 20px;
    }
}


/* Document metadata styling */
.document-metadata {
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 2em;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 1.5em;
    line-height: 1.4;
}


/* Telegram Bot Section Styles */
.telegram-bot-section {
    margin: 40px 0;
    padding: 0;
}

.telegram-bot-container {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
}

.telegram-icon {
    margin-right: 25px;
    flex-shrink: 0;
}

.telegram-bot-content {
    flex: 1;
}

.telegram-bot-content h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.telegram-bot-content p {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 1.05em;
    text-align: left;
    hyphens: none;
}

.btn-telegram {
    background-color: #26A5E4;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-telegram:hover {
    background-color: #2094d1;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.telegram-btn-icon {
    display: inline-flex;
    margin-right: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .telegram-bot-container {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .telegram-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .telegram-bot-content p {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .telegram-bot-section {
        margin: 30px 0;
    }

    .telegram-bot-container {
        padding: 20px 15px;
    }

    .telegram-bot-content h3 {
        font-size: 1.3em;
    }

    .telegram-bot-content p {
        font-size: 1em;
    }

    .btn-telegram {
        width: 100%;
        justify-content: center;
    }
}

/* Добавленные стили для центрирования и уменьшения блока телеграм-бота */
.centered-telegram-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centered-telegram-section .telegram-bot-container {
    width: 70%; /* Уменьшение ширины блока */
    max-width: 800px; /* Максимальная ширина */
    min-width: 300px; /* Минимальная ширина */
}

/* Медиа-запрос для адаптивности */
@media (max-width: 768px) {
    .centered-telegram-section .telegram-bot-container {
        width: 90%; /* Немного больше ширины на мобильных устройствах */
    }
}
