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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    font-weight: 400;
}

/* Навигация */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid #dc2626;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 30%;
    height: auto;
    margin-left: -5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #dc2626;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Мобильное меню */
@media (max-width: 1024px) {
    .nav {
        height: 70px;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        transition: right 0.3s ease;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        color: #dc2626;
        background: rgba(255, 255, 255, 0.05);
        padding-left: 1rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 768px) {
    .nav {
        height: 60px;
    }

    .nav-container {
        padding: 0 1.2rem;
    }

    .nav-links {
        width: 280px;
        padding: 80px 1.5rem 1.5rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.9rem 0;
    }

    .logo img {
        max-width: 25%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .nav {
        height: 50px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        width: 250px;
        padding: 70px 1.2rem 1.2rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }

    .logo img {
        max-width: 35%;
        height: auto;
        padding-top: 3px;
    }
}

/* Главная секция */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/static/img/IMG_20240428_144407.jpg') center/cover;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    z-index: 1;
    margin-top: 2rem;
}

.hero h1 {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Общие стили для секций */
.section {
    padding: clamp(3rem, 8vw, 6rem) 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section + .section {
    position: relative;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1.5rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: #dc2626;
    border-radius: 3px;
}

.section h3 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    color: #1a1a1a;
    position: relative;
}

/* Секция "Как купить" */
.purchase {
    background: #f8f9fa;
}

.purchase-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem;
}

.purchase-content > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.purchase-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.purchase-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Таблица характеристик */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
	margin-bottom: 3rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.specs-table th,
.specs-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.specs-table th {
    background: #1a1a1a;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.specs-table tr:hover {
    background: #f8f9fa;
}

.specs-table tr:nth-child(even) {
    background: #fafafa;
}

/* === Блок описания характеристик === */
.specs-description-block {
    background: linear-gradient(120deg, #f8f9fa 60%, #e0e7ef 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(38,38,38,0.07);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    margin: 3rem auto 2.5rem auto;
    max-width: 900px;
    border-left: 6px solid #dc2626;
    font-size: 1.18rem;
    color: #222;
    line-height: 1.8;
}

.specs-description-block p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* События */
/* Стили для событий в стиле постов соцсетей */
.event-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s ease;
    border: 1px solid #eaeaea;
}

.event-post:hover {
    transform: translateY(-3px);
}

.event-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    background: #fafafa;
}

.event-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #dc2626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
}

.event-author {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.event-content {
    padding: 0;
}

.event-photo {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eaeaea;
}

.event-text {
    padding: 1.2rem;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.event-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.event-date i {
    margin-right: 8px;
    color: #dc2626;
}

.event-description {
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Для админки */
.admin-actions {
    padding: 10px;
    text-align: right;
}

.delete-event-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.delete-event-btn:hover {
    background-color: #c0392b;
}

/* Кнопка "Показать больше" */
.show-more-btn {
    display: block;
    margin: 20px auto;
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600;
    text-align: center;
    max-width: 200px;
}

.show-more-btn:hover {
    background-color: #dc2626;
}

/* Контейнер для всех событий */
.events-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Стили для пустого состояния */
.no-events-message {
    background: #f8f9fa;
    border: 2px dashed #dc2626;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

.no-events-message h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-events-message p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Скрытые события */
#hidden-events .event-post {
    width: 100%;
}
/* О компании */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.about-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.8;
}

/* Контакты */
.contacts {
    background: #f8f9fa;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #dc2626;
}

.contact-item h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Футер */
.footer {
    background: linear-gradient(90deg, #1a1a1a 80%, #dc2626 100%);
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
    border-top: 4px solid #dc2626;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer p {
    margin-bottom: 1rem;
    line-height: 1.8;
    opacity: 0.8;
}

.footer a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.footer a:hover {
    color: #ffeaea;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

.event-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;
    border: 2px solid #e5e5e5;
}

/* === Блок "Наш продукт" === */
.product-block {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    border: 1px solid #eaeaea;
    border-left: 6px solid #dc2626;
}

.product-block p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-item {
    background: #f8f9fa;
    padding: 1.8rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #dc2626;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.1);
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    display: block;
}

.product-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    display: block;
}

/* === Галерея фото и видео === */
.gallery {
    background: #ffffff;
    padding-bottom: 4rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.gallery-item a {
    display: block;
    cursor: pointer;
}

.gallery-image, .gallery-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image,
.gallery-item:hover .gallery-video {
    transform: scale(1.02);
}

.gallery-caption {
    padding: 1rem;
    font-weight: 500;
    color: #333;
    background: #fafafa;
    border-top: 1px solid #eaeaea;
    text-align: center;
    font-size: 0.95rem;
}

/* Медиа запросы */
@media (max-width: 1024px) {
    .nav {
        min-height: 70px;
    }

    .nav-container {
        padding: 0 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 100px 1.5rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0;
        width: 100%;
        text-align: left;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:hover {
        color: #dc2626;
        background: rgba(255, 255, 255, 0.05);
        padding-left: 1rem;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #fff;
        margin: 5px 0;
        transition: 0.3s;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .specs-description-block {
        padding: 2rem;
        font-size: 1.1rem;
    }

    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .section {
        padding: 4rem 1rem;
    }

    .purchase-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 1.5rem;
    }

    .purchase-content h3 {
        font-size: 1.8rem;
    }

    .contact-form {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        min-height: 60px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        width: 250px;
        padding: 80px 1.2rem 1.5rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.9rem 0;
    }

    .logo img {
        max-width: 15%;
        height: auto;
    }

    .hero {
        min-height: 80vh;
        padding: 1.5rem 1rem;
    }

    .hero-content {
        margin-top: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .product-item {
        padding: 1.5rem;
        border-left-width: 3px;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .purchase-content {
        gap: 2rem;
        padding: 1rem;
    }

    .purchase-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .purchase-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .cta-button {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-item {
        width: 100%;
    }

    .specs-table {
        font-size: 0.9rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 0.8rem;
    }

    .event-item {
        padding: 1.5rem;
    }

    .event-item h3 {
        font-size: 1.1rem;
    }

    .event-date {
        font-size: 0.9rem;
    }

    .event-photo {
        max-width: 100%;
        height: auto;
        margin: 1rem 0;
    }

    .about-content {
        padding: 0 1rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .about-content h3 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }

    .product-block {
        padding: 1.5rem;
        border-left-width: 4px;
    }

    .product-block p {
        font-size: 1.1rem;
    }

    .product-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-item {
        padding: 1.5rem;
        border-left-width: 3px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-desc {
        font-size: 0.95rem;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .footer p {
        font-size: 0.9rem;
    }

    .specs-description-block {
        padding: 1.5rem;
        margin: 2rem auto;
        font-size: 1rem;
        line-height: 1.6;
    }

    .event-post {
        margin-bottom: 1rem;
    }

    .event-header {
        padding: 0.8rem 1rem;
    }

    .event-avatar {
        width: 32px;
        height: 32px;
    }

    .event-text {
        padding: 1rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-column {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        min-height: 50px;
    }

    .nav-container {
        padding: 0 0.8rem;
    }

    .logo img {
        max-width: 24%;
        height: auto;
    }

    .hero {
        min-height: 70vh;
        padding: 1rem 0.8rem;
    }

    .hero-content {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-block {
        padding: 1.2rem;
        border-left-width: 3px;
    }

    .product-block p {
        font-size: 1rem;
    }

    .product-item {
        padding: 1.2rem;
        border-left-width: 2px;
    }

    .section {
        padding: 2rem 0.8rem;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .contact-form,
    .events-list {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .specs-table {
        font-size: 0.8rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 0.6rem;
    }

    .purchase-content {
        padding: 0.8rem;
    }

    .purchase-content h3 {
        font-size: 1.3rem;
    }

    .purchase-content p {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .specs-description-block {
        padding: 1.2rem;
        margin: 1.5rem auto;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .about-content h3 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .event-header {
        padding: 0.7rem 0.9rem;
    }

    .event-avatar {
        width: 28px;
        height: 28px;
    }

    .event-text {
        padding: 0.9rem;
    }

    .event-title {
        font-size: 1rem;
    }

    .event-description {
        font-size: 0.9rem;
    }

    .nav-links {
        width: 220px;
        padding: 70px 1rem 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
}

/* Отключение анимаций для мобильных устройств */
@media (max-width: 768px) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .nav-links,
    .nav-overlay,
    .nav-toggle span {
        transition: none !important;
    }
}

/* Улучшения для больших экранов */
@media (min-width: 1400px) {
    .nav-container {
        max-width: 1400px;
    }

    .section {
        padding: 5rem 2rem;
    }
}

/* Базовые улучшения для всех устройств */
.section > * {
    max-width: 100%;
    overflow-x: hidden;
}

.section {
    position: relative;
    overflow: hidden;
}

.purchase-content > * {
    width: 100%;
}

.cta-button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.specs-table {
    table-layout: fixed;
    word-wrap: break-word;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.specs-description-block {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #dc2626;
}

/* Make gallery items clickable */
.gallery-item {
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.02);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.modal-close {
    position: fixed;
    right: 20px;
    top: 20px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    user-select: none;
}

.modal-close:hover {
    color: #dc2626;
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
    border-color: #dc2626;
}

@media (max-width: 768px) {
    .modal-close {
        right: 15px;
        top: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

/* Make gallery items clickable */
.gallery-item {
    cursor: pointer;
}

.gallery-image,
.gallery-video,
.event-photo {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image,
.gallery-item:hover .gallery-video,
.event-photo:hover {
    transform: scale(1.02);
}

.gallery-caption {
    padding: 1rem;
    font-weight: 500;
    color: #333;
    background: #fafafa;
    border-top: 1px solid #eaeaea;
    text-align: center;
    font-size: 0.95rem;
}