* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    background: linear-gradient(to bottom, #ffffff, #e0f7fa);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.pixabay.com/photo/2017/08/30/01/05/milky-way-2695569_1280.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: 1400px;
    margin: 0 auto;
}

/* === HEADER === */
header {
    padding: 25px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    margin-bottom: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_logo {
    max-height: 60px;
    width: auto;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    font-size: 18px;
    color: #000000;
    padding: 12px 20px;
    transition: color 0.3s ease;
}

header nav ul li:not(.btn) a:hover {
    border-bottom: 2px solid #e11829;
}
.painike {
    border-bottom: 2px solid #e11829;
 background-color: #e11829;
    color: white;
    border-radius: 5px;
    padding: 12px 20px;
    transition: background-color 500ms ease;
}
header nav ul li.btn a {
    background-color: #e11829;
    color: white;
    border-radius: 5px;
    padding: 12px 20px;
    transition: background-color 500ms ease;
}

header nav ul li.btn a:hover {
    background-color: #b71c1c;
}

/* Кнопка для слабовидящих */
#accessibility-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    transition: transform 0.3s ease;
}

#accessibility-toggle:hover {
    transform: scale(1.1);
}

#accessibility-toggle svg {
    width: 24px;
    height: 24px;
}

/* === DROPDOWN MENU === */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    min-width: 250px;
    border: 1px solid #e11829;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #e11829;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dropdown-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* === DROPDOWN MENU kellari === */
.dropdown1 {
    position: relative;
}

.dropdown-toggle1 {
    cursor: pointer;
}

.dropdown-menu1 {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    min-width: 250px;
    border: 1px solid #e11829;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu1[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content1 h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #e11829;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dropdown-content1 p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.contact-icon1 {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* === BANNER === */
.banner {
    width: 100vw;
    height: 70vh;
    min-height: 400px;
    margin-left: calc((100vw - 100%) / -2);
    background: url("picture/logo_3_better_2.jpeg") no-repeat center center;
    background-size: cover;
    background-position: right center;
    position: relative;
    z-index: 1;
}

.banner_content {
    position: absolute;
    top: 80px;
    left: 70px;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    text-align: left;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 1s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner_content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.banner_content h1 {
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 30px;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.banner_content .btn {
    background-color: #e11829;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 36px;
    font-size: 18px;
    cursor: pointer;
    transition: all 500ms ease;
    display: inline-block;
}

.banner_content .btn:hover {
    background-color: #b71c1c;
    transform: scale(1.05);
}

/* === SECTION DIVIDER === */
.section-divider {
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
}

.divider-line {
    flex: 1;
    height: 2px;
    background-color: #999;
}

.divider-icon {
    width: 60px;
    height: 60px;
    margin: 0 20px;
    animation: none;
}

/* === WHY CHOOSE US === */
.why-choose-us {
    padding: 80px 0;
    background-color: #f8f8f8;
    text-align: center;
    margin-top: -1px;
}

.why-choose-us h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 70px;
    color: #000000;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e11829;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(183, 28, 28, 0.2);
}

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* === PROMOTIONS === */
.promotions {
    padding: 60px 0;
    background-color: #950000;
    text-align: center;
}

.promotions h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.7rem;
    margin-bottom: 40px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.promo-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.promo-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #7a0000;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.promo-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.promo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #950000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.promo-card p {
    font-size: 1rem;
    color: #333;
}

/* === SCHEDULE === */
.schedule {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
    margin-top: -1px;
}

.schedule h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #000000;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease forwards;
}

.tabs {
    position: relative;
}

.tabs input {
    display: none;
}

.tabs label {
    display: inline-block;
    padding: 15px 30px;
    background-color: #f0f0f0;
    border-radius: 30px 30px 0 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0 5px;
    font-weight: 600;
    color: #333;
}

.tabs input:checked + label {
    background-color: #e11829;
    color: white;
    transform: translateY(-5px);
}

.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 12px 12px;
    padding: 40px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.tabs input:checked ~ .tab-content {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#content1 {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.group-card {
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e11829;
    width: 30%;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(183, 28, 28, 0.2);
}

.group-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.detail {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.detail-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.status {
    font-weight: bold;
    margin-top: 15px;
}

.status.complete {
    color: green;
}

.status.inactive {
    color: #b71c1c;
}

.note {
    margin-top: 40px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
}

.note-icon {
    width: 40px;
    height: 40px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.note p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* === OUR BRANCH === */
.our-branch {
    padding: 80px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.our-branch h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000000;
}

.map-wrapper {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.branch-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.branch-card {
    background: #ffffff;
    border: 3px solid #e11829;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 350px;
    text-align: left;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(183, 28, 28, 0.2);
}

.branch-card h3 {
    font-size: 1.5rem;
    color: #e11829;
    margin-bottom: 15px;
}

.branch-card p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.branch-card p::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.branch-card p:nth-child(2)::before {
    background-image: url('https://cdn-icons-png.flaticon.com/512/927/927567.png');
}

.branch-card p:nth-child(3)::before {
    background-image: url('https://cdn-icons-png.flaticon.com/512/597/597177.png');
}

.branch-card p:nth-child(4)::before {
    background-image: url('https://cdn-icons-png.flaticon.com/512/3652/3652199.png');
}

.branch-card a {
    display: inline-block;
    margin-top: 15px;
    color: #e11829;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.branch-card a:hover {
    color: #b71c1c;
}

/* === INSTRUCTORS === */
.instructors {
    padding: 60px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.instructors h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.7rem;
    margin-bottom: 40px;
    color: #333;
}

.instructor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.instructor-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
}

.instructor-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    pointer-events: none; /* Изображения некликабельны */
}

.instructor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #e11829;
}

.instructor-card p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* === VIDEO SECTION === */
.video-section {
    padding: 60px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.video-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.7rem;
    margin-bottom: 30px;
    color: #333;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper iframe {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* === REVIEWS === */
.reviews {
    padding: 60px 0;
    background-color: #e0f7fa;
    text-align: center;
}

.reviews h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.7rem;
    margin-bottom: 40px;
    color: #333;
}

.review-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.review-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
}

.review-card h4 {
    font-size: 1.2rem;
    color: #e11829;
}

/* === FOOTER === */
footer {
    padding: 40px 0 20px;
    background-color: #333;
    color: white;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 50px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-links ul li a {
    color: white;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #e11829;
}

.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.footer-contact input {
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.footer-contact button {
    background-color: #e11829;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-contact button:hover {
    background-color: #b71c1c;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* === SCROLL TOP BUTTON === */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 80px;
    background-color: #e11829;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn::before {
    content: '↑';
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    display: block;
}


#scrollTopBtn:hover {
    background-color: #b71c1c;
    transform: scale(1.1);
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 80vh;
}

.signup-modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 500px;
}

.signup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.signup-icon {
    width: 40px;
    height: 40px;
}

.signup-modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #e11829;
}

.signup-note {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

#signupForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

#signupForm label {
    font-size: 1.1rem;
}

.faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.faq-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #000000;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-item h3 {
    font-size: 1.5rem;
    color: #e11829;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Режим для слабовидящих (high-contrast) */
body.high-contrast {
    background: white !important;
    color: black !important;
}

body.high-contrast::before {
    background-image: none !important;
    opacity: 0 !important;
}

.high-contrast * {
    color: black !important;
    background: white !important;
    border-color: black !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.high-contrast a,
.high-contrast a:hover,
.high-contrast button,
.high-contrast button:hover,
.high-contrast input,
.high-contrast label,
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast p,
.high-contrast li,
.high-contrast .status,
.high-contrast .status.complete,
.high-contrast .status.inactive {
    color: black !important;
    background: white !important;
    border-color: black !important;
}

.high-contrast header,
.high-contrast .banner,
.high-contrast .section-divider,
.high-contrast .why-choose-us,
.high-contrast .promotions,
.high-contrast .schedule,
.high-contrast .our-branch,
.high-contrast .instructors,
.high-contrast .video-section,
.high-contrast .reviews,
.high-contrast footer,
.high-contrast .modal-content,
.high-contrast .tab-content,
.high-contrast .group-card,
.high-contrast .note,
.high-contrast .branch-card,
.high-contrast .instructor-card,
.high-contrast .review-card,
.high-contrast .promo-card,
.high-contrast .card,
.high-contrast .dropdown-menu,
.high-contrast .dropdown-menu1 {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
}

.high-contrast .banner {
    background: white !important;
    height: auto !important;
}

.high-contrast img,
.high-contrast iframe,
.high-contrast svg {
    filter: grayscale(100%) contrast(200%) !important;
}

.high-contrast .divider-line {
    background-color: black !important;
}