
/* Глобальные для кастомных страниц */
h3 {
    color: #257de3;
    font-size: 22px;
    margin-bottom: 15px;
}

/* Base Styles */
.scg-bitrix24-support-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.scg-bitrix24-support-page {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

.scg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.scg-section-title {
    color: #257de3;
    font-size: 32px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.scg-section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #257de3;
}

.scg-section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.scg-hero {
    background: linear-gradient(135deg, #257de3 0%, #1a4b8c 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin: 20px 0;
}

.scg-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
    justify-content: space-between;
}

.scg-page-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

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

/* Services Section */
.scg-support-services {
    padding: 80px 0;
    background: #f9fafc;
}

.scg-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.scg-service-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scg-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(37, 125, 227, 0.15);
}

.scg-service-icon {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.scg-service-card:hover .scg-service-icon {
    transform: scale(1.1);
}

.scg-service-card p {
    color: #666;
    font-size: 16px;
}

.scg-note-box {
    background: #f9fafc;
    border-left: 4px solid #257de3;
    padding: 20px;
    margin-top: 40px;
    border-radius: 0 8px 8px 0;
}

.scg-note-box p {
    margin: 0;
    color: #666;
}

.scg-note-box strong {
    color: #257de3;
}

/* Pricing Section */
.scg-pricing-section {
    padding: 80px 0;
    background: #f9fafc;
}

.scg-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.scg-tabs__select {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 1px solid #257de3;
    border-radius: 30px;
    background: white;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23257de3" d="M2 4l4 4 4-4H2z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.scg-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.scg-pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 550px;
}

.scg-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.scg-popular {
    border: 2px solid #257de3;
}

.scg-popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #257de3;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.scg-price {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 70px; /* Зарезервируем место для двух цен */
}

.scg-price-base {
    font-size: 24px;
    font-weight: 700;
    color: #666;
    text-decoration: line-through;
}

.scg-price-base--hidden {
    display: none;
}

.scg-price-discounted {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.scg-pricing-features {
    margin-bottom: 30px;
    flex-grow: 1;
    text-align: left;
}

.scg-feature-item {
    font-size: 16px;
    color: #666;
    padding: 8px 0;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 34px;
}

.scg-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
}

/* Process Section */
.scg-process-section {
    padding: 80px 0;
}

.scg-process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.scg-process-step {
    text-align: center;
    padding: 30px;
    background: #f9fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.scg-process-step:hover {
    background: #257de3;
    color: white;
}

.scg-step-number {
    width: 50px;
    height: 50px;
    background: #257de3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.scg-process-step h3 {
    color: #257de3;
    font-size: 20px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.scg-process-step p {
    color: #666;
    transition: color 0.3s ease;
}

.scg-process-step:hover h3,
.scg-process-step:hover p {
    color: white;
}

/* CTA Section */
.scg-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #257de3 0%, #1a4b8c 100%);
    color: white;
    border-radius: 30px;
    margin: 20px 0;
}

.scg-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 250px;
    justify-content: space-between;
}

.scg-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
}

.scg-button-accent {
    background: #ff6f61;
    color: white;
}

.scg-button-accent:hover {
    background: #e65a4d;
    transform: translateY(-2px);
}

/* Form Styles */
.scg-form {
    border-radius: 16px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 550px;
    max-height: 450px;
    width: 90%;
    font-family: 'Arial', sans-serif;
    display: block !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    overflow-y: auto;
}

.scg-form-head {
    font-size: 20px;
    font-weight: 700;
    color: #257de3;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.scg-form-body {
    font-size: 16px;
    color: #333;
}

.scg-form input,
.scg-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
}

.scg-form button[type="submit"],
.scg-form .btn {
    background: #ff6f61;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.scg-form button[type="submit"]:hover,
.scg-form .btn:hover {
    background: #e65a4d;
}

.scg-form .close.jqmClose {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23257de3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>') no-repeat center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scg-form .close.jqmClose:hover {
    opacity: 1;
}

.scg-form .close.jqmClose:not(:last-child) {
    display: none;
}

.scg-form .custom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #257de3;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.scg-form .custom-close:hover {
    color: #e65a4d;
}

.scg-form-success {
    max-width: 385px;
    max-height: 315px;
    text-align: center;
    padding: 40px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    font-family: 'Arial', sans-serif;
    display: block !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    overflow-y: auto;
}

.scg-form-success h3 {
    color: #257de3;
    font-size: 24px;
    margin-bottom: 20px;
}

.scg-form-success p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Fix Bitrix Overlay */
div.bx-core-overlay {
    z-index: 99998 !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Стили для секции возможностей Битрикс24 */
.scg-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.scg-feature-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.scg-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.scg-feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.scg-feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scg-support-hero,
.scg-support-services,
.scg-pricing-section,
.scg-process-section,
.scg-cta-section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Улучшенная адаптивность */
@media (max-width: 1024px) {
    .scg-container {
        padding: 0 15px;
    }

    .scg-hero {
        padding: 100px 0;
        border-radius: 20px;
    }

    .scg-hero-content {
        min-height: 250px;
    }

    .scg-page-title {
        font-size: 40px;
    }

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

    .scg-section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .scg-section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .scg-support-services,
    .scg-pricing-section,
    .scg-process-section,
    .scg-cta-section {
        padding: 60px 0;
    }

    .scg-services-grid,
    .scg-pricing-grid,
    .scg-process-steps,
    .scg-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .scg-service-card,
    .scg-pricing-card,
    .scg-process-step,
    .scg-feature-card {
        padding: 30px 20px;
    }

    .scg-cta-content {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .scg-container {
        padding: 0 10px;
    }

    .scg-hero {
        padding: 80px 0;
        border-radius: 15px;
        margin: 15px 0;
    }

    .scg-hero-content {
        min-height: 200px;
        padding: 0 10px;
    }

    .scg-page-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .scg-hero-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .scg-section-title {
        font-size: 26px;
        padding-bottom: 10px;
    }

    .scg-section-title:after {
        width: 50px;
        height: 2px;
    }

    .scg-section-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .scg-support-services,
    .scg-pricing-section,
    .scg-process-section,
    .scg-cta-section {
        padding: 50px 0;
    }

    .scg-services-grid,
    .scg-pricing-grid,
    .scg-process-steps,
    .scg-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    .scg-service-card,
    .scg-pricing-card,
    .scg-process-step,
    .scg-feature-card {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .scg-service-card h3,
    .scg-pricing-card h3,
    .scg-process-step h3,
    .scg-feature-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .scg-service-card p,
    .scg-pricing-card p,
    .scg-process-step p,
    .scg-feature-card p {
        font-size: 14px;
    }

    .scg-service-icon,
    .scg-step-number {
        transform: scale(0.9);
        margin-bottom: 15px;
    }

    .scg-pricing-card {
        min-height: auto;
    }

    .scg-popular-badge {
        font-size: 12px;
        padding: 5px 12px;
        top: 10px;
        right: 10px;
    }

    .scg-price {
        margin: 15px 0;
        min-height: 60px;
    }

    .scg-price-base {
        font-size: 20px;
    }

    .scg-price-discounted {
        font-size: 24px;
    }

    .scg-pricing-features {
        margin-bottom: 20px;
    }

    .scg-feature-item {
        font-size: 14px;
        padding: 6px 0 6px 30px;
    }

    .scg-icon {
        width: 20px;
        height: 20px;
    }

    .scg-tabs-wrapper {
        padding: 0 10px;
    }

    .scg-tabs__select {
        font-size: 14px;
        padding: 10px 30px 10px 14px;
        max-width: 100%;
        background-position: right 10px center;
        background-size: 10px;
    }

    .scg-note-box {
        padding: 15px;
        margin-top: 30px;
    }

    .scg-cta-section {
        border-radius: 15px;
        margin: 15px 0;
    }

    .scg-cta-content {
        min-height: 180px;
        padding: 0 10px;
    }

    .scg-cta-content h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .scg-cta-content p {
        font-size: 14px;
    }

    .scg-button {
        padding: 12px 24px;
        font-size: 15px;
    }

    .scg-form,
    .scg-form-success {
        padding: 20px;
        max-width: 90%;
        max-height: 80vh;
        border-radius: 12px;
    }

    .scg-form-head {
        font-size: 18px;
        padding-bottom: 12px;
    }

    .scg-form-body {
        font-size: 14px;
    }

    .scg-form input,
    .scg-form textarea {
        padding: 8px;
        font-size: 14px;
        margin: 8px 0;
    }

    .scg-form button[type="submit"],
    .scg-form .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .scg-form .close.jqmClose,
    .scg-form .custom-close {
        top: 15px;
        right: 15px;
    }

    .scg-form-success h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .scg-form-success p {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .scg-container {
        padding: 0 8px;
    }

    .scg-hero {
        padding: 60px 0;
        border-radius: 10px;
        margin: 10px 0;
    }

    .scg-hero-content {
        min-height: 180px;
        padding: 0 8px;
    }

    .scg-page-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .scg-hero-text {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .scg-section-title {
        font-size: 22px;
        padding-bottom: 8px;
    }

    .scg-section-title:after {
        width: 40px;
        height: 2px;
    }

    .scg-section-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .scg-support-services,
    .scg-pricing-section,
    .scg-process-section,
    .scg-cta-section {
        padding: 40px 0;
    }

    .scg-services-grid,
    .scg-pricing-grid,
    .scg-process-steps,
    .scg-features-grid {
        gap: 10px;
        margin-top: 20px;
    }

    .scg-service-card,
    .scg-pricing-card,
    .scg-process-step,
    .scg-feature-card {
        padding: 20px 12px;
        border-radius: 10px;
    }

    .scg-service-card h3,
    .scg-pricing-card h3,
    .scg-process-step h3,
    .scg-feature-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .scg-service-card p,
    .scg-pricing-card p,
    .scg-process-step p,
    .scg-feature-card p {
        font-size: 13px;
    }

    .scg-service-icon,
    .scg-step-number {
        transform: scale(0.8);
        margin-bottom: 10px;
    }

    .scg-price {
        margin: 10px 0;
        min-height: 50px;
    }

    .scg-price-base {
        font-size: 18px;
    }

    .scg-price-discounted {
        font-size: 22px;
    }

    .scg-pricing-features {
        margin-bottom: 15px;
    }

    .scg-feature-item {
        font-size: 13px;
        padding: 5px 0 5px 28px;
    }

    .scg-icon {
        width: 18px;
        height: 18px;
    }

    .scg-tabs__select {
        font-size: 13px;
        padding: 8px 28px 8px 12px;
        background-size: 8px;
        background-position: right 8px center;
    }

    .scg-popular-badge {
        font-size: 11px;
        padding: 4px 10px;
        top: 8px;
        right: 8px;
    }

    .scg-note-box {
        padding: 12px;
        margin-top: 20px;
    }

    .scg-note-box p {
        font-size: 13px;
    }

    .scg-cta-section {
        border-radius: 10px;
        margin: 10px 0;
    }

    .scg-cta-content {
        min-height: 160px;
        padding: 0 8px;
    }

    .scg-cta-content h2 {
        font-size: 20px;
        line-height: 1.2;
    }

    .scg-cta-content p {
        font-size: 13px;
    }

    .scg-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .scg-form,
    .scg-form-success {
        padding: 15px;
        max-width: 95%;
        max-height: 75vh;
        border-radius: 10px;
    }

    .scg-form-head {
        font-size: 16px;
        padding-bottom: 10px;
    }

    .scg-form-body {
        font-size: 13px;
    }

    .scg-form input,
    .scg-form textarea {
        padding: 6px;
        font-size: 13px;
        margin: 6px 0;
    }

    .scg-form button[type="submit"],
    .scg-form .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .scg-form .close.jqmClose,
    .scg-form .custom-close {
        top: 12px;
        right: 12px;
        width: 20px;
        height: 20px;
        background-size: 20px;
    }

    .scg-form .custom-close {
        font-size: 14px;
    }

    .scg-form-success {
        padding: 20px;
    }

    .scg-form-success h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .scg-form-success p {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

@media (max-width: 360px) {
    .scg-container {
        padding: 0 5px;
    }

    .scg-hero {
        padding: 50px 0;
        border-radius: 8px;
        margin: 8px 0;
    }

    .scg-page-title {
        font-size: 24px;
    }

    .scg-hero-text {
        font-size: 13px;
    }

    .scg-section-title {
        font-size: 20px;
    }

    .scg-section-subtitle {
        font-size: 13px;
    }

    .scg-service-card,
    .scg-pricing-card,
    .scg-process-step,
    .scg-feature-card {
        padding: 15px 10px;
    }

    .scg-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .scg-form,
    .scg-form-success {
        padding: 12px;
        max-height: 70vh;
    }
}