/* Основные настройки */
* {
    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: 'Roboto', 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;
}

code, pre {
    font-family: 'Source Code Pro', monospace;
}

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

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

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

.main-header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

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

.brand-name {
    background: linear-gradient(45deg, #00b4db, #0083b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    color: #00b4db;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00b4db !important;
    background-color: rgba(0, 180, 219, 0.1);
}

.nav-link.active {
    color: #00b4db !important;
    font-weight: 600;
    background-color: rgba(0, 180, 219, 0.15);
}

/* Герой-баннер */
.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;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-banner-fallback {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%) !important;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.banner-title {
    font-size: 4rem;
    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;
}

.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);
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-actions .btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    margin: 5px;
    font-size: 1.1rem;
}

/* Анимации */
@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; 
    }
}

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

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

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

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

/* Секции */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
}

/* Карточки сайтов */
.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%;
}

/* Стили для премиум карточек */
.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%;
}

.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%;
}

/* Стили для картинок-заглушек */
.card-image-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

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

.card-image-placeholder i {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

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

.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;
}

/* Feature карточки */
.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;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.feature-card p {
    flex: 1;
}

/* Benefit карточки */
.benefit-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.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, #1a2980 0%, #26d0ce 100%);
    box-shadow: 0 20px 40px rgba(26, 41, 128, 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 .btn-light {
    background: white;
    color: #1a2980;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

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

/* Призыв к действию */
.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;
}

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

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

/* Подвал */
footer {
    background: #1a1a2e;
    color: white;
    padding: 30px 0 15px;
    margin-top: auto;
}

footer a {
    color: #00b4db;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #0083b0;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-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.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #00b4db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 180, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* Модальные окна */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: none;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: none;
    padding: 20px 30px;
    background: #f8f9fa;
}

/* Анимация для элементов при скролле */
.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);
}

/* Утилитарные классы */
.display-6 {
    font-size: 2rem;
    font-weight: 700;
}

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

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

.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.90;
}

.h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.h2 {
    font-size: 2rem;
    font-weight: 600;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    color: #555;
    line-height: 1.6;
}

/* Divider */
.divider {
    height: 4px;
    background: linear-gradient(to right, #3498db, #9b59b6);
    border-radius: 2px;
    margin: 20px auto;
}

/* Кнопки */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-info {
    background: linear-gradient(45deg, #3498db, #2c3e50);
    border: none;
}

.btn-info:hover {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #495057, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-light {
    background: white;
    color: #2c3e50;
    border: none;
}

.btn-light:hover {
    background: #f8f9fa;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* Формы */
.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;
}

.form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

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

.form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

/* Списки */
.list-group-item {
    border: none;
    padding: 12px 15px;
    margin-bottom: 5px;
    background: #f8f9fa;
    border-radius: 8px !important;
}

.list-group-item:hover {
    background: #e9ecef;
}

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

/* Выделение текста */
::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, .far {
    transition: transform 0.3s ease;
}

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

/* Утилитарные классы для теней */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

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

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

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

/* Класс для загрузки */
.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;
}

/* Адаптивность */
@media (max-width: 992px) {
    .banner-title {
        font-size: 3rem;
    }
    
    .banner-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-banner {
        padding: 80px 0;
        min-height: 60vh;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .display-6 {
        font-size: 1.8rem;
    }
    
    .h1 {
        font-size: 2.2rem;
    }
    
    .h2 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-banner {
        padding: 60px 0;
        min-height: 50vh;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .display-6 {
        font-size: 1.6rem;
    }
    
    .h1 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.6rem;
    }
    
    .feature-card,
    .benefit-card {
        padding: 20px;
    }
    
    .website-card.premium .card-content {
        padding: 20px;
    }
    
    .website-card.premium .card-title {
        font-size: 1.4rem;
    }
    
    .cta-card {
        padding: 30px 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-banner {
        padding: 40px 0;
        min-height: 40vh;
    }
    
    .hero-actions .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .display-6 {
        font-size: 1.4rem;
    }
    
    .h1 {
        font-size: 1.8rem;
    }
    
    .h2 {
        font-size: 1.4rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .feature-card,
    .benefit-card {
        padding: 15px;
    }
    
    .website-card.premium .card-content {
        padding: 15px;
    }
    
    .website-card.premium .card-title {
        font-size: 1.3rem;
    }
    
    .card-image-placeholder {
        height: 180px;
    }
    
    .card-image-placeholder i {
        font-size: 4rem;
    }
    
    .cta-card {
        padding: 25px 15px;
    }
    
    .call-to-action {
        padding: 20px;
    }
    
    footer {
        padding: 20px 0 10px;
    }
}

/* Для очень больших экранов */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-banner {
        min-height: 80vh;
    }
    
    .banner-title {
        font-size: 4.5rem;
    }
    
    .banner-subtitle {
        font-size: 2rem;
    }
}

/* Сетка карточек */
.row.justify-content-center {
    align-items: stretch;
}

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

/* Исправление для мобильных устройств */
@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;
    }
    
    .website-card.premium {
        margin-bottom: 20px;
    }
}

/* Для блоков в одну строку */
.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 .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;
    }
}

/* Исправление для маленьких экранов */
@media (max-width: 576px) {
    .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;
    }
}

/* Стили для кода */
.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block .keyword {
    color: #ff79c6;
}

.code-block .function {
    color: #50fa7b;
}

.code-block .string {
    color: #f1fa8c;
}

.code-block .comment {
    color: #6272a4;
}

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

/* Отступы между элементами */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

/* Flex utilities */
.d-flex {
    display: flex !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

/* Ширины */
.w-100 {
    width: 100% !important;
}

/* Позиционирование */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

/* Цвета текста */
.text-primary {
    color: #3498db !important;
}

.text-success {
    color: #2ecc71 !important;
}

.text-info {
    color: #3498db !important;
}

.text-warning {
    color: #f39c12 !important;
}

.text-danger {
    color: #e74c3c !important;
}

.text-secondary {
    color: #95a5a6 !important;
}

.text-muted {
    color: #7f8c8d !important;
}

.text-white {
    color: white !important;
}

/* Фоны */
.bg-primary {
    background-color: #3498db !important;
}

.bg-success {
    background-color: #2ecc71 !important;
}

.bg-info {
    background-color: #3498db !important;
}

.bg-warning {
    background-color: #f39c12 !important;
}

.bg-danger {
    background-color: #e74c3c !important;
}

.bg-secondary {
    background-color: #95a5a6 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-dark {
    background-color: #343a40 !important;
}

/* Отступы */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Отступы для контейнера */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Улучшенные медиа-запросы для сетки */
@media (max-width: 767px) {
    .col-md-6, .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Анимация появления карточек при загрузке */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.website-card.premium {
    animation: cardAppear 0.6s ease forwards;
}

.website-card.premium:nth-child(1) { animation-delay: 0.1s; }
.website-card.premium:nth-child(2) { animation-delay: 0.2s; }
.website-card.premium:nth-child(3) { animation-delay: 0.3s; }
.website-card.premium:nth-child(4) { animation-delay: 0.4s; }
.website-card.premium:nth-child(5) { animation-delay: 0.5s; }
.website-card.premium:nth-child(6) { animation-delay: 0.6s; }

/* Эффект параллакса для баннера */
@media (min-width: 768px) {
    .hero-banner {
        background-attachment: fixed !important;
    }
}

/* Оптимизация для 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;
    }
}

/* Улучшение для печати */
@media print {
    .hero-banner,
    .call-to-action,
    .cta-card,
    .navbar,
    footer {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .website-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a2e;
        color: #e0e0e0;
    }
    
    .feature-card,
    .website-card.premium {
        background-color: #2c3e50;
        color: #e0e0e0;
    }
    
    .feature-card p,
    .website-card.premium .card-text {
        color: #bdc3c7;
    }
    
    .call-to-action {
        background-color: #2c3e50;
    }
}