/* ==========================================================================
   T-PROFIT Könyvelőiroda - statikus oldal stílusok
   ========================================================================== */

:root {
  --green-700: #155c2e;
  --green-600: #1b7a3e;
  --green-500: #2a8f4f;
  --green-100: #e8f3ec;
  --green-50: #f4f9f6;

  --ink-900: #0f1d14;
  --ink-800: #1a2a20;
  --ink-700: #33463a;
  --ink-500: #5a6b62;
  --ink-400: #7e8d85;
  --ink-300: #b8c2bc;
  --ink-200: #d8dde0;
  --ink-100: #e8ecea;
  --ink-50: #f4f6f5;

  --bg: #ffffff;
  --bg-soft: #f6f8f7;

  --shadow-sm: 0 1px 2px rgba(15, 29, 20, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 29, 20, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 29, 20, 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container: 1200px;
  --content-width: 980px;
  --content-shell: 1060px;
  --header-h: 84px;

  --font-body:
    "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", sans-serif;
}

html {
  scrollbar-color: var(--green-600) var(--green-50);
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track {
  background: var(--green-50);
}

html::-webkit-scrollbar-thumb {
  background: var(--green-600);
  border: 3px solid var(--green-50);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--green-700);
}

.bubblefield {
  position: relative;
}

.bubble {
  position: absolute;
  bottom: -120px;
  left: 0;
  will-change: transform, opacity;
  animation-name: bubbleFloat;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  z-index: 100;
}

@keyframes bubbleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(var(--scale));
    opacity: 0;
  }

  10% {
    opacity: var(--opacity);
  }

  20% {
    transform: translate3d(calc(var(--amp) * 1), -20vh, 0) scale(var(--scale));
    opacity: var(--opacity);
  }

  40% {
    transform: translate3d(calc(var(--amp) * -1), -40vh, 0) scale(var(--scale));
    opacity: var(--opacity);
  }

  60% {
    transform: translate3d(calc(var(--amp) * 1), -60vh, 0) scale(var(--scale));
    opacity: var(--opacity);
  }

  80% {
    transform: translate3d(calc(var(--amp) * -1), -80vh, 0) scale(var(--scale));
    opacity: 0;
  }

  100% {
    transform: translate3d(0, -110vh, 0) scale(var(--scale));
    opacity: 0;
  }
}

.map {
  border: 5px solid #efefef;
  border-radius: 30px;
  width: 100%;
}

.hero {
  height: 450px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  display: block;
}

table,
tr,
td,
th,
tbody,
thead,
tfoot {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--green-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--green-700);
}
ul,
ol {
  padding-left: 1.25rem;
}
h1,
h2,
h3,
h4 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 1em;
}
hr {
  border: none;
  border-top: 1px solid var(--ink-200);
  margin: 1.5rem 0;
}
blockquote {
  border-left: 3px solid var(--green-500);
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--ink-700);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.05rem, 4vw, 2.5rem);
}
.section {
  padding: 1rem 0;
}
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}
.content-wide {
  max-width: var(--content-width);
  margin-inline: auto;
}
.site-header .container-wide,
.page-head .container-wide,
.site-footer .container-wide {
  max-width: var(--content-shell);
}
@media (max-width: 960px) {
  .hero__inner {
    padding: 30px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--ink-100);
}
.site-header__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
  padding-right: clamp(14rem, 18vw, 18rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink-900);
}
.brand:hover {
  color: var(--ink-900);
}
.brand__logo {
  height: 56px;
  width: auto;
  max-width: 220px;
  flex: none;
  display: block;
}
.brand__text {
  line-height: 1.1;
  display: none;
}
.brand__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--green-700);
}
.brand__sub {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 2px;
}

@media (max-width: 600px) {
  .hero__inner {
    padding: 30px;
  }
  .brand__logo {
    height: 44px;
  }
}

.header-phone {
  position: absolute;
  top: 50%;
  right: clamp(1.05rem, 4vw, 2.5rem);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--green-600);
  color: var(--green-700);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff;
  transition:
    background 0.15s,
    color 0.15s;
}
.header-phone:hover {
  background: var(--green-600);
  color: #fff;
}
.header-phone svg {
  width: 16px;
  height: 16px;
}

/* ---------- Nav ---------- */
.site-nav {
  border-top: 1px solid var(--ink-100);
}
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav__list a {
  display: inline-block;
  padding: 0.9rem 1rem;
  color: var(--ink-800);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.site-nav__list a:hover {
  color: var(--green-600);
}
.site-nav__list a.is-active {
  color: var(--green-700);
  font-weight: 600;
  background: var(--green-600);
  color: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  color: #fff;
}

/* mobile burger */
.nav-toggle {
  display: none;
  background: none;
  border: 0px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--ink-800);
}
.nav-toggle__icon {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
}
.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease,
    top 0.22s ease;
}
.nav-toggle__bar:nth-child(1) {
  top: 0;
}
.nav-toggle__bar:nth-child(2) {
  top: 7px;
}
.nav-toggle__bar:nth-child(3) {
  top: 14px;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.35);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .site-header {
    z-index: 2000;
  }
  .hero__inner {
    padding: 30px;
  }
  .site-header__top {
    padding-right: 0;
    justify-content: flex-start;
    gap: 0.65rem;
  }
  .brand {
    margin-right: auto;
  }
  .nav-toggle {
    display: inline-flex;
    order: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    margin-left: 0.1rem;
    z-index: 3100;
  }
  .site-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(22rem, 88vw);
    border-top: 0;
    border-left: 4px solid var(--green-600);
    background:
      radial-gradient(
        circle at 0 48%,
        rgba(76, 160, 112, 0.2) 0,
        rgba(139, 195, 163, 0.12) 28%,
        transparent 55%
      ),
      linear-gradient(145deg, #ffffff 0%, #f2faf5 58%, #dcefe4 100%);
    box-shadow: -18px 0 28px rgba(15, 29, 20, 0.18);
    overflow-y: auto;
    padding-top: calc(var(--header-h) + 0.5rem);
    z-index: 3000;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.28s ease,
      opacity 0.2s ease,
      visibility 0s linear 0.28s;
  }
  .site-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.28s ease,
      opacity 0.2s ease;
  }
  .site-nav .container-wide {
    position: relative;
    z-index: 1;
    max-width: none;
    padding: 0;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .site-nav__list li {
    width: 100%;
    transform: none;
  }
  .site-nav__list a {
    display: block;
    width: 100%;
    margin-left: 0;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--ink-100);
  }
  .site-nav__list a.is-active {
    border-bottom-color: var(--ink-100);
    border-left: 0;
    border-radius: 0;
  }
  .header-phone {
    position: static;
    transform: none;
    order: 2;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    margin-left: 0;
    z-index: 3100;
  }
  .header-phone__label {
    display: none;
  }
  .header-lang {
    margin-left: auto;
    margin-right: 0.25rem;
  }
  .lang-flags img {
    width: 24px;
    height: 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: auto;
  overflow: visible;
  background: var(--green-50);
  height: 350px;
}

.hero-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 900;
  pointer-events: none;
}

.hero > *:not(.hero-bg-svg) {
  position: relative;
  z-index: 1;
}

.wave {
  transform-origin: center;
  will-change: transform;
}

.wave-1 {
  animation: waveOne 16s ease-in-out infinite alternate;
}

.wave-2 {
  animation: waveTwo 12s ease-in-out infinite alternate-reverse;
}

.wave-3 {
  animation: waveThree 20s ease-in-out infinite alternate;
}

@keyframes waveOne {
  from {
    transform: translateX(-40px) translateY(0) scaleX(1.04);
  }

  to {
    transform: translateX(40px) translateY(-12px) scaleX(1.1);
  }
}

@keyframes waveTwo {
  from {
    transform: translateX(30px) translateY(8px) scaleX(1.08);
  }

  to {
    transform: translateX(-50px) translateY(-8px) scaleX(1.03);
  }
}

@keyframes waveThree {
  from {
    transform: translateX(-20px) scaleX(1.03);
  }

  to {
    transform: translateX(60px) scaleX(1.12);
  }
}

.hero__inner {
  position: relative;
  z-index: auto;
  max-width: var(--content-width);
  display: grid;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  height: 100%;
}
.hero > .hero__inner {
  z-index: auto;
}
.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin: 0 0 1.25rem;
  line-height: 1.1;
}
.hero__title em {
  font-style: normal;
  color: var(--green-600);
  font-weight: 800;
}
.hero__quote {
  font-size: 1.05rem;
  color: var(--ink-700);
  font-style: italic;
  max-width: 32rem;
  margin: 0 0 1.75rem;
}
.hero__quote cite {
  display: block;
  font-style: normal;
  color: var(--green-600);
  font-weight: 600;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}
.hero__media {
  position: relative;
  z-index: 1000;
  width: min(100%, 400px);
  aspect-ratio: 1;
  align-self: center;
  justify-self: end;
  min-width: 0;
  overflow: hidden;
  border: 5px solid rgba(24, 128, 67, 0.9);
  border-radius: 50%;
  background: var(--ink-100);
  box-shadow:
    0 0 0 7px rgba(24, 128, 67, 0.16),
    0 14px 34px rgba(12, 82, 40, 0.2);
}
.hero__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 0;
  object-fit: cover;
}

.office-carousel__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 100;
}
.office-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.office-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.office-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 29, 20, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
.office-carousel__arrow:hover {
  color: #fff;
  background: rgba(15, 92, 46, 0.88);
  transform: translateY(-50%) scale(1.06);
}
.office-carousel__arrow:focus-visible,
.office-carousel__dots button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.office-carousel__arrow span {
  font-size: 2rem;
  line-height: 1;
}
.office-carousel__arrow--prev {
  left: 14px;
}
.office-carousel__arrow--next {
  right: 14px;
}
.office-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 29, 20, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(5px);
}
.office-carousel__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}
.office-carousel__dots button.is-active {
  width: 25px;
  border-radius: 999px;
  background: #fff;
}

@media (min-width: 901px) {
  .hero__inner {
    padding: 30px;
  }
  .hero__media {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1000;
    transform: translateY(calc(-50% + 2px));
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
  }
  .hero::after {
    width: 240px;
    height: 240px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 2rem 0 2.5rem;
  }
  .hero__media {
    width: min(100%, 360px);
    height: auto;
    justify-self: center;
  }
  .hero__media img {
    height: 100%;
  }
}

@media (max-width: 600px) {
  .hero__inner  {
    padding: 20px;
  }

  .hero-bg-svg {
    top: auto;
    bottom: 0;
    height: 55%;
  }
  .hero__inner {
    position: relative;
    display: block;
    height: auto;
    min-height: 0;
    padding: 1rem 0 0;
  }
  .hero__inner > div:first-child {
    position: relative;
    z-index: 2;
  }
  .hero__quote {
    width: 50%;
    max-width: 50%;
  }
  .hero__media {
    position: absolute;
    top: 1rem;
    right: -100px;
    z-index: 1000;
    width: 288px;
    height: 288px;
    opacity: 1;
    pointer-events: none;
  }
  .office-carousel__arrow,
  .office-carousel__dots {
    display: none;
  }
  .hero__title {
    font-size: 22px;
  }  
}

@media (prefers-reduced-motion: reduce) {
  .office-carousel__track {
    transition: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.1s;
}
.btn--primary {
  background: var(--green-600);
  color: #fff;
}
.btn--primary:hover {
  background: var(--green-700);
  color: #fff;
  transform: translateY(-1px);
}
.btn--ghost {
  background: #fff;
  color: var(--green-700);
  border-color: var(--green-600);
}
.btn--ghost:hover {
  background: var(--green-50);
  color: var(--green-700);
}
.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card + .card {
  margin-top: 1rem;
}
.card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--ink-100);
}
.card__head h2,
.card__head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-900);
}
.card__icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: var(--radius-sm);
}
.card__icon svg {
  width: 18px;
  height: 18px;
}
.card__body {
  padding: 1rem 1.1rem 1.1rem;
}

.card--list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.card--list li {
  padding: 0.45rem 0;
}
.card--list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card--list li a::before {
  content: "•";
  color: var(--green-500);
}

.lang-flags {
  display: flex;
  gap: 0.4rem;
  padding: 0.25rem 0;
  align-items: center;
}
.lang-flags button {
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 1px;
  cursor: pointer;
  line-height: 0;
  transition:
    border-color 0.15s,
    transform 0.1s,
    opacity 0.2s;
  opacity: 0.2;
}
.lang-flags button:hover {
  opacity: 0.9;
  transform: scale(1.04);
}
.lang-flags button.is-active {
  opacity: 1;
  border-color: var(--green-600);
}
.lang-flags img {
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.header-lang {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 0.5rem;
}

/* ---------- Page header (subpages) ---------- */
.page-head {
  background: var(--green-50);
  border-bottom: 1px solid var(--ink-100);
  padding: 2rem 0;
}
.page-head h1 {
  margin: 0 0 0.25rem;
  padding-left: 5px;
}
.page-head p {
  color: var(--ink-500);
  margin: 0;
}

/* ---------- Article body ---------- */
.article {
  padding: 0rem 0 3rem;
}
.article h2,
.article h3,
.article h4 {
  margin-top: 1.5em;
}
.article blockquote {
  background: var(--green-50);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green-500);
}
.article img {
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}
.article ul,
.article ol {
  margin: 0 0 1em;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.article table th,
.article table td {
  border: 1px solid var(--ink-200);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.article table th {
  background: var(--green-50);
}
.article__featured {
  background: var(--bg-soft);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.article__featured img {
  border-radius: var(--radius-sm);
  margin: 0;
}
.article__phone {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  width: max-content;
}

td,
th {
  border: none;
}

.zoom-img {
  display: block;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 0px;
  margin-bottom: 20px;
}

.zoom-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
  margin-bottom: 10px;
}
.zoom-img:hover img {
  transform: scale(1.1);
}

/* ---------- Lightbox ---------- */
img.lightbox,
a[data-lightbox] img {
  cursor: zoom-in;
  height: 100%;
  padding: 0;
  transition:
    transform 0.25s ease,
    border-radius 0.25s ease;
  border-radius: 10px;
}
a[data-lightbox] img:hover {
  transform: scale(1.1) rotate(-1deg);
  border-radius: 20px;
}

.lbx {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(8, 18, 12, 0.88);
  padding: 2rem;
  animation: lbx-in 0.15s ease-out;
}
.lbx[hidden] {
  display: none;
}
.lbx__figure {
  margin: 0;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
}
.lbx__img {
  max-width: 95vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lbx__img.is-enter-from-right {
  animation: lbx-slide-in-right 0.22s ease-out;
}
.lbx__img.is-enter-from-left {
  animation: lbx-slide-in-left 0.22s ease-out;
}
.lbx__caption {
  text-align: center;
  color: #e7eeea;
  font-size: 0.85rem;
  opacity: 0.85;
  padding: 0.6rem 1rem 0;
  max-width: 90vw;
}
.lbx__counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.6rem;
  text-align: center;
  color: #b9c7c1;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.lbx__btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.15s,
    transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.lbx__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lbx__btn:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}
.lbx__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}
.lbx__close:hover {
  transform: scale(1.05);
}
.lbx__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
}
.lbx__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lbx__nav--prev {
  left: 1rem;
}
.lbx__nav--next {
  right: 1rem;
}

@media (max-width: 600px) {
  .lbx {
    padding: 1rem;
  }
  .lbx__close {
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .lbx__nav {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }
  .lbx__nav--prev {
    left: 0.35rem;
  }
  .lbx__nav--next {
    right: 0.35rem;
  }
  .lbx__img {
    max-height: 70vh;
  }
}

@keyframes lbx-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes lbx-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes lbx-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ---------- Doc list ---------- */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ink-100);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.doc-list li:last-child {
  border-bottom: none;
}
.doc-list a {
  color: var(--ink-800);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.doc-list a:hover {
  color: var(--green-700);
}
.doc-list svg {
  width: 18px;
  height: 18px;
  color: var(--green-600);
  flex: none;
}
.doc-list__meta {
  color: var(--ink-400);
  font-size: 0.85rem;
  margin-left: auto;
}

/* ---------- Contact page ---------- */
.contact-page-block {
  margin: 1.5rem 0 2rem;
}
.contact-page-title {
  margin-bottom: 1rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: italic;
}
.contact-directory {
  display: grid;
  gap: 0.8rem;
}
.contact-directory__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--ink-100);
}
.contact-directory__name,
.contact-directory__role,
.contact-directory__email {
  min-width: 0;
}
.contact-directory__email {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-hours {
  display: grid;
  gap: 0.65rem;
}
.contact-hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}
.contact-hours__row span:first-child {
  font-weight: 700;
  letter-spacing: 0.03em;
}
.contact-page-map {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.quote-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff 0%, var(--green-50) 100%);
  box-shadow: var(--shadow-sm);
}
.quote-panel h2 {
  margin-top: 0;
}
.quote-panel p {
  max-width: 720px;
}
.quote-panel__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--green-700);
}
.quote-panel__icon svg {
  width: 32px;
  height: 32px;
}
.contact-intro {
  max-width: 720px;
  margin-bottom: 1.75rem;
}
.contact-intro h2 {
  margin: 0 0 0.75rem;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--green-700);
}
.contact-card__icon svg {
  width: 24px;
  height: 24px;
}
.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.contact-card p {
  margin: 0;
}
@media (max-width: 680px) {
  .hero__inner  {
    padding: 30px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero__inner  {
    padding: 40px;
  }
}

/* T-PROFIT 404 */
.error-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #133023;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(42, 157, 92, 0.11),
      transparent 26rem
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(15, 111, 62, 0.1),
      transparent 28rem
    ),
    #f5faf7;
}
.error-header,
.error-footer {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}
.error-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.error-header__phone {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(15, 111, 62, 0.22);
  border-radius: 999px;
  color: var(--green-800);
  font-weight: 750;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
}
.error-main {
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem 4rem;
}
.error-card {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid rgba(15, 111, 62, 0.14);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(14, 67, 39, 0.12);
}
.error-copy h1 {
  max-width: 650px;
  margin: 0.2rem 0 1rem;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.error-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: #577064;
  font-size: 1.08rem;
  line-height: 1.75;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.error-visual {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
}
.ledger {
  position: relative;
  width: min(330px, 90%);
  aspect-ratio: 0.82;
  transform: rotate(-5deg);
  border-radius: 16px 28px 28px 16px;
  background: #0f6f3e;
  box-shadow: 0 28px 55px rgba(15, 111, 62, 0.23);
}
.ledger__binding {
  position: absolute;
  inset: 0 auto 0 18px;
  width: 13px;
  border-radius: 9px;
  background: repeating-linear-gradient(
    to bottom,
    #d9eee2 0 18px,
    #84b99a 18px 26px
  );
}
.ledger__page {
  position: absolute;
  inset: 18px 18px 18px 48px;
  padding: 2rem 1.5rem;
  border-radius: 11px 20px 20px 11px;
  background:
    linear-gradient(
      90deg,
      transparent 30%,
      rgba(15, 111, 62, 0.08) 30% 31%,
      transparent 31% 67%,
      rgba(15, 111, 62, 0.08) 67% 68%,
      transparent 68%
    ),
    repeating-linear-gradient(to bottom, #fff 0 38px, #dcebe2 38px 39px);
}
.ledger__line {
  display: block;
  width: 100%;
  height: 8px;
  margin: 12px 0 30px;
  border-radius: 6px;
  background: #bdd7c7;
}
.ledger__line--short {
  width: 62%;
}
.ledger__line--total {
  width: 74%;
  margin-left: auto;
  background: #72ad88;
}
.ledger__page strong {
  position: absolute;
  right: 1.2rem;
  bottom: 1.05rem;
  color: #0f6f3e;
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -0.08em;
}
.calculator {
  position: absolute;
  right: -2%;
  bottom: 1%;
  width: 150px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 16px;
  transform: rotate(7deg);
  border: 1px solid #d9e8df;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(16, 55, 34, 0.2);
}
.calculator__screen {
  grid-column: 1 / -1;
  min-height: 38px;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  color: #1b4c31;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: right;
  background: #e7f2eb;
}
.calculator > span:not(.calculator__screen) {
  height: 28px;
  border-radius: 7px;
  background: #e7efea;
}
.calculator .calculator__key--green {
  background: #16844b;
}
.error-footer {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(15, 111, 62, 0.12);
  color: #6c8076;
  font-size: 0.92rem;
}
@media (max-width: 800px) {
  .error-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .error-visual {
    min-height: 300px;
  }
  .ledger {
    width: 250px;
  }
  .error-actions {
    justify-content: center;
  }
  .calculator {
    right: 10%;
    width: 130px;
  }
}
@media (max-width: 520px) {
  .error-header__phone {
    display: none;
  }
  .error-main {
    padding-top: 0.5rem;
  }
  .error-card {
    padding: 1.5rem;
    border-radius: 24px;
  }
  .error-visual {
    min-height: 250px;
  }
  .ledger {
    width: 200px;
  }
  .calculator {
    width: 112px;
    right: 4%;
  }
  .error-footer {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 760px) {
  .contact-directory__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.85rem 0;
  }
  .contact-directory__role {
    color: var(--ink-500);
  }
  .contact-hours__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

/* ---------- Partner logos ---------- */
.partner-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.partner {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: grid;
  place-items: center;
  min-height: 110px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.partner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.partner img {
  max-height: 80px;
  width: auto;
}

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--green-600);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--content-width);
  margin: 2rem auto 0;
}
.contact-band__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.contact-band__icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
}
.contact-band__icon svg {
  width: 18px;
  height: 18px;
}
.contact-band h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  color: #fff;
}
.contact-band p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .contact-band {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-700);
  color: #d8e7df;
  padding: 2rem 0 1.25rem;
  margin-top: 2rem;
}
.site-footer a {
  color: #fff;
}
.site-footer__top {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}
@media (max-width: 760px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  padding: 0.25rem 0;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "top top"
    "copy copy"
    "brand brand";
  align-items: center;
  gap: 0.9rem 1rem;
  text-align: center;
}
.site-footer__bottom > span {
  grid-area: copy;
  justify-self: center;
  opacity: 0.8;
}
.scroll-top {
  grid-area: top;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.18s ease;
}
.scroll-top:hover {
  opacity: 1;
}
.scroll-top svg {
  width: 18px;
  height: 18px;
  display: block;
}
.scroll-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.footer-credit {
  grid-area: brand;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1;
  opacity: 1;
  background: none;
  padding: 0;
  color: #fff;
  text-decoration: none;
}
.footer-credit:hover {
  transform: none;
  box-shadow: none;
}
.footer-credit img {
  height: 44px;
  width: auto;
  display: block;
  opacity: 1;
}
.footer-credit__software {
  align-self: center;
  margin-left: 65px;
  color: #fff;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: lowercase;
}
@media (max-width: 760px) {
  .site-footer__bottom {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "top top"
      "copy copy"
      "brand brand";
    text-align: center;
  }
  .site-footer__bottom > span {
    justify-self: center;
  }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Cookie banner ---------- */
.cb {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  max-width: 880px;
  margin: 0 auto;
  background: rgba(15, 29, 20, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.cb--in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cb__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
}
.cb__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #d9f3e1;
  flex: none;
}
.cb__title {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
}
.cb__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
}
.cb__details {
  margin-top: 0.55rem;
}
.cb__settings {
  cursor: pointer;
  color: #d9f3e1;
  font-weight: 600;
}
.cb__settingsHint {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
.cb__actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cb .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.cb .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.cb .btn--primary {
  background: #fff;
  color: var(--green-700);
}
.cb .btn--primary:hover {
  background: #ecf7f0;
  color: var(--green-700);
}
@media (max-width: 760px) {
  .cb {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .cb__inner {
    grid-template-columns: 1fr;
  }
  .cb__icon {
    width: 38px;
    height: 38px;
  }
  .cb__actions {
    justify-content: stretch;
  }
  .cb__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Utilities ---------- */
.muted {
  color: var(--ink-500);
}
.text-center {
  text-align: center;
}
.divider {
  height: 1px;
  background: var(--ink-200);
  margin: 1.5rem 0;
}
.flex {
  display: flex;
  gap: 1rem;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 600;
}
