/* v1774970894 */
/*
 * mentor_core.v2.css — tokens/fonts, buttons, shell (single file; edit directly, no build step).
 */

@font-face {
    font-family: 'DM';
    src: url('../fonts/DMSerifDisplay-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Afacad';
    src: url('../fonts/AfacadFlux-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Gabarito';
    src: url('../fonts/Gabarito-Medium.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cantora';
    src: url('../fonts/Cantora.woff2') format('woff2');
    font-display: swap;
}

.disabled { pointer-events: none; opacity: 0.6; }


html {
    scroll-behavior: smooth;
    font-family: 'Afacad', "Times New Roman", serif;
}
/* Root variables for easy theme management */
:root {
    --main-color: #3ba88d;  /* Teal for primary actions */
    --main-color-dark: #2d8a74;  /* Dark teal for ciemnozielony buttons */
    --subscription-green: #10b981;  /* Subscription / start-shop CTA */
    --subscription-green-fg: #073b2b;
    --text-color: rgb(27, 27, 17);   /* Main text color */
    --error-color: #dc3545;  /* Updated error color for better visibility */
    --compatibility-low: rgb(255, 0, 0); /* Red for low compatibility */
    --compatibility-high: rgb(0, 255, 0); /* Green for high compatibility */
    --compatibility-default: rgb(0, 0, 0); /* Fallback black color */
    --pomarancz: #ec9e44;
    --biel: #f0ece6;
    --lightbrown: #6b96c1;
    --darkbrown: #382629;
    --darkgray: #1b1b1b;
    --beige: #fbe7ce;
    --poma: #efb815;
    --roz: #feafaa;
    --jasny: #fff4e6;
}

header, body, main, footer, .form-control, .profile-photo img, #rights, .form-group checkbox, .login-form, .signup-form,
.login-form input, .signup-form input, .flash-popup, .login-form button, .sign-main button, .ai-school-button-container, .baner-container,
.page-content, .content, .modal, #category-dropdown, .custom-dropdown, .posts, .post, .pagination-container, .post-header,
#kontakt, #education_section button, #p-table .btn,
.gsi-material-button, .gsi-material-button .gsi-material-button-content-wrapper{
    width: 100%;
}

.modal-content, #profile-table, .profilegrid1, .form-group, .tutorform button, #request{
    width: 90%;
}

.info-main2, .info-main, .tutor-main, .login-main, .sign-main, .role-main, .index-main, .cart-main, .editpost-main, #p-table{
    width: 60%;
}
.messages-main{
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}
/* Base styling for document */
body {
    min-height: 100vh;
    margin: auto;
    background: var(--jasny);
    line-height: 1.2;
    color: var(--text-color);
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

/* Main Content Styling */
main {
    z-index: 5;
    position: relative;
    padding: 0;
    height: auto;
}
.page-btn{
    padding: 5px;
}
h1, h2{
    text-align: center;
    font-family: DM;
}

h1 {
    font-weight: normal;
    color: white;
    font-size: clamp(1.8rem, 5vw, 3rem);
}

h2 {
    margin-bottom: 15px;
    color: var(--darkgray);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}

h3 {
    font-weight: bold;
    color: var(--main-color);
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
}

p {
    word-break: normal;
}




/* Buttons: pressed-depth .btn rules live later in this file. */
/* Colour modifiers below only set legacy non-CSS-vars usage; the .btn block overrides for .btn. */
.niebieski{
    background-color: var(--pomarancz);
    color: var(--text-color);
}

/* Layout/width for buttons still from global where needed */
.login-btn, #register {
    margin-top: 30px;
}
#pc1{
    display: block;
}
#mobi1{
    display: none;
}

/* button na banerze głównym */
#customButton, #customButton1{
    font-size: 1.5rem;
    border-radius: 8px;
    transition: 0.3s;
    padding: 20px 30px;
    background: var(--roz);
    font-weight: normal;
    opacity: 90%;
 }

#customButton:hover, #customButton1:hover{
     opacity: 100%;
 }

/*zastosuj filtry*/
#zastosuj{
    margin-top: 20px;
}

/*resetuj filtry*/
#reset-button{
    margin: 10px 0;
}
.reset-password-request p{
    text-align: center;
}

/*dodaj ogłoszenie, profil tutor*/
.duze_tut{
    margin: 50px 0 30px;
}

.guziki{
    gap: 10px;
    min-width: 100px;
    text-align: center;
}

#expire{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#btn-highlight{
    margin-top: 20px;
}

#edit_og{
    margin: 5px 0;
}

#delete_og{
    background-color: var(--error-color);
    margin: 5px 0;
}

#kontakt{
    bottom: 0;
    margin-top: auto;  /* This pushes the button to the bottom */
}

.login-btn, #register {
    opacity: 90%;
    margin-top: 30px;
}
/*nagłówek Popularne przedmioty na str głównej*/
#pop{
    padding-top: 15px;
}
.categories{
    text-align: center;
}
.ad-space{
    width: 18%;
    height: auto;
    aspect-ratio: 3 / 9;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}
.ad1, .ad2{
    width: 90%;
    height: auto;
    aspect-ratio: 3 / 9;
    border-radius: 6px;
    background-color: transparent;
}
.ad_ad{
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.a_ad{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#posts-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr)); /* Auto-fitting columns */
    gap: 20px; /* Space between the cards */
    box-sizing: border-box; /* Includes padding and border in the element's width */
    padding: 0 5px; /* Optional: ensure some padding */
    margin: 0 auto; /* Center the content */
}

.post {
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    border-radius: 10px;
    height: auto;
    transition: 0.6s ease-in-out;
    background-color: white;
}
/*skontaktuj się na poście*/
.contact-section p{
    text-align: center;
    margin-top: 0;
}
.contact-section{
    margin-top: auto;
    padding-left: 12px;
    padding-right: 12px;
}

/*zdjęcie+imię+lokalizacja i zdjęcie view post*/
.post-header, .vp-tutor-img {
    position: relative;
    aspect-ratio: 1 / 1; /* Keeps the header square */
    background: center / cover no-repeat;
    border-radius: 10px;
}
/*gwiazdki na wyróżnionym i w view post*/
.highlighted .post-header::after{
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 90px;
    height: 30px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
}
/*imię tutora*/
.card-subtitle{
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 0;
}

.card-subtitle, .location {
    margin-left: 15px;
    color: white;
    margin-top: 0;
    text-shadow:
        -1px -1px 2px var(--accent-color),
         1px -1px 2px var(--accent-color),
        -1px  1px 2px var(--accent-color),
         1px  1px 2px var(--accent-color); /* Czarna obwódka */
}
.vp-online-badge {
    background: var(--accent-color);
    color: white;
    padding: 3px 5px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-left: 5px;
}
/*tytuł posta*/
.card-title{
   display: -webkit-box;
    -webkit-line-clamp: 2; /* ⬅️ Tylko 2 linijki */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* ⬅️ Dla "..." na końcu */
    line-height: 1.5em; /* Wysokość jednej linii */
    max-height: 3em;    /* 2 linie × 1.5em */
    margin: 7px 0;
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-color);
    height: 48px;
}

.location{
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Post Details */
.post-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align items to the bottom */
    text-align: left;
    height: 100%; /* Ensure it takes full height of the container */
}
/*cena*/
.price {
    color: var(--accent-color);
    margin-bottom: 0;
    padding-top: 10px;
    font-size: 1.2rem;
}
/*div cena i tytuł*/
.card-body {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-top: auto;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 5px;
}
#rating{
    width: 60px;
    background-color: white;
    border-radius: 50px;
    margin-left: 15px;
}
#rating p{
    text-align: left;
    margin: 0;
    font-size: 0.9rem;
    width: auto;
    padding-left: 5px;
}

.card-header{
    font-family: DM;
    font-size: 1.5rem;
    margin-top: 10px;
}

.post:hover {
    cursor: pointer;
    transform: translateY(-2px);
}

/*jeden z głównych kontenerów po main, content*/
.container {
    display: flex; /* Enables flexbox */
    justify-content: space-between; /* Centers content horizontally */
    align-items: flex-start; /* Centers content vertically (if the parent has a height) */
    flex-direction: row; /* Stacks child elements vertically */
    width: 100%; /* Limit the width to a reasonable size */
}
.container h1{
    margin-top: 10px;
}

.page-content {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.content {
    min-height: 60vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Stacks inner content vertically */
    border-bottom-radius: 0 0 10px 10px;
}

/* Header strony*/
header {
    background: var(--pomarancz);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: fixed; /* Makes the header fixed at the top */
    box-sizing: border-box; /* Ensure padding is included in the width */
    font-size: 1.2rem;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 50px;
}
/* Menu styling */
header nav {
    display: flex;
    justify-content: space-between;
    width: 60%;
    padding: 0 0;
    text-align: center;
    margin-bottom: 0;
}

header nav .active {
  text-align: center;
}

.left-menu, .right-menu {
    display: flex;
    gap: 0; /* Increased gap */
    align-items: center;
}
/* Right menu pushed to the right */
.right-menu {
    margin: 0 0 0 auto;
}
/* Links in menu */
/* Menu styling */
header nav ul, .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
header nav ul{
    height: 100%;
    align-content: center;
}

header nav ul li {
    display: inline-block;
    position: relative; /* Needed for absolute arrow positioning */
    background-color: transparent;
    border-radius: 0;
    border-right: 1px solid transparent;
    border-left: 1px solid transparent;
    transition: border 0.2s ease-in-out;
    height: 100%;
    align-content: center;
}
header nav ul li:hover {
    border-right: 1px solid var(--text-color);
    border-left: 1px solid var(--text-color);
}

header nav ul li a, #about_ai {
    color: var(--text-color);
    margin: 0 20px;
    padding: 10px 0;
    border-radius: 5px;
    transition: 0.3s;
    letter-spacing: 0.05rem;
    opacity: 90%;
    position: relative; /* Ensures arrow is positioned relative to the link */
    font-weight: bolder;
    cursor: pointer;
}

/* Hover Effect */
header nav ul li:hover a {
    text-decoration: none;
    opacity: 100%;
}

/* Arrow Styling */
#fttxt a::before{
    content: "➤"; /* Unicode arrow character */
    font-size: 0.9rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out, left 0.2s ease-in-out;
    color: var(--text-color);
    left: -10px;
}

/* Show Arrow on Hover */
#fttxt a:hover::before{
    opacity: 1;
}

.hamburger-menu {
    display: none;
}

#mess-li{
    padding-left: 15px;
    padding-right: 15px;
}
/*koperta na headerze*/
.message-icon {
    position: relative;
    height: 22px;
    background-repeat: no-repeat;
    background-size: cover; /* Zapewnia, że tło będzie wypełniać całą dostępną przestrzeń */
    background-position: center; /* Centruje tło w oknie przeglądarki */
    display: block;
    width: 28px;
    margin: 0;
    padding: 0;
}

/*kontener na logo*/
.logo-menu {
    position: absolute; /* Positioning it absolutely within the header */
    left: 10px; /* Left alignment */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Ensure it's centered on Y-axis */
    z-index: 1001; /* Above other elements */
    height: 90%;
    align-items: center;
}
/*logo*/
.logo-menu img{
    height: 100%;
    width: auto;
}

/* AI School Button Container */
.ai-school-button-container {
    position: fixed; /* Stays on top when scrolling */
    top: 50px; /* Below the header */
    right: 20px; /* Stick to the right */
    z-index: 10; /* Above other elements */
    display: flex;
    align-items: center;
}

.ai-school-button-container a{
    text-decoration: none;
}
.ai-school-button-container a:hover{
    color: white;
    opacity: 100%;
    text-decoration: none;
}

/* AI School Button */
.ai-school-button {
    background-color: #382629;
    opacity: 0.9;
    color: white;
    font-size: 1rem;
    font-weight: bolder;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%);
    border:none;
    transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out;
}
.ai-school-button:hover {
    opacity: 1; /* Fully visible */
    width: 25%; /* Expand width slightly */
}

/*div z tekstem*/
.opis{
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width:auto;
    font-size: 1.2rem;
    text-align: justify;
    padding: 20px 0 50px;
    margin: 10px auto 0;
}

.opis p{
    padding: 0 50px;
    text-justify: inter-word;
}
#regulamin1 p, #regulamin2 p, #regulamin3 p, #kontakt1 p{
    text-align: left;
}

.info-main2{
    padding: 0 20px;
    border-radius: 8px;
    margin: 0px auto 20px;
}

.info-main, .tutor-main, .login-main, .sign-main, .role-main, .index-main, .cart-main, .editpost-main{
    border-radius: 8px;
    margin: 20px auto 20px;
}
.editpost-main .form-group{
    width: 100%;
}
.tutor-main{
    background-color: transparent;
}

.info-main h2{
    padding: 0 10px;
}
.info-main p{
    text-align: center;
}
.opis h3{
    padding-left: 50px;
    padding-right: 50px;
}

.login-main h1, .role-main h1{
    margin-bottom: 20px;
}

form {
    background-color: white;
    border-radius: 10px;
    margin: 30px auto 0;
}

#filters h2 {
    margin-top: 0;
}
.filters-container input{
    height: 50px;
}

/*nagłówek Wyszukaj na str głównej*/
#szukaj {
    margin-bottom: 30px;
    font-size: 2.3rem;
}

.form-control {
    box-sizing: border-box; /* Include padding and border in width calculation */
}

.profilegrid1{
    margin: 0 auto;
}
#price{
    margin-bottom: 20px;
}
#dodajogl{
    margin-top: 20px;
}
.tutorform{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: None;
    overflow: visible;
}

.tutorform label{
    margin-top: 0;
    margin-bottom: 8px;
}

.tutorform .form-group:first-child label {
    margin-top: 0;
}

.tutorform .form-group:not(:first-child) {
    margin-top: 20px;
}

.tutorform .form-group {
    width: 90%;
    max-width: 100%;
}

.checkbox-container {
    display: flex;
    justify-content: center; /* Centers the checkbox horizontally */
    margin-top: 5px; /* Optional: Add spacing between label and checkbox */
}

/* Form Group Layout */
.form-group {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

/*kategorie*/
.custom-dropdown {
    position: absolute;
    top: 100%; /* Ensure it appears below the input */
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default */
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/*itemy przedmioty*/
.dropdown-item {
    padding: 10px;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid #f1f1f1;
}
.dropdown-item:hover {
    background-color: #f1f1f1;
}
#dropdown-list{
    padding-left: 0;
}

/*lista przedmiotów*/
.custom-dropdown.show {
    display: block;
    opacity: 1;
}


.form-check{
    flex-direction: row;
}
/* Checkbox Styling */
.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/*popup show*/
.modal.show {
  display: flex; /* Use flex to center content */
}

#category-dropdown{
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #373737;
    background-color: #white;
    color: #373737;
    appearance: none;
    background-position: right 10px center;
    background-size: 10px;
    transition: all 0.3s ease;
    font-family: Afacad;
}

.card-body p{
    text-align: center;
    font-size: 1.2rem;
}
.card-body h3{
    font-size: 1.2rem;
    margin: 0;
}

/* Pagination container */
.pagination-container {
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
    background-color: #f4f4f4; /* Light gray background */
    border-radius: 0 0 10px 10px;
    align-items: center;
}

/* Pagination links */
.pagination a {
    margin: 0 5px;
    padding: 4px 12px;
    font-size: 1.2rem;
    color: var(--main-color); /* Bootstrap's default link color */
    text-decoration: none;
    font-family: Afacad;
}

.pagination a:hover {
    background-color: #ddd; /* Light grey background on hover */
}

/* Active page */
.pagination a.active {
    font-weight: bold;
    color: white;
    background-color: var(--accent-color); /* Darker blue background for active page */
    border-radius: 5px;
}

/* Disabled links */
.pagination a.disabled {
    color: var(--main-color); /* Greyed out text */
    cursor: not-allowed;
    pointer-events: none;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.8); /* Black with opacity */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Avoid scrolling when modal is open */
}

.modal-content {
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 560px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: relative;
    text-align: left;
}

/*guziki na cookisach*/
.modal-content button, #review-form button {
    margin: 10px;
}
#privacyPolicyModal button{
    margin-left: 0;
    margin-right: 0;
}

#privacyPolicyModal .cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#privacyPolicyModal .cookie-buttons .btn {
    width: auto;
    min-width: 160px;
    padding-inline: 20px;
}

#privacyPolicyModal h2 {
  font-size: 1.5em;
  line-height: 1.2;
  /* Use a system font as fallback that is similar to your custom font */
  font-family: 'Afacad', Arial, sans-serif;
}

#privacyPolicyModal p, #privacyPolicyModal button {
  font-size: 1em;
  line-height: 1.5;
  font-family: 'Afacad', Arial, sans-serif;
}

.cookie-options{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.cookie-options label{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.modal-content button:last-child {
    background-color: var(--accent-color);
    color: white;
}

@media (max-width: 600px) {
    #privacyPolicyModal .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    #privacyPolicyModal .cookie-buttons .btn {
        width: 100%;
    }
}

/*x na popupie*/
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    float: right;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Links */
a {
    text-decoration: none;
}


/* Profile Image */
.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 2%;
    text-align: center;
    margin: 30px auto 50px;
    display: block; /* Ensures the container doesn't add extra space */
}

.profile-photo img {
    height: 100%; /* Ensures the image fills the container height */
    aspect-ratio: 1/1;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 2%; /* Makes the image round */
}

/* Footer Styling */
footer {
    padding: 40px 0 0;
    background: var(--pomarancz);
    color: var(--text-color);
    margin-top: 50px; /* Pushes the footer to the bottom */
    bottom: 0;
}

#fttxt{
    width: 60%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: auto;
}

#fttxt h4{
    margin: 0 0 10px;
}
#fttxt ul{
    list-style-type: none;
    flex: 1;
    padding: 0;
    margin: 0;
}
#fttxt a{
    text-decoration: none;
    color: var(--text-color);
    opacity: 90%;
    position: relative;
    padding-left: 0;
}
#fttxt a:hover{
    opacity: 100%;
}

#rights{
    text-align: center;
    margin-top: 50px;
}

/* Footer cookie link: not by color alone; inherits footer text color */
#rights a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

#rights a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* General form styling */
label {
    font-weight: bold;
    font-size: 1rem;
    color: var(--main-color); /* Dark color for better readability */
    display:flex;
    align-items:center;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.8rem;
    resize: none;  /* Disables resizing */
}
.form-group select{
    cursor: pointer;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--darkgray);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25); /* Glow effect */
    outline: none;
}
.tutor-main textarea {
    min-height: 200px; /* Set minimum height for textareas */
}
input, select, textarea {
    font-family: Afacad;
    font-size: 1.1rem;
}

.form-group input::placeholder {
    font-size: 1.1rem;
    color: #373737;
    opacity: 90%;
}

.form-group .text-danger {
    font-size: 0.85rem;
    color: var(--error-color);
}

.form-group checkbox {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

/*checkboxy w profilu*/
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 20px;
    vertical-align: middle;
}

#cooperation-terms-check{
    align-items: center;
    font-size: 1rem;
    font-weight: normal;
}

/*nie wiem co to*/
select[multiple] {
    height: auto;
    min-height: 150px; /* Adjust to desired height */
    padding: 10px;
    font-size: 1rem;
}

/* Compatibility Score Styling */
.compatibility-score {
    --score: 100; /* Default score, can be overridden */
    --red: calc(255 - (var(--score) * 2.55)); /* Red decreases as score increases */
    --green: calc(var(--score) * 2.55); /* Green increases as score increases */
    background-color: rgb(var(--red), var(--green), 0);
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for color changes */
}
/*pasek z wynikiem kompatybilności*/
.ribbon {
    margin-left: -17px;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 75%; /* Wstęga zajmuje 3/4 szerokości posta */
    color: white;
    font-weight: bold;
    align-items: center;
    padding: 8px 30px 8px 15px;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%);
}

/* Specific styles for login and registration forms */
.login-form, .signup-form {
    max-width: 600px;
    text-align: center;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--darkgray);
}
#terms-check{
    flex-direction: row;
    text-align: left;
    column-gap: 5px;
    margin-top: 0;
    display: flex;
    align-items: center;
}
#terms-check label{
    font-weight: normal;
    font-size: 1rem;
}
#terms {
    margin-top: 15px;
}

.login-form input, .signup-form input {
    padding: 8px;
    margin-bottom: 20px;
    border: 2px solid var(--darkgray);
    border-radius: 5px;
}

.signup-form p{
    width: 90%;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--main-color);
    color: white;
}

table td {
    color: var(--text-color);
}

/* Buttons z google */
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: center;
  position: relative;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 0;
  flex-grow: 0;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: white;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents, .gsi-material-button:disabled .gsi-material-button-icon  {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: white;
  opacity: 100%;
}

.flash-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 50px;
    border-radius: 5px;
    font-size: 20px;
    color: white;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Afacad;
}

.flash-popup.show {
    opacity: 1;
    visibility: visible;
}

.flash-popup.success {
    background-color: #28a745;
}

.flash-popup.error {
    background-color: #dc3545;
}

.flash-popup.warning, .flash-popup.danger {
    background-color: #ffc107;
    color: black;
}

.flash-popup.info {
    background-color: var(--jasny);
    color: var(--darkgray);
}

/* Close Button Styling */
.flash-popup .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    opacity: 90%;
}

.flash-popup .close-btn:hover {
    opacity: 100%;
}

/* Custom Checkbox Styling for Alignment and Aesthetic */
.form-check-input {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--accent-color); /* Ensures a unified color theme */
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

/*chyba checkboxy w teście osobowości*/
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    transition: border-color 0.3s ease;
}

/*checkboxy?*/
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid white;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px; /* Space between checkbox and label */
}

/* Checked state with animated checkmark */
input[type="checkbox"]:checked {
    background-color: #33cc33;
    border-color: #33cc33;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Hover effect for interaction */
input[type="checkbox"]:hover {
    border-color: white;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Focus effect for accessibility */
/* Disabled state styling */
input[type="checkbox"]:disabled {
    background-color: #e9ecef;
    border-color: #adb5bd;
    cursor: not-allowed;
}

input[type="checkbox"]:disabled::after {
    border-color: #adb5bd;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
    width: 30px !important;  /* Ensures the checkbox uses the correct width */
    height: 30px !important; /* Ensures the checkbox uses the correct height */
    background-color: transparent;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-right: 8px; /* Space between checkbox and label */
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Checkmark style */
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 10px;
    height: 15px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

/* Focus state */
input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

/* Override any Bootstrap or default form-control styles */
input[type="checkbox"].form-control {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important; /* Ensure no padding is added */
    margin-right: auto !important; /* Space between checkbox and label */
    margin-top: 20px;
    box-shadow: none !important;
}

#role-selection-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    background: none;
}

#role-selection-form button {
    margin: 20px;
    width: 70%; /* Fixed width to make buttons more prominent */
}
/*div wokół aktywne ogłoszenia*/
 #profile-table{
     margin: 30px auto 0px;
 }
/*aktywne ogłoszenia*/
#p-table{
    width:100%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    overflow-y: visible;
    min-height: 100%;
}

.title-limit {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  max-height: 4.2em; /* dokładnie 3 linie */
  height: 100%;
}
/*tabelka z ogłoszeniami na profilu*/
#p-table td:last-child {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center buttons horizontally */
}
#p-table tr{
    height: auto;
}
#edit_og, #delete_og {
    margin: 0 0 0 auto;
}
/*zaokrąglenie tabelki na dole*/
#prz{
    border-top-left-radius: 10px;
}
#act{
    border-top-right-radius: 10px;
}
.account-alternative {
    margin-top: 15px;
    text-align: center;
}

@media (max-width: 1450px){
    header nav {
        width: 80%;
    }
    .left-menu{
        margin: 0 20% 0 auto;
    }
}

@media (max-width: 1360px){
    header nav {
        width: 90%;
    }
}

@media (max-width: 1240px){
    .left-menu{
        margin: 0 10% 0 auto;
    }
    .ai-school-button{
        width: 25%;
    }
    .ai-school-button:hover{
        width: 28%;
    }
}

@media (max-width: 1175px){
     #posts-section {
        grid-template-columns: repeat(2, minmax(180px, 1fr)); /* Two columns for medium screens */
    }
}

@media (max-width: 1080px){
    .left-menu{
        margin: 0 0 0 auto;
    }
    #customButton, #customButton1{
        font-size: 1.5rem;
        margin-left: 100px;
    }
    #fttxt{
        width: 90%;
        gap: 50px;
    }
}
@media (max-width: 1000px){
    #p-table thead, th {
        display: none;
    }
    #p-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    #p-table tr {
        margin-bottom: 10px;
        display: block;
    }
    #p-table td:last-child {
        display: flex;
        flex-direction: row; /* Align buttons horizontally on wider screens */
        justify-content: space-between;
        width: 100%;
    }
    #p-table .btn{
        flex: 1; /* Make buttons flexible in size */
    }
}
@media (max-width: 950px){
    header nav ul li a {
        font-size: 1rem;
        margin: 0 10px;
    }
    .right-menu{
        margin: 0;
    }
}

@media (max-width: 905px){
    #customButton, #customButton1{
        font-size: 1.2rem;
    }

    .ai-school-button-container {
        position: fixed; /* Makes the container fixed position */
        left: 0; /* Align left */
        width: 100%; /* Full width */
        z-index: 999; /* Below the header but above other content */
    }
    .ai-school-button{
        width: 30%;
    }
    .ai-school-button:hover{
        width: 35%;
    }
}

@media (max-width: 780px) {
    /*popularne kategorie na stronie głównej*/
    #pop_cat {
        padding: 10px 20px;
        margin: 5px;
        white-space: nowrap;
        flex: 0 0 auto;
        width: auto;
    }
    .carousel {
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    /* Stylizowanie suwaka dla karuzeli */
    .categories::-webkit-scrollbar {
        height: 10px; /* Wysokość suwaka */
        border-radius: 5px; /* Zaokrąglenie suwaka */
    }
    .categories::-webkit-scrollbar-thumb {
        background-color: var(--main-color); /* Kolor suwaka */
        border-radius: 5px; /* Zaokrąglenie suwaka */
    }
    .categories::-webkit-scrollbar-track {
        border-radius: 10px; /* Zaokrąglenie tła toru suwaka */
        background-color: rgba(52, 58, 64, 0.5);
    }
    .categories {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
    }
    .role-main h2 {
        margin: 10% 0;
    }
    .container {
        display: flex; /* Enables flexbox */
        justify-content: center; /* Centers content horizontally */
        align-items: center; /* Centers content vertically (if the parent has a height) */
        flex-direction: column; /* Stacks child elements vertically */
        margin: 0 auto;
        width: 100%; /* Full width for container */
        max-width: 1200px; /* Limit the width to a reasonable size */
        min-height: 100%;
        overflow-y: visible;
    }
    #customButton, #customButton1 {
        margin: 0;
    }
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    .button-group .btn, .btn, button {
        width: 100%;
    }
    .page-btn{
        width: auto;
    }
    #fttxt{
        gap: 30px;
    }
    .index-main{
        width: 95%;
    }
    .ad-space{
        display: none;
    }
}






/**
 * Centralized pressed-depth button effect.
 * Single source of truth for .btn appearance; uses existing palette (global + ai_school vars with fallbacks).
 */

/* -------------------------------------------------------------------------
   Base: pressed-depth 3D effect
   ------------------------------------------------------------------------- */
.btn,
a.btn {
  --btn-ink: var(--text-color, #1b1b11);
  --btn-bg: var(--biel, #f0ece6);
  --btn-fg: var(--text-color, #1b1b11);
  --btn-bg-hover: #e6dfd2;
  --btn-fg-hover: var(--text-color, #1b1b11);
  --btn-ring: rgba(59, 168, 141, 0.28);
  --btn-shadow-base: 0 6px 0 var(--btn-ink), 0 12px 20px rgba(17, 17, 17, 0.1);
  --btn-shadow-hover: 0 4px 0 var(--btn-ink), 0 14px 24px rgba(17, 17, 17, 0.12);
  --btn-shadow-active: 0 2px 0 var(--btn-ink), 0 6px 12px rgba(17, 17, 17, 0.1);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 90%;
  min-height: 48px;
  border-radius: 14px;
  border: 3px solid var(--btn-ink);
  margin-bottom: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow-base);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: "Afacad", "Times New Roman", serif;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:focus-visible,
a.btn:focus-visible {
  outline: none;
  box-shadow: var(--btn-shadow-hover), 0 0 0 5px var(--btn-ring);
}

.btn:hover,
a.btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
  transform: translateY(2px);
  box-shadow: var(--btn-shadow-hover);
}

.btn:active,
a.btn:active {
  transform: translateY(7px) scale(0.992);
  box-shadow: var(--btn-shadow-active);
}

/* Disabled: keep depth but no hover/active transform */
.btn:disabled,
a.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn:disabled:hover,
.btn:disabled:active,
a.btn[aria-disabled="true"]:hover,
a.btn[aria-disabled="true"]:active {
  transform: none;
  box-shadow: var(--btn-shadow-base);
}

/* -------------------------------------------------------------------------
   Variants (palette-aligned)
   ------------------------------------------------------------------------- */

/* jasnozielony: main teal/green */
.btn.jasnozielony,
a.btn.jasnozielony {
  --btn-bg: #47c38a;
  --btn-fg: var(--darkgray);
  --btn-bg-hover: #caff99;
  --btn-ink: var(--text-color, #1b1b11);
  --btn-ring: rgba(59, 168, 141, 0.35);
}

/* ciemnozielony: dark teal (login, signup, cookie) */
.btn.ciemnozielony,
a.btn.ciemnozielony {
  --btn-bg: var(--main-color-dark, #2d8a74);
  --btn-fg: white;
  --btn-bg-hover: #267a66;
  --btn-fg-hover: white;
  --btn-ink: var(--text-color, #1b1b11);
  --btn-ring: rgba(45, 138, 116, 0.35);
}

/* primary: yellow/gold (ai_school primary) */
.btn.primary,
a.btn.primary {
  --btn-bg: var(--poma, #efb815);
  --btn-fg: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-bg-hover: var(--roz, #feafaa);
  --btn-fg-hover: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ink: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ring: rgba(239, 184, 21, 0.35);
}

/* secondary: neutral gray/outline (tabs, pagination, inactive) */
.btn.secondary,
a.btn.secondary {
  --btn-bg: var(--biel, #f0ece6);
  --btn-fg: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-bg-hover: #e6dfd2;
  --btn-fg-hover: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ink: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ring: rgba(0, 0, 0, 0.12);
}

/* szary: dark gray */
.btn.szary,
a.btn.szary {
  --btn-bg: var(--text-color, #1b1b11);
  --btn-fg: white;
  --btn-bg-hover: #2a2a1a;
  --btn-fg-hover: white;
  --btn-ink: var(--text-color, #1b1b11);
  --btn-ring: rgba(27, 27, 17, 0.25);
}

/* białe: white/light (partner CTA) */
.btn.białe,
a.btn.białe {
  --btn-bg: white;
  --btn-fg: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-bg-hover: var(--jasny, #fff4e6);
  --btn-fg-hover: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ink: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ring: rgba(0, 0, 0, 0.12);
}

/* partner secondary: pink/rose */
.partner-btn-secondary,
a.partner-btn-secondary {
  --btn-bg: var(--roz, #feafaa);
  --btn-fg: var(--darkgray);
  --btn-bg-hover: var(--poma, #efb815);
  --btn-fg-hover: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ink: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ring: rgba(254, 175, 170, 0.4);
}

/* ai-button: same as primary for "Zacznij naukę" / buy */
.btn.ai-button,
a.btn.ai-button {
  --btn-bg: var(--poma, #efb815);
  --btn-fg: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-bg-hover: var(--roz, #feafaa);
  --btn-fg-hover: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ink: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ring: rgba(239, 184, 21, 0.35);
}

/* subscription green (replaces inline #10b981 / #073b2b) */
.btn.btn--subscription,
a.btn.btn--subscription {
  --btn-bg: var(--subscription-green, #10b981);
  --btn-fg: #1b1b1b;
  --btn-bg-hover: #0ea872;
  --btn-fg-hover: #1b1b1b;
  --btn-ink: #1b1b1b;
  --btn-ring: rgba(16, 185, 129, 0.35);
  min-height: 45px;

}

/* danger */
.btn.btn--danger {
  /* Use design palette red, keep the same border/3D system as other buttons */
  --btn-bg: var(--error-color, #dc3545);
  --btn-fg: white;
  --btn-bg-hover: #c82333;
  --btn-fg-hover: white;
  /* Keep border/ink consistent with other variants (not a special red border) */
  --btn-ink: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ring: rgba(220, 53, 69, 0.4);
}

/* Słuchaj / check-voice: same gold look as primary + readable font size */
.check-voice-btn,
a.check-voice-btn {
  --btn-bg: var(--poma, #efb815);
  --btn-fg: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-bg-hover: var(--roz, #feafaa);
  --btn-fg-hover: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ink: var(--darkgray, var(--text-color, #1b1b1b));
  --btn-ring: rgba(239, 184, 21, 0.35);
  font-size: 1.125rem;
}

/* -------------------------------------------------------------------------
   Ripple & burst (for JS-injected elements)
   ------------------------------------------------------------------------- */
.btn .ripple,
a.btn .ripple {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 2;
  opacity: 0.75;
  background: rgba(255, 255, 255, 0.38);
  mix-blend-mode: screen;
  animation: btn-ripple 0.65s ease-out forwards;
}

@keyframes btn-ripple {
  to {
    transform: translate(-50%, -50%) scale(19);
    opacity: 0;
  }
}

.btn .burst,
a.btn .burst {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  background: rgba(17, 17, 17, 0.18);
  transform: translate(-50%, -50%) scale(0);
  animation: btn-burst 0.52s ease-out forwards;
}

@keyframes btn-burst {
  to {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
/* Compact variant: lesson UI and small contexts (existing palette) */
.btn--compact,
.settings .btn,
#audioCheckPanel .btn,
#lesson_panel .btn,
a.btn.btn--compact {
  min-height: 42px;
  font-size: 1rem;
  border-radius: 12px;
  margin-bottom: 8px;
  --btn-shadow-base: 0 4px 0 var(--btn-ink), 0 8px 14px rgba(17, 17, 17, 0.1);
  --btn-shadow-hover: 0 3px 0 var(--btn-ink), 0 10px 16px rgba(17, 17, 17, 0.1);
  --btn-shadow-active: 0 1px 0 var(--btn-ink), 0 4px 8px rgba(17, 17, 17, 0.08);
}
.btn--compact:hover,
.settings .btn:hover,
#audioCheckPanel .btn:hover,
#lesson_panel .btn:hover,
a.btn.btn--compact:hover {
  transform: translateY(2px);
}
.btn--compact:active,
.settings .btn:active,
#audioCheckPanel .btn:active,
#lesson_panel .btn:active,
a.btn.btn--compact:active {
  transform: translateY(5px) scale(0.992);
}



@media (max-width: 780px) {
  .btn,
  a.btn {
    min-height: 46px;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .btn,
  a.btn {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  a.btn,
  .btn .ripple,
  .btn .burst {
    transition: none !important;
    animation: none !important;
  }
}

html, body {
  overflow-x: hidden;
}

.cooldown-start-btn,
.cooldown-start-btn:hover {
  cursor: not-allowed;
  opacity: 0.6;
}

.logo-menu {
  top: 53%;
}

#mentor_main_content, #mentor_start_content,#mentor_journal_content {
  flex-direction: column;
  text-align: center;
  align-items: center;
}

#mentor_main_content {
  padding-top: 50px;
}

#mentor_start_content,#mentor_journal_content {
  padding-top: 50px;
  background-color: #ffe0b3;
}

.steps-section {
  width: 100%;
  padding: 24px 16px;
  box-sizing: border-box;
}

.steps-map {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.steps-map,
.steps-overlay,
.hotspot {
  overflow: visible;
}

.steps-map picture,
.steps-image {
  display: block;
  width: 100%;
  height: auto;
}

.steps-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 5;
}

.hotspot.is-open {
  z-index: 50;
}

.hotspot-dot {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: clamp(38px, 3.2vw, 50px);
  height: clamp(38px, 3.2vw, 50px);
  border-radius: 999px;
  border: 2px solid #1f1f1f;
  display: grid;
  align-items: center;
  justify-items: center;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 800;
  font-family: Cantora;
  line-height: 1;
  color: #111;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: hotspotPulse 2.2s ease-in-out infinite;
}

.blue {
  background: var(--poma);
}

.yellow {
  background: var(--lightbrown);
}

.pink {
  background: var(--roz);
}

.light {
  background: var(--jasny);
}

.hotspot-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.55),
        0 0 0 6px rgba(255,255,255,0.18);
  z-index: -1;
  pointer-events: none;
  animation: hotspotRing 2.2s ease-in-out infinite;
}

@keyframes hotspotRing{

    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }

}

.hotspot-dot:hover,
.hotspot-dot:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  outline: none;
}

@keyframes hotspotPulse{

    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    35% {
        transform: scale(1.04);
        filter: brightness(1.08);
    }
    65% {
        transform: scale(1.02);
        filter: brightness(1.14);
    }

}

.hotspot-card {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(calc(-50% + var(--card-shift-x, 0px))) translateY(var(--card-shift-y, 0px));
  width: min(320px, 28vw);
  min-width: 240px;
  max-width: calc(100vw - 24px);
  padding: 18px 18px 16px;
  border: 2px solid #262626;
  border-radius: 20px;
  background: #efe7dc;
  color: #121212;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 20;
}

.hotspot-card h3 {
  margin: 0 32px 8px 0;
  font-family: Cantora, serif;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.hotspot-card p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.close-card {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  align-items: center;
  justify-items: center;
}

.close-card:hover {
  background: rgba(0, 0, 0, .08);
}

.hotspot.is-open .hotspot-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hotspot.open-up .hotspot-card {
  top: auto;
  bottom: calc(100% + 12px);
}

.hotspot.is-open .hotspot-dot {
  animation-play-state: paused;
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

#section1, #section2, #section3, #section4, #section5, #section6, #section7, #section8, #section9, #section10, #section11 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#section7, #section11 {
  position: relative;
}

#section1 {
  position: relative;
  background-image: url("../images/tlo-960.webp");
  background-image: -webkit-image-set(
    url("../images/tlo-960.avif") type("image/avif") 1x,
    url("../images/tlo-960.webp") type("image/webp") 1x,
    url("../images/tlo-1920.avif") type("image/avif") 2x,
    url("../images/tlo-1920.webp") type("image/webp") 2x
  );
  background-image: image-set(
    url("../images/tlo-960.avif") type("image/avif") 1x,
    url("../images/tlo-960.webp") type("image/webp") 1x,
    url("../images/tlo-1920.avif") type("image/avif") 2x,
    url("../images/tlo-1920.webp") type("image/webp") 2x
  );
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  overflow: hidden;
}

#section1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--poma);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

#section1 > * {
  position: relative;
  z-index: 1;
}

#section10 {
  position: relative;
  scroll-margin-top: 50px;
}

#section11 {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
  scroll-margin-top: 2rem;
}

.instruction-section {
  max-width: min(1280px, 96vw);
  padding: 0 clamp(1rem, 4vw, 2rem);
  padding-left: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right));
  box-sizing: border-box;
}

.instruction-heading,
.instruction-section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
  color: var(--darkgray);
  font-family: Cantora, serif;
  font-weight: 700;
}

.instruction-lead {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.65;
  margin: 0 auto clamp(1.5rem, 5vw, 2.5rem);
  max-width: min(640px, 100%);
  color: var(--darkgray);
}

.instruction-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.instruction-image {
  margin: 0;
  width: 100%;
  max-width: 100%;
  line-height: 0;
}

.instruction-image__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.instruction-video-card {
  align-self: flex-end;
  width: 30%;
  max-width: min(560px, 58%);
  margin-left: auto;
  margin-right: clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.2);
  border-radius: clamp(20px, 2.5vw, 26px);
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.instruction-video-title {
  margin: 0 0 0.6rem;
  font-family: Cantora;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--darkbrown);
  text-align: right;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.instruction-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 2vw, 22px);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.instruction-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  vertical-align: top;
}

#section7 {
  padding-top: 40px;
  padding-bottom: 20px;
}

#flagi {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(0.5rem, 1vw, 1.5rem) 0;
  margin-bottom: 50px;
}

.flagi {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 auto;
}

.flaga {
  display: block;
  width: clamp(15px, 5vw, 150px);
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

.obraz1 {
  aspect-ratio: 1/1;
  height: 100%;
  width: auto;
}

.media-spol {
  display: flex;
  flex-direction: row;
  width: 30%;
  justify-content: space-around;
  padding-bottom: 20px;
  padding-top: 20px;
  z-index: 10;
  align-items: center;
  border-radius: 30px;
}

.media1 {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.modal-content {
  border-radius: 26px;
  background: linear-gradient(120deg, var(--poma), var(--roz));
  border: none;
}

.modal-content button:last-child {
  background-color: var(--jasny);
}

#section8 {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.content-pakiety.info-section {
  width: 100%;
}

#wspolne {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 50px;
}

.info-section__step-card#wspolne {
  padding-inline: clamp(1.25rem, 3vw, 1.75rem);
}

.info-section__step-card#wspolne ul {
  margin: 0;
  padding: 0.5rem 0;
}

.info-section__step-card#wspolne li {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.45rem;
}

.info-section {
  max-width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  box-sizing: border-box;
}

.info-section__lead {
  max-width: min(860px, 100%);
  margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

.info-section__lead h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.info-section__lead p {
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  line-height: 1.75;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

.info-section__steps {
    margin-top: 50px;
    margin-bottom: 50px;
}

.info-section__steps h3 {
  margin-bottom: 1.2rem;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

.info-section__steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
}

#whatis > .info-section__step-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.5rem);
    justify-self: center;
}

.info-section__step-card {
  position: relative;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid var(--darkgray);
  border-radius: 22px;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  box-sizing: border-box;
  overflow: visible;
  transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
  z-index: 1;
}

.info-section__step-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fffaf3 0%, #ffe6bf 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
    border-radius: inherit;
}

.info-section__step-card:hover {
    border-color: #d7a22a;
    box-shadow:
        0 10px 24px rgba(215, 162, 42, 0.18),
        0 0 0 6px rgba(255, 230, 191, 0.55);
    transform: translateY(-2px);
}

.info-section__step-card:hover::before {
    opacity: 1;
}



.info-section__step-badge {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  z-index: 2;
  border: 2px solid var(--darkgray);
}

.info-section__step-card .info-section__step-num {
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-family: Cantora;
  font-size: 20px;
  text-transform: uppercase;
}

.info-section__step-card .info-section__step-text {
  line-height: 1.7;
  margin: 0;
}

.info-section__compare-wrap {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
    max-width: 1100px;
    margin: clamp(24px, 5vw, 50px) auto clamp(32px, 6vw, 60px);
    align-items: center;
}

.info-section__compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 1.25rem);
  max-width: 100%;
  margin: 0;
}

.info-section__compare-visual {
    width: 80%;
    min-width: 0;
}

.info-section__compare-visual__hint {
  margin: 0 0 0.65rem;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  line-height: 1.45;
  color: var(--darkgray);
  opacity: 0.88;
  text-align: center;
}

.compare-slider {
  width: 100%;
  margin: 0;
}

.compare-slider__title {
  font-family: Cantora, serif;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--darkgray);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.compare-slider__wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(18px, 3vw, 26px);
  border: 2px solid var(--darkgray);
  background: #111;
  cursor: grab;
  user-select: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.compare-slider__wrap.compare-slider__wrap--dragging {
  cursor: grabbing;
}

.compare-slider__wrap:focus {
  outline: none;
}

.compare-slider__wrap:focus-visible {
  outline: 3px solid var(--poma);
  outline-offset: 3px;
}

.compare-slider__layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.compare-slider__layer--base {
  background-image: var(--compare-bg-bad);
  z-index: 1;
}

.compare-slider__layer--top {
  background-image: var(--compare-bg-good);
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
}

.compare-slider__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  z-index: 3;
  pointer-events: none;
}

.compare-slider__divider::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2),
        0 0 1px rgba(0, 0, 0, 0.3);
}

.compare-slider__handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.compare-slider__handle span {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.compare-slider__handle span:first-child {
  transform: rotate(-135deg);
}

.compare-slider__handle span:last-child {
  transform: rotate(45deg);
}

@media (max-width: 768px) {
    .info-section__compare-visual {
        width: 100%;
    }
}

.info-section__compare .okienko {
  max-width: none;
  border: 2px solid var(--darkgray);
  border-radius: 26px;
  overflow: hidden;
  background: transparent;
}

.info-section__compare .okienko > div:first-child {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 2vw, 1.125rem);
}

.info-section__compare .okienko h3 {
  margin: 0;
  text-align: center;
}

.info-section__compare .div-p {
  padding: clamp(1rem, 2.5vw, 1.2rem) clamp(1rem, 2vw, 1.4rem);
  box-shadow: none;
}

.info-section__compare .pwhite {
  line-height: 1.75;
}

.info-section__closing {
    max-width: min(820px, 80%);
    margin: 20px auto 100px;
    text-align: center;

}

.info-section__closing p {
  font-size: clamp(0.95rem, 1.5vw, 1.04rem);
  line-height: 1.8;
  margin: 0;
}

.cookie-options input {
  border-radius: 50px;
}

#privacyPolicyModal a {
  color: #1b1b1b;
}

#fale {
  position: absolute;
  top: -50px;
  left: 0;
  z-index: 1;
}

#okladka, #phone {
  max-width: 270px;
  max-height: 300px;
  aspect-ratio: 486 / 540;
  width: 100%;
  height: auto;
  margin-top: 0;
  object-fit: contain;
  vertical-align: middle;
}

#section2 {
  padding-top: 0;
  padding-bottom: 50px;
  scroll-margin-top: 40px;
  margin-top: 20px;
}

#section2 h1, #section10 {
  width: 100%;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

#section3 {
  padding-bottom: 30px;
  padding-top: 30px;
  background-color: var(--jasny);
}

#section4 {
  padding-bottom: 50px;
  padding-top: 30px;
  background: var(--roz);
  position: relative;
}

#content1 p {
  padding-right: 50px;
  margin: 0;
}

#film-div, #about-div1 {
  flex-direction: row;
  width: 70%;
  display: flex;
  gap: 10px;
}

#guzik1 {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin: .5rem 0 1rem;
  width: 100%;
  max-width: 300px;
}

#about-div1 {
  scroll-margin-top: 100px;
}

#film, #about-photo {
  flex: 3;
  margin-bottom: 0;
  margin-top: auto;
  flex-direction: row;
  display: flex;
  justify-content: flex-end;
}

#film-text, #about-text {
  flex: 4;
  gap: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  justify-content: center;
  margin-top: 20px;
}

#main-signup {
  width: 80%;
  margin-bottom: 20px;
  background-color: white;
  color: var(--darkgray);
  border-radius: 50px;
  padding-right: 10px;
  padding-left: 10px;
  transition: all 0.3s;
}

#main-signup:hover {
  background-color: var(--lightbrown);
  color: white;
  box-shadow: none;
}

.tutorform button {
  border-radius: 50px;
  background-color: var(--jasny);
  opacity: 90%;
  color: var(--darkgray);
  padding-top: 5px;
  padding-bottom: 5px;
}

.tutorform input,
.tutorform .form-control {
  border-radius: 50px;
  padding: 8px 12px;
  margin-bottom: 0;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tutorform .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
  outline: none;
}

.tutorform button:hover {
  opacity: 100%;
}

.tutorform p {
  text-align: center;
}

.tutor-main {
  margin-top: 80px;
  margin-bottom: 50px;
  border-radius: 30px;
  background-color: #efac159c;
  border: 2px solid var(--darkgray);
  width: 40%;
}

.tutor-main .profilegrid1 {
  width: 100%;
}

.duze_tut {
  margin-bottom: 20px;
}

#logo-head {
  display: flex;
  flex-direction: row;
  width: 95%;
  justify-content: center;
}

#logo-head h3 {
  color: var(--darkgray);
  font-weight: bold;
  padding-left: 20px;
}

#ai-logo {
  height: auto;
  aspect-ratio: 10/4;
  width: 25%;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.code-activation-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 90%;
  margin-top: 10px;
  margin-bottom: 30px;
  border: 2px solid var(--darkgray);
  border-radius: 28px;
}

.code-input {
  padding: 20px 0;
  font-size: 1rem;
  border: none;
  outline: none;
  background-color: white;
  width: 100%;
  border-top-right-radius: 26px;
  border-top-left-radius: 26px;
  text-transform: uppercase;
}

.code-input::placeholder {
  padding-left: 30px;
  padding-right: 10px;
}

.code-activation-form button {
  padding: 15px 15px;
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 0;
  width: 100%;
  border-radius: 0 0 26px 26px;
  margin-bottom: 0;
  background-color: var(--poma);
}

.code-activation-form button:hover {
  background-color: var(--roz);
  box-shadow: none;
}

/* Shell / marketing: heading rules below override earlier h1–h3 (same specificity, later in file). */
h1,h2,h3 {
  color: var(--darkgray);
}

h2, h1 {
  text-align: left;
}

h1 {
  font-family: Cantora;
  color: var(--darkgray);
  font-weight: bold;
  letter-spacing: 1px;
}

h2 {
  font-family: Gabarito;
  letter-spacing: 1px;
  font-weight: bold;
}

p {
  text-align: left;
}

#center7, #center11 {
  font-weight: normal;
}

#center1 {
  font-size: 3rem;
  text-align: left;
  margin-bottom: 0;
  margin-top: 0;
  text-shadow: 2px 1px 0 var(--jasny);
}

#center1,
#banerh2 {
  position: relative;
  display: inline-block;
}



h3 {
  font-family: Gabarito;
  letter-spacing: 2px;
}

p, li, label {
  font-family: Afacad;
  color: var(--darkgray);
}

li img {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}

.switch {
  align-items: center;
  vertical-align: baseline;
}

header {
  background-color: var(--darkgray);
}

header nav {
  width: 80%;
  padding-left: 200px;
}

header nav ul li a {
  color: white;
}

header nav ul li a:hover {
  text-decoration: underline;
}

#fttxt a::before {
  left: -15px;
  color: white;
}

#sidebuttons {
  display: flex;
  flex-direction: column;
}

#shop-button {
  background-color: var(--poma);
  color: var(--darkgray);
  border: 2px solid var(--poma);
  padding-top: 15px;
  padding-bottom: 15px;
}

#shop-button:hover {
  box-shadow: none;
  border: 2px solid white;
}

footer {
  background: var(--darkbrown);
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: 0;
}

footer li {
  color: white;
}

#fttxt a {
  color: white;
  transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
}

#fttxt h4 {
  color: white;
}

#rights {
  padding-bottom: 20px;
  /* Dark text on orange footer (--pomarancz) meets WCAG AA contrast; white did not */
  color: white;
}

/* Underline so the link is not identified by color alone (WCAG 1.4.1) */
#rights a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#rights a:hover {
  text-decoration-thickness: 2px;
}

#rights a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

#pakiety2 {
  cursor: pointer;
}

.grupa {
  margin-top: 20px;
  width: 95%;
  padding-left: 1%;
  padding-right: 1%;
  background-color: var(--beige);
  z-index: 3;
}

#kolumna {
  display: flex;
  flex-direction: row;
  flex: 1;
}

.tutors-container {
  display: flex;
  flex-direction: row;
  overflow: auto;
  flex-wrap: wrap;
  width: 70%;
  justify-content: space-around;
}

.tutors-mobile-controls,
.tutors-mobile-dots {
  display: none;
}

.tutor-slide {
  display: contents;
}

.tutorzy {
  width: 95%;
}

.grupa p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--darkgray);
  padding-bottom: 10px;
  padding-top: 5px;
}

.grupa h3 {
  margin-top: 20px;
  text-align: center;
}

#about h1, #about h2 {
  text-align: center;
  margin-top: 30px;
}

#about p {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  margin-top: 30px;
}

#about .tutor-list {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

#about .tutor-list p {
  color: var(--darkgray);
  width: auto;
  margin-top: 0;
  font-size: 1rem;
}

#ai1 {
  margin-bottom: 20px;
  margin-top: 50px;
  text-align: center;
}

.lesson-count {
  font-weight: bold;
  color: var(--darkgray);
}

.signup-form, .login-form {
  border-radius: 26px;
  background-color: var(--roz);
  padding-top: 15px;
  padding-bottom: 15px;
  margin-top: 0;
}

.profilegrid1 {
  background-color: transparent !important;
  border-radius: 0 !important;
}

.signup-form input, .login-form input {
  border-radius: 50px;
  margin-bottom: 10px;
}

.signup-form .form-group:not(.form-check) > label,
.login-form .form-group:not(.form-check) > label {
  margin-bottom: 0.4rem;
  justify-content: center;
}

.signup-form .form-group input.form-check-input,
.login-form .form-group input.form-check-input {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  flex-shrink: 0;
  border: 2px solid var(--darkgray);
  border-radius: 5px;
  accent-color: var(--accent-color);
}

.login-form a, .signup-form a, .account-alternative a {
  color: #007bff;
}

#privacyPolicyModal h2, #privacyPolicyModal p {
  color: var(--darkgray);
  text-align: center;
}

#privacyPolicyModal button {
  border-radius: 20px;
  opacity: 90%;
  color: var(--darkgray);
}

#privacyPolicyModal button:hover {
  opacity: 100%;
}

#privacyPolicyModal #acceptEssential {
  background-color: var(--poma);
}

#privacyPolicyModal #acceptAll {
  background-color: var(--lightbrown);
}

#aismain {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: stretch;
  flex-direction: row;
  margin: 0;
  padding-top: 90px;
  justify-content: space-between;
  flex: 1;
}

.middle-content {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  overflow-y: auto;
}

.subject-selection {
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
}

.subject-selection ul {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 20px;
  width: auto;
  padding-inline-start: 0;
}

.subject-selection ul li {
  text-decoration: none;
  list-style: none;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: bolder;
  color: var(--darkgray);
  opacity: 70%;
  transition: opacity 0.3s ease-in-out;
  padding: 10px 15px;
  border: 2px solid var(--darkgray);
  border-radius: 50px;
  background-color: var(--poma);
}

.subject-selection ul li:hover {
  opacity: 100%;
}

.subject-selection ul li.subject-item-active,
#content-journal .journal-lang-selection .journal-lang-item.subject-item-active {
  opacity: 0.92;
  font-weight: bold;
  border-width: 3px;
}

.subject-selection ul li.subject-item-active:hover,
#content-journal .journal-lang-selection .journal-lang-item.subject-item-active:hover {
  opacity: 1;
}

#content-journal .journal-lang-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 90%;
  margin-top: 0;
  margin-bottom: 1.25rem;
  visibility: visible;
}

#content-journal .journal-lang-selection .journal-lang-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

#content-journal .journal-lang-selection .journal-lang-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#content-journal .journal-lang-selection .journal-lang-item {
  display: inline-block;
  padding: 10px 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--darkgray);
  background-color: var(--poma);
  border: 2px solid var(--darkgray);
  border-radius: 50px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#content-journal .journal-lang-selection .journal-lang-item:hover {
  opacity: 1;
}

#content-journal .journal-check-all-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

#content-journal .journal-check-all-label input {
  cursor: pointer;
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  accent-color: var(--poma, #efb815);
  flex-shrink: 0;
}

#content-journal .journal-check-all-text {
  display: none;
}

#content-journal .journal-pagination-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  justify-content: flex-end;
  margin-bottom: 2.25rem;
}

#content-journal .journal-pag-btn {
  min-height: 32px;
  padding: 0.25rem 0.6rem;
  font-size: 0.9rem;
  width: auto;
}

#content-journal .journal-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

#content-journal .journal-page-jump input {
  width: 3rem;
  padding: 0.25rem 0.35rem;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid var(--darkgray);
  border-radius: 4px;
}

#content-journal .journal-page-jump input:focus {
  outline: none;
  border-color: var(--poma);
}

.subject-selection p {
  margin-top: 50px;
}

.menu .active {
  font-weight: bold;
}

.thank-you ul {
  padding-inline-start: 0;
  width: 100%;
}

.thank-you .btn {
  width: 100%;
  border-radius: 50px;
}

.thank-you h3 {
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: var(--poma);
}

.check-voice-btn, .start-lesson-btn, .startshopbutton {
  min-width: 79px;
}

.check-voice-btn, .start-lesson-btn {
  height: 85px;
  border-radius: 20px;
  font-size: 1.15rem;
}

.start-lesson-btn, .startshopbutton {
  width: 100%;
  cursor: pointer;
  display: flex;
  padding: 0;
  font-size: 1.15rem;
  font-weight: bold;
  align-items: center;
  flex-direction: row;
  transition: all 0.2s ease-in-out;
  text-align: center;
  justify-content: center;
}

.btn.continue-lesson-btn,
a.btn.continue-lesson-btn {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  color: var(--darkgray);
  padding-left: 5%;
  padding-right: 5%;
  border-radius: 26px;
}

.btn.continue-lesson-btn:hover,
a.btn.continue-lesson-btn:hover {
  background: var(--btn-bg-hover, var(--roz, #feafaa));
  color: var(--btn-fg-hover, var(--darkgray));
  transform: translate(-50%, -50%) translateY(2px);
  box-shadow: var(--btn-shadow-hover);
}

.btn.continue-lesson-btn:active,
a.btn.continue-lesson-btn:active {
  transform: translate(-50%, -50%) translateY(7px) scale(0.992);
  box-shadow: var(--btn-shadow-active);
}

.btn.continue-lesson-btn:disabled:hover,
.btn.continue-lesson-btn:disabled:active,
.btn.continue-lesson-btn[aria-disabled="true"]:hover,
.btn.continue-lesson-btn[aria-disabled="true"]:active,
a.btn.continue-lesson-btn[aria-disabled="true"]:hover,
a.btn.continue-lesson-btn[aria-disabled="true"]:active {
  transform: translate(-50%, -50%);
  box-shadow: var(--btn-shadow-base);
}

.main-content {
  width: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 8%;
  padding-top: 30px;
  padding-bottom: 100px;
  position: relative;
}

.content-pakiety {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 70%;
    padding-bottom: 0;
    margin-bottom: 0;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
}

.login-main {
  padding-top: 20px;
}

.login-main, .sign-main, .reset-password-request {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reset-password-request {
  width: 80%;
}

.reset-password-request p {
  margin-bottom: 30px;
}

.info-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 70px;
}

.login-main p, .sign-main p {
  text-align: center;
}

.account-alternative p {
  font-size: 1rem;
}

#login-container {
  margin-top: 50px;
}

#login-container2 {
  margin-top: 80px;
}

/* Login / signup / partner auth: same blue as legacy shell (beats .btn.primary + .ciemnozielony var stack). */
.btn.login-btn.ciemnozielony,
a.btn.login-btn.ciemnozielony {
  --btn-bg: var(--lightbrown);
  --btn-fg: var(--darkgray);
  --btn-bg-hover: #5a85b3;
  --btn-fg-hover: var(--darkgray);
  --btn-ink: var(--darkgray);
  --btn-ring: rgba(107, 150, 193, 0.45);
}

.login-btn,
#request {
  opacity: 90%;
  border-radius: 20px;
  width: 90% !important;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
}

.login-btn:hover,
#request:hover {
  opacity: 100%;
}

#request {
  background-color: var(--lightbrown);
  color: var(--darkgray);
  margin-top: 30px;
  opacity: 100%;
}

.gsi-material-button {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.gsi-material-button-contents {
  color: var(--darkgray);
}

.row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 20px;
}

#list-tutors {
  width: 100%;
  flex-direction: row;
  margin-bottom: 50px;
  margin-top: 30px;
}

#tutorzy {
  display: flex;
  flex: 0 0 18%;
  padding: 5px;
}

#tutorzy .row {
  flex-direction: row;
}

#content-start, #content1 {
  display: flex;
  flex-direction: column;
  width: 70%;
  align-items: center;
}

#content-start .row {
  height: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.package-columns {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  column-gap: 5px;
  justify-content: center;
}

.column {
  width: 23%;
  flex-direction: column;
  border: 2px solid var(--darkgray);
  border-radius: 26px;
}

.course-card {
  position: relative;
  overflow: visible;
}

.course-badge {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fffaf3 0%, #ffe6bf 100%);
  border: 2px solid #1f2a44;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  z-index: 10;
  overflow: hidden;
}

.course-badge img,
.course-badge svg {
  width: 26px;
  height: 26px;
  display: block;
}

.course-badge span {
  display: block;
  line-height: 1;
}

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

.package-pricing {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
}

.package-selection {
  margin-left: auto;
  margin-right: auto;
  width: 70%;
  text-align: center;
}

.package-selection label {
  margin-right: 10px;
  width: 50%;
}

.package-selection input {
  width: 50%;
  padding: 8px 0;
  text-align: center;
  font-size: 16px;
  border: 2px solid var(--poma);
  background: white;
  font-family: Afacad;
}

.package-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
}

.package-pricing input {
  width: 100%;
  margin-top: 20px;
  background-color: transparent;
  border: none;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bolder;
}

.package-columns label {
  font-weight: bold;
}

.price-line {
  margin: 0;
  padding-top: 15px;
  padding-bottom: 5px;
  padding-left: 0;
  padding-right: 0;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

#section9 .seg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 14px 0;
}

#section9 .seg-group {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

#section9 .seg-radio {
  position: absolute;
  left: -9999px;
}

#section9 .seg-option {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.15s;
}

#section9 .seg-radio:checked + .seg-option {
  background: linear-gradient(180deg, #34d399, #10b981);
  color: #072;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15) inset, 0 6px 18px rgba(16, 185, 129, 0.25);
}

#section9 .free-badge[hidden] {
  display: none !important;
}

#section9 .plan-card {
  color: var(--darkgray);
  flex-direction: column;
}

#section9 .plan-card .card-body {
  flex: 1;
  width: 100%;
  padding: 0;
}

#section9 .plan-card .content-container {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 0;
  border-radius: 26px;
}

#section9 .plan-card .card-header {
  padding: 0.3rem 0.5rem 0.9rem;
}

#section9 .plan-card .card-header h2 {
  font-size: 25px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  color: var(--darkgray);
  letter-spacing: 0.02em;
  font-family: Cantora;
}

#section9 .plan-card .kursimg {
  margin: 0 auto 0.5rem;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
}

#section9 .plan-card .kursimg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#section9 .plan-card .package-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 0.5rem 0.75rem;
}

#section9 .plan-card .package-pricing.centered {
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
}

#section9 .plan-card .price-line.pwhite {
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0.5rem 0 0.25rem;
  margin: 0;
}

#section9 .plan-card .price-line strong {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--darkgray);
  letter-spacing: 0.02em;
}

#section9 .plan-card .plan-bonus {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--darkgray);
  text-align: center;
  line-height: 1.35;
  opacity: 0.95;
}

#section9 .plan-card .free-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #10b981;
  color: #073b2b;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  line-height: 1.3;
}

#section9 .plan-card .plan-features {
  list-style: none;
  padding: 0 0.25rem;
  margin: 0.5rem 0 0.75rem;
  text-align: left;
}

#section9 .plan-card .plan-features li, .info-section__step-card li {
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--darkgray);
  position: relative;
}

.info-section__step-card ul {
  list-style: none;
  padding-left: 0;
  text-align: left;
}

#section9 .plan-card .plan-features li::before, .info-section__step-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--roz);
}

#section9 .plan-card .buy-section {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  width: 100%;
}

#section9 .plan-card .buy-section .ai-button {
  margin: 0;
}

figure {
  margin-inline-end: 0;
  aspect-ratio: 16/9;
}

.text-center {
  text-align: center;
}

.shop-status {
  margin: 0.5rem auto 3rem;
  max-width: 980px;
  text-align: center;
}

.shop-status--active {
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: #e9f8f0;
  border: 1px solid #b6e3cd;
  color: #0d3d27;
}

.shop-status--active .shop-status-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.shop-status--active .shop-status-detail {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.shop-status--active a {
  color: #047857;
  font-weight: 600;
}

.shop-status--error {
  color: #b00020;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: #ffe8e8;
  border: 1px solid #f4b3b3;
}

.card {
  overflow: hidden;
  color: white;
  border-top: none;
  transition: background-color 0.4s ease-in-out;
  height: 100%;
  display: flex;
}

.kursimg {
  position: relative;
  display: flex;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 90%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-bottom: 10px;
}

.tutor-img {
  flex: 0 0 40%;
  aspect-ratio: 1/1;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--poma);
  border-radius: 20px;
  overflow: hidden;
}

.tutor-region-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 20px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #2f2f2f;
  background: linear-gradient(120deg, rgba(255, 199, 108, 0.98), rgba(255, 126, 87, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-header h3, .start-card h3 {
  color: var(--darkgray);
  font-size: 20px;
  font-weight: bolder;
  white-space: nowrap;
}

.card-header h3 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.card-header {
  margin-top: 0;
  border-top-right-radius: 26px;
  border-top-left-radius: 26px;
}

#przedmiot {
  text-align: center;
  background-color: var(--poma);
}

.start-card h3 {
  padding-bottom: 10px;
}

.card-body {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  padding: 0;
  align-items: center;
  height: 100%;
}

.start-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  height: auto;
  overflow: hidden;
  padding: 0.5rem;
  box-shadow: inset 0 0 0 2px white;
  border-radius: 26px;
  position: relative;
}

.content-container {
  display: flex;
  flex: 7;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  color: var(--darkgray);
  background-color: var(--jasny);
  width: 100%;
  border-radius: 26px;
}

form {
  background-color: transparent;
}

.column form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  flex: 1;
  justify-content: space-between;
}

.content-container p {
  color: var(--darkgray);
  font-weight: normal;
  margin: 0;
}

#center2 {
  font-size: 1.5rem;
  margin-top: 10px;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 0;
}

#sklep {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 15px;
  width: 100%;
  margin-bottom: 20px;
  justify-content: center;
}

#sklep div {
  flex: 1 1 calc(33.333% - 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.okienko {
  max-width: 50%;
}

.div-p {
  box-shadow: inset 0 0 0 2px var(--roz);
  border-radius: 0 0 26px 26px;
  background-color: var(--jasny);
}

.pwhite {
  flex: 1;
  text-align: left;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

#sklep div h3 {
  margin: 0;
  padding: 15px 0;
  background: linear-gradient(120deg, var(--poma), var(--roz));
  border-top-right-radius: 26px;
  border-top-left-radius: 26px;
  width: 100%;
  text-align: center;
}

.sklep-img {
  width: 50%;
  aspect-ratio: 1 / 1;
  height: auto;
}

#content-statystyki p {
  justify-content: space-between;
}

#content-statystyki h3, #content-statystyki p, #dziennikcode {
  width: 30%;
  display: flex;
  margin-right: auto;
  margin-left: auto;
}

.tutor-info {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tutor-info::-webkit-scrollbar {
  width: 5px;
}

.tutor-info::-webkit-scrollbar-track {
  background-color: var(--poma);
}

.tutor-info::-webkit-scrollbar-thumb {
  background-color: var(--text-color);
  border-radius: 10px;
}

.info-start p {
  height: auto;
  padding-right: 10px;
  padding-bottom: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--text-color) var(--poma);
}

.tutor-info.info-start button {
  width: 49%;
}

.tutor-info.info-start p {
  padding-bottom: 10px;
  color: var(--darkgray);
  word-wrap: break-word;
  margin-top: 0;
  line-height: 1.5em;
  height: 120px;
  width: 85%;
}

.tutor-list h3 {
  margin-top: 10px;
  border-bottom: 2px solid var(--darkgray);
}

#content-start .tutor-list {
  width: 100%;
}

#tutorzy_container .tutor-list {
  flex-direction: row;
  flex: 1;
}

#tutorzy_container .tutor-list .row {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
}

.tutor-list {
  margin-top: 20px;
  flex: 0 0 19%;
  flex-direction: column;
  align-items: center;
  padding-bottom: 5px;
  padding-top: 10px;
}

.tutor-list2, #tutorzy {
  border-radius: 30px;
  background: radial-gradient(
    circle at center,
    var(--lightbrown) 0%,
    var(--poma) 45%,
    var(--roz) 100%
);
}

.ai-button {
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.buy-section {
  width: 90%;
}

.loading {
  opacity: 0.6;
  min-width: 76px;
}

.translate-button {
  align-self: flex-start;
}

#center4 {
  text-align: center;
  margin-bottom: 30px;
}

#content-journal h1 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 1.5rem;
}

.journal-preview {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  text-align: center;
}

.journal-preview__lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--darkgray);
  line-height: 1.5;
  margin-top: 30px;
  margin-bottom: 20px;
}

.journal-preview__sub {
  font-size: 1rem;
  color: var(--darkgray);
  opacity: 0.92;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.journal-preview__table-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.journal-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.journal-preview-table thead {
  background: linear-gradient(135deg, var(--poma), var(--roz));
  color: var(--darkgray);
}

.journal-preview-table th {
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: 600;
}

.journal-preview-table__arrow {
  text-align: center;
  width: 2.5rem;
  color: var(--darkgray);
}

.journal-preview-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.journal-preview-table tbody tr:last-child {
  border-bottom: none;
}

.journal-preview-table td {
  padding: 0.6rem 0.85rem;
  color: var(--darkgray);
}

.journal-preview-table tbody tr:nth-child(even) {
  background: rgba(255, 244, 230, 0.5);
}

.journal-preview__cta-text {
  font-size: 0.95rem;
  color: var(--darkgray);
  margin: 0 0 1rem;
  opacity: 0.9;
  text-align: center;
}

.journal-preview__btn {
  display: inline-block;
  width: 50%;
  min-width: 180px;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  margin-top: 20px;
}

#content-journal .btn.small.primary,
#content-journal .btn.small.primary:hover {
  background-color: var(--poma);
  color: var(--darkgray);
}

#content-journal .btn.small.secondary,
#content-journal .btn.small.secondary:hover {
  background-color: var(--biel, #f0ece6);
  color: var(--darkgray);
}

#content-journal .btn.small {
  min-height: 38px;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  width: auto;
  margin-bottom: 0;
}

#content-journal .journal-section,
#content-journal #journal-shared-section {
  width: 100%;
  max-width: min(640px, 92vw);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#content-journal #journal-shared-table {
  font-size: 1.2rem;
  line-height: 1.5;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  box-sizing: border-box;
  transition: opacity 0.15s ease;
}

#content-journal #journal-shared-table.journal-table-loading {
  opacity: 0.65;
  pointer-events: none;
}

#content-journal #journal-shared-table th,
#content-journal #journal-shared-table td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  list-style: none;
}

#content-journal #journal-shared-table .journal-td-word,
#content-journal #journal-shared-table .journal-td-translation {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--darkgray, #1b1b1b);
}

#content-journal #journal-shared-table .journal-td-actions {
  overflow: visible;
  text-overflow: clip;
}

#content-journal #journal-shared-table .journal-col-check,
#content-journal #journal-shared-table .journal-th-check,
#content-journal #journal-shared-table .journal-td-check {
  width: 3.25rem;
  min-width: 3.25rem;
  text-align: center;
  vertical-align: middle;
}

#content-journal #journal-shared-table .journal-td-check input[type="checkbox"],
#content-journal #journal-shared-table .journal-th-check input[type="checkbox"] {
  margin: 0;
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  accent-color: var(--poma, #efb815);
  flex-shrink: 0;
  cursor: pointer;
}

#content-journal #journal-shared-table .journal-th-word,
#content-journal #journal-shared-table .journal-td-word,
#content-journal #journal-shared-table .journal-th-translation,
#content-journal #journal-shared-table .journal-td-translation {
  text-align: center;
  vertical-align: middle;
}

#content-journal #journal-shared-table .journal-col-actions,
#content-journal #journal-shared-table .journal-th-actions,
#content-journal #journal-shared-table .journal-td-actions {
  width: 5rem;
  min-width: 5rem;
  text-align: center;
  vertical-align: middle;
}

#content-journal #journal-shared-table .journal-td-actions .btn {
  margin: 0;
}

#content-journal #journal-shared-table thead th {
  background-color: var(--poma);
  color: var(--darkgray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  text-align: center;
  vertical-align: middle;
  font-size: 1.1rem;
  font-weight: 600;
}

#content-journal #journal-shared-table tbody tr:nth-child(even) {
  background: rgba(255, 244, 230, 0.55);
}

#content-journal #journal-shared-table tbody tr:hover {
  background: rgba(254, 175, 170, 0.18);
}

#content-journal #journal-shared-section.journal-mode-popular #journal-shared-table .journal-col-actions,
#content-journal #journal-shared-section.journal-mode-popular #journal-shared-table .journal-th-actions,
#content-journal #journal-shared-section.journal-mode-popular #journal-shared-table .journal-td-actions {
  display: none;
}

#content-journal #journal-shared-section {
  margin-bottom: 2.5rem;
}

#center3 {
  text-align: center;
  width: 90%;
  border: none;
  display: flex;
  flex-direction: row;
  height: 30px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

#center9 {
  text-align: center;
  width: 100%;
  font-weight: normal;
  padding-bottom: 10px;
}

#center6 {
  padding-left: 20px;
  padding-right: 20px;
  font-size: 3.5rem;
  margin-top: 0;
}

.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .floating-menu {
    bottom: 1.25rem;
    left: 1rem;
    display: none;
  }
}

@media (max-width: 768px) {
  .steps-section {
    padding: 16px 10px;
  }

  .hotspot {
    left: var(--mx, var(--x));
    top: var(--my, var(--y));
  }

  .hotspot-dot {
    width: clamp(42px, 9.5vw, 52px);
    height: clamp(42px, 9.5vw, 52px);
    font-size: clamp(19px, 5vw, 24px);
  }

  .hotspot .hotspot-card {
    width: min(
              420px,
              calc(100vw - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
          );
    min-width: 0;
    max-width: calc(100vw - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    max-height: min(
              88dvh,
              calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px)
          );
    padding: 12px max(14px, env(safe-area-inset-right, 0px)) 12px max(14px, env(safe-area-inset-left, 0px));
    border-radius: 18px;
    z-index: 999;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .hotspot-card h3 {
    font-size: clamp(0.88rem, 3.6vw, 1rem);
    line-height: 1.2;
    padding-right: 36px;
    margin-bottom: 8px;
  }

  .hotspot-card p {
    font-size: clamp(0.8rem, 3.1vw, 0.92rem);
    line-height: 1.38;
  }

  .close-card {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) and (max-height: 640px) {
  .hotspot .hotspot-card {
    max-height: min(82dvh, calc(100svh - 16px));
    padding: 10px 12px;
  }

  .hotspot-card h3 {
    font-size: 0.82rem;
    margin-bottom: 6px;
  }

  .hotspot-card p {
    font-size: 0.74rem;
    line-height: 1.32;
  }
}

@media (max-width: 900px) {
  .instruction-video-card {
    max-width: min(480px, 72%);
    margin-right: clamp(0.75rem, 3vw, 1.5rem);
  }
}

@media (max-width: 768px) {
  .instruction-video-card {
    align-self: center;
    width: 80%;
    max-width: 90%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.25rem;
  }

  .instruction-video-title {
    text-align: center;
  }

  .instruction-layout {
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
}

@media (max-width: 600px) {
  .instruction-lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .instruction-section {
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  #section11 {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .instruction-heading,
      .instruction-section h2 {
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .instruction-lead {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .instruction-image__img {
    border-radius: 14px;
  }

  .instruction-video-card {
    padding: 0.65rem;
  }

  .instruction-video {
    border-radius: 12px;
  }
}

@media (max-width: 360px) {
  .instruction-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 768px) {
  .info-section__compare-visual {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .info-section {
    padding: 0 1rem;
  }

  .info-section__steps-grid {
    grid-template-columns: 1fr;
  }

  .info-section__compare {
    grid-template-columns: 1fr;
  }

  .compare-slider__wrap {
    border-radius: 20px;
  }

  .compare-slider__handle {
    width: 56px;
    height: 56px;
    gap: 6px;
  }

  .compare-slider__handle span {
    width: 10px;
    height: 10px;
  }

  #wspolne {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1700px) {
}

@media (max-width: 1550px) {
}

@media (max-width: 1496px) {
  .column {
    width: 22%;
  }
}

@media (max-width: 1450px) {
  .tutor-list {
    flex: 0 0 24%;
    margin: 10px 0;
  }

  .media-spol {
    width: 35%;
  }
}

@media (max-width: 1350px) {
  #ai-logo {
    margin-left: 0;
  }

  .column {
    width: 30%;
  }

  #tutorzy {
    flex: 0 0 23%;
  }
}

@media (max-width: 1300px) {
  .package-columns {
    column-gap: 10px;
  }

  .tutor-main {
    width: 60%;
  }
}

@media (max-width: 1200px) {
  #aismain {
    flex: 1;
  }

  #sklep div {
    flex: 1 1 calc(50% - 25px);
  }

  #prezent {
    width: 50%;
  }

  #kolumna {
    display: flex;
    flex-direction: column;
  }

  #ai-logo {
    width: 30%;
  }

  .main-content {
    margin-bottom: 20px;
  }

  .ai-school-button-container ul {
    width: 60%;
  }

  #center6, #ai1, #center4 {
    font-size: 2.5rem;
  }

  #center6 {
    z-index: 2;
  }

  #center7 {
    font-size: 1.5rem;
    z-index: 3;
  }

  h3 {
    font-size: 1.2rem;
  }

  #center2 {
    font-size: 1.2rem;
  }

  #center1 {
    font-size: 2.35rem;
  }

  #film-div, #about-div1 {
    width: 100%;
  }

  .media-spol {
    width: 40%;
  }
}

@media (max-width: 1150px) {
  .tutor-list {
    flex: 0 0 32%;
  }
}

@media (max-width: 1100px) {
}

@media (max-width: 1024px) {
  .column {
    width: 45%;
  }

  li, p {
    font-size: 1rem;
  }

  header nav ul li a {
    font-size: 1.1rem;
  }

  .ai-school-button-container ul {
    width: 65%;
  }

  #ai-logo {
    margin-left: 0;
    width: 35%;
  }

  #dziennikbtn1, #content-statystyki h3, #content-statystyki p, #dziennikcode {
    width: 50%;
  }

  .media-spol {
    width: 50%;
  }
}

@media (max-width: 1000px) {
  th {
    display: table-cell;
  }
}
@media (max-width: 950px){
    .right-menu{
        margin-right: 20px;
        margin-left: auto;
    }
    #film-div, #about-div1{
        flex-direction: column;
    }
    #film, #about-photo{
        flex: 1;
        justify-content: center;
    }
    #film-text{
        flex: 1;
        align-items: center;
    }
    #about-div1 h2{
        font-size: 2.5rem;
    }
    #center1{
        text-align: center;
        font-size: 3rem;
        margin-bottom: 20px;
        margin-top: 30px;
    }

    #center1::before {
        display:none;
    }

    #section3 p{
        padding-right: 0;
    }
    #about-text{
        padding-bottom: 30px;
    }
    #ai1{
        padding-right: 20px;
        padding-left: 20px;
    }
    #phone{
        width: 70%;
    }

    #okladka{
        width:40%;
        margin-top: 10px;
    }
}

@media (max-width: 950px) {
  .right-menu {
    margin-right: 20px;
    margin-left: auto;
  }

  #film-div, #about-div1 {
    flex-direction: column;
  }

  #film, #about-photo {
    flex: 1;
    justify-content: center;
  }

  #film-text {
    flex: 1;
    align-items: center;
  }

  #about-div1 h2 {
    font-size: 2.5rem;
  }

  #center1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 30px;
  }

  #center1::before {
    display: none;
  }

  #section3 p {
    padding-right: 0;
  }

  #about-text {
    padding-bottom: 30px;
  }

  #ai1 {
    padding-right: 20px;
    padding-left: 20px;
  }

  #phone {
    width: 70%;
  }
}

@media (max-width: 900px) {
  .tutor-list {
    flex: 0 0 48%;
  }
}

@media (max-width: 895px) {
  #tutorzy {
    flex: 0 0 22%;
  }

  #tutorzy_container .tutor-list .row {
    gap: 10px;
  }
}

@media (max-width: 865px) {
}

@media (max-width: 850px) {
  .main-content {
    padding-top: 20px;
  }

  .right {
    align-items: flex-start;
  }

  #aismain {
    padding-top: 100px;
  }

  .subject-selection {
    flex-direction: column;
  }

  .ai-school-button-container ul {
    width: 80%;
  }

  .media-spol {
    width: 60%;
  }
}




#language-steps-section.language-steps-section {
    --bg-1: #f5ede0;
    --bg-2: #efe4d4;
    --text: #181818;
    --muted: #5f554c;
    --border: #2f2a26;
    --accent-1: #f2a6a2;
    --accent-2: #d5a145;
    --accent-3: #f7d9a8;
    --radius: 26px;
    --font-heading: "Cantora", sans-serif;

    position: relative;
    overflow: hidden;
    padding: 40px 20px 40px;
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 207, 145, 0.16), transparent 26%),
        radial-gradient(circle at 82% 68%, rgba(242, 166, 162, 0.10), transparent 22%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.language-steps-container {
    max-width: 1150px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.language-steps-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.45;
    pointer-events: none;
}

.language-steps-bg-shape.shape-1 {
    width: 360px;
    height: 360px;
    top: -80px;
    left: -120px;
    background: radial-gradient(circle, rgba(255, 214, 150, 0.28) 0%, rgba(255, 214, 150, 0.02) 70%);
}

.language-steps-bg-shape.shape-2 {
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: 40px;
    background: radial-gradient(circle, rgba(242, 166, 162, 0.18) 0%, rgba(242, 166, 162, 0.02) 70%);
}

.language-steps-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 20% 30%, #000 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, #000 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, #000 1px, transparent 1px);
    background-size: 150px 150px, 190px 190px, 230px 230px;
}

.language-steps-header {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 42px;
}

.language-steps-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.55rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-wrap: balance;
    font-family: var(--font-heading);
}

.language-steps-title .accent-word {
    position: relative;
    display: inline-block;
    font-style: italic;
}

.language-steps-title .accent-word::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 0.08em;
    height: 0.26em;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(247, 217, 168, 0.75), rgba(242, 166, 162, 0.35));
}

.language-steps-subtitle {
    margin: 18px auto 0;
    max-width: 700px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.language-steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    z-index: 2;
}

.step-card {
    position: relative;
    min-height: 176px;
    border: 2px solid rgba(47, 42, 38, 0.92);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.92) 0%, rgba(252, 244, 232, 0.92) 100%);
    box-shadow:
        0 8px 0 rgba(0, 0, 0, 0.02),
        0 16px 38px rgba(0, 0, 0, 0.05);
    overflow: visible;
    transition:
        transform 0.26s ease,
        box-shadow 0.26s ease,
        border-color 0.26s ease;
    backdrop-filter: blur(4px);
}

.step-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.00), rgba(255, 217, 159, 0.14) 55%, rgba(242, 166, 162, 0.06));
    opacity: 0;
    transition: opacity 0.26s ease;
    pointer-events: none;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: #d39a3c;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.09),
        0 0 0 7px rgba(247, 217, 168, 0.28);
}

.step-card:hover::before {
    opacity: 1;
}

.step-inner {
    position: relative;
    z-index: 2;
    padding: 24px 26px 24px 26px;
}

.step-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    z-index: 4;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f4ada8 0%, #eb9792 100%);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #171717;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.07),
        0 10px 18px rgba(239, 152, 148, 0.24);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
    font-family: var(--font-heading);
}

.step-card:hover .step-badge {
    transform: scale(1.08);
    box-shadow:
        0 8px 0 rgba(0, 0, 0, 0.07),
        0 14px 28px rgba(239, 152, 148, 0.34);
}

.step-title {
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-family: var(--font-heading);
}

.step-text {
    margin: 0;
    color: #2d2823;
    font-size: 1rem;
    line-height: 1.65;
}

.step-keyword {
    display: inline-block;
    padding: 0.08em 0.52em;
    border-radius: 999px;
    background: rgba(247, 217, 168, 0.45);
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(211, 154, 60, 0.18);
}

/* FLOW */
.language-steps-flow {
    position: absolute;
    inset: 118px -20px 0 -20px;
    z-index: 1;
    pointer-events: none;
}

.language-steps-flow svg {
    width: 100%;
    overflow: visible;
    margin-top: 70px;
}

.flow-desktop {
    display: block;
    height: 460px;
}

.flow-mobile {
    display: none;
    height: 760px;
}

.flow-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-path-base {
    stroke: rgba(80, 62, 45, 0.08);
    stroke-width: 5;
}

.flow-path-animated {
    stroke: rgba(211, 154, 60, 0.36);
    stroke-width: 4;
    stroke-dasharray: 8 12;
    animation: flowDash 12s linear infinite;
    filter: drop-shadow(0 0 3px rgba(211, 154, 60, 0.10));
}

@keyframes flowDash {
    to {
        stroke-dashoffset: -180;
    }
}

/* REVEAL */
.reveal-item {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-1 { transition-delay: 0.02s; }
.reveal-2 { transition-delay: 0.14s; }
.reveal-3 { transition-delay: 0.26s; }
.reveal-4 { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
    .reveal-item,
    .step-card,
    .step-badge,
    .flow-path-animated {
        animation: none !important;
        transition: none !important;
    }

    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 900px) {
    #language-steps-section.language-steps-section {
        padding: 72px 16px 82px;
    }

    .language-steps-header {
        margin-bottom: 28px;
    }

    .language-steps-subtitle {
        font-size: 0.98rem;
    }

    .language-steps-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 680px;
        margin: 0 auto;
        padding-left: 0;
    }

    .step-card {
        min-height: auto;
    }

    .step-badge {
        top: -14px;
        left: -14px;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .step-inner {
        padding: 22px 18px 20px 24px;
    }

    .language-steps-flow {
        inset: 138px 0 0 0;
        display: flex;
        justify-content: center;
    }

    .flow-desktop {
        display: none;
    }

    .flow-mobile {
        display: block;
        width: min(100%, 680px);
        height: 760px;
    }
}

@media (max-width: 560px) {
    #language-steps-section.language-steps-section {
        padding: 30px 15px 30px;
    }

    .language-steps-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .language-steps-subtitle {
        margin-top: 14px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .language-steps-grid {
        gap: 16px;
        max-width: 100%;
    }

    .step-title {
        font-size: 1.15rem;
    }

    .step-text {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .step-inner {
        padding: 20px 16px 18px 22px;
    }

    .step-badge {
        top: -12px;
        left: -12px;
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
    }

    .language-steps-flow {
        inset: 126px 0 0 0;
    }

    .flow-mobile {
        height: 700px;
    }
}






.mj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.mj-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 20px 20px 20px;
  border: 2px solid #111111;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(34px) scale(0.96) rotate(-1.2deg);
  transition:
    transform 0.75s cubic-bezier(.18,.89,.32,1.15),
    opacity 0.65s ease,
    filter 0.65s ease,
    box-shadow 0.35s ease;
}

.mj-card.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1) rotate(0deg);
}

.mj-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 18px 38px rgba(17, 17, 17, 0.09),
    0 0 0 4px #ffffff,
    0 0 0 8px #f3d36a,
    10px -10px 0 0 #ffffff,
    -12px 14px 0 0 #f3d36a,
    18px 8px 0 0 #fff7d6,
    -8px -14px 0 0 #ffffff;
}

.mj-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.00)
    );
  pointer-events: none;
}


.mj-card:hover::after {
  opacity: 1;
}

.mj-card-head {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.mj-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 58px;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid #111111;
  border-radius: 50%;
  background: var(--poma);
  color: #111111;
  font-family: "Cantora", sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px #111111;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.mj-card:hover .mj-badge {
  transform: translateY(-2px);
  background: var(--poma);
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px #111111;
}

.mj-card-title {
  margin: 0;
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  color: #111111;
  text-align: center;
  align-self: center;
}

.mj-line {
  height: 1px;
  width: 100%;
  margin: 0 0 14px;
  background: rgba(17, 17, 17, 0.16);
  position: relative;
  overflow: hidden;
}

.mj-line::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 30%;
  height: 100%;
  background: #111111;
  opacity: 0.22;
  transition: left 0.6s ease;
}

.mj-card:hover .mj-line::after {
  left: 100%;
}

.mj-card-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.68;
  color: #2f2a26;
}

.mj-card-text strong {
  font-weight: 900;
  color: #111111;
}

.mj-span-6 {
  grid-column: span 6;
}

.mj-center-card {
  grid-column: 3 / span 8;
}

@media (max-width: 991px) {
  .mj-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mj-span-6,
  .mj-center-card {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .mj-card {
    padding: 18px 16px 16px;
    border-radius: 22px;
  }

  .mj-card-head {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
  }

  .mj-badge {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    font-family: "Cantora", sans-serif;
    font-size: 17px;
  }

  .mj-card-title {
    font-size: 20px;
  }

  .mj-card-text {
    font-size: 16px;
    line-height: 1.58;
  }
}

@media (max-width: 768px) {
  #mentor_main_shop #section9 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #mentor_main_shop #section9 .content-pakiety {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-inline: 12px;
    margin-left: auto;
    margin-right: auto;
  }

  #mentor_main_shop #section9 .row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  #mentor_main_shop #section9 .row > .column {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  #mentor_main_shop #section9 .course-card,
  #mentor_main_shop #section9 .plan-card,
  #mentor_main_shop #section9 .plan-card .content-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #mentor_main_shop #section9 .plan-card .card-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
    height: auto;
  }
}



.trial-box {
  position: relative;
  width: 75%;
  max-width: 1100px;
  margin: 70px auto 40px auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 18px;
  border-radius: 26px;
  overflow: hidden;

  background: linear-gradient(180deg, #efe7db 0%, #ebe2d5 100%);
  border: 1.5px solid rgba(50, 43, 38, 0.22);
  box-shadow:
    0 10px 24px rgba(60, 45, 35, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  opacity: 1;
  transform: none;
}

.trial-box::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(223, 147, 142, 0.16),
    rgba(232, 211, 173, 0.08) 40%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.trial-box:hover {
  border-color: rgba(50, 43, 38, 0.35);
  box-shadow:
    0 18px 34px rgba(60, 45, 35, 0.12),
    0 0 0 6px rgba(231, 191, 181, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.trial-box:hover::after {
  opacity: 1;
}

.trial-box__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
}

.trial-box__icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1b1a;
  background: linear-gradient(180deg, #e9a29a 0%, #df938e 100%);
  border: 1.5px solid rgba(50, 43, 38, 0.22);
  box-shadow:
    0 6px 16px rgba(120, 75, 68, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trial-box:hover .trial-box__icon {
  transform: translateY(-50%) rotate(-6deg) scale(1.05);
  box-shadow:
    0 10px 22px rgba(120, 75, 68, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.38);
}

.trial-box__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #4b4037;
  background: #e8d3ad;
  border: 1px solid rgba(75, 64, 55, 0.12);
  white-space: nowrap;
  text-align: center;
}

.trial-box__content {
  width: 100%;
  text-align: center;
}

.trial-box__content h3 {
  margin-bottom: 20px;
  margin-top: 10px;
  color: #161514;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-family: Cantora;
}

.trial-box__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border-radius: 16px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.15rem;
  font-weight: 800;
  color: #161514;
  background: linear-gradient(180deg, #e9a29a 0%, #df938e 100%);
  border: 1.5px solid rgba(50, 43, 38, 0.22);
  box-shadow:
    0 8px 18px rgba(120, 75, 68, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.30);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
    margin-left: auto;
    margin-right: auto;
}

.trial-box__button:hover {
  transform: translateY(-2px);
  filter: saturate(1.03);
  box-shadow:
    0 12px 24px rgba(120, 75, 68, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.34);
}

.trial-box__button:active {
  transform: translateY(0);
}

@media (max-width: 820px) {
  .trial-box {
    width: 80%;
    margin: 70px auto 40px auto;
    gap: 15px;
    padding: 10px;
  }

  .trial-box__top {
    min-height: 44px;
  }

  .trial-box__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
  }

  .trial-box__icon svg {
    width: 18px;
    height: 18px;
  }

  .trial-box__badge {
    font-size: 18px;
    padding: 5px 12px;
  }

  .trial-box__content h3 {
    font-size: 24px;
  }

  .trial-box__button {
    width: 100%;
  }
}