@font-face {
    font-family: "Hattori";
    src: url("../font/Hattori_Hanzo_Italic.otf") format("opentype");
    font-display: swap;
}

:root {
    --ink: #17233d;
    --ink-soft: #4c5870;
    --night: #111a2d;
    --night-soft: #27385a;
    --paper: rgba(250, 250, 252, 0.94);
    --paper-soft: rgba(246, 243, 248, 0.88);
    --accent: #8d557f;
    --accent-dark: #673d63;
    --accent-light: #d9bed3;
    --line: rgba(255, 255, 255, 0.35);
    --shadow: 0 24px 70px rgba(8, 17, 38, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #6570a6;
    background-image:
        linear-gradient(135deg, rgba(16, 29, 59, 0.46), rgba(76, 83, 135, 0.18)),
        url("../img/texture.JPG");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(10, 18, 37, 0.08), rgba(10, 18, 37, 0.34));
    pointer-events: none;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 28px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(110px, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 72px;
    padding: 12px 18px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(17, 26, 45, 0.84);
    box-shadow: 0 14px 40px rgba(7, 14, 30, 0.22);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #fff;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.main-navigation a {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Hattori", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 12px;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.main-navigation a.active {
    color: #fff;
    background: var(--accent);
}

.language-switch {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.language-switch a {
    display: grid;
    width: 38px;
    height: 32px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    opacity: 0.66;
    transition: opacity 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.language-switch a:hover,
.language-switch a:focus-visible,
.language-switch a.active {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.language-switch img {
    width: 24px;
    height: auto;
}

.page-content {
    display: grid;
    gap: 26px;
    padding-top: 26px;
}

.hero-card,
.content-card,
.gallery-card,
.reference-card,
.contact-card {
    border: 1px solid rgba(255, 255, 255, 0.54);
    box-shadow: var(--shadow);
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(28px, 5vw, 72px);
    overflow: hidden;
    padding: clamp(32px, 5vw, 68px);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(48, 61, 88, 0.97), rgba(87, 70, 101, 0.96));
}

.hero-card .welcome-title,
.hero-card .section-title {
    color: #fff;
}

.hero-card .feature-list {
    color: rgba(255, 255, 255, 0.82);
}

.hero-card .feature-list strong {
    color: #fff;
}

.hero-card .feature-list a {
    color: #f0cfe7;
}

.hero-copy {
    align-self: center;
}

.welcome-title,
.section-title {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.welcome-title {
    margin-bottom: 30px;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.08;
}

.section-title {
    margin-bottom: 22px;
    font-size: clamp(1.65rem, 2.7vw, 2.45rem);
    line-height: 1.15;
}

.feature-list {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
    font-family: Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.58;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    position: absolute;
    top: 0.55em;
    left: 2px;
    width: 9px;
    height: 9px;
    content: "";
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(141, 85, 127, 0.15);
}

.feature-list a,
.content-copy a {
    color: var(--accent-dark);
    font-weight: 700;
    text-underline-offset: 3px;
}

.feature-description {
    display: block;
    margin-top: 8px;
}

.hero-visual {
    position: relative;
    min-height: 560px;
}

.visual-image {
    position: absolute;
    overflow: hidden;
    margin: 0;
    border: 8px solid rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 22px 45px rgba(18, 30, 55, 0.25);
}

.visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-image.primary {
    top: 0;
    right: 0;
    width: 67%;
    height: 46%;
    transform: rotate(2deg);
}

.visual-image.secondary {
    top: 31%;
    left: 0;
    width: 64%;
    height: 43%;
    transform: rotate(-3deg);
}

.visual-image.map {
    right: 4%;
    bottom: 0;
    width: 49%;
    height: 42%;
    transform: rotate(1deg);
}

.visual-image.map img {
    object-fit: cover;
    object-position: center;
}

.content-card {
    display: grid;
    align-items: center;
    padding: clamp(30px, 5vw, 58px);
    color: #f8f6fa;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(170, 111, 155, 0.48), transparent 44%),
        linear-gradient(135deg, var(--night), var(--night-soft));
}

.content-card .section-title {
    color: #fff;
}

.content-copy {
    max-width: 880px;
    font-family: Georgia, serif;
    font-size: 1.06rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.content-copy strong {
    color: #fff;
}

.gallery-card,
.reference-card,
.contact-card {
    padding: clamp(28px, 5vw, 56px);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(170, 111, 155, 0.42), transparent 44%),
        linear-gradient(135deg, rgba(48, 61, 88, 0.97), rgba(87, 70, 101, 0.96));
    backdrop-filter: blur(14px);
}

.gallery-card .section-title,
.reference-card .section-title {
    color: #fff;
    text-align: center;
}

.print-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.print-gallery a {
    display: grid;
    overflow: hidden;
    min-height: 330px;
    place-items: center;
    padding: 14px;
    border: 1px solid rgba(23, 35, 61, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(24, 34, 59, 0.1);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.print-gallery a:hover,
.print-gallery a:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 20px 38px rgba(24, 34, 59, 0.17);
}

.print-gallery img {
    width: 100%;
    height: 100%;
    max-height: 390px;
    object-fit: contain;
    border-radius: 13px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.municipality-card {
    display: grid;
    gap: 22px;
    min-height: 300px;
    place-items: center;
    padding: 30px 20px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(23, 35, 61, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.municipality-card:hover,
.municipality-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(24, 34, 59, 0.15);
}

.municipality-card h2 {
    margin: 0;
    font-size: 1.28rem;
}

.municipality-card img {
    max-width: 150px;
    max-height: 155px;
    object-fit: contain;
}

.contact-card {
    display: grid;
    min-height: 440px;
    place-items: center;
}

.contact-card img {
    width: min(100%, 560px);
    height: auto;
    padding: clamp(18px, 4vw, 38px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 15px 35px rgba(24, 34, 59, 0.12);
}

.site-footer {
    padding: 28px 0 4px;
    text-align: center;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .main-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-top: 4px;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 500px;
    }

    .print-gallery,
    .reference-grid {
        grid-template-columns: 1fr;
    }

    .print-gallery a {
        min-height: 260px;
    }
}

@media (max-width: 600px) {
    .site-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 12px;
    }

    .site-header {
        position: relative;
        top: 0;
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
    }

    .brand {
        font-size: 0.88rem;
    }

    .main-navigation {
        gap: 2px;
    }

    .main-navigation a {
        padding: 9px 11px;
        font-size: 0.94rem;
        white-space: nowrap;
    }

    .language-switch a {
        width: 34px;
    }

    .page-content {
        gap: 18px;
        padding-top: 18px;
    }

    .hero-card,
    .content-card,
    .gallery-card,
    .reference-card,
    .contact-card {
        padding: 24px 20px;
        border-radius: 23px;
    }

    .hero-visual {
        min-height: 370px;
    }

    .visual-image {
        border-width: 5px;
        border-radius: 18px;
    }

    .visual-image.primary {
        width: 70%;
        height: 44%;
    }

    .visual-image.secondary {
        top: 29%;
        width: 67%;
        height: 42%;
    }

    .visual-image.map {
        width: 52%;
        height: 42%;
    }

    .feature-list,
    .content-copy {
        font-size: 0.98rem;
    }

    .print-gallery a {
        min-height: 220px;
    }

    .municipality-card {
        min-height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
