:root {
  --primary-color: #252423;
  --text-color: #333;
  --background-color: #c9c7c3;
  --accent-color: #000;
  --accent-hover: #333;
  --link-hover-color: var(--primary-color);
  --footer-background-color: #c9c7c3;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 1rem;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
  z-index: 100;
}
.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.navbar-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
  margin: 0 auto;
}
.logo-navbar {
  height: 40px;
  width: auto;
}
#nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  font-weight: 600;
}
#nav-links li a {
  position: relative;
  padding: 0.25rem 0;
}
#nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
#nav-links li a:hover::after {
  transform: scaleX(1);
}
.toggle {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  width: 100%;
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  color: var(--accent-color);
  padding: 2rem 1rem;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.avatar {
  width: 13rem;
  min-width: 13rem;
  border-radius: 50%;
  background-size: cover;
  background-position: center center;
  margin: 0 auto 1rem;
  margin-top: 3rem;
}
.intro-text {
  font-size: clamp(0.9rem, 3vw, 1.25rem);
  margin-bottom: 1rem;
  line-height: 1;
}
.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1;
}
.bold {
  font-weight: bold;
}
.highlight {
  background: var(--accent-color);
  color: #fff;
  padding: 0 10px;
  margin-top: 8px;
  display: inline-block;
}
.description {
  font-size: clamp(0.9rem, 4vw, 1.25rem);
  margin: 1rem 0 2rem 0;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  background: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s;
}
.btn:hover {
  background: var(--accent-hover);
}
.icon {
  margin-left: 8px;
  vertical-align: middle;
  height: 24px;
  width: 24px;
}

/* Sections & Fade-in */
section {
  padding: 2.5rem 1rem;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  visibility: hidden;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Typography */
h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Pricing */
.pricing ul {
  list-style: none;
}
.pricing li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--footer-background-color);
  font-size: 0.9rem;
}

/* Utility */
.container {
  margin: 0 auto;
  width: 100%;
}
.mt-15 {
  margin-top: 15px;
}
.mb-15 {
  margin-bottom: 15px;
}

/* Offer Grid */
.offer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.2rem 0 2rem;
}
.offer-item {
  max-width: 344px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--footer-background-color);
  text-align: left;
}
.offer-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.offer-item p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  margin-top: 1rem;
  background: #fff;
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--footer-background-color);
  border-bottom: 1px solid var(--footer-background-color);
}
.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.contact-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}
.phone-number {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}
.phone-number:hover {
  color: var(--accent-hover);
}
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-info {
  flex: 1;
  font-size: 1rem;
  color: var(--text-color);
}
.contact-info h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.contact-info p {
  margin-bottom: 1rem;
}
.contact-info a {
  color: var(--primary-color);
}
.contact-info a:hover {
  text-decoration: underline;
}
.contact-map {
  flex: 1;
}
.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* Gallery Section */
.gallery-section {
  padding: 4rem 1rem;
  background-color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0 auto;
}
.gallery-item {
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  height: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.gallery-item.img1 {
  background-image: url("Zdjecie_1.jpg");
}
.gallery-item.img2 {
  background-image: url("Zdjecie_2.jpg");
}
.gallery-item.shifted {
  transform: translateY(40px);
}

/* Back-to-top Button */
#back-to-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 48px;
  height: 48px;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}
#back-to-top.show {
  display: flex;
  opacity: 1;
}
#back-to-top:hover {
  background: #0055aa;
}

/* Media Queries */
@media (max-width: 1024px) {
  .offer-item {
    max-width: 336px;
  }
}
@media (max-width: 768px) {
  #nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--footer-background-color);
  }
  #nav-links li {
    padding: 0 2rem;
  }
  .toggle {
    display: block;
  }
  .navbar.active #nav-links {
    display: flex;
  }
  .navbar.active {
    background-color: #fff;
    border-bottom: 1px solid var(--footer-background-color);
  }
  .avatar {
    width: 10rem;
    min-width: 10rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.shifted {
    transform: none;
  }
  .offer-item {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
  .contact-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}
@media (min-width: 1200px) and (max-width: 1600px) {
  .hero-content {
    padding: 0 2rem;
  }
  .avatar {
    width: 12rem;
  }
  .intro-text {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
  }
  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 4rem);
  }
  .description {
    font-size: clamp(0.9rem, 3.5vw, 1.15rem);
    margin: 1rem 0 1.5rem;
  }
  .btn {
    padding: 0.65rem 1.3rem;
  }
}
@media (max-height: 800px) {
  .hero {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .hero-content {
    justify-content: flex-start;
  }
  .avatar {
    width: 10rem;
    margin-bottom: 0.75rem;
  }
  .intro-text {
    margin-bottom: 0.5rem;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
  }
  .description {
    font-size: clamp(0.85rem, 4vw, 1.1rem);
    margin: 0.5rem 0 1rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}
