@charset "utf-8";
/* CSS Document */

 :root {
      --font-size: 16px;
      --line-height: 1.5;
      --bg-color: linear-gradient(to bottom, #4f3f66 0, #3b2e5f 25%, #1f1f59 50%, #001253 75%, #00004e 100%);
      --text-color: #ffffff;
	  --link-color: #333333;
      --tile-bg-color: rgba(255, 255, 255, 0.8);
      --tile-text-color: #000000;
      --contrast-bg-color: linear-gradient(180deg, #ffff77 0, #ffff6a 16.67%, #ffff5f 33.33%, #f2f253 50%, #c4d148 66.67%, #9db43f 83.33%, #7c9937 100%);
      --contrast-text-color: #000000;
	  --contrast-link-color: #ffffff;
      --contrast-tile-bg-color: rgba(0, 0, 0, 0.8);
      --contrast-tile-text-color: #ffffff;
    }

    body {
		font-family: 'Inter', Arial, serif;
min-height: 100vh;
		width: 100%;
		box-sizing: border-box;
		background-repeat: no-repeat;
      font-size: var(--font-size);
      line-height: var(--line-height);
      background: var(--bg-color);
      color: var(--text-color);
      margin: 0;
      padding: 0;
      transition: all 0.3s ease;
    }
		.wrapper {max-width: 1850px; margin: 0 auto; padding: 0 5px;}
		a {text-decoration: underline; color: var(--link-color); }
.p1 {font-size: 1.5em;}
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
      background: transparent;
      border-bottom: 2px solid rgba(255, 255, 255, 0.3);
      flex-wrap: wrap;
    }

    header img {
      height: 50px;
      flex-shrink: 0;
      transition: all 0.3s ease;
    }

    nav {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    nav a {
      text-decoration: none;
      color: var(--text-color);
      font-size: inherit;
    }

    .controls {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .controls button {
      padding: 5px 10px;
      font-size: inherit;
      cursor: pointer;
      border: 1px solid #ccc;
      background-color: rgba(255, 255, 255, 0.8);
      color: #000;
      border-radius: 5px;
      transition: all 0.3s ease;
    }

    .main-heading {
      text-align: center;
      margin: 30px 0;
      font-size: 3.5em;
    }
	.heading-2 {
      text-align: center;
      margin: 20px 0;
      font-size: 2em;
    }
    .tiles {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }
    .tile {
      background-color: var(--tile-bg-color);
      color: var(--tile-text-color);
      border: 1px solid rgba(0, 0, 0, 0.2);
      border-radius: 8px;
      padding: 20px;
      width: 600px;
      text-align: center;
      font-size: inherit;
      transition: all 0.3s ease;
    }
		.tile-50 {min-width: 50%;}
		.tile-50 img {max-width: 100%;}
.video { display:block; margin:0 auto; max-width:270px; height:auto; float: none;}

		footer {margin-top: 70px; background-color: var(--tile-bg-color); color: var(--tile-text-color); padding: 20px 10px; border-top: 2px solid rgba(0, 0, 0, 0.3);}
		footer .wrapper {display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px;}
		footer p {max-width: 600px; text-align: center;}
.deklaracja a { padding: 15px; border-radius: 10px; border: 2px #fff solid;}
.tile-max {
	  margin: 0 20px 20px 20px;
      background-color: var(--tile-bg-color);
      color: var(--tile-text-color);
      border: 1px solid rgba(0, 0, 0, 0.2);
      border-radius: 8px;
      padding: 20px;
      width: 100%;
      text-align: left;
      font-size: inherit;
      transition: all 0.3s ease;
    }
	.tile-max h2 {
      text-align: left;
      margin: 20px 0;
      font-size: 2em;
    }
.tile-max-tlo {background-color: rgba(255, 255, 255, 0.4); padding: 10px 20px;
}
/* butony ze strony Mieszkania trenningowe */
 .button-container {
            display: flex;
	        justify-content: center;
            align-items: center;
            gap: 16px;
	 margin-bottom: 20px;
        }

        .button {
            padding: 12px 24px;
            background: var(--tile-bg-color);
		    color: var(--tile-text-color);
            border: none;
            border-radius: 4px;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
            transition: background-color 0.3s;
			width: 25%;
        
        }

        /*.button:hover {
            background-color: #0056b3;
        }*/

        .button:focus {
            outline: 3px solid #0056b3;
            outline-offset: 2px;
        }

        .button:active {
            background-color: #004080;
        }

        @media (max-width: 600px) {
            .button-container {
                flex-direction: column;
                align-items: center;
            }
			.button {
			width: 80%;
			}
        }
/* koniec butony z Mieszkania treningowe */
/* Galeria */
 .gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            justify-content: center;
        }

        .thumbnail {
            width: 250px;
            height: 167px;
            cursor: pointer;
            border: 2px solid transparent;
            border-radius: 4px;
            transition: border-color 0.3s;
        }

        .thumbnail:hover,
        .thumbnail:focus {
            border-color: #007BFF;
            outline: none;
        }

        .large-image-container {
            margin-top: 24px;
            text-align: center;
        }

        .large-image {
            max-width: 90%;
            max-height: 90vh;
            border-radius: 4px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        @media (max-width: 600px) {
            .thumbnail {
                width: 100px;
                height: 66px;
            }

            .large-image {
                max-width: 100%;
            }
        }
/* koniec Galeria */
    @media (max-width: 768px) {
      header {
        flex-direction: column;
        align-items: center;
      }

      nav {
        justify-content: center;
        margin: 10px 0;
      }

      .controls {
        justify-content: center;
      }
    }

    @media (max-width: 480px) {
      nav {
        gap: 5px;
      }

      .controls button {
        padding: 5px;
      }
		.main-heading {
      margin: 20px 0;
      font-size: 2.5em;
    }
		.tile-max {
	  margin: 0 10px 20px 10px;
      padding: 10px;
		}
		ul li { margin-left: -20px !important;}
    }