.main-container {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    width: 100%;
    user-select: none;
    gap: 0;
    margin-top: 56px;
    margin-bottom: 40px;
}

.main-page-logo {
  width: 30vh;
}

/* Переопределение для ПК */
@media (min-width: 768px) {
  .main-page-logo {
      width: 15vw;
  }
}

.content-block {
    
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    container-type: inline-size;
}

.title-container {
    display: flex;
    flex-direction: column;
    width: 100%; /* Контейнер растянут на всю ширину родителя */
    max-width: 800px; /* Ваш лимит */
}

.content-block {
    width: 100%;
    max-width: 800px;
    /* Обязательное условие для работы cqi */
    container-type: inline-size; 
    box-sizing: border-box;
    /* Защита от появления горизонтального скролла */
    overflow: hidden; 
}

.title-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Центрирует текст внутри блока */
    align-items: center; 
}

.title-main p {
    margin: 0;
    /* Аналог text-wrap: unset; запрещает перенос */
    white-space: nowrap; 
    font-weight: 900;
    line-height: 1;
}

/* Точные значения из вашего кода NiceGUI */
.line-1 {
    font-size: 7.4cqi;
    letter-spacing: 0.1em;
}

.line-2 {
    font-size: 11.5cqi;
}

.title-sub {
    line-height: 1;
    font-size: 12vw;
}

.description {
    font-size: 4.2cqi;
    padding-top: 20px;
    color: #d1d5db;
    text-align: center;
    max-width: 600px;
    align-items: center;
    margin-bottom: 10px;
}

.legal-notice {
    font-size: 10px;
    opacity: 0.5;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 90%;
    max-width: 300px;
    margin-top: 24px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 90%;
    max-width: 300px;
    margin-top: 24px;
}

.button-container .btn {
    width: 100%;
    height: 50px;
}

.support-link {
    color: #fff;
    display: block;
    text-decoration: none;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px; /* Расстояние между кнопками */
    width: 40vh;
    max-width: 320px; /* Ограничиваем ширину кнопок */
    margin: 30px auto; /* Центрируем блок */
}


/* ================= О нас / услуги / контакты ================= */
.section-title {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
    margin-top: 15px;
    text-align: center;
    letter-spacing: 0.05em;
}

.section-text {
    font-size: 15px;
    line-height: 1.6;
    color: #9ab3c6;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 10px auto;
}

.contacts-section {
    margin-top: 40px;
    width: 85vw;
    box-sizing: border-box;
}

.services-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 40px;
}

.service-block {
    width: 100%;
    box-sizing: border-box;
    padding: 40px max(24px, 8vw);
    text-align: start;
    border-top: 1px solid rgba(144, 143, 160, 0.1);
    transition: background-color 0.3s ease;

    /* Начальное состояние для анимации появления */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, background-color 0.3s ease;
}

.service-block:last-child {
    border-bottom: 1px solid rgba(144, 143, 160, 0.1);
}

.service-block:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.service-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-title {
    color: #ffffff;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 12px auto;
}

.service-text {
    color: #9ab3c6;
    font-size: 15px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* ================= Мини-карточки преимуществ внутри блока услуги ================= */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 800px;
    margin: 24px auto 0 auto;
}

@media (max-width: 600px) {
    .mini-grid {
        grid-template-columns: 1fr;
    }
}

.mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(144, 143, 160, 0.08);
    border-radius: var(--r);
    padding: 16px 18px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mini-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(154, 179, 198, 0.4);
}

.mini-title {
    color: #ffffff;
    font-size: 15px;
    margin: 0 0 6px 0;
}

.mini-text {
    color: #9ab3c6;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ================= Тарифы ================= */
.pricing-section {
    margin-top: 40px;
    width: 85vw;
    box-sizing: border-box;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(154, 179, 198, 0.3);
    border-radius: var(--r);
    padding: 32px 24px;
    max-width: 340px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, border-color 0.3s ease;
}

.pricing-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    border-color: rgba(154, 179, 198, 0.7);
}

.price-value {
    color: #ffffff;
    font-size: 40px;
}

.price-period {
    color: #9ab3c6;
    font-size: 16px;
}

.price-subtitle {
    color: #9ab3c6;
    font-size: 14px;
    margin: 6px 0 0 0;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: start;
}

.price-features li {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #9ab3c6;
}

.pricing-card .btn {
    width: 100%;
}

.contacts-section .contacts-link {
    color: #fff;
    text-decoration: none;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}

.contacts-section .contacts-link:hover {
    color: #9ab3c6;
}