.chatbot {
    width: 100%;
    max-width: 1728px;
    margin: 0 auto 40px;
    padding: 0 28px;
}

.chatbot__container {
    width: 100%;
    max-width: 1671px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(164px, 14vw, 188px);
    gap: clamp(10px, 1vw, 14px);
    align-items: center;
    padding: clamp(16px, 1.4vw, 20px) clamp(16px, 1.6vw, 22px);
    border-radius: 24px;
    background: linear-gradient(135deg, #7d73ad 0%, #8f87c6 54%, #706a90 100%);
    box-shadow: 0 18px 40px rgba(77, 71, 106, 0.14);
}

.chatbot__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbot__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chatbot__eyebrow {
    margin: 0;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.chatbot__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 0.96;
    font-weight: 400;
}

.chatbot__description {
    margin: 0;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(14px, 1.1vw, 15px);
    line-height: 1.25;
}

.chatbot__search {
    position: relative;
    width: 100%;
    max-width: none;
    height: 54px;
}

.chatbot__input {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0 clamp(112px, 9vw, 120px) 0 16px;
    font-size: 16px;
    color: #1e1a2b;
    outline: none;
}

.chatbot__submit {
    position: absolute;
    top: 7px;
    right: 7px;
    width: clamp(82px, 6.6vw, 88px);
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #25222f;
    color: #ffffff;
    font-family: 'Coolvetica', 'Yanone Kaffeesatz', sans-serif;
    font-size: clamp(14px, 1vw, 15px);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chatbot__submit:hover {
    background: #191720;
}

.chatbot__helper {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.chatbot__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chatbot__suggestion,
.chatbot__cta-secondary {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    font-family: 'Coolvetica', 'Yanone Kaffeesatz', sans-serif;
    font-size: 14px;
}

.chatbot__suggestion {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
}

.chatbot__cta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot__cta-secondary {
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
}

.chatbot__cta-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.chatbot__panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    min-height: 100%;
}

.chatbot__panel-card {
    width: 100%;
    max-width: clamp(164px, 14vw, 188px);
    padding: clamp(10px, 0.8vw, 11px);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.chatbot__panel-top,
.chatbot__panel-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot__panel-top {
    margin-bottom: 8px;
}

.chatbot__panel-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8dffb2;
}

.chatbot__panel-label,
.chatbot__panel-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
}

.chatbot__panel-message {
    max-width: clamp(136px, 11vw, 156px);
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.22;
}

.chatbot__panel-message--bot {
    background: rgba(255, 255, 255, 0.95);
    color: #2a2539;
    border-bottom-left-radius: 6px;
}

.chatbot__panel-message--user {
    margin: 8px 0 8px auto;
    background: rgba(36, 32, 48, 0.88);
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.chatbot__illustration {
    display: none;
}

.chatbot__orb {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.56), rgba(255,255,255,0) 42%),
        linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 20px 40px rgba(41, 36, 59, 0.16);
}

.chatbot__orb::before,
.chatbot__orb::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.chatbot__orb::before {
    top: 28px;
    left: 22px;
    width: 46px;
    height: 8px;
}

.chatbot__orb::after {
    top: 46px;
    left: 22px;
    width: 60px;
    height: 8px;
}

.chatbot-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    display: block;
}

.chatbot-widget:not(.visible) {
    display: none;
}

.chatbot-widget__toggle {
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f84c9 0%, #70688f 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(58, 53, 80, 0.28);
    cursor: pointer;
    transition: none;
}

.chatbot-widget__toggle svg {
    width: 26px;
    height: 26px;
}

.chatbot-widget__window {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 392px;
    height: 620px;
    display: none;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(28, 25, 37, 0.22);
}

.chatbot-widget__window.open {
    display: flex;
}

.chatbot-widget__header,
.chatbot-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, #8f84c9 0%, #70688f 100%);
    color: #ffffff;
}

.chatbot-widget__header-title,
.chatbot-modal__title {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
}

.chatbot-widget__close,
.chatbot-modal__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.chatbot-widget__body {
    padding: 16px 18px;
    background: #f5f6fa;
}

.chatbot-widget__description {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    color: #2f2a41;
}

.chatbot-widget__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chatbot-widget__suggestion {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(143, 132, 201, 0.14);
    color: #3d3567;
    font-family: 'Coolvetica', 'Yanone Kaffeesatz', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.chatbot-widget__embed {
    flex: 1;
    min-height: 0;
}

.chatbot-widget__iframe,
.chatbot-modal__iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.chatbot-widget__window--embedded .chatbot-widget__body,
.chatbot-widget__window--embedded .chatbot-widget__form {
    display: none;
}

.chatbot-widget__form {
    padding: 12px;
    border-top: 1px solid rgba(61, 53, 103, 0.08);
}

.chatbot-widget__input-group {
    display: flex;
    gap: 10px;
}

.chatbot-widget__input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(61, 53, 103, 0.12);
    border-radius: 14px;
    outline: none;
}

.chatbot-widget__send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #25222f;
    color: #ffffff;
    cursor: pointer;
}

.chatbot-modal[hidden] {
    display: none;
}

.chatbot-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
}

.chatbot-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 26, 0.46);
    backdrop-filter: blur(8px);
}

.chatbot-modal__dialog {
    position: relative;
    width: min(1100px, calc(100vw - 64px));
    height: min(780px, calc(100vh - 48px));
    margin: 32px auto;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 28px 92px rgba(22, 20, 30, 0.22);
}

.chatbot-modal__frame-wrap {
    flex: 1;
}

@media (max-width: 767px) {
    .chatbot {
        margin-bottom: 28px;
        padding: 0 12px;
    }

    .chatbot__container {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 14px;
    }

    .chatbot__panel {
        order: 1;
        justify-content: center;
        min-height: auto;
        width: 100%;
    }

    .chatbot__panel-card {
        width: 100%;
        max-width: none;
    }

    .chatbot__content {
        order: 2;
    }

    .chatbot__header {
        gap: 8px;
    }

    .chatbot__description {
        font-size: 14px;
    }

    .chatbot__illustration {
        display: none;
    }

    .chatbot__orb {
        width: 86px;
        height: 86px;
        border-radius: 26px;
    }

    .chatbot__orb::before {
        top: 22px;
        left: 18px;
        width: 38px;
    }

    .chatbot__orb::after {
        top: 38px;
        left: 18px;
        width: 46px;
    }

    .chatbot__search {
        order: 4;
        height: 52px;
        max-width: 100%;
    }

    .chatbot__helper {
        order: 3;
    }

    .chatbot__suggestions,
    .chatbot__cta-row {
        display: none;
    }

    .chatbot__input {
        padding-right: 100px;
        font-size: 16px;
    }

    .chatbot__submit {
        width: 90px;
        min-width: 90px;
        height: 38px;
        top: 7px;
        right: 7px;
        border-radius: 12px;
        transform: none;
    }

    .chatbot__submit:hover,
    .chatbot__submit:active {
        transform: none;
    }

    .chatbot-widget {
        right: 16px;
        bottom: 16px;
    }

    .chatbot-modal {
        display: block;
    }

    .chatbot-modal__dialog {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        margin: 8px;
        border-radius: 22px;
    }
}
