/* ====== CSS-ПЕРЕМЕННЫЕ ====== */
:root {
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F7F3EE;
    --color-bg-light: #F1EAE0;
    --color-text-primary: #333333;
    --color-text-secondary: #666666;
    --color-border: #E0D6C9;
    --color-accent-primary: #2A4365;
    --color-accent-hover: #1E3A5F;
    --color-accent-light: #EBF2FA;
    --color-success: #38A169;
    --color-price: #2A4365;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
}

/* ====== ОБЩИЕ СТИЛИ ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-accent-primary);
}

ul {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.section-title--light {
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-accent-primary);
    color: white;
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    color: white;
}

.btn--block {
    display: block;
    width: 100%;
}

/* ====== ШАПКА ====== */
.header {
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent-primary);
}

.logo__subtitle {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav__link.active {
    color: var(--color-accent-primary);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-primary);
}

.header__phone {
    text-align: right;
}

.header__phone a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-accent-primary);
}

.header__hours {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 5px;
}

/* ====== ГЛАВНЫЙ БАННЕР ====== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/hero-kitchen.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 60px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero__text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* ====== РАЗДЕЛ "О НАС" ====== */
.about {
    padding: 60px 0;
    background-color: var(--color-bg-secondary);
}

.about__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about__text h3 {
    font-family: var(--font-heading);
    margin: 25px 0 15px;
    color: var(--color-accent-primary);
}

.about__text ul {
    margin-bottom: 20px;
}

.about__text li {
    margin-bottom: 10px;
}

.about__image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about__image img:hover {
    transform: scale(1.02);
}

/* ====== ФОРМА ЗАМЕРА ====== */
.measure {
    padding: 60px 0;
    background-color: var(--color-accent-primary);
    color: white;
}

.measure__card {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.measure__text {
    margin-bottom: 30px;
    opacity: 0.9;
}

.measure-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: center;
    margin-top: 10px;
}

/* ====== ГАЛЕРЕЯ ====== */
.gallery {
    padding: 60px 0;
}

.gallery__intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--color-text-secondary);
}

.gallery__tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    background-color: var(--color-bg-light);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background-color: var(--color-accent-primary);
    color: white;
}

.gallery__category {
    display: none;
}

.gallery__category.active {
    display: block;
}

.gallery__subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--color-accent-primary);
}

.gallery__desc {
    margin-bottom: 40px;
    padding: 15px;
    background-color: var(--color-accent-light);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery__item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.gallery__item:hover {
    transform: translateY(-5px);
}

.gallery__item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery__item-info {
    padding: 20px;
}

.gallery__item-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.gallery__item-info p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.gallery__cta {
    text-align: center;
    padding: 40px;
    background-color: var(--color-bg-secondary);
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.gallery__cta p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* ====== КОНТАКТЫ ====== */
.contacts {
    padding: 60px 0;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contacts__info h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--color-accent-primary);
}

.contacts__item {
    margin-bottom: 30px;
}

.contacts__item h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.contacts__phone {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent-primary);
    display: block;
    margin: 10px 0;
}

.contacts__map h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--color-accent-primary);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.map-note {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-align: center;
}

.contacts__form {
    max-width: 800px;
    margin: 0 auto;
}

/* ====== ПОДВАЛ ====== */
.footer {
    background-color: var(--color-accent-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer__address {
    margin-top: 15px;
    opacity: 0.8;
    line-height: 1.5;
}

.footer__phone {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.footer__hours {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    opacity: 0.8;
}

.footer__nav a:hover {
    opacity: 1;
}

.social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social__link {
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.social__link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer__copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ====== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ====== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: var(--color-bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--color-accent-primary);
    transition: all 0.3s;
}

.modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-accent-primary);
    transition: all 0.3s;
}

.modal-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-image-container {
    position: relative;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

#modalImage {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    transition: transform 0.3s;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.image-info {
    padding: 20px;
    background-color: var(--color-bg-primary);
}

.image-info h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.image-info p {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Эффект при наведении на изображения в галерее */
.gallery-image {
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}

.gallery-image:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .image-info {
        padding: 15px;
    }
    
    .image-info h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-image-container {
        max-height: 60vh;
    }
    
    #modalImage {
        max-height: 60vh;
    }
}

/* ====== АДАПТИВНОСТЬ ====== */
@media (max-width: 992px) {
    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .header__phone {
        text-align: center;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery__tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .measure__card {
        padding: 25px;
    }
    
    .about__image img {
        height: 250px;
    }
}

/* ====== ИСПРАВЛЕННАЯ ГАЛЕРЕЯ ====== */

/* ОСНОВНЫЕ СТИЛИ */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery__item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}

.gallery__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item:empty,
.gallery__item:has(img[style*="display: none"]) {
    display: none !important;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1200px) {
    .gallery__item { height: 320px; }
}

@media (max-width: 992px) {
    .gallery__grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
    .gallery__item { height: 300px; padding: 12px; }
}

@media (max-width: 768px) {
    .gallery__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
    .gallery__item { height: 280px; padding: 10px; }
}

@media (max-width: 576px) {
    .gallery__grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
    .gallery__item { height: 250px; padding: 8px; }
}

@media (max-width: 480px) {
    .gallery__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gallery__item { height: 220px; padding: 6px; }
}
/* ====== ФОТО МАГАЗИНА НА СТРАНИЦЕ КОНТАКТОВ ====== */

.contacts__photos {
    background-color: var(--color-bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contacts__photos h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.contacts__photos > p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.shop-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.shop-photo {
    background: white;
    border-radius: calc(var(--border-radius) - 2px);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.shop-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.shop-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--border-radius) - 4px);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.shop-image:hover {
    transform: scale(1.05);
}

/* Секция с картой (опущена вниз) */
.contacts__map-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.contacts__map-section h2 {
    font-family: var(--font-heading);
    color: var(--color-accent-primary);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

/* Адаптивность для фото магазина */
@media (max-width: 1200px) {
    .shop-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-photo {
        height: 160px;
    }
}

@media (max-width: 992px) {
    .contacts__grid {
        grid-template-columns: 1fr;
    }
    
    .contacts__photos {
        order: 3; /* Перемещаем фото в конец на мобильных */
        margin-top: 30px;
    }
    
    .shop-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-photo {
        height: 150px;
    }
    
    .contacts__map-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .shop-photos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .shop-photo {
        height: 140px;
        padding: 6px;
    }
    
    .contacts__photos {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .shop-photos-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-photo {
        height: 200px;
    }
}
/* ====== ФОТО МАГАЗИНА НА ВСЮ ВЫСОТУ БЛОКА ====== */

.contacts__photos {
    background-color: var(--color-bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contacts__photos h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contacts__photos > p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    flex-shrink: 0;
}

.shop-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex-grow: 1;
    min-height: 0;
}

.shop-photo {
    background: white;
    border-radius: calc(var(--border-radius) - 2px);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 100%;
    min-height: 200px;
}

.shop-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--border-radius) - 4px);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.shop-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.shop-image:hover {
    transform: scale(1.05);
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: stretch;
}

@media (min-width: 992px) {
    .shop-photo {
        max-height: 500px;
    }
}

@media (max-width: 1200px) {
    .shop-photos-grid {
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts__photos {
        order: 3;
        margin-top: 30px;
        height: auto;
    }
    
    .shop-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-photo {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .shop-photos-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-photo {
        min-height: 300px;
    }
    
    .contacts__photos {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .shop-photo {
        min-height: 250px;
        padding: 8px;
    }
    
    .contacts__photos h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .shop-photo {
        min-height: 200px;
    }
}
/* ====== ФОТО МАГАЗИНА - РАВНАЯ ВЫСОТА С ТЕКСТОМ ====== */

/* Делаем ОБЕ колонки одинаковой высоты */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start; /* Выравниваем по верху, а не растягиваем */
}

/* Текстовая колонка (левая) */
.contacts__info {
    background-color: var(--color-bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%; /* Занимает всю доступную высоту */
}

/* Фотоколонка (правая) */
.contacts__photos {
    background-color: var(--color-bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%; /* ТАКАЯ ЖЕ высота как у левой */
    display: flex;
    flex-direction: column;
}

.contacts__photos h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contacts__photos > p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Сетка фото - растягивается на оставшееся пространство */
.shop-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex-grow: 1; /* Занимает всё свободное место */
    min-height: 0; /* Важно для flex внутри */
}

.shop-photo {
    background: white;
    border-radius: calc(var(--border-radius) - 2px);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 100%; /* На всю высоту ячейки */
}

.shop-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--border-radius) - 4px);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.shop-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.shop-image:hover {
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .shop-photos-grid {
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts__info,
    .contacts__photos {
        height: auto; /* Авто высота на мобильных */
    }
    
    .contacts__photos {
        order: 3;
        margin-top: 30px;
    }
    
    .shop-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-photos-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts__info,
    .contacts__photos {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .shop-photo {
        min-height: 250px; /* Минимальная высота на маленьких экранах */
    }
}
/* ====== СТИЛИ ДЛЯ ЯНДЕКС.ФОРМЫ ====== */
.yandex-form-container {
    width: 100%;
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
}

.yandex-form-container iframe {
    display: block;
    width: 100% !important;
    border: none !important;
    border-radius: calc(var(--border-radius) - 5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Улучшаем отображение формы */
.yandex-form-container ::-webkit-scrollbar {
    width: 8px;
}

.yandex-form-container ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.yandex-form-container ::-webkit-scrollbar-thumb {
    background: var(--color-accent-primary);
    border-radius: 4px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .yandex-form-container {
        padding: 10px;
    }
    
    .yandex-form-container iframe {
        height: 600px;
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .yandex-form-container iframe {
        height: 650px;
        min-height: 650px;
    }
}

@media (max-width: 480px) {
    .yandex-form-container iframe {
        height: 700px;
        min-height: 700px;
    }
}
/* ====== КОМПАКТНАЯ ШАПКА ДЛЯ МОБИЛЬНЫХ ====== */

@media (max-width: 768px) {
    /* Основное уменьшение высоты шапки */
    .header {
        padding: 8px 0 !important; /* Уменьшили padding сверху/снизу */
        min-height: auto !important; /* Убрали фиксированную высоту */
    }
    
    /* Делаем внутренний блок более компактным */
    .header__inner {
        min-height: auto !important;
        gap: 8px !important; /* Уменьшили расстояние между элементами */
    }
    
    /* Уменьшаем логотип */
    .logo__title {
        font-size: 1.1rem !important; /* Уменьшили шрифт */
        line-height: 1 !important; /* Уменьшили межстрочный интервал */
    }
    
    /* Уменьшаем навигацию */
    .nav {
        margin-top: 8px !important; /* Уменьшили отступ сверху */
        gap: 12px !important; /* Уменьшили расстояние между ссылками */
    }
    
    .nav__link {
        font-size: 0.85rem !important; /* Уменьшили шрифт */
        padding: 3px 0 !important; /* Уменьшили внутренние отступы */
    }
    
    /* Уменьшаем адрес */
    .header__address {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
    }
    
    /* Уменьшаем телефон */
    .header__phone a {
        font-size: 0.9rem !important;
    }
    
    .header__hours {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 576px) {
    /* Еще более компактно для маленьких экранов */
    .header {
        padding: 6px 0 !important;
    }
    
    .header__inner {
        gap: 6px !important;
    }
    
    .logo__title {
        font-size: 1rem !important;
    }
    
    .nav {
        margin-top: 6px !important;
        gap: 10px !important;
    }
    
    .nav__link {
        font-size: 0.8rem !important;
    }
    
    /* Уменьшаем отступы в навигации */
    .nav__link {
        padding: 2px 0 !important;
    }
}

@media (max-width: 480px) {
    /* Максимально компактная шапка */
    .header {
        padding: 4px 0 !important; /* Минимальные отступы */
    }
    
    .header__inner {
        gap: 4px !important;
    }
    
    .logo__title {
        font-size: 0.9rem !important;
    }
    
    /* Делаем навигацию в одну строку компактнее */
    .nav {
        margin-top: 4px !important;
        gap: 8px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .nav__link {
        font-size: 0.75rem !important;
        padding: 1px 0 !important;
        white-space: nowrap;
    }
    
    /* Уменьшаем текст адреса */
    .header__address {
        font-size: 0.65rem !important;
        line-height: 1 !important;
        margin: 0 !important;
    }
    
    /* Скрываем перенос строки в адресе */
    .header__address br {
        display: none !important;
    }
    
    .header__address {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }
}

/* Дополнительно: если шапка слишком высокая из-за flex-растягивания */
@media (max-width: 768px) {
    .header__inner {
        align-items: center !important; /* Выравниваем по центру по вертикали */
    }
    
    .logo, .nav, .header__info {
        flex-shrink: 0 !important; /* Запрещаем растягивание */
    }
}