:root {
  --color-accent:      #23747e /*#c05c46*/;
  --color-accent-item: #c13110;
  --color-text:        #333;
  --color-text-light:  #444;
  --color-text-muted:  #555;
  --color-text-faint:  #888;
  --color-text-meta:   #777; /*#999;*/
  --color-border:      #eee;
  --color-footer:      #bbb;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding: 0;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
}

/* Section anchor offset (so scrolled-to section isn't flush against the top) */
section[id] {
  scroll-margin-top: 24px;
}

/* =========================================================
   Navigation: fixed hamburger button + dropdown menu
   ========================================================= */
.nav-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--color-accent);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.nav-toggle:hover {
  background: #f7fafa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: 72px;
  right: 18px;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--color-border);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0.22s;
}
.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0s;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.site-nav a {
  display: block;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: #f3f7f7;
  color: var(--color-accent);
  outline: none;
}

@media (max-width: 640px) {
  .nav-toggle {
    top: 12px;
    right: 12px;
  }
  .site-nav {
    top: 66px;
    right: 12px;
    left: 12px;
    min-width: 0;
  }
  .site-nav a {
    padding: 14px 20px;
    font-size: 15px;
  }
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  text-align: center;
  padding: 40px 24px 32px;
  border-bottom: 3px solid var(--color-accent);
}
header img {
  max-height: 140px;
  max-width: 100%;
}

/* Sections */
section {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 24px;
}

/* About */
.about-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-light);
  margin: 0 0 1em;
  text-align: justify;
}
.about-text:last-child {
  margin-bottom: 0;
}

/* Services */
.service-group {
  margin-bottom: 32px;
}
.service-group:last-child {
  margin-bottom: 0;
}
.service-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent); /*var(--color-text-faint);*/
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--color-border);
}
.service-item:last-child {
  border-bottom: none;
}
.service-meta {
  flex: 1;
}
.service-name {
  font-size: 14px;
  color: var(--color-text);
}
.service-note {
  font-size: 12px;
  color: var(--color-text-meta);
  margin-top: 2px;
}
.service-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent-item);
  white-space: nowrap;
  flex-shrink: 0;
}
.service-item.is-collapsible .service-name {
  cursor: pointer;
  user-select: none;
}
.service-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
  transition:
    max-height 0.45s ease,
    opacity 0.3s ease,
    margin-top 0.45s ease;
}
.service-item.is-open .service-details {
  max-height: 1500px;
  opacity: 1;
  margin-top: 8px;
}
.service-item-toggle {
  display: inline-block;
  margin: 6px 0 0;
  padding: 4px 0;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.service-item-toggle:hover {
  color: #1b5a62;
}
.service-item-toggle:active {
  transform: translateY(1px);
}
.service-item-toggle:focus {
  outline: none;
}
.service-item-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.team-member img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 16px;
  border: 3px solid var(--color-accent);
}
.team-member h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  color: var(--color-text);
}
.team-member p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}
.team-member.is-collapsible img,
.team-member.is-collapsible h3 {
  cursor: pointer;
}
.team-member.is-collapsible h3 {
  user-select: none;
}
.team-member.is-collapsible > p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.45s ease,
    opacity 0.3s ease,
    margin-top 0.45s ease;
}
.team-member.is-collapsible.is-open > p {
  max-height: 1500px;
  opacity: 1;
}
.team-member-toggle {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 0;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.team-member-toggle:hover {
  color: #1b5a62;
}
.team-member-toggle:active {
  transform: translateY(1px);
}
.team-member-toggle:focus {
  outline: none;
}
.team-member-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Closing call-to-action team-member ("Zapraszamy do wspólnej pracy i zabawy!") */
.team-member--invite p {
  text-transform: uppercase;
  color: var(--color-accent-item);
}

/* Contact */
.contact-info {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
  margin: 0;
}
.contact-info a {
  color: var(--color-accent);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

.map-embed {
  margin-top: 16px;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 4px;
  display: block;
}

/* Contact locations */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.contact-location {
  min-width: 0;
}
.contact-location-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-accent);
  background: transparent;
  border: 1.5px solid var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.social-link:hover {
  color: #fff;
  background: var(--color-accent);
  transform: translateY(-2px);
}
.social-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.social-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--color-footer);
  border-top: 1px solid var(--color-border);
}

/* Mobile */
@media (max-width: 640px) {
  header { padding: 28px 16px 24px; }
  section { padding: 36px 0; }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .map-embed {
    height: 240px;
  }
}
