/* ========================== */
/*     CSS RESET & BASES      */
/* ========================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f7f7f7;
  color: #1a1a1a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.005em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
::selection {
  background: #1a1a1a;
  color: #fff;
}

/* ========================== */
/*         BRAND FONTS        */
/* ========================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #21242A;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #1a1a1a;
  font-weight: 700;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h4 { font-size: 1.125rem; margin-bottom: 10px; }

p, li {
  font-size: 1rem;
  color: #36393f;
  line-height: 1.7;
}
strong { font-weight: 700; color: #1a1a1a; }
ul li, ol li { margin-bottom: 10px; }

.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

/* ========================== */
/*        GENERAL LAYOUT      */
/* ========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.content-wrapper {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.07), 0 1.5px 7px rgba(65,89,116,0.03);
  padding: 40px 32px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ========================== */
/*        HEADER/NAV          */
/* ========================== */
header {
  background: #141416;
  color: #fff;
  border-bottom: 2px solid #e9e9ed;
  box-shadow: 0 2px 12px rgba(20,20,22,0.05);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img[alt="Yoga na Czasie"] {
  height: 50px;
  margin-right: 36px;
}
header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #fff;
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
header nav a:hover,
header nav a.active {
  color: #415974;
}

.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 50px;
  background: #fff;
  color: #111;
  padding: 12px 32px;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(33,33,33,0.07);
  margin-left: 32px;
  transition: background 0.18s, color 0.18s, box-shadow 0.23s;
  border: 2px solid #fff;
  outline: none;
}
.cta-btn:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #415974;
  box-shadow: 0 4px 22px rgba(26,26,26,0.09);
}
.cta-btn.secondary {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  margin-left: 0;
}
.cta-btn.secondary:hover {
  background: #fff;
  color: #1a1a1a;
  border-color: #415974;
}

/* Burger Button (Mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-left: 20px;
  cursor: pointer;
  z-index: 1006;
  transition: color 0.19s;
}
.mobile-menu-toggle:focus {
  color: #415974;
  outline: 2px solid #415974;
}

/* ============================ */
/*      MOBILE NAVIGATION       */
/* ============================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,26,26,0.96);
  z-index: 1005;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 18px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus {
  color: #415974;
  outline: 2px solid #415974;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  padding: 10px 0;
  border-radius: 4px;
  transition: color 0.17s, background 0.21s;
}
.mobile-nav a:hover {
  color: #415974;
  background: #fff;
}

/* ==================== */
/*   MAIN STRUCTURE     */
/* ==================== */
main {
  background: #fafafe;
  min-height: 60vh;
  padding-bottom: 40px;
}

/* ========================== */
/*       CARD COMPONENTS      */
/* ========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(65, 89, 116, 0.09), 0 1px 3px rgba(0,0,0,0.03);
  padding: 32px 24px;
  transition: box-shadow 0.18s, transform 0.18s;
  min-width: 260px;
  flex: 1 1 320px;
}
.card:hover {
  box-shadow: 0 7px 30px rgba(65, 89, 116, 0.16), 0 4px 13px rgba(0,0,0,0.03);
  transform: translateY(-4px) scale(1.012);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(34,34,34,0.09);
  margin-bottom: 20px;
  border-left: 4px solid #415974;
  transition: box-shadow 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px rgba(41, 41, 41, 0.12);
}
.testimonial-card p {
  font-size: 1.09rem;
  line-height: 1.68;
  color: #171b1f;
  font-style: italic;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #415974;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fafafe;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(20,20,22,0.05);
  padding: 20px 18px;
  min-width: 200px;
}

/* ============================= */
/*        FLEX FEATURE GRIDS      */
/* ============================= */
/* .feature-grid for index.php, .value-grid for about, .benefits-grid, .class-type-grid, .featured-articles */
.feature-grid, .value-grid, .benefits-grid, .class-type-grid, .featured-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 10px;
}
.feature-grid > div, .value-grid > div, .benefits-grid > div, .class-type-grid > div, .featured-articles > div {
  flex: 1 1 230px;
  min-width: 210px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(20,20,22,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 16px 22px 22px;
  transition: box-shadow 0.17s, transform 0.18s;
  margin-bottom: 8px;
}
.feature-grid > div:hover,
.value-grid > div:hover,
.benefits-grid > div:hover,
.class-type-grid > div:hover,
.featured-articles > div:hover {
  box-shadow: 0 4px 18px rgba(65, 89, 116, 0.16), 0 1px 3px rgba(0,0,0,0.03);
  transform: translateY(-2px) scale(1.012);
}
.feature-grid img,
.value-grid img,
.benefits-grid img,
.class-type-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  filter: grayscale(100%) contrast(1.05);
  opacity: 0.95;
}
.featured-articles {
  margin-bottom: 28px;
}
.article-tile {
  min-width: 240px;
  padding: 20px 20px 16px 20px;
  border-radius: 12px;
  background: #fafbfc;
  border: 1.5px solid #e7e9ec;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.02);
  transition: border-color 0.19s, box-shadow 0.18s;
}
.article-tile a {
  margin-top: 12px;
  font-weight: 600;
  color: #415974;
  text-decoration: underline;
  font-size: 1.01rem;
  transition: color 0.18s;
}
.article-tile a:hover {
  color: #111;
}

/* ======================= */
/*         FORMS           */
/* ======================= */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #e5e6e7;
  padding: 10px 12px;
  background: #fafbfc;
  color: #222;
  margin-bottom: 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #415974;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  margin-bottom: 5px;
  color: #1a1a1a;
  font-weight: 600;
}

/* ============== */
/*    TABLES      */
/* ============== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 18px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(20,20,22,.04);
}
thead {
  background: #171b1f;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}
table th, table td {
  text-align: left;
  padding: 13px 12px;
}
table th {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border-bottom: 3px solid #415974;
}
table td {
  font-size: 1rem;
  border-bottom: 1.5px solid #e7e8eb;
  color: #282828;
}
tbody tr:last-child td { border-bottom: none; }

caption {
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #36393f;
  margin-bottom: 8px;
  font-weight: 600;
}

/* =============== */
/*     FOOTER      */
/* =============== */
footer {
  background: #141416;
  color: #fff;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border-top: 2px solid #ececec;
  margin-top: 40px;
  padding: 40px 0 20px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.015em;
  font-size: 1.01rem;
  padding: 6px 0;
}
footer nav a:hover {
  color: #415974;
}
footer address {
  font-style: normal;
  margin-top: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #bfc4cc;
}
footer img {
  vertical-align: middle;
  width: 18px;
  margin-right: 8px;
}
footer p {
  margin-top: 10px;
  color: #dedede;
  font-size: 0.95rem;
}

/* ==============
   COOKIE BANNER
=============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: rgba(251,251,251,0.95);
  color: #131316;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  box-shadow: 0 -4px 14px rgba(60,60,62,0.09);
  font-size: 1.02rem;
  border-top: 1.5px solid #ececec;
  justify-content: center;
  opacity: 1;
  transform: translateY(0%);
  transition: opacity 0.3s, transform 0.36s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 7px;
  padding: 8px 22px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 7px rgba(40,55,90,0.04);
  cursor: pointer;
  background: #141416;
  color: #fff;
  border: 1.5px solid #141416;
  transition: background 0.20s, color 0.17s, border-color 0.22s;
  outline: none;
}
.cookie-btn.secondary {
  background: #f6f6f7;
  border-color: #d7dbe0;
  color: #181a20;
}
.cookie-btn.secondary:hover {
  background: #fff;
  color: #415974;
}
.cookie-btn.settings {
  background: #fff;
  color: #415974;
  border-color: #415974;
}
.cookie-btn.settings:hover {
  background: #415974;
  color: #fff;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40,43,51,0.43);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.33s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #141416;
  border-radius: 16px;
  box-shadow: 0 12px 50px rgba(41,41,51,0.18);
  padding: 38px 36px 32px 36px;
  width: 95%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.22rem;
  margin-bottom: 6px;
}
.cookie-modal-content ul {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  color: #16181c;
  margin-bottom: 0;
}
.cookie-switch {
  margin-left: auto;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.7rem;
  background: none;
  color: #415974;
  border: none;
  cursor: pointer;
  transition: color 0.14s;
  padding: 0;
  line-height: 1;
}
.cookie-modal-close:focus {
  color: #111;
  outline: 2px solid #415974;
}

/* Switch control styles for modal */
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch label {
  display: block;
  width: 38px;
  height: 21px;
  background: #e7e9ee;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.cookie-switch label:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: #415974;
  border-radius: 50%;
  position: absolute;
  top: 1.5px; left: 1.5px;
  transition: left 0.18s, background 0.18s;
}
.cookie-switch input[type="checkbox"]:checked + label {
  background: #415974;
}
.cookie-switch input[type="checkbox"]:checked + label:after {
  left: 18px;
  background: #fff;
}
.cookie-switch label[aria-disabled="true"],
.cookie-switch input[type="checkbox"]:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============== */
/* RESPONSIVE     */
/* ============== */
@media (max-width: 1100px) {
  .container { max-width: 960px; }
}
@media (max-width: 900px) {
  .container { max-width: 100%; }
  .content-wrapper { padding: 32px 16px; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  header .container {
    padding: 0 10px 0 10px;
    min-height: 62px;
    flex-direction: row;
    gap: 0;
  }
  .content-wrapper {
    padding: 24px 4px 24px 8px;
  }
  .section {
    padding: 24px 4px;
  }
  .feature-grid, .value-grid, .benefits-grid, .class-type-grid, .featured-articles, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 9px;
    padding: 14px 9px;
  }
}
@media (max-width: 650px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.36rem; }
  header img[alt="Yoga na Czasie"] { height: 38px; }
  .cta-btn { font-size: 1rem; padding: 8px 18px; }
  .footer .container { padding: 0 8px; }
  .cookie-banner { padding: 18px 10px; font-size: 0.95rem; gap: 10px; }
}
@media (max-width: 540px) {
  .cookie-modal-content { padding: 18px 6px 18px 8px; }
}

/* =======================
 *  HIDE DESKTOP NAV ON MOBILE
 * ======================= */
@media (max-width: 990px) {
  header nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  header nav,
  .cta-btn {
    display: block;
  }
}

/* ================ */
/* MISC UTILITIES   */
/* ================ */
.gap-20 { gap: 20px; }
.mt-40 { margin-top: 40px; }
.mt-20 { margin-top: 20px; }
.mb-28 { margin-bottom: 28px; }

/* ================ */
/*    MAP PLACEHOLDER */
/* ================ */
.map-embed {
  background: #e9eaf0;
  border: 1px solid #c1c3cc;
  border-radius: 8px;
  color: #555a65;
  font-style: italic;
  padding: 32px;
  margin-top: 12px;
  text-align: center;
  font-size: 1rem;
  min-width: 200px;
}

/* ================ */
/*   ADDITIONAL UX  */
/* ================ */
::-webkit-scrollbar {
  width: 8px;
  background: #ecedef;
}
::-webkit-scrollbar-thumb {
  background: #c3c3cb;
  border-radius: 6px;
}

/* ============= */
/*   SELECT UX   */
/* ============= */
select {
  appearance: none;
  -webkit-appearance: none;
  background: #fafbfc url("data:image/svg+xml,%3Csvg width='9' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.5 1.5l4 3 4-3' stroke='%23415974' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center/12px auto;
  padding-right: 36px;
}

/* ================ */
/* LINKS - ACCESS   */
/* ================ */
a:focus {
  outline: 2.5px solid #415974;
  outline-offset: 2px;
}

/* ================ */
/*   ANIMATIONS     */
/* ================ */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.feature-grid > div, .value-grid > div, .benefits-grid > div, .class-type-grid > div, .featured-articles > div, .card {
  animation: fadeInUp 0.7s cubic-bezier(.34,1.56,.64,1) both;
}

/* ================ */
/*    VISUAL MONO   */
/* ================ */
/* Dramatic contrast, monochrome + brand blue accents */
body, .content-wrapper, .card, .feature-item, .feature-grid > div, .value-grid > div,
.benefits-grid > div, .class-type-grid > div, .featured-articles > div {
  background: #fff;
}
header, footer {
  background: #141416;
}
h1, h2, h3, h4 { color: #111; }
h1 span, h2 span, .cta-btn, .article-tile a, .testimonial-card strong { color: #415974; }
.cta-btn:hover, .cta-btn.secondary:hover, .cookie-btn.settings:hover, .mobile-menu-toggle:focus { background: #111; color: #fff; }

/* ================ */
/*  FOCUS VISIBLE   */
/* ================ */
.cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid #415974;
  outline-offset: 2px;
}

/* ================ */
/*    PRINT STYLES  */
/* ================ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { color: #111 !important; background: #fff !important; }
}
