/* Стилі компонентів теми AltaMedical */

/* Слайдер */
.slider {
    position: relative;
    overflow: hidden;
}

.slider-item {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
}

.slider-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Послуги */
.services-grid {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.service-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.service-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.service-icon {
    display: block;
    margin-bottom: 18px;
    text-align: center;
}

.service-icon img {
    max-width: 90px;
    height: auto;
    display: block;
    margin: 0 auto 18px auto;
}

.service-link-no-outline:focus {
    outline: none;
    box-shadow: none;
}

/* Новини */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.news-title {
    color: #222;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-align: center;
}

.news-title span {
    color: #24B4E3;
    font-weight: 700;
}

.news-title-underline {
    width: 80px;
    height: 4px;
    background: #24B4E3;
    border-radius: 2px;
    margin: 0.5rem auto 1.5rem auto;
}

.news-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.news-excerpt {
    color: #6c757d;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-title {
    color: #222;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Спеціалісти */
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.specialist-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.specialist-image {
    width: 200px;
    height: 200px;
    margin: 1.5rem auto;
    object-fit: cover;
}

.specialist-content {
    padding: 0 1.5rem 1.5rem;
}

.specialist-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.specialist-position {
    color: #6c757d;
    margin-bottom: 1rem;
}

.specialist-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Відгуки */
.reviews-slider.swiper-container {
    padding: 0 0 40px 0;
    max-width: 1200px;
    margin: 0 auto 32px auto;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto;
    width: 100%;
}

.review-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px 32px 36px;
    margin: 0 16px;
    box-shadow: 0 4px 32px rgba(36, 180, 227, 0.07);
    border: 1.5px solid #f2f2f2;
    width: 100%;
    max-width: 540px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: 0 8px 40px rgba(36, 180, 227, 0.13);
}

.review-quote-icon {
    margin-bottom: 18px;
}

.review-quote-icon svg,
.review-quote-icon img {
    width: 56px;
    height: 48px;
    color: #24B4E3;
    display: block;
}

.review-text {
    font-size: 1.18rem;
    color: #444;
    margin-bottom: 32px;
    line-height: 1.6;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 18px;
}

.review-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 18px;
    border: 2px solid #f2f2f2;
}

.review-author-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #222;
}

.review-role {
    font-size: 0.98rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.review-role span {
    color: #24B4E3;
    font-weight: 600;
    margin-left: 2px;
}

.reviews-button {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.reviews-button .btn-primary {
    min-width: 220px;
    font-size: 1.1rem;
    padding: 14px 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(36, 180, 227, 0.13);
    background: #24B4E3;
    color: #fff;
    transition: background 0.2s, box-shadow 0.2s;
}

.reviews-button .btn-primary:hover {
    background: #1e9bc9;
    box-shadow: 0 12px 35px rgba(36, 180, 227, 0.18);
}

/* Swiper controls */
.swiper-button-prev.reviews-nav-btn,
.swiper-button-next.reviews-nav-btn {
    color: #24B4E3;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(36,180,227,0.08);
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-prev.reviews-nav-btn {
    left: -32px;
}

.swiper-button-next.reviews-nav-btn {
    right: -32px;
}

.swiper-button-prev.reviews-nav-btn::after,
.swiper-button-next.reviews-nav-btn::after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination.reviews-dots {
    bottom: 0;
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    background: #24B4E3;
    opacity: 0.25;
    width: 12px;
    height: 12px;
    margin: 0 4px !important;
    transition: opacity 0.2s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Додаткові стилі для кращої роботи слайдера */
.swiper-container {
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    transition: transform 0.3s ease;
}

/* Стилі для мобільних пристроїв */
@media (max-width: 1024px) {
    .review-card {
        max-width: 95vw;
        padding: 32px 12px 24px 12px;
    }
    .swiper-button-prev.reviews-nav-btn,
    .swiper-button-next.reviews-nav-btn {
        width: 40px;
        height: 40px;
        left: 0;
        right: 0;
    }
}

@media (max-width: 768px) {
    .reviews-slider.swiper-container {
        padding: 0 0 24px 0;
        margin: 0 auto 20px auto;
    }
    .review-card {
        min-height: 220px;
        margin: 0 4px;
        padding: 22px 6px 16px 6px;
        max-width: 100%;
    }
    .review-quote-icon svg,
    .review-quote-icon img {
        width: 38px;
        height: 32px;
    }
    .review-avatar {
        width: 44px;
        height: 44px;
        margin-right: 10px;
    }
    .reviews-button .btn-primary {
        min-width: 140px;
        font-size: 1rem;
        padding: 10px 0;
    }
    .swiper-button-prev.reviews-nav-btn,
    .swiper-button-next.reviews-nav-btn {
        display: none;
    }
    .swiper-pagination.reviews-dots {
        margin-top: 15px;
    }
    .review-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .review-name {
        font-size: 1rem;
    }
    .review-role {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .reviews-slider.swiper-container {
        padding: 0 0 20px 0;
    }
    .review-card {
        padding: 18px 4px 12px 4px;
        min-height: 200px;
    }
    .review-text {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    .review-quote-icon svg,
    .review-quote-icon img {
        width: 32px;
        height: 28px;
    }
    .review-avatar {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }
    .review-name {
        font-size: 0.95rem;
    }
    .review-role {
        font-size: 0.8rem;
    }
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin: 2rem 0;
}

.faq-accordion {
    max-width: 1100px;
    margin: 0 auto;
}

/* FAQ List (для single-services та інших сторінок) */
.faq-list {
    max-width: 1100px;
    margin: 0 auto;
}

.faq-accordion .faq-item,
.faq-list .faq-item {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(36, 180, 227, 0.10);
    margin-bottom: 22px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-accordion .faq-item.active,
.faq-list .faq-item.active {
    box-shadow: 0 12px 40px rgba(36, 180, 227, 0.18);
}

.faq-accordion .faq-question,
.faq-list .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    padding: 28px 36px;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: background 0.2s;
    width: 100%;
    text-align: left;
    margin: 0;
}

.faq-accordion .faq-question:hover,
.faq-list .faq-question:hover {
    background: rgba(36, 180, 227, 0.05);
}

.faq-accordion .faq-toggle,
.faq-list .faq-toggle {
    font-size: 2.2rem;
    color: #24B4E3;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.faq-accordion .faq-item.active .faq-toggle,
.faq-list .faq-item.active .faq-toggle {
    color: #1e9bc9 !important;
    transform: rotate(180deg) !important;
}

.faq-accordion .faq-answer,
.faq-list .faq-answer {
    background: #f8fafc;
    color: #444;
    font-size: 1.18rem;
    padding: 0 36px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-accordion .faq-item.active .faq-answer,
.faq-list .faq-item.active .faq-answer {
    padding: 18px 36px 24px 36px !important;
    max-height: 500px !important;
    animation: faq-fade-in 0.3s;
}

/* Стилі для неактивних елементів */
.faq-accordion .faq-item:not(.active) .faq-answer,
.faq-list .faq-item:not(.active) .faq-answer {
    padding: 0 36px !important;
    max-height: 0 !important;
}

.faq-accordion .faq-item:not(.active) .faq-toggle,
.faq-list .faq-item:not(.active) .faq-toggle {
    color: #24B4E3 !important;
    transform: rotate(0deg) !important;
}

/* Fallback: перший FAQ елемент активний за замовчуванням */
.faq-accordion .faq-item:first-child:not(.inactive),
.faq-list .faq-item:first-child:not(.inactive) {
    /* Не застосовуємо box-shadow тут, щоб не конфліктувати з .active */
}

.faq-accordion .faq-item:first-child:not(.inactive) .faq-toggle,
.faq-list .faq-item:first-child:not(.inactive) .faq-toggle {
    color: #1e9bc9;
    transform: rotate(180deg);
}

.faq-accordion .faq-item:first-child:not(.inactive) .faq-answer,
.faq-list .faq-item:first-child:not(.inactive) .faq-answer {
    padding: 18px 36px 24px 36px;
    max-height: 500px;
    animation: faq-fade-in 0.3s;
}

@keyframes faq-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FAQ заголовок */
.faq-title {
    text-align: center;
    font-size: 3.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.5rem;
    position: relative;
}

.faq-title-underline {
    width: 80px;
    height: 4px;
    background: #24B4E3;
    border-radius: 2px;
    margin: 0.5rem auto 2rem auto;
    display: block;
}

.faq-title span {
    color: #24B4E3;
    font-weight: 700;
}

/* Мобільні стилі FAQ */
@media (max-width: 768px) {
    .faq-accordion .faq-question,
    .faq-list .faq-question {
        padding: 20px 24px;
        font-size: 1.1rem;
    }
    
    .faq-accordion .faq-toggle,
    .faq-list .faq-toggle {
        width: 30px;
        height: 30px;
        font-size: 1.8rem;
    }
    
    .faq-accordion .faq-answer,
    .faq-list .faq-answer {
        font-size: 1rem;
        padding: 0 24px;
    }
    
    .faq-accordion .faq-item.active .faq-answer,
    .faq-list .faq-item.active .faq-answer {
        padding: 15px 24px 20px 24px;
    }
    
    .faq-title {
        font-size: 2rem;
    }
}

/* Стилі форм перенесено в assets/css/forms.css */

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea.form-control {
    min-height: 150px;
}

/* Карта */
.map-container {
    height: 400px;
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Соціальні мережі */
.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #007bff;
    color: #fff;
}

/* === Заголовок блоку відгуків як у how-we-work === */
.reviews-header {
  text-align: center;
  margin-bottom: 40px;
}
.reviews-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.reviews-title span {
  color: #24B4E3;
  font-weight: 800;
}
.reviews-title-underline {
  width: 80px;
  height: 4px;
  background: #24B4E3;
  border-radius: 2px;
  margin: 0.5rem auto 1.5rem auto;
}
.reviews-subtitle {
  color: #666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 0.5rem auto;
}
@media (max-width: 768px) {
  .reviews-title {
    font-size: 2rem;
  }
  .reviews-title-underline {
    width: 48px;
    height: 3px;
  }
}

/* === Попап для відгуків === */
.review-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.review-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.review-popup-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.review-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.review-popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
}

.review-popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.review-popup-close:hover {
    background: #f8f9fa;
    color: #111;
}

/* Стилі review-form перенесено в assets/css/forms.css */

@media (max-width: 768px) {
    .review-popup-content {
        padding: 24px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .review-popup-header h3 {
        font-size: 1.25rem;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 0;
}
.checkbox-label input[type="checkbox"] {
    margin: 0 8px 0 0;
}

.navbar-nav > li > a {
    font-size: 14px !important;
}

.navbar-nav > li > a:focus, a:focus {
    outline: none;
    box-shadow: none;
}

/* Оновлені універсальні стилі для всіх кнопок */
.btn, .btn-primary, .news-btn {
    display: inline-block;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 42px;
    border-radius: 7px;
    border: none;
    outline: none;
    cursor: pointer;
    background: #24B4E3;
    color: #fff;
    box-shadow: 0 4px 18px rgba(36, 180, 227, 0.10);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover, .btn:focus,
.btn-primary:hover, .btn-primary:focus,
.news-btn:hover, .news-btn:focus {
    background: #1e9bc9;
    color: #fff;
    box-shadow: 0 12px 35px rgba(36, 180, 227, 0.18);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}

.hero-button {
    margin-top: 32px;
    display: flex;
    justify-content: flex-start;
}

.news-btn {
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 7px;
    border: none;
    outline: none;
    cursor: pointer;
    background: #24B4E3;
    color: #fff;
    box-shadow: 0 4px 18px rgba(36, 180, 227, 0.10);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.15s;
}
.news-btn:hover, .news-btn:focus {
    background: #1e9bc9;
    color: #fff;
    box-shadow: 0 12px 35px rgba(36, 180, 227, 0.18);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}

a:hover, a:focus, a:active {
    text-decoration: none;
}

/* === Відео попап === */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.video-modal[style*="display: block"] {
  display: flex !important;
}
.video-modal .video-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  margin: auto;
  padding: 0;
  display: block;
}
.video-modal .video-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.video-modal iframe {
  display: block;
  width: 100%;
  height: 56.25vw;
  max-width: 900px;
  max-height: 90vh;
  min-height: 300px;
  border: none;
  background: #000;
}
@media (max-width: 900px) {
  .video-modal .video-modal-content {
    max-width: 98vw;
  }
  .video-modal iframe {
    max-width: 98vw;
    height: 56.25vw;
    max-height: 60vw;
  }
}
@media (max-width: 600px) {
  .video-modal .video-modal-content {
    border-radius: 0;
  }
  .video-modal iframe {
    max-width: 100vw;
    height: 60vw;
    max-height: 60vw;
    min-height: 180px;
  }
}

/* === About Advantages Block (Переваги) === */
.about-advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-content: center;
    margin: 2.5rem 0 2.5rem 0;
}
@media (max-width: 1200px) {
    .about-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .about-advantages-grid {
        grid-template-columns: 1fr;
    }
}
.about-advantage-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(36, 180, 227, 0.10), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    min-height: 220px;
    position: relative;
    transition: box-shadow 0.2s;
}
.about-advantage-card:hover {
    box-shadow: 0 8px 32px rgba(36, 180, 227, 0.18), 0 3px 12px rgba(0,0,0,0.08);
}
.about-advantage-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}
.about-advantage-icon img,
.about-advantage-icon svg {
    width: 60px;
    height: 60px;
    display: block;
}
.about-advantage-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    border-top: 1px solid #e5e5e5;
    padding-top: 1.2rem;
}
.about-page .about-advantage-title {
    font-size: 16px;
    padding-top: 0;
}

/* --- News Hero Title Custom --- */
.services-hero-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}


/* --- Breadcrumbs (як на methodology) --- */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}
.breadcrumb-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-link:hover {
    color: #24B4E3;
}
.breadcrumb-separator {
    color: #e0e0e0;
    font-size: 1.1em;
}
.breadcrumb-current {
    color: #e0e0e0;
}
@media (max-width: 600px) {
    .services-hero-title {
        font-size: 2.1rem;
    }
    .breadcrumb-nav {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .services-hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
}

@media (max-width: 425px) {
    .services-hero-title {
        font-size: 1.6rem;
        line-height: 1.1;
    }
}

@media (max-width: 375px) {
    .services-hero-title {
        font-size: 1.4rem;
        line-height: 1.0;
    }
}

@media (max-width: 320px) {
    .services-hero-title {
        font-size: 1.2rem;
        line-height: 1.0;
    }
}

@media (max-width: 280px) {
    .services-hero-title {
        font-size: 1.1rem;
        line-height: 0.9;
    }
}

/* Responsive стилі для hero контенту */
@media (max-width: 480px) {
    .services-hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 375px) {
    .services-hero-content {
        padding: 0 10px;
    }
}

@media (max-width: 320px) {
    .services-hero-content {
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.85rem;
    }
    .breadcrumb-current {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
}

@media (max-width: 375px) {
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
    .breadcrumb-current {
        max-width: 150px;
    }
}

/* Responsive стилі для заголовків новин */
@media (max-width: 768px) {
    .news-card-title {
        font-size: 1.125rem; /* 18px */
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .news-card-title {
        font-size: 1rem; /* 16px */
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .news-card-title {
        font-size: 1.5rem; /* 13px */
        line-height: 1.1;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 425px) {
    .news-card-title {
        font-size: 1.5rem; /* 12px */
        line-height: 1.0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 375px) {
    .news-card-title {
        font-size: 1.4rem; /* 11px */
        line-height: 1.0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 320px) {
    .news-card-title {
        font-size: 1.2rem; /* 10px */
        line-height: 1.0;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 280px) {
    .news-card-title {
        font-size: 1rem; /* 9px */
        line-height: 0.9;
        margin-bottom: 0.3rem;
    }
}

/* Стилі для клікабельних посилань заголовків */
.news-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: block;
}

.news-title-link:hover {
    color: #24B4E3;
    text-decoration: none;
} 

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Специфічні стилі для секцій послуг */
    .services-section .services-grid,
    .block-2 .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .services-section .service-card,
    .block-2 .service-card {
        padding: 20px 12px;
    }
    
    .services-section .service-title,
    .block-2 .service-title {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .services-section .service-icon,
    .block-2 .service-icon {
        margin-bottom: 15px;
    }
    
    .services-section .service-icon svg,
    .services-section .service-icon img,
    .block-2 .service-icon svg,
    .block-2 .service-icon img {
        max-width: 45px;
        max-height: 45px;
    }
} 

/* ===== HERO SECTION RESPONSIVE FIXES ===== */
/* Виправлення проблем з обрізанням контенту на різних розширеннях */

.hero-section {
    min-height: 100vh !important; /* Забезпечуємо повну висоту екрана */
    display: flex !important;
    align-items: center !important;
}

.hero-section .container {
    height: auto !important; /* Автоматична висота замість фіксованої */
    min-height: calc(100vh - 90px) !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.hero-content {
    width: 100%;
    max-width: 550px;
    padding: 60px 0 !important; /* Достатній внутрішній відступ */
}

/* Планшети та середні екрани */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-section {
        min-height: 90vh !important;
        padding-top: 100px !important;
    }
    
    .hero-section .container {
        min-height: calc(90vh - 100px) !important;
    }
    
    .hero-content {
        padding: 50px 0 !important;
    }
}

/* Планшети вертикальні */
@media (max-width: 768px) and (min-width: 577px) {
    .hero-section {
        min-height: 85vh !important;
        padding-top: 90px !important;
    }
    
    .hero-section .container {
        min-height: calc(85vh - 90px) !important;
    }
    
    .hero-content {
        padding: 40px 0 !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
}

/* Мобільні пристрої */
@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh !important;
        padding-top: 80px !important;
    }
    
    .hero-section .container {
        min-height: calc(80vh - 80px) !important;
        padding: 0 15px !important;
    }
    
    .hero-content {
        padding: 30px 0 !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    
    .hero-button .btn {
        padding: 12px 30px !important;
        font-size: 16px !important;
        width: auto !important;
        display: inline-block !important;
    }
}

/* Дуже маленькі екрани */
@media (max-width: 480px) {
    .hero-section {
        min-height: 75vh !important;
    }
    
    .hero-section .container {
        min-height: calc(75vh - 80px) !important;
    }
}

/* Високі екрани (для запобігання надто великої висоти) */
@media (min-height: 900px) {
    .hero-section {
        min-height: 90vh !important;
        max-height: 100vh !important;
    }
    
    .hero-section .container {
        min-height: calc(90vh - 90px) !important;
    }
}

/* Дуже широкі екрани */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 650px;
    }
    
    .hero-title {
        font-size: 4rem !important;
    }
}

/* ===== END HERO SECTION FIXES ===== */ 