/* Глобальные стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* Шапка */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Навигация */
nav {
    background-color: var(--dark-color);
    padding: 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color: white;
    padding: 15px 20px;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* Основной контент */
main {
    padding: 40px 0;
    min-height: 70vh;
}

/* Главная страница */
.hero {
    text-align: center;
    padding: 40px 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.hero h2 {
    border-bottom: none;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin: 0 10px;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--success-color);
}

.btn-secondary:hover {
    background-color: #229954;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.feature-card a {
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

.about {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.expert-profile {
    display: flex;
    align-items: center;
}

.expert-info {
    flex: 1;
}

/* Страница принципов */
.principle-section {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.principle-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.principle-text {
    flex: 1;
    min-width: 300px;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 15px;
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 300px;
}

.warning-box h4 {
    color: var(--warning-color);
    margin-top: 0;
}

.tech-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.diagram-item {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    margin: 5px;
    font-weight: 600;
}

.diagram-arrow {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--primary-color);
}

.example-box {
    background-color: #d1ecf1;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 300px;
}

.example-box h4 {
    color: var(--secondary-color);
    margin-top: 0;
}

.tip-box {
    background-color: #d4edda;
    border-left: 4px solid var(--success-color);
    padding: 15px;
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 300px;
}

.tip-box h4 {
    color: var(--success-color);
    margin-top: 0;
}

/* Дорожная карта */
.roadmap-intro {
    text-align: center;
    margin-bottom: 40px;
}

.roadmap-timeline {
    position: relative;
    margin-bottom: 50px;
}

.roadmap-stage {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.stage-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stage-header h3 {
    color: white;
    margin: 0;
    border: none;
}

.stage-duration {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.stage-content {
    padding: 30px;
}

.stage-content ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.stage-content li {
    counter-increment: item;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.stage-content li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.key-tips {
    margin-top: 50px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--warning-color);
}

.tip-card h3 {
    color: var(--warning-color);
    margin-top: 0;
}

/* Юридические аспекты */
.legal-intro {
    text-align: center;
    margin-bottom: 40px;
}

.legal-section {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.legal-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.legal-column {
    flex: 1;
    min-width: 300px;
}

.legal-full {
    width: 100%;
}

.penalty-box {
    background-color: #f8d7da;
    border-left: 4px solid var(--danger-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
}

.penalty-box h5 {
    color: var(--danger-color);
    margin-top: 0;
}

.responsibility-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.responsibility-table th, .responsibility-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.responsibility-table th {
    background-color: var(--secondary-color);
    color: white;
}

.responsibility-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.legal-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.tab.active {
    background-color: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
    font-weight: 600;
    color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.contract-types {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contract-type {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
}

.risks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.risk-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--danger-color);
}

.special-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.special-case {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border-top: 3px solid var(--secondary-color);
}

/* Юридическая дорожная карта */
.legal-roadmap-intro {
    text-align: center;
    margin-bottom: 40px;
}

.legal-roadmap-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.step-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.step-number {
    background-color: var(--secondary-color);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: -30px auto 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.step-content {
    padding: 30px 20px 20px;
    flex: 1;
}

.step-content h3 {
    color: var(--secondary-color);
    margin-top: 0;
    text-align: center;
}

.step-tip, .step-warning {
    margin-top: 15px;
    padding: 15px;
    border-radius: var(--border-radius);
}

.step-tip {
    background-color: #d4edda;
    border-left: 4px solid var(--success-color);
}

.step-tip h4 {
    color: var(--success-color);
}

.step-warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
}

.step-warning h4 {
    color: var(--warning-color);
}

.legal-conclusion {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 40px;
}

.conclusion-highlight {
    background-color: #e8f4fc;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

/* Подвал */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: white;
    margin: 0 10px;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav a {
        padding: 10px;
        text-align: center;
    }
    
    .expert-profile {
        flex-direction: column;
    }
    
    .stage-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stage-duration {
        margin-top: 10px;
    }
    
    .responsibility-table {
        font-size: 0.9rem;
    }
    
    .legal-tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        margin-bottom: 5px;
    }
}

/* ... (предыдущие стили) ... */

/* Иконки */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    fill: currentColor;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.principle-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.stage-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    color: white;
}

.section-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.legal-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    fill: currentColor;
}

/* Исправление для цифр на странице юридической дорожной карты */
.step-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 60px; /* Добавляем отступ сверху для цифры */
}

.step-number {
    background-color: var(--secondary-color);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 40px; /* Позиционируем сверху */
    left: 50%;
    transform: translateX(-50%); /* Центрируем */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.step-content {
    padding: 20px;
    flex: 1;
    text-align: center;
}

.step-content h3 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.3rem;
}

/* ... (остальные стили без изменений) ... */