/* =========================
   Основні стилі / Base
   ========================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    scroll-behavior: smooth;
    background: #f4f4f9;
    overflow-x: hidden;
}

/* =========================
   Навігаційна панель / Navbar
   ========================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}
.navbar .logo { flex: 1; }
.navbar .logo img { height: 60px; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
}

/* Навігаційні посилання */
.nav-links {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 5px;
    transition: background 0.3s;
    flex-shrink: 0;
    font-size: 1rem;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.1); }

/* Вибір мов */
/* Було: flex: 1; justify-content: flex-end; */
.language-selector {
    flex: 0 0 auto;        /* НЕ розтягуємо, тримаємо компактно біля LinkedIn */
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }

.language-selector a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.language-selector a:hover { color: #FF9900; }

/* =========================
   Hero Section
   ========================= */
.hero {
    position: relative;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* зробили фото яскравішим */
    filter: brightness(1.08) saturate(1.30); 
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* зменшили затемнення для більшої яскравості */
    background: rgba(0, 0, 0, 0.20);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Кнопки в Hero */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.cta-btn {
    padding: 15px 30px;
    background: #FF9900;
    color: #fff;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.cta-btn:hover { background: #CC7A00; }
.contact-btn { background: transparent; border: 2px solid #fff; }
.contact-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* =========================
   About
   ========================= */
.about {
    background: #ffffff;
    color: #000000;
    padding: 60px 20px;
}
.about .container { max-width: 1200px; margin: 0 auto; }
.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.about-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-image {
    flex: 1 1 45%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.about-text {
    flex: 1 1 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify;
}

/* =========================
   Services
   ========================= */
.services {
    position: relative;
    color: #fff;
    padding: 60px 20px;
    overflow: hidden;
}
.services-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* підняли яскравість/контраст/насиченість */
    filter: brightness(0.92) contrast(1.08) saturate(1.15);
    z-index: -1;
}
.services-content { position: relative; z-index: 1; }
.services .container { max-width: 1200px; margin: 0 auto; }
.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}
.services-boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}
.service-box {
    flex: 1 1 45%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    color: #fff;
    box-sizing: border-box;
}
.service-box h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #FF9900;
    text-align: center;
}
.service-items { margin-top: 20px; }
.service-item { margin-bottom: 30px; }
.service-item h4 {
    font-size: 1rem;
    color: #FF9900;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}
.service-item h4::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #FF9900;
    animation: colorChange 3s forwards;
    animation-delay: var(--animation-delay);
}
/* Затримки галочок */
.service-item:nth-child(1) h4::before { --animation-delay: 0s; }
.service-item:nth-child(2) h4::before { --animation-delay: 0.5s; }
.service-item:nth-child(3) h4::before { --animation-delay: 1s; }

@keyframes colorChange {
    from { color: #FF9900; }
    to { color: green; }
}
.service-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
}

/* Адаптивність Services */
@media (max-width: 1024px) {
    .service-box { flex: 1 1 100%; max-width: 100%; }
}
@media (max-width: 768px) {
    .service-box { padding: 20px; }
    .service-box h3 { font-size: 1.4rem; }
    .service-item h4 { font-size: 0.9rem; }
    .service-item p { font-size: 0.85rem; }
}

/* =========================
   Process
   ========================= */
.process {
    background: #ffffff;
    color: #000000;
    padding: 60px 20px;
}
.process .container { max-width: 1200px; margin: 0 auto; }
.process h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.process-content { display: flex; justify-content: center; }
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.process-step {
    flex: 1 1 45%;
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}
.process-step .step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF9900;
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
}
.process-step h3 { font-size: 1.5rem; margin: 30px 0 15px; }
.process-step p { font-size: 1rem; line-height: 1.6; }

@media (max-width: 768px) {
    .process-steps { flex-direction: column; align-items: center; }
    .process-step { flex: 1 1 100%; }
}

/* =========================
   Testimonials
   ========================= */
.testimonials {
    position: relative;
    color: #fff;
    padding: 60px 20px;
    overflow: hidden;
}
.testimonials-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
    z-index: 1;
}
.testimonials-content { position: relative; z-index: 2; }
.testimonials .container { max-width: 1200px; margin: 0 auto; text-align: center; }
.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}
.testimonial-boxes {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.testimonial-box {
    flex: 1 1 30%;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    color: #fff;
    margin: 10px;
}
.testimonial-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}
.testimonial-box h4 { font-size: 1.2rem; font-weight: bold; }

@media (max-width: 768px) {
    .testimonial-boxes { flex-direction: column; align-items: center; }
    .testimonial-box { flex: 1 1 100%; }
}

/* =========================
   FAQ
   ========================= */
.faq {
    background: #ffffff;
    color: #000000;
    padding: 60px 20px;
}
.faq .container { max-width: 1200px; margin: 0 auto; }
.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.faq-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
}
.faq-image {
    flex: 1 1 45%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.faq-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.faq-text { flex: 1 1 50%; padding: 20px; }
.faq-item { margin-bottom: 20px; border-bottom: 1px solid #ccc; }
.faq-question {
    font-size: 1.5rem;
    margin: 0;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 10px 0;
    text-align: justify;
}
@media (max-width: 768px) {
    .faq-content { flex-direction: column; align-items: center; }
    .faq-image, .faq-text { flex: 1 1 100%; }
}

/* =========================
   Contact
   ========================= */
.contact {
    position: relative;
    color: #fff;
    padding: 60px 20px;
    overflow: hidden;
}
.contact-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    z-index: 1;
}
.contact-content { position: relative; z-index: 2; }
.contact .container { max-width: 800px; margin: 0 auto; text-align: center; }
.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}
.contact-form button {
    padding: 15px;
    background: #FF9900;
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover { background: #CC7A00; }
@media (max-width: 768px) { .contact .container { padding: 0 20px; } }

/* Повідомлення форми */
#form-message {
    font-size: 1rem;
    padding: 10px;
    border-radius: 5px;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================
   Секція карти (перед футером)
   ========================= */
.map-section { background:#fff; padding:40px 20px; }
.map-section .container { max-width:1200px; margin:0 auto; text-align:center; }
.map-section h2 { font-size:2rem; margin-bottom:20px; }
.map-embed {
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* =========================
   Підвал сайту / NEW Footer
   ========================= */
.footer {
    background: #000000;
    color: #fff;
    padding: 40px 20px;
}
.footer .container { max-width: 1200px; margin: 0 auto; }

/* Верхній рядок */
.footer-top {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.footer-col { flex: 1 1 30%; min-width: 260px; }
.footer-logo-img { width: 150px; display: block; margin-bottom: 12px; }

/* LinkedIn у шапці (використовуємо ті ж стилі, що у футері, + невеликий відступ) */
.header-social { margin: 0; }  /* раніше міг бути margin-right — прибираємо */
.social-links { display:flex; gap:12px; align-items:center; }
.social-links a {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background: rgba(255,255,255,0.10);
  transition: transform .2s, background .2s;
}
.social-links a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.20); }
.social-links svg { fill:#fff; }

/* Активна мова в перемикачі */
.language-selector a.active { color:#FF9900; text-decoration: underline; }

/* футер: навігація в один рядок на десктопі */
.footer-nav {
    display: flex;
    align-items: center;
    gap: 12px;           /* було 16px або більше — трохи зменшили */
    flex-wrap: nowrap;   /* забороняємо перенесення */
    white-space: nowrap; /* тримаємо кожен лінк в один рядок */
    overflow-x: auto;    /* якщо місця мало — дає горизонтальний скрол, а не перенос */
    -webkit-overflow-scrolling: touch;
  }
.footer-link { 
    white-space: nowrap; /* додаткова гарантія для довгих перекладів */
  }
.footer-link { color: #fff; text-decoration: none; }
.footer-link:hover { color: #FF9900; }

/* Правий стовпець */
.footer-col.right { text-align: right; }
.footer-col.right .company-name { font-weight: 700; }
.footer-mail { color: #FF9900; text-decoration: none; }
.footer-mail:hover { text-decoration: underline; }

/* Розділювач */
.footer-sep {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 18px 0;
}

/* Нижній рядок */
.footer-bottom { font-size: 0.95rem; line-height: 1.5; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.legal-links a { color: #fff; opacity: 0.9; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }
.company-register, .legal-note { opacity: 0.9; margin: 4px 0; }
.copyright { margin-top: 8px; opacity: 0.85; }

/* Прихований текст для доступності */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================
   Адаптивність глобально
   ========================= */
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; }
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
    }
    .nav-links.active { display: flex; }
    .nav-link { padding: 15px; text-align: center; }

    .about-content, .faq-content { flex-direction: column; align-items: center; }
    .about-image, .about-text, .faq-image, .faq-text { flex: 1 1 100%; }
    .service-box { flex: 1 1 100%; }

    .footer-top { align-items: center; }
    .footer-col.right { text-align: left; }
    .footer-bottom { text-align: left; }
    .footer-nav {
        flex-wrap: wrap;
        white-space: normal;
        overflow-x: visible;
    }
}
/* Група утиліт справа у шапці */
.nav-utils {
    display: flex;
    align-items: center;
    gap: 8px;              /* мінімальний проміжок між LinkedIn і мовами */
    margin-left: auto;     /* прижимаємо блок до правого краю навбару */
  }
  /* ===== Legal pages: readable typography ===== */
.legal-page {
    padding: 120px 16px 96px;   /* враховуємо фіксовану навігаційну панель */
    background: #ffffff;
  }
  
  .legal-page .container {
    max-width: 900px;           /* комфортна ширина колонки */
    margin: 0 auto;
  }
  
  /* Заголовки */
  .legal-page h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    text-align: center;
    margin: 0 0 0.75em;
    letter-spacing: 0.3px;
  }
  
  .legal-page h2 {
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    text-align: center;
    margin: 2.2em 0 0.6em;
  }
  
  .legal-page h3 {
    font-size: 1.15rem;
    margin: 1.8em 0 0.5em;
  }
  
  /* Текст і списки */
  .legal-page p,
  .legal-page li {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #222;
  }
  
  .legal-page p { margin: 0 0 1.1em; }
  
  .legal-page ul {
    margin: 0.4em 0 1.2em 1.3em;  /* лівий відступ для маркерів */
    padding: 0;
  }
  
  .legal-page ul li { margin: 0 0 0.5em; }
  
  /* Службові стилі */
  .legal-page .muted {
    color: #666;
    text-align: center;
    margin-top: -0.5em;
  }
  
  .legal-page .note {
    background: #f7fafc;
    border-left: 4px solid #FF9900;
    padding: 0.75em 1em;
    border-radius: 6px;
    margin: 1em 0 0;
  }
  
  /* Декоративна лінія (якщо використаєте <hr>) */
  .legal-page hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 2rem 0;
  }
  
  /* Посилання */
  .legal-page a {
    color: #0a66c2;                    /* близько до LinkedIn синього */
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  
  /* Щоб якірні переходи не ховались під fixed-меню */
  .legal-page section { scroll-margin-top: 110px; }
  
  /* Мобільні покращення */
  @media (max-width: 768px) {
    .legal-page {
      padding-top: 96px;
      padding-bottom: 72px;
    }
    .legal-page .container {
      max-width: 680px;
    }
  }
  /* ===== Services — glass cards like mock ===== */
.services {
    position: relative;
    padding: 110px 24px 90px;
    color: #fff;
  }
  .services .container { position: relative; z-index: 2; }
  
  /* фонове фото трохи темніше для читабельності карток */
  .services-background img {
    filter: brightness(60%) saturate(110%) contrast(105%);
  }
  
  /* великий заголовок зліва, як на макеті */
  .services h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    text-align: left;
    margin: 0 0 26px;
    letter-spacing: .4px;
    text-shadow: 0 6px 20px rgba(0,0,0,.45);
  }
  
  /* сітка 4→2→1 колонки (працює і з .services-boxes, і з .services-grid) */
  .services-grid,
  .services-boxes {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
  
  /* картки (працює для будь-яких прямих дітей .services-grid/.services-boxes) */
  .services-grid > *,
  .services-boxes > * {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 28px 22px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
  }
  
  /* іконка зверху кожної картки (через ::before, без змін у тексті) */
  .services-grid > *::before,
  .services-boxes > *::before {
    content: "";
    display: block;
    width: 64px; height: 64px;
    margin: -46px auto 12px;              /* «випливає» над карткою */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 64px 64px;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
  }
  
  /* 4 різні іконки для 4 карток */
  .services-grid > :nth-child(1)::before,
  .services-boxes > :nth-child(1)::before {
    background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
  <path d='M20.59 13.41 11 23H4v-7l9.59-9.59a2 2 0 0 1 2.82 0l4.18 4.18a2 2 0 0 1 0 2.82z'/>\
  <circle cx='7.5' cy='16.5' r='1.5'/>\
  </svg>");
  }
  .services-grid > :nth-child(2)::before,
  .services-boxes > :nth-child(2)::before {
    background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
  <circle cx='11' cy='11' r='7'/>\
  <line x1='21' y1='21' x2='16.65' y2='16.65'/>\
  </svg>");
  }
  .services-grid > :nth-child(3)::before,
  .services-boxes > :nth-child(3)::before {
    background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
  <path d='M10 2h4'/>\
  <path d='M9 2l1 5v3l-5 8a4 4 0 0 0 3.5 6h7a4 4 0 0 0 3.5-6l-5-8V7l1-5'/>\
  </svg>");
  }
  .services-grid > :nth-child(4)::before,
  .services-boxes > :nth-child(4)::before {
    background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
  <rect x='8' y='2' width='8' height='4' rx='1'/>\
  <path d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/>\
  <path d='M9 12h6'/><path d='M9 16h6'/>\
  </svg>");
  }
  
  /* заголовки та текст у картках */
  .services-grid > * h3,
  .services-boxes > * h3 {
    font-size: clamp(1.15rem, 2.1vw, 1.35rem);
    text-align: center;
    color: #fff;
    margin: 6px 0 12px;
  }
  .services-grid > * p,
  .services-boxes > * p {
    color: rgba(255,255,255,0.92);
    text-align: left;
    font-size: 1rem;
    line-height: 1.65;
  }
  
  /* тонка внутрішня обводка для «скляного» ефекту */
  .services-grid > *::after,
  .services-boxes > *::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
    pointer-events: none;
  }
  
  /* адаптив */
  @media (max-width: 1200px){
    .services-grid, .services-boxes { grid-template-columns: repeat(2, minmax(0,1fr)); }
  }
  @media (max-width: 700px){
    .services-grid, .services-boxes { grid-template-columns: 1fr; }
    .services h2 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  }
  /* 1) OUR SERVICES по центру */
.services h2{
  text-align: center !important;
  margin: 0 0 32px;
}

/* 2) Світліший фон у Services */
.services-background img{
  /* було: brightness(0.92) contrast(1.08) saturate(1.15) */
  filter: brightness(1.18) contrast(1.02) saturate(1.05);
}

/* 3) Більший верхній відступ у 4 колонках (картках) */
.services-grid, .services-boxes{
  margin-top: 20px;              /* відступ від заголовка до сітки */
}

.services-grid > *, .services-boxes > *{
  padding-top: 56px;             /* більше повітря зверху в самих картках */
}

/* підлаштовуємо позицію іконки, щоб гарно сиділа після збільшення padding-top */
.services-grid > *::before, .services-boxes > *::before{
  margin: -34px auto 14px;       /* було ~ -46px auto 12px */
}
/* === Services: підвищуємо контраст тексту === */

/* 1) Ледь затемнюємо всю секцію поверх фото */
.services {
  position: relative;
}
.services::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,0.22);            /* збільш/зменшуй 0.18–0.32 */
  z-index:1;
  pointer-events:none;
}
/* контент повинен бути вище оверлею */
.services .services-content,
.services .container{ position: relative; z-index: 2; }

/* 2) Картки робимо трішки щільнішими (краще читаються на світлому фоні) */
.services-grid > *, .services-boxes > *{
  background: rgba(18,21,26,0.36);         /* було світліше, тепер темніша «скляна» */
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 3) Легкий тіньовий контур тексту */
.services-grid > * h3, .services-boxes > * h3{
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.services-grid > * p, .services-boxes > * p{
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

/* 4) Трохи сильніший оверлей на мобільних (фон дрібніший → контраст падає) */
@media (max-width: 700px){
  .services::before{ background: rgba(0,0,0,0.28); }
}
/* === Services: вирівнювання тексту та читабельність === */

/* Заголовки карток вже по центру; лишаємо так */
.services-grid > * h3,
.services-boxes > * h3 {
  text-align: center;
}

/* 1) Абзаци: по ширині з гіпенізацією */
.services-grid > * p,
.services-boxes > * p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: anywhere;       /* підстрахує дуже довгі слова/URL */
}

/* 2) На мобільних: по центру для кращої читабельності */
@media (max-width: 700px){
  .services-grid > * p,
  .services-boxes > * p {
    text-align: center;
  }
}

/* (опція) Якщо захочеш всюди по центру — просто активуй цей блок:
.services-grid > * p,
.services-boxes > * p { text-align: center !important; }
*/