/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://example.com
Description: Дочерняя тема для Twenty Twenty-Five
Author: Neal Mixam
Template: twentytwentyfive
Version: 1.0.0
*/
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #333;
    line-height: 1.5;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    margin: 0 auto;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    flex-shrink: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 1;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    display: block;
}

.site-title:hover {
    opacity: 0.7;
}

.site-title img {
    display: block;
    border-radius: 16px;
}

.site-contacts {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: #000;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-weight: 500;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-icons__link {
    height: 32px;

    &:hover {
        opacity: 0.8;
    }
}

.btn-phone:hover,
.btn-phone:focus,
.btn-phone:active {
    opacity: 0.6;
}

.main-container {
    display: flex;
    flex: 1;
    position: relative;
}

.site-sidebar {
    width: 280px;
    /* background:
            linear-gradient(
                    180deg,
                    #EFE8E1 0%,
                    #E6DDD4 100%
            ); */
    display: flex;
    flex-direction: column;
    align-items: center;        
    background-color: #FFFFFF;
    /* border-right: 1px solid #D8CEC4; */
    overflow-y: auto;
    position: sticky;
    top: calc(10px + 10%);
    height: calc(100vh - 90px);
    flex-shrink: 0;
    z-index: 1;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 16px 20px 16px 20px;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a::before,
.mobile-menu-list li a::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
}

.sidebar-menu li+li {
    margin-top: 10px;
}

.sidebar-menu a {
    position: relative;
    display: block;
    font-weight: 500;
    font-size: 18px;
    color: #111;
    text-decoration: none;
    padding: 12px 10px 12px 40px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.mobile-menu-list li a:hover {
    background-color: #f2f2f2;
    color: #000;
    text-decoration: none;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    overflow-y: auto;
    /* background: linear-gradient(180deg, #EFE8E1 0%, #E6DDD4 100%); */
    /* background-color: #FFFFFF; */
    background-color: #F5F5F7;
}

/*.content-wrapper::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    background-image: url("assets/images/pale-wall-texture.jpg");*/
/*    background-size: contain;*/
/*    background-repeat: repeat;*/
/*    filter: blur(2px);*/
/*    z-index: 0;*/
/*}*/

/*.content-wrapper > * {*/
/*    position: relative;*/
/*    z-index: 1;*/
/*}*/

.site-main {
    flex: 1;
    font-size: 18px;
}

.site-main .content-area {
    flex: 1;
}

.site-footer {
    background: #222;
    color: #eee;
    padding: 40px 0;
    margin-top: 60px;
    flex-shrink: 0;
    z-index: 1;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: #fff;
}

.homepage {
    flex: 1;
    overflow-y: auto;
    width: 100%;
}

.home-section {
    padding: 24px 80px;
    width: 100%;
}

.home-section.alt {
    border-radius: 16px;
}

.gallery-section {
    padding: 30px 20px;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    color: #222;
}

.home-section .section-title {
    margin: 0 0 24px;
}

.home-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 25px; */
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    margin-bottom: 50px;
}

.home-grid .product-card {
    padding: 12px;
}

.home-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.product-card {
    /* border: 1px solid #eee; */
    border: 1px solid #EEEEEE;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    /* background: #F3EEE7; */
    background: #F9F9F9;
    border-radius: 16px;
    /* box-shadow: 0 6px 20px rgba(0,0,0,0.04); */
    box-shadow: rgba(0, 0, 0, 0.04) 0px 4px 20px;
}

.product-card:hover {
    box-shadow:
        0 14px 36px rgba(60, 45, 30, 0.45);
}

.product-image {
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(60, 45, 30, 0.08);
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.product-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.home-grid .product-image>img {
    height: 400px;
}

.product-card h2 {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    /*margin-bottom: 8px;*/
    margin: 0;
}

.product-title {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    margin: 0;
}

.btn-details,
.btn-primary {
    display: inline-block;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    /* background: #6F9FA3; */
    background-color: #212121;
    border-radius: 6px;
    margin-top: 12px;
    padding: 10px 18px;
    transition: background-color, color 0.3s ease-out;
    box-sizing: border-box;
}

.btn-details:hover,
.btn-primary:hover {
    /* background-color: #5E8E92; */
    opacity: 0.6;
    color: #FFFFFF;
}

.about-section {
    padding: 80px 20px;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 0 auto;
}

.about-text {
    font-size: 16px;
    line-height: 1.6;
}

.about-content p {
    margin-bottom: 1em;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.about-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.about-image:hover {
    &>img {
        transform: scale(1.15);
    }
}

.gallery-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.gallery-grid .gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.25s ease;
    text-align: center;

    &:hover {
        &>img {
            transform: scale(1.15);
        }
    }
}

.gallery-card img {
    transition: transform 0.4s ease;
}

.gallery-card h3 {
    position: absolute;
    color: white;
    bottom: 0;
    text-align: center;
    filter: drop-shadow(2px 4px 6px black);
}

.gallery-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.gallery-desc {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
}

.contact-section {
    padding: 80px 20px;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    font-size: 16px;
    color: #333;
}

.contact-details {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.contact-details li {
    margin-bottom: 8px;
}

.contact-details a {
    color: #0066cc;
    text-decoration: none;
}

.feedback-form .form-group {
    margin-bottom: 20px;
}

.feedback-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D2C7BC;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: #4A4036;
    transition: border-color 0.3s;
    background-color: #F6F2ED;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    border-color: #0078ff;
    outline: none;
}

.feedback-form .btn-primary {
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-message.success {
    background: #e0f8e0;
    border: 1px solid #8ad68a;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 6px;
    color: #256d25;
}

.products-archive {
    flex-grow: 1;
    padding: 32px 16px;
}

.products-archive h1 {
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.products-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
    color: #222;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.products-filters {
    /* background: linear-gradient(180deg, #F2ECE6, #E8DED4); */
    background-color: #F9F9F9;
    padding: 20px;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.filter-group input {
    background-color: #F6F2ED;
    border: 1px solid #D2C7BC;
    color: #4A4036;
}

.filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.filter-group input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.apply-filters,
.reset-filters {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.apply-filters {
    /* background-color: #6F9FA3; */
    background-color: #212121;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(111, 159, 163, 0.35);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.apply-filters:hover {
    opacity: 0.7;
    /* background-color: #5E8E92; */
    box-shadow: 0 10px 22px rgba(94, 142, 146, 0.4);
}

.apply-filters:active {
    background-color: #547F83;
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(84, 127, 131, 0.45);
}

.reset-filters {
    background-color: #E8E2DB;
    color: #6B5A4A;
    border: 1px solid #D2C7BC;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.reset-filters:hover {
    background-color: #DED6CE;
    border-color: #C6B9AD;
}

.reset-filters:active {
    background-color: #D6CDC4;
}

.apply-filters:disabled,
.reset-filters:disabled {
    background-color: #E0DBD5;
    color: #9A8F84;
    border-color: #D8CEC4;
    box-shadow: none;
    cursor: not-allowed;
}

.single-product {
    margin-top: 0.83em;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    flex-grow: 1;
}

.product-container {
    display: flex;
    flex-direction: column;
}

.product-gallery {
    position: relative;
    border: 1px solid #ddd;
    box-sizing: border-box;
    max-width: 800px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 10px 8px 10px 8px rgba(0, 0, 0, 0.25);
}

.product-gallery__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
}

.product-info {
    border-radius: 12px;
    padding: 30px;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.25);
}

.product-info h1 {
    margin-bottom: 16px;
    font-size: 2rem;
    color: #222;
}

.product-content {
    margin-bottom: 20px;

    & p {
        margin: 0;
    }
}

.product-meta p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

.product-meta strong {
    color: #333;
}

.product-meta p {
    font-size: 0.95rem;
    color: #555;
    margin: 6px 0;
}

.btn-back {
    margin-top: 20px;
    padding: 10px 18px;
    background-color: transparent;
    border: 1px solid #5FAEB6;
    font-size: 16px;
    color: #5FAEB6;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-back:hover {
    background-color: #5FAEB6;
    color: #FFFFFF;
    border-color: #5FAEB6;
}

.product-360-wrapper {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    width: 100%;
    max-width: 500px;
    height: 600px;
    overflow: hidden;
}

#product-360-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;

    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

#product-360-trigger {
    width: 100%;
    max-width: 600px;
    position: relative;
    text-align: center;
}

#product-360 canvas,
#product-360 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-360-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.product-360-controls button {
    padding: 8px 12px;
    border: none;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.product-360-controls button:hover {
    background-color: #005177;
}

#product-360-wrapper p {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

#product-360-wrapper span {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: black;
    border-radius: 8px;
    font-size: 16px;
    padding: 4px 8px;
    color: white;
}

.btn-360 {
    position: relative;
    max-width: 80px;
    height: 80px;
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 120%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;

    &:hover {
        opacity: 0.7;
    }
}

.btn-360 img {
    width: 100%;
    height: 100%;
}

.btn-play-pause {
    display: inline-block;
    margin-top: 10px;
    background: #222;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-play-pause:hover {
    background: #555;
}

/* ===========================  MODAL 360 VIEW  =========================== */

.modal-360 {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-360.active {
    opacity: 1;
    visibility: visible;
}

.modal-360-content {
    display: flex;
    justify-content: center;
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-360-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #333;
    transition: color 0.2s ease;
    z-index: 10000;
}

.modal-360-close:hover {
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loader-text {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.7;
}

.btn-360:hover {
    opacity: 0.7;
}

.is-zoomed {
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#product-360-wrapper.is-dragging {
    cursor: grabbing !important;
}

.modal-360.fullscreen {
    padding: 0;
}

.modal-360.fullscreen .modal-360-content {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.viewer-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================  CONTACTS PAGE  =========================== */
.contacts-page {
    width: 100%;
    padding: 40px 0;
}

.contacts-page .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.page-content {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}

.contacts-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.contacts-item span,
.contacts-item a {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
}

.contacts-item a:hover {
    text-decoration: underline;
}

.page-content iframe {
    flex: 1;
    min-width: 300px;
    border: 0;
    border-radius: 8px;
    height: 400px;
}

/* ===========================  OTHER PAGES  =========================== */
.services-page,
.cooperations-page,
.about-page {
    padding: 32px 20px;
}

/* ===========================  SWIPER GALLERY  =========================== */
.product-gallery .thumbs-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-gallery .thumbs-slider .swiper-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.product-gallery .thumbs-slider .swiper-slide {
    flex: 0 0 auto;
    width: 80px !important;
    height: 80px !important;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    border: 1px solid #ddd;
    transition: all 0.2s ease-in-out;
}

.product-gallery .thumbs-slider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #000;
}

.product-gallery .thumbs-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.product-gallery .swiper-wrapper {
    align-items: center;
}

.main-slider img {
    max-width: 380px;
    width: 100%;
    border-radius: 8px;
}

.swiper-slide a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.thumbs-slider img {
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.7;
    transition: 0.3s;
}

.thumbs-slider .swiper-slide-thumb-active img {
    opacity: 1;
    border: 2px solid #000;
}

/* ===========================  MOBILE MENU  =========================== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger-bar {
    width: 24px;
    height: 2.5px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: 80px 20px 20px;
    background: linear-gradient(180deg, #EFE8E1 0%, #E6DDD4 100%);
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-list {
    padding: 0;
    margin: 40px 0 0;
    list-style: none;
}

.mobile-menu-list a {
    position: relative;
    display: block;
    font-weight: 500;
    font-size: 18px;
    color: #111;
    text-decoration: none;
    padding: 12px 10px 12px 40px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background-color: #f2f2f2;
    color: #000;
    text-decoration: none;
}

.mobile-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mobile-phone {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mobile-phone a {
    color: #000;
    font-size: 18px;
    text-decoration: none;
}

/* ===========================  ADAPTIVE LAYOUT  =========================== */
@media (max-width: 1600px) {
    .product-gallery {
        max-width: 600px;
    }
}

@media (max-width: 1400px) {
    .product-gallery {
        max-width: 400px;
    }
}

@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px; 
    }
    
    .single-product {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-container {
        width: 100%;
        max-width: 700px;
    }

    .product-gallery {
        max-width: 600px;
        width: 100%;
    }

    .product-gallery .swiper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .product-gallery .swiper-slide img {
        width: 100%;
        display: block;
        object-fit: contain;
        border-radius: 6px;
    }
}

@media (max-width: 1024px) {

    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-layout,
    .coatings-layout {
        grid-template-columns: 1fr;
    }

    .gallery-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-block.reverse {
        direction: ltr;
    }

    .gallery-text h2 {
        font-size: 1.75rem;
    }

    .gallery-description {
        font-size: 1rem;
    }

    .page-content {
        gap: 24px;
    }

    .contacts-item {
        max-width: 350px;
    }

    .contacts-item span,
    .contacts-item a {
        font-size: 1rem;
    }

    .page-content iframe {
        height: 350px;
    }
}

@media (max-width: 992px) {

    .products-layout,
    .coatings-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .burger-menu {
        display: flex;
    }

    .site-contacts {
        display: none;
    }

    .product-gallery {
        max-width: 100%;
        padding: 10px;
    }

    .product-gallery .swiper-slide {
        width: 100% !important;
    }

    .product-gallery img {
        width: 100%;
        height: auto;
    }

    .product-info {
        width: 100%;
        max-width: 700px;
        display: flex;
        flex-direction: column;
        padding: 10px;
        font-size: 16px;
        text-align: center;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }

    .product-gallery .thumbs-slider .swiper-slide {
        width: 65px !important;
        height: 65px !important;
    }
}

@media (max-width: 768px) {
    .site-sidebar {
        display: none;
    }

    .site-main {
        padding: 15px;
    }

    .home-section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* .home-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    } */

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }

    .gallery-page {
        gap: 30px;
        padding: 15px 0;
    }

    .gallery-text h2 {
        font-size: 1.5rem;
    }

    .gallery-description {
        font-size: 0.95rem;
    }

    .gallery-images {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }

    .page-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contacts-item {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .page-content iframe {
        width: 100%;
        height: 300px;
    }

    .services-page,
    .cooperations-page,
    .about-page {
        padding: 32px 20px;
    }
}

@media (max-width: 600px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .home-section {
        padding: 20px 0;
    }

    .product-gallery .swiper-slide {
        width: 100% !important;
    }

    .product-gallery .thumbs-slider .swiper-slide {
        height: 55px !important;
    }

    .gallery-text h2 {
        font-size: 1.3rem;
    }

    .gallery-description {
        font-size: 0.9rem;
    }

    .gallery-images {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .gallery-img img {
        border-radius: 6px;
    }

    .contacts-page {
        padding: 20px 10px;
    }

    .contacts-page .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .contacts-item span,
    .contacts-item a {
        font-size: 0.95rem;
    }

    .page-content iframe {
        height: 250px;
    }
}

.layout {
    display: none;
}

.content-wrapper.old {
    display: none;
}

.gallery-page {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 40px 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.gallery-block:last-child {
    border-bottom: none;
}

.gallery-block.reverse {
    direction: rtl;
}

.gallery-block.reverse .gallery-text {
    direction: ltr;
}

.gallery-text h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #222;
    line-height: 1.2;
}

.gallery-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.gallery-description p {
    margin-bottom: 1.2rem;
}

.gallery-description strong {
    color: #000;
    font-weight: 600;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    align-items: start;
}

.gallery-images> :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.gallery-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

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

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

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

.gallery-heading {
    font-weight: 700;
    text-align: center;
    font-size: 42px;
    margin-bottom: 3rem;
    color: #222;
    letter-spacing: -0.5px;
}

@media (max-width: 1024px) {
    .gallery-block {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }

    .gallery-block.reverse {
        direction: ltr;
    }

    .gallery-text h2 {
        font-size: 28px;
        text-align: center;
    }

    .gallery-images {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }

    .btn-back {
        order: 5;
    }
}

@media (max-width: 768px) {
    .gallery-page {
        gap: 40px;
        padding: 20px 12px;
    }

    .gallery-heading {
        font-size: 32px;
        margin-bottom: 2rem;
    }

    .gallery-text h2 {
        font-size: 24px;
    }

    .gallery-description {
        font-size: 1rem;
    }

    .gallery-images {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-img {
        border-radius: 8px;
    }

    .modal-360-content {
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 20px;
    }

    .gallery-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-text h2 {
        font-size: 22px;
    }

    .gallery-description {
        font-size: 0.95rem;
    }

    .single-product {
        padding: 0;
    }
}

/* --- Основной контейнер модалки --- */
#modal-360-viewer {
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Важно: обрезает все, что вылезает при зуме */
}

#product-360 {
    /* Ваши текущие стили */
    background-repeat: no-repeat;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;

    cursor: grab;
}

#product-360.is-zoomed {
    /* 1. Отключаем события мыши на картинке. 
       Теперь библиотека 360 не узнает, что мы двигаем мышь. */
    /* pointer-events: none; */

    /* 2. Курсор будет задаваться оберткой, так как элемент "прозрачен" для мыши */
}

/* Когда тащим (класс вешаем на обертку для курсора) */
#product-360-wrapper.is-dragging {
    cursor: grabbing;
}

/* --- Контроллеры (Меню) --- */
/* .controls-360 {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
} */

.controls-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.controls-menu {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s ease;
}

.controls-menu.open {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.modal-360.fullscreen .modal-360-content {
    max-width: unset;
    width: 100vw;
    height: 100vh;
}

.product-360-trigger.zoomed {
    overflow: hidden;
}

button:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.controls-360 {
    position: relative;
    z-index: 10;
}

/* Toggle button */
.controls-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.15s ease;
}

.controls-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.controls-toggle:active {
    transform: scale(0.95);
}

/* ================= MENU ================= */

.controls-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.controls-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ================= BUTTONS ================= */

.controls-menu button {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);

    background: rgba(255, 255, 255, 0.05);
    color: #fff;

    font-size: 18px;
    line-height: 1;

    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.controls-menu button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.controls-menu button:active {
    transform: scale(0.95);
}

.controls-menu button:disabled {
    opacity: 0.35;
    pointer-events: none;
}

#play-pause-360 {
    padding: 0 14px;
    font-size: 14px;
    gap: 6px;
}

.product-360-trigger.zoomed .controls-menu button:not(#zoom-out-360) {
    opacity: 0.4;
}

.modal-360.fullscreen {
    background: #000;
}

.modal-360.fullscreen .modal-360-content {
    width: 100vw;
    height: 100vh;
}