:root {
  --orange: #f27121;
  --orange-dark: #d64c21;
  --orange-soft: #fff2e8;
  --peach: #fff6ef;
  --cream: #fffaf6;
  --ink: #1d2430;
  --muted: #667085;
  --line: #eadfd6;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(38, 29, 24, .08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* Dostępność */
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Układ bazowy */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.section-pad { padding: 96px 0; }
.section { padding: 88px 0; }
.centered {
  text-align: center;
  margin-inline: auto;
}
.narrow {
  max-width: 900px;
  margin-inline: auto;
}
.centered .eyebrow,
.centered h1,
.centered h2,
.centered h3,
.centered p,
.centered .lead {
  margin-inline: auto;
  text-align: center;
}

/* Typografia */
.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); }
h3 { font-size: 1.22rem; }
h1 span, h2 span { color: var(--orange-dark); }
p { color: var(--muted); }
.lead { font-size: 1.13rem; max-width: 690px; }

/* Przyciski i linki */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  transition: .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 10px 24px rgba(242, 113, 33, .2);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  border-color: #e6aa83;
  color: var(--orange-dark);
  background: white;
}
.btn-secondary:hover { background: var(--orange-soft); }
.btn-full { width: 100%; }

.text-link {
  color: var(--orange-dark);
  font-weight: 800;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.text-link:hover span { transform: translateX(3px); }
.text-link span { transition: transform .2s ease; }

/* Komunikaty statusu formularza */
.form-status {
  margin: 14px 0 0;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 10px;
  transition: all .2s ease;
}
.form-status.is-success {
  color: #166534;
  background: #f0fdf4;
  padding: 12px 16px;
  border: 1px solid #bbf7d0;
}
.form-status.is-error {
  color: #991b1b;
  background: #fef2f2;
  padding: 12px 16px;
  border: 1px solid #fecaca;
}

/* Checkbox zgody w formularzu */
.contact-form label.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  font-size: .88rem;
  color: #4b5563;
  line-height: 1.4;
  cursor: pointer;
  margin: 16px 0 20px;
}
.contact-form label.form-checkbox-label input[type="checkbox"] {
  appearance: checkbox;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  margin: 1px 0 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
  border-radius: 4px;
}
.contact-form label.form-checkbox-label span {
  font-size: .88rem;
  line-height: 1.4;
  color: #4b5563;
}
.contact-form label.form-checkbox-label a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form label.form-checkbox-label a:hover {
  color: var(--ink);
}

/* Nagłówek i nawigacja */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(234, 223, 214, .8);
  backdrop-filter: blur(14px);
}

/* Cienki pasek rebrandingu na samej górze */
.top-bar-rebrand {
  background: #082b59;
  background: linear-gradient(90deg, #082b59 0%, #123f71 50%, #082b59 100%);
  color: white;
  padding: 6px 0;
  font-size: .83rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.top-bar-badge {
  background: var(--orange);
  color: white;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 9px;
  border-radius: 999px;
  line-height: 1.3;
}
.top-bar-text {
  color: #e5ecf4;
}
.top-bar-text strong {
  color: white;
  font-weight: 750;
}
.top-bar-link {
  color: #ffd6b8;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease;
}
.top-bar-link:hover {
  color: white;
}

@media (max-width: 640px) {
  .top-bar-rebrand {
    font-size: .76rem;
    padding: 6px 0;
  }
  .top-bar-inner {
    gap: 6px;
  }
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand img {
  width: 150px;
  height: auto;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.primary-nav a {
  font-size: .94rem;
  font-weight: 650;
  color: #3d4654;
  position: relative;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--orange-dark);
}
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--orange);
}

/* Menu rozwijane (Dropdown) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: .94rem;
  font-weight: 650;
  color: #3d4654;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: color .2s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--orange-dark);
}
.nav-dropdown.active .nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
}
.nav-arrow {
  font-size: .7rem;
  transition: transform .2s ease;
  display: inline-block;
}
.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(29, 36, 48, .12);
  min-width: 200px;
  padding: 8px;
  z-index: 1010;
  flex-direction: column;
  gap: 2px;
}
/* Niewidzialny obszar łączący (hover bridge), dzięki któremu kursor nie traci focusu przy zjeżdżaniu na listę */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: #3d4654;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.nav-dropdown-menu a.active::after { display: none; }
.nav-external { gap: 6px; }
.nav-external span { font-size: .85rem; opacity: .75; }

.nav-cta { margin-left: 4px; }
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* Stopka */
.site-footer {
  background: #171b22;
  color: white;
  padding: 44px 0 20px;
}
.site-footer p,
.site-footer a,
.site-footer span {
  color: #c6cbd3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.footer-brand img {
  width: 155px;
  height: auto;
}
.footer-brand p { margin: 14px 0 0; }
.site-footer nav,
.footer-contact {
  display: grid;
  gap: 10px;
}
.site-footer a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #2c323c;
  font-size: .8rem;
}

/* Responsywność bazy */
@media (max-width: 980px) {
  .section-pad { padding: 72px 0; }
  .section { padding: 70px 0; }
  .nav-cta { display: none; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-wrap { min-height: 72px; }
  .brand img { width: 132px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px 8px; }
  .primary-nav a.active::after { display: none; }
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px 8px;
    font-size: .94rem;
  }
  .nav-dropdown-toggle::after { display: none !important; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--line);
    background: var(--cream);
    border-radius: 12px;
    margin-top: 4px;
    padding: 6px;
    display: none;
    width: 100%;
    min-width: 0;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a { padding: 9px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
}

/* Wspólna sekcja CTA */
.cta-section {
  padding: 20px 0 96px;
  background: white;
}
.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 38px 42px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff6ee, #ffeadb);
  border: 1px solid #f5d9c8;
  box-shadow: 0 10px 30px rgba(242, 113, 33, .06);
}
.cta-card h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.cta-card p,
.cta-text {
  margin: 12px 0 0;
  font-size: 1.02rem;
  color: #4b5563;
  line-height: 1.55;
  max-width: 650px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 980px) {
  .cta-card {
    grid-template-columns: 1fr;
    padding: 32px 28px;
  }
  .cta-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .cta-section {
    padding: 10px 0 70px;
  }
  .cta-card {
    padding: 26px 20px;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Płynne przejścia podstron (Statyczna stopka i nagłówek) */
@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
}

.site-footer {
  view-transition-name: site-footer;
}

main {
  view-transition-name: site-main;
}

::view-transition-old(site-main) {
  animation: 160ms ease-out both fade-out;
}

::view-transition-new(site-main) {
  animation: 200ms ease-in both fade-in;
}

@keyframes fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ========================================================
   Style rebrandingu i modalu (Neuro English Lounge)
   ======================================================== */
.rebrand-badge {
  background: linear-gradient(90deg, #f27121 0%, #082b59 100%);
  color: white;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(8, 43, 89, .25);
}

.rebrand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .03em;
}

.brand-old {
  color: var(--orange-dark);
}

.brand-arrow {
  color: #64758a;
  font-size: 1rem;
}

.brand-new {
  color: #082b59;
}

.rebrand-gradient-text {
  background: linear-gradient(90deg, #f27121 0%, #1e5ba4 60%, #082b59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.rebrand-desc {
  margin: 0;
  font-size: 1.02rem;
  color: #4b5563;
  line-height: 1.6;
}

.rebrand-text-link {
  color: #082b59;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 750;
  transition: color .2s ease;
  word-break: break-all;
}

.rebrand-text-link:hover {
  color: var(--orange-dark);
}

.btn-rebrand {
  background: linear-gradient(135deg, #082b59 0%, #123f71 100%);
  color: white;
  border: 1px solid #082b59;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 750;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(8, 43, 89, .22);
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-rebrand:hover {
  background: linear-gradient(135deg, #f27121 0%, #d64c21 100%);
  border-color: #f27121;
  box-shadow: 0 10px 26px rgba(242, 113, 33, .3);
  transform: translateY(-2px);
  color: white;
}

.rebrand-tagline {
  font-size: .78rem;
  font-weight: 700;
  color: #64758a;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Modal Popup Rebrandingu */
dialog.rebrand-modal {
  padding: 0;
  border: none;
  background: transparent;
  width: min(calc(100% - 32px), 640px);
  max-width: 640px;
  margin: auto;
  border-radius: 28px;
  overflow: visible;
  outline: none;
}

dialog.rebrand-modal::backdrop {
  background: rgba(14, 23, 38, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade-in .25s ease-out;
}

.rebrand-modal-card {
  position: relative;
  border-radius: 28px;
  padding: 44px 40px 34px;
  background:
    linear-gradient(135deg, #fffbf7 0%, #ffffff 42%, #f5f8fc 100%) padding-box,
    linear-gradient(135deg, #f27121 0%, #ff8c42 25%, #2a6cb8 68%, #082b59 100%) border-box;
  border: 2.5px solid transparent;
  box-shadow: 0 25px 60px rgba(8, 43, 89, 0.25);
  text-align: left;
}

.rebrand-modal-card .rebrand-badge {
  position: absolute;
  top: -14px;
  left: 36px;
}

.rebrand-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: #64758a;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
  z-index: 10;
}

.rebrand-modal-close:hover {
  background: #f4f7fa;
  color: var(--ink);
  transform: scale(1.08);
}

.rebrand-modal-card h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 850;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 14px;
}

.rebrand-modal-card .rebrand-desc {
  margin-bottom: 24px;
}

.rebrand-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-modal-dismiss {
  background: white;
  color: #4b5563;
  border: 1px solid #cfd9e5;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 650;
  font-size: .92rem;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-modal-dismiss:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: #b8c4d4;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop-in {
  from { opacity: 0; transform: scale(.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

dialog[open].rebrand-modal {
  animation: modal-pop-in .28s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
  .rebrand-modal-card {
    padding: 36px 22px 24px;
  }
  .rebrand-modal-card .rebrand-badge {
    left: 20px;
    font-size: .72rem;
    padding: 4px 14px;
  }
  .rebrand-modal-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .rebrand-modal-actions .btn,
  .rebrand-modal-actions .btn-modal-dismiss {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

