
/* v2.0 — calm commercial layout, accent chips only */
.tnp-header {
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}
.tnp-header--compact .tnp-header__inner { padding: 0.35rem 0; }
.tnp-header--compact .tnp-logo img { width: 44px; height: 44px; }
.tnp-header--compact .tnp-logo__text { font-size: 0.92rem; }
.tnp-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  flex-wrap: nowrap;
}
.tnp-logo { flex: 0 0 auto; min-width: 0; }
.tnp-logo__text {
  font-size: 0.95rem;
  line-height: 1.2;
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tnp-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 201;
}
.tnp-burger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--tnp-graphite);
  position: absolute;
  left: 8px;
  transition: transform 0.3s, opacity 0.3s;
}
.tnp-burger__line:nth-child(1) { top: 12px; }
.tnp-burger__line:nth-child(2) { top: 19px; }
.tnp-burger__line:nth-child(3) { top: 26px; }

.tnp-burger[aria-expanded="true"] .tnp-burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tnp-burger[aria-expanded="true"] .tnp-burger__line:nth-child(2) { opacity: 0; }
.tnp-burger[aria-expanded="true"] .tnp-burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tnp-nav { flex: 1 1 auto; min-width: 0; }
.tnp-nav .menu {
  display: flex;
  gap: 0.65rem;
  flex-wrap: nowrap;
  justify-content: center;
  font-size: 0.9rem;
}
.tnp-header__contacts { flex: 0 0 auto; margin-left: auto; }
.tnp-header__phone { font-size: 0.9rem; white-space: nowrap; }
.tnp-btn--sm { padding: 0.45rem 0.75rem; font-size: 0.85rem; }

.tnp-phone-icon-only {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tnp-graphite);
}
@media (max-width: 1100px) {
  .tnp-header__contacts {
    display: flex;
    margin-left: auto;
  }
  .tnp-nav-wrapper {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
  }
  .tnp-nav-wrapper.is-open {
    pointer-events: auto;
    visibility: visible;
  }
  .tnp-nav {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 80px 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .tnp-nav-wrapper.is-open .tnp-nav {
    transform: translateX(0);
  }
  .tnp-nav .menu {
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.25rem;
  }
  .tnp-burger { display: block; }
}

.tnp-mobile-bar {
  grid-template-columns: 1fr 1fr 1fr;
}
.tnp-mobile-bar__btn--route {
  background: #fff;
  color: var(--tnp-graphite);
  border: 1px solid #ddd;
}

.tnp-media-43,
.tnp-ba__frame,
.tnp-works-strip__item,
.tnp-direction-photos img,
.tnp-gallery-pair img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  overflow: hidden;
}
.tnp-media-43 picture,
.tnp-media-43 img { width: 100%; height: 100%; object-fit: cover; }

/* CSS Grid and Utility */
.tnp-grid { display: grid; gap: 1.5rem; }
.tnp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tnp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 768px) {
    .tnp-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .tnp-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.tnp-service-single__header {
    display: grid;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .tnp-service-single__header {
        grid-template-columns: 1fr 1fr;
    }
}
.tnp-service-single__header .tnp-hero__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tnp-process {
    background: #f9fafb;
    padding: 3rem 1.5rem;
    border-radius: var(--tnp-radius);
    margin-bottom: 3rem;
}
.tnp-process h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.tnp-card--process {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--tnp-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}
.tnp-card--process:hover {
    transform: translateY(-5px);
}
.tnp-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.tnp-card--process h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--tnp-cherry);
}
.tnp-card--process p {
    font-size: 0.95rem;
    color: var(--tnp-text-light);
}

.tnp-card {
  background: #fff;
  border-radius: var(--tnp-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.tnp-card--icon {
  text-align: center;
}
.tnp-card--icon .tnp-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.tnp-card--icon h3 {
  color: var(--tnp-cherry);
}
.tnp-card__img-link {
  display: block;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  overflow: hidden;
  border-radius: var(--tnp-radius) var(--tnp-radius) 0 0;
}
.tnp-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.tnp-card:hover .tnp-card__img {
  transform: scale(1.05);
}
.tnp-card__excerpt {
  flex-grow: 1;
  overflow: hidden;
}
.tnp-card__excerpt p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--tnp-text-light);
  margin-bottom: 0;
}

.tnp-hero { position: relative; overflow: hidden; }
.tnp-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.tnp-hero__content { z-index: 2; position: relative; }
.tnp-hero__media { z-index: 1; position: relative; }
.tnp-hero--full { min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.tnp-hero--full picture,
.tnp-hero--full .tnp-hero__bg,
.tnp-hero--full img.tnp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.tnp-hero--zoom picture img,
.tnp-hero--zoom .tnp-hero__bg {
  animation: tnp-hero-zoom 18s ease-out forwards;
}
@keyframes tnp-hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .tnp-hero--zoom picture img { animation: none; }
}

.tnp-ba__frame {
  position: relative;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.tnp-ba__after,
.tnp-ba__before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.tnp-ba__before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--tnp-ba, 50%)) 0 0);
}
.tnp-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--tnp-ba, 50%);
  width: 3px;
  background: var(--tnp-yellow);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.tnp-ba__control { display: block; margin-top: 0.5rem; }
.tnp-ba__control input { width: 100%; }
.tnp-ba-carousel {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Auto-scroll and Sliders */
.tnp-works-strip-wrap {
  overflow: hidden;
  width: 100%;
}
.tnp-works-strip.tnp-auto-scroll {
  display: flex;
  width: max-content;
  animation: tnp-scroll-left 40s linear infinite;
  gap: 0.75rem;
}
.tnp-works-strip.tnp-auto-scroll:hover {
  animation-play-state: paused;
}
@keyframes tnp-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tnp-auto-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1.5rem;
  padding-bottom: 1rem;
  max-width: 100vw;
}
.tnp-auto-slider::-webkit-scrollbar {
  display: none;
}
.tnp-auto-slider > * {
  flex: 0 0 calc(100% - 2rem);
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .tnp-auto-slider > * {
    flex: 0 0 calc(50% - 1.5rem);
  }
}
@media (min-width: 1024px) {
  .tnp-auto-slider > * {
    flex: 0 0 calc(33.333% - 1.5rem);
  }
}

/* Animations */
.tnp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.no-js .tnp-reveal,
.tnp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tnp-works-strip {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(4vw, 0.75rem) 1rem;
  -webkit-overflow-scrolling: touch;
}
.tnp-works-strip__item {
  flex: 0 0 min(72vw, 320px);
  scroll-snap-align: start;
  margin: 0;
}

.tnp-service-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
@media (min-width: 768px) {
  .tnp-service-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.tnp-service-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: var(--tnp-radius);
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: var(--tnp-graphite);
  font-size: 0.95rem;
  font-weight: 600;
  background: #f9fafb;
}
.tnp-service-nav a:before {
  content: "📍";
  margin-right: 0.5rem;
}
.tnp-service-nav a:hover {
  border-color: var(--tnp-yellow);
  background: var(--tnp-yellow);
}
.tnp-service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.tnp-service-card { display: flex; flex-direction: column; gap: 0.5rem; }
.tnp-service-card .tnp-btn { align-self: flex-start; margin-top: auto; }

.tnp-price-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.tnp-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.tnp-price-table th,
.tnp-price-table td {
  border-bottom: 1px solid #e8e8e8;
  padding: 0.65rem 0.5rem;
  text-align: left;
  vertical-align: top;
}
@media (max-width: 720px) {
  .tnp-price-table thead { display: none; }
  .tnp-price-table tr {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
  }
  .tnp-price-table td { display: block; border: 0; padding: 0.2rem 0; }
  .tnp-price-table td:last-child {
    color: var(--tnp-cherry);
    font-weight: 600;
    margin-top: 0.35rem;
  }
}

.tnp-trust__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.tnp-trust__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.tnp-trust__stats li {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  border-left: 4px solid var(--tnp-yellow);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tnp-trust__icon {
  font-size: 2rem;
}
.tnp-stat {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-display);
}
@media (max-width: 800px) {
  .tnp-trust__grid { grid-template-columns: 1fr; }
}

.tnp-quiz__steps { list-style: none; padding: 0; margin: 0 0 1rem; }
.tnp-quiz__steps label { display: block; margin: 0.35rem 0; }
.tnp-quiz__nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.tnp-breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--tnp-muted);
}
.tnp-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tnp-breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: #aaa;
}

.tnp-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tnp-reveal--in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .tnp-reveal { opacity: 1; transform: none; transition: none; }
}

.tnp-section--dark {
  background: var(--tnp-graphite);
  color: #eee;
}
.tnp-section--dark a { color: var(--tnp-yellow); }

/* Prose styling for blog articles with hierarchy */
.tnp-prose h2, .tnp-prose h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--tnp-graphite);
}
.tnp-prose ul, .tnp-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.tnp-prose li {
  margin-bottom: 0.5rem;
}
.tnp-prose blockquote {
  border-left: 4px solid var(--tnp-cherry);
  padding-left: 1rem;
  margin-left: 0;
  font-style: italic;
  color: #555;
  background: #fffafa;
  padding: 1rem;
  border-radius: 0 var(--tnp-radius) var(--tnp-radius) 0;
}
.tnp-prose figure {
  margin: 2rem 0;
}
.tnp-prose figure img {
  max-height: 520px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--tnp-radius);
}
.tnp-prose figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--tnp-muted);
  margin-top: 0.5rem;
}
.entry-content h2 { margin-top: 1.5rem; }
.entry-content .wp-block-list a { word-break: break-word; }
