:root {
  --warm-sand: #e8d5c4;
  --warm-brown: #a67c52;
  --dark-charcoal: #27352d;
  --cream: #f5f1ed;
  --sage: #9b8b7e;
  --white: #ffffff;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "DM Sans", sans-serif;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--dark-charcoal);
  background-color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-charcoal);
  color: var(--cream);
  padding: 1.5rem 2rem;
  z-index: 10000;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--warm-sand);
}

.cookie-text p {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 600px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background-color: var(--warm-brown);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.btn-cookie-accept:hover {
  background-color: #8f6943;
  transform: translateY(-2px);
}

.btn-cookie-decline {
  background-color: transparent;
  color: var(--cream);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--sage);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.btn-cookie-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Parallax Section */
.hero-parallax {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  margin-top: 0;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm-sand) 100%);
  will-change: transform;
}

.hero-parallax .parallax-bg {
  background-image: url("1.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-parallax .parallax-bg::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 124, 82, 0.15) 0%, transparent 70%);
}

.hero-parallax .parallax-bg::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 53, 45, 0.08) 0%, transparent 70%);
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle at center, transparent 0%, rgba(232, 213, 196, 0.3) 100%);
  will-change: transform;
}

.hero-parallax .parallax-overlay {
  background: linear-gradient(to bottom, rgba(39, 53, 45, 0.6) 0%, rgba(39, 53, 45, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  padding-top: 0;
  max-width: 900px;
  width: 100%;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--cream);
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--warm-brown);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(166, 124, 82, 0.3);
}

.btn-primary:hover {
  background-color: #8f6943;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(166, 124, 82, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--warm-brown);
  border: 2px solid var(--warm-brown);
}

.btn-secondary:hover {
  background-color: var(--warm-brown);
  color: var(--white);
  transform: translateY(-3px);
}

/* Section Parallax */
.section-parallax {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.section-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark-charcoal);
  font-weight: 600;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--sage);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-section .parallax-bg {
  background: linear-gradient(135deg, var(--warm-sand) 0%, var(--cream) 50%, #d4c4b0 100%);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--dark-charcoal);
}

.about-text p {
  margin-bottom: 2rem;
}

/* How It Works Section */
.howto-section .parallax-bg {
  background: linear-gradient(135deg, var(--cream) 0%, #e0d4c8 50%, var(--warm-sand) 100%);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--warm-brown), var(--sage));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--warm-brown);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(166, 124, 82, 0.3);
  position: relative;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(39, 53, 45, 0.08);
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--dark-charcoal);
}

.timeline-content p {
  color: var(--sage);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Map Section */
.map-section .parallax-bg {
  background: linear-gradient(135deg, var(--warm-sand) 0%, #d4c4b0 100%);
}

.map-wrapper {
  background: var(--white);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 0 15px 60px rgba(39, 53, 45, 0.1);
}

.map-canvas {
  background: var(--cream);
  border-radius: 20px;
  position: relative;
  height: 60vh;
  min-height: 500px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: inset 0 2px 10px rgba(39, 53, 45, 0.05);
}

#polandMap {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

/* Leaflet custom styles */
.leaflet-popup-content-wrapper {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(39, 53, 45, 0.15);
  font-family: var(--font-body);
}

.leaflet-popup-content {
  margin: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.leaflet-popup-tip {
  background: var(--white);
}

.custom-marker {
  background-color: var(--warm-brown);
  border: 4px solid var(--white);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(166, 124, 82, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.custom-marker:hover {
  transform: scale(1.3);
  box-shadow: 0 6px 25px rgba(166, 124, 82, 0.7);
}

/* City popup with moderators list */
.city-popup {
  background: var(--warm-sand);
  border-radius: 16px;
  padding: 1.5rem;
  min-width: 280px;
  box-shadow: 0 8px 30px rgba(39, 53, 45, 0.2);
}

.city-popup-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--dark-charcoal);
  margin-bottom: 1rem;
  font-weight: 600;
}

.city-popup-subtitle {
  font-size: 0.95rem;
  color: var(--sage);
  margin-bottom: 1rem;
  font-weight: 500;
}

.moderators-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.moderator-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.moderator-item:hover {
  background: var(--cream);
  border-color: var(--warm-brown);
  transform: translateX(5px);
}

.moderator-name {
  font-weight: 600;
  color: var(--dark-charcoal);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.moderator-name::before {
  content: "○";
  color: var(--warm-brown);
  font-size: 1.1rem;
}

.moderator-circle {
  font-size: 0.9rem;
  color: var(--sage);
}

.leaflet-popup-content-wrapper.city-popup-wrapper {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.leaflet-popup-content-wrapper.city-popup-wrapper .leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-tip-container {
  display: block;
}

.city-popup-wrapper .leaflet-popup-tip {
  background: var(--warm-sand);
}

.circle-details {
  background: var(--warm-sand);
  border-radius: 20px;
  padding: 2.5rem;
  min-height: 250px;
  margin-top: 2rem;
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--sage);
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--dark-charcoal);
}

.circle-details-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 2rem;
}

.circle-name {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--dark-charcoal);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.circle-info-section {
  margin-bottom: 1.5rem;
}

.circle-info-label {
  font-weight: 600;
  color: var(--dark-charcoal);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.circle-info-value {
  color: var(--sage);
  line-height: 1.6;
  font-size: 1.05rem;
}

.circle-email-link {
  color: var(--warm-brown);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.circle-email-link:hover {
  color: #8f6943;
  text-decoration: underline;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--sage);
  padding: 0.5rem;
  line-height: 1;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--dark-charcoal);
  transform: rotate(90deg);
}

/* Leaders Section - Dodane style dla osobnej sekcji */
.leaders-section .parallax-bg,
.leaders-section .leaders-bg {
  background: linear-gradient(135deg, var(--warm-sand) 0%, var(--cream) 100%);
}

.leaders-cta {
  text-align: center;
  color: var(--dark-charcoal);
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.leaders-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--dark-charcoal);
}

.leaders-cta p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--dark-charcoal);
}

.leaders-cta .btn-primary {
  background-color: var(--warm-brown);
  color: var(--white);
}

.leaders-cta .btn-primary:hover {
  background-color: #8f6943;
  color: var(--white);
}

/* FAQ Section */
.faq-section .parallax-bg {
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm-sand) 50%, #d4c4b0 100%);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(39, 53, 45, 0.08);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(39, 53, 45, 0.12);
}

.faq-question {
  width: 100%;
  padding: 1.75rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark-charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--warm-brown);
}

.faq-icon {
  font-size: 2rem;
  font-weight: 300;
  transition: var(--transition);
  color: var(--warm-brown);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 2rem 2rem;
  color: var(--sage);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Sticky Footer */
.footer-sticky {
  position: relative;
  background-color: var(--dark-charcoal);
  color: var(--cream);
  padding: 4rem 2rem 2rem;
  margin-top: 8rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--warm-sand);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--cream);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--warm-sand);
}

.footer-brand p {
  color: var(--sage);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-circle {
  font-size: 1.5rem;
  color: var(--warm-brown);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--warm-sand);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(232, 213, 196, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--warm-brown);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 213, 196, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
}

.footer-legal a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--warm-sand);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation delays */
[data-delay="0"] {
  animation-delay: 0ms;
}
[data-delay="100"] {
  animation-delay: 100ms;
}
[data-delay="200"] {
  animation-delay: 200ms;
}
[data-delay="300"] {
  animation-delay: 300ms;
}
[data-delay="400"] {
  animation-delay: 400ms;
}
[data-delay="500"] {
  animation-delay: 500ms;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 3px solid var(--warm-brown);
  outline-offset: 3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .hero-parallax {
    min-height: 88vh;
    height: 88vh;
    margin-top: 0;
  }

  .hero-parallax .parallax-bg {
    background-attachment: scroll;
    height: 100%;
    min-height: 88vh;
    max-height: 100vh;
    background-size: cover;
    background-position: center center;
    border-radius: 0;
  }

  .hero-content {
    padding: 1.5rem;
    padding-top: 90px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 350px;
  }

  .section-parallax {
    padding: 5rem 0;
  }

  .section-content {
    padding: 0 1.5rem;
  }

  .timeline::before {
    left: 40px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
  }
  .timeline-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .map-wrapper {
    padding: 2rem 1.5rem;
  }
  .map-canvas {
    height: 50vh;
    min-height: 400px;
  }

  .circle-details {
    padding: 1.5rem;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .parallax-bg,
  .parallax-overlay,
  .hero-content {
    will-change: auto;
  }
}

@media (max-width: 480px) {
  .hero-parallax {
    min-height: 80vh;
    height: 80vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .circle-name {
    font-size: 1.8rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }
}

/* Style dla dwukolumnowego widoku szczegółów kręgu */
.circle-details-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.circle-details-left {
  padding-right: 2rem;
  border-right: 1px solid rgba(166, 124, 82, 0.2);
}

.circle-details-right {
  padding-left: 1rem;
}

.moderator-bio {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
}

.bio-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--dark-charcoal);
  margin-bottom: 1rem;
  font-weight: 600;
}

.bio-text {
  color: var(--sage);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Responsywność dla szczegółów */

/* ===== Modal (popup) formularzy: Zgłoszenie do Kręgu / Dodaj swój Krąg ===== */

.mk-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;              /* przewijanie na mobile */
  -webkit-overflow-scrolling: touch;
}

.mk-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mk-modal-dialog {
  background: var(--warm-sand);
  border-radius: 24px;
  max-width: 520px;
  width: 92%;
  padding: 2.5rem 2.25rem 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.mk-modal-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-charcoal);
}

.mk-modal-intro {
  margin-top: -0.75rem;
  margin-bottom: 1.75rem;
  color: var(--sage);
  font-size: 0.98rem;
}

.mk-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  color: var(--sage);
  transition: var(--transition);
}

.mk-modal-close:hover {
  color: var(--dark-charcoal);
  transform: rotate(90deg);
}

.mk-field {
  margin-bottom: 1rem;
}

.mk-field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--dark-charcoal);
}

.mk-field input,
.mk-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(39, 53, 45, 0.2);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}

.mk-field input:focus,
.mk-field textarea:focus {
  border-color: var(--warm-brown);
  box-shadow: 0 0 0 1px rgba(166, 124, 82, 0.4);
}

.mk-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.mk-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mk-form-hint {
  margin-top: 0.25rem;
  font-size: 0.86rem;
  color: var(--sage);
}

.mk-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.mk-modal-secondary {
  border: none;
  background: transparent;
  color: var(--dark-charcoal);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.4rem 0.6rem;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
  .mk-modal {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .mk-modal-dialog {
    padding: 2rem 1.5rem 1.75rem;
  }

  .mk-modal-actions {
    flex-direction: column;
  }

  .mk-modal-actions .btn,
  .mk-modal-actions .mk-modal-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Responsywność dla szczegółów kręgu */
@media (min-width: 901px) {
  .circle-details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .circle-details-left {
    border-right: 1px solid rgba(166, 124, 82, 0.25);
    padding-right: 2rem;
    margin-bottom: 0;
    border-bottom: none;
  }
  .circle-details-right {
    padding-left: 2rem;
  }
}

@media (max-width: 900px) {
  .circle-details-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .circle-details-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(166, 124, 82, 0.2);
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .circle-details-right {
    padding-left: 0;
  }
}
