:root {
    --main-color: #e0f7f1;
    --accent-color: #4da7a4;
    --accent-color-dark: #3c8d8b;
    --text-color: #2d2d2d;
    --bg-color: #ffffff;
    --gray-color: #f7f7f7;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

main {
    padding-top: 80px; 
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color-dark);
}

.large-btn {
    padding: 12px 24px;
    font-size: 16px;
}

.header-nav {
    background-color: lightgray;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    position: relative; 
}


.main-nav {
    list-style: none;
    display: flex;
    gap: 10px;
}

.main-nav li {
    position: relative;
}

.main-nav > li.dropdown > a {
    position: relative;
    padding-right: 35px !important; 
}

.main-nav > li.dropdown > a::after {
    content: '▼';
    font-size: 10px;
    color: var(--accent-color);
    position: absolute;
    right: 15px; 
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.main-nav > li.dropdown.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}







.main-nav > li > a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.main-nav > li > a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%; 
    transform: translateX(-50%); 
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px 0;
    min-width: 280px;
    z-index: 1001;
}


.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--gray-color);
    color: var(--accent-color);
}

.burger-menu {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: none; 
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px); 
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    z-index: 999;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block; 
    transform: translateX(0);
}

.mobile-nav {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid var(--gray-color);
}

.mobile-nav li a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

.mobile-nav li.dropdown > a {
    position: relative;
}

.mobile-nav li.dropdown > a::after {
    content: '+';
    position: absolute;
    right: 10px;
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.mobile-nav li.dropdown.active > a::after {
    content: '−'; 
}

.mobile-nav .dropdown-menu {
    display: none; 
    position: static;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    padding: 0 0 0 1rem; 
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
}

.mobile-nav .dropdown-menu li a {
    font-size: 1rem;
    font-weight: 400;
    padding: 10px 0;
}

.mobile-nav .dropdown-menu li:last-child {
    border-bottom: none;
}


.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    background: var(--gray-color);
}

.hero img {
    max-width: 100%;
    width: 40%; 
    height: auto;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 1.75rem;
    margin-bottom: 2.5rem; 
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.about-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    background: #f8fafa;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    margin-bottom: 20px;
    font-size: 40px;
    color: #333;
    text-align: left;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.service-card span {
    font-size: 16px;
    color: #2d2d2d;
}

.team-group-title {
    margin: 40px 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.team-card {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 5px; 
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}

.team-card h4 {
    font-size: 1rem;
    font-weight: 600;
}

.team-card p {
    font-size: 0.9rem;
    color: #555;
}

.team-card:hover {
    background: #eef6f4;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #eee;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.schedule-table thead {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
}

.schedule-table th,
.schedule-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

footer {
    background-color: #f7f7f7;
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: #2d2d2d;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
}

.footer-contacts {
    margin-top: 16px;
}

.footer-contacts a {
    color: #4da7a4;
    text-decoration: none;
    font-weight: 500;
}

.footer-contacts a:hover {
    text-decoration: underline;
}

#lang-switch button {
    background: none;
    border: none;
    color: #4da7a4;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

#lang-switch button:hover {
    text-decoration: underline;
}

.content-page-main {
    background-color: #f9f9f9;
    min-height: calc(100vh - 200px);
}

.content-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

    margin-top: 3rem;
    margin-bottom: 3rem;
}

.content-page h1 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.content-page hr {
    border: 0;
    border-top: 1px solid var(--gray-color);
    margin-bottom: 1.5rem;
}

.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin: 1rem auto 1.5rem;
    display: block;
}

.content-page p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.content-page h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color-dark);
}

.content-page ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1.25rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.faq-container {
    border-top: 1px solid #eee;
}
.faq-item {
    border-bottom: 1px solid #eee;
}
.faq-question {
    padding: 1.25rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none; 
    position: relative;
    padding-right: 30px; 
}
.faq-question::-webkit-details-marker {
    display: none; 
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
}
.faq-item[open] .faq-question::after {
    content: '−';
}
.faq-answer {
    padding: 0 1rem 1.5rem 1rem;
    color: #333;
}
.faq-answer p, .faq-answer ul, .faq-answer ol {
    margin-bottom: 1rem;
}
.faq-answer ul, .faq-answer ol {
    padding-left: 20px;
}


@media (max-width: 960px) {
    .header-top {
        padding: 1rem 1rem;
    }
    .header-nav {
        padding: 0 1rem;
        background-color: lightgray;
    }
    .main-nav > li > a {
        padding: 16px 12px;
        font-size: 15px;
    }
}
/* ///////// */
@media (max-width: 768px) {


.main-nav {
    flex-wrap: wrap;
    justify-content: center; 
}

.dropdown-menu {
    position: absolute;  
    top: 100%;           
    left: 0;             
    right: 0;           

    transform: none;
    width: auto;
    min-width: 0; 
    

    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1002;
}

.main-nav li {
    position: static;
}

.dropdown-menu li a {
    white-space: normal;
    font-size: 15px; 
    text-align: left;
    padding: 12px 20px;
}




    
    .burger-menu {
        display: block; 
    }
    .nav-actions {
        gap: 0.5rem; 
    }
    .large-btn {
        padding: 10px 16px;
        font-size: 15px;
    }
    .logo {
        font-size: 1.2rem;
    }
    
    .schedule-table {
        font-size: 0.85rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 10px;
    }

    .about-wrapper {
        padding: 20px 16px;
    }

    .about-text h2 {
        font-size: 32px;
    }
}

@media (max-width: 449px) {
    .header-top {
        flex-direction: row;
        justify-content: space-between; 
        align-items: center;
        gap: 12px;
        padding: 16px;
    }
    
    .logo {
        font-size: 1.1rem;
        flex-shrink: 0; 
    }
    
    .nav-actions {
        flex-grow: 1;
        justify-content: flex-end;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-text h2 {
        font-size: 24px;
    }

    .about-text p {
        font-size: 14px;
    }

    .content-page {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .content-page h1 {
        font-size: 1.8rem;
    }
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  color: var(--accent-color);
  text-decoration: none;    
}

.animate-pulse:hover {
  text-decoration: none;
}