/* ==========================================================================
   Podstawowe Style i Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0f1419;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Globalne Komponenty (Przyciski, etc.)
   ========================================================================== */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.contact-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Sekcja Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/Hero_obraz.png') center/cover no-repeat;
    z-index: 1;
    animation: heroFloat 20s infinite ease-in-out;
}

@keyframes heroFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
}

.hero .container {
    padding: 0;
    max-width: none;
    margin: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    width: 100%;
    padding: 0 40px;
}

.hero-text {
    max-width: 900px;
    margin: 0;
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-text .subtitle {
    font-size: 1.4rem;
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ==========================================================================
   Sekcja KPO Highlight
   ========================================================================== */
.kpo-highlight {
    background: linear-gradient(90deg, #fffbe3 40%, #fff6e8 100%);
    padding: 32px 0 22px 0;
    border-bottom: 1px solid #ffd590;
}

.kpo-highlight-content {
    display: flex;
    align-items: center;
    gap: 3.2rem;
}

.kpo-highlight-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kpo-highlight-logo {
    height: 54px;
    margin-bottom: 7px;
}

.kpo-highlight-eu {
    height: 35px;
    margin-top: 3px;
}

.kpo-highlight-main {
    flex: 1 1 400px;
}

.kpo-highlight-main h3 {
    margin: 0 0 8px 0;
    color: #2c475a;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.kpo-highlight-main ul {
    margin: 0 0 13px 0;
    padding: 0 0 0 1.2em;
    color: #28585a;
}

.kpo-highlight-main ul li {
    list-style: disc;
    font-size: 1.11rem;
    margin-bottom: .3em;
}

.kpo-highlight-btn {
    margin-top: .5em;
    font-size: 1.11rem;
    padding: 13px 36px;
    border-radius: 22px;
}

.kpo-highlight-fineprint {
    display: block;
    margin-top: 8px;
    color: #b69767;
    font-size: .97rem;
    letter-spacing: .01em;
}

/* ==========================================================================
   Sekcja News
   ========================================================================== */
.news-section {
    padding: 90px 0 36px 0;
    background: #0f1419;
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem 2rem;
    margin: 3.5rem 0 0 0;
}

.news-tile {
    background: #23262c;
    border-radius: 18px;
    box-shadow: 0 8px 34px #0003;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.18s;
    display: flex;
    flex-direction: column;
    min-height: 410px;
}

.news-tile:hover {
    box-shadow: 0 14px 44px #ee5a2490;
    transform: translateY(-7px) scale(1.017);
}

.news-tile-imgwrap {
    width: 100%;
    aspect-ratio: 16/8;
    background: #eee;
    overflow: hidden;
    display: block;
}

.news-tile-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.news-tile-content {
    padding: 1.8rem 1.6rem 1.3rem 1.6rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-tile-date {
    color: #ff6b6b;
    font-size: 1.01rem;
    font-weight: 600;
    margin-bottom: .8rem;
}

.news-tile-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .65rem;
    line-height: 1.23;
    text-shadow: 0 1px 8px #0003;
}

.news-tile-lead {
    color: #c3c6cd;
    font-size: 1.04rem;
    margin-bottom: 2.1rem;
    line-height: 1.48;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-tile-link {
    display: inline-block;
    color: #ff6b6b;
    font-weight: 600;
    font-size: 1.08rem;
    margin-top: auto;
    text-decoration: none;
    transition: color .16s;
}

.news-tile-link:hover {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

.all-news-btn {
    padding: 17px 38px;
    border-radius: 36px;
    font-size: 1.13rem;
    letter-spacing: 0.01em;
    margin-top: 28px;
}

/* ==========================================================================
   Sekcja Kursów
   ========================================================================== */
.courses-preview {
    padding: 80px 0;
    background: #0f1419;
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.6) 0%, rgba(30, 40, 50, 0.6) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
	cursor: pointer;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 107, 0.3);
}

.course-card-header {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.course-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-card-content {
    padding: 2rem;
}

.course-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    transition: color 0.3s ease;
}

.course-card:hover h3 {
    color: #ff6b6b;
}

.course-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
}

.course-features li {
    padding: 0.5rem 0 0.5rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    font-size: 0.95rem;
}

.course-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
}

/* ==========================================================================
   Sekcja Cech (Features)
   ========================================================================== */
.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(238, 90, 36, 0.2) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ==========================================================================
   Sekcja Statystyk
   ========================================================================== */
.stats-section {
    padding: 80px 0;
    background: #0f1419;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ==========================================================================
   Sekcja Kontakt
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.form-group select option {
    background-color: #2d3748;
    color: #ffffff;
}

/* ==========================================================================
   Checkbox style
   ========================================================================== */

.form-checkbox-triple {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  margin: 14px 0 20px 0;
  font-size: 0.93em;
}

.form-checkbox-accept {
  display: flex;
  align-items: center;
  font-size: 0.99em;
  line-height: 1.3;
  color: #efefef;
  gap: 0.6em;
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.form-checkbox-accept input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background: #22272f;
  border: 2px solid #ff6b6b;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-block;
  vertical-align: middle;
  transition: box-shadow 0.16s, border-color 0.16s, background 0.16s;
  margin: 0 7px 0 0;
  position: relative;
  z-index: 1;
  outline: none;
  cursor: pointer;
}

.form-checkbox-accept input[type="checkbox"]:checked {
  background: #ff6b6b;
  border-color: #ff6b6b;
}

.form-checkbox-custom {
  pointer-events: none;
  position: absolute;
  left: 0.2em;
  width: 18px;
  height: 18px;
}

.form-checkbox-accept input[type="checkbox"]:checked + .form-checkbox-custom::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg) scale(1.03);
  display: block;
}

.form-checkbox-accept span:last-child {
  color: #dedede;
  font-size: 0.96em;
  font-weight: 400;
  margin-left: 2px;
}

.form-checkbox-accept a {
  color: #ffc087;
  text-decoration: underline dotted;
  font-weight: 500;
  transition: color 0.16s;
  margin-left: 2px;
}

.form-checkbox-accept a:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

@media (max-width: 540px) {
  .form-checkbox-triple {font-size: 1em;}
  .form-checkbox-accept {font-size: 1.03em;}
}




/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a202c;
}

::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ee5a24;
}

/* ==========================================================================
   STYLE RESPONSYWNE (Mobile First & Breakpoints)
   ========================================================================== */

/* Dla tabletów i mniejszych urządzeń */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.2rem;
    }
    .hero-text h1 {
        font-size: 3.2rem;
    }
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Dla mniejszych tabletów i telefonów w poziomie */
@media (max-width: 830px) {
    .kpo-highlight-content {
        flex-direction: column;
        gap: 1.45rem;
    }
    .kpo-highlight-main {
        text-align: center;
    }
}

/* Dla większości telefonów */
@media (max-width: 768px) {
    body {
        line-height: 1.5;
    }
    .hero {
        padding: 120px 0 80px;
        min-height: 90vh;
    }
    .hero::before {
        background-image: url('../img/Hero_obraz_mobile.png'); /* Specjalny obraz dla mobile */
    }
    .hero-content {
        padding: 0 20px;
        align-items: center;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    .hero-text p {
        font-size: 1.1rem;
        max-width: 500px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .btn {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
    .courses-preview, .features-section, .stats-section, .contact-section, .news-section {
        padding: 60px 0;
    }
    .courses-grid,
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    .stat-number {
        font-size: 2.8rem;
    }
    .stat-label {
        font-size: 1rem;
    }
    .contact-form {
        padding: 2rem;
    }
    .news-tile-content {
        padding: 1.4rem;
    }
}

/* Dla bardzo małych ekranów */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header p {
        font-size: 1rem;
    }
    .kpo-highlight-main h3 {
        font-size: 1.3rem;
    }
    .kpo-highlight-main ul li {
        font-size: 1rem;
    }
}
