/* ==========================================================================
   Spinamba7.pl — base styles
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #1c2333;
  --color-muted: #5b6577;
  --color-navy: #101c3d;
  --color-navy-dark: #0a1329;
  --color-header-bg: #ffffff;
  --color-accent: #ff8a1e;
  --color-accent-dark: #e56e00;
  --color-border: #e3e6ee;
  --color-table-stripe: #f5f7fb;
  --max-width: 1140px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  overflow: hidden;
}

.site-logo {
  flex: 0 1 auto;
  min-width: 0;
}

.site-logo a {
  display: block;
}

.site-logo img {
  height: 108px;
  width: auto;
  margin: -0.9rem 0;
}

@media (max-width: 480px) {
  .site-logo img {
    height: 76px;
    margin: -0.6rem 0;
  }
}

.header-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.btn {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  border: 2px solid transparent;
  text-align: center;
}

.btn-login {
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-register {
  background: var(--color-accent);
  color: #1c1200;
}

.btn-cta {
  background: var(--color-accent);
  color: #1c1200;
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  background: var(--color-table-stripe);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  background: var(--color-navy-dark);
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
  }
}

.hero-media {
  order: 1;
  width: 100%;
  height: auto;
}

.hero-content {
  order: 2;
  padding: 1.75rem 1.25rem 2rem;
  text-align: center;
  color: #fff;
}

.hero-content .hero-title,
.hero-content p {
  margin: 0 0 1rem;
}

.hero-content .hero-title {
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 700;
}

.hero-content p {
  color: #d7dcec;
  font-size: 0.95rem;
}

.hero-content .btn-cta {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .hero {
    display: block;
    position: relative;
    overflow: hidden;
  }

  .hero-media {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-content {
    position: absolute;
    inset: 0;
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 3% 2% 3% 5%;
  }

  .hero-content .hero-title {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }
}

@media (min-width: 1100px) {
  .hero-content .hero-title {
    font-size: 2.3rem;
  }
}

/* --------------------------------------------------------------------------
   Article content
   -------------------------------------------------------------------------- */

main {
  display: block;
}

article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
}

article h1 {
  font-size: 1.6rem;
  line-height: 1.3;
}

article h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
}

article p {
  margin: 0 0 1rem;
}

/* TOC accordion */

.toc {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  overflow: hidden;
}

.toc summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1.1rem;
  background: var(--color-table-stripe);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.toc[open] summary::after {
  content: "\2212";
}

.toc ol {
  margin: 0;
  padding: 1rem 1.5rem 1.1rem 2.25rem;
}

.toc li {
  margin-bottom: 0.4rem;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
}

th,
td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

thead th {
  background: var(--color-navy);
  color: #fff;
}

tbody tr:nth-child(even) {
  background: var(--color-table-stripe);
}

@media (max-width: 640px) {
  .table-wrap {
    overflow-x: visible;
    border: none;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr,
  tbody tr:nth-child(even) {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
  }

  tbody tr:last-child {
    margin-bottom: 0;
  }

  td {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    border-bottom: 1px solid var(--color-border);
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    font-weight: 600;
    color: var(--color-muted);
  }
}

/* FAQ */

dl dt {
  font-weight: 700;
  margin-top: 1.1rem;
}

dl dd {
  margin: 0.25rem 0 0;
  color: var(--color-text);
}

/* Aside */

aside {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 1.1rem 1.25rem;
}

aside p {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--color-table-stripe);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-navy-dark);
  color: #b9c0d4;
  padding: 1.75rem 0;
  font-size: 0.85rem;
}

.site-footer a {
  color: #d7dcec;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.site-footer p {
  margin: 0.4rem 0 0;
}

/* --------------------------------------------------------------------------
   Go page
   -------------------------------------------------------------------------- */

.go-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.go-panel h1 {
  font-size: 1.5rem;
}

.go-panel p {
  color: var(--color-muted);
}
