<style>
:root {
    --primary: #007bff;
    --primary-dark: #0069d9;
    --secondary: #6c757d;
    --dark: #343a40;
    --light: #f8f9fa;
    --accent: #ffaa00;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Навигация */
.navbar {
    transition: all 0.3s ease;
    padding: 0.8rem 1rem;
    background-color: var(--dark) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px;
}

/* Стили для бейджа скидки */
.discount-badge {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    border-radius: 20px;
    padding: 5px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.discount-text {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

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

/* Герой-баннер */
.hero-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #4b6cb7 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxMCIgY3k9IjEwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjEiLz48Y2lyY2xlIGN4PSIzMCIgY3k9IjEwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjEiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjEwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjEiLz48Y2lyY2xlIGN4PSIxMCIgY3k9IjMwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjEiLz48Y2lyY2xlIGN4PSIzMCIgY3k9IjMwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjEiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjMwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjEiLz48Y2lyY2xlIGN4PSIxMCIgY3k9IjUwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjEiLz48Y2lyY2xlIGN4PSIzMCIgY3k9IjUwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjEiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjEiLz48L3N2Zz4=') center/cover;
    opacity: 0.05;
}

.hero-banner h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-banner .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Тарифные категории */
/* Базовые стили (для всех устройств) */
.tariff-categories {
    background: linear-gradient(135deg, #2c3e50 0%, #4b6cb7 100%);
    color: white;
    padding: 3.5rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tariff-categories h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tariff-categories .lead {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 2;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    white-space: nowrap;
}

/* Адаптация под разные устройства */

/* ? Телефоны (вертикальные, до 576px) */
@media (max-width: 575.98px) {
    .tariff-categories {
        padding: 0.5rem 0;
    }
    
    .tariff-categories h1 {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .tariff-categories .lead {
    }
    
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.3rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .nav-tabs .fas {
        display: none; /* Скрываем иконки */
    }
}

/* ? Планшеты (вертикальные, 576px — 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .tariff-categories h1 {
        font-size: 1.4rem;
    }
    
    .tariff-categories .lead {
        font-size: 0.95rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.85rem;
    }
}

/* ? Планшеты (горизонтальные) и ноутбуки (768px — 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .tariff-categories h1 {
        font-size: 1.0rem;
    }
}

/* ? Ноутбуки (992px — 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .tariff-categories h1 {
        font-size: 1.8rem;
    }
}

/* ? Большие экраны (от 1200px) */
@media (min-width: 1200px) {
    .tariff-categories h1 {
        font-size: 2rem;
    }
    
    .tariff-categories .lead {
        font-size: 1.2rem;
    }
}



/* Особенности */
.features-section {
    padding: 4rem 0;
}

.feature-box {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    margin-bottom: 1.5rem;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Карточки тарифов */
.card-title-wrapper {
    margin-bottom: 20px !important;
}

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

.card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.card-title {
    font-size: 1.5em !important;
    font-weight: bold !important;
    color: #1a1a1a !important;
    text-align: center !important;
    padding-bottom: 5px !important;
    border-bottom: 1px solid #1a1a1a !important;
    display: inline-block !important;
}

.card-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between; /* Дает равномерное распределение */
    align-items: center !important;
    text-align: center !important;
    padding: 2rem !important;
    height: 100%; /* Обеспечивает равномерное распределение по высоте */
}

.card-content {
    flex-grow: 1; /* Расширяет содержимое, оставляя место для кнопки внизу */
    width: 100%; /* Полная ширина для равномерного отображения */
}

/* Карточки игр */
.games-section {
    padding: 4rem 0;
}

.game-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

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

.game-card img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.game-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.game-card .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.game-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Подвал */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-section h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

.email-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.email-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-section {
        min-width: 100%;
    }
}

/* Кнопки */
.btn {
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.25rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Разное */
.section-title {
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

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

.animate-fadein {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    z-index: 99;
    border: none;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-banner {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-banner h1 {
        font-size: 2.2rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }
}

/* Стили для блока скидки */
/* Общие стили для цен */
.price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Стиль для обычной цены (для авторизованных) */
.price.regular-price {
  color: #3498db;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.3rem 0;
}

/* Стили для цен со скидкой (модернизированные) */
.price-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0.5rem 0;
}

.price-with-discount {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.original-price {
  text-decoration: line-through;
  color: #95a5a6;
  font-size: 0.95rem;
  opacity: 0.9;
}

.discounted-price {
  color: #e74c3c;
  font-weight: 700;
  font-size: 1.2rem;
}

.price-saving {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.price-saving i {
  margin-right: 0.3rem;
  font-size: 0.7rem;
}

/* Адаптация для мобильных */
@media (max-width: 576px) {
  .price {
    font-size: 1rem;
  }
  
  .price.regular-price {
    font-size: 1.1rem;
  }
  
  .original-price {
    font-size: 0.85rem;
  }
  
  .discounted-price {
    font-size: 1.1rem;
  }
  
  .price-saving {
    font-size: 0.75rem;
  }
}

</style>