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

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff8e8;
  background:
    linear-gradient(rgba(35, 22, 15, 0.20), rgba(18, 34, 22, 0.42)),
    url("beskydy.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
}

header {
  width: 100%;
  padding: 26px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.name {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff3bf;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.date {
  font-size: 17px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff8e8;
  background: rgba(68, 82, 39, 0.42);
  border: 1px solid rgba(255, 224, 140, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

main {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 24px 90px;
}

.card {
  max-width: 940px;
  width: 100%;
  text-align: center;
  padding: 42px 38px;
  border-radius: 34px;
  background: rgba(38, 54, 28, 0.42);
  border: 1px solid rgba(255, 224, 140, 0.42);
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.35);
  animation: fadeIn 1s ease both;
}

h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.18;
  margin-bottom: 22px;
  white-space: nowrap;
  color: #fff4b8;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.55);
}

.quote-box,
.weather {
  margin-top: 22px;
  padding: 22px 26px;
  border-radius: 24px;
  background: rgba(255, 245, 202, 0.20);
  border: 1px solid rgba(255, 235, 168, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.quote {
  font-size: clamp(19px, 2.6vw, 28px);
  font-style: italic;
  line-height: 1.45;
  color: #fff9df;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.quote-author {
  margin-top: 12px;
  font-size: 16px;
  color: #ffe28a;
  opacity: 0.96;
}

.weather h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #fff3bf;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.forecast {
  display: grid;
  grid-template-columns: repeat(7, minmax(74px, 1fr));
  gap: 10px;
}

.day-card {
  padding: 13px 8px;
  border-radius: 18px;
  background: rgba(29, 68, 38, 0.48);
  border: 1px solid rgba(255, 224, 140, 0.26);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.day-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 5px;
  color: #ffe28a;
}

.weather-icon {
  font-size: 31px;
  margin: 4px 0;
}

.temp {
  font-size: 15px;
  font-weight: 800;
  color: #fff9df;
}

.rain {
  font-size: 12px;
  color: #e7f7ff;
  opacity: 0.95;
  margin-top: 4px;
}

.weather-note,
.weather-error {
  margin-top: 11px;
  font-size: 12px;
  color: #f8edc5;
  opacity: 0.86;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  padding: 12px;
  font-size: 15px;
  color: #fff3bf;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 800px) {
  body {
    background-attachment: scroll;
  }

  header {
    padding: 22px;
    flex-direction: column;
    gap: 14px;
  }

  main {
    padding: 22px 16px 40px;
  }

  .card {
    padding: 32px 20px;
  }

  h1 {
    white-space: normal;
  }

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

  footer {
    position: relative;
    bottom: auto;
  }
}
.name-block{
    display:flex;
    flex-direction:column;
}

.subtitle{
    font-size:14px;
    color:#ffe28a;
    margin-top:4px;
    letter-spacing:1px;
    text-shadow:0 2px 8px rgba(0,0,0,0.45);
}

.email{
    margin-top:6px;
}

.email a{
    color:#fff0a8;
    text-decoration:none;
    font-size:14px;
    text-shadow:0 2px 8px rgba(0,0,0,0.45);
}

.email a:hover{
    text-decoration:underline;
}
