/* Шрифт Benzin */
@font-face {
    font-family: 'Benzin';
    src: url('fonts/Benzin-Bold.woff2') format('woff2'),
         url('fonts/Benzin-Bold.woff') format('woff'),
         url('fonts/Benzin-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Benzin';
    src: url('fonts/Benzin-ExtraBold.woff2') format('woff2'),
         url('fonts/Benzin-ExtraBold.woff') format('woff'),
         url('fonts/Benzin-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

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

body {
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
}

/* Хедер в стиле Okko */
.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-partner-btn {
    background: #90002a;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.header-partner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(144, 0, 42, 0.4);
    background: #a80031;
}

/* Главный баннер */
.hero-banner {
    position: relative;
    height: 500px;
    margin-bottom: 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-image: url('img/banner.jpg');
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    background: white;
    color: #90002a;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: auto;
}

.hero-title {
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.rating {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* Секция проектов */
.projects-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

/* Фильтры */
.filters-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.filters-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-button {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.filter-button.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.view-all {
    color: #6366f1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.view-all:hover {
    color: #8b5cf6;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 16 / 9;
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.project-image-icon {
    font-size: 64px;
    position: relative;
    z-index: 1;
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
}

.project-labels {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 2;
    flex-wrap: wrap;
}

.project-label {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    
    white-space: nowrap;
}

.project-info {
    padding: 20px;
}

.project-name {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Кнопка скачать сметы */
.download-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.download-button:active {
    transform: translateY(-1px);
}

.download-icon {
    font-size: 20px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(20, 20, 30, 0.95);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 15px;
}

.password-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.password-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 30px 30px;
}

.modal-button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-button {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.submit-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* Форма партнерства */
.partner-modal-content {
    max-width: 500px;
}

.partner-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.partner-message {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.partner-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
}

.partner-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
}

/* Модальное окно проекта */
.project-modal-content {
    max-width: 900px;
    width: 90%;
    padding: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    max-height: 85vh;
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.project-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.project-modal-image {
    flex: 0 0 45%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    background-color: #1a1a2e;
}

.project-modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.project-modal-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.project-modal-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.project-modal-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-modal-meta-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-text {
    font-size: 14px;
    font-weight: 500;
}

.project-modal-labels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-modal-label {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.project-partner-btn {
    background: #90002a;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.project-partner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(144, 0, 42, 0.4);
    background: #a80031;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content,
    .hero-content,
    .projects-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-partner-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .logo {
        gap: 10px;
    }

    .logo-image {
        height: 30px;
    }

    .logo-text {
        font-size: 11px;
        letter-spacing: 0.5px;
        display:none;
    }

    .hero-banner {
        height: 500px;
        background-image: url('img/banner_mobile.jpg');
        background-position: center top;
    }

    .hero-banner::before {
        background: linear-gradient(180deg,
            transparent 0%,
            transparent 50%,
            rgba(10, 10, 10, 0.8) 70%,
            rgba(10, 10, 10, 0.95) 85%,
            #0a0a0a 100%);
    }

    .hero-content {
        padding: 320px 20px 30px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 15px;
    }

    .hero-label {
        width: auto;
        display: inline-block;
        max-width: fit-content;
        margin-bottom: 0;
        font-size: 12px;
        padding: 6px 16px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 0;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 0;
    }

    .hero-meta {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .filters-container {
        gap: 8px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
    }

    .filter-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .download-button {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 14px;
    }

    .download-icon {
        font-size: 18px;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px 20px;
        flex-direction: column;
    }

    .modal-button {
        width: 100%;
    }

    .project-image-with-photo {
        background-size: cover !important;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .project-modal-content {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
    }

    .project-modal-image {
        flex: 0 0 200px;
        min-height: 200px;
        background-size: cover;
    }

    .project-modal-info {
        padding: 25px;
        gap: 15px;
    }

    .project-modal-title {
        font-size: 24px;
    }

    .project-modal-meta {
        gap: 10px;
    }

    .project-modal-description {
        font-size: 14px;
    }
}

/* Футер */
.footer {
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 0 40px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
}

.footer-logo-text {
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-link:hover .arrow {
    transform: rotate(-45deg) translate(3px, -3px);
}

.footer-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    transform: rotate(-45deg);
    font-size: 18px;
    line-height: 1;
}

.footer-copy {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-copy p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 30px;
        margin-top: 60px;
    }

    .footer-content {
        padding: 0 20px;
        gap: 30px;
    }

    .footer-logo-image {
        height: 35px;
    }

    .footer-logo-text {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .footer-socials {
        gap: 24px;
    }

    .footer-link {
        font-size: 14px;
    }

    .footer-copy p {
        font-size: 12px;
    }
}
