/* Налаштування стилів та глобальні змінні */
:root {
    --primary-bg: #111827;     /* Глибокий темний відтінок */
    --secondary-bg: #1f2937;   /* Картки та секції */
    --accent-color: #06b6d4;   /* Яскравий кібер-ціан */
    --text-main: #f3f4f6;      /* Світлий текст */
    --text-muted: #9ca3af;     /* Сірий допоміжний текст */
    --light-bg: #f9fafb;       /* Фон для контентної секції */
    --dark-text: #111827;      /* Темний текст */
    
    /* Різнокольорова палітра для SVG-іконок */
    --clr-cloud: #3b82f6;      /* Синій */
    --clr-shield: #f97316;     /* Помаранчевий */
    --clr-network: #22c55e;    /* Зелений */
    --clr-helpdesk: #06b6d4;   /* Бірюзовий */
    --clr-audit: #eab308;      /* Жовтий */
    --clr-windows: #0078d4;    /* Фірмовий Windows */
    --clr-telephony: #ef4444;  /* Червоний */
    --clr-cctv: #10b981;       /* Смарагдовий */
    --clr-ai: #a855f7;         /* Пурпуровий */
	--clr-hardware: #64748b;  /* Сталевий сірий */
	--clr-power: #f59e0b;     /* Енергетичний бурштиновий */
	--clr-cooling: #0ea5e9;   /* Прохолодний блакитний */

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Шапка та навігація */
.header {
    background-color: var(--primary-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2d3748;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Enlarged logo styling to match the new icon layout */
.logo {
  color: var(--text-main);
  font-size: 34px;         /* Increased from 24px */
  font-weight: 800;         /* Extra bold weight for crisp authority */
  letter-spacing: 0.7px;    /* Slightly widened track spacing */
  text-transform: none;
  line-height: 1;           /* Prevents vertical alignment shifting */
  transition: transform 0.3s ease;
}

/* Optional interactive hover effect for the logo text */
.logo:hover {
  transform: scale(1.03);
}

.logo span {
  color: var(--accent-color);
  font-weight: 800;
}


.nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--accent-color);
}

.nav .btn-nav {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.nav .btn-nav:hover {
    background-color: var(--text-main);
    color: var(--primary-bg);
}

/* Головний екран (Hero) */
.hero {
    background: linear-gradient(rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.96)), url('https://images.unsplash.com/flagged/photo-1579274216947-86eaa4b00475?q=80&w=2268&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: var(--text-main);
    padding: 120px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 24px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.25;
}

.hero-content p {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 700;
	font-family: inherit;
    font-size: 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background-color: #22d3ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

/* Секція послуг */
.services-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--primary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Базові стилі для контейнерів іконок */
.card-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.card-icon svg {
    width: 44px;
    height: 44px;
    display: block;
    transition: transform 0.3s ease;
}

/* Присвоєння індивідуальних кольорів */
.ico-cloud .card-icon svg { stroke: var(--clr-cloud); }
.ico-cloud:hover { border-color: var(--clr-cloud); }

.ico-shield .card-icon svg { stroke: var(--clr-shield); }
.ico-shield:hover { border-color: var(--clr-shield); }

.ico-network .card-icon svg { stroke: var(--clr-network); }
.ico-network:hover { border-color: var(--clr-network); }

.ico-helpdesk .card-icon svg { stroke: var(--clr-helpdesk); }
.ico-helpdesk:hover { border-color: var(--clr-helpdesk); }

.ico-audit .card-icon svg { stroke: var(--clr-audit); }
.ico-audit:hover { border-color: var(--clr-audit); }

.ico-windows .card-icon svg { stroke: none; fill: var(--clr-windows); }
.ico-windows:hover { border-color: var(--clr-windows); }

.ico-telephony .card-icon svg { stroke: var(--clr-telephony); }
.ico-telephony:hover { border-color: var(--clr-telephony); }

.ico-cctv .card-icon svg { stroke: #4b5563; }
.ico-cctv:hover .card-icon svg { stroke: var(--clr-cctv); }
.ico-cctv:hover { border-color: var(--clr-cctv); }

.ico-ai .card-icon svg { stroke: var(--clr-ai); }
.ico-ai:hover { border-color: var(--clr-ai); }

.ico-hardware .card-icon svg { stroke: var(--clr-hardware); }
.ico-hardware:hover { border-color: var(--clr-hardware); }

.ico-power .card-icon svg { stroke: var(--clr-power); }
.ico-power:hover { border-color: var(--clr-power); }

.ico-cooling .card-icon svg { stroke: var(--clr-cooling); }
.ico-cooling:hover { border-color: var(--clr-cooling); }




.service-card:hover .card-icon svg {
    transform: scale(1.08);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-bg);
    margin-bottom: 14px;
}

.service-card p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

/* Форма контактів */
.contacts-section {
    background-color: var(--primary-bg);
    color: var(--text-main);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #2d3748;
}

.form-container h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-container p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input {
    padding: 14px;
    border: 1px solid #374151;
    border-radius: 6px;
    background-color: var(--secondary-bg);
    color: var(--text-main);
    font-size: 16px;
	font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder {
    color: #6b7280;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}



/* Адаптивність */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 20px;
    }
    .logo {
        font-size: 26px;
    }
    .nav a {
        margin: 0 12px;
    }
    .hero {
        padding: 70px 0;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .services-section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 36px;
    }
    .service-card {
        padding: 24px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .contacts-section {
        padding: 60px 0;
    }
    .nav-phone-wrapper {
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
    }
    .messenger-links {
        border-right: none;
        padding-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid #374151;
    }
    .nav .phone-link {
        white-space: nowrap;
    }
}

/* Додаткова точка зупину для телефонів (до 480px — покриває й великі моделі типу iPhone Pro Max) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .btn-primary {
        width: 100%;
        text-align: center;
    }
    .messenger-links svg {
        width: 26px !important;
        height: 26px !important;
    }
    .nav-phone-wrapper {
        gap: 8px;
        padding: 14px 16px;
    }
    .messenger-links {
        gap: 6px;
    }
    .nav .phone-link {
        font-size: 14px;
    }
}
.messenger-links svg {
  width: 32px !important;   /* Made icons larger (was 18px) */
  height: 32px !important;  /* Made icons larger (was 18px) */
  display: block;
}

/* Контейнер для телефона и иконок */
/* Капсула з ефектом матового скла (Glassmorphism) */
.nav-phone-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; 
    
    /* Полупрозрачный фоновый цвет для подложки */
    background-color: rgba(30, 41, 59, 0.4); 
    
    /* Эффект размытия элементов ЗА капсулой (работает при скролле поверх картинок) */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    
    padding: 6px 16px; 
    border-radius: 28px;
    
    /* Тонкая полупрозрачная рамка, создающая эффект стеклянной грани */
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Мягкая тень для отделения от заднего фона */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Легкое подсвечивание капсулы при наведении */
.nav-phone-wrapper:hover {
    background-color: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}


/* Reduced spacing between individual messenger icons */
.messenger-links {
  display: flex;
  align-items: center;
  gap: 8px;            /* Reduced space between the icons themselves (was 12px) */
  border-right: 1px solid #374151;
  padding-right: 10px; /* Reduced space before the vertical divider line (was 16px) */
}


/* Base container for messenger link icons */
/* Base container for messenger link icons */
.msg-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

/* 1. All icons share the exact same default color as the phone number */
.msg-link.ico-tg,
.msg-link.ico-viber,
.msg-link.ico-wa { 
  color: var(--text-main) !important; 
}

/* Define variables for unique brand color identities */
.msg-link.ico-tg { --glow-color: rgba(0, 136, 204, 0.7); --hover-brand-color: #0088cc; }
.msg-link.ico-viber { --glow-color: rgba(115, 96, 242, 0.7); --hover-brand-color: #7360f2; }
.msg-link.ico-wa { --glow-color: rgba(37, 211, 102, 0.7); --hover-brand-color: #25d366; }

/* 2. Resting state: Make inner shapes blend perfectly into the dark background capsule */
.msg-link svg path[fill="#ffffff"] {
  fill: var(--secondary-bg) !important; /* Forces the plane/handle to look punched-out like WhatsApp */
  transition: fill 0.2s ease;
}

/* 3. Hover state: Icons shift to their crisp corporate layout */
.msg-link:hover {
  transform: scale(1.15) !important;
  color: var(--hover-brand-color) !important;
  filter: drop-shadow(0 0 8px var(--glow-color)) !important;
}

/* Restore bright white internal graphics on hover */
.msg-link:hover svg path[fill="#ffffff"] {
  fill: #ffffff !important;
}





/* ==========================================================================
   ФІНАЛЬНІ СТИЛІ ФУТЕРА (З ВИРІВНЮВАННЯМ АДРЕСИ)
   ========================================================================== */
.main-footer {
    background-color: #0f172a; 
    border-top: 1px solid #1e293b;
    padding: 60px 0 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 28px;
}

.footer-description {
    line-height: 1.6;
    max-width: 400px;
}

.footer-title {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Флекс-контейнери для рівних колонок у контактах */
.footer-contact-row {
    display: flex;
    align-items: flex-start; /* Вирівнювання по верхньому краю рядка */
    margin-bottom: 14px;
    line-height: 1.5;
}

.contact-label {
    color: var(--text-main);
    flex-shrink: 0;
    width: 85px; /* Фіксована ширина для створення рівної межі підписів */
    font-weight: 600;
}

.address-block {
    display: block;
    color: var(--text-muted);
    overflow-wrap: break-word; /* ← замість nowrap на span */
}



.footer-phone {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-phone:hover {
    opacity: 0.8;
}

.schedule-text {
    color: var(--text-muted);
}

/* Нижня плашка */
.footer-bottom {
    background-color: #0b0f19;
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    font-size: 13px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Адаптація під мобільні екрани */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-contact-row {
        flex-direction: column; /* На мобільних мітка та текст стають в один стовпчик */
        gap: 4px;
    }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.nav .phone-link {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav .phone-link:hover {
    color: var(--accent-color);
}

.form-success {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 600;
    padding: 24px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}
