/* Подключение своего шрифта */
@font-face {
    font-family: 'Museo';
    src: url('../fonts/MuseoSansCyrl300.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Museo';
    src: url('../fonts/MuseoSansCyrl700.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Museo', 'Arial', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    /* Запрет выделения текста для всего сайта, кроме measurements */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Разрешаем выделение в секции measurements */
.measurements-section,
.measurements-section * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Защита от скачивания изображений */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
    /* Запрет клика правой кнопкой мыши */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Fallback для изображений */
img {
    background-color: #f5f5f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23ddd' fill-opacity='0.5'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.hero-active {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.hero-active .logo,
.header.hero-active .nav-menu a {
    color: #fff;
}

.header.hero-active .header-icon {
    filter: invert(1);
}

.logo {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Museo', Arial, sans-serif;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
}

.header-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.05);
}

.language-switcher:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.header.hero-active .language-switcher {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.header.hero-active .language-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
}

#currentLanguage {
    font-weight: 600;
    color: #333;
}

.header.hero-active #currentLanguage {
    color: #fff;
}

.language-divider {
    opacity: 0.5;
    font-weight: 300;
}

#alternativeLanguage {
    opacity: 0.6;
    font-weight: 400;
}

/* Простая анимация поделиться */
.share-icon {
    transition: all 0.3s ease;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header.hero-active .mobile-menu-btn span {
    background: #fff;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../photo/hero.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    position: relative;
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Museo', serif;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #fff;
    margin: 10px auto;
    opacity: 0.8;
}

/* Measurements Section */
.measurements-section {
    min-height: 100vh;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 40px;
}

.measurements-container {
    max-width: 500px;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: #333;
    font-family: 'Museo', serif;
}

.measurements-card {
    background: #fff;
    padding: 60px 80px;
    border-radius: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.model-name {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 8px;
    color: #333;
}

.model-title {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.measurements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 60px;
    margin-bottom: 40px;
}

.measurement-item {
    text-align: left;
}

.measurement-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.measurement-value {
    font-size: 18px;
    font-weight: 400;
    color: #333;
}

.contact-info {
    border-top: 1px solid #eee;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 16px;
    color: #333;
}

/* Contact Buttons - минималистичный стиль */
.contact-buttons {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: #666;
    border: 1px solid #ddd;
    background: #fff;
}

.contact-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.contact-btn:hover {
    color: #333;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Gallery Sections */
.gallery-section {
    padding: 100px 40px;
    background: #f8f8f8;
}

.gallery-section:nth-child(even) {
    background: #fff;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-title {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: #333;
    font-family: 'Museo', serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Image Loading States */
.gallery-item img[data-loading="true"] {
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gallery-item img[data-error="true"] {
    background-color: #f5f5f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='%23ccc'%3E%3Cpath d='M14.12 4L12 2l-2.12 2-2.12-2L5.64 4v16l2.12-2 2.12 2 2.12-2 2.12 2 2.12-2V4h-2.12zM12 17l-3-2.25L12 12l3 2.25L12 17zm0-8l-3 2.25L12 14l3-2.25L12 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.gallery-item img[data-error="true"]::after {
    content: "Изображение недоступно";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 100px;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    transition: opacity 0.3s ease;
    z-index: 2001;
    user-select: none;
}

.modal-nav:hover {
    opacity: 0.7;
}

.modal-nav.prev {
    left: 30px;
}

.modal-nav.next {
    right: 30px;
}

.modal-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* Блокировка скриншотов */
.no-screenshot {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Защита от печати */
@media print {
    * {
        display: none !important;
    }
    body::before {
        content: "Печать запрещена";
        display: block !important;
        font-size: 50px;
        text-align: center;
        padding: 100px;
    }
}

/* Свайповое мобильное меню */
.mobile-menu-wrapper {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
}

.mobile-menu-wrapper.visible {
    display: flex;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    z-index: 999;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu a {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
    white-space: nowrap;
    border-radius: 20px;
    background: #f4f4f4;
    margin: 0 8px;
}

.mobile-menu a:hover {
    background: #e0e0e0;
}

.mobile-menu a.active {
    background: #333;
    color: #fff;
}

/* Footer Styles */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 40px 40px;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-info p:first-child {
    font-weight: 500;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.footer-link:hover {
    opacity: 0.7;
}

/* Legal Modal Styles */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.legal-modal-content {
    background: #fff;
    margin: 50px auto;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.legal-modal-header h2 {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    color: #333;
}

.legal-modal-close {
    font-size: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.legal-modal-close:hover {
    color: #333;
}

.legal-modal-body {
    padding: 40px;
}

.legal-section {
    margin-bottom: 50px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.legal-text h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 0px 0;
    color: #444;
}

.legal-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
}

.legal-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-text li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #666;
}

.legal-text a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.legal-text a:hover {
    text-decoration: underline;
}

.legal-text strong {
    color: #d32f2f;
    font-weight: 600;
}

/* Language version visibility */
.english-version {
    display: none;
}

.russian-version {
    display: block;
}

body[data-lang="en"] .english-version {
    display: block;
}

body[data-lang="en"] .russian-version {
    display: none;
}

body[data-lang="ru"] .english-version {
    display: none;
}

body[data-lang="ru"] .russian-version {
    display: block;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Защита от выделения (исключая measurements) */
::selection {
    background: transparent;
}

::-moz-selection {
    background: transparent;
}

/* Разрешаем выделение в measurements */
.measurements-section ::selection {
    background: rgba(0, 123, 255, 0.3);
}

.measurements-section ::-moz-selection {
    background: rgba(0, 123, 255, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 999;
        display: none;
    }

    .mobile-menu-wrapper.visible {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content h1 {
        position: relative;
        font-size: 2.5rem;
        margin-top: 250px;
        padding-top: 140px;
    }

    .section-title,
    .gallery-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .measurements-section {
        padding: 80px 20px;
    }

    .measurements-card {
        padding: 40px 30px;
    }

    .measurements-grid {
        gap: 20px 40px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .contact-btn {
        justify-content: center;
        padding: 10px 20px;
    }

    .modal-content {
        padding: 80px 20px;
    }

    .modal-nav {
        font-size: 30px;
        padding: 15px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 24px;
    }

    .gallery-section {
        padding: 80px 20px;
    }

    /* Responsive Footer */
    .footer {
        padding: 40px 20px 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .legal-modal-content {
        margin: 20px auto;
        width: 95%;
    }

    .legal-modal-header {
        padding: 20px 20px 15px;
    }

    .legal-modal-header h2 {
        font-size: 20px;
    }

    .legal-modal-body {
        padding: 25px 20px;
    }

    .legal-section {
        margin-bottom: 35px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 999;
        display: none;
    }

    .mobile-menu-wrapper.visible {
        display: flex;
    }

    .mobile-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-content h1 {
        position: relative;
        font-size: 2rem;
    }
}