/* ============================================================
   SK Smichov — Main Stylesheet
   Mobile-first · Navy + Yellow · Montserrat
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --navy: #1a265c;
  --navy-soft: #2a3a7a;
  --navy-muted: #6b7394;
  --yellow: #f7ca18;
  --yellow-soft: #fff8d6;
  --white: #ffffff;
  --off-white: #fafaf7;
  --rule: rgba(26, 38, 92, 0.15);
  --shadow: 0 2px 12px rgba(26, 38, 92, 0.08);
  --shadow-lg: 0 4px 24px rgba(26, 38, 92, 0.12);
  --radius: 5px;
  --transition: 0.2s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy);
}

ul, ol {
  padding-left: 1.2em;
}

blockquote {
  border-left: 3px solid var(--yellow);
  padding: 1em 1.25em;
  background: var(--yellow-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}

blockquote p {
  font-style: italic;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  line-height: 1.2;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
}

h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

small, .meta {
  font-size: 13px;
  color: var(--navy-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-muted);
  margin-bottom: 8px;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-section {
  padding: 48px 16px;
}

.page-section.soft {
  background: var(--white);
}

.page-section .container {
  padding: 0;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flow-root;
  box-shadow: 0 2px 16px rgba(26, 38, 92, 0.2);
}

.nav-top-strip {
  background: var(--navy);
  height: 38px;
}

.nav-main {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(26, 38, 92, 0.10);
  position: relative;
  z-index: 100;
}


.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  position: relative;
}

/* Logo — navy box, starts at bottom edge of top strip, overlaps 16px below nav bar */
.nav-logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 110;
}

.nav-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 84px;
  padding-bottom: 16px;
  background: var(--navy);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(26, 38, 92, 0.35);
}

.nav-logo img {
  max-width: 124px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Nav links */
.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
  display: block;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a.active::after {
  background: var(--yellow);
  transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 112;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu open */
.site-nav.open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid var(--rule);
  box-shadow: 0 8px 24px rgba(26, 38, 92, 0.15);
  z-index: 109;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 16px 0;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-address {
  margin-top: 12px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-address svg {
  flex-shrink: 0;
}

.footer-address a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-address a:hover {
  color: var(--yellow);
}

.footer-col li:has(svg) {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.footer-col li svg {
  flex-shrink: 0;
  position: relative;
  top: 2px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--yellow);
}

.footer-bottom .designed-by,
.footer-bottom .designed-by:hover {
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 16px;
}

/* --- Page Header --- */
.page-header {
  padding: 32px 16px;
  margin-top: 70px;
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.page-header .container {
  padding: 0;
}

.page-header h1 {
  margin-top: 4px;
}

/* --- Post Preview Cards (Homepage) --- */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.post-preview {
  position: relative;
}

.post-preview-image {
  width: 33.333%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.post-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-preview-body {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.333%;
  right: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
}

/* Text-only posts (no image): body flows full-width instead of overlaying the image */
.post-preview--text .post-preview-body {
  position: static;
  left: 0;
}

/* Per-article: align the cropped preview image to its top edge */
.post-preview--imgtop .post-preview-image img {
  object-position: top;
}

.post-preview-body h2 {
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 10px;
  line-height: 1.3;
  flex-shrink: 0;
}

.post-preview-body h2 a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.post-preview-excerpt {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.post-preview-excerpt p {
  font-size: 14px;
  color: var(--navy-muted);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-preview-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 2px solid var(--yellow);
  margin-top: 12px;
  flex-shrink: 0;
}

.post-preview-links .post-preview-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-muted);
  border-top: none;
  padding-top: 0;
  margin-bottom: 0;
}

.post-preview-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-soft);
  text-decoration: none;
  transition: color var(--transition);
}

.post-preview-links a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-preview-actions {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.link-sep {
  color: var(--yellow);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

a.post-preview-image {
  display: block;
}

/* --- Post Date --- */
.post-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-date::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
}

/* --- Post Detail Page --- */
.post-detail .page-header {
}

.post-detail .page-header h1 {
  font-size: clamp(24px, 3.5vw, 36px);
}

.post-subtitle {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--navy-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.post-content {
  max-width: 920px;
  display: flow-root;
}

.post-content p {
  line-height: 1.8;
  margin-bottom: 1em;
}

.post-content a {
  color: var(--navy-soft);
  font-weight: 500;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-muted);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color var(--transition), text-decoration var(--transition);
}

.back-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.post-content > .back-link:last-child {
  clear: both;
  margin-top: 24px;
}

.post-photo-credit {
  font-size: 13px;
  font-style: italic;
  color: var(--navy-muted);
  margin-top: 16px;
}

.post-content h2 {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 4px;
  clear: both;
}

/* --- Post Media Float --- */
.post-media-float {
  float: left;
  width: 45%;
  margin: 0 24px 16px 0;
}

.post-main-image {
  margin: 0;
}

.post-main-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  min-height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  display: block;
}

/* Image-only posts (no text): show the whole image full-width, not floated/cropped */
.post-media-full {
  margin: 0 0 8px 0;
}

.post-media-full figure {
  margin: 0 0 16px 0;
}

.post-media-full img {
  width: 100%;
  height: auto;
  /* Tyhle tri radky nejsou kosmetika. <figure> ma i tridu .post-main-image a
     `.post-main-image img` ma STEJNOU specificitu jako tenhle blok, takze se
     neprebiji cele — prepise se jen to, co je tady uvedene. Bez nasledujicich
     resetu proto na obrazku dal plati aspect-ratio 4/3 + object-fit: cover
     odtamtud a "cely obrazek" se stejne orizne na vysku. */
  aspect-ratio: auto;
  object-fit: fill;
  min-height: 0;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  display: block;
  cursor: pointer;
}


.post-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* 5 thumbnails per row, flush with the image's right edge */
.post-thumb {
  flex: 0 0 calc((100% - 4 * 8px) / 5);
  width: calc((100% - 4 * 8px) / 5);
  margin: 0;
}

.post-thumb img {
  width: 100%;
  min-height: 48px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  display: block;
  transition: opacity var(--transition);
  background: var(--rule);
  color: transparent;
  font-size: 0;
}

.post-thumb:hover img {
  opacity: 0.8;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 12px;
  z-index: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  padding: 8px 16px;
  line-height: 1;
  z-index: 1;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--yellow);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}

/* --- Post Images (O klubu) --- */
.post-images {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.post-images figure {
  margin: 0;
}

.post-images img {
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  width: 100%;
}

/* --- Content Cards (Mladez, Dospeli) --- */
.card-grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card.highlighted {
  background: var(--yellow-soft);
  border-color: rgba(247, 202, 24, 0.4);
}

.card .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--navy-muted);
  border: 1px solid var(--rule);
  margin-bottom: 12px;
}

.card.highlighted .badge {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}


.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--navy-muted);
  line-height: 1.6;
}

.card-meta {
  border-top: 1px solid var(--rule);
  margin-top: 16px;
  padding-top: 14px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-meta strong {
  font-weight: 600;
  color: var(--navy);
}

/* --- Info Box (Kontakt, O klubu) --- */
.info-box {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-box h3 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.info-box p {
  line-height: 1.8;
}

/* --- Contact Cards --- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-card .role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-muted);
  margin-bottom: 6px;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-card .details {
  font-size: 14px;
  color: var(--navy-muted);
  line-height: 1.8;
}

.contact-card .details a {
  color: var(--navy-soft);
  word-break: break-all;
}

/* --- Section Divider --- */
.section-divider {
  width: 40px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 8px 0 0;
}

/* --- Content Image --- */
.content-image {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
}

.content-image img {
  width: 100%;
}

/* --- Partners --- */
.partners-grid {
  display: grid;
  gap: 20px;
}

.partner-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.partner-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.partner-item p {
  font-size: 14px;
  line-height: 1.6;
}

/* --- Links List --- */
.links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: text-underline-offset var(--transition), text-decoration-color var(--transition);
}

.links-list a:hover {
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.links-list a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Credit Signature --- */
.designed-by {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.designed-by:hover,
.designed-by:focus-visible {
  animation: dby-cursor-hide 2.6s forwards;
}

@keyframes dby-cursor-hide {
  0%, 3.8%    { cursor: pointer; }
  3.9%, 99.9% { cursor: none; }
  100%        { cursor: pointer; }
}

.designed-by__line {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.designed-by__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.designed-by__name {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-family: 'Marcellus', serif;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.dby-l {
  display: inline-block;
  color: #fff;
}

.dby-rest {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 1.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.designed-by:hover .dby-rest,
.designed-by:focus-visible .dby-rest {
  max-width: 6em;
}

.designed-by__domain {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.5s ease-out 0.5s;
}

.designed-by:hover .designed-by__domain,
.designed-by:focus-visible .designed-by__domain {
  opacity: 0.7;
}

/* --- Small screens: stack post previews --- */
@media (max-width: 599px) {
  .post-preview-image {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .post-preview-body {
    position: static;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .post-media-float {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }
}

/* --- Pagination (Aktuality listing) --- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 44px;
}

.pagination .page-nums {
  display: inline-flex;
  gap: 6px;
}

.pagination .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.pagination a.page-num:hover {
  border-color: var(--navy);
}

.pagination .page-num.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pagination .page-step {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.pagination .page-step:hover {
  color: var(--navy-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Tablet (768px) --- */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .page-section {
    padding: 64px 24px;
  }

  .page-header {
    padding: 40px 24px;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .site-footer {
    padding: 56px 24px 0;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .designed-by__domain {
    left: auto;
    right: 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Desktop (1024px) --- */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .page-section {
    padding: 80px 40px;
  }

  .page-header {
    padding: 48px 40px;
  }

  .nav-top-strip {
    height: 38px;
  }

  .nav-inner {
    padding: 0 40px;
    height: 68px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: static;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    width: 100%;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links li:nth-child(2) { margin-right: 120px; }
  .nav-links li:nth-child(3) { margin-left: 120px; }

  .nav-links a {
    display: inline-block;
  }

  .nav-logo a {
    width: 200px;
    height: 84px;
    padding-bottom: 16px;
  }

  .nav-logo img {
    max-width: 174px;
    max-height: 52px;
  }

  .site-footer {
    padding: 64px 40px 0;
  }

  .footer-grid {
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-col {
    gap: 48px;
  }
}
