:root {
    --bg-dark: #1e1e1e;
    --bg-main: #2d2d2d;
    --bg-card: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent: #4d8bf0;
    --accent-light: #6da3f7;
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s;
    --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Навигация */
nav {
    background-color: var(--bg-card);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    will-change: transform;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .nav-links {
        z-index: 1001;
    }

    .nav-links.active {
        max-height: 300px;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color var(--transition-medium);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-medium) var(--easing);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-medium) var(--easing);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-main);
        width: 200px;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-medium) var(--easing);
        border-radius: 12px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        max-height: 500px;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links a {
        padding: 1rem;
        text-align: center;
        color: var(--text-primary);
        transition: background var(--transition-fast);
    }

    .nav-links a:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .nav-links a:last-child {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background: var(--bg-card);
    }
}

/* Шапка */
header {
    background: linear-gradient(rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.9)),
/*                url('images/print-bg.jpg') center/cover no-repeat;*/
    padding: 0rem 0 6rem;
    text-align: center;
}

.header-content h1,
.header-content .subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.header-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    width: fit-content;
    max-width: 100%;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Блок преимуществ */
.advantages-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    justify-items: center;
}

.advantage-card {
    background-color: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: transform var(--transition-medium) var(--easing),
                box-shadow var(--transition-medium) var(--easing);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    will-change: transform;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--accent-light);
}

/* Блок требований */
.requirements-section {
    margin-top: 4rem;
    margin-bottom: 6rem;
}

@media (max-width: 768px) {
    .requirements-section {
        margin-bottom: 4rem;
    }
}

.requirements-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent);
    font-size: 1.5rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.requirement-card {
    background-color: rgba(58, 58, 58, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    align-items: center;
    transition: background-color var(--transition-medium) var(--easing);
    will-change: background-color;
}

.requirement-card:hover {
    background-color: rgba(58, 58, 58, 0.9);
}

.requirement-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-right: 1.2rem;
    min-width: 40px;
    text-align: center;
}

/* Видеогалерея */
.video-gallery {
    background-color: var(--bg-main);
    padding: 4rem 0;
}

.video-gallery h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.video-grid {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-medium) var(--easing),
                box-shadow var(--transition-medium) var(--easing);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.video-info {
    padding: 1.2rem;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* О проекте */
.about-section {
    background-color: var(--bg-main);
    padding: 4rem 2rem;
}

.about-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 3rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    transition: transform var(--transition-medium) var(--easing);
    will-change: transform;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.about-card ul {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.6;
}

.about-card li {
    margin-bottom: 0.5rem;
}

/* Контактная секция */
.contact-section {
    background-color: var(--bg-card);
    padding: 4rem 2rem;
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background-color: var(--bg-main);
    padding: 2rem;
    border-radius: 8px;
    transition: transform var(--transition-medium) var(--easing);
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-card a {
    color: var(--accent-light);
    display: block;
    margin: 0.5rem 0;
    transition: color var(--transition-medium);
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-card p {
    margin: 0.3rem 0;
}

.contact-card-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-medium),
                transform var(--transition-fast);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    width: auto;
    margin-top: auto;
}

.contact-card-button:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.contact-card-button:active {
    transform: translateY(0);
}

/* === ФОТОГАЛЕРЕЯ — КАРТОЧКИ ОДИНАКОВОЙ ШИРИНЫ === */
.photo-gallery {
    padding: 80px 20px;
    background-color: var(--bg-main);
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 25px;
    max-width: 1250px;
    margin: 40px auto;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
}

@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
}

.gallery-item {
    width: 340px;
    min-width: 340px;
    max-width: 340px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    margin: 0 auto;
    height: fit-content;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

.item-info {
    margin-top: 5px;
    text-align: center;
    padding: 5px;
    width: 100%;
}

.item-info h3 {
    margin: 0 0 5px;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Модальное окно */
.form-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium) var(--easing),
                visibility var(--transition-medium) var(--easing);
}

.form-modal[aria-hidden="false"] {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.modal-content-form {
    position: relative;
    background-color: var(--bg-card);
    width: min(90vw, 720px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s forwards;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-form {
    color: var(--accent);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-medium);
    z-index: 1002;
    background: none;
    border: none;
    line-height: 1;
}

.close-form:hover {
    color: var(--accent-light);
}

.modal-content-form h3 {
    margin: 0;
    padding: 15px 20px;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.modal-content-form iframe {
    width: 100%;
    flex-grow: 1;
    border: none;
    border-radius: 0 0 8px 8px;
    display: block;
    min-height: 1050px;
}

.yandex-form-iframe {
    width: 100%;
    border: none;
    flex-grow: 1;
    min-height: 1050px;
    height: auto;
}

@media (max-width: 768px) {
    .modal-content-form {
        width: 95vw;
        height: 85vh;
        margin: 7% auto;
    }

    .yandex-form-iframe {
        min-height: 70vh;
    }
}

/* Подвал */
footer {
    background-color: var(--bg-dark);
    padding: 40px 20px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.footer-button:hover {
    background: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 15px 15px;
    }

    .footer-container {
        gap: 30px;
    }
}

/* === КНОПКА "ОТПРАВИТЬ ЗАЯВКУ" — ЦЕНТРИРОВАНИЕ === */
.form-button-container {
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
}

.form-button-container .contact-card-button {
    display: inline-block;
    font-size: 1.1rem;
    padding: 14px 32px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-medium), transform var(--transition-fast);
    text-decoration: none;
    font-weight: 600;
}

.form-button-container .contact-card-button:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.form-button-container .contact-card-button:active {
    transform: translateY(0);
}

/* === СТАТЬЯ — ОСНОВНЫЕ СТИЛИ === */
main.article-page {
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-primary);
}

.article-header {
    padding: 0rem 0 2rem;
    text-align: center;
/*    background: url('../images/print-bg.jpg') center / cover no-repeat;*/
    color: var(--text-primary);
}

.article-header h1 {
    margin: 0;
    padding: 2rem;
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-article {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
}

.article-content p {
    margin: 0 0 15px 0;
}

.article-footer {
    margin-top: 30px;
    text-align: center;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* === СПИСОК СТАТЕЙ — ОСНОВНЫЕ СТИЛИ === */
main.articles-page {
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-primary);
}

.articles-header {
/*    background: linear-gradient(rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.9)), url(images/print-bg.jpg) center / cover no-repeat;*/
    padding: 0rem 0 0rem;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.articles-header h1 {
    margin: 0;
    padding: 60px 0;
    font-size: 2.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.article-preview {
    display: flex;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
}



.article-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.article-image {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.reading-time {
    margin: 0;
    font-size: 0.9rem;
    color: var(--accent);
    display: flex;
    align-items: center;
}

/* === АДАПТАЦИЯ СПИСКА СТАТЕЙ ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
    .article-preview {
        flex-direction: column;
        align-items: stretch;
    }

    .article-image {
        width: 100%;
        height: 200px;
    }

    .article-info h3 {
        font-size: 1rem;
        margin: 10px 0;
    }
}


/* === МОДАЛЬНОЕ ОКНО ДЛЯ ФОТО === */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.photo-modal[aria-hidden="false"] {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.modal-content-photo {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

#modalPhoto {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.photo-caption {
    text-align: center;
    color: white;
    margin-top: 15px;
    font-size: 1.1rem;
}

.close-photo {
    color: white;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-photo:hover {
    color: #aaa;
}

/* === МОДАЛЬНОЕ ОКНО ФОРМЫ — СТИЛИ ДЛЯ .modal и .modal-content === */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[aria-hidden="false"] {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: var(--bg-card);
    width: min(90vw, 600px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(77, 139, 240, 0.2);
    animation: modalSlideIn 0.4s forwards;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-60px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close {
    color: var(--accent);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 1002;
    background: none;
    border: none;
    line-height: 1;
}

.close:hover {
    color: var(--accent-light);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin: 0;
    padding: 25px 20px 20px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-dark), #2a2a2a);
    border-radius: 12px 12px 0 0;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

#contactForm {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #444;
    border-radius: 6px;
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(77, 139, 240, 0.25);
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 20px;
}

.checkbox-group input {
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent), #3a76d8);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-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;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--accent-light), #5a9af0);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(77, 139, 240, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(77, 139, 240, 0.3);
}

/* Добавьте или замените стили для заголовка статьи */
.article-page .container h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Адаптивный размер для мобильных устройств */
@media (max-width: 768px) {
    .article-page .container h1 {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    .article-content p {
        font-size: 1rem;
    }
    .container {
        padding: 0px;
    }
    .single-article {
	padding: 15px;
    }
}

/* Дополнительно — улучшение читаемости длинных слов */
.article-page .container h1 {
    overflow-wrap: break-word;
    hyphens: auto;
}


/* Стили для страницы политики */
.privacy-page .container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-main);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.privacy-page h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.privacy-page h2 {
    font-size: 1.4rem;
    color: var(--accent);
    margin: 25px 0 15px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
}

.privacy-page p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.privacy-page ul {
    margin: 15px 0;
    padding-left: 20px;
}

.privacy-page ul li {
    margin-bottom: 8px;
}

.privacy-page em {
    color: #aaa;
    font-style: italic;
}

/* Стили для страницы 404 */
.error-page {
    padding: 80px 20px;
    text-align: center;
}

.error-page .container {
    max-width: 600px;
    margin: 0 auto;
}

.error-content i {
    font-size: 5rem;
/*    color: var(--accent);*/
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.error-content h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.error-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-home:hover {
/*    background: #e67e22;*/
    background: #5d9bf0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Стили для FAQ */
.faq-page {
    padding: 80px 20px 40px;
}

.faq-page h1 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: var(--bg-card);
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #3a3a3a;
}

.faq-question i {
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer p,
.faq-answer ul {
    margin: 15px 0;
}

.faq-answer ul {
    padding-left: 20px;
}

.faq-answer ul li {
    margin-bottom: 8px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 15px 20px 20px;
}

.faq-cta {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
}

.faq-cta p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .faq-page {
        padding: 60px 15px 30px;
    }
    .faq-question {
        padding: 15px;
        font-size: 1rem;
    }
}

