/* styles.css */

/* Общие стили */
html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    color: #fff;
}
/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background: #000;
}

/* Шапка */
.hero {
    position: relative;
    background: url('https://source.unsplash.com/1920x1080/?business,technology') no-repeat center center/cover;
    height: 100vh; /* Высота экрана */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Оверлей для затемнения */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    z-index: 1;
}

/* Контент в шапке */
.hero .container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #ddd;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 50px;
    margin: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4caf50;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #3e8e41;
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}


/* Общий стиль для секции */
.section {
    padding: 60px 20px;
    background: #111; /* Темный фон секции */
    color: #fff;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Сетка карточек */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Карточки услуг */
.service-card {
    background: #222; /* Фон карточек */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #333; /* Более светлый фон при наведении */
}

.service-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ccc;
}

.service-card ul {
    margin: 0;
    padding-left: 20px;
    color: #aaa;
}

.service-card li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    list-style: disc;
}


/* Form */
.form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #222;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 1rem;
    color: #fff;
}

.form-textarea {
    height: 100px;
}

.footer {
    background: #111;
    text-align: center;
    padding: 20px;
    color: #fff;
    font-size: 0.9rem;
}

/* Кнопка "Вверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон */
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3); /* Полупрозрачная рамка */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Тень */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

/* Эффекты при наведении */
.scroll-to-top:hover {
    background: rgba(255, 255, 255, 0.3); /* Увеличение непрозрачности фона */
    border-color: rgba(255, 255, 255, 0.6); /* Увеличение прозрачности рамки */
    transform: scale(1.1); /* Лёгкое увеличение */
    color: #172c18; /* Зеленый цвет стрелки */
}

/* Появление кнопки */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Анимация при появлении */
.scroll-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Секция "Функциональные возможности" */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #222; /* Темный фон */
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    background: #333;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #4caf50;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}
