/* Main styles */
/* 
 * Website developed by unimatch.ai
 * All rights reserved. This website was designed and implemented by the professional team at unimatch.ai
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Preventing horizontal scrolling */
    background-color: #ffffff; /* Устанавливаем белый фон для всей страницы */
    scroll-behavior: smooth; /* Добавляем плавную прокрутку */
}

:root {
    --primary-color: #6C6C6C;
    --secondary-color: #6C6C6C;
    --accent-color: #094551;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #ddd;
    --container-width: 1200px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #6C6C6C;
    background-color: #ffffff; /* Белый фон */
    visibility: visible;
    position: relative; /* Для позиционирования оверлея */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: -1;
}

/* Прелоадер для мгновенной защиты от "мигания" при перезагрузке */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.loaded .page-overlay {
    opacity: 0;
    pointer-events: none;
}

body.loaded {
    visibility: visible;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Common styles for all sections, ensuring equal spacing */
section {
    padding: 40px 0; /* Padding for all sections */
    margin: 0;
    background-color: #ffffff; /* Setting white background for all sections */
}

/* Common styles for section headings */
.hero h2, .about h2, .services h2, .timing h2, .location h2, .contacts h2 {
    position: relative;
    padding-bottom: 0;
    color: #6C6C6C;
    font-weight: 500;
    margin-bottom: 30px; /* Unifying margin for all headings */
    text-align: left;
}

/* Centering headings for Timing, Location and Contacts */
.timing h2, .location h2, .contacts h2 {
    text-align: center;
}

.hero h2::after, .timing h2::after, .location h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Separate styles for about, services and contacts - removed line */
.about h2::after, .services h2::after, .contacts h2::after {
    display: none;
}

/* Cancelling line for hero h2 */
.hero h2::after {
    display: none;
}

.hero h2 {
    font-size: 32px;
}

.about h2, .services h2, .timing h2, .location h2, .contacts h2 {
    font-size: 24px;
}

/* Website header */
header {
    background-color: white;
    padding: 12px 0; /* Reducing padding from 20px to 12px */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text h1, .logo-text h2 {
    margin: 0;
}

.logo-text h1.arabic {
    font-size: 26px;
    font-weight: 700; /* Увеличиваем жирность шрифта */
    color: #6C6C6C;
}

.logo-text h2 {
    font-size: 18px;
    font-weight: 700; /* Делаем жирным */
    color: #6C6C6C;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 30px; /* Увеличиваем отступ между пунктами меню с 20px до 30px */
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #6C6C6C;
    font-weight: 400; /* Делаем шрифт более тонким, было 600 */
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Убираем стили для активного состояния */
/* 
nav ul li a.active {
    color: var(--primary-color);
}
*/

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Убираем подчеркивание для активного состояния */
/*
nav ul li a.active::after {
    width: 100%;
}
*/

/* Стили для селектора языка */
.language {
    display: flex;
    align-items: center;
}

.language a {
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.language a .lang-code {
    font-weight: 500;
    text-transform: uppercase;
}

.language a.active, .language a:hover {
    opacity: 1;
    border-color: var(--primary-color);
    background-color: #f5f5f5;
}

/* Убираем неиспользуемые стили для изображений флагов */
/* 
.language img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
*/

/* Main banner with new structure */
.hero {
    width: 100%;
    margin-top: 100px; /* Increasing top margin to 100px */
    padding: 0;
    overflow: hidden;
    position: relative;
    line-height: 0;
    height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0; /* Removing bottom margin */
    background-color: #ffffff; /* Убеждаемся, что фон белый */
}

.hero-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #ffffff; /* Белый фон для обертки */
}

.hero-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center center;
    opacity: 0;
    transition: opacity 2s ease; /* Увеличиваем время перехода для изображения */
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 150px;
    z-index: 2;
    overflow-x: hidden;
    background-color: transparent; /* Прозрачный фон для контента */
}

.hero-content h2 {
    position: relative;
    text-align: center;
    color: #6C6C6C;
    text-shadow: none;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.3;
    margin: 0;
    padding: 8px 15px;
    border-radius: 8px;
    width: auto;
    max-width: 80%;
    overflow: visible;
    opacity: 0;
    
    /* Создаем двухмерный градиент с плавными переходами со всех сторон */
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.85) 70%,
        rgba(255, 255, 255, 0) 100%
    );
}

.hero-content h2 .space {
    display: none;
}

/* Применение анимаций к элементам при появлении */
.hero-content h2.visible {
    animation: fadeInText 0.8s ease-out forwards;
    opacity: 1;
}

/* Анимации для загрузки страницы */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Анимация для фонового изображения - только opacity без движения */
@keyframes fadeInImage {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromTop {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-wrapper img.visible {
    animation: fadeInImage 3.2s ease-out forwards;
    opacity: 1;
}

/* Секция About */
.about {
    background-color: #fff;
    margin: 0;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 40px; /* Добавляем верхний отступ 40px */
    opacity: 0;
}

.about h2 {
    margin-top: 0; /* Явно устанавливаем отсутствие верхнего отступа для заголовка */
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 0;
}

.about-text {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0;
}

.about-text p:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего параграфа */
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #6C6C6C;
    line-height: 1.7;
    text-shadow: 0 0 1px rgba(0,0,0,0.05);
}

.about-stats {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 180px; /* Увеличиваем высоту с 150px до 180px */
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 22px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: transform 0.3s;
    height: 32px; /* Фиксированная высота для выравнивания */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.stat-item h3 i {
    color: #6C6C6C;
    font-size: 20px;
}

.stat-item p {
    font-size: 16px;
    color: #6C6C6C;
    font-weight: 500;
    margin-top: 10px;
    height: 70px; /* Увеличиваем высоту для текста с 50px до 70px */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Секция услуг */
.services {
    padding: 40px 0;
    background-color: #ffffff;
    margin: 0;
    opacity: 0;
}

.services h2 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 24px;
    color: #6C6C6C;
    font-weight: 500;
    position: relative;
}

.services h2::after {
    display: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0 auto;
    max-width: 1400px;
    align-items: start;
    grid-auto-rows: min-content;
    container-type: inline-size;
}

.service-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
    isolation: isolate;
    align-self: start;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-header {
    padding: 25px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: none;
    position: relative;
    cursor: pointer;
}

.service-header:hover {
    background-color: transparent;
}



.header-content {
    flex: 1;
    padding-right: 15px;
}

.header-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #6C6C6C;
    font-weight: 500;
}

.header-content p {
    margin: 0;
    color: #6C6C6C;
    font-size: 0.9rem;
    line-height: 1.6;
    height: 24px;
    display: flex;
    align-items: center;
}

.expand-icon {
    font-size: 1.2rem;
    color: #6C6C6C;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-top: 5px;
}

.service-item.expanded .expand-icon {
    color: #6C6C6C;
    transform: rotate(180deg);
}

.service-details {
    padding: 0 25px 25px 25px;
    background: #ffffff;
    border-top: none;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
    display: none;
    max-height: 0;
    opacity: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.service-requirements, .service-fees {
    margin-bottom: 25px;
}

.service-requirements:last-child, .service-fees:last-child {
    margin-bottom: 0;
}

.service-requirements h4, .service-fees h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #6C6C6C;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.service-requirements h4::before {
    content: '';
    margin-right: 0;
    font-size: 1rem;
}

.service-fees h4::before {
    content: '';
    margin-right: 0;
    font-size: 1rem;
}

.land-dept-fees, .trustee-fees {
    margin-bottom: 20px;
}

.land-dept-fees:last-child, .trustee-fees:last-child {
    margin-bottom: 0;
}

.land-dept-fees h5, .trustee-fees h5 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #6C6C6C;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.land-dept-fees h5::before {
    content: '';
    margin-right: 0;
    font-size: 0.9rem;
}

.trustee-fees h5::before {
    content: '';
    margin-right: 0;
    font-size: 0.9rem;
}

.service-details ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.service-details li {
    margin-bottom: 8px;
    color: #6C6C6C;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6C6C6C;
    font-weight: bold;
    font-size: 0.8rem;
}

.service-details li:last-child {
    margin-bottom: 0;
}

/* Animation improvements */
.service-item {
    will-change: transform, box-shadow;
}



.expand-icon {
    will-change: transform, color;
}

.service-details {
    will-change: max-height, opacity;
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .service-header {
        padding: 20px;
        align-items: center;
    }
    
    .header-content {
        padding-right: 50px;
    }
    
    .header-content h3 {
        font-size: 1.2rem;
    }
    
    .expand-icon {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .service-details {
        padding: 0 20px 20px 20px;
    }
    
    .services h2 {
        font-size: 20px;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .rtl .header-content {
        padding-left: 50px;
        padding-right: 0;
    }
    
    .rtl .expand-icon {
        right: auto;
        left: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        gap: 25px;
    }
    
    .service-header {
        padding: 22px;
    }
    
    .service-header h3 {
        font-size: 1.3rem;
    }
}

/* RTL support for services */
.rtl .services-grid {
    direction: rtl;
}

.rtl .service-header {
    text-align: right;
}

.rtl .header-content {
    padding-right: 0;
    padding-left: 15px;
}

.rtl .service-details ul {
    padding-right: 20px;
    padding-left: 0;
}

.rtl .service-details li {
    padding-right: 15px;
    padding-left: 0;
}

.rtl .service-details li::before {
    right: 0;
    left: auto;
}

.rtl .service-requirements h4::before,
.rtl .service-fees h4::before,
.rtl .land-dept-fees h5::before,
.rtl .trustee-fees h5::before {
    margin-right: 0;
    margin-left: 0;
}

@media (max-width: 768px) {
    .rtl .service-header {
        text-align: right;
    }
}

/* Information section (combined timing and location) */
.info-section {
    background-color: #f5f5f5 !important;
    text-align: center;
    margin: 0;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 0; /* Explicitly specifying no top margin */
    opacity: 0;
}

.info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.info-box {
    flex: 1;
}

.timing.info-box, .location.info-box {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

/* Removing decorative lines under headings in info-section */
.info-box h2::after {
    display: none;
}

/* Styling headings in info-section */
.info-box h2 {
    margin-bottom: 20px !important;
    padding-bottom: 0;
}

.timing {
    background-color: transparent;
    padding: 0;
}

.location {
    background-color: transparent;
    padding: 0;
}

.timing p,
.timing div[data-i18n="timing-hours"] {
    font-size: 18px;
    color: #6C6C6C;
    font-weight: 500;
}

/* Timing table styles */
.timing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    max-width: 400px;
}

.timing-table td {
    padding: 8px 16px;
    font-size: 16px;
    color: #6C6C6C;
    font-weight: 500;
    vertical-align: middle;
}

.timing-table td:first-child {
    text-align: left;
    font-weight: 600;
    width: 60%;
}

.timing-table td:last-child {
    text-align: right;
    font-weight: 500;
    width: 40%;
}

.timing-table tr:nth-child(odd) {
    background-color: rgba(108, 108, 108, 0.05);
}

.timing-table tr:hover {
    background-color: rgba(108, 108, 108, 0.1);
    transition: background-color 0.2s ease;
}

/* Styles for address and button */
.map-container {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.address {
    margin-bottom: 15px;
    color: #6C6C6C;
    font-weight: 500;
    font-size: 18px;
    text-align: center;
}

.map-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s;
}

.map-button i {
    margin-right: 5px;
}

.map-button:hover {
    background-color: #062c34;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Убираем неиспользуемые стили */
.map-frame {
    display: none;
}

.map-link {
    display: none;
}

/* Секция контактов */
.contacts {
    background-color: white;
    margin: 0;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: none; /* Убираем серую разделительную линию */
    margin-top: 0;
    padding-bottom: 80px; /* Добавляем отступ снизу вместо margin-top у футера */
    opacity: 0;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 200px;
    box-shadow: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    transform: translateY(-5px);
    color: inherit;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.contact-item p {
    font-size: 16px;
    color: #6C6C6C;
    font-weight: 500;
    margin: 0;
}

.contact-item p a {
    color: #6C6C6C;
    text-decoration: none;
    font-weight: inherit;
    transition: color 0.3s;
}

.contact-item p a:hover {
    color: var(--primary-color);
}

/* Подвал */
footer {
    background-color: #ffffff;
    color: #6C6C6C;
    padding: 0;
    text-align: center;
    margin-top: 0;
    opacity: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Верхний блок с логотипами на белом фоне */
.footer-logos {
    background-color: #ffffff;
    width: 100%;
    padding: 30px 0 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.amana-logo {
    height: 60px;
    width: auto;
    filter: none;
}

.dld-logo {
    height: 50px;
    width: auto;
    filter: none;
}

/* Badge под логотипами на белом фоне */
.footer-badge {
    background-color: #ffffff;
    width: 100%;
    padding: 0 0 30px 0;
    display: flex;
    justify-content: center;
}

.trustee-badge {
    background-color: transparent;
    color: #094551;
    padding: 0;
    font-size: 13px;
    min-width: auto;
}

.trustee-badge i {
    font-size: 16px;
    color: #6C6C6C;
}

/* Контейнер для кнопок - теперь только Google Reviews */
.footer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-reviews {
    display: flex;
    justify-content: center;
}

.google-reviews-btn {
    background-color: #ffffff;
    color: #094551;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    min-width: 200px;
    justify-content: center;
}

.google-reviews-btn:hover {
    background-color: #f5f5f5;
    color: #094551;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.google-reviews-btn i {
    font-size: 16px;
    color: #4285f4;
}

.google-reviews-btn:hover i {
    color: #4285f4;
}

.copyright {
    background-color: #6C6C6C;
    padding-top: 20px;
    margin-top: 0;
    width: 100%;
}

.copyright p {
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
    margin: 0;
    color: #ffffff;
}

/* Начальное состояние элементов */
.hero-wrapper img,
header,
.about,
.services,
.contacts,
footer {
    opacity: 0;
    will-change: opacity, transform;
    background-color: #ffffff; /* Устанавливаем белый фон для всех разделов */
}

.info-section {
    opacity: 0;
    will-change: opacity, transform;
}

/* Исключение для footer с темным фоном */
footer {
    background-color: #ffffff;
}

/* Анимация для текста на баннере */
.hero-content h2 {
    opacity: 0;
    will-change: opacity, transform;
}

.hero-content h2.visible {
    animation: fadeInText 0.8s ease-out forwards;
}

/* Анимация для фонового изображения */
.hero-wrapper img.visible {
    animation: fadeInImage 3.2s ease-out forwards;
}

/* Анимация для меню */
header.visible {
    animation: slideInFromTop 0.7s ease-out forwards;
    animation-delay: 0s;
}

/* Анимации для разделов */
.about.visible {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0s;
}

.services.visible {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0s;
}

.info-section.visible {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0s;
    background-color: #f5f5f5;
}

.contacts.visible {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0s;
}

footer.visible {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0s;
}

/* Responsiveness */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 8px 15px; /* Reducing vertical padding */
        align-items: center;
    }
    
    .logo {
        margin-right: auto;
        order: 1;
        transform: scale(0.9); /* Slightly reducing logo size */
    }
    
    .language {
        margin-left: auto;
        order: 2;
    }
    
    nav ul {
        flex-basis: 100%;
        margin: 10px 0 5px; /* Уменьшаем отступы */
        flex-wrap: wrap;
        justify-content: center;
        order: 3;
    }
    
    nav ul li {
        margin: 3px 8px; /* Уменьшаем отступы между пунктами меню */
    }
    
    nav ul li a {
        font-size: 14px; /* Уменьшаем размер шрифта */
        padding: 3px 0; /* Уменьшаем padding для ссылок */
    }
    
    .hero {
        margin-top: 200px; /* Увеличиваем отступ для планшетов */
        height: 400px;
    }
    
    .hero-wrapper img {
        height: 100%;
    }
    
    .hero-content {
        padding-top: 80px; /* Уменьшаем верхний отступ контента */
    }
    
    .hero-content h2 {
        font-size: 24px;
        padding: 8px 15px;
        max-width: 90%;
        /* Более компактный градиент для планшетов */
        background: radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.85) 60%,
            rgba(255, 255, 255, 0) 100%
        );
    }
    
    .hero-content h2 .space {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 10px 15px;
        height: auto;
    }
    
    .service-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .service-item h3 {
        font-weight: 600;
        font-size: 17px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-stats {
        flex-direction: column;
        min-width: auto;
    }
    
    .stat-item {
        flex: none;
        min-width: auto;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .stat-item:last-child {
        margin-bottom: 0;
    }
    
    .contact-item {
        flex: 1 1 100%;
    }
    
    .info-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .info-box {
        width: 100%;
    }
    
    .timing.info-box, .location.info-box {
        padding: 0;
    }
    
    .map-frame iframe {
        display: none;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 5px 10px; /* Further reducing padding */
        align-items: center;
    }
    
    .logo {
        margin-right: auto;
        order: 1;
        margin-bottom: 0;
        transform: scale(0.85); /* Further reducing logo size */
    }
    
    .logo-text h1.arabic {
        font-size: 20px; /* Reducing Arabic text size */
    }
    
    .logo-text h2 {
        font-size: 15px; /* Reducing English text size */
    }
    
    .language {
        margin-left: auto;
        order: 2;
        margin-bottom: 0;
    }
    
    .language a {
        padding: 2px 6px;
        font-size: 13px;
        margin-left: 5px;
    }
    
    .language a .lang-code {
        font-weight: 600;
    }
    
    nav {
        flex-basis: 100%;
        order: 3;
        margin-top: 5px; /* Reducing top margin */
    }
    
    nav ul {
        margin: 5px 0; /* Reducing margins */
    }
    
    nav ul li {
        margin: 2px 5px; /* Reducing margins between menu items */
    }
    
    nav ul li a {
        font-size: 13px; /* Further reducing font size */
        padding: 2px 0; /* Reducing padding for links */
    }
    
    .hero {
        margin-top: 170px; /* Увеличиваем верхний отступ с 150px до 170px */
        height: 300px;
    }
    
    .hero-wrapper img {
        height: 100%;
    }
    
    .hero-content {
        left: 8px; 
        right: 8px; 
        width: auto; 
        padding-left: 0; 
        padding-right: 0; 
        padding-top: 80px; /* Уменьшаем верхний отступ контента */
        padding-bottom: 20px; 
    }
    
    .hero-content h2 {
        font-size: 18px;
        font-weight: 600;
        max-width: 90%; 
        padding: 5px 10px;
        /* Ещё более компактный градиент для мобильных */
        background: radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.85) 70%,
            rgba(255, 255, 255, 0) 100%
        );
    }
    
    .hero-content h2 .space {
        display: none;
    }
    
    .about h2, .services h2, .timing h2, .location h2, .contacts h2 {
        font-size: 20px;
        text-align: left;
    }
    
    /* Центрирование заголовков Timing, Location и Contacts в мобильной версии */
    .timing h2, .location h2, .contacts h2 {
        text-align: center;
    }
    
    .service-item {
        padding: 8px 12px;
        height: auto;
    }
    
    .service-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }
    
    .service-item h3 {
        font-size: 15px;
        font-weight: 600;
    }
    
    .service-item p {
        font-size: 14px;
    }
    
    .about-stats {
        flex-direction: column;
        min-width: auto;
        gap: 15px;
    }
    
    .stat-item {
        flex: none;
        min-width: auto;
        width: 100%;
        height: auto;
        padding: 15px;
    }
    
    .stat-item h3 {
        font-size: 20px;
        height: auto;
    }
    
    .stat-item p {
        font-size: 14px;
        height: auto;
        line-height: 1.4;
    }
    
    .info-wrapper {
        gap: 30px;
    }
    
    .info-box {
        padding: 15px;
    }
    
    .info-box h2 {
        font-size: 18px;
        margin-bottom: 15px !important;
    }
    
    .map-frame iframe {
        display: none;
    }
    
    .address {
        font-size: 15px;
    }
    
    .map-button {
        padding: 8px 16px;
        font-size: 13px;
        display: inline-block;
        width: auto;
        max-width: 200px;
    }
    
    /* Стили для контактных элементов в мобильной версии */
    .contact-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 16px;
        width: auto;
        max-width: 280px;
        margin: 0 auto 15px;
        white-space: nowrap;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .contact-item i {
        font-size: 18px;
        margin-right: 15px;
        margin-bottom: 0;
        display: inline-block;
    }
    
    .contact-item p {
        font-size: 15px;
        margin: 0;
        display: inline-block;
    }
    
    .timing p,
    .timing div[data-i18n="timing-hours"] {
        font-size: 15px;
        text-align: center;
        margin-bottom: 15px;
    }

    /* Mobile timing table styles */
    .timing-table {
        max-width: 100%;
        font-size: 14px;
    }

    .timing-table td {
        padding: 6px 12px;
        font-size: 14px;
    }

    .timing-table td:first-child {
        width: 50%;
    }

    .timing-table td:last-child {
        width: 50%;
    }
    
    .about, .services {
        margin-top: 20px; /* Уменьшаем верхний отступ с 40px до 20px в мобильной версии */
    }
    
    /* Footer адаптивность для мобильных */
    .footer-logos {
        gap: 20px;
        padding: 20px 0 15px 0;
    }
    
    .footer-badge {
        padding: 0 0 20px 0;
    }
    
    .amana-logo {
        height: 45px;
    }
    
    .dld-logo {
        height: 40px;
    }
    
    .footer-dark-section {
        padding: 20px 0;
    }
    
    .footer-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .trustee-badge {
        padding: 0;
        font-size: 13px;
        min-width: auto;
    }
    
    .footer-disclaimer p {
        font-size: 12px;
    }
    
    .google-reviews-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 180px;
    }
}

/* Добавляем разделители между блоками для лучшего визуального разделения */
.section-divider {
    display: none; /* Скрываем разделитель полностью */
}

/* Стили для плавного переключения языка */
.language-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.language-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.language a[data-lang="ar"] .lang-code {
    font-weight: 600;
}

/* Секция цитаты */
.quote {
    background-color: #ffffff;
    padding: 60px 0;
    margin: 0;
    opacity: 0;
}

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

.quote-image {
    flex: 0 0 300px;
}

.quote-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: none;
}

.quote-text {
    flex: 1;
}

.quote-text blockquote {
    margin: 0;
    padding: 0;
    border-left: none;
    font-style: italic;
}

.quote-text blockquote p {
    font-size: 24px;
    line-height: 1.5;
    color: #6C6C6C;
    margin-bottom: 20px;
    font-weight: 500;
}

.quote-text blockquote cite {
    font-size: 18px;
    color: #6C6C6C;
    font-weight: 500;
    font-style: normal;
    display: block;
    text-align: right;
}

/* Анимации для секции цитаты */
.quote.visible {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0s;
}

/* Адаптивность для блока с цитатой */
@media (max-width: 768px) {
    .quote {
        padding: 40px 0;
    }
    
    .quote-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .quote-image {
        flex: 0 0 auto;
        width: 250px;
    }
    
    .quote-text blockquote p {
        font-size: 20px;
        text-align: center;
    }
    
    .quote-text blockquote cite {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quote {
        padding: 30px 0;
    }
    
    .quote-image {
        width: 200px;
    }
    
    .quote-text blockquote p {
        font-size: 18px;
    }
    
    .quote-text blockquote cite {
        font-size: 16px;
    }
}

/* Стили для iPad Air M2 и подобных устройств в портретном режиме */
@media (min-width: 768px) and (max-width: 820px) {
    .hero-content h2 {
        font-size: 24px;
        padding: 8px 15px;
        /* Более компактный градиент для планшетов */
        background: radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.85) 60%,
            rgba(255, 255, 255, 0) 100%
        );
    }
    
    .hero-content h2 .space {
        display: none;
    }
    
    .hero-content {
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }
}

/* Добавляем разделители между блоками для лучшего визуального разделения */
.section-divider {
    display: none; /* Скрываем разделитель полностью */
}

.hero-content h2 {
    font-size: 24px;
    padding: 8px 15px;
    max-width: 90%;
    /* Более компактный градиент для планшетов */
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.85) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

.hero-content h2 .space {
    display: none;
}

/* Desktop версия - текст в одну строку для больших экранов */
@media (min-width: 821px) {
    .hero-content h2 {
        white-space: nowrap;
    }
}

/* Нижний блок с темным фоном */
.footer-dark-section {
    background-color: #6C6C6C;
    width: 100%;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-disclaimer {
    max-width: 600px;
    text-align: center;
    margin-bottom: 15px;
}

.footer-disclaimer p {
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 350px) {
    .contact-item {
        max-width: 90%;
        padding: 10px 12px;
        margin: 0 auto 12px;
    }
    
    .contact-item p {
        font-size: 14px;
    }
    
    .contact-item i {
        font-size: 16px;
        margin-right: 10px;
    }
} 