/* webroot/css/home.css */

/* --- Hero Section Overrides --- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    min-height: 700px;
    display: flex;
    align-items: center;
}

/* --- Tariff Blocks (Top Section) --- */
.top-section-home .top-section-bottom {
    margin-block-start: -135px;
    padding-top: 0;
    padding-bottom: 30px;
}
.top-section-home h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 500;
}
.top-section-bottom .row {
    margin: 0 -5px;
}

.top-section-bottom .row > * {
    padding: 0 5px;
}

.tariff-block {
    background: #FFF;
    box-shadow: 0 4px 10px rgba(5, 13, 17, 0.13);
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tariff-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(5, 13, 17, 0.18);
}

.tariff-block-top {
    padding: 20px 20px 0;
}

.tariff-block-top h3 {
    font-weight: 600;
    font-size: 1.4rem;
    color: #19222C;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.tariff-block-top p {
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    color: #656565;
    margin-bottom: 20px;
}

p.p-tm {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    display: flex;
    align-items: center;
    color: #656565;
    margin-left: 0;
}

.p-tm img {
    margin-right: 14px;
    display: inline-block;
    width: 14px;
    height: 14px;
}

.tariff-block-bottom {
    padding: 17px 16px;
}

.tariff-block-bottom p {
    font-weight: 800;
    font-size: 24px;
    line-height: 32px;
    color: #018FE0;
    margin-bottom: 15px;
}

.tariff-other .tariff-block-bottom {
    padding-bottom: 0;
}

.tariff-other {
    background: linear-gradient(179.29deg, #D6E3EC 30.13%, #FFFFFF 71.28%);
}

.green-button-tm, 
.blu-button-tm {
    font-weight: bold;
    font-size: 16px;
    line-height: 160%;
    text-align: center;
    text-transform: uppercase;
    background: #00A2FF;
    border-radius: 8px;
    color: #FFF;
    padding: 15px;
    width: 100%;
    border: 0;
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.green-button-tm:hover, 
.blu-button-tm:hover {
    opacity: 0.9;
    color: #fff;
}

.green-button-tm {
    background: #13D2A5;
}

.tariff-block-bottom .green {
    color: #13D2A5 !important;
}

/* --- Clients Section --- */
.clients-section {
    padding: 80px 0;
    background: #f0f3f5;
}

.clients-lead {
    max-width: 820px;
    margin: 0 auto 35px;
    color: #4d5967;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 45px;
}

.client-card {
    display: flex;
    min-height: 210px;
    padding: 24px 18px;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #dce4ea;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(28, 47, 64, 0.06);
}

.client-logo {
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.client-logo img {
    display: block;
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.client-card p {
    margin: 0;
    color: #4d5967;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.client-card strong {
    display: block;
    margin-top: 4px;
    color: #202b36;
    font-size: 16px;
}

.clients-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 26px;
    gap: 20px;
    background: #003e69;
    border-radius: 8px;
}

.clients-summary-item {
    color: #fff;
    text-align: center;
}

.clients-summary-item strong {
    display: block;
    margin-bottom: 4px;
    color: #6de0b4;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
}

.clients-summary-item span {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.35;
}

.clients-cta {
    padding-top: 35px;
    text-align: center;
}

.clients-note {
    max-width: 800px;
    margin: 30px auto 0;
    color: #73808d;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* --- Responsive Clients --- */
@media (max-width: 1199px) {
    .clients-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .clients-section {
        padding: 55px 0;
    }
    .clients-lead {
        font-size: 16px;
    }
    .clients-grid,
    .clients-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .client-card {
        min-height: 185px;
    }
}

@media (max-width: 440px) {
    .clients-grid,
    .clients-summary {
        grid-template-columns: 1fr;
    }
}

/* webroot/css/home.css */

/* --- Общие стили для карточек услуг (Тарифы, Remote Hands, Docs) --- */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f2f5;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 162, 255, 0.15); /* Легкое синее свечение */
    border-color: #e1e8ed;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-card p, .service-card li {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-card ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 20px;
}

.service-card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

/* Кастомная галочка для списков */
.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #00A2FF; /* Фирменный синий */
    border-radius: 50%;
}

/* Ссылка-кнопка внутри карточки */
.card-link {
    margin-top: auto; /* Прижимает кнопку к низу */
    color: #00A2FF;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.card-link:hover {
    gap: 10px;
    color: #0088cc;
}

/* --- Специфика для блока "Все тарифы" (CTA Card) --- */
.cta-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px dashed #cbd5e1;
}

.cta-card:hover {
    border-color: #00A2FF;
    background: #fff;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* --- Блок Speedtest --- */
.speedtest-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.btn-speedtest {
    background: #00A2FF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-speedtest:hover {
    background: #0088cc;
    color: white;
}

/* --- Блок документов (Grid) --- */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.doc-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: all 0.2s;
    display: block;
}

.doc-card:hover {
    border-color: #00A2FF;
    box-shadow: 0 4px 12px rgba(0, 162, 255, 0.1);
}

.doc-card strong {
    display: block;
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.doc-card span {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
}