/* ============================
   KOLOROWE KREDKI
   CSS Stylesheet
   ============================ */

/* --- Variables --- */
:root {
  --primary:     #28a8e3;
  --primary-dark:#1a8bbf;
  --green:       #93c524;
  --green-dark:  #7aab1a;
  --yellow:      #ffd823;
  --yellow-dark: #e6c210;
  --red:         #f25141;
  --brown:       #704f32;
  --light-bg:    #f5fbff;
  --light-green: #f4fde8;
  --white:       #ffffff;
  --text:        #2d3142;
  --text-muted:  #6b7280;
  --border:      #e5e9ef;
  --radius:      10px;
  --shadow:      0 2px 16px rgba(40,168,227,0.11);
  --font:        'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --nav-height:  72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--alt { background: var(--light-bg); }
.section--green { background: var(--light-green); }

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.nav__logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--green) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__logo-text span:first-child { font-size: 1rem; color: var(--brown); font-weight: 800; }
.nav__logo-text span:last-child  { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0.03em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.18s, color 0.18s;
}
.nav__links a:hover,
.nav__links a.active {
  background: var(--primary);
  color: var(--white);
}
.nav__cta {
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  margin-left: 6px !important;
}
.nav__cta:hover { background: var(--green-dark) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #e8f7fd 0%, #f4fde8 60%, #fffde7 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: rgba(40,168,227,0.08);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(147,197,36,0.09);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.13;
  margin-bottom: 20px;
  color: var(--text);
}
.hero__title em { font-style: normal; color: var(--primary); }
.hero__title strong { color: var(--green); }
.hero__subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { display: flex; justify-content: center; }

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  background: var(--primary);
  padding: 28px 0;
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat__number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn--primary { background: var(--primary); color: white; }
.btn--primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(40,168,227,0.35); }
.btn--green { background: var(--green); color: white; }
.btn--green:hover { background: var(--green-dark); color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(147,197,36,0.35); }
.btn--yellow { background: var(--yellow); color: var(--brown); }
.btn--yellow:hover { background: var(--yellow-dark); color: var(--brown); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: white; }
.btn--outline-white { background: transparent; color: white; border: 2px solid white; }
.btn--outline-white:hover { background: white; color: var(--primary); }

/* ============================
   SECTION HEADINGS
   ============================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-header__tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header__tag--green { color: var(--green); }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text);
}
.section-header p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; }

/* ============================
   CARDS
   ============================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 32px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card__icon--blue   { background: #e0f4fd; }
.card__icon--green  { background: #eaf7d0; }
.card__icon--yellow { background: #fffbe0; }
.card__icon--red    { background: #fdecea; }
.card__icon--brown  { background: #f5ede6; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card p  { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ============================
   COLOR ACCENT CARDS
   ============================ */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  border-radius: 18px;
  padding: 28px 22px;
  color: white;
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card--blue   { background: linear-gradient(135deg, #28a8e3, #1a8bbf); }
.feature-card--green  { background: linear-gradient(135deg, #93c524, #7aab1a); }
.feature-card--yellow { background: linear-gradient(135deg, #ffd823, #e6a710); color: var(--brown); }
.feature-card--red    { background: linear-gradient(135deg, #f25141, #d63a2b); }
.feature-card__icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 0.88rem; opacity: 0.9; line-height: 1.55; }

/* ============================
   PAGE HERO
   ============================ */
.page-hero {
  padding: 64px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero--blue   { background: linear-gradient(135deg, #e0f4fd 0%, #e8f7fd 100%); }
.page-hero--green  { background: linear-gradient(135deg, #eaf7d0 0%, #f4fde8 100%); }
.page-hero--yellow { background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%); }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text);
}
.page-hero__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.page-hero__tag--blue   { background: var(--primary); color: white; }
.page-hero__tag--green  { background: var(--green); color: white; }
.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================
   INFO BLOCK
   ============================ */
.info-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.info-block--reverse { direction: rtl; }
.info-block--reverse > * { direction: ltr; }
.info-block__text .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--primary);
}
.info-block__text h2 {
  font-size: 1.85rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}
.info-block__text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.7;
}
.info-block__text .check-list {
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: '✓';
  background: var(--green);
  color: white;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.info-block__visual { display: flex; justify-content: center; align-items: center; }

/* ============================
   PROGRAMME SECTION
   ============================ */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.programme-item {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.2s;
}
.programme-item:hover { box-shadow: var(--shadow); }
.programme-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.programme-item__icon--blue   { background: #e0f4fd; }
.programme-item__icon--green  { background: #eaf7d0; }
.programme-item__icon--yellow { background: #fffbe0; }
.programme-item__icon--red    { background: #fdecea; }
.programme-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.programme-item p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* ============================
   CONTACT
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
.contact-info h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-item__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item__label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; font-weight: 600; }
.contact-item__value { font-size: 0.97rem; font-weight: 600; color: var(--text); }
.contact-item__value a { color: var(--primary); }

.contact-form {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 38px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: var(--font);
  transition: border-color 0.18s, box-shadow 0.18s;
  background: white;
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40,168,227,0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ============================
   GALLERY
   ============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item__inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(40,168,227,0.75);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* ============================
   GALLERY FILTER
   ============================ */
.gallery-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.gallery-filter__btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--text-muted);
}
.gallery-filter__btn.active,
.gallery-filter__btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================
   NOTICE BOX
   ============================ */
.notice {
  background: #e0f4fd;
  border: 1.5px solid rgba(40,168,227,0.25);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.notice--green { background: #eaf7d0; border-color: rgba(147,197,36,0.3); }
.notice--yellow { background: #fffde7; border-color: rgba(255,216,35,0.4); }
.notice__icon { font-size: 1.4rem; flex-shrink: 0; }
.notice__text { font-size: 0.92rem; line-height: 1.6; }
.notice__text strong { display: block; margin-bottom: 3px; font-weight: 700; }

/* ============================
   CTA BAND
   ============================ */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 0;
  text-align: center;
  color: white;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: #1a2535;
  color: #b8c6d6;
  padding: 64px 0 30px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer__brand-logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.footer__brand-name { font-size: 0.98rem; font-weight: 800; color: white; line-height: 1.2; }
.footer__brand-sub  { font-size: 0.72rem; color: #8895a7; }
.footer__brand p { font-size: 0.87rem; line-height: 1.68; margin-bottom: 20px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8c6d6;
  font-size: 0.9rem;
  transition: background 0.18s;
  text-decoration: none;
}
.footer__social a:hover { background: var(--primary); color: white; }

.footer__col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col ul li a {
  color: #b8c6d6;
  font-size: 0.87rem;
  transition: color 0.18s;
}
.footer__col ul li a:hover { color: var(--yellow); }
.footer__col p { font-size: 0.87rem; line-height: 1.7; }
.footer__col a { color: #b8c6d6; font-size: 0.87rem; }
.footer__col a:hover { color: var(--yellow); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7c93;
}

/* ============================
   HELPERS
   ============================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.illustration { width: 100%; max-width: 440px; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 960px) {
  .hero__inner    { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual   { display: none; }
  .info-block     { grid-template-columns: 1fr; gap: 36px; }
  .info-block--reverse { direction: ltr; }
  .stats-bar__inner { grid-template-columns: repeat(2,1fr); }
  .contact-grid   { grid-template-columns: 1fr; }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
    z-index: 200;
  }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .stats-bar__inner { grid-template-columns: repeat(2,1fr); }
}
