:root {
  --navy: #08253a;
  --gold: #c68a2e;
  --gold-dark: #8a4f16;
  --cream: #f7f0e4;
  --text: #1f1f1f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

.about p {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.9;
  color: #08253a;  
}

body {
  background: linear-gradient(135deg, #2a832f 0%, #c268a4 55%, #37b389 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero {
  background: linear-gradient(135deg, #08253a 0%, #16445f 55%, #8a5a24 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.hero h2 {
  color: white;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  color: var(--gold);
  margin-bottom: 20px;
}

h2 {
  color: var(--navy);
  margin-bottom: 20px;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background: rgba(255,255,255,0.85);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #ddd;
  color: #08253a;
}

.card h3 {
  margin-top: 0;
  color: var(--gold-dark);
}

.card-link {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  color: var(--gold-dark);
  font-weight: bold;
}

.card-link:hover {
  text-decoration: underline;
}

.topics {
  display: grid;
  gap: 15px;
}

.topics div {
  background: rgba(255,255,255,0.9);
  padding: 18px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  color: #08253a;  
}

.documentation {
  background: var(--navy);
  color: white;
  max-width: none;
  text-align: center;
}

.documentation h2 {
  color: var(--gold);
}

.contact {
  background: rgba(255,255,255,0.92);
  border-radius: 20px;
  color: #08253a;
}

form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

input,
textarea {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox input {
  width: auto;
}

.btn,
button {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
button:hover {
  background: var(--gold-dark);
}

footer {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 20px;
}

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

  h1 {
    font-size: 38px;
  }
}
.article {
  max-width: 850px;
  font-size: 18px;
}

.article h2 {
  margin-top: 40px;
}

.article {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.article h3 {
  margin-top: 30px;
  margin-bottom: 12px;
}

.article p {
  line-height: 1.8;
  margin-bottom: 20px;
}

.article ul,
.article ol {
  margin-bottom: 24px;
  padding-left: 30px;
}

.article li {
  margin-bottom: 10px;
}

.article blockquote {
  margin: 30px 0;
  padding: 15px 25px;
  border-left: 5px solid var(--gold);
  background: rgba(255, 255, 255, 0.65);
}

.article a {
  color: var(--gold-dark);
  font-weight: 600;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  margin-bottom: 8px;
}

.article-date {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 0;
  margin-bottom: 18px;
}

.article-card .card-link {
  margin-top: auto;
  padding-top: 15px;
}
.card-featured {
  position: relative;

  background:
    linear-gradient(
      135deg,
      rgba(255, 248, 235, 0.98),
      rgba(246, 232, 205, 0.98)
    );

  border: 2px solid var(--gold);

  box-shadow:
    0 8px 24px rgba(80, 55, 25, 0.14);

  transform: translateY(-3px);
}
.featured-badge {
  display: inline-block;

  background: var(--gold);
  color: white;

  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.8px;

  padding: 6px 12px;
  margin-bottom: 15px;

  border-radius: 20px;
}
.card-featured h3 {
  color: var(--navy);
  font-size: 24px;
}

.card-featured .card-link {
  display: inline-block;

  margin-top: 18px;
  padding: 10px 20px;

  background: var(--gold);
  color: white;

  border-radius: 8px;

  text-decoration: none;
  font-weight: 600;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.card-featured .card-link:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}
@media (min-width: 769px) {
  .card-featured {
    grid-column: 1 / -1;
  }
}

.hero-location {
  margin-top: 12px;
  font-weight: 500;
  opacity: 0.95;
}

/* =====================================================
   POLECANE MATERIAŁY / LINK PREVIEW
   ===================================================== */

.links-section {
  padding-top: 70px;
  padding-bottom: 70px;
}


.links-section .section-heading {
  text-align: center;
  margin-bottom: 32px;
}


.links-section-intro {
  max-width: 760px;
  margin: 10px auto 0;
  line-height: 1.7;
}


.links-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;

  max-width: 1100px;
  margin: 0 auto;
}


/* =====================================================
   KAFELEK
   ===================================================== */

.link-preview-card {
  display: flex;
  flex-direction: column;

  overflow: hidden;

  border-radius: 20px;

  border:
    1px solid
    rgba(8, 37, 58, 0.18);

  background:
    rgba(255, 255, 255, 0.92);

  color: var(--navy);

  text-decoration: none;

  box-shadow:
    0 12px 32px
    rgba(0, 0, 0, 0.08);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.link-preview-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 42px
    rgba(0, 0, 0, 0.14);
}


/* =====================================================
   OBRAZ
   ===================================================== */

.link-preview-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: var(--cream);
}


.link-preview-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  /*
     Ważne:
     żadnego rozmycia obrazu.
  */
  filter: none;
  opacity: 1;
}


/* =====================================================
   TREŚĆ
   ===================================================== */

.link-preview-body {
  display: flex;
  flex-direction: column;

  flex: 1;

  padding: 22px;
}


.link-preview-type {
  align-self: flex-start;

  margin-bottom: 10px;

  padding: 5px 10px;

  border-radius: 999px;

  background:
    rgba(198, 138, 46, 0.14);

  color: var(--gold-dark);

  font-size: 0.78rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}


.link-preview-title {
  margin:
    0 0 10px;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.65rem;

  line-height: 1.15;

  color: var(--navy);
}


.link-preview-description {
  margin:
    0 0 20px;

  line-height: 1.6;

  color: var(--text);
}


/* =====================================================
   DOMENA
   ===================================================== */

.link-preview-domain {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-top: auto;
  padding-top: 15px;

  border-top:
    1px solid
    rgba(8, 37, 58, 0.12);

  font-size: 0.9rem;

  font-weight: 600;

  color: var(--navy);
}


.link-preview-domain-icon {
  font-size: 1.1rem;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 640px) {

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


  .link-preview-body {
    padding: 18px;
  }


  .link-preview-title {
    font-size: 1.45rem;
  }

}