* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: #F3F4F6;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    background-attachment: fixed;
}

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

/* Шапка сайта */
.header-head {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 20px 100px;
    /* background-color: rgba(0, 0, 0, 0.7); */
    backdrop-filter: blur(10px);
    z-index: 1000;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.header-logo-head {
    font-size: 18px;
    font-weight: 300;
    color: #aaa;
}

.header-logo-head span {
    font-size: 18px;
    color: #ff6a00;
}

.nav-head {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-weight: 400;
}

.nav-elem-head {
    color: #aaa;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    /* letter-spacing: 1px; */
}

.nav-elem-head:hover {
    color: #ff6a00;
}

.header-login-head {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-weight: 300;
    font-size: 10px;
}

.header-login-head div {
    padding: 8px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-login-head div:first-child {
    color: #aaa;
    /* border: 1px solid #aaa; */
}

.header-login-head div:last-child {
    background: #ff6a00;
    color: #000;
    font-weight: 600;
}

.header-login-head div:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.9);
    /* border: 5px solid #ff6a00; */
}

.mobile-menu-btn-head {
    display: none;
}


/* Основной контент */
.pricing-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.background-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 9100;
    color: rgba(255, 106, 0, 0.911);
    z-index: 1;
    user-select: none;
    white-space: nowrap;
}

.tariffs-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0px 5% 80px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.tariff-card {
    width: 100%;
    background: rgba(75, 75, 75, 0.148);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tariffs-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px 80px;
    margin: 0 auto;
    box-sizing: border-box; /* Важно! */
    overflow-x: auto; /* Добавляет скролл при переполнении */
    scrollbar-width: none; /* Скрыть скроллбар в Firefox */
    -ms-overflow-style: none; /* Скрыть скроллбар в IE */
  }

  .tariffs-container::-webkit-scrollbar {
    display: none; /* Скрыть скроллбар в Chrome/Safari */
  }

.tariff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 106, 0, 0.2);
}

.tariff-card-highlighted {
    width: 100%;
    background: linear-gradient(0deg, transparent, rgba(255, 106, 0, 0.140), transparent);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tariff-card-highlighted:hover {
    /* transform: translateY(-10px); */
    /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 106, 0, 0.2); */
}

.tariff-name {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.tariff-price-month {
    font-size: 22px;
    font-weight: 700;
    color: #ff6a00;
    margin-bottom: 5px;
}

.tariff-price-year {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.tariff-features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.tariff-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    font-size: 12px;
}

.tariff-features li:before {
    content: "✓";
    color: var(--accent-primary);
    font-size: 12px;
    margin-right: 12px;
    font-weight: bold;
}

.tariff-features li.highlighted:before {
    color: #ff6a00;
    font-size: 12px;
    transform: scale(1.4);
    display: inline-block;
    margin-right: 10px;
}

.tariff-buy-button {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #ff6a00;
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.tariff-buy-button:hover {
    color: white;
    border-color: #ff6a00;
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.3);
}

/* Анимация появления при скролле */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tariff-card {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.tariff-card:nth-child(1) {
    animation-delay: 0.2s;
}

.tariff-card:nth-child(2) {
    animation-delay: 0.4s;
}

.tariff-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Адаптивность */
@media (max-width: 1100px) {
    .tariffs-container {
        flex-wrap: wrap;
        max-width: 800px;
    }
    
    .tariff-card {
        min-width: calc(50% - 20px);
        max-width: none;
    }
}

@media (max-width: 768px) {
    .tariffs-container {
        flex-direction: column;
        align-items: center;
    }
    
    .tariff-card {
        min-width: 100%;
        max-width: 400px;
    }
    
    .nav-head, .header-login-head {
        display: none;
    }
    
    .mobile-menu-btn-head {
        display: block;
    }
    
    .background-title {
        font-size: 30vw;
    }
}

/* Footer */
.footer {
    padding: 50px 0 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer p {
    margin-bottom: 10px;
}

.tariff-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    width: 100%;
}

.period-select {
    flex: 1;
    padding: 8px 15px;
    background: rgba(49, 49, 49, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    /* background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e"); */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    /* padding-right: 30px; */
}

.period-select:hover {
    border-color: #ff6a00;
}

.buy-button {
    padding: 8px 45px;
    background: transparent;
    border: 1px solid #ff6a00;
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.buy-button:hover {
    color: white;
    border-color: #ff6a00;
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.3);
}

/* Добавьте эти стили в ваш CSS */
.tariff-info-note {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto 0;
    border-radius: 15px;
    font-size: 12px;
    line-height: 1.6;
    animation: fadeIn 0.8s ease-out;
    text-align: justify;
}

.tariff-info-note p {
    margin: 0;
}

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

/* Для мобильной версии */
@media (max-width: 768px) {
    .tariff-info-note {
        padding: 15px;
        font-size: 14px;
    }
}

/* Добавляем класс tariff-card-highlighted к правилам анимации */
.tariff-card, .tariff-card-highlighted {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

/* Заменяем селекторы для задержек анимации */
.tariffs-container > div:nth-child(1) {
    animation-delay: 0.2s;
}

.tariffs-container > div:nth-child(2) {
    animation-delay: 0.4s;
}

.tariffs-container > div:nth-child(3) {
    animation-delay: 0.6s;
}