html {
    scroll-behavior: smooth;
}

/* Кнопка "наверх" - синий цвет #2563eb */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}
#backToTop:hover {
    transform: scale(1.08);
    background: #1d4ed8;
}

/* Модальное окно */
#contactModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#contactModal.active {
    display: flex;
}
.modal-content {
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.custom-checkbox {
    accent-color: #2563eb;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Сетка для стеков - 5 колонок */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Цены - сетка */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) {
    .prices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .prices-grid {
        grid-template-columns: 1fr;
    }
}

/* Интеграции - сетка 3 колонки */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .integrations-grid {
        grid-template-columns: 1fr;
    }
}

/* Светлый синеватый фон */
.bg-blue-light {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f8ff 100%);
}

/* Фон для hero с картинкой */
.hero-bg {
    height: 100vh;
    min-height: 500px;
    width: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/img/main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ===== ПРОЗРАЧНОЕ МЕНЮ ===== */
.header-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}
.header-scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom-color: rgba(229, 231, 235, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}
.header-transparent .text-gray-700 {
    color: #1f2937 !important;
}
.header-transparent .hover\:text-indigo-600:hover {
    color: #2563eb !important;
}
.header-transparent .border-gray-200 {
    border-color: transparent !important;
}

/* Синий цвет */
.text-indigo-600 {
    color: #2563eb !important;
}
.text-indigo-400 {
    color: #60a5fa !important;
}
.bg-indigo-600 {
    background-color: #2563eb !important;
}
.bg-indigo-600:hover {
    background-color: #1d4ed8 !important;
}
.bg-indigo-100 {
    background-color: #dbeafe !important;
}
.border-indigo-500 {
    border-color: #2563eb !important;
}
.hover\:border-indigo-500:hover {
    border-color: #2563eb !important;
}
.shadow-indigo-500\/30 {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3) !important;
}

/* Увеличенная картинка в integrations */
.integrations-grid .integration-image {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.integrations-grid .integration-image img {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
}

/* Полное описание в карточках проектов */
.project-description {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}

/* Увеличенная высота блоков */
.timeline-card, .price-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 768px) {
    .timeline-card, .price-card {
        min-height: 180px;
    }
}

/* Ссылки в портфолио */
.project-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}
.project-link-wrapper:hover .project-title {
    color: #2563eb;
}
.project-title {
    transition: color 0.2s;
}

/* ===== FAQ - ВСЕ ВОПРОСЫ ВИДНЫ, БЕЗ ИКОНОК ===== */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 0;
}
.faq-item:first-child {
    padding-top: 0;
}
.faq-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.faq-question {
    font-weight: 600;
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.faq-answer {
    color: #4b5563;
    line-height: 1.625;
}
.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.close-button:hover {
    background-color: rgba(255,255,255,0.3);
}
.close-button::before, .close-button::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
}
.close-button::before {
    transform: rotate(45deg);
}
.close-button::after {
    transform: rotate(-45deg);
}


