:root {
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #f7f8fc;
    --purple: #6558e8;
    --purple-dark: #5145cd;
    --purple-soft: #efedff;
    --blue: #229ed9;
    --orange: #f59e0b;
    --green: #16a34a;
    --navy: #17172e;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-nav {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
}

.nav-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    width: 132px;
}

.navbar,
.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
}

.navbar {
    gap: 38px;
}

.nav-links {
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--purple);
}

.nav-links a.active {
    color: var(--purple);
    font-weight: 700;
}

.nav-actions {
    gap: 10px;
}

.language-switcher {
    display: flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
}

.language-switcher a {
    display: grid;
    min-width: 32px;
    height: 30px;
    place-items: center;
    border-radius: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.language-switcher a:hover {
    color: var(--purple);
}

.language-switcher a.active {
    color: var(--purple);
    background: #fff;
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.1);
}

.hamburger {
    display: none;
    padding: 7px;
    border: 0;
    background: transparent;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-small {
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
}

.button-large {
    min-height: 54px;
    padding: 0 25px;
    font-size: 15px;
}

.button-primary {
    color: #fff;
    background: var(--purple);
    box-shadow: 0 8px 20px rgba(101, 88, 232, 0.2);
}

.button-primary:hover {
    background: var(--purple-dark);
    box-shadow: 0 11px 25px rgba(101, 88, 232, 0.28);
}

.button-ghost {
    border-color: var(--line);
    background: #fff;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 96px;
    background:
        radial-gradient(circle at 75% 20%, #f0edff 0, transparent 34%),
        linear-gradient(180deg, #fbfbfe 0%, #fff 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.hero-glow-one {
    top: 70px;
    right: -100px;
    width: 330px;
    height: 330px;
    background: rgba(175, 165, 255, 0.13);
}

.hero-glow-two {
    bottom: 30px;
    left: -120px;
    width: 240px;
    height: 240px;
    background: rgba(34, 158, 217, 0.08);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 21px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow-purple {
    color: var(--purple);
}

.eyebrow-green {
    color: var(--green);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #24b47e;
    box-shadow: 0 0 0 5px rgba(36, 180, 126, 0.12);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.04em;
}

h1 {
    max-width: 590px;
    margin-bottom: 24px;
    font-size: clamp(44px, 5vw, 66px);
    line-height: 1.04;
}

h1 span {
    color: var(--purple);
}

.hero-lead {
    max-width: 570px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.text-link {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #cbd5e1;
}

.hero-notes {
    display: flex;
    gap: 20px;
    margin: 25px 0 0;
    padding: 0;
    color: #64748b;
    font-size: 12px;
    list-style: none;
}

.hero-notes i {
    margin-right: 4px;
    color: var(--green);
}

.inbox-demo {
    position: relative;
    min-width: 0;
    border: 1px solid #e8e5ff;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 30px 80px rgba(41, 35, 104, 0.13),
        0 5px 20px rgba(41, 35, 104, 0.07);
}

.hero-illustration {
    display: grid;
    min-height: 490px;
    place-items: center;
    padding: 24px;
}

.hero-illustration img {
    width: min(510px, 100%);
    max-height: 540px;
    filter: drop-shadow(0 28px 45px rgba(41, 35, 104, 0.13));
}

.demo-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 47px;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #edf0f4;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
}

.demo-dots {
    display: flex;
    gap: 5px;
}

.demo-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e4e7ec;
}

.agent-avatar {
    justify-self: end;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--purple);
    font-size: 8px;
}

.demo-body {
    display: grid;
    grid-template-columns: 49px 190px 1fr;
    height: 386px;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.demo-sidebar {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 24px;
    padding-top: 13px;
    color: #a3a9b4;
    background: #1d1c35;
    font-size: 12px;
}

.demo-logo {
    display: grid;
    width: 26px;
    height: 26px;
    margin-bottom: 5px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--purple);
    font-weight: 800;
}

.demo-sidebar .active {
    color: #a99eff;
}

.conversation-list {
    padding: 14px 9px;
    border-right: 1px solid #edf0f4;
    background: #fbfcfe;
}

.list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 11px;
    font-size: 11px;
}

.list-heading span {
    color: #8a819d;
    font-size: 9px;
}

.conversation {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 7px;
    align-items: center;
    margin-bottom: 4px;
    padding: 9px 7px;
    border-radius: 8px;
}

.conversation.active {
    background: #f0eeff;
}

.conversation strong,
.conversation p,
.conversation time {
    display: block;
    overflow: hidden;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.conversation strong {
    font-size: 9px;
}

.conversation p,
.conversation time {
    color: #9299a6;
    font-size: 7px;
    line-height: 1.5;
}

.channel-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
}

.telegram {
    background: var(--blue);
}

.chat {
    background: var(--purple);
}

.email {
    background: var(--orange);
}

.form {
    background: #24b47e;
}

.chat-window {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #fff;
}

.chat-person {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 53px;
    padding: 0 13px;
    border-bottom: 1px solid #edf0f4;
}

.person-avatar {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #8175ec, #4f46b8);
    font-size: 10px;
    font-weight: 700;
}

.chat-person strong,
.chat-person span,
.widget-head strong,
.widget-head span {
    display: block;
}

.chat-person strong {
    font-size: 9px;
}

.chat-person span {
    color: #8e96a3;
    font-size: 7px;
}

.chat-person .ticket-status {
    margin-left: auto;
    padding: 4px 7px;
    border-radius: 10px;
    color: #18835b;
    background: #e8f8f1;
    font-size: 7px;
}

.messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 11px;
    padding: 31px 17px;
    background: #fafbfc;
}

.message {
    max-width: 78%;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 8px;
    line-height: 1.55;
}

.incoming {
    align-self: flex-start;
    border: 1px solid #eaedf1;
    border-bottom-left-radius: 3px;
    background: #fff;
}

.outgoing {
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    color: #fff;
    background: var(--purple);
}

.typing {
    color: #9aa1ac;
    font-size: 7px;
}

.typing span {
    margin-left: 4px;
    letter-spacing: 1px;
}

.reply-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 47px;
    margin: 0 12px 12px;
    padding: 0 7px 0 12px;
    border: 1px solid #e6e9ee;
    border-radius: 9px;
    color: #abb0ba;
    font-size: 8px;
}

.reply-box button {
    display: grid;
    width: 28px;
    height: 28px;
    border: 0;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: var(--purple);
    font-size: 9px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 155px;
    padding: 11px 13px;
    border: 1px solid #ebecef;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 35px rgba(32, 28, 87, 0.14);
}

.floating-card > i {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    font-size: 9px;
}

.floating-card span {
    color: #9197a2;
    font-size: 7px;
}

.floating-telegram {
    top: 85px;
    right: -35px;
}

.floating-telegram > i {
    background: var(--blue);
}

.floating-form {
    right: 23px;
    bottom: -24px;
}

.floating-form > i {
    background: #24b47e;
}

.channel-strip {
    border-top: 1px solid #eff1f4;
    border-bottom: 1px solid #eff1f4;
}

.channel-strip-inner {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    color: #4b5563;
    font-size: 13px;
}

.channel-strip-inner > span {
    color: #9aa1ac;
    font-size: 11px;
}

.channel-strip-inner div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.channel-strip-inner i {
    color: var(--purple);
    font-size: 17px;
}

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 58px;
    text-align: center;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
}

.section-heading p,
.forms-copy > p,
.faq-grid > div > p {
    color: var(--muted);
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 38px;
    border: 1px solid #e8eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(25, 31, 53, 0.04);
}

.feature-card-wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 60px 0.85fr 1fr;
    gap: 24px;
    align-items: center;
    min-height: 315px;
    background: linear-gradient(135deg, #fff 45%, #f7f5ff 100%);
}

.feature-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 14px;
    font-size: 20px;
}

.icon-purple {
    color: var(--purple);
    background: var(--purple-soft);
}

.icon-blue {
    color: var(--blue);
    background: #e9f7fd;
}

.icon-orange {
    color: var(--orange);
    background: #fff6df;
}

.icon-green {
    color: var(--green);
    background: #e9f8ef;
}

.feature-card h3,
.workflow-grid h3 {
    margin: 23px 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.feature-card-wide h3 {
    margin-top: 0;
}

.feature-card p,
.workflow-grid p {
    color: var(--muted);
    font-size: 14px;
}

.feature-grid-compact {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card-small {
    min-height: 255px;
    padding: 30px;
}

.feature-card-small h3 {
    margin-top: 22px;
    font-size: 18px;
}

.feature-card-small p {
    margin-bottom: 0;
    font-size: 13px;
}

.check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 24px 0 0;
    padding: 0;
    color: #475569;
    font-size: 12px;
    list-style: none;
}

.check-list i {
    margin-right: 5px;
    color: var(--green);
}

.widget-preview {
    width: min(290px, 100%);
    margin-left: auto;
    overflow: hidden;
    border: 1px solid #e2e3ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(53, 44, 133, 0.13);
}

.widget-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    color: #fff;
    background: var(--purple);
}

.widget-head .person-avatar {
    background: rgba(255, 255, 255, 0.2);
}

.widget-head strong {
    font-size: 11px;
}

.widget-head span {
    color: #dcd8ff;
    font-size: 8px;
}

.widget-message {
    width: 72%;
    margin: 25px 15px 30px;
    padding: 12px;
    border-radius: 10px 10px 10px 3px;
    color: #556070;
    background: #f1f3f6;
    font-size: 9px;
}

.widget-input {
    margin: 0 14px 14px;
    padding: 11px;
    border: 1px solid #e7e9ed;
    border-radius: 8px;
    color: #a1a7b0;
    font-size: 8px;
}

.mini-channels {
    position: absolute;
    right: 36px;
    bottom: 35px;
    left: 36px;
    display: flex;
    gap: 10px;
}

.mini-channels span {
    flex: 1;
    padding: 14px;
    border: 1px solid #e8eaf0;
    border-radius: 11px;
    color: #4b5563;
    background: #fbfcfd;
    font-size: 11px;
    font-weight: 600;
}

.mini-channels i {
    margin-right: 6px;
    color: var(--blue);
}

.mini-channels span:last-child i {
    color: #7360f2;
}

.email-preview {
    position: absolute;
    right: 36px;
    bottom: 35px;
    left: 36px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    background: #fbfcfd;
}

.email-preview > i {
    color: var(--orange);
}

.email-preview strong,
.email-preview span {
    display: block;
}

.email-preview strong {
    font-size: 10px;
}

.email-preview span {
    color: #8a929e;
    font-size: 8px;
}

.email-preview .email-badge {
    padding: 4px 7px;
    border-radius: 8px;
    color: #956300;
    background: #fff2ce;
}

.forms-section {
    background: #f7f8fb;
}

.forms-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 85px;
    align-items: center;
}

.form-visual {
    display: grid;
    grid-template-columns: 1fr 55px 0.9fr;
    align-items: center;
}

.site-form-card,
.request-card {
    padding: 26px;
    border: 1px solid #e1e4ea;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(25, 31, 53, 0.08);
}

.form-label {
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
}

.fake-field {
    margin-bottom: 11px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.fake-field small,
.fake-field strong {
    display: block;
}

.fake-field small {
    color: #9aa1ac;
    font-size: 8px;
}

.fake-field strong {
    color: #4b5563;
    font-size: 9px;
    font-weight: 500;
}

.fake-submit {
    margin-top: 16px;
    padding: 11px;
    border-radius: 8px;
    color: #fff;
    background: var(--purple);
    text-align: center;
    font-size: 9px;
    font-weight: 600;
}

.flow-line {
    display: flex;
    align-items: center;
    color: var(--purple);
}

.flow-line span {
    width: 100%;
    border-top: 1px dashed #a9a1ed;
}

.flow-line i {
    margin-left: -3px;
    font-size: 10px;
}

.request-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.request-head .feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 13px;
}

.request-head small,
.request-head strong {
    display: block;
}

.request-head small {
    color: #9299a5;
    font-size: 8px;
}

.request-head strong {
    font-size: 11px;
}

.request-card dl,
.request-card dd {
    margin: 0;
}

.request-card dl > div {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-top: 1px solid #edf0f3;
    font-size: 8px;
}

.request-card dt {
    color: #989faa;
}

.request-card dd {
    font-weight: 600;
}

.forms-copy h2 {
    font-size: clamp(33px, 4vw, 46px);
}

.benefit-list {
    display: grid;
    gap: 20px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.benefit-list li {
    display: flex;
    gap: 14px;
}

.benefit-list li > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    background: #e9f8ef;
    font-size: 10px;
}

.benefit-list strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.benefit-list p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.workflow-section {
    padding-bottom: 120px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.workflow-grid article {
    position: relative;
    padding: 28px 26px;
    border: 1px solid #e8eaf0;
    border-radius: 16px;
}

.step-number {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #d6d9df;
    font-size: 13px;
    font-weight: 700;
}

.workflow-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--purple);
    background: var(--purple-soft);
    font-size: 15px;
}

.workflow-grid h3 {
    font-size: 17px;
}

.workflow-grid p {
    margin-bottom: 0;
    font-size: 12px;
}

.vertical-timeline {
    position: relative;
    display: grid;
    width: min(820px, 100%);
    gap: 28px;
    margin: 0 auto;
}

.vertical-timeline::before {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 27px;
    width: 1px;
    background: #dcd8ff;
    content: "";
}

.vertical-timeline article {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    align-items: center;
}

.timeline-marker {
    z-index: 1;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 7px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--purple);
    box-shadow: 0 0 0 1px #dcd8ff;
    font-size: 11px;
    font-weight: 700;
}

.timeline-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    align-items: center;
    padding: 28px 30px;
    border: 1px solid #e8eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(25, 31, 53, 0.04);
}

.timeline-card .workflow-icon {
    width: 52px;
    height: 52px;
}

.timeline-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.timeline-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.faq-section {
    border-top: 1px solid #eef0f3;
    background: #fbfbfd;
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 100px;
}

.faq-grid h2 {
    font-size: 42px;
}

.faq-grid a {
    color: var(--purple);
}

.faq-list {
    border-top: 1px solid #dfe3e8;
}

.faq-list details {
    border-bottom: 1px solid #dfe3e8;
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary i {
    color: #9aa1ac;
    font-size: 11px;
    transition: transform 0.2s;
}

.faq-list details[open] summary i {
    transform: rotate(45deg);
}

.faq-list p {
    max-width: 620px;
    margin: -7px 30px 22px 0;
    color: var(--muted);
    font-size: 13px;
}

.cta-section {
    padding: 90px 0;
}

.cta-inner {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 260px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 58px 65px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #5950d4, #7969ee);
}

.cta-glow {
    position: absolute;
    top: -180px;
    right: -70px;
    width: 440px;
    height: 440px;
    border: 80px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.cta-inner > *:not(.cta-glow) {
    position: relative;
}

.cta-inner span {
    color: #dcd8ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cta-inner h2 {
    max-width: 660px;
    margin: 8px 0 10px;
    font-size: 39px;
}

.cta-inner p {
    margin: 0;
    color: #dfdcff;
    font-size: 14px;
}

.button-white {
    flex: 0 0 auto;
    color: var(--purple-dark);
    background: #fff;
    box-shadow: 0 12px 35px rgba(35, 28, 107, 0.18);
}

footer {
    color: #b8bac9;
    background: var(--navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    padding: 70px 0 55px;
}

.footer-brand img {
    width: 132px;
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 300px;
    color: #8e91a4;
    font-size: 12px;
}

.footer-grid strong,
.footer-grid a {
    display: block;
}

.footer-grid strong {
    margin-bottom: 18px;
    color: #fff;
    font-size: 12px;
}

.footer-grid a {
    margin-bottom: 10px;
    color: #9295a8;
    font-size: 11px;
}

.footer-grid a:hover,
.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-top: 1px solid #2b2a43;
    color: #777a90;
    font-size: 10px;
}

.footer-bottom div {
    display: flex;
    gap: 22px;
}

/* Inner pages */
.page-hero {
    overflow: hidden;
    padding: 92px 0 86px;
    border-bottom: 1px solid #eceef3;
    background:
        radial-gradient(circle at 77% 10%, #ece9ff 0, transparent 31%),
        linear-gradient(180deg, #fbfbfe 0%, #fff 100%);
}

.page-hero-inner {
    max-width: 780px;
    text-align: center;
}

.page-hero h1 {
    max-width: none;
    margin-bottom: 20px;
    font-size: clamp(42px, 6vw, 62px);
}

.page-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
}

.docs-section {
    padding: 80px 0 120px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    gap: 80px;
    justify-content: center;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 106px;
    padding: 24px;
    border: 1px solid #e8eaf0;
    border-radius: 15px;
    background: #fff;
}

.docs-sidebar > strong {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
}

.docs-sidebar nav {
    display: grid;
    gap: 3px;
}

.docs-sidebar a {
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12px;
}

.docs-sidebar a:hover {
    color: var(--purple);
    background: var(--purple-soft);
}

.docs-content {
    min-width: 0;
}

.docs-article {
    padding: 0 0 76px;
    scroll-margin-top: 105px;
}

.docs-article + .docs-article {
    padding-top: 76px;
    border-top: 1px solid #e7e9ee;
}

.docs-article:last-child {
    padding-bottom: 0;
}

.docs-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.docs-kicker span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--purple);
    font-size: 9px;
}

.docs-article h2 {
    margin-bottom: 17px;
    font-size: 38px;
}

.docs-article h3 {
    margin: 35px 0 12px;
    font-size: 20px;
}

.docs-article > p {
    color: var(--muted);
}

.docs-article a,
.legal-content a {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.instruction-list {
    display: grid;
    gap: 20px;
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.instruction-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
}

.instruction-list li > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--purple);
    background: var(--purple-soft);
    font-size: 11px;
    font-weight: 700;
}

.instruction-list strong {
    display: block;
    margin: 3px 0 4px;
    font-size: 14px;
}

.instruction-list p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.docs-callout {
    display: flex;
    gap: 13px;
    margin-top: 30px;
    padding: 18px 20px;
    border: 1px solid #ddd9ff;
    border-radius: 12px;
    color: #5145a5;
    background: #f5f3ff;
}

.docs-callout.warning {
    border-color: #f4dfad;
    color: #865d08;
    background: #fff9e9;
}

.docs-callout i {
    margin-top: 4px;
}

.docs-callout p {
    margin: 0;
    font-size: 12px;
}

.code-block {
    overflow: hidden;
    margin: 26px 0;
    border-radius: 13px;
    color: #d8d6ec;
    background: #1d1c35;
    box-shadow: 0 15px 35px rgba(23, 23, 46, 0.14);
}

.code-block > div {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #32304d;
}

.code-block > div span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #555269;
}

.code-block small {
    margin-left: auto;
    color: #88859b;
    font-size: 8px;
}

.code-block code {
    display: block;
    overflow-x: auto;
    padding: 22px;
    font-size: 12px;
    line-height: 1.9;
}

.setup-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.setup-options > div {
    padding: 25px;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
}

.setup-options h3 {
    margin: 20px 0 8px;
    font-size: 16px;
}

.setup-options p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.pricing-section {
    padding: 80px 0 110px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    padding: 37px 34px;
    border: 1px solid #e5e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(25, 31, 53, 0.05);
}

.pricing-card.featured {
    border: 2px solid var(--purple);
    box-shadow: 0 22px 55px rgba(101, 88, 232, 0.15);
}

.popular-label {
    position: absolute;
    top: -13px;
    left: 50%;
    padding: 6px 13px;
    border-radius: 20px;
    color: #fff;
    background: var(--purple);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.plan-heading > span {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
}

.plan-heading p {
    min-height: 68px;
    color: var(--muted);
    font-size: 13px;
}

.plan-price {
    display: flex;
    min-height: 85px;
    align-items: flex-end;
    gap: 9px;
    margin: 22px 0 28px;
}

.plan-price strong {
    font-size: 47px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-price span {
    max-width: 80px;
    padding-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.pricing-card .button {
    width: 100%;
}

.pricing-card ul {
    display: grid;
    gap: 13px;
    margin: 30px 0 0;
    padding: 27px 0 0;
    border-top: 1px solid #eceef2;
    color: #475569;
    font-size: 12px;
    list-style: none;
}

.pricing-card li i {
    width: 18px;
    color: var(--green);
}

.pricing-note {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 30px;
    color: var(--muted);
}

.pricing-note p {
    margin: 0;
    font-size: 11px;
}

.legal-section {
    padding: 80px 0 120px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 740px);
    gap: 75px;
    justify-content: center;
    align-items: start;
}

.legal-summary {
    position: sticky;
    top: 105px;
    padding: 30px;
    border: 1px solid #dcefe3;
    border-radius: 16px;
    background: #f5fbf7;
}

.legal-summary h2 {
    margin: 22px 0 12px;
    font-size: 22px;
}

.legal-summary p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.legal-content section {
    padding-bottom: 55px;
}

.legal-content section + section {
    padding-top: 55px;
    border-top: 1px solid #e7e9ee;
}

.legal-content section > span {
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
}

.legal-content h2 {
    margin: 8px 0 18px;
    font-size: 29px;
}

.legal-content p,
.legal-content li {
    color: #566174;
    font-size: 14px;
}

.legal-content ul {
    display: grid;
    gap: 9px;
    padding-left: 20px;
}

.legal-contact {
    display: flex;
    gap: 15px;
    padding: 24px;
    border-radius: 14px;
    background: var(--purple-soft);
}

.legal-contact > i {
    margin-top: 4px;
    color: var(--purple);
}

.legal-contact strong {
    font-size: 14px;
}

.legal-contact p {
    margin: 2px 0 0;
    font-size: 12px;
}

@media (max-width: 1040px) {
    .hero-grid {
        gap: 35px;
    }

    .demo-body {
        grid-template-columns: 45px 155px 1fr;
    }

    .floating-telegram {
        right: -10px;
    }

    .forms-grid {
        gap: 45px;
    }

    .feature-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .docs-layout,
    .legal-layout {
        gap: 40px;
    }
}

@media (max-width: 860px) {
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px 30px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 18px 35px rgba(17, 24, 39, 0.08);
    }

    .navbar.active {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .language-switcher {
        align-self: center;
        flex-direction: row;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        display: block;
        padding: 9px 0;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-grid,
    .forms-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions,
    .hero-notes {
        justify-content: center;
    }

    .inbox-demo {
        width: min(680px, 100%);
        margin: 25px auto 0;
    }

    .hero-illustration {
        min-height: 410px;
    }

    .channel-strip-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px 28px;
        padding: 25px 0;
    }

    .channel-strip-inner > span {
        width: 100%;
        text-align: center;
    }

    .forms-grid {
        gap: 60px;
    }

    .form-visual {
        width: min(650px, 100%);
        margin: 0 auto;
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .docs-layout,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar,
    .legal-summary {
        position: static;
    }

    .docs-sidebar nav {
        grid-template-columns: repeat(5, auto);
        overflow-x: auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 40px));
    }

    .faq-grid {
        gap: 40px;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 30px, 1160px);
    }

    .hero {
        padding: 55px 0 70px;
    }

    h1 {
        font-size: 42px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 17px;
    }

    .text-link {
        align-self: center;
    }

    .hero-notes {
        flex-wrap: wrap;
        gap: 7px 15px;
    }

    .demo-body {
        grid-template-columns: 42px 1fr;
        height: 355px;
    }

    .hero-illustration {
        min-height: 330px;
        padding: 0;
    }

    .conversation-list {
        display: none;
    }

    .floating-card {
        display: none;
    }

    .channel-strip-inner div {
        width: calc(50% - 16px);
        font-size: 11px;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    h2,
    .faq-grid h2 {
        font-size: 33px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid-compact {
        grid-template-columns: 1fr;
    }

    .feature-card-wide {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 330px;
        padding: 27px;
    }

    .feature-card-wide {
        min-height: 0;
    }

    .widget-preview {
        margin: 10px 0 0;
    }

    .mini-channels,
    .email-preview {
        right: 27px;
        bottom: 27px;
        left: 27px;
    }

    .form-visual {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .flow-line {
        width: 50px;
        height: 45px;
        justify-self: center;
        transform: rotate(90deg);
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .vertical-timeline article {
        grid-template-columns: 46px 1fr;
        gap: 13px;
    }

    .vertical-timeline::before {
        left: 22px;
    }

    .timeline-marker {
        width: 46px;
        height: 46px;
        border-width: 6px;
    }

    .timeline-card {
        grid-template-columns: 1fr;
        padding: 23px;
    }

    .page-hero {
        padding: 65px 0;
    }

    .page-hero p {
        font-size: 16px;
    }

    .docs-section,
    .legal-section {
        padding: 60px 0 80px;
    }

    .docs-sidebar nav {
        grid-template-columns: 1fr;
    }

    .docs-article {
        padding-bottom: 55px;
    }

    .docs-article + .docs-article {
        padding-top: 55px;
    }

    .docs-article h2 {
        font-size: 31px;
    }

    .setup-options {
        grid-template-columns: 1fr;
    }

    .pricing-section {
        padding: 60px 0 80px;
    }

    .pricing-grid {
        width: min(100% - 30px, 520px);
    }

    .legal-summary {
        padding: 25px;
    }

    .cta-section {
        padding: 55px 0;
    }

    .cta-inner {
        min-height: 0;
        padding: 40px 28px;
    }

    .cta-inner h2 {
        font-size: 31px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom div {
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
