@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Includes padding in total width */
}

body {
  height: 100%;
  width: 100%;
  font-family: "Lato", sans-serif;
  background: #ffffff;
  background: linear-gradient(135deg, #f5f7fa 0%, #d9e2f0 100%);
}

section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

h1 {
  font-family: "Tangerine", cursive;
  font-size: 5.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.heading {
  background-color: #fff;
  max-width: 900px;
  margin: 0 auto 80px auto;
  text-align: justify;
  font-size: 1.4rem;
  color: #333;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 12px;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 40% 60%; /* 40% / 60% */
  min-height: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform .2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.card-content p {
  margin: 0;
  line-height: 1.5;
  color: #444;
}

.ctx {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: center;
  font-size: 1.2rem;
  color: #333;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- SMARTFON --- */
@media (max-width: 768px) {

  section {
  width: 100%;
  padding: 0 10px;
  margin: 0 auto;
}
  .cards-wrapper {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .card {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr; /* 50% / 50% */
    min-height: 400px;
  }

  .card-content {
    padding: 15px;
    font-size: 1.2rem;
  }

  .card-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

  .card img {
    height: 100%;
  }
}
