:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #007bff;
    --background-color: #fff;
    --border-color: #ddd;
    --card-background: #f8f9fa;
    --card-hover-background: #e9ecef;
    --text-color: #2c3e50;
    --link-color: #3498db;
    --link-hover-color: #2980b9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header p:first-of-type {
    color: var(--primary-color);
    font-size: 1.96rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: none;
    padding-bottom: 0;
    width: 100%;
    max-width: 100%;
    line-height: 1.4;
}

header p:not(:first-of-type) {
    margin-bottom: 0.7rem;
    line-height: 1.1;
    font-weight: 700;
    font-size: 0.96rem;
    width: 100%;
    max-width: 100%;
}

header h2, header h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    line-height: 1.4;
}

.class-content {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.class-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.class-header i {
    font-size: 1.6rem;
    margin-right: 15px;
    color: #0056b3 !important;
}

.class-header h2 {
    font-size: 1.44rem;
    margin: 0;
    color: var(--primary-color);
}

.class-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.class-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.class-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-top: 3px solid #0056b3;
}

.class-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    padding-left: 1.5rem;
}

.class-item h3:first-of-type + .legal-list li {
    font-weight: 600;
}

.class-item h3:contains("К классу относятся, в частности:") + .legal-list li,
.class-item h3:contains("К классу не относятся, в частности:") + .legal-list li {
    font-weight: 400 !important;
}

.class-item .legal-list.related-items li,
.class-item .legal-list.not-related-items li {
    font-weight: 400 !important;
}

.class-item p, .class-item ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.class-item .legal-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.class-item .legal-list li {
    padding-left: 1.5rem;
    margin-bottom: 0;
    font-weight: 400;
}

.class-item .legal-list li:last-child {
    margin-bottom: 1.5rem;
}

.class-item .legal-list li:before {
    left: 0;
}

.class-item li {
    font-size: 0.96rem;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 0.3rem;
    position: relative;
}

.class-item li:before {
    content: "•";
    color: #0056b3;
    position: absolute;
    left: 0;
}

.class-note {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #0056b3;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: flex-start;
}

.class-note i {
    color: #0056b3;
    font-size: 1.2rem;
    margin-right: 10px;
    margin-top: 3px;
}

.class-note p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .class-header {
        flex-direction: column;
        text-align: center;
    }
    
    .class-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.class-list {
    margin-top: 2rem;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.class-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--text-color);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.class-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--link-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.class-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-top: 3px solid #0056b3;
    background-color: var(--card-hover-background);
}

.class-link:hover::before {
    transform: scaleX(1);
}

.class-link i,
.class-header i {
    font-size: 1.6rem;
    color: #0056b3 !important;
    margin-bottom: 0.5rem;
}

.class-link span {
    font-size: 0.96rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.class-link p {
    font-size: 0.96rem;
    text-align: center;
    margin: 0;
    color: var(--secondary-color);
}

footer {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.footer-column {
    position: relative;
}

.footer-column:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 40px;
}

.footer-column:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 40px;
    padding-left: 40px;
}

.footer-column:last-child {
    padding-left: 40px;
}

.footer-menu {
    margin-bottom: 20px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

footer p {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-column:nth-child(2) {
        border-right: none;
    }
    
    .footer-column:last-child {
        grid-column: span 2;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
        padding-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column:first-child,
    .footer-column:nth-child(2) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 20px;
    }

    .footer-column:last-child {
        grid-column: auto;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
}

/* Стили для страницы FAQ */
.faq-content {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.faq-header i {
    font-size: 1.6rem;
    margin-right: 15px;
    color: #0056b3 !important;
}

.faq-header h2 {
    font-size: 1.44rem;
    margin: 0;
    color: var(--primary-color);
}

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

.faq-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-top: 3px solid #0056b3;
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-item p {
    font-size: 0.96rem;
    color: var(--secondary-color);
    line-height: 1.3;
    margin: 0;
}

.faq-item ul {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-item li {
    font-size: 0.96rem;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
    .faq-header {
        flex-direction: column;
        text-align: center;
    }
    
    .faq-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Стили для страницы "Как пользоваться МКТУ" */
.how-to-use-content {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.how-to-use-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.how-to-use-header i {
    font-size: 1.6rem;
    margin-right: 15px;
    color: #0056b3 !important;
}

.how-to-use-header h2 {
    font-size: 1.44rem;
    margin: 0;
    color: var(--primary-color);
}

.how-to-use-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.how-to-use-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.how-to-use-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-top: 3px solid #0056b3;
}

.how-to-use-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.how-to-use-item p {
    font-size: 0.96rem;
    color: var(--secondary-color);
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.how-to-use-item ul {
    margin: 10px 0;
    padding-left: 20px;
}

.how-to-use-item li {
    font-size: 0.96rem;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
    .how-to-use-header {
        flex-direction: column;
        text-align: center;
    }
    
    .how-to-use-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Стили для руководства по применению */
.guide-section {
    margin-top: 15px;
}

.guide-section p {
    margin-bottom: 15px;
    line-height: 1.3;
}

.note-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0056b3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.note-box p {
    margin: 0;
}

.footnote {
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.criteria-section {
    margin: 25px 0;
}

.criteria-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.criteria-section ol {
    padding-left: 20px;
    margin: 0;
}

.criteria-section li {
    margin-bottom: 15px;
    line-height: 1.3;
}

.criteria-section li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .note-box {
        margin: 15px 0;
    }
    
    .criteria-section {
        margin: 20px 0;
    }
}

/* Стили для страницы секретных материалов */
.secret-materials-content {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.secret-materials-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.secret-materials-header i {
    font-size: 1.6rem;
    margin-right: 15px;
    color: #0056b3 !important;
}

.secret-materials-header h2 {
    font-size: 1.44rem;
    margin: 0;
    color: var(--primary-color);
}

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

.secret-materials-item {
    display: flex;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.secret-materials-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-top: 3px solid #0056b3;
}

.secret-materials-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f0f4f8;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.secret-materials-icon i {
    font-size: 1.8rem;
    color: #0056b3;
}

.secret-materials-info {
    flex-grow: 1;
}

.secret-materials-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.secret-materials-info p {
    font-size: 0.96rem;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 15px;
}

.secret-materials-details {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.secret-materials-details li {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.secret-materials-details li i {
    margin-right: 5px;
    color: #0056b3;
}

.download-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.96rem;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

.download-button i {
    margin-right: 8px;
}

.secret-materials-note {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #0056b3;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: flex-start;
}

.secret-materials-note i {
    color: #0056b3;
    font-size: 1.2rem;
    margin-right: 10px;
    margin-top: 3px;
}

.secret-materials-note p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .secret-materials-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .secret-materials-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .secret-materials-details {
        justify-content: center;
    }
    
    .secret-materials-header {
        flex-direction: column;
        text-align: center;
    }
    
    .secret-materials-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Стили для юридического списка */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0;
    line-height: 1.5rem;
    font-size: 0.96rem;
    color: var(--secondary-color);
    min-height: 1.5rem;
    white-space: normal;
    overflow: visible;
}

.legal-list li:before {
    content: "—";
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Общие стили для текста */
p, li, h1, h2, h3, h4, h5, h6, .subtitle, .class-header, .class-item, .class-note {
    line-height: 1.5rem;
    margin-bottom: 0;
    position: relative;
    min-height: 1.5rem;
    white-space: normal;
    overflow: visible;
    padding-left: 0;
}

/* Стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.5rem;
    position: relative;
    min-height: 1.5rem;
    white-space: normal;
    overflow: visible;
    padding-left: 1.5rem;
}

@media (max-width: 1200px) {
    header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        white-space: normal;
    }
}

.additional-info {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.additional-info h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

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

.info-links li {
    margin-bottom: 0.75rem;
}

.info-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.info-links a:hover {
    color: var(--accent-color);
}

.info-links i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

header h1 {
    font-size: 2.425rem;
    margin: 0.5rem 0 1rem;
    padding: 0.5rem 0;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Медиа-запрос для адаптивности на планшетах */
@media (max-width: 992px) {
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Медиа-запрос для адаптивности на мобильных устройствах */
@media (max-width: 576px) {
    .class-grid {
        grid-template-columns: repeat(1, 1fr);
    }
} 