/* PanonLex — Central European Trade Law */
:root {
  --plx-red: #b91c1c;
  --plx-red-dark: #991b1b;
  --plx-green: #15803d;
  --plx-green-dark: #166534;
  --plx-cream: #faf7f2;
  --plx-cream-dark: #f0ebe3;
  --plx-text: #1c1917;
  --plx-text-muted: #57534e;
  --plx-white: #ffffff;
  --plx-border: #d6d3d1;
  --plx-shadow: 0 4px 24px rgba(28, 25, 23, 0.08);
  --plx-radius: 6px;
  --plx-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --plx-max: 1200px;
  --plx-header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--plx-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--plx-text);
  background: var(--plx-cream);
}

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

a { color: var(--plx-red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--plx-red-dark); }

.plx-container {
  width: 100%;
  max-width: var(--plx-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.plx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--plx-white);
  border-bottom: 3px solid var(--plx-red);
  box-shadow: var(--plx-shadow);
}

.plx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--plx-header-h);
  gap: 24px;
}

.plx-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--plx-text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.plx-logo:hover { color: var(--plx-text); }

.plx-logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--plx-red) 50%, var(--plx-green) 50%);
  border-radius: var(--plx-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plx-white);
  font-size: 1rem;
}

.plx-logo__sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--plx-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Desktop Nav */
.plx-nav { display: flex; align-items: center; gap: 8px; }

.plx-nav__link {
  position: relative;
  padding: 8px 14px;
  color: var(--plx-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.plx-nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--plx-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.plx-nav__link:hover { color: var(--plx-red); }
.plx-nav__link:hover::after,
.plx-nav__link--active::after { transform: scaleX(1); }

.plx-nav__link--active { color: var(--plx-red); font-weight: 600; }

.plx-nav__cta {
  margin-left: 8px;
  padding: 10px 20px;
  background: var(--plx-green);
  color: var(--plx-white);
  border-radius: var(--plx-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.plx-nav__cta:hover { background: var(--plx-green-dark); color: var(--plx-white); }

/* Mobile toggle */
.plx-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--plx-text);
  font-size: 1.4rem;
}

/* Mobile accordion nav */
.plx-mobile-nav {
  display: none;
  background: var(--plx-white);
  border-top: 1px solid var(--plx-border);
}

.plx-mobile-nav--open { display: block; }

.plx-accordion__item { border-bottom: 1px solid var(--plx-border); }

.plx-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--plx-text);
  text-align: left;
}

.plx-accordion__trigger i { transition: transform 0.3s; color: var(--plx-red); }

.plx-accordion__item--open .plx-accordion__trigger i { transform: rotate(180deg); }

.plx-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--plx-cream);
}

.plx-accordion__item--open .plx-accordion__panel { max-height: 300px; }

.plx-accordion__link {
  display: block;
  padding: 12px 24px 12px 36px;
  color: var(--plx-text);
  font-weight: 500;
  border-left: 3px solid transparent;
}

.plx-accordion__link:hover,
.plx-accordion__link--active {
  color: var(--plx-red);
  border-left-color: var(--plx-red);
  background: var(--plx-cream-dark);
}

/* Hero */
.plx-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--plx-text);
  overflow: hidden;
}

.plx-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.plx-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(185,28,28,0.75) 0%, rgba(21,128,61,0.55) 100%);
}

.plx-hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 680px;
}

.plx-hero__tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  color: var(--plx-white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.plx-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--plx-white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.plx-hero__text {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  line-height: 1.7;
}

.plx-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.plx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--plx-radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.plx-btn--primary {
  background: var(--plx-green);
  color: var(--plx-white);
  border-color: var(--plx-green);
}

.plx-btn--primary:hover { background: var(--plx-green-dark); color: var(--plx-white); }

.plx-btn--outline {
  background: transparent;
  color: var(--plx-white);
  border-color: var(--plx-white);
}

.plx-btn--outline:hover { background: var(--plx-white); color: var(--plx-red); }

.plx-btn--red {
  background: var(--plx-red);
  color: var(--plx-white);
  border-color: var(--plx-red);
}

.plx-btn--red:hover { background: var(--plx-red-dark); color: var(--plx-white); }

/* Page hero (inner pages) */
.plx-page-hero {
  background: linear-gradient(135deg, var(--plx-red) 0%, var(--plx-green) 100%);
  padding: 56px 0;
  color: var(--plx-white);
}

.plx-page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.plx-page-hero__text { font-size: 1.1rem; opacity: 0.9; max-width: 600px; }

/* Sections */
.plx-section { padding: 72px 0; }

.plx-section--alt { background: var(--plx-white); }

.plx-section--cream { background: var(--plx-cream-dark); }

.plx-section__header { text-align: center; margin-bottom: 48px; }

.plx-section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plx-green);
  margin-bottom: 12px;
}

.plx-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--plx-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.plx-section__desc {
  color: var(--plx-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Stats */
.plx-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.plx-stat {
  background: var(--plx-white);
  padding: 28px 24px;
  border-radius: var(--plx-radius);
  box-shadow: var(--plx-shadow);
  text-align: center;
  border-top: 4px solid var(--plx-red);
}

.plx-stat:nth-child(even) { border-top-color: var(--plx-green); }

.plx-stat__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--plx-red);
  line-height: 1;
  margin-bottom: 8px;
}

.plx-stat:nth-child(even) .plx-stat__num { color: var(--plx-green); }

.plx-stat__label { font-size: 0.85rem; color: var(--plx-text-muted); font-weight: 500; }

/* Cards grid */
.plx-grid {
  display: grid;
  gap: 28px;
}

.plx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.plx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.plx-grid--4 { grid-template-columns: repeat(4, 1fr); }

.plx-card {
  background: var(--plx-white);
  border-radius: var(--plx-radius);
  overflow: hidden;
  box-shadow: var(--plx-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.plx-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(28,25,23,0.12); }

.plx-card__img { width: 100%; height: 200px; object-fit: cover; }

.plx-card__body { padding: 24px; }

.plx-card__icon {
  width: 48px;
  height: 48px;
  background: var(--plx-cream);
  border-radius: var(--plx-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plx-red);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.plx-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--plx-text);
}

.plx-card__text { color: var(--plx-text-muted); font-size: 0.92rem; }

/* Service detail */
.plx-service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.plx-service-block--reverse .plx-service-block__img { order: 2; }
.plx-service-block--reverse .plx-service-block__text { order: 1; }

.plx-service-block__img {
  border-radius: var(--plx-radius);
  overflow: hidden;
  box-shadow: var(--plx-shadow);
}

.plx-service-block__img img { width: 100%; height: 320px; object-fit: cover; }

.plx-service-block__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plx-green);
  margin-bottom: 10px;
}

.plx-service-block__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.plx-service-block__text { color: var(--plx-text-muted); margin-bottom: 20px; }

.plx-list { list-style: none; }

.plx-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--plx-text-muted);
  font-size: 0.95rem;
}

.plx-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--plx-green);
  font-size: 0.8rem;
}

/* Risk Analyzer */
.plx-analyzer {
  background: var(--plx-white);
  border-radius: var(--plx-radius);
  box-shadow: var(--plx-shadow);
  padding: 40px;
  border-left: 5px solid var(--plx-red);
}

.plx-analyzer__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plx-analyzer__desc { color: var(--plx-text-muted); margin-bottom: 28px; }

.plx-form__group { margin-bottom: 20px; }

.plx-form__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--plx-text);
}

.plx-form__input,
.plx-form__select,
.plx-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--plx-border);
  border-radius: var(--plx-radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--plx-cream);
  color: var(--plx-text);
  transition: border-color 0.2s;
}

.plx-form__input:focus,
.plx-form__select:focus,
.plx-form__textarea:focus {
  outline: none;
  border-color: var(--plx-red);
}

.plx-form__textarea { resize: vertical; min-height: 120px; }

.plx-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plx-result {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--plx-radius);
  display: none;
}

.plx-result--visible { display: block; }

.plx-result--low { background: #dcfce7; border: 1px solid #86efac; }
.plx-result--medium { background: #fef9c3; border: 1px solid #fde047; }
.plx-result--high { background: #fee2e2; border: 1px solid #fca5a5; }

.plx-result__level {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plx-result--low .plx-result__level { color: var(--plx-green); }
.plx-result--medium .plx-result__level { color: #a16207; }
.plx-result--high .plx-result__level { color: var(--plx-red); }

.plx-result__text { font-size: 0.95rem; color: var(--plx-text-muted); }

.plx-result__factors { margin-top: 12px; list-style: none; }

.plx-result__factors li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--plx-text-muted);
}

/* About team */
.plx-team-card {
  text-align: center;
  background: var(--plx-white);
  padding: 36px 28px;
  border-radius: var(--plx-radius);
  box-shadow: var(--plx-shadow);
}

.plx-team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--plx-cream-dark);
}

.plx-team-card__name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }

.plx-team-card__role {
  color: var(--plx-green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.plx-team-card__bio { color: var(--plx-text-muted); font-size: 0.92rem; }

/* Contact */
.plx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.plx-contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.plx-contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--plx-cream);
  border-radius: var(--plx-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plx-red);
  flex-shrink: 0;
}

.plx-contact-info__label { font-weight: 700; margin-bottom: 4px; }

.plx-contact-info__value { color: var(--plx-text-muted); }

.plx-map {
  width: 100%;
  height: 280px;
  background: var(--plx-cream-dark);
  border-radius: var(--plx-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plx-text-muted);
  margin-top: 24px;
  border: 1px solid var(--plx-border);
}

/* Privacy */
.plx-legal { padding: 56px 0 80px; }

.plx-legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--plx-text);
}

.plx-legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
}

.plx-legal p,
.plx-legal li { color: var(--plx-text-muted); margin-bottom: 12px; }

.plx-legal ul { padding-left: 24px; margin-bottom: 16px; }

.plx-legal__updated {
  font-size: 0.85rem;
  color: var(--plx-text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--plx-border);
}

/* Footer */
.plx-footer {
  background: var(--plx-text);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}

.plx-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.plx-footer__brand { color: var(--plx-white); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }

.plx-footer__text { font-size: 0.9rem; line-height: 1.7; }

.plx-footer__heading {
  color: var(--plx-white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plx-footer__link {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s;
}

.plx-footer__link:hover { color: var(--plx-white); }

.plx-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Cookie banner */
.plx-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--plx-white);
  border-top: 3px solid var(--plx-red);
  box-shadow: 0 -4px 24px rgba(28,25,23,0.15);
  padding: 20px 24px;
  display: none;
}

.plx-cookie--visible { display: block; }

.plx-cookie__inner {
  max-width: var(--plx-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.plx-cookie__text { flex: 1; min-width: 280px; font-size: 0.9rem; color: var(--plx-text-muted); }

.plx-cookie__text a { color: var(--plx-red); font-weight: 600; }

.plx-cookie__actions { display: flex; gap: 12px; flex-shrink: 0; }

.plx-cookie__btn {
  padding: 10px 20px;
  border-radius: var(--plx-radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s;
}

.plx-cookie__btn--accept { background: var(--plx-green); color: var(--plx-white); }
.plx-cookie__btn--accept:hover { background: var(--plx-green-dark); }

.plx-cookie__btn--decline { background: var(--plx-cream-dark); color: var(--plx-text); }
.plx-cookie__btn--decline:hover { background: var(--plx-border); }

/* Form success message */
.plx-form-success {
  display: none;
  padding: 16px;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--plx-radius);
  color: var(--plx-green-dark);
  font-weight: 500;
  margin-top: 16px;
}

.plx-form-success--visible { display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .plx-stats { grid-template-columns: repeat(2, 1fr); }
  .plx-grid--3, .plx-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .plx-footer__grid { grid-template-columns: 1fr 1fr; }
  .plx-service-block { grid-template-columns: 1fr; }
  .plx-service-block--reverse .plx-service-block__img { order: 0; }
  .plx-service-block--reverse .plx-service-block__text { order: 0; }
}

@media (max-width: 768px) {
  .plx-nav, .plx-nav__cta { display: none; }
  .plx-burger { display: block; }
  .plx-stats { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .plx-grid--2, .plx-grid--3, .plx-grid--4 { grid-template-columns: 1fr; }
  .plx-contact-grid { grid-template-columns: 1fr; }
  .plx-form__row { grid-template-columns: 1fr; }
  .plx-footer__grid { grid-template-columns: 1fr; }
  .plx-hero { min-height: 420px; }
  .plx-hero__content { padding: 48px 0; }
  .plx-analyzer { padding: 24px; }
}
