/* Основные настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                transform 0.3s ease, 
                opacity 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    flex: 1;
    padding-top: 20px;
}

/* Шапка */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar {
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: #3498db;
}

.nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db !important;
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-link.active {
    color: #3498db !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #3498db;
}

/* ===== ГЛАВНЫЙ БАННЕР - БЕЗ ФОНА ПОД ТЕКСТОМ ===== */
.hero-banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-banner {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    
    /* Оптимизация для четкости */
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Контейнер для текста - БЕЗ ФОНА */
.hero-banner .container {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Текст напрямую на картинке - только тень для читаемости */
.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8), 
                 1px 1px 2px rgba(0,0,0,0.9);
    animation: fadeInDown 1s ease;
    letter-spacing: 0.5px;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

.banner-subtitle {
    font-size: 1.8rem;
    animation: fadeInUp 1s ease 0.3s both;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8),
                 1px 1px 2px rgba(0,0,0,0.9);
    font-weight: 300;
    margin-bottom: 0;
    line-height: 1.4;
    position: relative;
    z-index: 3;
}

/* Запасной вариант если изображение не найдено */
.hero-banner-fallback {
    background: linear-gradient(45deg, #3498db, #9b59b6) !important;
}

/* Для градиентного фона - текст без сильной тени */
.hero-banner-fallback .banner-title,
.hero-banner-fallback .banner-subtitle {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Секция с сайтами */
.websites-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #9b59b6);
}

/* Карточки сайтов */
.website-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid #eee;
    position: relative;
    margin-bottom: 30px;
}

.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #3498db, #9b59b6);
    opacity: 0;
    transition: opacity 0.3s;
}

.website-card:hover::before {
    opacity: 1;
}

.website-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.website-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* ===== SVG ЗАГОЛОВКИ ВМЕСТО ИЗОБРАЖЕНИЙ ===== */
.svg-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.svg-placeholder svg {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.website-card:hover .svg-placeholder svg {
    transform: scale(1.05);
}

/* Улучшение отображения текста в SVG */
.svg-placeholder text {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
}

/* Адаптивность для SVG */
@media (max-width: 768px) {
    .svg-placeholder text {
        font-size: 24px !important;
    }
}

@media (max-width: 576px) {
    .svg-placeholder text {
        font-size: 20px !important;
    }
}

.card-content {
    padding: 25px;
    position: relative;
}

.card-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    transition: color 0.3s;
}

.website-card:hover .card-content h3 {
    color: #3498db;
}

.card-content p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Улучшенные стили для кнопок в карточках */
.website-card .btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.website-card:hover .btn-outline-primary {
    background-color: #3498db;
    color: white;
    transform: translateX(5px);
}

/* Анимация для элементов при скролле */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Подвал */
footer {
    background: linear-gradient(to right, #2c3e50, #34495e);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-text {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-text a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-text a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Отступ для контента после героя */
.content-after-hero {
    padding-top: 40px;
}

/* Стили для уведомлений */
.custom-notification {
    cursor: pointer;
    transition: transform 0.3s ease;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.custom-notification:hover {
    transform: scale(1.02);
}

/* Улучшенный focus для доступности */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Стили для CTA секции */
#cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 60px auto;
    max-width: 1200px;
    padding: 60px 20px;
}

#cta h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

#cta .lead {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    font-weight: 300;
}

#cta .btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Улучшение читаемости текста */
.lead {
    line-height: 1.6;
    color: #555;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Стили для карточек в дополнительной информации */
.bg-light .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.bg-light .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* ===== АДАПТИВНОСТЬ БАННЕРА ===== */

@media (max-width: 992px) {
    .hero-banner {
        padding: 80px 0;
        min-height: 50vh;
        background-attachment: scroll !important;
    }
    
    .banner-title {
        font-size: 2.8rem;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    }
    
    .banner-subtitle {
        font-size: 1.5rem;
        text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .website-card {
        margin-bottom: 30px;
    }
    
    #cta h3 {
        font-size: 1.8rem;
    }
    
    #cta .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 60px 0;
        min-height: 40vh;
    }
    
    .banner-title {
        font-size: 2.2rem;
        text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    }
    
    .banner-subtitle {
        font-size: 1.3rem;
        text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-banner .container {
        padding: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 15px;
    }
    
    .nav-link {
        padding: 10px !important;
        margin: 5px 0;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    #cta {
        padding: 40px 15px;
        margin: 40px auto;
    }
    
    #cta h3 {
        font-size: 1.6rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        padding: 40px 0;
        min-height: 30vh;
    }
    
    .banner-title {
        font-size: 1.8rem;
        text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h3 {
        font-size: 1.4rem;
    }
    
    .svg-placeholder {
        height: 180px;
    }
    
    #cta {
        padding: 30px 15px;
        margin: 30px auto;
        border-radius: 15px;
    }
    
    #cta h3 {
        font-size: 1.4rem;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    
    .hero-banner {
        min-height: 70vh;
    }
    
    .banner-title {
        font-size: 4rem;
    }
    
    .banner-subtitle {
        font-size: 2rem;
    }
}

/* Оптимизация для Retina-экранов */
@media (-webkit-min-device-pixel-ratio: 2), 
       (min-resolution: 192dpi), 
       (min-resolution: 2dppx) {
    .hero-banner {
        image-rendering: crisp-edges;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Фикс для мобильного меню Bootstrap */
.navbar-collapse {
    transition: height 0.3s ease;
}

/* Стили для разных карточек */
.website-card:nth-child(1):hover::before {
    background: linear-gradient(to right, #3498db, #2980b9);
}

.website-card:nth-child(2):hover::before {
    background: linear-gradient(to right, #e74c3c, #c0392b);
}

.website-card:nth-child(3):hover::before {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

/* Эффект наведения */
button:hover,
a:hover,
.card:hover,
.nav-link:hover {
    cursor: pointer;
}

/* Стили для состояний загрузки */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Улучшения для форм */
.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* Стили для выделенного текста */
::selection {
    background-color: rgba(52, 152, 219, 0.3);
    color: #2c3e50;
}

::-moz-selection {
    background-color: rgba(52, 152, 219, 0.3);
    color: #2c3e50;
}

/* Улучшения для иконок */
.fas, .fab {
    transition: transform 0.3s ease;
}

.nav-link:hover .fas,
.btn:hover .fas,
.btn:hover .fab {
    transform: scale(1.1);
}

/* Стили для разделителей */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
    margin: 40px 0;
}

/* Утилитарные классы */
.text-gradient {
    background: linear-gradient(45deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.shadow-medium {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.shadow-strong {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

.rounded-xl {
    border-radius: 20px !important;
}

/* Оптимизация изображений */
.optimized-image {
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Класс для высококонтрастного текста */
.text-on-image {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    font-weight: 600;
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ УЛУЧШЕННОГО ДИЗАЙНА ===== */

/* Улучшенные стили для "О нашем проекте" */
.lead-text p.lead {
    line-height: 1.8;
    font-weight: 300;
}

.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-color: #3498db;
}

/* Призыв к действию */
.call-to-action {
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.animated-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.arrow-down {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Улучшенные карточки проектов */
.website-card.premium {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.website-card.premium:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.card-badge .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.website-card.premium:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.website-card.premium:hover .image-overlay i {
    transform: scale(1);
}

/* Новые стили для контента карточек */
.website-card.premium .card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.website-card.premium .card-icon {
    color: #3498db;
    margin-bottom: 15px;
    text-align: center;
}

.website-card.premium .card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.website-card.premium .card-text {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
}

.website-card.premium .card-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto;
    text-align: center;
}

/* Преимущества */
.benefit-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    width: 100%;
    box-sizing: border-box;
}

.benefit-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.benefit-icon .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* CTA карточка */
.cta-card {
    position: relative;
    overflow: hidden;
    padding: 40px 30px;
    border-radius: 20px;
    color: white;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-card > * {
    position: relative;
    z-index: 2;
}

.cta-card .opacity-75,
.cta-card .opacity-90 {
    opacity: 0.9;
}

.cta-card .btn-light {
    background: white;
    color: #3498db;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-card .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* Общие улучшения */
.display-5 {
    font-size: 2.5rem;
    font-weight: 700;
}

.display-6 {
    font-size: 2rem;
    font-weight: 700;
}

.fs-4 {
    font-size: 1.5rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.rounded-4 {
    border-radius: 20px !important;
}

/* Градиентные фоны */
.bg-gradient-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Текстовые утилиты */
.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.9;
}

/* Отступы */
.g-4 {
    gap: 1.5rem !important;
}

/* Центрирование текста */
.text-center {
    text-align: center !important;
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ СЕТКИ КАРТОЧЕК ===== */

/* Исправление сетки Bootstrap для карточек */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6, .col-lg-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* На мобильных (≤767px) - 1 карточка в ряд */
@media (max-width: 767px) {
    .col-md-6, .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .website-card.premium {
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

/* На планшетах (≥768px) - 2 карточки в ряд */
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .website-card.premium {
        height: 100%;
    }
}

/* На десктопах (≥992px) - 3 карточки в ряд */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Гарантия одинаковой высоты карточек в строке */
.row {
    align-items: stretch;
}

/* Исправление для карточек преимуществ */
@media (min-width: 768px) {
    .benefit-card {
        height: 100%;
    }
}

/* Улучшение отступов внутри карточек */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Исправление высоты карточек */
.website-card.premium.h-100 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Улучшение изображений в карточках */
@media (min-width: 768px) {
    .svg-placeholder {
        height: 180px;
    }
}

@media (min-width: 992px) {
    .svg-placeholder {
        height: 200px;
    }
}

/* Исправление для мобильных устройств */
@media (max-width: 767px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-md-6, .col-lg-4 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Улучшение для очень больших экранов */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Адаптивность для новых стилей */
@media (max-width: 768px) {
    .call-to-action {
        padding: 20px;
        max-width: 500px;
    }
    
    .cta-card {
        padding: 30px 20px !important;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .website-card.premium .card-content {
        padding: 20px 15px;
    }
    
    .website-card.premium .card-title {
        font-size: 1.5rem;
    }
    
    .display-5, .display-6 {
        font-size: 1.8rem;
    }
    
    .fs-4 {
        font-size: 1.3rem !important;
    }
    
    .feature-card {
        padding: 20px !important;
        max-width: 500px;
        margin: 0 auto 15px;
    }
    
    .benefit-card {
        padding: 20px !important;
        max-width: 500px;
        margin: 0 auto 15px;
    }
    
    .svg-placeholder {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .display-5, .display-6 {
        font-size: 1.6rem;
    }
    
    .h1 {
        font-size: 2rem !important;
    }
    
    .h2 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .cta-card {
        padding: 25px 15px !important;
        max-width: 100%;
    }
    
    .website-card.premium {
        min-height: 420px;
        max-width: 100%;
    }
    
    .svg-placeholder {
        height: 150px;
    }
    
    .benefit-card {
        padding: 15px !important;
    }
    
    .call-to-action {
        padding: 15px !important;
        max-width: 100%;
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ БЛОКОВ В ОДНУ СТРОКУ ===== */

/* Для блока "О нашем проекте" - карточки в одну строку */
.row.justify-content-center .col-md-6.col-lg-5 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .row.justify-content-center .col-md-6.col-lg-5 {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (min-width: 992px) {
    .row.justify-content-center .col-md-6.col-lg-5 {
        flex: 0 0 45%;
        max-width: 45%;
    }
}

/* Для преимуществ - 3 карточки в одну строку */
.bg-gradient-primary .row.justify-content-center .col-md-6.col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .bg-gradient-primary .row.justify-content-center .col-md-6.col-lg-4 {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (min-width: 992px) {
    .bg-gradient-primary .row.justify-content-center .col-md-6.col-lg-4 {
        flex: 0 0 31%;
        max-width: 31%;
        margin: 0 1%;
    }
}

/* Гарантия, что карточки одинаковой высоты */
.feature-card,
.benefit-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card p,
.benefit-card p {
    flex: 1;
}

/* Центрирование контента в карточках */
.feature-card .d-flex,
.benefit-card .text-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .feature-card .d-flex {
        flex-direction: row;
        text-align: left;
    }
}

/* Исправление отступов между карточками */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Гарантия, что все блоки выровнены */
.row.justify-content-center {
    align-items: stretch;
}

/* Для очень узких экранов */
@media (max-width: 400px) {
    .row.justify-content-center .col-md-6.col-lg-5,
    .bg-gradient-primary .row.justify-content-center .col-md-6.col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Исправление для карточек преимуществ на мобильных */
@media (max-width: 767px) {
    .benefit-card {
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

/* Исправление для feature-карточек на мобильных */
@media (max-width: 767px) {
    .feature-card {
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

/* Гарантия, что иконки и текст выровнены */
.feature-card .d-flex {
    margin-bottom: 15px;
}

.benefit-card .benefit-icon {
    margin-bottom: 20px;
}

/* Улучшение читаемости текста */
.feature-card p,
.benefit-card p {
    line-height: 1.6;
    font-size: 1rem;
}

/* Отступы внутри карточках */
.feature-card,
.benefit-card {
    padding: 25px;
}

@media (max-width: 768px) {
    .feature-card,
    .benefit-card {
        padding: 20px;
    }
}

/* Исправление для маленьких экранов */
@media (max-width: 576px) {
    .feature-card,
    .benefit-card {
        padding: 15px;
    }
    
    .feature-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-card .d-flex .me-3 {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
}

/* Улучшение отображения на десктопах */
@media (min-width: 1200px) {
    .row.justify-content-center .col-md-6.col-lg-5 {
        flex: 0 0 40%;
        max-width: 40%;
        margin: 0 2.5%;
    }
    
    .bg-gradient-primary .row.justify-content-center .col-md-6.col-lg-4 {
        flex: 0 0 30%;
        max-width: 30%;
        margin: 0 1.5%;
    }
}

/* Исправление для карточек проектов на десктопах */
@media (min-width: 992px) {
    .website-card.premium {
        margin: 0 5px;
    }
}