/* DavaLeather footer — dark surface (2026-05-08).
   Sits at the bottom of the page as a strong dark band beneath the
   colorful body gradient (cyan→yellow). Visual model echoes the Sber
   reference screenshot the user provided: page above is bright /
   colorful, footer below is a quiet dark anchor with light text and
   compact column layout.

   Brand wordmark in the first column mirrors the header's typographic
   logo (gradient-filled "DAVA LEATHER" + green "care | restoration"
   tag), replacing the legacy images/logo.svg image. */

:root {
    --footer-bg:           #343434;             /* charcoal — matches the header pill */
    --footer-text:         #E0E2E5;             /* light grey body text */
    --footer-text-soft:    rgba(224, 226, 229, 0.62);
    --footer-text-strong:  #FFFFFF;             /* headings + brand color anchor */
    --footer-accent:       var(--brand-orange); /* terracotta — links + phone CTA */
    --footer-accent-strong:#E0773D;             /* lighter orange — accent hover */
    --footer-divider:      rgba(255, 255, 255, 0.08);
    --footer-padding-x:    clamp(12px, 2vw, 32px);
    --footer-padding-y:    clamp(14px, 2vw, 38px);
    --footer-gap:          clamp(18px, 4vw, 55px);
    --footer-font:         clamp(1rem, 1.1vw, 1.09rem);
}

.dl-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: var(--footer-font);
    /* Rounded top corners — the dark footer "tucks under" the
       colorful body gradient with a soft scoop at each top corner,
       echoing the Sber.ru footer reference the user provided.
       40px gives a clearly visible curve at the viewport edges
       without dominating the layout. The page gradient above the
       footer shows through the rounded cutouts.

       No top border — the rounded dark surface itself reads as
       the boundary against the gradient above. */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    /* `relative` + `z-index: 1` ensures the rounded corners stack
       above the body gradient (otherwise some browsers render
       border-radius without proper edge anti-aliasing on the
       overlap). */
    position: relative;
    z-index: 1;
}

.dl-footer .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 max(var(--footer-padding-x), var(--site-gutter-x-desktop, 20px));
    box-sizing: border-box;
}

.dl-footer-main {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--footer-gap);
    padding: var(--footer-padding-y) 0 20px 0;
    min-width: 0;
    width: 100%;
    transition: gap .3s, padding .3s;
}

.dl-footer-block,
.dl-footer-contacts {
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
}

/* ── Typographic brand (mirrors .dl-header__brand) ─────────────────── */

.dl-footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}

.dl-footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 4px;
}

.dl-footer-brand-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.04em;
    /* Mirrors .dl-header__brand-name — solid white wordmark with a
       small orange accent square via ::after below, and an orange
       "care | restoration" tag (declared on .dl-footer-brand-tag).
       This is the header logo's identity carried into the footer. */
    color: #FFFFFF;
    background: none;
    -webkit-text-fill-color: #FFFFFF;
}

.dl-footer-brand-name::after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--brand-orange);
    border-radius: 2px;
    -webkit-text-fill-color: initial;
}

.dl-footer-brand-tag {
    font-weight: 600;
    font-size: 11px;
    color: var(--footer-accent);
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.dl-footer-desc {
    color: var(--footer-text-soft);
    line-height: 1.5;
}

.dl-footer-title {
    font-weight: 700;
    font-size: clamp(1.1rem, 1.23vw, 1.18rem);
    margin-bottom: 12px;
    color: var(--footer-text-strong);
}

/* Section-title accent ("Services" green title in the legacy footer) */
.dl-accent {
    color: var(--footer-accent);
}

.dl-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2;
}

.dl-footer-list li {
    font-size: clamp(1rem, 1.1vw, 1.09rem);
    opacity: 1;
    transform: none;
    animation: none;
}

.dl-footer-list li a {
    color: var(--footer-text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: color .18s, border-bottom-color .18s;
}

.dl-footer-list li a:hover,
.dl-footer-list li a:focus {
    color: var(--footer-accent);
    border-bottom: 2px solid var(--footer-accent);
}

.dl-footer-list li a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 2px;
}

.dl-footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: clamp(1.05rem, 1.1vw, 1.08rem);
    margin-bottom: 12px;
}

.dl-footer-contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3px;
    gap: 9px;
    font-size: clamp(1.01rem, 1.1vw, 1.08rem);
    line-height: 1.35;
    color: var(--footer-text);
}

.dl-footer-icon img {
    width: clamp(20px, 2vw, 26px);
    height: clamp(20px, 2vw, 26px);
    object-fit: contain;
    display: block;
    margin-top: 2px;
    /* Slightly desaturate the legacy phone/clock icons so they don't
       compete with the rest of the dark footer. */
    filter: brightness(1.1) saturate(0.85);
}

/* Phone — primary call action, color-emphasized for the eye. */
.dl-footer-phone,
.dl-footer-contact-row .dl-footer-phone {
    font-weight: 700;
    text-decoration: none;
    color: var(--footer-accent);
    margin-left: 2px;
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    transition: color .14s;
}
.dl-footer-phone:hover {
    color: var(--footer-accent-strong);
    text-decoration: underline;
}

.dl-footer-contact-row a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color .15s;
    word-break: break-all;
}
.dl-footer-contact-row a:hover {
    color: var(--footer-accent);
    text-decoration: underline;
}
.dl-footer-contact-row a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

.dl-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 18px 0;
    border-top: 1px solid var(--footer-divider);
    font-size: clamp(.92rem, 1vw, 1.01rem);
    color: var(--footer-text-soft);
    margin-top: 10px;
}

.dl-footer-my-appointment {
    font-size: .88rem;
    color: var(--footer-text-soft);
    opacity: .85;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 0;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s, color .2s;
}
.dl-footer-my-appointment:hover,
.dl-footer-my-appointment:focus-visible {
    opacity: 1;
    color: var(--footer-accent);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .dl-footer .container {
        padding-left: var(--site-gutter-x-mobile-left, 20px);
        padding-right: var(--site-gutter-x-mobile-right, 20px);
    }
    .dl-footer-main {
        display: flex;
        flex-direction: column;
        padding: 6px 0 0;
        gap: 0;
    }
    .dl-footer-block,
    .dl-footer-contacts {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }
    .dl-footer-block + .dl-footer-block,
    .dl-footer-block + .dl-footer-contacts {
        border-top: 1px solid var(--footer-divider);
        margin-top: 14px;
        padding-top: 14px;
    }
    .dl-footer-brand {
        margin-top: 18px;
        margin-bottom: 10px;
    }
    .dl-footer-desc {
        font-size: 1.03rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    .dl-footer-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin: 0 0 10px 0;
        border-top: 0;
        padding-top: 0;
        letter-spacing: 0;
    }
    .dl-footer-list {
        display: block;
        line-height: 1.55;
        margin-bottom: 4px;
    }
    .dl-footer-list li + li {
        margin-top: 3px;
    }
    .dl-footer-contact-row {
        font-size: 15px;
        margin: 10px 0;
        gap: 11px;
    }
    .dl-footer-icon img {
        width: 27px;
        height: 27px;
    }
    .dl-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 0 14px 0;
        font-size: 1rem;
        text-align: left;
        margin-top: 14px;
    }
}
