/* Стили для кнопки связи */
.knopkanasayte-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #DCC07F 0%, #B8945F 100%);
    border: 2px solid #F0C885;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.knopkanasayte-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 192, 127, 0.5);
}

.knopkanasayte-button-icon {
    width: 40px;
    height: 40px;
    position: relative;
}

.knopkanasayte-button-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.knopkanasayte-button-icon img.hidden-image {
    opacity: 0;
}

.knopkanasayte-button-icon img.active-image {
    opacity: 1;
}

.knopkanasayte-button-text {
    color: #000;
    font-weight: 600;
    font-size: 16px;
}

/* Overlay и Popup */
.knopkanasayte-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.knopkanasayte-overlay.active {
    display: flex;
}

.knopkanasayte-popup {
    background: linear-gradient(135deg, #2E2E2E 0%, #1a1a1a 100%);
    border: 2px solid #DCC07F;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(220, 192, 127, 0.3);
}

.knopkanasayte-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.knopkanasayte-close-button:hover {
    opacity: 1;
}

.knopkanasayte-close-button::before,
.knopkanasayte-close-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #DCC07F;
}

.knopkanasayte-close-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.knopkanasayte-close-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.knopkanasayte-popup-title {
    font-size: 24px;
    color: #DCC07F;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.knopkanasayte-popup-subtitle {
    font-size: 14px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    opacity: 0.8;
}

.knopkanasayte-input-container {
    margin-bottom: 20px;
}

.knopkanasayte-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #DCC07F;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.knopkanasayte-input:focus {
    outline: none;
    border-color: #F0C885;
    background: rgba(255, 255, 255, 0.15);
}

.knopkanasayte-input--question {
    min-height: 100px;
    resize: vertical;
}

.knopkanasayte-input.knopkanasayte-error {
    border-color: #ff4444;
}

.knopkanasayte-send-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #DCC07F 0%, #B8945F 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.knopkanasayte-send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 192, 127, 0.5);
}

.knopkanasayte-divider {
    height: 1px;
    background: rgba(220, 192, 127, 0.3);
    margin: 20px 0;
}

.knopkanasayte-contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.knopkanasayte-contact-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 192, 127, 0.3);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.knopkanasayte-contact-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #DCC07F;
    transform: translateX(5px);
}

.knopkanasayte-contact-option svg {
    margin-right: 10px;
}

/* Центрирование основного контента */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-section {
    background: rgba(46, 46, 46, 0.5);
    border: 1px solid #DCC07F;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
}

.section-title {
    font-size: 48px;
    color: #DCC07F;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: '__Jun_5', serif;
}

.section-subtitle {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
    font-family: '__Exo 2.0_5', sans-serif;
    font-style: italic;
}

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

.service-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #D5CDC2;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #DCC07F;
    box-shadow: 0 8px 20px rgba(220, 192, 127, 0.3);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-title {
    font-size: 24px;
    color: #DCC07F;
    margin-bottom: 10px;
}

.service-description {
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Десктоп (большие экраны) */
@media (min-width: 1200px) {
    .content-wrapper {
        max-width: 1400px;
        padding: 40px;
    }
    
    .section-title {
        font-size: 64px;
    }
    
    .section-subtitle {
        font-size: 22px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .page-section {
        padding: 60px;
        margin: 50px 0;
    }
}

/* Планшеты и средние экраны */
@media (max-width: 1199px) and (min-width: 769px) {
    .content-wrapper {
        max-width: 100%;
        padding: 30px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .page-section {
        padding: 40px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 10px;
    }
    
    .page-section {
        padding: 20px 15px;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 13px;
    }
    
    /* Мобильная кнопка связи */
    .knopkanasayte-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
    }
    
    .knopkanasayte-button-text {
        font-size: 14px;
    }
    
    .knopkanasayte-button-icon {
        width: 35px;
        height: 35px;
    }
    
    /* Мобильный popup */
    .knopkanasayte-popup {
        max-width: 95%;
        padding: 20px;
    }
    
    .knopkanasayte-popup-title {
        font-size: 20px;
    }
    
    .knopkanasayte-popup-subtitle {
        font-size: 13px;
    }
    
    /* Контакты в секции */
    .page-section a.knopkanasayte-contact-option {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Глобус меньше на мобилке */
    .globe-container,
    .globe {
        width: 150px;
        height: 150px;
    }
    
    .globe-sphere,
    .globe-outer-shadow,
    .globe-inner-shadow {
        width: 150px;
        height: 150px;
    }
    
    .globe-worldmap {
        width: 150px;
        height: 150px;
    }
    
    .globe-worldmap-front,
    .globe-worldmap-back {
        height: 150px;
        width: 750px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 5px;
    }
    
    .page-section {
        padding: 15px 10px;
        margin: 15px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .knopkanasayte-button-text {
        display: none;
    }
    
    .knopkanasayte-button {
        padding: 10px;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        justify-content: center;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 600px) and (orientation: landscape) {
    .knopkanasayte-button {
        bottom: 10px;
        right: 10px;
        transform: scale(0.8);
    }
    
    .page-section {
        margin: 15px 0;
        padding: 20px;
    }
}
