:root {
    --color-primary: #0077ff;
    --color-primary-hover: #0066dd;
    --color-primary-light: #e6f2ff;
    --color-background: #ffffff;
    --color-background-secondary: #f5f7fa;
    --color-background-tertiary: #ebeef2;
    --color-text-primary: #282c33;
    --color-text-secondary: #5a6270;
    --color-text-tertiary: #8a92a3;
    --color-border: #dfe3e8;
    --color-border-light: #ebeef2;
    --color-success: #4bb34b;
    --color-error: #ff3347;
    --color-warning: #ffa000;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-h1: 48px;
    --font-size-h2: 36px;
    --font-size-h3: 24px;
    --font-size-h4: 20px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.16);
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.35s ease
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth
}

body {
    font-family: var(--font-family);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary)
}

h1 {
    font-size: var(--font-size-h1);
    letter-spacing: -0.02em
}

h2 {
    font-size: var(--font-size-h2);
    letter-spacing: -0.01em
}

h3 {
    font-size: var(--font-size-h3)
}

h4 {
    font-size: var(--font-size-h4)
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: var(--font-size-base)
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast)
}

a:hover {
    color: var(--color-primary-hover)
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md)
}

.section {
    padding: var(--spacing-xxl) 0
}

.section-alt {
    background-color: var(--color-background-secondary)
}

.header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95)
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs)
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0066dd 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: color var(--transition-fast)
}

.nav-link:hover {
    color: var(--color-primary)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-family);
    gap: var(--spacing-xs)
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm)
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px)
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary)
}

.btn-secondary:hover {
    background-color: var(--color-primary-light)
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-large)
}

.hero {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-secondary) 100%)
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center
}

.hero-content {
    max-width: 600px
}

.hero-title {
    font-size: 56px;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-subtitle {
    font-size: var(--font-size-large);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg)
}

.benefits {
    padding: var(--spacing-xxl) 0
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl)
}

.benefit-card {
    background-color: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base)
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--color-primary)
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #cce5ff 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 28px
}

.benefit-title {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary)
}

.benefit-description {
    color: var(--color-text-secondary);
    line-height: 1.6
}

.workflow {
    padding: var(--spacing-xxl) 0
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    position: relative
}

.workflow-step {
    background-color: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    border: 2px solid var(--color-border-light)
}

.workflow-step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0066dd 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto var(--spacing-md)
}

.workflow-step-title {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm)
}

.workflow-step-description {
    color: var(--color-text-secondary)
}

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(var(--spacing-md) * -1);
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    z-index: 1
}

.contact-form-section {
    padding: var(--spacing-xxl) 0
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-background-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md)
}

.form-group {
    margin-bottom: var(--spacing-md)
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: var(--font-size-base)
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    transition: all var(--transition-fast)
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light)
}

.form-input.error,
.form-textarea.error {
    border-color: var(--color-error)
}

.form-textarea {
    resize: vertical;
    min-height: 120px
}

.form-error {
    color: var(--color-error);
    font-size: var(--font-size-small);
    margin-top: var(--spacing-xs);
    display: block
}

.form-submit {
    width: 100%;
    margin-top: var(--spacing-md)
}

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4bb34b
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ff3347
}

.footer {
    background-color: var(--color-text-primary);
    color: white;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xxl)
}

.footer-content {
    text-align: center
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-small)
}

@media (max-width:968px) {
    :root {
        --font-size-h1: 40px;
        --font-size-h2: 32px;
        --font-size-h3: 22px
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center
    }

    .hero-title {
        font-size: 40px
    }

    .hero-cta {
        justify-content: center
    }

    .workflow-steps {
        grid-template-columns: 1fr
    }

    .workflow-step:not(:last-child)::after {
        content: '';
        right: auto;
        top: auto;
        left: 50%;
        bottom: calc(var(--spacing-md) * -1);
        transform: translateX(-50%) rotate(90deg)
    }

    .nav {
        gap: var(--spacing-md)
    }
}

@media (max-width:640px) {
    .hero-title {
        font-size: 32px
    }

    .btn-large {
        padding: 14px 24px;
        font-size: var(--font-size-base)
    }

    .benefits-grid {
        grid-template-columns: 1fr
    }

    .form-container {
        padding: var(--spacing-md)
    }

    .header-container {
        flex-direction: column;
        gap: var(--spacing-sm)
    }
}

.text-center {
    text-align: center
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 18px;
    margin-bottom: var(--spacing-xl)
}

.form-footer-text {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin-top: var(--spacing-md)
}

.mb-0 {
    margin-bottom: 0
}

.mb-sm {
    margin-bottom: var(--spacing-sm)
}

.mb-md {
    margin-bottom: var(--spacing-md)
}

.mb-lg {
    margin-bottom: var(--spacing-lg)
}

.mb-xl {
    margin-bottom: var(--spacing-xl)
}

.mt-0 {
    margin-top: 0
}

.mt-sm {
    margin-top: var(--spacing-sm)
}

.mt-md {
    margin-top: var(--spacing-md)
}

.mt-lg {
    margin-top: var(--spacing-lg)
}

.mt-xl {
    margin-top: var(--spacing-xl)
}

.telegram-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(42, 171, 238, 0.4);
    z-index: 1000;
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    border: none
}

.telegram-fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 171, 238, 0.5)
}

.telegram-fab svg {
    margin-right: 2px;
    margin-top: 2px
}

.telegram-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #2AABEE;
    opacity: 0;
    z-index: -1;
    animation: telegram-pulse-animation 2s infinite
}

.telegram-pulse::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid #2AABEE;
    opacity: 0;
    animation: telegram-pulse-animation 2s infinite 0.5s
}

@keyframes telegram-pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.6
    }

    100% {
        transform: scale(1.6);
        opacity: 0
    }
}

.telegram-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all .3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 999
}

.telegram-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all
}

.chat-header {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px
}

.chat-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600
}

.chat-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8
}

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s
}

.chat-close:hover {
    opacity: 1
}

.chat-body {
    padding: 20px;
    height: auto;
    max-height: 400px;
    flex: 1;
    overflow-y: auto;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.chat-message.admin {
    background-color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05)
}

.chat-message.user {
    background-color: #2AABEE;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px
}

.chat-timestamp {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
    text-align: right
}

.chat-footer {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #ebeef2
}

.chat-form {
    display: flex;
    gap: 10px
}

.chat-input {
    flex: 1;
    border: 1px solid #dfe3e8;
    border-radius: 20px;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    height: 42px;
    line-height: 20px
}

.chat-input:focus {
    outline: none;
    border-color: #2AABEE
}

.chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #2AABEE;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s
}

.chat-send:hover {
    background-color: #229ED9
}

.chat-send:disabled {
    background-color: #ccc;
    cursor: not-allowed
}

@media (max-width:640px) {
    .telegram-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px
    }
}

@media (max-width:480px) {
    .telegram-widget {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 2000
    }

    .chat-body {
        flex: 1;
        height: auto
    }
}