/* Стили для страницы партнерства (partnership/index.php) */

.partnership-page {
    margin: 2rem 0;
}

.partnership-content {
    margin: 2rem 0;
    line-height: 1.6;
    color: #2c3e50;
    font-size: 1rem;
}

.hero-subtitle {
    margin-top: 1rem;
}

.offer-grid,
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.offer-item,
.advantage-item {
    background: white;
    border: 2px solid var(--primary-peach, #FFCF9D);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.offer-item:hover,
.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(10, 38, 71, 0.15);
}

.offer-item h3,
.advantage-item h3 {
    color: var(--primary-blue, #0A2647);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-top: 3rem;
}

/* Для Bootstrap карточек тоже применяем стиль */
.offer-item .card-title,
.achievement .card-title,
.card-title.h6,
.achievement .card-title.h6 {
    color: var(--primary-blue, #0A2647);
    font-weight: 600;
    text-align: center !important;
    justify-content: center;
    position: relative;
    padding-top: 3rem;
}

.offer-item h3::before,
.advantage-item h3::before,
.achievement h4::before,
.offer-item .card-title::before,
.achievement .card-title::before,
.card-title.h6::before,
.achievement .card-title.h6::before {
    content: '';
    width: 2rem;
    height: 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.benefits-list li::before {
    content: '';
    width: 2rem;
    height: 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 1.1rem;
    left: 0.9rem;
    flex-shrink: 0;
}

/* Иконки через классы-модификаторы для offer-item */
.offer-item--discount .card-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFCF9D"><circle cx="12" cy="12" r="10"/><text x="12" y="17" text-anchor="middle" fill="white" font-size="12" font-weight="bold">%</text></svg>');
}

.offer-item--marketing .card-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFCF9D"><rect x="3" y="4" width="18" height="16" rx="2"/><rect x="6" y="7" width="12" height="1.5" fill="white"/><rect x="6" y="10" width="9" height="1.5" fill="white"/><rect x="6" y="13" width="6" height="1.5" fill="white"/></svg>');
}

.offer-item--no-plans .card-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFCF9D"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}

.offer-item--equipment .card-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFCF9D"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/></svg>');
}

/* Иконки для достижений через классы-модификаторы */
.achievement--quality .card-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFCF9D"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.achievement--eco .card-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFCF9D"><circle cx="12" cy="12" r="10"/></svg>');
}

.achievement--certificate .card-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFCF9D"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"/></svg>');
}

/* Иконки для списка преимуществ */
.benefits-list li:nth-child(1)::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF6B6B"><circle cx="12" cy="12" r="10"/></svg>');
}

.benefits-list li:nth-child(2)::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234ECDC4"><rect x="3" y="3" width="18" height="18" rx="2"/></svg>');
}

.benefits-list li:nth-child(3)::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2345B7D1"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.benefits-list li:nth-child(4)::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFA726"><path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4z"/></svg>');
}

.benefits-list li:nth-child(5)::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><circle cx="12" cy="12" r="2"/><path d="M13.85 22.1c-.67.1-1.36.1-2.04 0l-.23-2.23c-.65-.2-1.28-.5-1.86-.9l-2.04 1.18c-.6-.5-1.14-1.04-1.64-1.64l1.18-2.04c-.4-.58-.7-1.21-.9-1.86L4.1 13.85c-.1-.67-.1-1.36 0-2.04l2.23-.23c.2-.65.5-1.28.9-1.86L6.05 7.68c.5-.6 1.04-1.14 1.64-1.64l2.04 1.18c.58-.4 1.21-.7 1.86-.9l.23-2.23c.67-.1 1.36-.1 2.04 0l.23 2.23c.65.2 1.28.5 1.86.9l2.04-1.18c.6.5 1.14 1.04 1.64 1.64l-1.18 2.04c.4.58.7 1.21.9 1.86l2.23.23c.1.67.1 1.36 0 2.04l-2.23.23c-.2.65-.5 1.28-.9 1.86l1.18 2.04c-.5.6-1.04 1.14-1.64 1.64l-2.04-1.18c-.58.4-1.21.7-1.86.9l-.23 2.23z"/></svg>');
}

.benefits-list li:nth-child(6)::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E91E63"><path d="M9 11H7v9h2v-9zm4 0h-2v9h2v-9zm4 0h-2v9h2v-9zm2-7v2H5V4h3.5l1-1h5l1 1H19z"/></svg>');
}

.company-info,
.product-lines,
.partner-benefits,
.partnership-types {
    margin: 3rem 0;
}

.partnership-content h2 {
    color: var(--primary-blue, #0A2647);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.partnership-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
    font-size: 1.05rem;
}

.partnership-content ul {
    margin-bottom: 1.5rem;
}

.partnership-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 1rem;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.achievement {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.achievement:hover {
    box-shadow: 0 4px 12px rgba(10, 38, 71, 0.1);
    transform: translateY(-2px);
}

.achievement h4 {
    color: var(--primary-blue, #0A2647);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.achievement p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-line,
.partnership-type {
    background: white;
    border-left: 4px solid var(--primary-peach, #FFCF9D);
    padding: 1.75rem;
    margin: 1.25rem 0;
    border-radius: 0 10px 10px 0;
    border: 1px solid #f0f0f0;
    border-left: 4px solid var(--primary-peach, #FFCF9D);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-line:hover,
.partnership-type:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.product-line h3,
.partnership-type h3 {
    color: var(--primary-blue, #0A2647);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-line p,
.partnership-type p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 207, 157, 0.1) 0%, rgba(255, 207, 157, 0.05) 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(255, 207, 157, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}


.benefits-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 207, 157, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--primary-blue, #0A2647);
    font-weight: 500;
    position: relative;
    padding-left: 3.5rem;
    background: rgba(255, 255, 255, 0.6);
    margin: 0.3rem 0;
    border-radius: 10px;
    padding: 1.2rem 1.2rem 1.2rem 3.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #333;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: var(--primary-blue, #0A2647);
    font-weight: 600;
}

.partnership-hero {
    background: linear-gradient(135deg, rgba(10, 38, 71, 0.85) 0%, rgba(63, 46, 55, 0.85) 100%),
                linear-gradient(135deg, #FFCF9D 0%, #ffa366 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.partnership-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="90" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.partnership-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.partnership-hero p {
    font-size: 1.25rem;
    opacity: 1;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.hero-subtitle {
    margin-top: 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.benefit-card {
    background: white;
    border: 0.125rem solid var(--primary-peach);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(10, 38, 71, 0.15);
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--primary-peach);
}

.benefit-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

.partnership-form {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 0 auto;
    max-width: 100%;
}

.partnership-form h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.6rem;
}

.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 0.125rem solid var(--primary-peach);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    height: 3rem; /* Фиксированная высота для input и select */
    font-family: inherit;
    line-height: 1.5;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group textarea {
    height: auto; /* Для textarea оставляем автоматическую высоту */
    min-height: 6rem;
    resize: vertical;
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.partnership-form button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-gray) 100%);
    color: white;
    border: 0.125rem solid var(--primary-blue);
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 1.5rem auto 0;
}

.partnership-form button:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(10, 38, 71, 0.3);
}

/* Стили для формы партнерства */
.partnership-form-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 3rem 0;
}

/* Мобильные стили для partnership-form-section с высокой специфичностью (0,1,0) */
@media (max-width: 991px) {
    .partnership-form-section {
        background: #fff;
        padding: 0;
        margin: 0;
    }
    
    .partnership-form-wrapper {
        box-shadow: none;
        border: none;
        border-radius: 0;
    }
}

.partnership-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.partnership-form-wrapper h2 {
    text-align: center;
    color: var(--primary-blue, #0A2647);
    margin-bottom: 0.5rem;
}

.partnership-form-wrapper p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    padding-left: 2rem;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0.1rem;
    left: 0;
    height: 1.25rem;
    width: 1.25rem;
    background-color: #fff;
    border: 2px solid var(--primary-peach, #FFCF9D);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-blue, #0A2647);
    box-shadow: 0 0 0 2px rgba(10, 38, 71, 0.1);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--primary-blue, #0A2647);
    border-color: var(--primary-blue, #0A2647);
}

.checkbox-label input[type="checkbox"]:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(10, 38, 71, 0.2);
    outline: none;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.35rem;
    top: 0.1rem;
    width: 0.25rem;
    height: 0.5rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.partnership-submit-btn {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0 !important;
    display: block !important;
}

/* Alert стили */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-success {
    /* Используется единый класс .success-message из styles.css */
}

.alert-danger {
    /* Используется единый класс .error-message из styles.css */
}

/* Адаптивность */
@media (max-width: 768px) {
    .partnership-hero {
        padding: 2rem 1rem;
    }
    
    .partnership-hero h1 {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .partnership-form {
        padding: 1.5rem;
    }
    
    .benefits-list {
        padding: 1.5rem;
    }
    
    .benefits-list li {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 1rem;
        line-height: 1.5;
        min-height: 3rem;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }
    
    .benefits-list li::before {
        width: 1.5rem;
        height: 1.5rem;
        top: 1rem;
        left: 0.4rem;
    }
}