.site-footer {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 280px minmax(180px, 0.7fr);
    align-items: center;
    gap: 28px;
}

.footer-address {
    margin: 0;
    color: var(--muted);
}

.footer-nav h2,
.footer-contact h2 {
    margin: 14px 0 8px;
    font-size: 15px;
    letter-spacing: 0.14em;
}

.footer-contact h2 {
    margin-top: 0;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--muted);
}

.footer-nav a:hover {
    color: var(--green);
}

.footer-map-frame {
    display: block;
    width: 100%;
    height: 148px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--green);
    text-decoration: none;
}

.footer-social a:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.footer-social svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social .is-fill {
    fill: currentColor;
    stroke: none;
}

.footer-social .is-dot {
    fill: currentColor;
    stroke: none;
}

.footer-social .is-line {
    color: var(--line-green);
}

.footer-bottom {
    margin-top: 0;
    padding: 18px 0 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.footer-mark {
    color: var(--green);
}

.book-float {
    display: none;
}

.book-float-mark {
    width: 34px;
    height: 34px;
    overflow: visible;
}

.book-float-sheet {
    transform-origin: 23px 23px;
    animation: book-sheet-bob 2.6s ease-in-out infinite;
}

.book-float-paper,
.book-float-clip,
.book-float-line,
.book-float-pen {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.book-float-paper {
    stroke-width: 1.8;
}

.book-float-clip {
    stroke-width: 1.6;
    fill: currentColor;
}

.book-float-line {
    stroke-width: 1.7;
    stroke-dasharray: 16;
    stroke-dashoffset: 16;
    animation: book-line-draw 2.6s ease-in-out infinite;
}

.book-float-line.is-mid {
    animation-delay: 0.18s;
}

.book-float-line.is-short {
    stroke-dasharray: 10;
    animation-delay: 0.36s;
}

.book-float-pen {
    fill: var(--brass);
    stroke: var(--brass);
    stroke-width: 1.2;
    transform-box: fill-box;
    transform-origin: 20% 70%;
    animation: book-pen-write 2.6s ease-in-out infinite;
}

@keyframes book-sheet-bob {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(-1.5px); }
}

@keyframes book-line-draw {
    0% { stroke-dashoffset: 16; }
    42%,
    72% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 16; }
}

@keyframes book-pen-write {
    0% { transform: translate(0, 0) rotate(0deg); }
    38% { transform: translate(5px, 1px) rotate(-10deg); }
    68% { transform: translate(1px, 2px) rotate(6deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .book-float-sheet,
    .book-float-line,
    .book-float-pen {
        animation: none;
    }

    .book-float-line {
        stroke-dashoffset: 0;
    }
}

.line-float,
.to-top {
    position: fixed;
    right: 20px;
    z-index: 25;
    box-sizing: border-box;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    text-decoration: none;
}

.line-float {
    bottom: 116px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--line-green);
    color: #fff;
    box-shadow: 0 12px 28px rgba(6, 199, 85, 0.38);
}

.line-float-label {
    display: none;
}

.line-float-mark {
    display: block;
    width: 56px;
    height: 56px;
}

.to-top {
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--panel);
    color: #e6c77a;
    cursor: pointer;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.to-top[hidden] {
    display: none;
}
