.guidelines-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Контент с условиями */
.submission-terms-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.terms-section {
    padding: 2.5rem;
}

.terms-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #007bff;
    position: relative;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #17a2b8);
    border-radius: 2px;
}

/* Форматирование текста условий */
.terms-text {
    color: #495057;
    line-height: 1.8;
    font-size: 1.05rem;
    word-wrap: break-word;
}

.terms-text h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid #17a2b8;
    position: relative;
}

.terms-text h3::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #17a2b8, #007bff);
    border-radius: 2px;
}

.terms-text h4 {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.terms-text h5 {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.terms-text p {
    margin-bottom: 1.25rem;
    text-align: justify;
    text-indent: 1.5rem;
}

.terms-text ul,
.terms-text ol {
    margin: 1.25rem 0 1.5rem 2rem;
    padding-left: 1rem;
}

.terms-text li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    text-align: justify;
}

.terms-text ul li {
    list-style-type: disc;
    position: relative;
}

.terms-text ul li::marker {
    color: #007bff;
}

.terms-text ol li {
    list-style-type: decimal;
}

.terms-text ol li::marker {
    color: #007bff;
    font-weight: 600;
}

.terms-text ul ul,
.terms-text ol ol {
    margin: 0.5rem 0 0.5rem 1.5rem;
}

/* Цитаты и выделения */
.terms-text blockquote {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #007bff;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.terms-text blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: #007bff;
    opacity: 0.3;
    font-family: serif;
}

.terms-text strong {
    color: #2c3e50;
    font-weight: 600;
}

.terms-text em {
    color: #495057;
    font-style: italic;
}

.terms-text code {
    background: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Специальные блоки */
.terms-highlight {
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #2196f3;
    box-shadow: 0 2px 4px rgba(33,150,243,0.1);
}

.terms-highlight h4 {
    color: #1976d2;
    margin-top: 0;
    font-size: 1.15rem;
}

.terms-warning {
    background: linear-gradient(135deg, #fff8e1, #fffdf0);
    border: 1px solid #ffcc02;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 4px rgba(255,193,7,0.1);
}

.terms-warning h4 {
    color: #f57c00;
    margin-top: 0;
    font-size: 1.15rem;
}

.terms-important {
    background: linear-gradient(135deg, #ffebee, #fff5f5);
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #f44336;
    box-shadow: 0 2px 4px rgba(244,67,54,0.1);
}

.terms-important h4 {
    color: #d32f2f;
    margin-top: 0;
    font-size: 1.15rem;
}

.terms-success {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #4caf50;
    box-shadow: 0 2px 4px rgba(76,175,80,0.1);
}

.terms-success h4 {
    color: #388e3c;
    margin-top: 0;
    font-size: 1.15rem;
}

/* Таблицы в условиях */
.terms-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.terms-text th,
.terms-text td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.terms-text th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.terms-text tr:last-child td {
    border-bottom: none;
}

.terms-text tr:hover {
    background: #f8f9fa;
}

/* Кнопки действий */
.page-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    flex-wrap: wrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-actions .btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.page-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.page-actions .btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,123,255,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: #fff;
    box-shadow: 0 4px 8px rgba(108,117,125,0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62, #3d4549);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108,117,125,0.4);
}

/* Информационные сообщения */
.alert {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    color: #0277bd;
    border-color: #bbdefb;
    border-left: 4px solid #2196f3;
}

.alert-info strong {
    color: #01579b;
}

/* Навигационные ссылки */
.terms-nav {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.terms-nav h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.terms-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-nav li {
    margin-bottom: 0.5rem;
}

.terms-nav a {
    color: #007bff;
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.2s ease;
}

.terms-nav a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .guidelines-container,
    .content-container {
        padding: 1.5rem 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .terms-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .guidelines-container,
    .content-container {
        padding: 1rem 0;
    }
    
    .page-header {
        margin: 0 1rem 2rem 1rem;
        padding: 2rem 1.5rem;
        text-align: left;
    }
    
    .page-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .page-description {
        font-size: 1rem;
        text-align: left;
    }
    
    .submission-terms-content {
        margin: 0 1rem 2rem 1rem;
    }
    
    .terms-section {
        padding: 2rem 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .terms-text {
        font-size: 1rem;
    }
    
    .terms-text h3 {
        font-size: 1.3rem;
        margin: 2rem 0 0.75rem 0;
    }
    
    .terms-text h4 {
        font-size: 1.15rem;
    }
    
    .terms-text p {
        text-indent: 0;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .terms-text li {
        text-align: left;
    }
    
    .terms-text ul,
    .terms-text ol {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }
    
    .terms-highlight,
    .terms-warning,
    .terms-important,
    .terms-success {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .page-actions {
        margin: 0 1rem;
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .page-actions .btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
    
    .terms-nav {
        margin: 0 1rem 2rem 1rem;
        padding: 1rem;
    }
    
    .terms-text table {
        font-size: 0.9rem;
    }
    
    .terms-text th,
    .terms-text td {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .page-header h1 {
        font-size: 1.7rem;
    }
    
    .page-description {
        font-size: 0.95rem;
    }
    
    .submission-terms-content {
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .terms-section {
        padding: 1.5rem 1rem;
    }
    
    .terms-section h2 {
        font-size: 1.3rem;
    }
    
    .terms-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .terms-text h3 {
        font-size: 1.2rem;
        padding-left: 0.5rem;
    }
    
    .terms-text h4 {
        font-size: 1.1rem;
    }
    
    .terms-text blockquote {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .terms-highlight,
    .terms-warning,
    .terms-important,
    .terms-success {
        padding: 0.75rem;
    }
    
    .page-actions {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .page-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .alert {
        margin: 1.5rem 0.5rem;
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .terms-nav {
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .terms-text table {
        font-size: 0.85rem;
    }
    
    .terms-text th,
    .terms-text td {
        padding: 0.4rem 0.5rem;
    }
}

/* Улучшения для читабельности */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .btn::before {
        transition: none;
    }
}

@media (min-width: 1200px) {
    .terms-text {
        font-size: 1.1rem;
        line-height: 1.9;
    }
    
    .page-header h1 {
        font-size: 2.7rem;
    }
    
    .terms-section h2 {
        font-size: 2rem;
    }
}

/* Стили для печати */
@media print {
    .page-actions,
    .btn,
    .terms-nav {
        display: none !important;
    }
    
    .submission-terms-content {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .page-header {
        box-shadow: none;
        border: 1px solid #000;
        border-bottom: 2px solid #000;
    }
    
    .terms-text {
        color: #000;
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .terms-section h2 {
        color: #000;
        page-break-after: avoid;
    }
    
    .terms-text h3,
    .terms-text h4 {
        color: #000;
        page-break-after: avoid;
    }
    
    .terms-highlight,
    .terms-warning,
    .terms-important,
    .terms-success {
        border: 1px solid #000;
        background: #f5f5f5 !important;
    }
}