/* ========== ОБЩИЕ СБРОСЫ И БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.main {
    flex: 1;
}
.footer {
    flex-shrink: 0;
}

.components-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.components-status-list li {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.btn-redactor {

}
.btn-redactor a {
    padding: 4px;
    display: block;
    margin: 2px auto;
    font-size: 10px;    
}

/* ========== КНОПКИ ========== */
.btn {
  display: block;
  padding: 0.5rem 1rem;
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: background 0.2s;
  margin: 6px auto;
  width: 240px;
}

.btn:hover {
    background: #0056b3;
}
.position-fixed-ok {
    position: fixed;
    right: 10px;
    bottom: 80px;
    
}
.position-fixed-no {
  position: fixed;
  right: 10px;
  bottom: 30px;
  background-color: red;
  letter-spacing: 2px;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* ========== ШАПКА ========== */
.header {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 1rem;
}

.header-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}



.logo {
    display: flex;
    flex-direction: column;
}

.logo-short {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 7px;
    text-align: center;
}

.logo-full {
    font-size: 0.9rem;
    color: #555;
    letter-spacing: -1px;
}

.logo-full:hover {
    text-decoration: underline;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-list a:hover {
    color: #007bff;
}

.contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone {
    font-weight: bold;
}

/* Мобильная шапка */
.header-mobile {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    margin-top: 1rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.profile-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}




/* ========== ФУТЕР ========== */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* ========== ФОРМЫ (авторизация, добавление) ========== */
.auth-form {
    max-width: 520px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.auth-form h2 {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.error {
    color: red;
    margin-top: 1rem;
}

/* Стили для форм добавления видео/проекта */
.main form, .video_form {
    padding: 0;
    border-radius: 8px;
}

.main form select, .main form input, .main form textarea,
.video_form input, .video_form textarea {
    display: block;
    margin: 1vh auto;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.2);
    width: 450px;
    max-width: 90vw;
    border: 1px solid #ccc;
    background-color: #fff;
    position: relative;
}

.main form label, .video_form label {
    display: block;
    margin: 1vh auto;
    font-size: 1rem;
    padding: 4px 10px;
    width: 450px;
    max-width: 90vw;
    font-weight: bold;
}

/* ========== ГЛАВНАЯ СТРАНИЦА (блоки) ========== */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.blocks-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.video-block {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Проекты на главной */
.project-block {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.project-left, .project-right {
    flex: 1;
    min-width: 0;
}

.project-left img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.main-image {
    position: relative;
    margin-bottom: 1rem;
}

.image-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

.project-age {
    margin-left: 1rem;
    font-size: 0.9rem;
}

.gallery-thumbs {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.gallery-thumbs img {
    width: calc(25% - 3.75px);
    cursor: pointer;
    border: 1px solid #ccc;
}

.code-screen {
    background: #002b36;
    color: #839496;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 300px;
    border: 2px solid #586e75;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.access-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.admin-links {
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
}

/* Глобальные стили для таблиц в админке */
.table {
    width: 100%;
    max-width: 100vw;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #f5f5f5;
    font-weight: bold;
}

/* Для контейнеров с таблицами – центрирование */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 0 auto;
}

/* Центрирование основного контента на страницах админки */
.main {
  width: 94vw;
  margin: 0 auto;
  padding: 20px;
}
.main table {
  display: table;
  border-spacing: 20px;
}

/* Для мобильных устройств – таблица может выходить за пределы экрана, но скролл сохраняется */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    .table th,
    .table td {
        white-space: nowrap;
    }
    .main {
  overflow-x: auto;
}
}

/* По умолчанию мобильная иконка скрыта на десктопе */
/* Мобильная иконка пользователя – только на мобильных устройствах */
.user-icon-mobile {
    display: none;
}

@media (max-width: 768px) {
    .user-icon-mobile {
        display: inline-block;
    }
    .video-block {
        display: block;
    }
    .video-container {
        max-height: none;
    }
    .user-icon {
        display: none;
    }
}
/* Скрыть мобильную кнопку входа на десктопе */
@media (min-width: 769px) {
    .mobile-user .btn {
        display: none !important;
    }
    .video-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    .video-container {
        grid-column: 1;
        max-height: 70vh;
        overflow: hidden;
    }
    .video-container iframe {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: contain;
    }
    .video-block h3,
    .video-block p,
    .video-block a {
        grid-column: 2;
        margin-top: 0;
    }
    .video-block h3 {
        margin-bottom: 0.5rem;
    }

}

/* ========== МОДАЛЬНЫЕ ОКНА (общие) ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    margin: 60px auto;
    display: block;
    max-width: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#codeModal pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 5px;
    overflow: auto;
    max-height: 80vh;
    width: 80%;
    margin: 40px auto;
    white-space: pre-wrap;
}

/* ========== СТРАНИЦА МАГАЗИНА (комплектующие) ========== */
.shop-layout {
    display: flex;
    gap: 30px;
    margin: 0 auto;
    padding: 20px;
}

.shop-categories {
    flex: 0 0 250px;
}

.shop-categories ul {
    list-style: none;
    padding: 0;
}

.shop-categories li {
    margin-bottom: 8px;
}

.shop-categories a {
    display: block;
    padding: 8px 12px;
    color: #333;
    border-bottom: 2px dotted #000;
    text-decoration: none;
    transition: background 0.2s;
    max-width: 14vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shop-categories a.active {
    background-color: #007bff;
    color: white;
    border-bottom-color: #0056b3;
}

.shop-products {
    flex: 1;
}

.shop-toolbar {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.sort-select, .search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.toolbar-icons span {
    font-size: 24px;
    margin-left: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.toolbar-icons span:hover {
    opacity: 0.7;
}

/* Сетка товаров (3 колонки) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  position: relative;
  grid-gap: 1vh 1vw;
  padding-bottom: 44px;
}

.card-favorite {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 24px;
    color: #ff6b6b;
    cursor: pointer;
    z-index: 2;
}

.card-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
}

.product-rating {
    font-size: 16px;
    margin-bottom: 5px;
}

.product-price {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
}

.card-right {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.product-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.product-model,
.product-specs {
    color: #555;
}

.product-links {
    display: flex;
    gap: 12px;
    margin: 5px 0;
}

.link-icon {
    text-decoration: none;
    color: #007bff;
    font-size: 18px;
}

.no-products {
    grid-column: span 3;
    text-align: center;
    padding: 40px;
    color: #999;
}

.search-divider {
    margin: 30px 0;
    border: 1px solid #ccc;
}

.search-group:first-child .search-divider {
    display: none;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .no-products {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header-desktop {
        display: none;
    }
    .header-mobile {
        display: block;
    }

    .shop-layout {
        flex-direction: column;
    }
    .shop-categories {
        flex-basis: auto;
    }
    .shop-categories a {
        max-width: none;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .no-products {
        grid-column: span 1;
    }
    .product-card {
        flex-direction: column;
    }
    .card-left, .card-right {
        flex: auto;
    }

    .project-block {
        flex-direction: column;
    }
    .gallery-thumbs img {
        width: calc(25% - 3.75px);
    }
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons .btn {
        width: 100%;
    }
}


.nav-list a.active {
    color: #007bff;
    font-weight: bold;
}

.card-favorite.active {
    color: #ff0000;
}
.icon-favorite.active {
    color: #ff0000;
}

.cart-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.cart-items {
    flex: 3;
}
.cart-sidebar {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    align-self: start;
}
.cart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cart-item-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    position: relative;
}
.cart-item-card img {
    max-width: 100%;
    height: auto;
}
.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-item-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
}
.cart-item-price {
    font-weight: bold;
}
.cart-item-total {
    font-weight: bold;
    color: #007bff;
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-item-quantity button {
    padding: 2px 10px;
    font-size: 16px;
}

.product-detail {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-detail-left {
    flex: 1;
}

.product-detail-main-image {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-detail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-detail-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.product-detail-right {
    flex: 1;
}

.product-detail-right h1 {
    margin-top: 0;
}

.product-detail-price {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.product-detail-stock {
    font-size: 16px;
    color: #28a745;
}

.product-detail-description {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
}


.source-info {
    background: #e7f3ff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}


.source-info {
    background: #e7f3ff;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-detail {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.product-images {
    flex: 1;
}

.product-images .main-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    margin-bottom: 15px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    margin-top: 0;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
  position: absolute;
  bottom: 2px;
  left: 14px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
}

.project-card .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.project-card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.grid {
    display: grid;
    align-items: center;
    justify-content: column;
    grid-gap: 1vh 1vh;
}
.g2 {grid-template-columns: 1fr 1fr;}

/* Страница обучения */
.education-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.education-categories {
    flex: 0 0 250px;
}

.education-categories ul {
    list-style: none;
    padding: 0;
}

.education-categories li {
    margin-bottom: 8px;
}

.education-categories a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.education-categories a.active {
    background-color: #007bff;
    color: white;
}

.education-lessons {
    flex: 1;
}

.lesson-block {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.lesson-media {
    flex: 0 0 40%;
    position: relative;
    padding-bottom: 22.5%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.lesson-media iframe,
.lesson-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.lesson-info {
    flex: 1;
}

.lesson-meta {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.homework-block {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .education-layout {
        flex-direction: column;
    }
    .lesson-block {
        flex-direction: column;
    }
    .lesson-media {
        flex: auto;
        padding-bottom: 56.25%;
    }
}




/* Страница программ */
.downloads-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.downloads-categories {
    flex: 0 0 250px;
}

.downloads-categories ul {
    list-style: none;
    padding: 0;
}

.downloads-categories li {
    margin-bottom: 8px;
}

.downloads-categories a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.downloads-categories a.active {
    background-color: #007bff;
    color: white;
}

.downloads-list {
    flex: 1;
}

.program-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.program-info {
    flex: 1;
}

.program-info h3 {
    margin: 0 0 5px;
}

.program-version {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.program-description {
    color: #555;
    margin-bottom: 8px;
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #777;
}

.program-notes {
    color: #28a745;
    font-weight: bold;
}

.program-action {
    margin-left: 20px;
}

.download-btn {
    background-color: #28a745;
}

.download-btn:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .downloads-layout {
        flex-direction: column;
    }
    .program-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .program-action {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    .program-action .btn {
        width: 100%;
        text-align: center;
    }
}

.user-menu {
    position: relative;
    display: inline-block;
}
.user-icon {
    font-size: 24px;
    cursor: pointer;
}
.user-dropdown {
    position: absolute;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.user-dropdown p {
    margin: 5px 0;
}
.user-dropdown a {
    display: block;
    text-align: center;
    margin-top: 10px;
}
.buy-btn {
  position: absolute;
  bottom: 2px;
  left: 136px;
  width: auto;
}

.card-left a img {max-width: 100%;}

/* Мобильное выпадающее меню пользователя */
.mobile-user-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    display: none;
}
.mobile-user-dropdown.active {
    display: block;
    max-width: 100vw;
}
.mobile-user-dropdown .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-user-dropdown .user-info {
    margin-top: 50px;
    text-align: center;
}
.mobile-user-dropdown .user-info p {
    margin: 10px 0;
}
.mobile-user-dropdown .btn {
    display: block;
    width: 90%;
    margin: 10px auto;
    text-align: center;
}

/*--------------------------*/

.bot-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 320px;
}
.bot-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 15px;
    border: 1px solid #ccc;
    position: relative;
}
.bot-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}
.bot-links {
    list-style: none;
    padding: 0;
}
.bot-links li {
    margin: 10px 0;
}
.bot-links a {
    text-decoration: none;
    color: #007bff;
}
.bot-links small {
    font-size: 0.8rem;
    color: #666;
}
.bot-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .bot-modal {
        width: 90%;
        right: 5%;
        bottom: 10px;
    }
}


/* Стили для блоков видео на главной странице */
@media (min-width: 769px) {
    .video-block {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    .video-container {
        
        flex: 1 1 40%;
        max-height: 70vh;
        overflow: hidden;
    }
    .video-container iframe {
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;
    }
    .video-block h3,
    .video-block p,
    .video-block a {
        flex: 1 1 50%;
        margin: 0;
        display: block;
    }
    .video-block h3 {
        margin-top: 0;
    }
    .video-block p {
        margin-bottom: 1rem;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .video-block {
        display: block;
    }
    .video-container {
        max-height: none;
    }
    .video-container iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}
.video-block {display: grid;} 