* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 80px;
    width: auto;
}

/* ========== NAVIGATION ========== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e6b422;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/* ========== LANGUAGE SWITCHER ========== */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f5f5f5;
    color: #555;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.lang-btn:hover {
    background: #e6b422;
    color: #fff;
    border-color: #e6b422;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #e6b422;
    color: #fff;
    border-color: #e6b422;
    box-shadow: 0 2px 8px rgba(230, 180, 34, 0.3);
}

/* ========== HERO SLIDER ========== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide.active .slide-bg {
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.02); }
}

.slide-content {
    position: absolute;
    z-index: 3;
    color: white;
    max-width: 600px;
    margin: 0;
    padding: 20px;
    text-align: left;
    left: 10%;
    bottom: 25%;
    top: auto;
    transform: none;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.slide-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    width: fit-content;
    backdrop-filter: blur(5px);
}

.slide-address i {
    font-size: 14px;
    color: #e6b422;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.slider-controls button {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button i {
    font-size: 16px;
}

.slider-controls button:hover {
    background: #e6b422;
    border-color: #e6b422;
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.dot.active,
.dot:hover {
    background: #e6b422;
    transform: scale(1.2);
}

.default-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    text-align: center;
}

.default-hero .hero-content {
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.default-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #e6b422;
    color: #333;
}

.btn-primary:hover {
    background: #d4a017;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #e6b422;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    color: #e6b422;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background: #e6b422;
    color: #fff;
    transform: translateX(5px);
}

.btn-small {
    padding: 10px 25px;
    font-size: 14px;
    background: #e6b422;
    color: #333;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #d4a017;
    transform: scale(1.05);
}

.btn-view-image {
    display: inline-block;
    background: #e6b422;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-view-image:hover {
    background: #d4a017;
    transform: translateY(-2px);
    color: #fff;
}

/* ========== PAGE CONTENT ========== */
.page-content {
    padding: 100px 0 60px 0;
}

.home-page .page-content {
    padding: 0 0 60px 0;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card-link {
    text-decoration: none;
    display: block;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #e6b422;
}

.service-icon {
    font-size: 56px;
    color: #e6b422;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-more {
    display: inline-block;
    color: #e6b422;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.service-card:hover .service-more {
    transform: translateX(5px);
}

.service-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.service-header {
    margin-bottom: 40px;
}

.service-header h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 20px;
    border-left: 4px solid #e6b422;
    padding-left: 20px;
}

.service-content {
    line-height: 1.8;
    color: #444;
}

.service-content h2 {
    color: #1a1a2e;
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.service-content ul,
.service-content ol {
    margin: 15px 0 15px 20px;
}

.other-services {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.other-services h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #1a1a2e;
}

.services-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    color: #333;
    border: 1px solid #eee;
}

.service-mini-card:hover {
    background: #e6b422;
    color: white;
    transform: translateY(-5px);
}

.service-mini-card i {
    font-size: 36px;
    margin-bottom: 12px;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.features-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-item:hover .feature-image img {
    transform: scale(1.05);
}

.feature-icon {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e6b422 0%, #d4a017 100%);
}

.feature-icon i {
    font-size: 120px;
    color: white;
}

.feature-content {
    flex: 1;
    padding: 40px;
    text-align: left;
}

.feature-content h3 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* ========== LATEST PORTFOLIO SECTION ========== */
.latest-portfolio-section {
    padding: 60px 0;
    background: #fff;
    margin-top: 20px;
}

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

.latest-portfolio-header h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.latest-portfolio-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.latest-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.latest-portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.latest-portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.latest-portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.latest-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.latest-portfolio-item:hover .latest-portfolio-image img {
    transform: scale(1.1);
}

.latest-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.latest-portfolio-item:hover .latest-portfolio-overlay {
    opacity: 1;
}

.zoom-icon {
    background: rgba(230, 180, 34, 0.9);
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.zoom-icon:hover {
    transform: scale(1.1);
    background: #e6b422;
}

.latest-portfolio-info {
    padding: 20px;
    text-align: center;
}

.latest-portfolio-info h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.latest-portfolio-info .portfolio-address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.latest-portfolio-info .portfolio-address i {
    color: #e6b422;
    margin-right: 5px;
}

.latest-portfolio-info .portfolio-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #e6b422;
}

.latest-portfolio-footer {
    text-align: center;
    margin-top: 20px;
}

/* ========== PORTFOLIO PAGE ========== */
.portfolio-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px 20px;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-header h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.02);
}

.portfolio-info {
    padding: 15px;
    background: white;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #1a1a2e;
}

.portfolio-info .category {
    display: inline-block;
    font-size: 0.75rem;
    color: #e6b422;
    background: #fef5e0;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.portfolio-info .address {
    font-size: 0.8rem;
    color: #666;
    margin: 5px 0;
}

.portfolio-info .address i {
    color: #e6b422;
    margin-right: 4px;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0 80px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background: #e6b422;
    color: #fff;
    border-color: #e6b422;
}

.pagination-current {
    background: #e6b422;
    color: #fff;
    border: 1px solid #e6b422;
}

.pagination-prev,
.pagination-next {
    padding: 0 16px;
}

/* ========== CONTACTS ========== */
.contacts-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contacts-list {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-item i {
    font-size: 24px;
    color: #e6b422;
}

.contact-details strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* ========== MODAL WINDOW (Image zoom) ========== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    border: none;
}

.image-modal-close:hover {
    color: #e6b422;
    transform: scale(1.1);
}

/* ========== PORTFOLIO MODAL ========== */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.portfolio-modal.active {
    display: flex !important;
    z-index: 999999 !important;
}

.portfolio-modal-content {
    background: white;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 16px;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    margin: auto !important;
    z-index: 1000000 !important;
    padding-top: 50px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    border: none;
}

.modal-close:hover {
    background: #e6b422;
    transform: scale(1.05);
}

.modal-gallery {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.modal-main-img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 12px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
}

.modal-main-img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.modal-main-img.fade-in {
    animation: fadeInScale 0.3s ease-in-out forwards;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: #e6b422;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.modal-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.modal-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.modal-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.modal-thumb.active {
    opacity: 1;
    border: 2px solid #e6b422;
    transform: scale(1.05);
}

.modal-info {
    padding: 20px 0;
}

.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* ========== ТАБЛИЦЯ В МОДАЛЬНОМУ ВІКНІ ========== */
.modal-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.modal-specs-table tr {
    border-bottom: 1px solid #e9ecef;
}

.modal-specs-table tr:last-child {
    border-bottom: none;
}

.modal-specs-table td {
    padding: 12px 15px;
    vertical-align: top;
}

.modal-specs-table .spec-label {
    width: 35%;
    font-weight: 600;
    color: #1a1a2e;
    background: #f1f3f5;
}

.modal-specs-table .spec-value {
    width: 65%;
    color: #495057;
}

/* Список робіт через дефіс */
.works-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.works-list li {
    display: block !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.works-list li:before {
    content: "–";
    position: absolute;
    left: 0;
    color: #e6b422;
    font-weight: bold;
}

.works-list li:last-child {
    margin-bottom: 0;
}

.modal-description {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.modal-address {
    color: #666;
    font-size: 0.9rem;
}

.modal-address i {
    color: #e6b422;
    margin-right: 5px;
}

/* ========== ANIMATIONS ========== */
.feature-item,
.latest-portfolio-item,
.service-card,
.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-item.visible,
.latest-portfolio-item.visible,
.service-card.visible,
.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== DESKTOP SUBMENU ========== */
@media (min-width: 769px) {
    .nav-menu .has-children {
        position: relative;
    }
    
    .nav-menu .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 220px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        list-style: none;
    }
    
    .nav-menu .has-children:hover .submenu {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu .submenu a {
        display: block;
        padding: 10px 20px;
        color: #333;
        font-size: 14px;
        transition: all 0.3s;
        white-space: nowrap;
    }
    
    .nav-menu .submenu a:hover {
        background: #f8f9fa;
        color: #e6b422;
        padding-left: 25px;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 0;
    clear: both;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e6b422;
}

.footer-contacts p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
}

.footer-contacts i {
    width: 25px;
    margin-right: 10px;
    color: #e6b422;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #e6b422;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .slider-controls { bottom: 60px; }
}

@media (max-width: 992px) {
    .slide-content { left: 5%; bottom: 20%; max-width: 500px; }
    .slide-content h1 { font-size: 2.5rem; }
    .feature-item, .feature-item:nth-child(even) { flex-direction: column; gap: 30px; text-align: center; }
    .feature-image, .feature-icon { width: 100%; min-height: 300px; }
    .feature-content { text-align: center; padding: 30px; }
    .feature-content h3 { font-size: 1.5rem; }
    .features-header h2, .latest-portfolio-header h2 { font-size: 2rem; }
    .latest-portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contacts-wrapper { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .logo img { height: 45px; }
    .mobile-toggle { display: flex; }
    .language-switcher { margin-left: auto; margin-right: 10px; }
    .lang-btn { padding: 5px 10px; font-size: 11px; }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    .nav.active { left: 0; }
    .nav-menu { flex-direction: column; gap: 0; }
    .nav-menu li { border-bottom: 1px solid #eee; }
    .nav-menu a { display: block; padding: 15px 20px; }
    .nav-menu .has-children > a { position: relative; padding-right: 40px; }
    .nav-menu .has-children > a::after {
        content: '\f0d7';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s;
    }
    .nav-menu .has-children > a.open::after { transform: translateY(-50%) rotate(180deg); }
    .nav-menu .submenu { display: none; background: #f8f9fa; padding: 0; }
    .nav-menu .submenu a { padding: 12px 20px 12px 40px; font-size: 14px; color: #666; }
    
    .hero { height: 70vh; min-height: 500px; }
    .slide-content { left: 20px; right: 20px; bottom: 30%; max-width: none; text-align: center; }
    .slide-content h1 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }
    .slide-address { font-size: 0.8rem; padding: 6px 12px; margin: 0 auto 20px; }
    .slider-controls { bottom: 40px; }
    .slider-controls button { width: 44px; height: 44px; background: rgba(0, 0, 0, 0.7); border: 2px solid rgba(255, 255, 255, 0.5); }
    .slider-controls button i { font-size: 18px; }
    .dot { width: 12px; height: 12px; margin: 0 4px; }
    
    .contacts-wrapper, .services-grid, .services-mini-grid, .latest-portfolio-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .service-header h1, .default-hero h1, .portfolio-header h1 { font-size: 1.8rem; }
    .features-section, .latest-portfolio-section { padding: 40px 0; }
    .page-content { padding: 50px 0; }
    .home-page .page-content { padding: 30px 0; }
    .feature-image, .feature-icon, .latest-portfolio-image { min-height: 250px; }
    .feature-icon i { font-size: 80px; }
    .feature-content h3 { font-size: 1.3rem; }
    .feature-content p { font-size: 1rem; }
    .latest-portfolio-header h2 { font-size: 1.8rem; }
    .latest-portfolio-header p { font-size: 1rem; }
    .latest-portfolio-image { height: 220px; }
    .portfolio-item img { height: 200px; }
    .portfolio-page { padding: 100px 15px 40px 15px; }
    .pagination a, .pagination span { min-width: 35px; height: 35px; font-size: 13px; }
    .portfolio-modal-content { width: 95%; padding: 15px; padding-top: 55px; }
    .modal-main-img { max-height: 40vh; }
    .modal-thumb { width: 50px; height: 50px; }
    .modal-close { top: 10px; right: 12px; width: 40px; height: 40px; font-size: 24px; background: rgba(0, 0, 0, 0.7); color: white; }
    .modal-specs-table td { display: block; width: 100%; padding: 8px 12px; }
    .modal-specs-table .spec-label { width: 100%; background: #e9ecef; }
    .modal-specs-table .spec-value { width: 100%; padding-bottom: 12px; }
    
    .services-page, .service-detail, .content-block, .contacts-wrapper, .about-page .about-content {
        padding: 100px 15px 40px 15px;
    }
}

@media (max-width: 480px) {
    .hero { height: 60vh; min-height: 400px; }
    .slide-content { bottom: 25%; }
    .slide-content h1 { font-size: 1.3rem; }
    .slider-controls { bottom: 30px; }
    .slider-controls button { width: 38px; height: 38px; }
    .slider-controls button i { font-size: 14px; }
    .lang-btn { padding: 4px 8px; font-size: 10px; }
    .page-content { padding: 30px 0; }
    .home-page .page-content { padding: 20px 0; }
    .features-section, .latest-portfolio-section { padding: 30px 0; }
    .pagination { gap: 5px; }
    .pagination a, .pagination span { min-width: 30px; height: 30px; font-size: 12px; }
    .pagination-prev, .pagination-next { padding: 0 10px; }
}

@media (min-width: 1920px) {
    .hero { height: 85vh; min-height: 550px; }
    .slider-controls { bottom: 100px; }
}

/* ========== MOBILE FIXES ========== */
@media (max-width: 768px) {
    .slider-controls { bottom: 20px !important; }
    .slider-controls button:active,
    .slider-controls button:focus,
    .slider-controls button:hover {
        background: #e6b422 !important;
        border-color: #e6b422 !important;
        color: #fff !important;
    }
    .dot:active, .dot:focus, .dot.active {
        background: #e6b422 !important;
        transform: scale(1.2) !important;
    }
    .slider-controls button {
        -webkit-tap-highlight-color: #e6b422 !important;
        tap-highlight-color: #e6b422 !important;
    }
}

@media (max-width: 480px) {
    .slider-controls { bottom: 15px !important; }
}

.slider-controls button:hover,
.slider-controls button:focus,
.slider-controls button:active {
    background: #e6b422 !important;
    border-color: #e6b422 !important;
    color: #fff !important;
    transform: scale(1.05) !important;
}

.dot:hover, .dot:focus, .dot:active {
    background: #e6b422 !important;
    transform: scale(1.2) !important;
}

/* ========== СТОРІНКА "ПРО НАС" ========== */
.about-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.about-video-container {
    width: 100%;
    background: #000;
    margin-top: 50px;
    overflow: hidden;
}

.about-video {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -100px;
    margin-bottom: -100px;
}

.about-page .about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .about-page .about-content {
        padding: 40px 15px;
    }
}



/* ========== ВИПРАВЛЕННЯ СТОРІНКИ ПОСЛУГ – ЦЕНТРУВАННЯ ========== */
.services-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px 20px;
}

/* Контейнер для списку послуг */
.services-page .services-grid {
    max-width: 100%;
    margin: 0 auto;
}

/* Детальна сторінка послуги */
.service-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px 20px;
}

/* Центрування контенту на сторінці послуг */
.service-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Інші послуги – міні-сітка */
.services-mini-grid {
    max-width: 100%;
    margin: 0 auto;
}

/* Для мобільних пристроїв */
@media (max-width: 768px) {
    .services-page {
        padding: 100px 15px 40px 15px;
    }
    
    .service-detail {
        padding: 100px 15px 40px 15px;
    }
}


/* ========== ЦЕНТРУВАННЯ ЗАГОЛОВКА НА СТОРІНЦІ ПОСЛУГ ========== */
.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-header h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    border-left: none;
    padding-left: 0;
}

/* Додатковий опис під заголовком (якщо є) */
.services-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}


/* Альтернативний варіант – примусове центрування */
.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Щоб зображення заповнювало весь простір по вертикалі */
.feature-image {
    align-self: stretch;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* ========== ВИПРАВЛЕННЯ ВІДЕО НА МОБІЛЬНИХ (СТОРІНКА "ПРО НАС") ========== */
@media (max-width: 768px) {
    .about-video-container {
        margin-top: 20px;
        height: 250px;
        overflow: hidden;
    }
    
    .about-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin-top: 0;
        margin-bottom: 0;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .about-video-container {
        height: 200px;
    }
}

/* Альтернативний варіант – якщо відео все ще обрізається */
@media (max-width: 768px) {
    .about-video-container {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 співвідношення */
        height: 0;
        overflow: hidden;
        margin-top: 20px;
    }
    
    .about-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin-top: 0;
        margin-bottom: 0;
    }
}



/* ========== ВИПРАВЛЕННЯ КАРТИНОК В РОЗДІЛІ "ПЕРЕВАГИ" НА МОБІЛЬНИХ ========== */
@media (max-width: 768px) {
    .feature-item {
        flex-direction: column !important;
        gap: 20px;
    }
    
    .feature-image {
        width: 100%;
        min-height: 250px;
        overflow: hidden;
    }
    
    .feature-image img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        object-position: center;
    }
    
    .feature-icon {
        width: 100%;
        min-height: 200px;
    }
    
    .feature-icon i {
        font-size: 60px;
    }
    
    .feature-content {
        padding: 20px;
        text-align: center;
    }
    
    .feature-content h3 {
        font-size: 1.3rem;
    }
    
    .feature-content p {
        font-size: 0.95rem;
    }
}

/* Для дуже маленьких екранів */
@media (max-width: 480px) {
    .feature-image {
        min-height: 200px;
    }
    
    .feature-image img {
        height: 200px;
    }
}




/* ========== ВИПРАВЛЕННЯ КОЛЬОРУ ТЕЛЕФОНІВ НА МОБІЛЬНИХ (КОНТАКТИ) ========== */
/* Запобігаємо автоматичному стилю Safari/Chrome для телефонів */
.contact-item .contact-details a,
.contact-item .contact-details span,
.contacts-list a,
.contacts-list span {
    color: #333 !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Стилі для телефонних посилань */
.contact-item .contact-details a[href^="tel"],
.contacts-list a[href^="tel"] {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: normal;
}

/* При наведенні/натисканні не змінювати колір */
.contact-item .contact-details a[href^="tel"]:hover,
.contact-item .contact-details a[href^="tel"]:active,
.contact-item .contact-details a[href^="tel"]:focus,
.contacts-list a[href^="tel"]:hover,
.contacts-list a[href^="tel"]:active,
.contacts-list a[href^="tel"]:focus {
    color: #333 !important;
    text-decoration: none !important;
}

/* Для всіх контактів на мобільних */
@media (max-width: 768px) {
    .contact-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .contact-item i {
        font-size: 22px;
        min-width: 30px;
    }
    
    .contact-details strong {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .contact-details span,
    .contact-details a {
        font-size: 13px;
        word-break: break-word;
        color: #333 !important;
    }
    
    /* Видаляємо синє підсвічування при натисканні */
    .contact-item {
        -webkit-tap-highlight-color: rgba(230, 180, 34, 0.2);
    }
}

/* Додаткове виправлення для Safari на iOS */
@media (max-width: 768px) {
    a[href^="tel"] {
        color: #333 !important;
        text-decoration: none !important;
    }
}





/* ========== ВИПРАВЛЕННЯ ТЕЛЕФОНІВ У ФУТЕРІ НА МОБІЛЬНИХ ========== */
@media (max-width: 768px) {
    .footer-contacts p {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-contacts i {
        color: #e6b422 !important;
        width: 28px;
        font-size: 16px;
    }
    
    .footer-contacts a,
    .footer-contacts span {
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
    }
    
    /* Якщо телефон в футері є посиланням */
    .footer-contacts a[href^="tel"] {
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
    }
    
    .footer-contacts a[href^="tel"]:hover,
    .footer-contacts a[href^="tel"]:active,
    .footer-contacts a[href^="tel"]:focus {
        color: #e6b422 !important;
    }
}
