/* Основной фон */
body {
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 0;
    background-image: url('images/C.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* фиксированный фон */
    color: white;
}

header, footer {
    background-color: rgba(0,0,0,0.6);
    padding: 1em;
    text-align: center;
}

/* Header */
.header-container {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: orange;
    margin: 0;
}

.tagline {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Навигация */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.my-button {
    padding: 12px 25px;
    font-size: 20px;
    background: linear-gradient(45deg, #ec9a0c, #35260c);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.my-button:active {
    transform: scale(0.95);
}

/* Цветовые стили текста */
.redtext { font-size: 25px; color: red; font-weight: bold; text-align: center; }
.white_text { font-size: 20px; text-align: justify; color: white; }
.orangetext { font-size: 22px; text-align: center; color: orange; }

/* Overlay */
.overlay {
    background-color: rgba(0,0,0,0.6);
    padding: 20px;
    margin: 10px 5px; /* почти до краёв */
    border-radius: 12px;

    width: 100%;
    box-sizing: border-box;
}

/* Контент с картинкой */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;

    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.text-block {
    flex: 1;
    min-width: 250px;
}

/* Изображения */
.responsive-image {
    width: 35%;
    height: auto;
}

.image-right { order: 2; }
.image-left { order: 1; }

/* Таблицы */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    word-wrap: break-word;
}

th {
    background-color: rgba(0,0,0,0.8);
    color: white;
}

.boxed-text {
    border: 1px solid orange;
    padding: 5px;
    display: inline-block;
    border-radius: 4px;
    background-color: rgba(0,0,0,0.4);
}

.center-wrapper { text-align: center; }

/* Форма обратной связи */
.form-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
}

.left-content { flex: 1; min-width: 250px; }

.contact-form {
    flex: 1;
    min-width: 250px;
    max-width: 420px;
    background-color: #DCDCDC;
    padding: 20px;
    border-radius: 12px;
    color: #000;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: #ffa500;
    color: white;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #e59400;
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .text-block, .responsive-image {
        width: 100%;
        order: 2 !important;
    }
    .button-container {
        flex-direction: column;
    }
    .form-layout {
        flex-direction: column;
    }
    .contact-form {
        max-width: 100%;
        padding: 10px;
        box-shadow: none;
    }
}



/* ===== ОСНОВНОЙ ФОН ===== */
body {
margin: 0;
font-family: Arial, sans-serif;
background-image: url('images/C.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
color: white;
}

/* ===== HEADER ===== */
header {
background: rgba(0,0,0,0.6);
padding: 20px;
text-align: center;
}

.logo {
font-size: 32px;
color: orange;
margin: 0;
}

.tagline {
margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.button-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}

.my-button {
padding: 12px 25px;
background: linear-gradient(45deg, #ec9a0c, #35260c);
border: none;
border-radius: 5px;
color: white;
cursor: pointer;
}

.my-button:hover {
opacity: 0.9;
}

/* ===== OVERLAY ===== */
.overlay {
background: rgba(0,0,0,0.6);
margin: 15px 5px;
padding: 25px;
border-radius: 12px;
box-sizing: border-box;
}

/* ===== VIDEO BLOCK ===== */
.video-block {
display: flex;
gap: 30px;
margin-bottom: 60px;
align-items: flex-start;
flex-wrap: wrap;
}

.video-wrapper {
flex: 1;
min-width: 320px;
}

.video-wrapper iframe {
width: 100%;
aspect-ratio: 16/9;
border-radius: 10px;
}

.video-text {
flex: 1;
min-width: 280px;
font-size: 18px;
line-height: 1.6;
}

/* ===== FORM ===== */
.form-layout {
display: flex;
gap: 30px;
flex-wrap: wrap;
}

.left-content {
flex: 1;
min-width: 250px;
}

.contact-form {
flex: 1;
min-width: 250px;
background: #DCDCDC;
padding: 20px;
border-radius: 12px;
color: black;
}

.contact-form input,
.contact-form textarea {
width: 100%;
padding: 10px;
margin-top: 5px;
margin-bottom: 15px;
border-radius: 6px;
border: 1px solid #ccc;
}

.contact-form button {
width: 100%;
padding: 12px;
background: orange;
border: none;
border-radius: 6px;
color: white;
cursor: pointer;
}

/* ===== TEXT COLORS ===== */
.orangetext {
color: orange;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

.video-block {
flex-direction: column;
}

.button-container {
flex-direction: column;
}

.form-layout {
flex-direction: column;
}

}


/* Контейнер для видео + текста */
.video-text-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Видео блок */
.video-wrapper {
    flex: 1;
    min-width: 320px;
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
}

/* Текст рядом с видео */
.video-text-container .text-block {
    flex: 1;
    min-width: 280px;
    font-size: 18px;
    line-height: 1.6;
}

/* Адаптив */
@media (max-width: 768px) {
    .video-text-container {
        flex-direction: column;
    }

    .video-text-container .text-block,
    .video-wrapper {
        width: 100%;
    }
}
