@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Edu+TAS+Beginner&display=swap');
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background-image: url("../images/background42.jpg");
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 17px;
}

main {
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0px;
}

h1 {
    font-size: 200%;
    text-shadow: 2px 1px 0px #fff, 4px 2px 0px #ccc5f4;
}

h2 {
    font-size: 150%;
    text-emphasis-color: #00BFFF;
}

header {
    padding: 10px 15px 5px 15px;
    position: fixed;
    background: #00BFFF;
    width: 100%;
    z-index: 5;
}

p {
    line-height: 150%;
    text-indent: 30px;
}

li {
    margin-top: 10px;
    list-style-image: linear-gradient(#FA9483, #FA9483);
    padding-left: 15px;
}

navbar {
    display: inline-block;
    margin-bottom: 10px;
    overflow: auto;
    margin-left: 30px;
}

navbar a {
    color: white;
    display: inline-block;
    text-decoration: none;
    margin-right: 20px;
    font-size: 20px;
    font-weight: bold;
}

navbar a:hover {
    border-bottom: 7px solid rgb(206, 252, 252);
    color: rgb(206, 252, 252);
    /* text-decoration: underline 1px;*/
    transition: color;
}

navbar .active {
    border-bottom: 7px solid rgb(206, 252, 252);
}

section {
    padding: 90px 15%;
}

footer {
    min-height: 80px;
    background: #00BFFF;
    text-align: center;
    color: white;
    padding: 20px;
}

#index {
    min-height: 100vh;
    background: linear-gradient(#1e1e1e65, #2c2c2cae), url('../images/comrat.jpg');
    background-size: cover;
}

.index-info {
    margin-top: 25vh;
    text-align: center;
}



/* Уменьшаем общие поля футера */
footer {
    padding: 20px 15px 10px 15px !important; /* 10px снизу вместо стандартных 30px */
    min-height: auto !important; /* Убираем жесткое ограничение по высоте */
}

/* Имена и школа (жирные) */
.footer-names,
.footer-school {
    font-size: 0.8em;
    font-weight: bold !important;
    margin: 5px 0;
}

/* Время: увеличиваем шрифт и убираем отступ снизу */
#result {
    font-size: 0.8em !important; 
    font-weight: 200 !important;
    margin-top: 15px !important;  /* Расстояние над временем */
    margin-bottom: 0 !important;  /* Убираем расстояние ПОД временем */
    padding-bottom: 0 !important;
}



#index h1 {
    font-size: 350%;
    color: white;
    display: inline-block;
    border: 2px solid gray;
    padding: 20px;
    border-radius: 5px;
    background-color: #2d40577b;
}

.link-index {
    display: inline-block;
    margin-right: 30px;
    color: white;
    text-decoration: underline #FA9483 2px;
    font-size: 20px;
}

.link-index:hover {
    color: #f3deca;
}

.logo {
    height: 50px;
}

.centered {
    text-align: center;
}

.vframe {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 35vw;
}

.row {
    overflow: auto;
}

[class^="col-"] {
    float: left;
    padding: 0px 10px;
}

.col-50 {
    width: 50%;
}

.cform,
.contacte {
    border: 2px solid #f3deca;
    border-radius: 5px;
    background-color: #f3deca3e;
    padding: 5px 5%;
    height: 410px;
}

.cform h2 {
    margin-top: 0px;
}

.cform input,
.cform textarea {
    width: 100%;
    font-size: 15px;
    font-family: Montserrat;
    padding: 4px 6px;
    margin-bottom: 10px;
    resize: none;
}

.harta {
    width: 100%;
    height: 25vh;
}

.loc {
    border-bottom: 2px rgb(149, 247, 247) dashed;
    margin-top: 10px;
    overflow: auto;
    transition: transform .2s;
}


.loc h2 {
    color: rgb(0, 191, 255);
}

.loc img {
    float: left;
    width: 30vh;
    height: 30vh;
    margin: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.loc:hover img {
    -ms-transform: scale(1.5);
    /* IE 9 */
    -webkit-transform: scale(1.5);
    /* Safari 3-8 */
    transform: scale(1.5);
}

#hamburger {
    float: right;
    color: white;
    position: absolute;
    font-size: 28px;
    top: 24px;
    right: 22px;
    display: none;
    cursor: pointer;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #20B2AA;
    /* Зеленый цвет */
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #14a8a1;
    /* Темнее зеленый при наведении */
}


.custom-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #20B2AA;
    /* Зеленый цвет */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-button:hover {
    background-color: #14a8a1;
    /* Темнее зеленый при наведении */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Лёгкая тень */
}


/*
.galerie-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.galerie-container img {
    width: 300px;
    height: 250px;
    object-fit:cover;
    border-radius: 5px;
    transition: transform 0.3s;
}

.galerie-container img:hover {
    transform: scale(1.03);
}
*/

.galerie-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-text {
    padding: 10px;
    text-align: center;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-container:hover img {
    transform: scale(1.05);
}


@media (max-width: 1000px) {
    section {
        padding: 90px 8%;
    }
}

@media (max-width: 800px) {

    body {
        font-size: 16px;
    }

    section {
        @import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Edu+TAS+Beginner&display=swap');

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background-image: url("../images/background42.jpg");
    width: 100%;
    height: 100%;
    font-family: Montserrat, sans-serif;
    margin: 0;
    font-size: 17px;
}

main {
    min-height: 100vh;
}

header {
    padding: 10px 15px;
    position: fixed;
    background: rgb(0, 191, 255);
    width: 100%;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
}

/* Навигация для ПК */
navbar {
    display: flex;
    margin-left: 30px;
}

navbar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

navbar a:hover, navbar .active {
    border-bottom: 4px solid rgb(206, 252, 252);
    color: rgb(206, 252, 252);
}

/* Группа иконок справа */
.icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

#hamburger {
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: none; /* Скрыт на ПК */
}

/* Переключатель языка */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 120px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.lang-dropdown a:hover {
    background: #f0f0f0;
}

/* Контент */
section {
    padding: 100px 15% 50px 15%; /* Большой отступ сверху для фикс. шапки */
}

h1.centered {
    text-align: center;
    font-size: 250%;
    margin-top: 20px;
    margin-bottom: 30px;
    text-shadow: 2px 1px 0px #fff, 4px 2px 0px #ccc5f4;
}

.content-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.column-left, .column-right {
    flex: 1;
    min-width: 300px;
}

.main-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

p {
    line-height: 1.6;
    text-indent: 0; /* Убрал отступ для чистоты */
    margin-top: 0;
}

/* Футер */
/*
footer {
    background: #1c0bb9;
    color: white;
    text-align: center;
    padding: 20px;
}
*/

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 800px) {
    #hamburger {
        display: block; /* Показываем гамбургер */
    }

    /* Выпадающее меню под гамбургером */
    navbar {
        display: none; /* Скрыто по умолчанию */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgb(0, 191, 255);
        flex-direction: column;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Класс, который добавляет ваш JS (mobile или show) */
    navbar.mobile {
        display: flex;
    }

    navbar a {
        margin: 0;
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    section {
        padding: 110px 20px 40px 20px !important; /* Чтобы текст не прятался под меню */
    }

    h1.centered {
        font-size: 1.8rem;
    }
}
    }

    #index h1 {
        font-size: 270%;
    }

    [class^="col-"] {
        width: 100% !important;
        padding: 5px 0px;
    }

    navbar {
        display: block;
    }

    navbar a {
        display: none;
        text-align: center;
        margin-top: 12px;
    }

    navbar.mobile a {
        display: block;
    }

    #hamburger {
        display: block;
    }
}

.icons {
    float: right;
}

.icons .myIcon {
    color: #f7f1f0;
    padding: 22px 20px 19px 20px;
    font-size: 1.5em;
    transition: color 1s;
}


/*Слайдер*/
.slideshow-container {
    color: white;
    position: relative;
    margin: 95px auto 5px;
    opacity: 1;
    filter: alpha(opacity=100);
    padding: 0;
    border: 3px solid rgb(172, 49, 49);
    box-shadow: 0 0 15px rgb(248, 252, 23);

}

.slideshow-container:hover {
    opacity: 0.5;
    filter: alpha(opacity=90);
}


#slider img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.slide {
    display: none;
    height: 100%;
}

.anim {
    -webkit-animation-name: anim;
    -webkit-animation-duration: 2s;
    animation-name: anim;
    animation-duration: 2s;
}

@-webkit-keyframes anim {
    from {
        opacity: 0.8;
        transition: 2s;
    }

    to {
        opacity: 1
    }
}

@keyframes anim {
    from {
        opacity: .8;
        transition: 2s;
    }

    to {
        opacity: 1
    }
}



.language-switcher {
  position: relative;
  display: inline-block;
  top: -3px;
}

.lang-btn {
  background: #fff;
  border: 1px solid #ccc;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 160px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 1000;
}

.lang-dropdown a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #222;
}

.lang-dropdown a:hover {
  background: #f5f5f5;
}

.lang-dropdown.show {
  display: block;
}



/* ===== GALLERY  ===== */

/* ===== АККУРАТНАЯ WOW ГАЛЕРЕЯ (ВСЕ РАВНЫЕ) ===== */

.galerie-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 25px;
}

/* Карточка */
.image-container {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
}

/* Картинка */
.image-container img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover эффект */
.image-container:hover img {
    transform: scale(1.15);
    filter: brightness(0.7);
}

/* Overlay */
.image-overlay {
    position: absolute;
    inset: 0;
    padding: 15px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    opacity: 0;
    transition: 0.4s;
}

/* Текст */
.image-text {
    color: #fff;
    font-size: 14px;
    transform: translateY(20px);
    transition: 0.4s;
}

/* Появление */
.image-container:hover .image-overlay {
    opacity: 1;
}

.image-container:hover .image-text {
    transform: translateY(0);
}

/* Лёгкий блик (аккуратный) */
.image-container::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 45%,
        rgba(255,255,255,0.4),
        transparent 55%
    );
    opacity: 0;
}

.image-container:hover::after {
    animation: shine 0.8s ease;
}

@keyframes shine {
    0% { top: -100%; left: -100%; opacity: 0; }
    40% { opacity: 1; }
    100% { top: 100%; left: 100%; opacity: 0; }
}

/* Мобильная версия */
@media (max-width: 768px) {

    .galerie-container {
        grid-template-columns: 1fr;
    }

    .image-container img {
        height: 240px;
    }

    .image-overlay {
        opacity: 1;
    }

    .image-text {
        transform: translateY(0);
    }
}


/* ===== НОВЫЙ БЛОК КАРТИНКА + ТЕКСТ ===== */

.content-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.column-left,
.column-right {
    flex: 1;
    min-width: 300px;
}

.main-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* ===== ПРЕМИУМ СЛАЙДЕР ===== */

.card-slider-wrapper {
    position: relative;
    margin-top: 50px;
}

.card-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
}

.card-slider::-webkit-scrollbar {
    display: none;
}

.card {
    min-width: 260px;
    height: 170px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    transition: 0.4s;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*  эффект */
.card:hover {
    transform: scale(1.15);
    z-index: 2;
}

/* кнопки */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 20px;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.nav-btn.left {
    left: 10px;
}

.nav-btn.right {
    right: 10px;
}

.nav-btn:hover {
    background: black;
}

/* адаптив */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
    }
}

/* =====  GLASS FOOTER ===== */

.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.2);
    color: white;
    text-align: center;
    padding: 30px 15px;
    margin-top: 50px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}

/* Контейнер */
.footer-content {
    max-width: 900px;
    margin: auto;
}

/* ===== ИМЕНА ===== */

.footer-names {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1rem;
    font-weight: 200;
    margin-bottom: 12px;
}

/* ЖИВЫЕ РАЗДЕЛИТЕЛИ */
.footer-names span {
    position: relative;
    padding: 5px 10px;
    transition: 0.3s;
    cursor: default;
}

/* Добавляем разделитель */
.footer-names span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -8px;
    color: rgba(255,255,255,0.6);
    transition: 0.3s;
}

/* ===== ПОДСВЕТКА ПРИ НАВЕДЕНИИ ===== */

.footer-names span:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* подсветка разделителя рядом */
.footer-names span:hover::after {
    color: #ffffff;
    text-shadow: 0 0 8px white;
}

/* ===== ШКОЛА ===== */

.footer-school {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 15px;
}

/* ===== ВРЕМЯ ===== */

.footer-time {
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.7;
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */

.footer-names,
.footer-school,
.footer-time {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.footer-school {
    animation-delay: 0.2s;
}

.footer-time {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Мобильная версия */
@media (max-width: 600px) {
    .footer-names {
        flex-direction: column;
        gap: 5px;
    }

    .footer-names span::after {
        display: none;
    }
}
