/* =======================================
   ОБЩИЕ СТИЛИ САЙТА
   ======================================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

/* Page Header & Navigation */
.page-header {
    background-color: #222;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    margin-right: 30px;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    margin-right: 25px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #007bff;
}

/* Контейнер для кнопок справа */
.right-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher (Выпадающий список) */
.language-switcher {
    position: relative;
    display: inline-block;
}

.current-lang {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    background-color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    transition: background-color 0.3s ease;
}

.current-lang:hover {
    background-color: #0056b3;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    margin-top: 5px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #007bff;
    border-radius: 5px;
}

.language-switcher:hover .dropdown-content {
    display: block;
}

/* Кнопка "Войти" */
.login-trigger {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-trigger:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* =======================================
   СТИЛИ ДЛЯ ПРЕДЗАГРУЗЧИКА (PRELOADER)
   ======================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo img {
    width: 100px;
    height: auto;
    animation: fade-in 1s ease-in-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* =======================================
   СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ
   ======================================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background-image: url('images/AdobeStock_375072434.jpeg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: 0;
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0;
    color: #000;
}

.hero-content p {
    font-size: 1.5rem;
    color: #000;
}

/* General Section Styling */
section {
    padding: 80px 20px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section (index) */
.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: calc(33% - 40px);
    box-sizing: border-box;
    perspective: 1000px;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item-inner {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
}

.service-item img {
    max-width: 100%;
    border-radius: 8px;
}

/* Numbers Section */
.numbers-section {
    background-color: #f0f0f0;
}

.numbers-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.number-item {
    text-align: center;
}

.number {
    font-size: 4rem;
    font-weight: bold;
    color: #007bff;
}

/* Our Approach Section */
.approach-section {
    background-color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.approach-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.approach-item {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 30%;
    min-width: 280px;
    box-sizing: border-box;
}

.approach-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.approach-icon i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.approach-item h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.approach-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* =======================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "УСЛУГИ"
   ======================================= */
.services-intro {
    background-color: #f0f0f0;
    padding: 80px 20px;
    text-align: center;
}

.services-intro h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.service-item-detail {
    padding: 80px 20px;
}

.service-content-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-content-container.reversed {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.service-text p {
    line-height: 1.6;
    color: #444;
}

.service-text ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.service-text li i {
    color: #007bff;
    margin-right: 15px;
    font-size: 1.2rem;
}

.service-image {
    flex: 1;
    text-align: center;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =======================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "О НАС"
   ======================================= */
.about-intro {
    background-color: #f0f0f0;
    padding: 80px 20px;
    text-align: center;
}

.about-intro h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.geography-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.geography-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.geography-section li {
    font-size: 1.1rem;
    font-weight: bold;
    color: #444;
}

.values-section {
    padding: 80px 20px;
    text-align: center;
}

.values-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.values-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.value-item {
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    width: 30%;
    min-width: 280px;
    box-sizing: border-box;
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.about-contact {
    background-color: #222;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.about-contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-contact p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* =======================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "КОНТАКТЫ"
   ======================================= */
.contact-section {
    padding: 80px 20px;
    text-align: center;
}

.contact-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.contact-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.contact-info-block {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 500px;
    box-sizing: border-box;
}

.contact-info-block h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.info-item i {
    color: #007bff;
    font-size: 1.4rem;
}

/* =======================================
   СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА АВТОРИЗАЦИИ
   ======================================= */
.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);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#login-form input {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#login-form button {
    background-color: #007bff;
    color: white;
    padding: 14px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

#login-form button:hover {
    background-color: #0056b3;
}

/* =======================================
   СТИЛИ ДЛЯ DASHBOARD
   ======================================= */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #222;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar .logo {
    margin-bottom: 30px;
    text-align: center;
}

.sidebar-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-nav .nav-item {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: block;
    text-align: left;
}

.sidebar-nav .nav-item i {
    margin-right: 15px;
    width: 20px;
}

.sidebar-nav .nav-item:hover, .sidebar-nav .nav-item.active {
    background-color: #007bff;
}

.sidebar-footer {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

.sidebar-footer a {
    color: #f8d7da;
    text-decoration: none;
}

.sidebar-footer a:hover {
    color: #dc3545;
}

.dashboard-main {
    flex-grow: 1;
    padding: 50px 40px;
    background-color: #f4f4f4;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
}

.dashboard-widgets {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.dashboard-widgets .widget-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 280px;
    text-align: center;
}

.dashboard-widgets .widget-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.dashboard-reminders .reminders-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.reminders-list ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.reminders-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.reminders-list li:last-child {
    border-bottom: none;
}

/* =======================================
   АДАПТИВНОЕ МЕНЮ ДЛЯ МОБИЛЬНЫХ
   ======================================= */
/* Скрываем гамбургер-иконку по умолчанию */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    z-index: 1001;
}

/* Стили для мобильного меню */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    background-color: #333;
    width: 250px;
    padding: 20px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 999;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
    transform: translateX(0);
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 15px;
    border-bottom: 1px solid #444;
}


/* =======================================
   АДАПТИВНЫЙ ДИЗАЙН (ДЛЯ МОБИЛЬНЫХ)
   ======================================= */
@media (max-width: 768px) {
    .page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .main-nav, .right-buttons {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .services-container,
    .numbers-container {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 80%;
    }

    .number-item {
        margin-bottom: 30px;
    }

    .approach-container {
        flex-direction: column;
        align-items: center;
    }

    .approach-item {
        width: 90%;
    }

    .service-content-container,
    .service-content-container.reversed {
        flex-direction: column;
    }

    .values-container {
        flex-direction: column;
        align-items: center;
    }

    .value-item {
        width: 90%;
    }

    .contact-info-block {
        width: 90%;
    }

    .modal-content {
        width: 90%;
    }

    .dashboard-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .dashboard-main {
        padding: 20px;
    }
}