/* Стили для страницы "Упаковка франшизы" */

/* Hero секция */
.franchise-hero {
    padding: 150px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--secondary-color);
}

.franchise-hero-content {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.franchise-hero-title {
    font-size: 56px;
    font-weight: var(--font-weight-extrabold);
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.franchise-hero-title .green {
    color: var(--primary-color);
}

.franchise-hero-text {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.franchise-hero-subtitle {
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.franchise-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.franchise-hero-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 16px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    display: inline-block;
    font-size: 18px;
}

.franchise-hero-btn.secondary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Секция услуг */
.franchise-services {
    padding: 80px 20px;
}

.franchise-services .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.franchise-services-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
    position: relative;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 100%;
}

.franchise-services-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Аккордеон */
.franchise-accordion {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
    display: block;
    width: 100%;
}

.accordion-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-default);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.accordion-item:hover {
    box-shadow: var(--shadow-primary-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header:hover {
    background: var(--primary-light);
}

.accordion-header:focus {
    outline: none;
    background: var(--primary-light);
}

.accordion-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.accordion-arrow {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.accordion-header[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 30px;
}

.accordion-content.active {
    max-height: 500px;
    opacity: 1;
    padding: 0 30px 30px;
}

.accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-list li {
    padding: 12px 0;
    color: var(--secondary-color);
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
    border-bottom: 1px solid var(--border-color);
}

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

.accordion-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
}

/* Секция преимуществ */
.franchise-advantages {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.franchise-advantages .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.franchise-advantages-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
    width: 100%;
    position: relative;
}

.franchise-advantages-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

.advantage-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.advantage-item h3 {
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.advantage-item p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
    }

    .advantage-item {
        padding: 25px;
    }

    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Адаптивность для мобилок */
    .franchise-advantages-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .franchise-services-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .franchise-hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .franchise-hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .franchise-cta {
        margin-top: 30px;
    }
}

/* Секция CTA */
.franchise-cta {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.franchise-cta-title {
    font-size: 2.2rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--secondary-color);
    line-height: 1.4;
    margin: 0;
}

.brand-highlight {
    color: var(--secondary-color);
    font-weight: var(--font-weight-extrabold);
}

.brand-on {
    color: var(--primary-color);
    font-weight: var(--font-weight-extrabold);
}

.franchise-cta p {
    font-size: 1.3rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Секция цены */
.franchise-pricing {
    padding: 80px 0;
}

.franchise-pricing-wrapper {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.franchise-pricing-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.3;
    position: relative;
}

.franchise-pricing-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.franchise-pricing-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sales-contact-button {
    margin-top: 30px;
}

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

@media (max-width: 992px) {
    .franchise-hero {
        padding: 150px 20px 60px;
    }

    .franchise-hero-title {
        font-size: 42px;
    }

    .franchise-hero-text {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .franchise-hero {
        padding: 150px 20px 40px;
    }

    .franchise-hero-title {
        font-size: 36px;
    }

    .franchise-hero-subtitle {
        font-size: 20px;
    }

    .franchise-hero-text {
        font-size: 18px;
    }

    .franchise-hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .franchise-hero-btn.secondary {
        font-size: 16px;
        padding: 14px 30px;
        width: auto;
        max-width: none;
    }

    .franchise-hero-buttons .contact-btn {
        font-size: 16px;
        padding: 14px 30px;
    }

    .franchise-services-title,
    .franchise-advantages-title,
    .franchise-pricing-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .accordion-header {
        padding: 20px 25px;
        gap: 15px;
    }

    .accordion-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .accordion-title {
        font-size: 1.1rem;
    }

    .accordion-content {
        padding: 0 25px;
    }

    .accordion-content.active {
        padding: 0 25px 25px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantage-item {
        padding: 25px;
    }

    .advantage-item h3 {
        font-size: 1.3rem;
    }

    .franchise-cta-title {
        font-size: 1.6rem;
        line-height: 1.3;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .franchise-hero-title {
        font-size: 32px;
    }

    .franchise-hero-subtitle {
        font-size: 18px;
    }

    .franchise-hero-text {
        font-size: 16px;
    }

    .franchise-services-title,
    .franchise-advantages-title,
    .franchise-pricing-title {
        font-size: 1.8rem;
    }

    .accordion-header {
        padding: 18px 20px;
        gap: 12px;
    }

    .accordion-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .accordion-title {
        font-size: 1rem;
    }

    .accordion-content {
        padding: 0 20px;
    }

    .accordion-content.active {
        padding: 0 20px 20px;
    }

    .advantage-item {
        padding: 20px;
    }

    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .franchise-cta-title {
        font-size: 1.4rem;
        line-height: 1.2;
        padding: 0 20px;
    }
}

/* Анимации для reveal элементов */
.accordion-item.reveal-scale {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.accordion-item.reveal-scale.active {
    opacity: 1;
    transform: translateY(0);
}

.advantage-item.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.advantage-item.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}



/* Переопределяем стили из основного CSS */
.franchise-services .accordion-header:hover .accordion-icon {
    background: var(--primary-color) !important;
    transform: none !important;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

/* Улучшенные тени */
.accordion-item,
.advantage-item {
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.accordion-item:hover,
.advantage-item:hover {
    box-shadow:
        0 20px 25px rgba(0, 0, 0, 0.1),
        0 10px 10px rgba(0, 0, 0, 0.04);
}

/* Секция контактов */
.contact-section {
    padding: 80px 0;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--font-weight-semibold);
    color: var(--secondary-color);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

.contact-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
}

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

/* Адаптивность для формы */
@media (max-width: 768px) {
    .contact-form {
        padding: 30px 25px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 25px 20px;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
}