/* ===== NEON — Zakład Elektro-Instalacyjny ===== */

* {
  box-sizing: border-box;
}

:root {
  --navy: #10202e;
  --navy-dark: #0a161f;
  --amber: #f5a623;
  --amber-dark: #d68a0d;
  --gray-100: #f6f7f9;
  --gray-200: #e7eaee;
  --gray-600: #5b6672;
  --text: #1c2733;
  --radius: 6px;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  color: var(--text);
  font: 15px/1.6 Arial, "Arial Unicode MS", Helvetica, sans-serif;
  background: #fff;
}

a {
  color: var(--amber-dark);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.25;
}

p {
  margin: 12px 0;
}

ul {
  margin: 1em 0;
  padding-left: 22px;
}

li {
  margin-top: 6px;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===== Skip link ===== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus {
  top: 0;
}

/* ===== Header / Nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--navy);
  font-size: 20px;
  background: var(--amber);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.brand-text span {
  color: #b9c3cd;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 34px;
  padding: 6px;
  border: 1px solid #33495c;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: #d7dee5;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav a.active,
.nav a:hover {
  color: var(--navy);
  background: var(--amber);
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 64px 0 60px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, #1c384c 60%, var(--navy-dark) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-45deg, rgba(245, 166, 35, 0.06) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--amber);
}

.hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(26px, 4.5vw, 40px);
}

.hero p {
  max-width: 560px;
  color: #cdd7df;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: bold;
  text-decoration: none;
  background: var(--amber);
}

.btn:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

.btn.btn-outline {
  color: #fff;
  background: transparent;
}

.btn.btn-outline:hover {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
}

/* ===== Sections ===== */

.section {
  padding: 52px 0;
}

.section.alt {
  background: var(--gray-100);
}

.section h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--gray-600);
}

.copy-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.copy-with-photo img {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

/* Service icon cards */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.service-card {
  padding: 22px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  background: #fff;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--navy);
  background: #fdf1dc;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--amber-dark);
}

.service-card h3 {
  margin: 0;
  font-size: 16px;
  text-transform: capitalize;
}

/* Offer list */

.offer-list {
  counter-reset: offer;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.offer-list li {
  position: relative;
  margin-top: 12px;
  padding: 14px 16px 14px 54px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
}

.offer-list li::before {
  counter-increment: offer;
  content: counter(offer);
  position: absolute;
  top: 50%;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  background: var(--navy);
}

.offer-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.offer-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

/* Info / hurtownia card */

.info-card {
  max-width: 520px;
  padding: 26px 28px;
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  background: #fff;
}

.info-card h3 {
  margin-top: 0;
  font-size: 18px;
}

.info-card p {
  margin: 6px 0;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}

.panel {
  padding: 24px 26px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
}

.panel h3 {
  margin-top: 0;
  font-size: 17px;
}

.contact-line {
  margin: 10px 0;
}

.contact-line strong {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.map-frame {
  width: 100%;
  height: 260px;
  margin-top: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.contact-form label {
  display: block;
  margin-top: 14px;
  font-weight: bold;
  font-size: 13px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid #c7ccd2;
  border-radius: 4px;
  font: inherit;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
  font-weight: normal;
}

.check-row input {
  width: auto;
  margin-top: 4px;
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.captcha-image {
  border: 1px solid #c7ccd2;
  border-radius: 4px;
}

.captcha-input {
  max-width: 120px;
}

.button {
  display: inline-block;
  width: auto;
  margin-top: 16px;
  padding: 11px 26px;
  border: none;
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: bold;
  font-size: 15px;
  background: var(--amber);
  cursor: pointer;
}

.button:hover {
  background: var(--amber-dark);
}

.form-message {
  display: none;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #8fb9d4;
  border-radius: 4px;
  background: #eaf6fd;
}

.form-message.error {
  border-color: #d69b9b;
  background: #fff0f0;
}

/* ===== Footer ===== */

.site-footer {
  padding: 30px 0;
  color: #cdd7df;
  background: var(--navy-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.footer-inner a {
  color: #cdd7df;
}

.footer-contacts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-contacts strong {
  color: #fff;
}

/* ===== Cookie bar ===== */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  color: #eef2f5;
  font-size: 13px;
  background: var(--navy-dark);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar p {
  margin: 0;
  max-width: 760px;
}

.cookie-bar a {
  color: var(--amber);
}

.cookie-bar-actions {
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 4px;
  color: var(--navy);
  font-weight: bold;
  background: var(--amber);
  cursor: pointer;
}

.cookie-btn:hover {
  background: var(--amber-dark);
}

/* ===== Privacy policy ===== */

.pp-hero {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.pp-eyebrow {
  margin: 0 0 4px;
  color: var(--amber-dark);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-body h2 {
  margin: 28px 0 8px;
  padding-left: 10px;
  border-left: 4px solid var(--amber);
  font-size: 17px;
}

.pp-body h2:first-child {
  margin-top: 0;
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.pp-table th,
.pp-table td {
  padding: 8px 10px;
  border: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

.pp-table th {
  background: var(--gray-100);
}

.info-box {
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  background: #fdf6e8;
  font-size: 13px;
}

.info-box strong {
  display: block;
  margin-bottom: 4px;
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .services-grid,
  .offer-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copy-with-photo,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .copy-with-photo img {
    max-width: 320px;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--navy);
    border-bottom: 3px solid var(--amber);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .section {
    padding: 38px 0;
  }

  .services-grid,
  .offer-gallery {
    grid-template-columns: 1fr;
  }
}
