/* Best School Guide Sikar — styles */
:root {
  --ink: #12242e;
  --paper: #f6f2e9;
  --paper-2: #efe9db;
  --brand: #0a5c46;
  --brand-2: #0d7a5c;
  --accent: #e0703a;
  --line: #d9d0be;
  --muted: #5c6b6f;
  --card: #fffdf7;
  --gmaps: #e8b23a;
  --verify: #1a8f5c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

footer {
  flex-shrink: 0
}

.sans {
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px)
}

a {
  color: inherit
}

header {
  border-bottom: 1.5px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper)
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--brand);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit
}

.logo span {
  color: var(--accent)
}

.tabs {
  display: flex;
  gap: 6px
}

.tab {
  font-family: 'Segoe UI', sans-serif;
  font-size: .86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 9px 18px;
  border: 1.5px solid transparent;
  background: none;
  cursor: pointer;
  color: var(--muted);
  border-radius: 8px
}

.tab:hover {
  color: var(--ink)
}

.tab.active {
  background: var(--brand);
  color: #fff
}

.menu-btn {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  font-size: 1.1rem;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px
}

.page {
  display: none
}

.page.active {
  display: block;
  flex: 1 0 auto;
  animation: fade .3s ease
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.eyebrow {
  font-family: 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px
}

.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line)
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.02em;
  font-weight: 700;
  max-width: 16ch
}

.hero h1 em {
  font-style: italic;
  color: var(--brand)
}

.hero p {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 24px
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 44px;
  flex-wrap: wrap
}

.hero-stats .n {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1
}

.hero-stats .l {
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 6px
}

.band {
  padding: 64px 0;
  border-bottom: 1px solid var(--line)
}

.band.dark {
  background: var(--ink);
  color: var(--paper);
  border: none
}

.band.dark .eyebrow {
  color: var(--accent)
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center
}

.two h2 {
  font-size: 2.1rem;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  max-width: 18ch
}

.two p {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 14px
}

.band.dark .two p {
  color: #c9d2d0
}

.factlist {
  list-style: none;
  font-family: 'Segoe UI', sans-serif
}

.factlist li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start
}

.band.dark .factlist li {
  border-color: #2a3d45
}

.factlist .fn {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
  min-width: 34px
}

.factlist .ft {
  font-size: .94rem
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 12px
}

.why-grid .item {
  border-top: 2px solid var(--accent);
  padding-top: 16px
}

.why-grid h4 {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px
}

.why-grid p {
  font-family: 'Segoe UI', sans-serif;
  font-size: .92rem;
  color: var(--muted)
}

.band.dark .why-grid p {
  color: #c9d2d0
}

.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px
}

.voice {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 24px
}

.voice p {
  font-size: 1rem;
  font-style: italic;
  color: #33454a;
  margin-bottom: 16px
}

.voice .who {
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand)
}

.voice .role {
  font-family: 'Segoe UI', sans-serif;
  font-size: .76rem;
  color: var(--muted)
}

.voice .st {
  color: var(--gmaps);
  letter-spacing: 1px;
  margin-bottom: 10px
}

h2.sec {
  font-size: 2.1rem;
  letter-spacing: -.01em;
  margin-bottom: 8px
}

.sub {
  font-family: 'Segoe UI', sans-serif;
  color: var(--muted);
  margin-bottom: 30px
}

.page-head {
  padding: 52px 0 8px
}

.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: -.02em;
  font-weight: 700
}

.page-head h1 em {
  font-style: italic;
  color: var(--brand)
}

.page-head p {
  font-family: 'Segoe UI', sans-serif;
  color: var(--muted);
  margin-top: 12px;
  max-width: 60ch
}

.filterbar {
  padding: 24px 0 8px
}

.filterbar .row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.chip {
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  padding: 9px 15px;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 20px;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap
}

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff
}

.sortnote {
  font-family: 'Segoe UI', sans-serif;
  font-size: .8rem;
  color: var(--muted)
}

.count {
  font-family: 'Segoe UI', sans-serif;
  font-size: .85rem;
  color: var(--muted);
  margin: 8px 0 20px
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-bottom: 40px
}

.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(10, 92, 70, .55)
}

.card-photo {
  height: 150px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px
}

.card-photo .rank {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: rgba(0, 0, 0, .32);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px
}

.card-photo .boards {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  max-width: 70%
}

.card-photo .board {
  font-family: 'Segoe UI', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(255, 255, 255, .94);
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 5px
}

.card-photo .board.rbse {
  color: var(--accent)
}

.card-photo .board.icse {
  color: #7a3fb0
}

.card-photo .board.prefoundation {
  color: #0d5aa8
}

.card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.card-body h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 7px
}

.verified {
  color: var(--verify);
  font-size: .9rem
}

.gm {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-family: 'Segoe UI', sans-serif
}

.gm .sc {
  font-weight: 800
}

.gm .st {
  color: var(--gmaps);
  letter-spacing: 1px;
  font-size: .9rem
}

.gm .ct {
  font-size: .78rem;
  color: var(--muted)
}

.card-body .loc {
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 10px
}

.card-body .ph {
  font-family: 'Segoe UI', sans-serif;
  font-size: .86rem;
  font-weight: 600;
  color: var(--brand);
  margin-top: 6px
}

.card-body .open {
  margin-top: 14px;
  font-family: 'Segoe UI', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em
}

.card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 28px -16px rgba(224, 112, 58, .55)
}

.card.featured:hover {
  box-shadow: 0 18px 36px -18px rgba(224, 112, 58, .6)
}

.feat-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: 'Segoe UI', sans-serif;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--accent);
  color: #fff;
  padding: 5px 11px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25)
}

.tagline-bar {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  padding: 14px 22px;
  border-radius: 10px;
  margin: 0 0 26px;
  text-align: center;
  letter-spacing: .01em
}

.usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 26px
}

.usp {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent)
}

.usp-t {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 4px;
  color: var(--brand)
}

.usp-d {
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px
}

.pill {
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 20px
}

.tick-list {
  list-style: none;
  margin: 0 0 26px;
  font-family: 'Segoe UI', sans-serif
}

.tick-list li {
  padding: 9px 0 9px 30px;
  position: relative;
  font-size: .94rem;
  border-bottom: 1px solid var(--line)
}

.tick-list li:before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--verify);
  font-weight: 800
}

.tick-list.award li:before {
  content: "\1F3C6";
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  margin: 0 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden
}

.fee-table th {
  background: var(--brand);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em
}

.fee-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-size: .94rem
}

.fee-table td:last-child {
  font-weight: 700;
  color: var(--brand);
  text-align: right
}

.fee-table tr:nth-child(even) td {
  background: var(--paper-2)
}

.feeyear {
  font-family: 'Segoe UI', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 8px
}

.feenote {
  font-family: 'Segoe UI', sans-serif;
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5
}

.euro-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px -24px rgba(224, 112, 58, .5)
}

.es-media {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center
}

.es-logo {
  width: 70%;
  max-width: 260px
}

.es-body {
  padding: 38px 40px
}

.es-body h2 {
  font-size: 2.2rem;
  letter-spacing: -.01em;
  margin-bottom: 12px
}

.es-tag {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6
}

.es-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px
}

.es-stats .esn {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1
}

.es-stats .esl {
  font-family: 'Segoe UI', sans-serif;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted)
}

.es-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.inline-euro {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1.5px solid var(--accent)
}

.inline-euro:hover {
  color: var(--brand);
  border-color: var(--brand)
}

@media(max-width:760px) {
  .euro-spotlight {
    grid-template-columns: 1fr
  }

  .es-media {
    min-height: 200px
  }
}

.back {
  font-family: 'Segoe UI', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 0 0
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line)
}

.detail-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.detail-hero .loc {
  font-family: 'Segoe UI', sans-serif;
  color: var(--muted);
  margin-top: 8px
}

.detail-hero .boards {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.tagpill {
  font-family: 'Segoe UI', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--paper-2);
  color: var(--brand);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px
}

.detail-score {
  text-align: right;
  font-family: 'Segoe UI', sans-serif;
  min-width: 150px
}

.detail-score .big {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink)
}

.detail-score .st {
  color: var(--gmaps);
  letter-spacing: 2px;
  font-size: 1.1rem
}

.detail-score .ct {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 4px
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 340px;
  margin: 28px 0
}

.gallery div {
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden
}

.gallery div:first-child {
  grid-row: 1/3
}

.gallery .lbl {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: 'Segoe UI', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  padding: 3px 9px;
  border-radius: 6px
}

.detail-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  padding-bottom: 48px
}

.detail-cols h3 {
  font-size: 1.4rem;
  margin: 8px 0 14px
}

.detail-cols p.about {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: #33454a;
  margin-bottom: 24px
}

.rev {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px
}

.rev .st {
  color: var(--gmaps);
  letter-spacing: 1px;
  font-size: .9rem;
  margin-bottom: 8px
}

.rev p {
  font-family: 'Segoe UI', sans-serif;
  font-size: .92rem;
  color: #33454a
}

.infobox {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  font-family: 'Segoe UI', sans-serif;
  position: sticky;
  top: 90px
}

.infobox .ir {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  gap: 12px
}

.infobox .ir:first-child {
  border-top: none
}

.infobox .ik {
  color: var(--muted)
}

.infobox .iv {
  font-weight: 700;
  text-align: right
}

.infobox .maplink {
  display: block;
  margin-top: 16px;
  text-align: center;
  text-decoration: none
}

.blog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 8px 0 40px
}

.blog {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s
}

.blog:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(10, 92, 70, .5)
}

.blog-img {
  height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-size: cover;
  background-position: center
}

.blog-tag {
  font-family: 'Segoe UI', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(0, 0, 0, .3);
  padding: 4px 10px;
  border-radius: 20px
}

.blog-body {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.blog-body h4 {
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 8px
}

.blog-body p {
  font-family: 'Segoe UI', sans-serif;
  font-size: .88rem;
  color: var(--muted);
  flex: 1
}

.blog-date {
  font-family: 'Segoe UI', sans-serif;
  font-size: .74rem;
  color: var(--muted);
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: .06em
}

.admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px
}

.admin-actions button {
  font-family: 'Segoe UI', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  color: var(--ink)
}

.admin-actions button.del {
  border-color: #e0b4ac;
  color: #b5402f;
  background: #faeae7
}

.admin-actions button:hover {
  filter: brightness(.97)
}

.admin-badge {
  display: inline-block;
  font-family: 'Segoe UI', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px
}

.btn {
  font-family: 'Segoe UI', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid var(--brand);
  display: inline-block;
  background: none;
  color: var(--brand)
}

.btn.primary {
  background: var(--brand);
  color: #fff
}

.btn.primary:hover {
  background: var(--brand-2)
}

.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff
}

.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 36, 46, .6);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow: auto
}

.modal-bg.open {
  display: flex
}

.modal {
  background: var(--paper);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  padding: 34px;
  border: 1.5px solid var(--ink)
}

.modal h3 {
  font-size: 1.6rem;
  margin-bottom: 6px
}

.modal .msub {
  font-family: 'Segoe UI', sans-serif;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 22px
}

.field {
  margin-bottom: 18px
}

.field label {
  display: block;
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
  font-size: .95rem;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  resize: vertical
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand)
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px
}

.err {
  color: #c0392b;
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  margin-top: 4px;
  display: none
}

footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 28px
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  font-family: 'Segoe UI', sans-serif
}

footer .flogo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px
}

footer .flogo span {
  color: var(--accent)
}

footer p {
  font-size: .88rem;
  color: #b9c4c2;
  max-width: 34ch
}

footer h5 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  color: #fff
}

footer ul {
  list-style: none
}

footer li {
  margin-bottom: 8px
}

footer .fl {
  color: #b9c4c2;
  text-decoration: none;
  font-size: .9rem;
  cursor: pointer
}

footer .fl:hover {
  color: var(--accent)
}

.copyright {
  border-top: 1px solid #2a3d45;
  margin-top: 36px;
  padding-top: 20px;
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  color: #8a9997;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px
}

@media(max-width:1160px) {
  .grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:900px) {

  .grid,
  .blog-grid,
  .why-grid,
  .voices {
    grid-template-columns: 1fr 1fr
  }

  .two,
  .detail-cols {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    height: auto;
    grid-template-rows: none
  }

  .gallery div:first-child {
    grid-row: auto;
    height: 180px
  }

  .gallery div {
    height: 120px
  }

  .infobox {
    position: static
  }
}

@media(max-width:640px) {
  .tabs {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    padding: 10px;
    gap: 4px
  }

  .tabs.show {
    display: flex
  }

  .menu-btn {
    display: block
  }

  .grid,
  .blog-grid,
  .why-grid,
  .voices {
    grid-template-columns: 1fr
  }

  .hero-stats {
    gap: 26px
  }
}

.tabs .tab {
  text-decoration: none;
}