/* Styles for Partnership Page */

/* General Styles */
body.white-bg {
    background-color: #fff;
    color: #000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: 'Cremona Sans', 'Cremona', serif;
    font-size: 42px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 60px;
    text-align: center;
}

.footer-linkstwo {
    display: flex
;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-linkstwo a {
    color: rgb(255, 255, 255);
    font-size: 14px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Header на черном фоне */
.main-header {
    background-color: #000000;
}

.nav-link.dark {
    color: #fff;
}

/* Partnership Header Section */
.partnership-header-section {
    padding: 180px 0 80px;
    text-align: center;
}

.partnership-tag {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000;
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.partnership-title {
    font-family: 'Cremona Sans', 'Cremona', serif;
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #000;
}

.partnership-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
}

.partnership-intro p {
    margin-bottom: 15px;
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    color: #000;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-icon {
    width: 40px;
    flex-shrink: 0;
}

.benefit-icon img {
    width: 100%;
    height: auto;
}

.benefit-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

.benefit-content p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.8;
    color: #000;
}

/* Formats Section */
.formats-section {
    padding: 100px 0;
    color: #000;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.format-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 5px 0;
}

.format-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.format-icon img {
    width: 100%;
    height: auto;
    max-width: 45px;
    max-height: 45px;
}

.format-item p {
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    margin: 0;
    flex: 1;
}

/* How to Start Section - закругленный черный блок */
.how-to-start-section {
    padding: 0;
    margin: 100px auto;
    max-width: 1200px;
}

.how-to-start-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000;
    border-radius: 30px;
    overflow: hidden;
    color: #fff;
}

.how-to-start-text {
    flex: 1;
    padding: 60px;
}

.how-to-start-text .section-title {
    text-align: left;
    margin-bottom: 40px;
    color: #fff;
}

.how-to-start-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #fff;
}

.how-to-start-image {
    flex: 1;
    height: 100%;
}

.products-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Application Form Section - закругленный черный блок */
.application-form-section {
    padding: 0;
    margin: 100px auto;
    max-width: 1200px;
}

.application-form-container {
    background-color: #000;
    border-radius: 30px;
    padding: 60px;
    color: #fff;
}

.form-title {
    font-family: 'Cremona Sans', 'Cremona', serif;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.3;
    color: #fff;
}

.partnership-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #fff;
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group.focused input + label,
.form-group.focused textarea + label {
    top: -10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact preference selector - dropdown style */
.contact-preference-selector {
    position: relative;
    margin-bottom: 25px;
    z-index: 100;
}

.contact-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    user-select: none;
    text-align: left;
}

.contact-select-header:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.selected-contact {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-select-header .arrow {
    transition:     transform 0.3s ease;
}

.side-menu-close:hover {
    transform: rotate(90deg);
}


.side-menu-list {
    list-style: none;
}

.side-menu-list li {
    margin-bottom: 15px;
}

.side-menu-link {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
}

.side-menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #000;
    transition: width 0.3s ease;
}

.side-menu-link:hover::after {
    width: 100%;
}

.side-menu-contact {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.side-menu-contact h4 {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.side-menu-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.side-menu-social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    color: #000;
    font-size: 14px;
    opacity: 0.7;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
}

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

/* Media Queries for Responsive Design */
@media screen and (max-width: 1024px) {
    .benefits-grid, 
    .formats-grid {
        gap: 40px;
    }
    
    .how-to-start-content {
        flex-direction: column;
    }
    
    .how-to-start-text {
        padding: 40px;
        width: 100%;
    }
    
    .how-to-start-image {
        width: 100%;
    }
    
    .application-form-container {
        padding: 40px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .partnership-header-section {
        padding: 140px 0 60px;
    }
    
    .partnership-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .benefits-grid, 
    .formats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .benefit-item {
        gap: 15px;
    }
    
    .how-to-start-text .section-title {
        text-align: left;
    }
    
    .how-to-start-text p {
        text-align: left;
        font-size: 16px;
    }
    
    
    .format-item {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        align-items: center;
        margin-bottom: 25px;
    }
    
    .format-icon {
        margin: 0;
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .format-item p {
        font-size: 15px;
        margin: 0;
        flex: 1;
        color: #000;
    }
    
    .formats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
    }
    
    .social-icon img {
        width: 50px;
        height: 50px;
    }
    
    .side-menu {
        width: 80%; /* Убираем полную ширину, используем 80% ширины экрана */
        right: -85%; /* Смещение для анимации */
    }
    

    }
}

@media screen and (max-width: 480px) {
    .partnership-tag {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .partnership-title {
        font-size: 28px;
    }
    
    .partnership-intro {
        font-size: 16px;
    }
    
    .benefit-content h3 {
        font-size: 16px;
    }
    
    .benefit-content p {
        font-size: 14px;
    }
    
    .format-item {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .format-icon {
        margin: 0;
    }
    
    .how-to-start-text {
        padding: 30px;
    }
    
    .application-form-container {
        padding: 30px;
    }
    
    .submit-btn {
        width: 100%;
    }}s ease;
 margin-left: 10px;

.contact-select-header.active .arrow {
    transform: rotate(180deg);
}

.contact-options-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 101;
    visibility: hidden; /* Скрываем полностью */
    opacity: 0; 
    list-style: none;
    padding: 0;
    margin: 0;
    pointer-events: none; /* Блокируем взаимодействие когда скрыт */
}

.contact-options-dropdown.active {
    max-height: 200px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto; /* Включаем взаимодействие когда активен */
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    list-style-type: none;
}

.contact-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-option.selected {
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* Submit button */
.submit-btn {
    align-self: center;
    margin-top: 30px;
    padding: 15px 40px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 30px;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn:hover {
    background-color: #fff;
    color: #000;
}

.submit-btn:active {
    transform: translateY(2px);
}

/* Стили для отключенного состояния */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loader styles for when submitting */
.submit-btn.submitting::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Success message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-message h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

.success-message p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-message .back-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 30px;
}

.success-message .back-btn:hover {
    background-color: #fff;
    color: #000;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.partnership-form.submitted {
    display: none;
}

.success-message.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Remove (обязательно) from labels and add asterisk */
.form-group.required label::after {
    content: " *";
    color: #ff4d4d;
}

/* Footer - черный фон */
.footer-section1 {
    padding: 80px 0 30px;
    background-color: #000;
    color: #fff;
}

.social-links {
    text-align: center;
    padding-bottom: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon img {
    width: 80px;
    height: 80px;
}

.footer-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 14px;
    opacity: 0.5;
    color: #fff;
}

/* Стили для валидации формы */
.form-group.has-error input,
.form-group.has-error textarea {
    border-bottom-color: #ff4d4d;
}

.error-message {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
}

/* Side Menu Styles */
.side-menu {
    position: fixed;
    top: 0;
    right: -450px; /* Увеличенное смещение для плавного появления */
    width: 400px; /* Фиксированная ширина для десктопа */
    height: 100vh;
    background-color: #fff;
    color: #000;
    z-index: 1001;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

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

.side-menu-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.side-menu-logo-img {
    height: 40px;
    filter: invert(1); /* Для черного фона */
}

.side-menu-close {
    background: none;
    border: none;
    color: #000;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3;
}

/* Header/Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

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

.header-left, .header-right {
    flex: 1;
}

.header-right {
    text-align: right;
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-logo {
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Улучшенная анимация для nav-link при скролле */
.nav-link {
    font-family: var(--font-headlines); /* Manrope */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.nav-link.hidden {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}