:root {
    --gray-light: #e1f8ff;
    --gray-medium: #e0e0e0;
    --gray-dark: #333333;
    --black: #111111;
    --orange: #ff6b35;
    --orange-dark: #e55a2b;
    --white: #ffffff;
    --header-bg: #046380;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--gray-dark);
    line-height: 1.6;
    background-color: var(--gray-light);
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background-color: var(--header-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    height: 50px;
    margin-left: 10px;
    margin-top: 5px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

nav a:hover {
    color: var(--orange);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0 15px;
}

/* ===== HERO SECTIONS ===== */
.hero, .gallery-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('/images/kitchen.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
    margin-top: 70px;
}

.hero-content {
    width: 100%;
}

.hero h1, .gallery-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p, .gallery-description {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--orange);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    border: 2px solid var(--orange);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--orange);
}

/* ===== GALLERY PAGE ===== */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.filter-btn {
    background-color: var(--gray-light);
    border: 2px solid var(--gray-medium);
    color: var(--gray-dark);
    padding: 10px 25px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.full-gallery {
    padding: 60px 0 80px;
}

.gallery-container {
    columns: 5;
    column-gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
    transition: transform 0.5s;
}

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

.gallery-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 107, 53, 0.9);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
}

.back-button {
    display: inline-block;
    margin-top: 40px;
    background-color: var(--black);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--black);
}

.back-button:hover {
    background-color: transparent;
    color: var(--black);
}

/* ===== MAIN PAGE SECTIONS ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--black);
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--orange);
}

/* Advantages */
.advantages {
    padding: 80px 0 80px;
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: var(--gray-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--orange);
}

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

.advantage-icon {
    font-size: 40px;
    color: var(--orange);
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin-bottom: 15px;
    color: var(--black);
}

/* Reviews */
.reviews {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.review-text::before {
    content: '"';
    font-size: 60px;
    color: var(--orange);
    position: absolute;
    left: -10px;
    top: -20px;
    opacity: 0.3;
}

.review-author {
    font-weight: 600;
    color: var(--black);
    border-top: 1px solid var(--gray-medium);
    padding-top: 15px;
}

/* Main Page Gallery */
.gallery {
    padding: 80px 0;
    background-color: var(--white);
}

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

.gallery-main-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    background-color: var(--gray-light);
}

.gallery-main-item:hover {
    transform: translateY(-5px);
}

.gallery-main-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-main-item:hover img {
    transform: scale(1.05);
}

.gallery-link {
    text-align: center;
}

.more-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 7px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--orange);
}

.more-button:hover {
    background-color: transparent;
    color: var(--orange);
}

/* Contacts */
.contacts {
    padding: 80px 0;
    background-color: var(--header-bg);
    color: var(--white);
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 30px;
    color: var(--white);
    font-size: 2rem;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-details i {
    color: var(--orange);
    margin-right: 10px;
    margin-top: 5px;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--gray-dark);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--orange);
    transform: translateY(-5px);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    font-size: 18px;
}

/* Footer */
footer {
    background-color: var(--gray-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

/* ===== FULLSCREEN VIEWER ===== */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.fullscreen-overlay.active {
    display: flex;
    opacity: 1;
}

.fullscreen-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.fullscreen-close:hover {
    color: var(--orange);
}

.fullscreen-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 53, 0.8);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.fullscreen-nav:hover {
    background: var(--orange);
}

.fullscreen-prev {
    left: 20px;
}

.fullscreen-next {
    right: 20px;
}

.fullscreen-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--header-bg);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: #0691BA;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px) {
    .gallery-container {
        columns: 3;
        width: 100%;
        padding: 0 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-main-item img {
        height: 200px;
    }
    
    .hero h1, .gallery-hero h1 {
        font-size: 2.4rem;
    }
    
    .contacts-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fullscreen-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .gallery-container {
        columns: 2;
        column-gap: 15px;
    }
    
    .hero, .gallery-hero {
        margin-top: 70px;
        min-height: 80vh;
        padding: 40px 20px;
    }
    
    .hero h1, .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .hero p, .gallery-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .advantages-grid,
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .fullscreen-nav {
        position: fixed;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    
    .fullscreen-prev {
        left: 20px;
    }
    
    .fullscreen-next {
        right: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
}

/* Mobile Small */
@media (max-width: 576px) {
    .gallery-container {
        columns: 1;
        max-width: 400px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-main-item img {
        height: 200px;
    }
    
    .hero h1, .gallery-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .gallery-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .fullscreen-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
        bottom: 15px;
    }
    
    .fullscreen-prev {
        left: 15px;
    }
    
    .fullscreen-next {
        right: 15px;
    }
    .logo {
    height: 36px;
    margin-left: 10px;
    margin-top: 5px;
}
}

/* Desktop Wide */
@media (min-width: 1400px) {
    .gallery-container {
        columns: 4;
        max-width: 1600px;
    }
}

/* ===== БЛОК КУХНИ НА ЗАКАЗ ===== */
.custom-kitchens-section {
    padding: 60px 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 80px auto 30px;
    border-radius: 10px;
    max-width: 1560px;
    position: relative;
}

.custom-kitchens-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.custom-kitchens-section .section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--orange);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Обертка контента */
.content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

/* Текстовый контент */
.text-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--gray-dark);
    line-height: 1.5;
    text-indent: 1.5em;
}

/* Особенности */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--gray-light);
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--orange);
    flex: 1;
    min-width: 200px;
}

.feature i {
    color: var(--orange);
    font-size: 1.2rem;
}

.feature span {
    font-weight: 600;
    color: var(--black);
}

/* Кнопка призыва к действию в этом блоке */
.custom-kitchens-section .cta-button {
    display: inline-block;
    background-color: var(--orange);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
    border: 2px solid var(--orange);
}

.custom-kitchens-section .cta-button:hover {
    background-color: transparent;
    color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

/* Изображение */
.image-content {
    flex: 1;
}

.image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.main-image:hover {
    transform: scale(1.03);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.image-caption i {
    color: #f1c40f;
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .content-wrapper {
        gap: 30px;
    }
    
    .custom-kitchens-section .section-title {
        font-size: 2.2rem;
    }
    
    .feature {
        min-width: 160px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .custom-kitchens-section {
        padding: 40px 0;
        margin: 80px 15px 30px;
    }
    
    .custom-kitchens-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .image-content {
        order: -1; /* На мобильных изображение будет выше текста */
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature {
        min-width: 100%;
    }
    
    .text-content p {
        font-size: 1rem;
    }
    
    .custom-kitchens-section .cta-button {
        width: 100%;
        text-align: center;
        padding: 18px 30px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .custom-kitchens-section .section-title {
        font-size: 1.5rem;
    }
    
    .custom-kitchens-section {
        padding: 30px 0;
    }
    
    .image-caption {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}
