*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --page-width: 900px;
  --color-text: #1d1d1d;
  --color-muted: #666;
  --color-border: #ccc;
  --color-purple: #41002f;
  --color-dark: #333;
  --color-mid: #616161;
  --color-light: #f4f4f4;
  --font-base: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  width: min(var(--page-width), calc(100% - 32px));
  margin-inline: auto;
}

hr.cienka {
  border: none;
  height: 1px;
  background-color: #ccc;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 2px solid var(--color-border);
  background: #fff;
}

.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000;
}

.brand span {
  font-family: "Century Gothic", Arial, sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.35rem);
  line-height: 1;
}

.top-nav ul,
.footer-inner ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav li {
  border-left: 1px solid #999;
}

.top-nav li:last-child {
  border-right: 1px solid #999;
}

.top-nav a {
  display: block;
  min-width: 118px;
  padding: 38px 12px;
  text-align: center;
  font-size: 1.08rem;
  color: #808080;
}

.hero {
  border-block: 2px solid var(--color-border);
  background: #e8e8e8;
}

.hero-inner {
  position: relative;
  min-height: 276px;
  padding-block: 14px;
  background-image: linear-gradient(90deg, rgba(232,232,232,.92) 0 33%, rgba(232,232,232,.15) 33%), url('../img/banner.jpg');
  background-position: center;
  background-size: cover;
}

.hero-menu {
  width: min(291px, 100%);
  display: grid;
  gap: 6px;
}

.hero-menu > a {
  display: block;
  padding: 10px 14px;
  background: var(--color-mid);
  color: #fff;
  font-size: 1.08rem;
}

.hero-menu > a::before,
.hero-actions a::before,
.offer-list a::before {
  content: "▶";
  color: #ffae00;
  margin-right: 8px;
  font-size: .75em;
}

.contact-box {
  margin-top: 2px;
  padding: 10px 14px;
  background: var(--color-purple);
  color: #fff;
}

.contact-box p {
  margin: 0 0 8px;
}

.contact-box .box-title {
  font-size: 1.08rem;
}

.hero-actions {
  position: absolute;
  right: 0;
  bottom: 28px;
  display: grid;
  gap: 6px;
  width: min(260px, 100%);
}

.hero-actions a {
  padding: 7px 12px;
  background: rgb(65,0,47);
  color: #fff;
  font-size: 1.06rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 50px;
  padding-block: 28px;
}

.about-card h1 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-purple);
}

.about-card p {
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.side-offer h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.side-offer h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  text-decoration: underline;
}

.side-offer section + section {
  margin-top: 24px;
}

.side-offer ul,
.info-grid ul {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
}

.side-offer li,
.info-grid li {
  margin: 4px 0;
}

.side-offer li::before,
.info-grid li::before {
  content: "▶";
  margin-right: 8px;
  color: rgb(65,0,47);
}

.offer-panel {
  margin-bottom: 32px;
  padding: 16px 18px 24px;
  border-bottom: 4px solid #c0c0c0;
  background: var(--color-dark);
  color: #fff;
}

.offer-panel h2 {
  margin: 0 0 16px;
  padding-top: 10px;
  border-top: 1px solid #c0c0c0;
  font-size: 1.35rem;
  font-weight: 400;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-list a {
  display: inline-block;
  padding-block: 3px;
}

.info-band {
  border-block: 2px solid var(--color-border);
  background: var(--color-light) url('../img/slider-bg.jpg') center/cover;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 18px 26px;
}

.info-grid section {
  min-width: 0;
}

.info-grid section + section {
  border-left: 1px solid var(--color-border);
  padding-left: 24px;
}

.info-grid h2 {
  margin: 0 0 10px;
  color: var(--color-purple);
  font-size: 1.2rem;
  font-weight: 400;
}

.info-grid p,
.info-grid address {
  margin: 0 0 12px;
  font-style: normal;
  font-size: .94rem;
}

.shop-banner {
  display: inline-block;
  margin-top: 10px;
}

.site-footer {
  padding-block: 14px;
  background: #fff;
  font-size: .92rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner ul {
  gap: 6px 12px;
  justify-content: flex-end;
}

.footer-inner li + li::before {
  content: "|";
  margin-right: 12px;
  color: #000;
}

@media (max-width: 920px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-block: 16px;
  }

  .brand {
    justify-content: center;
  }

  .top-nav ul {
    justify-content: center;
  }

  .top-nav li,
  .top-nav li:last-child {
    border: 0;
  }

  .top-nav a {
    min-width: auto;
    padding: 10px 12px;
  }

  .hero-inner {
    background-image: linear-gradient(rgba(232,232,232,.88), rgba(232,232,232,.88)), url('../img/banner.jpg');
  }

  .hero-actions {
    position: static;
    margin-top: 12px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .side-offer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .side-offer section + section {
    margin-top: 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid section + section {
    border-left: 0;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 22px, var(--page-width));
  }

  .top-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-nav li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-menu,
  .hero-actions {
    width: 100%;
  }

  .side-offer,
  .offer-list {
    grid-template-columns: 1fr;
  }

  .footer-inner ul {
    display: block;
  }

  .footer-inner li + li::before {
    content: none;
    margin: 0;
  }
}

/* Uzupełnienia dla podstrony dokumenty */
.hero-inner {
  background-image: linear-gradient(90deg, rgba(232,232,232,.92) 0 33%, rgba(232,232,232,.15) 33%), url('https://www.archivia.com.pl/img/banner.jpg');
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 50px;
  padding-block: 28px 36px;
  padding-top: 10px;
}

.breadcrumb {
  margin-top: 0;
  margin-bottom: 15px;
  color: #808080;
  font-size: .92rem;
}

.breadcrumb a {
    text-decoration: none !important;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    text-decoration: underline !important;
}

.documents-content h1 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #808080;
  color: #808080;
  font-size: 1.55rem;
  font-weight: 400;
}

.documents-content .lead {
  margin: 0 0 18px;
  line-height: 1.7;
  text-align: justify;
}

.documents-content > hr {
  border: 0;
  height: 1px;
  margin: 18px 0;
  background: #ccc;
}

.documents-banner {
  float: right;
  width: min(450px, 56%);
  margin: 0 0 14px 22px;
}

.document-section {
  clear: both;
  margin-top: 24px;
}

.document-section h2 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 1.12rem;
}

.document-list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.75;
}

.document-list li {
  margin: 5px 0;
  padding-left: 24px;
  position: relative;
}

.document-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: .1em;
  color: rgb(65,0,47);
  font-size: .78em;
}

.top-nav a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 920px) {
  .hero-inner {
    background-image: linear-gradient(rgba(232,232,232,.88), rgba(232,232,232,.88)), url('https://www.archivia.com.pl/img/banner.jpg');
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .documents-banner {
    float: none;
    width: 100%;
    margin: 0 0 14px;
  }
}

.page-layout {
    display: block;
}

.documents-content {
    width: 100%;
    max-width: 100%;
}

/* kontakt.html */

.kontakt-layout {
display: block;
padding-top: 10px;
}

.kontakt-content {
width: 100%;
max-width: 100%;
font-size: 0.88rem;
line-height: 1.45;
}

.kontakt-content h1 {
margin: 0 0 12px;
padding-bottom: 6px;
border-bottom: 1px solid #808080;
color: #808080;
font-size: 1.35rem;
font-weight: 400;
}

.kontakt-content h2 {
margin: 0 0 4px;
color: #000;
font-size: 0.95rem;
font-weight: 700;
}

.kontakt-content p {
margin: 0 0 18px;
}

.kontakt-content a {
text-decoration: underline;
}

.kontakt-top {
display: grid;
grid-template-columns: 1fr 490px;
gap: 45px;
align-items: start;
margin-top: 18px;
}

.kontakt-banner {
display: grid;
grid-template-columns: 1fr 200px;
width: 490px;
min-height: 150px;
background: #c8c8ad;
overflow: hidden;
}

.kontakt-banner-text {
padding: 14px 18px 12px 72px;
background:
linear-gradient(76deg, var(--color-purple) 0 20%, transparent 20% 100%),
#c8c8ad;
color: #000;
font-size: 0.9rem;
line-height: 1.25;
}

.kontakt-phone {
display: block;
margin-top: 12px;
font-size: 1.15rem;
}

.kontakt-banner img {
width: 200px;
height: 150px;
object-fit: cover;
object-position: center;
}

.kontakt-columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 120px;
margin-top: 8px;
}

.kontakt-separator {
border: 0;
height: 1px;
margin: 24px 0 16px;
background: #808080;
}

.kontakt-form-section h2,
.kontakt-range h2 {
margin-bottom: 12px;
text-decoration: underline;
}

.form-switch {
display: grid;
grid-template-columns: 190px 250px;
max-width: 440px;
margin-bottom: 16px;
}

.form-switch button {
padding: 7px 10px;
border: 1px solid #ccc;
background: #fff;
color: #333;
font-family: inherit;
font-size: 0.82rem;
cursor: pointer;
}

.form-switch button.active {
background: var(--color-purple);
color: #fff;
border-color: var(--color-purple);
}

.kontakt-form {
display: grid;
gap: 10px;
max-width: 730px;
}

.kontakt-form label {
display: grid;
grid-template-columns: 140px 1fr;
gap: 16px;
align-items: start;
}

.kontakt-form label span {
color: #9b0000;
}

.kontakt-form input,
.kontakt-form textarea,
.kontakt-form select {
width: 100%;
padding: 7px 8px;
border: 1px solid #ccc;
font-family: inherit;
font-size: 0.88rem;
}

.kontakt-form button[type="submit"] {
width: 150px;
margin-top: 6px;
padding: 8px 12px;
border: none;
background: var(--color-purple);
color: #fff;
font-family: inherit;
font-size: 0.86rem;
cursor: pointer;
}

.kontakt-range p {
text-align: justify;
line-height: 1.75;
}

.hidden {
display: none;
}

@media (max-width: 920px) {
.kontakt-top,
.kontakt-columns {
grid-template-columns: 1fr;
gap: 20px;
}

.kontakt-banner {
width: 100%;
grid-template-columns: 1fr 180px;
}

.kontakt-banner img {
width: 180px;
}

.kontakt-form label {
grid-template-columns: 1fr;
gap: 5px;
}
}

@media (max-width: 640px) {
.kontakt-banner {
grid-template-columns: 1fr;
}

.kontakt-banner img {
width: 100%;
height: auto;
}

.kontakt-banner-text {
padding: 16px;
background: #c8c8ad;
}

.form-switch {
grid-template-columns: 1fr;
max-width: none;
}
}

.breadcrumb a {
    text-decoration: none;
}


/* CENNIKI.HTML — poprawiona sekcja cennika
   Zasady: zachowuje oryginalne kolory tabeli, przywraca widoczność tekstu,
   stabilizuje szerokość tabeli i pozycjonowanie bloku infolinii. */

.cenniki-content {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.cennik-original-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12pt;
  color: #1d1d1d;
}

.cennik-original-wrap a {
  text-decoration: none;
}

.cennik-original-wrap a:hover,
.cennik-original-wrap a:focus-visible {
  text-decoration: underline;
}

.cennik-original-wrap p {
  line-height: 1.5;
}

.cennik-original-wrap img {
  max-width: none;
}

#layer3.cennik-section {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding-bottom: 24px;
}

.cennik-table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

.cennik-table td {
  box-sizing: border-box;
  padding: 3px 5px;
  font-size: 12pt;
  line-height: 1.35;
  vertical-align: middle;
}

.cennik-table p {
  margin-top: 0;
  margin-bottom: 0;
}

.cennik-table a {
  text-decoration: none;
}

.cennik-table a:hover,
.cennik-table a:focus-visible {
  text-decoration: underline;
}

/* Oryginalne kolory: wymuszenie czytelności po przeniesieniu do CSS strony. */
.cennik-table td[bgcolor="#808080"],
.cennik-table td[style*="background-color: #808080"],
.cennik-table td[style*="background-color:#808080"] {
  background-color: #808080 !important;
  color: #ffffff !important;
}

.cennik-table td[bgcolor="#808080"] *,
.cennik-table td[style*="background-color: #808080"] *,
.cennik-table td[style*="background-color:#808080"] * {
  color: #ffffff !important;
}

.cennik-table td[bgcolor="#808080"] a font[color="#FFCC00"],
.cennik-table td[style*="background-color: #808080"] a font[color="#FFCC00"],
.cennik-table td[style*="background-color:#808080"] a font[color="#FFCC00"],
.cennik-table td[bgcolor="#808080"] a span[style*="#FFCC00"],
.cennik-table td[style*="background-color: #808080"] a span[style*="#FFCC00"],
.cennik-table td[style*="background-color:#808080"] a span[style*="#FFCC00"] {
  color: #ffcc00 !important;
}

.cennik-table td[bgcolor="#CACAAE"],
.cennik-table td[style*="background-color: #CACAAE"],
.cennik-table td[style*="background-color:#CACAAE"] {
  background-color: #cacaae !important;
  color: #000000 !important;
}

.cennik-table td[bgcolor="#CACAAE"] *,
.cennik-table td[style*="background-color: #CACAAE"] *,
.cennik-table td[style*="background-color:#CACAAE"] * {
  color: #000000 !important;
}

.cennik-table td[bgcolor="#333333"],
.cennik-table td[style*="background-color: #333333"],
.cennik-table td[style*="background-color:#333333"] {
  background-color: #333333 !important;
  color: #ffcc00 !important;
}

.cennik-table td[bgcolor="#333333"] *,
.cennik-table td[style*="background-color: #333333"] *,
.cennik-table td[style*="background-color:#333333"] * {
  color: #ffcc00 !important;
}

.cennik-table td[bgcolor="#959595"],
.cennik-table td[style*="background-color: #959595"],
.cennik-table td[style*="background-color:#959595"] {
  background-color: #959595 !important;
  color: #ffffff !important;
}

.cennik-table td[bgcolor="#959595"] *,
.cennik-table td[style*="background-color: #959595"] *,
.cennik-table td[style*="background-color:#959595"] * {
  color: #ffffff !important;
}

/* Komórki z żółtymi odsyłaczami w ciemnych wierszach. */
.cennik-table font[color="#FFCC00"],
.cennik-table span[style*="#FFCC00"] {
  color: #ffcc00 !important;
}

/* Górna infolinia — pozycjonowanie jak w oryginale, bez rozjechania. */
#teleinfo1,
#teleinfo,
#teleinfo0 {
  position: absolute !important;
  top: 11px !important;
}

#teleinfo1 { left: 406px !important; }
#teleinfo { left: 516px !important; }
#teleinfo0 { left: 697px !important; }

#teleinfo .phone-line,
#teleinfo p.phone-line {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.15 !important;
}

#layer3 > .cennik-table,
#layer3 > table:first-of-type {
  margin-top: 20px;
}

.cenniki-content::after,
.cennik-original-wrap::after,
#layer3::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 940px) {
  .cennik-original-wrap {
    overflow-x: auto;
  }

  #layer3.cennik-section {
    min-width: 896px;
  }
}

/* === FINALNE WYMUSZENIE DLA STRONY CENNIKI ===
   Ten blok celowo znajduje się na końcu arkusza i odnosi się do klas realnie użytych w cenniki.html. */
.cenniki-layout { display: block !important; }
.cenniki-content { width: 100% !important; max-width: 100% !important; }
.cenniki-intro {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 503px !important;
  gap: 24px !important;
  align-items: start !important;
  margin: 0 0 18px !important;
}
.cenniki-intro-text p { margin: 0 0 10px !important; }
.cenniki-hotline {
  display: grid !important;
  grid-template-columns: 121px 180px 202px !important;
  width: 503px !important;
  height: 150px !important;
  overflow: hidden !important;
  background: #cacaae !important;
  color: #000 !important;
  align-items: stretch !important;
  justify-self: end !important;
}
.cenniki-hotline .hotline-left { width: 121px !important; height: 150px !important; object-fit: cover !important; max-width: none !important; display: block !important; }
.cenniki-hotline .hotline-photo { width: 202px !important; height: 150px !important; object-fit: cover !important; max-width: none !important; display: block !important; border: 1px solid #cacaae !important; }
.cenniki-hotline .hotline-text {
  width: 180px !important;
  height: 150px !important;
  padding: 10px 6px 8px 7px !important;
  background: #cacaae !important;
  color: #000 !important;
  font-size: 0.86rem !important;
  line-height: 1.18 !important;
}
.cenniki-hotline .hotline-text > strong:first-child { display:block !important; margin:0 0 3px !important; color:#000 !important; }
.cenniki-hotline .hotline-text span { display:block !important; color:#000 !important; }
.cenniki-hotline .phone-list { margin-top: 6px !important; }
.cenniki-hotline .phone { display:block !important; margin:0 !important; padding:0 !important; color:#000 !important; font-size:1.05rem !important; line-height:1.08 !important; }
.price-section { width: 100% !important; margin-top: 18px !important; overflow-x: auto !important; }
.price-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  background: #808080 !important;
}
.price-table col.price-col-service { width: 64% !important; }
.price-table col.price-col-value { width: 36% !important; }
.price-table th, .price-table td { padding: 6px 8px !important; border-bottom: 1px solid #ff9900 !important; vertical-align: middle !important; text-align: left !important; font-weight: 400 !important; }
.price-title-row th { background:#333333 !important; color:#ffcc00 !important; text-align:center !important; }
.price-title-row span, .price-title-row small { display:block !important; color:#ffcc00 !important; font-weight:400 !important; }
.price-service-row th { background:#959595 !important; color:#ffffff !important; height:48px !important; }
.price-service-row th a { color:#ffffff !important; }
.price-group-row td { background:#cacaae !important; color:#000000 !important; }
.price-group-row td a { color:#000000 !important; }
.price-group-row .marker { color:#ff9900 !important; margin-right:6px !important; }
.price-item-row td { background:#808080 !important; color:#ffffff !important; }
.price-item-row td a { color:#ffffff !important; }
.price-item-row .price-linklike { color:#ffcc00 !important; }
.price-item-row strong { font-weight:400 !important; }
.top-nav a[aria-current="page"] { font-weight: 400 !important; color: #808080 !important; }
@media (max-width: 920px) {
  .cenniki-intro { grid-template-columns: 1fr !important; }
  .cenniki-hotline { justify-self: start !important; }
}

/* =========================================================
   STABILIZACJA GÓRNEGO MENU — PC + MOBILE
   Cel:
   - na komputerze: logo + napis po lewej, menu zawsze w jednym rzędzie;
   - na telefonie: logo i napis w pierwszej linii, przyciski menu jeden pod drugim;
   - brak przypadkowego zawijania ostatniej pozycji, np. „kontakt”.
   ========================================================= */

.site-header .header-inner {
  min-height: 100px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 1.8vw, 24px);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .brand:hover,
.site-header .brand:focus-visible {
  text-decoration: none;
}

.site-header .brand img,
.site-header .brand-svg,
.site-header .brand-logo-fallback {
  flex: 0 0 auto;
  width: clamp(50px, 6vw, 59px);
  height: clamp(50px, 6vw, 59px);
  object-fit: contain;
}

.site-header .brand span {
  font-family: "Century Gothic", Arial, sans-serif;
  font-size: clamp(2.75rem, 5.4vw, 3.35rem);
  line-height: 1;
  white-space: nowrap;
}

.site-header .top-nav {
  flex: 0 0 auto;
  margin-left: auto;
}

.site-header .top-nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .top-nav li {
  flex: 0 0 auto;
  border-left: 1px solid #999;
}

.site-header .top-nav li:last-child {
  border-right: 1px solid #999;
}

.site-header .top-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(96px, 11.8vw, 118px);
  height: 100px;
  padding: 0 8px;
  text-align: center;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  line-height: 1.2;
  color: #808080;
  white-space: nowrap;
  text-decoration: none;
}

.site-header .top-nav a:hover,
.site-header .top-nav a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 920px) {
  .site-header .header-inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding-block: 16px;
  }

  .site-header .brand {
    justify-content: center;
    flex: 0 0 auto;
    width: 100%;
  }

  .site-header .brand img,
  .site-header .brand-svg,
  .site-header .brand-logo-fallback {
    width: clamp(50px, 11vw, 59px);
    height: clamp(50px, 11vw, 59px);
  }

  .site-header .brand span {
    font-size: clamp(2.4rem, 10vw, 3.1rem);
  }

  .site-header .top-nav {
    width: 100%;
    margin-left: 0;
  }

  .site-header .top-nav ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
  }

  .site-header .top-nav li,
  .site-header .top-nav li:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #999;
  }

  .site-header .top-nav li:last-child {
    border-bottom: 1px solid #999;
  }

  .site-header .top-nav a {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .site-header .top-nav ul {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .site-header .top-nav li:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
