/* Стили для страниц */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-content {
    line-height: 1.8;
    font-size: 16px;
}

.page-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-content h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-content p {
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.page-content li {
    margin-bottom: 10px;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--secondary-color);
}

.contact-info {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--secondary-color);
}

/* Article Styles */
.article-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-intro {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.article-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.article-card-content h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-card-content h2 a:hover {
    color: var(--secondary-color);
}

.article-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.article-card-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-card-content h3 a:hover {
    color: var(--secondary-color);
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    margin-top: auto;
}

.article-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Related Articles Section */
.related-articles-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.related-articles-header {
    margin-bottom: 40px;
}

.related-articles-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.related-articles-header p {
    font-size: 16px;
    color: var(--secondary-color);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Parking Calculator Styles */
.parking-calculator {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-header h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.calculator-header p {
    font-size: 16px;
    color: var(--secondary-color);
    margin: 0;
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.calculator-inputs {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.calc-input-group {
    margin-bottom: 25px;
}

.calc-input-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.calc-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.calc-button {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.calc-button:hover {
    background-color: var(--secondary-color);
}

.calculator-results {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.result-item {
    padding: 20px;
    margin-bottom: 15px;
    background: var(--light-gray);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.result-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.result-item p {
    font-size: 16px;
    color: var(--text-color);
    margin: 0;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Parking Stats Section */
.parking-stats-section {
    margin: 50px 0;
    background: var(--light-gray);
    padding: 40px;
    border-radius: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stat-chart-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.stat-chart-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.chart-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.bar-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.bar-bar {
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    position: relative;
}

.bar-regular {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 100%);
}

.bar-platform {
    background: linear-gradient(90deg, #4ecdc4 0%, #44a08d 100%);
}

.bar-value {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.vertical-bar-chart {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    margin-bottom: 20px;
}

.vbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.vbar-bar {
    width: 100%;
    background: linear-gradient(180deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    min-height: 40px;
    position: relative;
}

.vbar-value {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.vbar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

.chart-note {
    font-size: 12px;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 10px;
}

.stats-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.horizontal-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hbar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hbar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.hbar-container {
    width: 100%;
    background: var(--light-gray);
    border-radius: 6px;
    height: 30px;
    position: relative;
    overflow: hidden;
}

.hbar-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    min-width: 50px;
}

.hbar-value {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.savings-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.savings-stat-item {
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.savings-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.savings-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Info Box Styles */
.info-box {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.info-box h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.info-box li:last-child {
    border-bottom: none;
}

.info-box strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Comparison Table Styles */
.comparison-table {
    margin: 40px 0;
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.comparison-table h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.comparison-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.comparison-table tbody tr:hover {
    background: var(--light-gray);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Priority Chart Styles */
.priority-chart {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
}

.priority-chart h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.priority-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.priority-item {
    display: grid;
    grid-template-columns: 180px 1fr 60px;
    gap: 15px;
    align-items: center;
}

.priority-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.priority-bar {
    height: 30px;
    background: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.priority-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.priority-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* Resource Checklist Styles */
.resource-checklist {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.resource-checklist h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-color);
    padding-left: 20px;
    position: relative;
}

.checklist-item:before {
    content: "•";
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
    position: absolute;
    left: 8px;
}

/* Maintenance Schedule Styles */
.maintenance-schedule {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
}

.maintenance-schedule h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.schedule-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.schedule-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
}

.schedule-frequency {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.schedule-tasks ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-tasks li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.schedule-tasks li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Fluid Chart Styles */
.fluid-chart {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
}

.fluid-chart h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.fluid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.fluid-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.fluid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.fluid-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    margin-top: 0;
}

.fluid-card p {
    font-size: 13px;
    color: var(--text-color);
    margin: 5px 0;
}

/* Budget Breakdown Styles */
.budget-breakdown {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
}

.budget-breakdown h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.budget-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.budget-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.budget-percent {
    color: var(--primary-color);
}

.budget-bar {
    height: 35px;
    background: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.budget-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
}

/* Savings Tips Styles */
.savings-tips {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.savings-tips h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.tip-number {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.tip-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.result-card {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.result-card.savings-money {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.result-card.savings-time {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.result-card.total-savings {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.result-content {
    padding: 25px;
}

.result-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.result-content .result-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin: 10px 0;
}

.result-content .result-value-large {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin: 10px 0;
}

.result-detail {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

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

    .page-header h1 {
        font-size: 28px;
    }

    .page-content h2 {
        font-size: 24px;
    }

    .article-intro {
        font-size: 18px;
        padding: 15px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .calculator-content {
        grid-template-columns: 1fr;
    }

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

    .stats-grid-2 {
        grid-template-columns: 1fr;
    }

    .parking-stats-section {
        padding: 25px;
    }

    .vertical-bar-chart {
        height: 150px;
        gap: 10px;
    }

    .vbar-bar {
        min-height: 30px;
    }

    .calculator-results {
        padding: 20px;
    }

    .result-content .result-value {
        font-size: 28px;
    }

    .result-content .result-value-large {
        font-size: 36px;
    }
}
