/* --- ЗМІННІ ТА БАЗА --- */
:root {
    /* Кольорова палітра "Солідна компанія" */
    --brand-primary: #1e3a8a; /* Глибокий синій */
    --brand-secondary: #2563eb; /* Яскравий синій для кнопок */
    --brand-accent: #3b82f6; 
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --white: #ffffff;
    
    /* Тіні та радіуси */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --radius: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-logo {
    height: 48px;
    width: auto;
}

.logo-placeholder {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.company-info-header {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--gray-200);
    padding-left: 16px;
}

.company-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
}

.company-code {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-secondary);
    transition: var(--transition);
}

.nav-link:hover { color: var(--brand-primary); }
.nav-link:hover::after { width: 100%; }

.hamburger { display: none; cursor: pointer; }
.bar {
    display: block; width: 25px; height: 3px; margin: 5px auto;
    background-color: var(--gray-800); transition: var(--transition);
}

/* --- SECTIONS ТА ЗАГОЛОВКИ --- */
section { padding: 90px 0; }
.section-grey { background-color: var(--gray-100); }

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 50px;
    color: var(--gray-900);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* --- КНОПКИ --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--brand-secondary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--brand-primary);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gray-800);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--gray-800);
    background: var(--gray-50);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--gray-900);
}

.btn-large { padding: 16px 32px; font-size: 1.1rem; }

/* --- HERO SECTION --- */
#hero {
    margin-top: 73px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--brand-primary) 100%);
    position: relative;
    text-align: center;
    padding: 140px 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.5; pointer-events: none;
}

.hero-content {
    position: relative; z-index: 2; max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem; line-height: 1.2;
    margin-bottom: 24px; color: var(--white);
    font-weight: 800; letter-spacing: -0.02em;
}

#hero p {
    font-size: 1.25rem; margin-bottom: 40px;
    color: var(--gray-200); font-weight: 400;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; }

/* --- ПРО КОМПАНІЮ --- */
.about-card {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-header {
    text-align: center; margin-bottom: 40px; padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.about-header h3 { font-size: 2rem; color: var(--gray-900); margin-bottom: 16px; font-weight: 700; }
.about-lead { font-size: 1.1rem; color: var(--gray-600); max-width: 800px; margin: 0 auto; line-height: 1.8;}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

.column-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.column-icon-box {
    background: var(--gray-100); color: var(--brand-secondary);
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.about-column h4 { font-size: 1.4rem; color: var(--gray-900); font-weight: 700; }

.data-list li {
    display: flex; flex-direction: column; padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.data-list li:last-child { border-bottom: none; }
.data-list .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); font-weight: 600; margin-bottom: 4px; }
.data-list .value { font-size: 1.1rem; color: var(--gray-900); font-weight: 500; }
.copy-text { cursor: copy; color: var(--brand-secondary); font-weight: 700; }

.activity-list li {
    position: relative; padding-left: 36px; margin-bottom: 16px;
    color: var(--gray-700); font-size: 1.05rem;
}
.activity-list li::before {
    content: ""; position: absolute; left: 0; top: 4px;
    width: 20px; height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: cover;
}

/* --- КАРТКИ НОВИН ТА ПОСЛУГ --- */
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}

.card, .service-card {
    background: var(--white); padding: 32px;
    border-radius: var(--radius); border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}

.card:hover, .service-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gray-300);
}

.date {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    background: var(--gray-100); color: var(--gray-600);
    padding: 6px 12px; border-radius: 20px; margin-bottom: 16px;
}

.card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--gray-900); }
.card p { color: var(--gray-600); }

.service-card { text-align: center; }
.service-card .icon-wrap {
    width: 64px; height: 64px; margin: 0 auto 24px;
    background: var(--gray-50); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-secondary);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { color: var(--gray-600); }

/* --- ФОРМА ПЕРЕВІРКИ БОРГУ --- */
.debt-form-wrapper {
    max-width: 650px; margin: 0 auto;
    background: var(--white); padding: 40px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    text-align: center; border: 1px solid var(--gray-200);
}

.subtitle { color: var(--gray-600); font-size: 1.1rem; margin-bottom: 24px; }

.modern-form { display: flex; gap: 12px; }
.input-group { flex: 1; }
#checkForm input {
    width: 100%; padding: 16px 20px;
    border: 2px solid var(--gray-200); border-radius: 8px;
    font-size: 1.1rem; color: var(--gray-900); transition: var(--transition);
    background: var(--gray-50);
}
#checkForm input:focus {
    outline: none; border-color: var(--brand-secondary); background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.result-box { margin-top: 24px; padding: 20px; border-radius: 8px; font-weight: 600; font-size: 1.1rem;}
.result-box.debt { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.result-box.clean { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.hidden { display: none; }

/* --- ЯК ОПЛАТИТИ --- */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.method { position: relative; padding: 40px; }
.method-icon {
    color: var(--brand-primary); margin-bottom: 20px;
}
.method h3 { font-size: 1.4rem; margin-bottom: 12px; }
.method p { color: var(--gray-600); margin-bottom: 16px; }
.info-badge {
    background: var(--gray-50); padding: 12px 16px; border-radius: 8px;
    border-left: 4px solid var(--brand-secondary); font-size: 0.95rem; color: var(--gray-800);
}
.divider { height: 1px; background: var(--gray-200); margin: 24px 0; }
.method h4 { font-size: 1.1rem; margin-bottom: 8px; }
.small-text { font-size: 0.9rem; color: var(--gray-600); }

.iban-container {
    background: var(--gray-900); padding: 16px; border-radius: 8px; margin: 24px 0;
}
.iban {
    font-family: 'Courier New', Courier, monospace; font-size: 1.15rem;
    color: var(--white); margin: 0 !important; letter-spacing: 1px; word-break: break-all;
    text-align: center; font-weight: 700;
}
.copy-btn { width: 100%; }

/* --- TELEGRAM БОТ --- */
#telegram-bot {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 80px 0;
}

.telegram-cta-card {
    max-width: 650px; margin: 0 auto;
    background: var(--white); border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-lg); padding: 48px 40px;
    text-align: center; box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.telegram-cta-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.15); }

.icon-telegram { color: #24A1DE; margin-bottom: 24px; display: inline-flex; }
.telegram-cta-card h2 { font-size: 2.2rem; color: var(--gray-900); margin-bottom: 16px; font-weight: 800; }
.telegram-description { font-size: 1.15rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 32px; }

.btn-telegram {
    background-color: #24A1DE; color: #fff; border-radius: 8px;
    padding: 16px 36px; font-size: 1.15rem; font-weight: 600;
    box-shadow: 0 4px 14px rgba(36, 161, 222, 0.3); border: none;
}
.btn-telegram:hover { background-color: #1d8ec4; box-shadow: 0 6px 20px rgba(36, 161, 222, 0.4); }

/* --- FOOTER --- */
footer {
    background: var(--gray-900); color: var(--gray-300);
    padding: 80px 0 24px; border-top: 4px solid var(--brand-secondary);
}

.footer-content { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.footer-desc { color: var(--gray-400); max-width: 300px; }
.footer-col h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 24px; font-weight: 600; }

.contact-list li, .schedule-list li {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.contact-list svg { color: var(--brand-accent); flex-shrink: 0; }
.contact-list a:hover { color: var(--white); }
.schedule-list span { color: var(--white); font-weight: 600; width: 65px; }

.footer-bottom { text-align: center; border-top: 1px solid var(--gray-800); padding-top: 24px; font-size: 0.9rem; color: var(--gray-500); }


/* --- АДАПТИВНІСТЬ --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed; left: -100%; top: 0; flex-direction: column;
        background-color: var(--white); width: 100%; height: 100vh;
        text-align: center; padding-top: 100px; transition: 0.4s ease-in-out;
        box-shadow: var(--shadow-lg); gap: 20px;
    }
    .nav-menu.active { left: 0; }
    .nav-link { font-size: 1.2rem; }
    
    #hero { padding: 100px 0 80px; }
    #hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 20px;}
    .hero-buttons .btn { width: 100%; }
    
    .about-card { padding: 24px; }
    .payment-methods { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .contact-list li { justify-content: center; }
    .schedule-list li { justify-content: center; }
    .footer-desc { margin: 0 auto; }
    
    .modern-form { flex-direction: column; }
    .telegram-cta-card { padding: 32px 20px; }
}