/* WDEV-503: styles for blocks unique to /<lang>/solutions/<slug> direction page.
 * All other blocks reuse existing classes from style.css.
 * Naming follows verstalshchik convention: __element--modifier (BEM-like). */

/* ============ Shared utilities ============ */
.text-white-70 { color: rgba(255, 255, 255, 0.7); }
.text-white { color: #fff; }

/* ============ Trust info wrap (alongside companies swiper) ============ */
.trust__info-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 48px;
    padding: 0 16px;
}
.trust__info-wrap .trust__info-item {
    text-align: center;
}
.trust__info-wrap .trust__info-undertitle {
    color: #86868B;
    font-size: 14px;
    margin-top: 4px;
}

/* ============ Goals (icon + title + text grid) ============ */
.goals-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 32px;
}
.goals__item {
    text-align: left;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.goals__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.goals__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    object-fit: contain;
}
.goals__title {
    font-size: 18px;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 8px;
    line-height: 1.3;
}
.goals__text {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.5;
}
.grey__section .goals__item {
    background: #fff;
}
.bg__black-noise .goals__item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.bg__black-noise .goals__title { color: #fff; }
.bg__black-noise .goals__text { color: rgba(255, 255, 255, 0.75); }

/* ============ Lists block (Списки) — cards with bullet list ============ */
.lists-block__items {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: #4a4a4a;
}
.lists-block__items li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* ============ How We Do (complex tabs with grid 1/2/3 columns) ============ */
.how_we_do_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: none;
    margin-bottom: 24px;
    justify-content: center;
}
.how_we_do_tabs .nav-link {
    background: rgba(0, 0, 0, 0.04);
    color: #1D1D1F;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.how_we_do_tabs .nav-link:hover {
    background: rgba(0, 122, 255, 0.08);
}
.how_we_do_tabs .nav-link.active {
    background: #007AFF;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}
.how_we_do__subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #86868B;
    text-align: center;
    margin-bottom: 24px;
}
.how_we_do__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.how_we_do__col {
    min-width: 0;
}
.how_we_do__col-title {
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 12px 0;
}
.how_we_do__col-text {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
}
.how_we_do__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.how_we_do__links .giper-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
/* No ::after arrow here: global main.js injects <span class="arrow-icon">
   with SVG background — adding a content arrow would render double. */

/* ============ Solutions card (composition block) — extra link list ============ */
.solutions__card-links {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.solutions__card-links .giper-link {
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}
.solutions__card-links .giper-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ============ Approach (tabs with image + text pane) ============ */
.approach__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: none;
    margin-bottom: 24px;
    justify-content: center;
}
.approach__tabs .nav-link {
    background: rgba(0, 0, 0, 0.04);
    color: #1D1D1F;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}
.approach__tabs .nav-link.active {
    background: #007AFF;
    color: #fff;
}
.approach__pane {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.approach__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}
.approach__text h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 12px 0;
}

/* ============ Reviews (testimonials swiper) ============ */
.review-slide {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: auto;
}
.review__text {
    font-size: 16px;
    color: #1D1D1F;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}
.review__name {
    font-size: 15px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0;
}
.review__role {
    font-size: 13px;
    color: #86868B;
    margin: 4px 0 0 0;
}

/* ============ Support block (icon-card + bg dark/grey) ============ */
.support-block-section .support__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.support-block-section .support__card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.support-block-section.bg__black-noise .support__card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.support-block-section.bg__black-noise .support__card .goals__title { color: #fff; }
.support-block-section.bg__black-noise .support__card .goals__text { color: rgba(255, 255, 255, 0.8); }

/* WDEV-526: card body text (.html-style p forces --color-dark) must be light on the dark bg */
.support-block-section.bg__black-noise .support__card .html-style,
.support-block-section.bg__black-noise .support__card .html-style p,
.support-block-section.bg__black-noise .support__card .html-style li {
    color: var(--color-white);
}

/* WDEV-526: card icon — fixed 40×40 square; any uploaded image fills it (object-fit: cover),
   so a non-icon photo no longer stretches the card top */
.support-block-section .support__card .services__card-top img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ============ Popular swiper cards (Популярні послуги та рішення) ============ */
.popular__swiper .popular__card {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.popular__swiper .popular__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.popular__swiper .popular__card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}
.popular__swiper .popular__card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 12px 0;
    line-height: 1.3;
}
.popular__swiper .popular__card .giper-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007AFF;
    font-size: 14px;
    font-weight: 500;
}

/* ============ Events swiper cards ============ */
.events__swiper .events__card {
    display: block;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.events__swiper .events__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.events__swiper .events__card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 8px 0;
}
.events__swiper .events__card time {
    font-size: 13px;
    color: #86868B;
}

/* ============ Mobile / Tablet adaptation ============ */
@media (max-width: 1024px) {
    .how_we_do__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .approach__pane {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .goals-container {
        grid-template-columns: 1fr;
    }
    .trust__info-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .review-slide {
        padding: 20px;
    }
    .support-block-section .support__cards {
        grid-template-columns: 1fr;
    }
}

/* ============ Картка «Виклики»/«Склад рішення» без посилання (WDEV-514, WDEV-517) ============ */
/* Якщо в картці немає URL — рендериться як <div>.no-link: курсор default,
   ховер не спрацьовує (ні підйом картки, ні підкреслення заголовка), стрілки
   знизу немає (.whatdo__item-arrow-wrap не виводиться в шаблоні). */
.cloud__cards .solutions__card.no-link,
.solutions__wrap .solutions__card.no-link {
    cursor: default;
}
.cloud__cards .solutions__card.no-link:hover,
.solutions__wrap .solutions__card.no-link:hover {
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
}
.cloud__cards .solutions__card.no-link:hover .serviceTabs__panel-title::after,
.solutions__wrap .solutions__card.no-link:hover .serviceTabs__panel-title::after {
    width: 150px; /* як у не-ховер стані — підкреслення не «росте» */
}

/* ============ Посилання «Як ми робимо» без URL (WDEV-521) ============ */
/* Якщо в елементі секції посилань URL порожній/'#' — рендериться як <span>.no-link:
   курсор default, ховер не спрацьовує (текст не синіє), стрілки немає. */
.approach-links .giper-link.no-link {
    cursor: default;
}
.approach-links .giper-link.no-link:hover {
    color: var(--color-dark-2) !important;
}
.approach-links .giper-link.no-link::after {
    display: none !important;
}

/* ============ Посилання «Популярні» без URL (WDEV-527) ============ */
.serviceTabs__panel-links .giper-link.no-link {
    cursor: default;
}
.serviceTabs__panel-links .giper-link.no-link:hover {
    color: var(--color-dark-2) !important;
}
.serviceTabs__panel-links .giper-link.no-link::after {
    display: none !important;
}

/* ============ Картка «Моделі» без посилання (WDEV-523) ============ */
.services__cards .topic__card.no-link {
    cursor: default;
}
.services__cards .topic__card.no-link:hover {
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
}
