/* =============================================
   BEZPIECZNE RYZYKO - Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&amp;display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

a { color: #00a9e0; text-decoration: none; }
a:hover { color: #0087b3; }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

h1,h2,h3,h4,h5,h6 { line-height: 1.3; }

/* --- Page Loader --- */
.page_loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #fff; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s;
}
.page_loader.hide { opacity: 0; pointer-events: none; }

/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.main_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 75px;
}

/* Logo */
.logo_wrapper { flex-shrink: 0; }
.logo_wrapper h1 { margin: 0; }
.logo_wrapper a {
  display: flex; align-items: center; gap: 10px;
}
.logo_wrapper img.main-logo { height: 50px; width: auto; }
.logo_wrapper img.logo-skrot { height: 30px; width: auto; }

/* --- Navigation --- */
.aside-header { display: flex; align-items: center; }

#menu_bar { display: flex; align-items: center; }

#menu_main ul.navbar-nav2 {
  display: flex; align-items: center; gap: 0; list-style: none;
}

#menu_main ul.navbar-nav2 > li {
  position: relative;
}

#menu_main ul.navbar-nav2 > li > a {
  display: block;
  padding: 28px 14px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.2s;
}
#menu_main ul.navbar-nav2 > li > a:hover,
#menu_main ul.navbar-nav2 > li.current > a { color: #00a9e0; }

/* Dropdown */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 999;
}
.has-children:hover > .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s;
}
.sub-menu li a:hover { background: #f7f7f7; color: #00a9e0; }

.mobile-dropdown { display: none; }

/* Special 1.5% menu item */
.menu_1p > a {
  background: #00a9e0;
  color: #fff !important;
  border-radius: 3px;
  padding: 8px 12px !important;
  font-weight: 700 !important;
}
.menu_1p > a:hover { background: #0087b3 !important; }

/* Social links in header */
.social-links-menu { margin-left: 10px; }
.social_links.headersocial {
  display: flex; align-items: center; gap: 8px;
}
.social_links a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #00a9e0;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}
.social_links a:hover { background: #0087b3; transform: translateY(-2px); }

/* Mobile social links */
.social_links.mobile {
  display: none;
  position: fixed; right: 0; top: 50%;
  transform: translateY(-50%);
  flex-direction: column; gap: 4px;
  z-index: 999;
}
.social_links.mobile a {
  border-radius: 4px 0 0 4px;
  width: 36px; height: 36px;
}

/* Mobile menu button */
#mobile_switcher {
  display: none;
  cursor: pointer;
  width: 30px; height: 22px;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 15px;
}
#mobile_switcher span {
  display: block; height: 3px;
  background: #333; border-radius: 2px;
  transition: all 0.3s;
}
#mobile_switcher.open span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
#mobile_switcher.open span:nth-child(2) { opacity: 0; }
#mobile_switcher.open span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

#paddingheader { padding-top: 75px; }

/* =============================================
   HERO SLIDER (Homepage)
   ============================================= */
#slideshow_main {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-container {
  position: relative;
  width: 100%;
}

.single_slide_main {
  display: none;
  width: 100%;
}
.single_slide_main.active { display: block; }

.single_slide_img {
  width: 100%;
  height: 520px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.slide-nav {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slide-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer; border: none;
  transition: background 0.2s;
}
.slide-dot.active { background: #00a9e0; }

/* =============================================
   HOMEPAGE SECTIONS
   ============================================= */
.main_page { min-height: 740px; }

/* "O" topic links section */
.section_start_points {
  padding: 40px 20px;
  background: #f9f9f9;
}
.start_point_list {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.big_o {
  font-size: 7rem;
  font-weight: 700;
  color: #00a9e0;
  line-height: 1;
  margin-right: 20px;
}
.line_elem {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.single_point a {
  display: inline-block;
  background: #00a9e0;
  color: #fff;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.single_point a:hover { background: #0087b3; color: #fff; }

/* Testimonials slider */
.section_opinie_start {
  padding: 60px 20px;
  background: #fff;
}
.opinia_slider {
  max-width: 900px; margin: 0 auto;
  position: relative;
}
.opinia_track {
  overflow: hidden;
}
.opinia_slides {
  display: flex;
  transition: transform 0.5s ease;
}
.opinia_slide {
  min-width: 50%;
  padding: 0 20px;
  text-align: center;
}
.opinia_slide blockquote {
  font-size: 16px;
  font-style: italic;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  padding: 20px 30px;
  background: #f9f9f9;
  border-left: 4px solid #00a9e0;
  text-align: left;
}
.opinia_autor {
  font-weight: 700; color: #00a9e0; font-size: 15px;
}
.opinia_desc { color: #888; font-size: 13px; }

.arrow-left, .arrow-right {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 2.5rem; color: #00a9e0;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  z-index: 5; transition: color 0.2s;
}
.arrow-left { left: -40px; }
.arrow-right { right: -40px; }
.arrow-left:hover, .arrow-right:hover { color: #0087b3; }

/* Stats/Numbers section */
.section_liczby_start {
  padding: 60px 20px;
  background: #f0f8fd;
}
.section_liczby_start > div {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 30px;
}
.single_liczby {
  flex: 1; min-width: 280px; max-width: 340px;
  text-align: center; padding: 30px 20px;
  background: #fff; border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,169,224,0.08);
}
.single_liczby .obraz { margin: 0 auto 20px; }
.single_liczby .obraz img { margin: 0 auto; max-height: 80px; }
.single_liczby .liczba {
  font-size: 3.5rem;
  font-weight: 700;
  color: #00a9e0;
  line-height: 1;
  margin: 10px 0;
}
.single_liczby .tresc {
  font-size: 15px; color: #555; line-height: 1.6;
}

/* =============================================
   SUB-PAGE HEADER BANNER
   ============================================= */
.sub_header_page {
  background: #00a9e0;
  padding: 40px 20px;
  text-align: center;
}
.sub_header_page .loaded {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  max-width: 900px;
  margin: 0 auto;
}

/* =============================================
   CONTENT PAGES (single_page)
   ============================================= */
.single_page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.edytor { max-width: 820px; }
.edytor p { margin-bottom: 18px; color: #444; font-size: 15px; line-height: 1.8; }
.edytor ul { margin: 15px 0 20px 20px; }
.edytor ul li { margin-bottom: 8px; color: #444; list-style: disc; font-size: 15px; }
.edytor h2 {
  font-size: 1.8rem;
  color: #00a9e0;
  margin-bottom: 20px;
  margin-top: 30px;
  font-weight: 700;
}
.edytor h2.no_after { color: #00a9e0; }
.edytor strong { color: #00a9e0; }

/* 50/50 split layout */
.podzial_50 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}
.podzial_50 > div {
  flex: 1; min-width: 260px;
}
.padding_div { padding: 0 10px; }
.top_padd { padding-top: 10px; }
.podzial_50 p { color: #444; font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.podzial_50 a { color: #00a9e0; }

/* =============================================
   ABOUT US PAGE - ENHANCED
   ============================================= */
.about-hero {
  background: linear-gradient(135deg, #00a9e0 0%, #0087b3 100%);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}
.about-hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; }
.about-hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; opacity: 0.9; }

.about-section {
  padding: 60px 20px;
}
.about-section:nth-child(even) { background: #f9f9f9; }

.about-inner {
  max-width: 1000px; margin: 0 auto;
}
.about-inner h2 {
  font-size: 1.9rem; color: #00a9e0; font-weight: 700;
  margin-bottom: 25px; padding-bottom: 10px;
  border-bottom: 3px solid #00a9e0;
  display: inline-block;
}
.about-inner p { color: #444; font-size: 15px; line-height: 1.8; margin-bottom: 18px; }
.about-inner ul { margin: 15px 0 25px 0; }
.about-inner ul li {
  padding: 8px 0 8px 25px;
  position: relative;
  color: #444; font-size: 15px;
  border-bottom: 1px solid #eee;
}
.about-inner ul li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: #00a9e0; border-radius: 50%;
}

/* Mission/Vision cards */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.mv-card {
  background: #fff;
  border: 2px solid #00a9e0;
  border-radius: 6px;
  padding: 30px 25px;
  text-align: center;
}
.mv-card h3 { color: #00a9e0; font-size: 1.3rem; margin-bottom: 15px; font-weight: 700; }
.mv-card p { color: #555; font-size: 14px; line-height: 1.7; }

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.team-card {
  background: #fff;
  border-radius: 6px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 6px 25px rgba(0,0,0,0.13); }
.team-card .avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #00a9e0;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  margin: 0 auto 15px;
}
.team-card h4 { color: #333; font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.team-card p { color: #888; font-size: 13px; }

/* Stats in about */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.stat-box {
  background: #00a9e0;
  color: #fff;
  border-radius: 6px;
  padding: 25px 15px;
  text-align: center;
}
.stat-box .num { font-size: 2.8rem; font-weight: 700; line-height: 1; }
.stat-box .label { font-size: 13px; margin-top: 8px; opacity: 0.9; }

/* =============================================
   CONTACT PAGE - ENHANCED
   ============================================= */
.contact-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px; margin: 0 auto;
  padding: 50px 20px 0;
}
@media (max-width: 700px) { .contact-top { grid-template-columns: 1fr; } }

.contact-info-box {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 30px 25px;
  border-left: 4px solid #00a9e0;
}
.contact-info-box h3 { color: #00a9e0; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.contact-info-box p { color: #444; font-size: 15px; line-height: 1.8; margin-bottom: 10px; }
.contact-info-box a { color: #00a9e0; font-weight: 600; }
.contact-info-box a:hover { text-decoration: underline; }
.contact-detail-row {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.contact-detail-row .icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: #00a9e0; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.contact-detail-row .text { font-size: 14px; color: #444; line-height: 1.6; }
.contact-detail-row .text strong { color: #333; display: block; font-weight: 600; }

.contact-map {
  max-width: 1000px; margin: 30px auto 0; padding: 0 20px;
}
.contact-map iframe {
  width: 100%; height: 300px; border: none; border-radius: 6px;
}

/* Contact Form */
.cf_form {
  max-width: 820px;
  margin: 0 auto;
}
.cf_form label {
  display: block;
  font-size: 14px; font-weight: 600; color: #333;
  margin-bottom: 6px; margin-top: 18px;
}
.cf_form input[type="text"],
.cf_form input[type="email"],
.cf_form input[type="tel"],
.cf_form textarea {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  transition: border-color 0.2s;
  outline: none;
}
.cf_form input:focus,
.cf_form textarea:focus { border-color: #00a9e0; }
.cf_form textarea { min-height: 130px; resize: vertical; }

.radio-group { display: flex; gap: 20px; margin-top: 8px; }
.radio-group label {
  display: flex; align-items: center; gap: 7px;
  font-weight: 400; cursor: pointer; color: #444;
  margin-top: 0;
}
.radio-group input[type="radio"] { margin: 0; }

.checkbox-row { margin: 15px 0; }
.checkbox-row label {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 400; cursor: pointer; color: #444;
  margin-top: 0;
}
.checkbox-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.checkbox-text { font-size: 13px; line-height: 1.6; }

.consent-expand {
  font-size: 12px; color: #00a9e0;
  cursor: pointer; text-decoration: underline;
  margin-left: 8px;
}
.consent-detail {
  display: none;
  background: #f5f5f5;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 12px; color: #666;
  line-height: 1.6;
  margin-top: 8px;
}
.consent-detail.open { display: block; }

.required-note { font-size: 12px; color: #888; margin-top: 10px; }

.send_button { margin-top: 25px; }
.send_button button, .send_button input[type="submit"] {
  background: #00a9e0;
  color: #fff;
  border: 2px solid #00a9e0;
  border-radius: 2px;
  padding: 14px 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.send_button button:hover, .send_button input[type="submit"]:hover {
  background: transparent; color: #515151; border-color: #515151;
}

#formStatus { margin-top: 15px; }

/* =============================================
   FOOTER
   ============================================= */
#main_footer {
  background: #222;
  color: #ccc;
  padding: 30px 20px;
}
#main_footer .main {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
#main_footer a { color: #ccc; transition: color 0.2s; }
#main_footer a:hover { color: #00a9e0; }
#main_footer .copy {
  font-size: 12px; color: #888; margin-top: 8px;
  line-height: 1.8;
}
#main_footer .line_deco { margin: 0 6px; color: #555; }
.footer_logo { display: flex; align-items: center; gap: 15px; }
.footer_logo img { opacity: 0.7; transition: opacity 0.2s; }
.footer_logo img:hover { opacity: 1; }
.logo_footer_1 { height: 27px; width: auto; }
.logo_footer_2 { height: 24px; width: auto; }

/* =============================================
   COOKIE BAR
   ============================================= */
#ac_cookie_bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid #e3e3e3;
  padding: 10px 20px;
  z-index: 999999; font-size: 12px; color: #555;
}
#ac_cookie_bar > div {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
#ac_close_cookie_bar {
  cursor: pointer; padding: 6px 14px;
  background: #00a9e0; color: #fff;
  border-radius: 2px; font-size: 12px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  margin-left: 15px;
}
#ac_close_cookie_bar:hover { background: #0087b3; }
#ac_cookie_bar a { color: #00a9e0; font-weight: 700; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  #mobile_switcher { display: flex; }

  .social-links-menu { display: none; }

  #menu_main ul.navbar-nav2 {
    display: none;
    position: fixed; top: 75px; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    overflow-y: auto;
    gap: 0;
    padding-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  #menu_main ul.navbar-nav2.open { display: flex; }

  #menu_main ul.navbar-nav2 > li > a {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
  }

  .mobile-dropdown { display: inline; }
  .sub-menu {
    position: static;
    box-shadow: none;
    background: #f7f7f7;
    display: none;
  }
  .has-children > a .mobile-dropdown { cursor: pointer; }
  .sub-menu.open { display: block; }
  .sub-menu li a { padding: 10px 30px; font-size: 13px; }

  .arrow-left { left: -5px; }
  .arrow-right { right: -5px; }
  .opinia_slide { min-width: 100%; }
  .social_links.mobile { display: flex; }
}

@media (max-width: 768px) {
  .single_slide_img { height: 300px; }
  .big_o { font-size: 4rem; }
  .section_liczby_start > div { gap: 15px; }
  .single_liczby { min-width: 100%; }
  .about-hero h1 { font-size: 1.8rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-box .num { font-size: 2rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  #main_footer .main { flex-direction: column; text-align: center; }
  .footer_logo { justify-content: center; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; gap: 10px; }
}
