:root {
    --primary: #1a2b48;
    --accent: #c5a059;
    --accent-btn: #7a5000;
    --text: #333;
    --section-title: #01338b;
    --light: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding: var(--scroll-padding, 2rem);
    scrollbar-color: var(--accent) var(--primary);
    scrollbar-width: thin;
    caret-color: var(--accent);
    caret-shape: underscore;
    accent-color: var(--accent-btn);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    text-wrap: pretty;
}

.otrymaty {
    background: var(--accent-btn);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.otrymaty:hover {
    color: var(--primary);
    background: var(--accent);
}

.hero {
    position: relative;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(rgba(26, 43, 72, 0), rgba(26, 43, 72, 0.4)), url('/img/botendienst-erklarungsbote-zustellprotokoll-botenzustellung-zustellnachweis-gerichtsfest-brif-brifdienst-1536x1024.avif');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    text-align: center;
    padding: 0 5%;
}

.hero-content {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(2, 13, 34, 0.25);
    padding: 2.5rem 3rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 1600px;
    border: 1px solid var(--accent);
    box-shadow: 0 0 0 15px rgba(197, 160, 89, 0.15), 0 8px 32px rgba(26, 43, 72, 0.4);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.2;
    margin-bottom: 1.75rem;
    animation: fadeInUp 1s ease-out;
    text-wrap: balance;
    -webkit-text-stroke: 1px var(--accent-btn);
}

.hero-content h2 {
    font-size: clamp(1rem, 1.25rem, 2rem);
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-wrap: balance;
}

.hero-content h3 {
    font-size: clamp(.75rem, 1.15rem, 1.25rem);
    font-weight: 300;
    margin-bottom: 3rem;
    text-wrap: balance;
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator svg {
    fill: var(--accent);
    width: 3rem;
}

section {
    padding: 4rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--section-title);
    font-size: 2.2rem;
    font-variant: small-caps;
    text-transform: capitalize;
    letter-spacing: -1.5px;
    word-spacing: -1px;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.stats-text {
    flex: 1;
    min-width: 300px;
}

.stats-text h2 {
    text-wrap: balance;
}

.stats-text p {
    text-wrap: pretty;
}

.stats-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    min-width: 300px;
}

.stat-item {
    background: var(--light);
    padding: 1.563rem;
    text-align: center;
    border-radius: 8px;
    border-bottom: 3px solid var(--accent);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.services {
    background: var(--primary);
    color: var(--white);
}

.services .section-title {
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.563rem;
}

.service-card {
    padding: 35px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-.625rem);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.service-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.reviews {
    background: var(--light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.875rem;
}

.review-card {
    background: var(--white);
    padding: 1.875rem;
    border-radius: 8px;
    box-shadow: 0 5px 1rem rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    text-align: justify;
}

.review-card>div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.faq-container {
    max-width: 800px;
    margin: auto;
    text-align: justify;
}

.faq-item {
    margin-bottom: .625rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.faq-input {
    display: none;
}

.faq-label {
    display: block;
    padding: 1.125rem;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    background: #fff;
}

.faq-label::after {
    content: '+';
    position: absolute;
    right: .35rem;
    top: .25rem;
    color: var(--accent);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.125rem;
    transition: 0.3s;
    background: #fff;
    color: #666;
}

.faq-input:checked+.faq-label::after {
    content: '-';
}

.faq-input:checked~.faq-content {
    max-height: 200px;
    padding: 1rem 1.125rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    padding: .75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

button {
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

button:disabled {
    opacity: 0.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-.625rem);
    }
}

.process-steps {
    padding: 1.25rem;
    max-width: 800px;
    margin: auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.75rem;
    border-left: 3px solid var(--accent);
}

.step-num {
    background: var(--primary);
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1.75rem;
    font-weight: bold;
}

.features {
    padding: 0 1rem 1.75rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.875rem;
    background: var(--light);
}

.features-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease;
    text-align: justify;
}

.features-card:hover {
    transform: translateY(-5px);
}

.features-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.contacts-section {
    padding: 5rem 1rem;
    background: var(--white);
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
}

.contacts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: row;
}

.contacts-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 1.563rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--accent);
    flex-shrink: 0;
}

.contact-text p,
.contact-text a {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
}

.map-container {
    flex: 1.5;
    min-width: 300px;
    width: 500px;
    max-width: 600px;
    min-height: 300;
    height: 400px;
    max-height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 .625rem 1.875rem rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.563rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
}

.social-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.social-btn:hover svg {
    fill: var(--white);
}

footer {
    background: var(--primary);
    color: #d1d8e0;
    padding: 3.75rem 5% 1.875rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: .625rem;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-agb {
    display: inline-flex;
    gap: .5rem;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 1rem;
}

.footer-agb a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-agb a:hover {
    color: var(--accent);
}

.footer-social-grid {
    display: flex;
    gap: 1rem;
}

.footer-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer-social-btn svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: #aaa;
}

.footer-social-btn:hover {
    border-color: var(--accent);
    background: rgba(197, 160, 89, 0.1);
}

.footer-social-btn:hover svg {
    fill: var(--accent);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    color: #d3d3d3;
}

/* Стилі для модального вікна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 72, 0.9);
    /* Колір вашого бренду з прозорістю */
    backdrop-filter: blur(8px);
    display: none;
    /* Спочатку приховано */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--accent);
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

.modal-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* Блокування скролу */
body.modal-open {
    overflow: hidden;
}

input[type="number"]::-webkit-inner-spin-button {
    display: none;
}

@media print {

    header,
    footer {
        display: none !important;
    }
}

/* ------------------------------------------------------------------------------------- */
@media (max-width: 768px) {

    :root {
        --shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    }

    html {
        scrollbar-width: none;
    }

    .hero {
        background-attachment: scroll;
        background-image: linear-gradient(rgba(26, 43, 72, 0.4), rgba(26, 43, 72, 0.8)), url('/img/botendienst-erklarungsbote-zustellprotokoll-botenzustellung-zustellnachweis-gerichtsfest-brif-brifdienst-768x823.avif');
        letter-spacing: -1px;
        word-spacing: -1px;
        text-transform: capitalize;
        font-variant: small-caps;
    }

    .hero-content {
        padding: 1.5rem 1.25rem;
        border-radius: .75rem;
    }

    .hero-content h1 {
        -webkit-text-stroke: 0;
        text-shadow: none;
    }

    .hero-content h2 {
        font-size: 1.25rem;
        font-weight: 300;
        margin-bottom: 1.875rem;
        opacity: 0.9;
        font-variant: normal;
        text-transform: none;
        letter-spacing: 0;
        word-spacing: 0;
    }

    .stats-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        margin-bottom: 2rem;
        font-size: 1.75rem;
        font-variant: normal;
        text-transform: none;
        letter-spacing: -1.5px;
        word-spacing: -0.6px;
    }

}

/* ----------------------------------------------------------------------------------- HEADER */
.primary-navigation {
    background: rgba(26, 43, 72, 0.95);
    backdrop-filter: blur(.625rem);
    color: var(--white);
    padding: 0 5%;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 1.875rem rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-decoration: none;
}

.logo-svg {
    width: 3.5rem;
    height: 3.5rem;
    fill: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .75rem 1rem;
    border-radius: 5px;
    letter-spacing: .5px;
}

.nav-links a:hover {
    color: var(--white);
    background: var(--accent);
    transition: color 0.3s;
}

.contact-btn-nav {
    background: var(--accent-btn);
    padding: .625rem 1.75rem;
    border-radius: 4px;
}

.headinfo {
    list-style: none;
}

.headtel {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.header-quick-btns {
    display: flex;
    gap: .4rem;
    align-items: center;
    flex-shrink: 0;
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    transition: opacity .2s, transform .2s;
}

.quick-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
    color: var(--white);
}

.quick-btn svg {
    flex-shrink: 0;
}

.quick-btn--wa,
.quick-btn--teams {
    background: rgba(197, 160, 89, 0.12);
    border: 1.5px solid rgba(197, 160, 89, 0.45);
    color: var(--accent);
}

.quick-btn--wa:hover,
.quick-btn--teams:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    opacity: 1;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: .25rem;
    flex-shrink: 0;
    line-height: 0;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.nav-links .nav-mobile-only {
    display: none;
}

.nav-links li.nav-divider {
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin: .25rem 0;
    padding: 0;
    height: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .primary-navigation {
        height: 3.5rem;
        padding: 0 1rem;
    }

    .logo-svg {
        width: 2.2rem;
        height: 2.2rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .headinfo {
        display: none;
    }

    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(26, 43, 72, 0.98);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
        width: 100%;
        padding: .5rem 0 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: .85rem 1.5rem;
        border-radius: 0;
        font-size: .9rem;
    }

    .nav-links .contact-btn-nav {
        margin: .25rem 1.5rem;
        display: block;
        text-align: center;
        border-radius: 4px;
    }

    .nav-links .nav-mobile-only {
        display: list-item;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ======================== CONTAINER / SERVICE ROWS ======================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.service-row {
    display: flex;
    align-items: center;
    background: var(--white);
    margin-bottom: 60px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease;
}

.service-row.active {
    opacity: 1;
    transform: translateY(0);
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.icon-side {
    flex: 0 0 45%;
    background: rgba(197, 160, 89, 0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    min-height: 450px;
}

.icon-side svg {
    width: 180px;
    height: 180px;
    fill: var(--accent);
}

.text-side {
    flex: 0 0 55%;
    padding: 60px;
}

.text-side h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2rem;
    border-left: 5px solid var(--accent);
    padding-left: 15px;
}

.text-side p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.service-row ul {
    list-style: none;
}

.service-row li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.service-row li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ======================== CITIES / CTA ======================== */

.cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.city-item {
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.city-item:hover {
    background: var(--accent);
    color: var(--primary);
}

.cta-box {
    background: var(--accent);
    color: var(--primary);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    margin-top: 40px;
}

.cta-box ul {
    list-style: none;
    width: fit-content;
    margin: 1rem auto 1.5rem;
    text-align: left;
}

.cta-box li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.cta-box li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.btn-order {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-order:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column;
    }

    .icon-side,
    .text-side {
        flex: 0 0 100%;
        width: 100%;
    }

    .icon-side {
        min-height: 250px;
    }
}
