:root {
    --bg-color: #131413;
    --accent-color: #44b844;
    --text-main: #E0E0E0;
    --text-dim: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 30px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.hero {
    padding: 120px 0 80px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.accent {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

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

.card {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: var(--accent-color);
}

.card h3 {
    color: #5ab65a;;
    margin-bottom: 15px;
}

footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
}

/* Увеличенное скругление кнопок */
.btn-primary, .btn-outline {
    border-radius: 50px; /* Полностью закругленные края */
    padding: 15px 35px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Стили для новых блоков */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: left;
}

.use-cases {
    padding: 100px 20px;
}

.use-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(80, 200, 120, 0.1);
    transition: transform 0.3s ease;
}

.use-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.use-card .icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.use-card h4 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.use-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

html {
    scroll-behavior: smooth;
}

.hero {
    position: relative; 
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-floating-img {
    position: absolute;
    top: 50%;
    left: 50%; 
    transform: translate(150px, -50%); 
    
    width: 160px; 
    height: auto;
    z-index: 1;
    opacity: 0.9;
    filter: drop-shadow(0 0 40px rgba(68, 184, 68, 0.25));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* На мобилках лучше ее либо скрыть, либо вернуть в поток */
@media (max-width: 768px) {
    .hero-floating-img {
        display: none;
    }
}

/* Стили для формы обратной связи */
.order-section {
    padding-bottom: 100px;
}

.order-box {
    max-width: 600px;
    margin-right: 0;   
    margin-left: auto; 
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 25px;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(68, 184, 68, 0.1);
}

.contact-form .btn-primary {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
}

/* Адаптив для формы */
@media (max-width: 768px) {
    .order-section {
        padding: 0px 20px;
        padding-bottom: 60px;
    }
    .section-title {
        font-size: 2rem;
    }
}

.order-layout-wrapper {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    gap: 40px; 
    width: 100%;                   
    max-width: 1100px;             
    margin: 0;                      
}

.form-side-image {
    flex-shrink: 0;         
}

.order-content {
    max-width: 500px; 
    width: 100%;
    flex-grow: 0;
    margin-left: auto; 
}

.order-content .section-title {
    margin-top: 0;
    margin-bottom: 20px;
}

#tech {
    scroll-margin-top: 80px;
}

.card, 
.use-card,
nav a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

@media (max-width: 992px) {
    .card:hover, 
    .use-card:hover {
        transform: none; /* Убираем прыжок карточки вверх при касании */
        border-color: rgba(255, 255, 255, 0.1); /* Оставляем рамку дефолтной */
    }
}

@media (max-width: 900px) {
    .order-layout-wrapper {
        flex-direction: column; /* На телефонах всё в один столбик */
        align-items: center;    /* Центрируем всё */
        gap: 40px;
    }
    
    .order-content {
        text-align: center;     /* Текст по центру на мобилках */
    }
    
    .form-side-image svg {
        width: 180px;           /* Уменьшаем картинку на телефонах */
        height: auto;
    }
}

@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding: 60px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-floating-img {
        position: static; 
        transform: none;
        width: 120px; 
        margin: 0 auto 30px;
        display: block;
        opacity: 0.9;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    h1 { 
        font-size: 2.5rem; 
        text-align: center;
    }

    .hero-btns {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .order-layout-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .section-title { 
        text-align: center; 
    }
}

@media (max-width: 480px) {
    .hero-floating-img {
        width: 100px; /* На совсем маленьких экранах еще чуть меньше */
    }

    .hero-btns {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }

    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }

    .btn-outline {
        padding: 12px 15px;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }

    nav a {
        margin-left: 10px;
        font-size: 0.8rem;
    }
}