* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    line-height: 1.6;
    font-size: 15px;
    color: #222222;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* БАЗОВІ ОТСУПИ */
.section {
    padding: 48px 0;
}

.section-light {
    background-color: #f7f7f7;
}

h1,
h2,
h3 {
    color: #111111;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
}

/* ЗАГОЛОВОК */
.site-header {
    padding: 24px 0 28px;
}

.header-container {
    display: flex;
    justify-content: center;
}

.header-title {
    text-align: center;
    max-width: 900px;
}

.header-title h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 4px 0;
}

.header-subtitle {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
}

/* ПОСЛУГИ */

.services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.naftogaz-logo {
    height: 70px;
    width: auto;
    flex-shrink: 0;
}

.free-note {
    font-size: 16px;
    font-weight: 500;
    color: #0c375e;
    margin-top: 4px;
    margin-bottom: 16px;
}

.free-note-strong {
    font-weight: 700;
}

.service-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 15px;
    margin-bottom: 24px;
}

/* ДОКУМЕНТИ */
.accordion.docs-accordion {
    margin-top: 24px;
    border-radius: 4px;
    background-color: #ffffff;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 14px 16px;
    background-color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #111111;
}

.accordion-icon {
    font-size: 20px;
    color: #0c375e;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.25s ease, padding 0.5s ease;
}

.accordion-content.open {
    max-height: 1000px;
    padding: 12px 16px 16px;
}

.docs-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 14px;
}

/* ЛОКАЦІЯ ТА КАРТА */
.location-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
    gap: 32px;
    align-items: center;
}

.location-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 6px;
}

.location-sub {
    color: #666666;
}

.map-wrapper {
    border-radius: 4px;
    border: 1px solid #dde3ec;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    height: 230px;
}

/* ПОПЕРЕДНІЙ ЗАПИС / ГРАФІК РОБОТИ */
.info-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 340px));
    gap: 80px;
    justify-content: center;
}

.info-card {
    background-color: #f7f7f7;
    border-radius: 4px;
    border: 1px solid #0c375e;
    padding: 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    color: #0c375e;
}

.info-phone a {
    color: #0c375e;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.info-phone a:hover {
    text-decoration: underline;
}

.info-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

/* ГРАФІК РОБОТИ */
.hours-table {
    margin: 10px auto 0;
    border-collapse: separate;
    border-spacing: 8px 4px;
    font-size: 14px;
}

.hours-table td:first-child {
    text-align: left;
    padding-right: 18px;
}

.hours-table td:last-child {
    text-align: center;
    white-space: nowrap;
}

.text-accent {
    font-weight: 600;
}

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    background-color: #0c375e;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.primary-btn:hover {
    background-color: #314d72;
    transform: translateY(-1px);
}

/* МЕССЕНДЖЕРИ */
.messengers-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.messenger-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0c375e;
    font-size: 40px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.messenger-pill:hover {
    color: #314d72;
    transform: translateY(-1px);
}

/* ЗВʼЯЗОК ОНЛАЙН / ОНЛАЙН-ФОРМА */
.online-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: flex-start;
}

.online-title {
    margin-top: 8px;
}

.contact-form {
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #dde3ec;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #666666;
}

input,
textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #dde3ec;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: #0c375e;
    box-shadow: 0 0 0 1px rgba(0, 94, 184, 0.25);
}

textarea {
    resize: vertical;
}

.form-note {
    margin-top: 20px;
    font-size: 12px;
    color: #666666;
}

/* ОПЛАТА / QR */
.text-center {
    text-align: center;
}

.payments-layout {
    margin-top: 18px;
    display: grid;
    justify-content: center;
}

.payment-card {
    border-radius: 4px;
    padding: 18px;
    text-align: center;
}

.qr-wrapper {
    margin: 12px 0 16px;
}

.qr-wrapper img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

/* ФУТЕР */
.site-footer {
    background-color: #0c375e;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    padding: 24px 0 18px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.footer-messengers {
    margin-bottom: 14px;
}

.footer-messengers .messengers-inline {
    justify-content: left;
    gap: 20px;
}

.footer-messengers .messenger-pill {
    font-size: 30px;
    color: #ffffff;
}

.footer-messengers .messenger-pill:hover {
    color: #f7f7f7;
}

.footer-container p+p {
    margin-top: 6px;
}

.quick-call-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    border-radius: 4px;
    background-color: #0c375e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-call-btn:hover {
    background-color: #314d72;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* АДАПТИВНІСТЬ */
@media (max-width: 991px) {
    .header-container {
        justify-content: center;
    }

    .location-layout,
    .info-strip,
    .online-layout,
    .payments-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {

    .header-container {
        justify-content: center;
        text-align: center;
    }

    .header-title {
        text-align: center;
    }

    .header-title h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .header-subtitle {
        font-size: 16px;
    }


    .services-header{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .naftogaz-logo {
        order: 0;
        height: 64px;
    }

    .services-title {
        order: 1;
    }

    .section {
        padding: 32px 0;
    }

    h2 {
        font-size: 20px;
    }

    .info-strip {
        gap: 20px;
    }
}