/* assets/css/style.css */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left .logo {
    height: 60px;
    width: avto;
    display: block;
}

.header-right nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-right a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.header-right a:hover {
    background: var(--bg-alt);
}

.header-right .btn-primary {
    background: var(--primary);
    color: white !important;
}

.header-right .btn-primary:hover {
    background: var(--primary-hover);
}

/* ===== MAIN ===== */
main {
    min-height: calc(100vh - 140px);
    padding: 20px;
}

/* ===== HOME PAGE ===== */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: transform 0.1s, box-shadow 0.2s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== FEATURES GRID ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    background: var(--bg);
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.feature-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.feature-card a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* ===== FORMS ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

input, textarea, select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* ===== UTILS ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.error { color: #dc2626; background: #fef2f2; padding: 10px; border-radius: 6px; }
.success { color: #16a34a; background: #f0fdf4; padding: 10px; border-radius: 6px; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 10px; }
    .header-right nav { flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; text-align: center; }
}
/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 20s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 1s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 15s; }

@keyframes slideFade {
    0%, 25% { opacity: 1; }
    33%, 100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 40px 30px 30px;
    color: white;
}

.hero-overlay h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
}

/* ===== FEATURES GRID (3 columns) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    background: var(--bg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.feature-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-card a:hover {
    gap: 8px;
    text-decoration: underline;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-section p {
    opacity: 0.95;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--bg-alt);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
 /* ===== HERO SLIDER (надёжный) ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* 🔥 Явная высота — обязательно! */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 🔥 Явная высота — обязательно! */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Контент поверх слайдов */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    color: white;
    z-index: 3;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
    max-width: 650px;
}

/* Точки */
.slider-dots {
    position: absolute;
    bottom: 15px;
    right: 20px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    border-color: #2563eb;
    transform: scale(1.1);
}

.dot:hover {
    background: rgba(255,255,255,0.9);
}

/* Сетка категорий */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    background: var(--bg);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2rem;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h3 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.cta-section p {
    margin: 0 0 20px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* Адаптив */
@media (max-width: 968px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slider { height: 400px; }
    .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 320px; }
    .hero-content { padding: 30px 20px 20px; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 1rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 280px; text-align: center; }
}
.emoji-picker {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.emoji-picker::-webkit-scrollbar {
    width: 8px;
}

.emoji-picker::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 4px;
}

.emoji-picker::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.emoji-picker::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.emoji-item {
    cursor: pointer;
    font-size: 1.4rem;
    text-align: center;
    padding: 6px 4px;
    border-radius: 6px;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1;
}

.emoji-item:hover {
    background: #f3f4f6;
    transform: scale(1.15);
}

.emoji-btn {
    transition: transform 0.2s;
}

.emoji-btn:hover {
    transform: scale(1.1);
}