/* ============================================================
   TYNTECH – Usługi Informatyczne dla Firm
   Główny arkusz stylów
   ============================================================ */

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

:root {
  --blue-dark:   #1a3a8f;
  --blue-mid:    #1e4dbf;
  --blue-light:  #2d65e0;
  --white:       #ffffff;
  --gray-light:  #f4f7fc;
  --gray-mid:    #e2e8f5;
  --gray-text:   #444c6a;
  --green:       #28a745;
  --yellow:      #ffc107;
  --shadow:      0 4px 24px rgba(26,58,143,0.12);
  --radius:      10px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--blue-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.text-white h1,
.text-white h2,
.text-white h3,
.text-white p { color: var(--white); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--yellow);
  color: var(--blue-dark);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: #e6ac00;
  border-color: #e6ac00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,193,7,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,58,143,0.97);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: padding var(--transition);
}
.navbar.scrolled { padding: 8px 0; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 120px;
  width: auto;
  #filter: brightness(100) invert(1);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--yellow); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  color: var(--yellow);
  font-weight: 700;
  font-size: 1rem;
}
.nav-phone:hover { color: #e6ac00; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--blue-dark);
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.mobile-menu.open { max-height: 500px; padding: 16px 0; }
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,193,7,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.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: rgba(255,193,7,0.15);
  border: 1px solid rgba(255,193,7,0.4);
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--yellow); }
.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.hero-trust {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.trust-item .icon { color: var(--yellow); font-size: 1.1rem; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 36px;
}
.hero-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}
.problem-list { display: flex; flex-direction: column; gap: 14px; }
.problem-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.problem-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ---------- SECTION GENERIC ---------- */
section { padding: 80px 0; }
.section-label {
  display: inline-block;
  background: var(--gray-mid);
  color: var(--blue-mid);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 16px auto 0;
  color: #5a638a;
}

/* ---------- OFFER ---------- */
.offer { background: var(--gray-light); }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--blue-dark);
}
.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,58,143,0.16);
}
.offer-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.offer-card h3 {
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.offer-card p { font-size: 0.95rem; color: #5a638a; }

/* ---------- WHY US ---------- */
.why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.why-item {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform var(--transition);
}
.why-item:hover { transform: translateY(-4px); }
.why-icon {
  width: 48px; height: 48px;
  background: var(--blue-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.why-text h4 { color: var(--blue-dark); margin-bottom: 6px; font-size: 1rem; }
.why-text p  { font-size: 0.9rem; color: #5a638a; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 80px 0;
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 { color: var(--white); margin-bottom: 16px; }
.cta-inner p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}
.cta-contact-item a { color: var(--yellow); }
.cta-contact-item a:hover { text-decoration: underline; }

/* ---------- CONTACT FORM ---------- */
.contact { background: var(--gray-light); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { color: var(--blue-dark); margin-bottom: 20px; }
.contact-info p  { margin-bottom: 12px; color: #5a638a; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(26,58,143,0.06);
}
.contact-detail .cd-icon { font-size: 1.3rem; width: 28px; text-align: center; }
.contact-detail a { color: var(--blue-mid); font-weight: 600; }
.contact-detail a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--blue-dark); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-mid);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--gray-text);
  transition: border-color var(--transition);
  outline: none;
  background: var(--gray-light);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-mid);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #5a638a;
  margin-bottom: 20px;
}
.form-consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--blue-mid); }
.form-consent a { color: var(--blue-mid); text-decoration: underline; }
.btn-submit {
  width: 100%;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: var(--blue-mid); transform: translateY(-2px); }
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 600;
  display: none;
}
.form-message.success { background: #d4edda; color: #155724; display: block; }
.form-message.error   { background: #f8d7da; color: #721c24; display: block; }

/* ---------- FOOTER ---------- */
footer {
  background: #0f1e52;
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img {
  height: 52px;
  width: auto;
  #filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-col p   { font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a   { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.55); margin-left: 16px; }
.footer-bottom a:hover { color: var(--yellow); }

/* ---------- COOKIE BANNER ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #0f1e52;
  color: rgba(255,255,255,0.9);
  padding: 20px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { flex: 1; font-size: 0.9rem; min-width: 260px; }
#cookie-banner p a { color: var(--yellow); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--yellow);
  color: var(--blue-dark);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-cookie-reject:hover { color: var(--white); border-color: var(--white); }

/* ---------- SCROLL TO TOP ---------- */
#scroll-top {
  position: fixed;
  bottom: 80px; right: 24px;
  z-index: 500;
  width: 44px; height: 44px;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--blue-mid); }

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-card       { display: none; }
  .contact-inner   { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger       { display: flex; }
}
@media (max-width: 600px) {
  section         { padding: 60px 0; }
  .footer-top     { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .form-row       { grid-template-columns: 1fr; }
  .cta-contacts   { flex-direction: column; gap: 16px; }
  #cookie-banner  { flex-direction: column; }
}
