/* ====== ПОДКЛЮЧЕНИЕ ШРИФТОВ ====== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=PT+Sans:wght@400;700&display=swap');

/* ====== ОСНОВНЫЕ СТИЛИ ====== */
* {
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Sans', 'Arial', sans-serif;
    background: #080808;
    color: #838282;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    font-weight: 500;
    color: #e0e0e0;
}

/* Выделение текста */
::-moz-selection { background-color: #0b1d25; color: #3f2b2b; }
::selection { background-color: #07222e; color: #908282; }

a {
    font-size: 14px;
    outline: 0;
    color: #fffcfc;
    text-decoration: none;
}
a:hover { text-decoration: underline; }
p a:hover { color: #26a8e5; }
a:active {
    outline: none;
    transform: translateY(2px);
}

.clearfix { clear: both; }

/* Основной контент */
#main-content p {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    font-style: italic;
    line-height: 1.5;
}

.accordion {
    display: flex;
    flex-direction: column;
    border: 1px solid #020524;
    border-top: none;
    margin: 10px 0;
    width: 100%;
    position: relative;
    padding: 0;
}
.accordion a {
    display: block;
    text-decoration: none;
}
.accordion h2, .accordion a {
    background-color: #FFF;
    background-image: linear-gradient(to top, #F1F1F1, #FFF);
    border-top: 1px solid #DDD;
    color: #3a3939;
    font: 14px/30px 'Verdana', sans-serif;
    margin: 0;
    padding: 10px;
}

#accordion-html5 { clear: both; margin-top: 20px; }
details summary::-webkit-details-marker { display: none; }

/* Параграфы - единый стиль */
p {
    font-size: 16px;
    line-height: 1.6;
    color: #979696;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Заголовки */
h1, h2, h3, h4 {
    transition: font-size 0.5s linear;
}
h1 {
    font-size: 24px;
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    text-align: center;
    line-height: 1.4;
    margin: 30px 35px;
    padding: 0;
    color: #979696;
    font-weight: 500;
}
h1 a:hover { text-decoration: none; color: #29b0e5; }

h2 {
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    font-size: 40px;
    text-align: center;
    padding: 10px;
    margin: 60px 15px;
    color: #979696;
    font-weight: 400;
    line-height: 1.3;
}
h3 {
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    font-size: 30px;
    margin: 1em 0 0.6em 0;
    padding: 0 0 0 15px;
    font-weight: normal;
    color: #FFDA44;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    line-height: 40px;
}
h4 {
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    text-align: center;
    padding: 10px;
    margin: 5px 0 0 0;
    color: #979696;
}
h4 a { text-decoration: underline; }

/* Навигация (десктоп - будет скрыта гамбургером) */
nav {
    background: #222;
    padding: 0;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
nav a {
    color: #7e7c7c;
    display: block;
    float: left;
    padding: 12px 16px;
    font-weight: 500;
}
nav a:hover { 
    text-decoration: none; 
    background: #5D4812; 
    color: #ffffff;
}

/* Основная разметка */
.left-col { width: 70%; float: left; }
.sidebar {
    width: 20%;
    float: right;
    margin-bottom: 10px;
}

#wrapper {
    margin: 10px auto;
    max-width: 1200px;
    width: 100%;
    background: #000001;
    padding: 10px 0;
    background: 
        linear-gradient(rgba(44, 44, 44, 0.95), rgba(0, 0, 0, 0.95)),
        url('../images/films.svg');
    background-size: cover;
    background-attachment: fixed;
}

/* Разделы */
#featured, #latest, #about { padding: 20px; }

/* Изображения */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Форма обратной связи */
#fonforma {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 220px;
    background: #CCC;
    border: 10px solid #FFF;
    box-shadow: 0px 0px 10px #000;
    border-radius: 10px;
    margin: 0 auto;
}

#form1 {
    margin: 1em 0;
    padding-top: 10px;
}
#form1 fieldset {
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    width: 100%;
    max-width: 260px;
    margin-left: 25px;
}
#form1 label { display: block; }
#form1 input, #form1 textarea {
    width: 100%;
    border: 1px solid #DDD;
    border-radius: 0.3em;
    background: #FFF;
    padding: 3px;
}
#form1 textarea {
    height: 125px;
    overflow: auto;
}
#form1 button {
    width: 150px;
    height: 37px;
    line-height: 37px;
    border: none;
    color: #000;
    cursor: pointer;
    text-align: center;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
}
tr:nth-of-type(odd) {
    background: #EEE;
}
th {
    background: #2e2a2a;
    color: white;
    font-weight: bold;
}
td, th {
    padding: 6px;
    border: 1px solid #CCC;
    text-align: left;
}

footer { 
    padding: 20px; 
    text-align: center;
    color: #888;
}
pre { overflow: scroll; font-size: 10px; }

/* Слайд-шоу */
.slideshow-container {
    position: relative;
    max-width: 400px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fade {
    opacity: 1;
    animation-name: fade;
    animation-duration: 2.5s;
    animation-fill-mode: forwards;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}
.slide img,
.slide object {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@keyframes fade {
    from { opacity: 0.1; }
    to { opacity: 1; }
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.dots-container {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    flex-shrink: 0;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Видеоплеер */
#video-container {
    display: none;
    margin-top: 20px;
}

#video-player {
    width: 100%;
    max-width: 800px;
    height: auto;
}

#video-link {
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
}

#video-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.video-player {
    width: 100%;
    max-width: 800px;
    height: auto;
}

video {
    width: 100%;
    height: auto;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

input[type="range"] {
    width: 100px;
    margin: 0 10px;
}

#video-links ul {
    list-style: none;
    padding: 0;
}

#video-links ul li {
    margin: 10px 0;
}

#video-links ul li a {
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
}

#video-links ul li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.indented-text {
    background: transparent;
    white-space: pre-wrap;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    color: #cccccc;
}
.responsive-object {
    width: 100%;
    height: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Фотоколлаж с логотипами */
.photo-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.photo-collage img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
}

.photo-collage img:hover,
.photo-collage img.active {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.blink {
    color: red;
    font-weight: bold;
    animation: blink 1s infinite;
}

.news-banner {
    text-align: center;
    padding: 10px;
    font-size: 3.2em;
    font-family: Arial, sans-serif;
}

/* Контейнер текста + коллажа */
.text-photo-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Текст */
.text-photo-layout .indented-text {
    flex: 3;
    color: #cccccc;
}

/* Коллаж СПРАВА */
.school-photo-collage {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.school-photo-collage img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.school-photo-collage img.photo-large {
    width: 100%;
    min-height: 320px;
    object-fit: cover;
}

/* ====== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ====== */

/* Двухколоночный макет главной страницы */
.main-page-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 20px;
}

/* Текст - уменьшенная колонка (35%) */
.main-content-text {
    flex: 0 0 35%;
    max-width: 35%;
    min-width: 250px;
    white-space: pre-wrap;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    color: #cccccc;
    font-size: 14px;
    border-radius: 8px;
}

/* Фотоколлаж - увеличенная колонка (60%) */
.main-gallery-container {
    flex: 0 0 60%;
    max-width: 60%;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 5px;
}

.main-gallery-container img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.main-gallery-container img:hover {
    transform: scale(1.02);
}

/* Вариант с 2 колонками больших фото */
.main-gallery-container.double-grid {
    grid-template-columns: repeat(2, 1fr);
}

.main-gallery-container.double-grid img {
    height: 220px;
}

/* Специфические стили для навигации главной страницы */
.main-page-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 10px;
    background-color: #222;
    border-radius: 8px;
}

.main-page-header nav a {
    text-decoration: none;
    color: #b0b0b0;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s;
    border: none;
    outline: none;
    background: none;
    float: none;
    display: inline-block;
}

.main-page-header nav a:hover,
.main-page-header nav a:focus,
.main-page-header nav a:active {
    text-decoration: none;
    background-color: #5D4812;
    color: #ffffff;
    border-radius: 4px;
}

/* Центрирование для главной страницы */
.page-center {
    text-align: center;
}

/* Обертка для главной страницы */
.main-page-wrapper {
    margin: 10px auto;
    max-width: 1400px;
    width: 100%;
    background: #000001;
    padding: 20px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Футер главной страницы */
.main-page-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aab0b7;
    font-size: 14px;
}

/* Стили для объекта с логотипом */
.page-center object {
    max-width: 600px;
    margin: 0 auto;
}

.page-center img {
    max-width: 100%;
    height: auto;
}

/* Линия разделения */
hr {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 30px 0;
}

/* ====== БЛОК С КАРТИНКОЙ СЛЕВА, ТЕКСТОМ СПРАВА ====== */
/* ТОЛЬКО МАСШТАБИРОВАНИЕ, БЕЗ ПЕРЕХОДА В КОЛОНКУ */

.image-text-block-left {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 30px;
}

.image-text-block-left .image-container {
    flex-shrink: 0;
    width: 45%;
    max-width: 500px;
}

.image-text-block-left .image-container img {
    width: 60%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

.image-text-block-left .text-content {
    flex: 1;
    padding: 20px;
}

.image-text-block-left .text-content h1,
.image-text-block-left .text-content h2,
.image-text-block-left .text-content h3,
.image-text-block-left .text-content p {
    text-align: left;
    margin: 0 0 15px 0;
    color: #979696;
}

.image-text-block-left .text-content h1 {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
}

.image-text-block-left .text-content p {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #979696;
    max-width: 100%;
}

/* ====== БЛОК С КАРТИНКОЙ СПРАВА, ТЕКСТОМ СЛЕВА ====== */

.image-text-block-right {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: center;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 30px;
}

.image-text-block-right .image-container {
    flex-shrink: 0;
    width: 45%;
    max-width: 500px;
}

.image-text-block-right .image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

.image-text-block-right .text-content {
    flex: 1;
    padding: 20px;
}

.image-text-block-right .text-content h1,
.image-text-block-right .text-content h2,
.image-text-block-right .text-content h3,
.image-text-block-right .text-content p {
    text-align: left;
    margin: 0 0 15px 0;
    color: #979696;
}

.image-text-block-right .text-content h1 {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
}

.image-text-block-right .text-content p {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #979696;
    max-width: 100%;
}

/* ====== БАННЕРЫ ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-banner,
.main-banner-second,
.main-banner-third,
.main-banner-fourth {
    animation: fadeIn 0.8s ease-out;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    width: 100%;
    height: auto;
    min-height: 400px;
    border-radius: 0;
}

.main-banner picture,
.main-banner-second picture,
.main-banner-third picture,
.main-banner-fourth picture {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
}

.main-banner .banner-image,
.main-banner-second .banner-image,
.main-banner-third .banner-image,
.main-banner-fourth .banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 0;
}

@media (hover: hover) {
    .main-banner:hover,
    .main-banner-second:hover,
    .main-banner-third:hover,
    .main-banner-fourth:hover {
        transform: scale(1.01);
        transition: transform 0.3s ease;
    }
    
    .main-banner:hover::before,
    .main-banner-second:hover::before,
    .main-banner-third:hover::before,
    .main-banner-fourth:hover::before {
        filter: blur(20px) brightness(0.9);
        transition: filter 0.3s ease;
    }
}

.main-banner::before,
.main-banner-second::before,
.main-banner-third::before,
.main-banner-fourth::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.8);
    z-index: 0;
    border-radius: 0;
}

.main-banner::after,
.main-banner-second::after,
.main-banner-third::after,
.main-banner-fourth::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 2;
}

/* ====== МЕДИА-ЗАПРОСЫ ====== */

@media (max-width: 992px) {
    .main-banner,
    .main-banner-second,
    .main-banner-third,
    .main-banner-fourth {
        min-height: 320px;
        max-width: 90%;
    }
    
    .main-gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-gallery-container img {
        height: 160px;
    }
    
    .photo-collage {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    h2 {
        font-size: 32px;
        margin: 50px 15px;
    }
    
    .image-text-block-left,
    .image-text-block-right {
        gap: 30px;
        margin: 50px auto;
        padding: 0 25px;
    }
    
    .image-text-block-left .image-container,
    .image-text-block-right .image-container {
        width: 45%;
        max-width: 400px;
    }
    
    .image-text-block-left .text-content h1,
    .image-text-block-right .text-content h1 {
        font-size: 28px;
    }
    
    .image-text-block-left .text-content p,
    .image-text-block-right .text-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .main-banner,
    .main-banner-second,
    .main-banner-third,
    .main-banner-fourth {
        min-height: 250px;
        max-width: 100%;
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .main-banner::before,
    .main-banner-second::before,
    .main-banner-third::before,
    .main-banner-fourth::before {
        left: 0;
        right: 0;
        filter: blur(10px) brightness(0.8);
    }
    
    .image-text-block-left,
    .image-text-block-right {
        gap: 20px;
        margin: 40px auto;
        padding: 0 20px;
        flex-direction: row;
    }
    
    .image-text-block-left .image-container,
    .image-text-block-right .image-container {
        width: 40%;
        max-width: 280px;
    }
    
    .image-text-block-left .text-content,
    .image-text-block-right .text-content {
        padding: 10px;
    }
    
    .image-text-block-left .text-content h1,
    .image-text-block-right .text-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .image-text-block-left .text-content p,
    .image-text-block-right .text-content p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .main-gallery-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .main-gallery-container img {
        height: 150px;
    }
    
    .main-page-header nav {
        gap: 10px;
        padding: 8px;
    }
    
    .main-page-header nav a {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .page-center h2 {
        font-size: 24px;
    }
    
    .photo-collage {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        gap: 15px;
    }
    
    .indented-text,
    #content {
        padding: 15px !important;
        margin: 15px auto !important;
    }
    
    h1 {
        font-size: 22px;
        margin: 20px;
    }
    
    h2 {
        font-size: 28px;
        margin: 40px 10px;
    }
    
    p {
        font-size: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    .image-text-block-left,
    .image-text-block-right {
        gap: 15px;
        margin: 35px auto;
        padding: 0 15px;
        flex-direction: row;
    }
    
    .image-text-block-left .image-container,
    .image-text-block-right .image-container {
        width: 35%;
        max-width: 180px;
    }
    
    .image-text-block-left .text-content h1,
    .image-text-block-right .text-content h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .image-text-block-left .text-content p,
    .image-text-block-right .text-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .dots-container {
        margin-top: 10px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
    }
}

@media (max-width: 480px) {
    .main-banner,
    .main-banner-second,
    .main-banner-third,
    .main-banner-fourth {
        min-height: 200px;
        margin: 15px auto;
    }
    
    .main-banner::before,
    .main-banner-second::before,
    .main-banner-third::before,
    .main-banner-fourth::before {
        filter: blur(8px) brightness(0.8);
    }
    
    .image-text-block-left,
    .image-text-block-right {
        gap: 12px;
        margin: 30px auto;
        padding: 0 12px;
        flex-direction: row;
    }
    
    .image-text-block-left .image-container,
    .image-text-block-right .image-container {
        width: 32%;
        max-width: 150px;
    }
    
    .image-text-block-left .text-content,
    .image-text-block-right .text-content {
        padding: 5px;
    }
    
    .image-text-block-left .text-content h1,
    .image-text-block-right .text-content h1 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .image-text-block-left .text-content p,
    .image-text-block-right .text-content p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .main-gallery-container {
        padding: 3px;
        gap: 5px;
    }
    
    .main-gallery-container img {
        height: 130px;
    }
    
    .main-page-wrapper {
        padding: 10px;
    }
    
    .main-page-footer {
        font-size: 12px;
    }
    
    .photo-collage {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .photo-collage img {
        max-width: 200px;
        margin: 0 auto;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    p {
        font-size: 14px;
    }
    
    .image-container img {
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    .main-banner,
    .main-banner-second,
    .main-banner-third,
    .main-banner-fourth {
        min-height: 160px;
    }
    
    .image-text-block-left,
    .image-text-block-right {
        gap: 10px;
        padding: 0 10px;
        flex-direction: row;
    }
    
    .image-text-block-left .image-container,
    .image-text-block-right .image-container {
        width: 30%;
        max-width: 120px;
    }
    
    .image-text-block-left .text-content h1,
    .image-text-block-right .text-content h1 {
        font-size: 16px;
    }
    
    .image-text-block-left .text-content p,
    .image-text-block-right .text-content p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    h2 {
        font-size: 22px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    .photo-collage img {
        max-width: 160px;
    }
}

@media (max-width: 667px) and (orientation: landscape) {
    .main-banner,
    .main-banner-second,
    .main-banner-third,
    .main-banner-fourth {
        min-height: 200px;
    }
    
    .image-text-block-left .image-container,
    .image-text-block-right .image-container {
        max-width: 200px;
    }
    
    .image-text-block-left .text-content h1,
    .image-text-block-right .text-content h1 {
        font-size: 22px;
    }
    
    .image-text-block-left .text-content p,
    .image-text-block-right .text-content p {
        font-size: 15px;
    }
    
    .photo-collage {
        grid-template-columns: repeat(3, 1fr);
    }
}



/* ====== WAVE CUSTOM BLOCK — ФИНАЛ ====== */

.wave-custom-block {
    display: flex;
    flex-direction: row;            /* ВСЕГДА в строку */
    align-items: center;
    gap: 40px;
    margin: 60px auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

/* ТЕКСТ — СЛЕВА (35%) */
.wave-custom-text {
    flex: 0 0 30%;
    max-width: 30%;
    order: 1;
    padding: 20px;
}

.wave-custom-text h1 {
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    font-size: 24px;
    line-height: 1.4;
    margin: 0;
    color: #979696;
    font-weight: 500;
    text-align: left;
}

/* КАРТИНКА — СПРАВА (65%) */
.wave-custom-image {
    flex: 0 0 65%;
    max-width: 65%;
    order: 2;
}

.wave-custom-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ====== ПЛАНШЕТЫ ====== */
@media (max-width: 992px) {
    .wave-custom-block {
        gap: 30px;
        padding: 0 25px;
    }

    .wave-custom-text h1 {
        font-size: 20px;
    }
}

/* ====== МОБИЛЬНЫЕ ====== */
@media (max-width: 768px) {
    .wave-custom-block {
        gap: 20px;
        padding: 0 20px;
    }

    .wave-custom-text {
        padding: 15px;
    }

    .wave-custom-text h1 {
        font-size: 16px;
        line-height: 1.4;
    }
}

/* ====== МАЛЕНЬКИЕ МОБИЛЬНЫЕ ====== */
@media (max-width: 480px) {
    .wave-custom-block {
        gap: 12px;
        padding: 0 12px;
    }

    .wave-custom-text h1 {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* ====== ЭКСТРЕМАЛЬНО МАЛЕНЬКИЕ ====== */
@media (max-width: 360px) {
    .wave-custom-text h1 {
        font-size: 12px;
    }
}
