/* ==========================================================================
   Base & Global Styles
   ========================================================================== */
:root {
    --primary-orange: #FF7900;
    --primary-orange-hover: #e66d00;
    --dark-header: #18191C;
    --dark-footer: #141518;
    --text-muted: #9ca3af;

    /* Системное назначение шрифтов Bootstrap */
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: #1f2937;
    background-color: #18191C;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Montserrat для заголовков, кнопок и элементов навигации */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5,
.nav-link,
.btn,
.footer-title,
.section-title {
    font-family: var(--font-heading);
    letter-spacing: -0.2px;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.custom-navbar {
    background-color: var(--dark-header) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-hover {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
    will-change: transform;
}

.footer-logo {
    margin-top: 4px;
}

.brand-logo-link:hover .logo-hover {
    transform: scale(1.08);
    filter: drop-shadow(0 2px 8px rgba(255, 121, 0, 0.35));
}

.brand-logo-link:active .logo-hover {
    transform: scale(0.96);
}

.nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.88rem;
    margin: 0 8px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-orange) !important;
}

/* Кнопки */
.btn-orange {
    background-color: var(--primary-orange);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    padding: 9px 22px;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.btn-orange:hover {
    background-color: var(--primary-orange-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.25);
}

.btn-outline-custom {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.btn-outline-custom:hover {
    background-color: #ffffff;
    color: var(--dark-header);
    border-color: #ffffff;
}

/* Выпадающее меню переключения языков */
.lang-dropdown-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-dropdown-btn:hover, .lang-dropdown-btn:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.lang-dropdown-menu {
    background-color: #1f2125;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
}

.lang-dropdown-item {
    color: #e5e7eb;
    font-size: 0.82rem;
    padding: 6px 14px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-dropdown-item:hover {
    background-color: rgba(255, 121, 0, 0.15);
    color: var(--primary-orange);
}

.lang-dropdown-item.active {
    color: var(--primary-orange);
    font-weight: 700;
    background-color: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-premium {
    background-color: var(--dark-footer);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about-text {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.footer-title {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    padding-top: 5px;
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: var(--primary-orange);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-link {
    font-size: 0.82rem;
}

.contact-subtext {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.phone-link, .tg-link {
    color: #ffffff;
    transition: color 0.2s ease;
}

.phone-link:hover, .tg-link:hover {
    color: var(--primary-orange) !important;
}

.tg-orange-link {
    color: var(--primary-orange);
}

.custom-contact-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-top: 2px;
    opacity: 0.9;
}

.footer-location-text {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
}

.footer-bottom-bar {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Карта Яндекс */
.footer-map-wrapper {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) contrast(100%);
}

/* Разработчик */
.developer-tag {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.developer-tag a {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.developer-tag a:hover {
    color: #ffffff;
    transform: scale(1.05);
    text-shadow: 0 0 6px rgba(255, 121, 0, 0.4);
}

/* ==========================================================================
   Certificates Page Styles
   ========================================================================== */

/* 1. Шапка страницы */
.page-header {
    padding: 60px 0 40px 0;
    background-color: #0B0E14;
    position: relative;
}

.page-title {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.header-desc {
    max-width: 580px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.section-subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.subtitle-line {
    height: 1px;
    width: 45px;
    background: linear-gradient(90deg, transparent, var(--primary-orange));
}

.subtitle-line.right {
    background: linear-gradient(90deg, var(--primary-orange), transparent);
}

.section-subtitle {
    color: var(--primary-orange);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* 2. Секция с сертификатами */
.certs-section {
    position: relative;
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.90) 0%, rgba(11, 14, 20, 0.96) 100%),
                url("../img/background4.jpg") center/cover fixed no-repeat;
    padding: 50px 0 70px 0;
    border-top: 1px solid rgba(255, 121, 0, 0.15);
}

/* 3. Карточки сертификатов */
.cert-card {
    background: rgba(18, 22, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 121, 0, 0.5);
    box-shadow: 0 12px 30px rgba(255, 121, 0, 0.18);
}

.cert-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #080a0e;
    height: 380px;
    width: 100%;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.45s ease;
}

.cert-card:hover .cert-img {
    transform: scale(1.06);
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 14, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-zoom-btn {
    width: 48px;
    height: 48px;
    background-color: var(--primary-orange);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 121, 0, 0.6);
}

.cert-card:hover .cert-zoom-btn {
    transform: scale(1);
}

.cert-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-orange);
    background: rgba(255, 121, 0, 0.08);
    border: 1px solid rgba(255, 121, 0, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.cert-title {
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cert-card:hover .cert-title {
    color: var(--primary-orange);
}

/* 4. Модальное окно */
.cert-modal-content {
    background-color: #121620;
    border: 1px solid rgba(255, 121, 0, 0.3);
    border-radius: 10px;
}

.cert-modal-title {
    color: var(--primary-orange);
    font-size: 0.95rem;
}

/* ==========================================================================
   Education Page Styles
   ========================================================================== */

/* 1. Общие элементы шапки (если не добавлены ранее) */
.page-header {
    padding: 60px 0 40px 0;
    background-color: #0B0E14;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.header-desc {
    max-width: 600px;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* 2. Секция курсов (Фиксированный фон) */
.courses-section {
    position: relative;
    padding: 60px 0 80px 0;
    border-top: 1px solid rgba(255, 121, 0, 0.15);
    z-index: 1;
}

.courses-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.90) 0%, rgba(11, 14, 20, 0.95) 100%),
                url("../img/background5.jpg") center/cover no-repeat;
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0);
}

/* 3. Карточки курсов */
.course-card {
    background: rgba(18, 22, 32, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    contain: paint layout;
    will-change: transform;
    transform: translateZ(0);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.course-card:hover {
    transform: translateY(-5px) translateZ(0);
    border-color: rgba(255, 121, 0, 0.45);
    box-shadow: 0 12px 28px rgba(255, 121, 0, 0.14);
}

/* Обложка */
.course-img-wrapper {
    position: relative;
    height: 190px;
    width: 100%;
    overflow: hidden;
    background-color: #080a0e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.3s ease;
}

.course-card:hover .course-img {
    transform: scale(1.04);
}

/* Бейдж длительности */
.course-duration-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 14, 20, 0.88);
    border: 1px solid rgba(255, 121, 0, 0.4);
    color: #FFFFFF;
    font-size: 0.73rem;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 20px;
}

/* Контент карточки */
.course-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.course-card:hover .course-title {
    color: var(--primary-orange);
}

/* Футер цены */
.course-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.course-price-label {
    display: block;
    font-size: 0.67rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    font-weight: 500;
}

.course-price-box {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: rgba(255, 121, 0, 0.08);
    border: 1px solid rgba(255, 121, 0, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    width: 100%;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.course-card:hover .course-price-box {
    background: rgba(255, 121, 0, 0.15);
    border-color: rgba(255, 121, 0, 0.45);
}

.course-price {
    color: var(--primary-orange);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.course-price-unit {
    color: #d1d5db;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Позиционирование футера сайта поверх фона */
footer, .site-footer {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Home Page / Index Styles
   ========================================================================== */

:root {
    --bg-dark-gray: #18191C;      /* Основной темный серый фон */
    --bg-card-gray: #202226;      /* Серый фон для карточек */
    --bg-alt-gray: #1E2024;       /* Фон для чередующихся секций */
    --border-gray: rgba(255, 255, 255, 0.08); /* Границы */
}

/* 1. Hero баннер */
.hero-section {
    min-height: 80vh;
    padding: 100px 0 120px 0;
    background: linear-gradient(rgba(20, 21, 24, 0.85), rgba(20, 21, 24, 0.92)),
                url("../img/background1.png") center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.1rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 680px;
}

.orange-dot {
    color: var(--primary-orange);
}

/* 2. Общие стили секций */
.section-padding {
    padding: 90px 0;
}

.section-subtitle {
    color: var(--primary-orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    color: #FFFFFF;
    font-size: 1.85rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-orange);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 3. Карточки направлений (О компании) */
.direction-card {
    background: var(--bg-card-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    height: 100%;
    transition: all 0.3s ease;
}

.direction-card:hover {
    border-color: rgba(255, 121, 0, 0.4);
    transform: translateY(-2px);
    background: #25282D;
}

.direction-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 121, 0, 0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 4. Блок показателей */
.stats-wrapper {
    background: var(--bg-card-gray);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 35px 25px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: 2.3rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.stat-link {
    color: #9ca3af;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-link:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* 5. Карточки услуг */
.service-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 30px 24px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-orange);
    box-shadow: 0 12px 28px rgba(255, 121, 0, 0.25);
}

.service-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 121, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-orange);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon-box {
    background-color: var(--primary-orange);
    color: #FFFFFF;
}

.service-title {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.service-desc {
    color: #4B5563;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 6. Секция партнеров */
.partners-section {
    background: linear-gradient(rgba(20, 21, 24, 0.88), rgba(20, 21, 24, 0.92)),
                url("../img/background2.jpg") center/cover no-repeat fixed;
    border-top: 1px solid var(--border-gray);
}

.partner-column-card {
    background: rgba(32, 34, 38, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.partner-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-gray);
    text-decoration: none;
    transition: all 0.25s ease;
}

.partner-list-item:last-child {
    border-bottom: none;
}

.partner-list-item:hover {
    background: rgba(39, 42, 48, 0.9);
    padding-left: 24px;
}

.partner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.partner-icon-bullet {
    width: 30px;
    height: 30px;
    background: rgba(255, 121, 0, 0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.partner-name {
    color: #E5E7EB;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.partner-list-item:hover .partner-name {
    color: #FFFFFF;
}

.partner-link-icon {
    color: #6B7280;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.partner-list-item:hover .partner-link-icon {
    color: var(--primary-orange);
    transform: translateX(3px);
}

/* ==========================================================================
   Projects Page Styles
   ========================================================================== */

/* Сплошной фон страницы проектов */
.projects-page-bg {
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.88) 0%, rgba(11, 14, 20, 0.96) 100%),
                url("../img/background6.jpg") center/cover no-repeat fixed;
    color: #FFFFFF;
}

.projects-page {
    padding: 50px 0 80px 0;
}

.page-title {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-desc {
    max-width: 650px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Карточка проекта (2 в ряд) */
.project-card {
    background: rgba(18, 22, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 121, 0, 0.5);
    box-shadow: 0 14px 35px rgba(255, 121, 0, 0.2);
}

/* Обложка проекта */
.project-img-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
    overflow: hidden;
    background-color: #080a0e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    touch-action: pan-y; /* Позволяет прокручивать страницу вертикально при свайпе */
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease-in-out;
}

/* Стрелки переключения (Влево / Вправо) */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(11, 14, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gallery-arrow i {
    font-size: 0.9rem;
    line-height: 1;
}

.gallery-arrow:hover,
.gallery-arrow:active {
    background: #FF7900;
    border-color: #FF7900;
    color: #FFFFFF;
}

.gallery-arrow.prev {
    left: 12px;
}

.gallery-arrow.next {
    right: 12px;
}

/* На ПК стрелки появляются при наведении на карточку */
.project-card:hover .gallery-arrow {
    opacity: 0.85;
}

/* Полоски слайдера */
.hover-indicators {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-card:hover .hover-indicators {
    opacity: 1;
}

.hover-indicator-bar {
    height: 3px;
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.hover-indicator-bar.active {
    background: #FF7900;
}

/* Контент карточки */
.project-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 14px;
}

/* Заказчик */
.project-client {
    font-size: 0.88rem;
    color: #d1d5db;
    margin-bottom: 12px;
}

/* Локация */
.project-location {
    font-size: 0.85rem;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.project-location i {
    color: #FF7900 !important;
}

.map-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-link:hover {
    color: #FF7900;
    text-decoration: underline;
}

footer, .site-footer {
    position: relative;
    z-index: 2;
}

/* Адаптировано под мобильные устройства и тачскрины */
@media (max-width: 768px), (pointer: coarse) {
    .gallery-arrow {
        opacity: 0.9; /* На смартфонах стрелки видны всегда */
    }

    .hover-indicators {
        opacity: 1; /* Полоски-индикаторы видны всегда */
    }

    .project-img-wrapper {
        height: 250px; /* Слегка уменьшаем высоту обложки на узких экранах */
    }
}