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

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    min-height: 100vh;
    background: url('gradient.png') no-repeat center center fixed;
    background-size: 100% 100%;
    color: #fff;
}

/* Styl dla modala */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    padding: 25px;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    opacity: 1 !important;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    color: #1abc9c;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 20, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-group {
    display: flex;
    align-items: center;
}

.versal-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.nav-separator {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    margin-right: 15px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-left a:hover {
    color: #ddd;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right i {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-right i:hover {
    color: #ddd;
}

.product-page {
    padding: 100px 50px 70px 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.product-container {
    max-width: 1500px;
    width: 100%;
    display: flex;
    gap: 30px;
    text-align: center;
}

.main-content {
    flex: 3;
    width: 100%;
}

.product-tile {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 350px;
    width: 100%;
}

.product-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-image {
    flex: 0 0 30%;
    max-width: 300px;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h1 {
    font-size: 28px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.product-info h1::after {
    content: "~~~";
    position: absolute;
    bottom: -8px;
    left: 0;
    color: #1abc9c;
    font-size: 20px;
}

.product-desc {
    font-size: 16px;
    color: #a2d2ff;
    line-height: 1.4;
    margin-bottom: 15px;
}

.preview-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.preview-images {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.preview-images img {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.preview-images img[data-position="left"],
.preview-images img[data-position="right"] {
    transform: scale(0.8);
}

.preview-images img[data-position="center"] {
    transform: scale(1);
    opacity: 1;
}

.preview-images img.active {
    transform: scale(1);
    opacity: 1;
}

.preview-images img.active:hover::before {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.arrow {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.spacer {
    height: 30px;
}

.tab-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding-bottom: 35px;
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: 100%;
}

.tab-tiles-panel {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 25px 15px 25px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-tiles {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    position: relative;
}

.tab-tile {
    flex: 1;
    max-width: 220px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tab-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: #1abc9c;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.tab-tile.active::after {
    transform: scaleX(1);
}

.tab-tile:hover {
    background: rgba(255, 255, 255, 0.25);
}

.tab-tile i {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
    color: #1abc9c;
    transition: transform 0.3s ease;
}

.tab-tile:hover i {
    transform: scale(1.1);
}

.content-box {
    min-height: 200px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 25px;
    max-width: 100%;
    box-sizing: border-box;
}

.content-box.active {
    opacity: 1;
    transform: translateY(0);
}

.content-box h2 {
    font-size: 26px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.content-box p {
    font-size: 16px;
    color: #d1e8ff;
    line-height: 1.6;
    font-weight: 400;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.features-list li {
    position: relative;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 15px;
    transition: background 0.3s ease;
}

.feature-toggle {
    display: none;
}

.features-list label {
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    display: block;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
}

.features-list label::before {
    content: "•";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #1abc9c;
}

.features-list label::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #1abc9c;
}

.feature-toggle:checked + label::after {
    transform: translateY(-50%) rotate(180deg);
}

.feature-desc {
    max-height: 0;
    overflow: hidden;
    font-size: 14px;
    color: #d1e8ff;
    padding-left: 30px;
    padding-top: 5px;
    transition: max-height 0.3s ease;
    background: rgba(26, 188, 156, 0.05);
    border-radius: 0 0 8px 8px;
    margin-left: 15px;
    margin-right: 15px;
}

.feature-toggle:checked ~ .feature-desc {
    max-height: 100px;
}

.subscription-panel {
    flex: 2;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: fit-content;
    min-width: 400px;
}

.subscription-panel h2 {
    font-size: 24px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
}

.subscription-panel h2::after {
    content: "";
}

.subscription-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.sub-option {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 4px;
    padding: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
    cursor: pointer;
}

.sub-option.active {
    background: linear-gradient(135deg, #1abc9c, #5776A4);
}

.sub-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sub-option.active:hover {
    background: linear-gradient(135deg, #1abc9c, #5776A4);
}

.sub-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: border 0.3s ease;
}

.sub-option.active .sub-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.sub-circle::after {
    content: '';
    opacity: 0;
}

.sub-time {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    flex-grow: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-main {
    font-size: 20px;
    color: #a2d2ff;
    font-weight: 600;
}

.price-decimal {
    font-size: 14px;
    color: #a2d2ff;
    font-weight: 500;
}

.sub-option.lifetime {
    position: relative;
}

.best-value {
    font-size: 12px;
    color: #fff;
    background: #1abc9c;
    padding: 4px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
}

.payment-btn {
    padding: 20px 30px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1abc9c;
    color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.payment-btn i {
    font-size: 20px;
}

.payment-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.3s ease-out, height 0.3s ease-out;
    z-index: 0;
}

.payment-btn:hover::before {
    width: 500px;
    height: 500px;
}

.payment-btn:hover {
    transform: scale(1.02);
    background-color: #16a085;
}

.payment-btn span, 
.payment-btn i {
    position: relative;
    z-index: 1;
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    background: rgba(255, 107, 107, 0.1);
    padding: 0 10px;
    border-radius: 5px;
}

.error-message.active {
    opacity: 1;
    max-height: 50px;
    padding: 8px 10px;
}

.terms-container {
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-checkbox input[type="checkbox"] {
    display: none;
}

.terms-checkbox label {
    font-size: 16px;
    color: #a2d2ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.terms-checkbox label::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #1abc9c;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.terms-checkbox input[type="checkbox"]:checked + label::before {
    background: #1abc9c;
    transform: scale(1.1);
}

.terms-checkbox input[type="checkbox"]:checked + label::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 14px;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.contact-link {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, #5776A4, #A4D1FF);
    -webkit-background-clip: text;
    background-clip: text;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.footer {
    padding: 40px 0;
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.8), rgba(87, 118, 164, 0.2));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0 20px;
    background: transparent;
    border-radius: 0;
}

.footer-left,
.footer-column {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.footer-versal {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: 16px;
    color: #a2d2ff;
    margin-bottom: 15px;
    line-height: 1.5;
}

.payment-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.payment-icon {
    font-size: 24px;
    color: #5776A4;
    transition: color 0.3s ease;
}

.payment-icon:hover {
    color: #A4D1FF;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #a2d2ff;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #a2d2ff;
}

/* Nowe style dla podstrony produktów */
.products-page {
    padding: 100px 50px 70px 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.products-container {
    max-width: 1500px;
    width: 100%;
    text-align: center;
}

.products-container h1 {
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.products-container h1::after {
    content: "~~~";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #1abc9c;
    font-size: 24px;
}

.filter-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-panel .tab-tiles {
    display: flex;
    gap: 15px;
}

.filter-panel .tab-tile {
    flex: 1;
    max-width: 180px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    line-height: 1;
}

.filter-panel .tab-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1abc9c;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.filter-panel .tab-tile.active::after {
    transform: scaleX(1);
}

.filter-panel .tab-tile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.filter-panel .tab-tile.active {
    background: linear-gradient(135deg, #1abc9c, #5776A4);
    border-color: #1abc9c;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
}

.filter-panel .tab-tile.active:hover {
    background: linear-gradient(135deg, #16a085, #45668e);
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-filter label {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-filter select {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background-position 0.3s ease;
    appearance: none;
    padding-right: 35px;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.price-filter select:hover {
    background: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    background-position: right 8px center;
}

.price-filter select:focus {
    outline: none;
    background: rgba(50, 50, 50, 0.9);
    border-color: #1abc9c;
    box-shadow: 0 0 5px rgba(26, 188, 156, 0.5);
    transform: scale(1.02);
    background-position: right 12px center;
}

.price-filter select option {
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-item p.price {
    font-size: 18px;
    color: #a2d2ff;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-item p.description {
    font-size: 14px;
    color: #d1e8ff;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Styl dla linków wokół product-item */
.product-item a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.product-item a:hover {
    color: inherit;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
    }

    .nav-group {
        flex-direction: column;
        align-items: center;
    }

    .versal-logo {
        height: 40px;
        margin-bottom: 10px;
    }

    .nav-separator {
        width: 40px;
        height: 2px;
        margin-bottom: 10px;
    }

    .nav-left {
        margin-bottom: 10px;
    }

    .nav-right {
        gap: 15px;
    }

    .products-page {
        padding: 80px 20px 50px 20px;
    }

    .filter-panel {
        flex-direction: column;
        gap: 20px;
    }

    .filter-panel .tab-tiles {
        flex-direction: column;
        gap: 10px;
    }

    .filter-panel .tab-tile {
        max-width: 100%;
    }

    .products-list {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-left,
    .footer-column {
        max-width: 100%;
    }
}