:root {
  --accent: #DA0004; /* czerwony akcent */
  --dark: #181818;   /* ciemny, prawie czarny */
  --light: #F6F6F6;  /* jasne tło */
}

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

html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

/* KONTAINER z responsywnymi odstępami */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 5vw, 32px);
  width: 100%;
}

/* HEADER */
.site-header {
  background: var(--dark);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 20px;
}

.logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: 0.2s;
}

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

.lang-switch {
  display: flex;
  gap: 8px;
  margin-right: 20px;
}

.lang-switch a {
  font-size: 1.4rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  transition: 0.2s;
}

.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

/* HERO */
.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  margin-bottom: 1rem;
  color: #444;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* BUTTONS */
.btn {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: 0.2s;
}

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

.btn:hover {
  opacity: 0.85;
}

.btn.outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--dark);
}

.btn.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* FOOTER */
.site-footer {
  background: #181818;
  color: #F6F6F6;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left,
.footer-middle,
.footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.footer-left p {
  margin: 5px 0;
  color: #ccc;
}

.footer-middle h4,
.footer-right h4 {
  color: #DA0004;
  margin-bottom: 10px;
}

.footer-middle p,
.footer-right ul li a {
  color: #F6F6F6;
}

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

.footer-right ul li {
  margin-bottom: 8px;
}

.footer-right ul li a:hover {
  color: #DA0004;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #999;
}

/* ERROR PAGE */
.error-page {
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.error-page p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* SERVICES */
.services {
  padding: 2rem 0;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tile {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tile h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.tile p {
  color: #444;
  font-size: 0.95rem;
}

/* POPUP LANGUAGE */
.lang-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lang-popup.hidden {
  display: none;
}

.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.popup-buttons button {
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.popup-buttons button:hover {
  transform: scale(1.2);
  background-color: #DA0004;
  color: #fff;
}

/* CONTACT PAGE */
.contact {
  padding: 2rem 0;
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-hours ul {
  list-style: none;
  padding: 0;
}

.contact-hours li {
  margin-bottom: 0.5rem;
  color: #444;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: #444;
}

.contact-info strong {
  color: var(--dark);
}

.contact-map {
  background: #eee;
  height: 300px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-style: italic;
}

/* ABOUT PAGE */
.about {
  padding: 2rem 0;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

/* poprawione formatowanie tekstu */
.about-text,
.owner-text {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  max-width: 70ch;
  margin-inline: auto;
}

.about-text p,
.owner-text p {
  margin-bottom: 1rem;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* OWNER SECTION */
.owner-section {
  margin-top: 3rem;
}

.owner-section h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.owner-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .lang-switch {
    margin: 0.5rem 0 0 20px;
    font-size: 1.2rem;
  }

  .contact-grid,
  .about-grid,
  .owner-grid {
    grid-template-columns: 1fr;
  }

  .owner-image img {
    max-width: 250px;
  }
}

/* DODATKOWE MARGINESY NA MOBILE */
@media (max-width: 600px) {
  main.about.container {
    padding-inline: clamp(24px, 8vw, 40px);
  }
}

/* BANNER OPENING */
.opening-banner {
  background: #DA0004;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  animation: slideDown 0.8s ease forwards, pulseColor 3s infinite ease-in-out;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseColor {
  0% { background-color: #DA0004; }
  25% { background-color: #ff1a1a; }
  50% { background-color: #b00003; }
  75% { background-color: #ff1a1a; }
  100% { background-color: #DA0004; }
}

.opening-banner::before,
.opening-banner::after {
  content: "🎉 🎊 🎉";
  position: absolute;
  top: 50%;
  font-size: 1.2rem;
  animation: confettiFall 3s infinite linear;
}

.opening-banner::before { left: 10px; }
.opening-banner::after { right: 10px; }

@keyframes confettiFall {
  0%   { transform: translateY(-150%) rotate(0deg); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(150%) rotate(360deg); opacity: 0; }
}
