:root {
  color-scheme: light;
  --ink: #11151d;
  --ink-soft: #232936;
  --charcoal: #0a0d12;
  --navy: #111824;
  --navy-soft: #171f2b;
  --gold: #c99a46;
  --gold-light: #e4c175;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --muted: #6f7480;
  --line: #dedbd3;
  --line-dark: rgba(228, 193, 117, 0.28);
  --shadow: 0 18px 46px rgba(10, 13, 18, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 800;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(10, 13, 18, 0.94);
  color: #f8f4ea;
  padding: 0 36px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1;
}

.brand-copy span {
  color: #d8d3c8;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #e8e5dc;
  font-weight: 650;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.site-nav a:hover,
.header-phone:hover {
  color: var(--gold-light);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-weight: 800;
  padding: 0 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(680px, 78svh);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 10, 14, 0.96) 0%, rgba(7, 10, 14, 0.82) 38%, rgba(7, 10, 14, 0.3) 72%),
    url("assets/arkan-wizytowka.jpg") center / cover;
  color: #fffaf0;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 7px;
  background: var(--gold);
  content: "";
}

.hero-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 66px 0 74px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.gold {
  color: var(--gold-light);
}

.hero h1,
.section-heading h2,
.quote-heading h2,
.contact-section h2 {
  margin: 0;
  line-height: 1.03;
}

.hero h1 {
  max-width: 740px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.25rem;
  font-weight: 700;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #eee8dc;
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  padding: 0 18px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: #111;
}

.button-primary:hover {
  background: var(--gold-light);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-secondary:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 0;
  width: min(690px, 100%);
  margin: 44px 0 0;
  border-top: 1px solid rgba(228, 193, 117, 0.35);
  border-bottom: 1px solid rgba(228, 193, 117, 0.35);
}

.hero-facts div {
  padding: 16px 20px 16px 0;
}

.hero-facts div + div {
  border-left: 1px solid rgba(228, 193, 117, 0.25);
  padding-left: 20px;
}

.hero-facts dt {
  color: #fff;
  font-weight: 850;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: #d8d3c8;
}

.section,
.quote-band,
.contact-section {
  padding: 78px 0;
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.quote-band {
  background: var(--navy);
  color: #fff;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1fr);
  gap: 32px;
  align-items: start;
}

.quote-heading h2 {
  max-width: 500px;
  font-size: 2.2rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.quote-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.quote-form label > span,
.contact-details span {
  color: var(--gold-light);
}

.quote-form label span {
  color: #eee8dc;
  font-size: 0.9rem;
  font-weight: 760;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 12px;
  outline: 0;
}

.quote-form textarea {
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

.quote-form select option {
  background: var(--navy);
  color: #fff;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(228, 193, 117, 0.18);
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.quote-form .field-message,
.quote-form .form-help,
.quote-form .button {
  grid-column: 1 / -1;
}

.quote-form .form-help {
  margin: -2px 0 0;
  color: #d8d3c8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.quote-form .button {
  justify-self: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin: 0;
}

.section-heading h2,
.contact-section h2 {
  font-size: 2.75rem;
}

.section-heading p,
.contact-section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: grid;
  align-content: start;
  min-height: 298px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(201, 154, 70, 0.38);
  border-radius: var(--radius);
  background: #fbf6eb;
  color: var(--gold);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card h3 {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 1.3rem;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.service-card a {
  align-self: end;
  margin-top: 22px;
  color: var(--gold);
  font-weight: 850;
}

.service-card a:hover {
  color: var(--ink);
}

.process-section {
  background: var(--charcoal);
  color: #fff;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.process-section .section-heading h2 {
  color: #fff;
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px 18px;
  border-bottom: 1px solid var(--line-dark);
  padding: 0 0 22px;
}

.process-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.process-list span {
  grid-row: span 2;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}

.process-list strong {
  font-size: 1.2rem;
}

.process-list p {
  margin: 0;
  color: #cfc8ba;
  line-height: 1.62;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: start;
}

.faq-section {
  background: #fbfaf7;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.faq-item h3 {
  margin: 0;
  font-size: 1.08rem;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.audience-list {
  display: grid;
  gap: 12px;
}

.audience-list div {
  border-left: 4px solid var(--gold);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.audience-list strong,
.audience-list span {
  display: block;
}

.audience-list strong {
  font-size: 1.1rem;
}

.audience-list span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(17, 24, 36, 0.98), rgba(17, 24, 36, 0.9)),
    url("assets/arkan-wizytowka.jpg") center / cover;
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.6fr);
  gap: 42px;
  align-items: start;
}

.contact-section p {
  max-width: 670px;
  color: #d8d3c8;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin: 0;
  font-style: normal;
}

.contact-details a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid var(--line-dark);
  color: #f8f4ea;
  overflow-wrap: anywhere;
}

.contact-details a:hover {
  color: var(--gold-light);
}

.site-footer {
  background: var(--charcoal);
  color: #d8d3c8;
  border-top: 1px solid var(--line-dark);
}

.legal-note {
  max-width: 980px;
  margin: 0;
  padding: 24px 0;
  color: #d8d3c8;
  font-size: 0.9rem;
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: min(390px, calc(100vw - 40px));
  border: 1px solid rgba(228, 193, 117, 0.44);
  border-radius: var(--radius);
  background: var(--charcoal);
  box-shadow: var(--shadow);
  color: #fff;
  padding: 14px 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(10, 13, 18, 0.98);
    padding: 10px 18px 18px;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: min(620px, 72svh);
    background:
      linear-gradient(90deg, rgba(7, 10, 14, 0.96), rgba(7, 10, 14, 0.7)),
      url("assets/arkan-wizytowka.jpg") center / cover;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .quote-layout,
  .process-layout,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .section-inner,
  .hero-content {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    min-height: min(510px, 64svh);
  }

  .hero-content {
    padding: 44px 0 48px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions .button {
    flex: 1 1 130px;
  }

  .quote-form .button {
    width: 100%;
  }

  .hero-facts {
    display: none;
  }

  .section,
  .quote-band,
  .contact-section {
    padding: 56px 0;
  }

  .quote-heading h2,
  .section-heading h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .process-list span {
    grid-row: auto;
  }

  .legal-note {
    font-size: 0.86rem;
  }
}
