:root {
  --ta-ink: #17130f;
  --ta-ink-soft: #2b241d;
  --ta-bark: #4a3a2c;
  --ta-cedar: #b9762f;
  --ta-cedar-deep: #8c5518;
  --ta-ember: #d99a4e;
  --ta-sand: #f3ebe0;
  --ta-cream: #fbf7f1;
  --ta-line: rgba(23, 19, 15, 0.14);
  --ta-line-light: rgba(251, 247, 241, 0.22);
  --ta-shadow: 0 24px 60px -30px rgba(23, 19, 15, 0.55);
  --ta-shadow-soft: 0 16px 44px -26px rgba(23, 19, 15, 0.4);
  --ta-radius: 2px;
  --ta-radius-lg: 6px;
  --ta-max: 1240px;
  --ta-font-display: "Georgia", "Times New Roman", serif;
  --ta-font-body: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--ta-font-body);
  color: var(--ta-ink);
  background: var(--ta-cream);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

main {
  display: block;
  overflow-x: clip;
}

h1, h2, h3, h4, .ta-display {
  font-family: var(--ta-font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ta-ink);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  max-width: 68ch;
}

a {
  color: var(--ta-cedar-deep);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--ta-cedar);
}

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

:focus-visible {
  outline: 2px solid var(--ta-cedar);
  outline-offset: 3px;
}

.ta-wrap {
  width: min(100% - 2.5rem, var(--ta-max));
  margin-inline: auto;
}

.ta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ta-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ta-cedar-deep);
}

.ta-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.ta-kicker--light {
  color: var(--ta-ember);
}

.ta-section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 9rem) 0;
}

.ta-section--sand {
  background: var(--ta-sand);
}

.ta-section--dark {
  background: var(--ta-ink);
  color: var(--ta-cream);
}

.ta-section--dark h1,
.ta-section--dark h2,
.ta-section--dark h3,
.ta-section--dark h4 {
  color: var(--ta-cream);
}

.ta-section--dark p {
  color: rgba(251, 247, 241, 0.82);
}

.ta-leading {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--ta-bark);
}

.ta-section--dark .ta-leading {
  color: rgba(251, 247, 241, 0.86);
}

.ta-index {
  font-family: var(--ta-font-display);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  color: var(--ta-cedar);
  display: block;
}

.ta-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--ta-line);
}

.ta-section--dark .ta-rule {
  background: var(--ta-line-light);
}

.ta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 2.1rem;
  border: 1px solid var(--ta-cedar);
  background: var(--ta-cedar);
  color: #fff;
  font-family: var(--ta-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: var(--ta-radius);
  cursor: pointer;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.ta-btn:hover,
.ta-btn:focus-visible {
  background: var(--ta-cedar-deep);
  border-color: var(--ta-cedar-deep);
  color: #fff;
  transform: translateY(-2px);
}

.ta-btn--ghost {
  background: transparent;
  color: var(--ta-ink);
  border-color: rgba(23, 19, 15, 0.35);
}

.ta-btn--ghost:hover,
.ta-btn--ghost:focus-visible {
  background: var(--ta-ink);
  border-color: var(--ta-ink);
  color: var(--ta-cream);
}

.ta-btn--light {
  background: transparent;
  border-color: rgba(251, 247, 241, 0.5);
  color: var(--ta-cream);
}

.ta-btn--light:hover,
.ta-btn--light:focus-visible {
  background: var(--ta-cream);
  border-color: var(--ta-cream);
  color: var(--ta-ink);
}

.ta-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(3.5rem, 7vw, 6rem);
  background-color: var(--ta-ink);
  background-size: cover;
  background-position: center;
  color: var(--ta-cream);
  overflow: hidden;
}

.ta-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--ta-max));
  margin-inline: auto;
}

.ta-hero__title {
  color: var(--ta-cream);
  max-width: 16ch;
}

.ta-hero__sub {
  color: rgba(251, 247, 241, 0.86);
  max-width: 46ch;
  margin-top: 1.4rem;
}

.ta-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.ta-hero__stat {
  border-left: 1px solid var(--ta-line-light);
  padding-left: 1.1rem;
}

.ta-hero__stat b {
  display: block;
  font-family: var(--ta-font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ta-ember);
}

.ta-hero__stat span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 247, 241, 0.72);
}

.ta-overlay-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ta-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.ta-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ta-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ta-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ta-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ta-split--wide-left {
  grid-template-columns: 1.3fr 0.7fr;
}

.ta-split--wide-right {
  grid-template-columns: 0.68fr 1.32fr;
}

.ta-card {
  position: relative;
  background: var(--ta-cream);
  border: 1px solid var(--ta-line);
  border-radius: var(--ta-radius-lg);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ta-shadow-soft);
  border-color: rgba(185, 118, 47, 0.5);
}

.ta-card__index {
  font-family: var(--ta-font-display);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  color: var(--ta-cedar);
}

.ta-card__title {
  margin: 0.8rem 0 0.6rem;
}

.ta-card--framed {
  background: transparent;
  border: 1px solid var(--ta-line);
}

.ta-section--dark .ta-card {
  background: rgba(251, 247, 241, 0.04);
  border-color: var(--ta-line-light);
}

.ta-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--ta-radius-lg);
  background: var(--ta-bark);
}

.ta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ta-media--tall {
  aspect-ratio: 3 / 4;
}

.ta-media--wide {
  aspect-ratio: 16 / 10;
}

.ta-media--square {
  aspect-ratio: 1 / 1;
}

.ta-media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(to top, rgba(23, 19, 15, 0.82), rgba(23, 19, 15, 0));
  color: var(--ta-cream);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.ta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--ta-line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ta-bark);
}

.ta-section--dark .ta-badge {
  border-color: var(--ta-line-light);
  color: rgba(251, 247, 241, 0.85);
}

.ta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ta-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
}

.ta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--ta-cedar);
}

.ta-price {
  font-family: var(--ta-font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  color: var(--ta-ink);
}

.ta-price small {
  font-family: var(--ta-font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ta-bark);
  display: block;
  margin-top: 0.35rem;
}

.ta-section--dark .ta-price {
  color: var(--ta-ember);
}

.ta-steps {
  counter-reset: ta-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ta-steps li {
  counter-increment: ta-step;
  position: relative;
  padding: 1.4rem 0 1.4rem 4.2rem;
  border-top: 1px solid var(--ta-line);
}

.ta-steps li::before {
  content: counter(ta-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.4rem;
  font-family: var(--ta-font-display);
  font-size: 1.3rem;
  color: var(--ta-cedar);
}

.ta-section--dark .ta-steps li {
  border-top-color: var(--ta-line-light);
}

.ta-faq {
  border-top: 1px solid var(--ta-line);
}

.ta-faq__item {
  border-bottom: 1px solid var(--ta-line);
}

.ta-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--ta-font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--ta-ink);
  cursor: pointer;
}

.ta-faq__q i {
  flex: none;
  transition: transform 0.3s ease;
  color: var(--ta-cedar);
}

.ta-faq__q[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.ta-faq__a {
  display: none;
  padding-bottom: 1.5rem;
}

.ta-faq__a.is-open {
  display: block;
}

.ta-quote {
  font-family: var(--ta-font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: var(--ta-ink);
}

.ta-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

.ta-author__photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ta-bark);
  flex: none;
}

.ta-author__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.ta-author__role {
  font-size: 0.82rem;
  color: var(--ta-bark);
}

.ta-stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ta-line-light);
  border: 1px solid var(--ta-line-light);
}

.ta-stat-band__cell {
  background: var(--ta-ink);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.ta-stat-band__num {
  font-family: var(--ta-font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--ta-ember);
}

.ta-stat-band__label {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 247, 241, 0.7);
}

.ta-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.ta-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ta-form__field--full {
  grid-column: 1 / -1;
}

.ta-form label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ta-bark);
}

.ta-section--dark .ta-form label {
  color: rgba(251, 247, 241, 0.8);
}

.ta-form input,
.ta-form select,
.ta-form textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--ta-line);
  border-radius: var(--ta-radius);
  background: var(--ta-cream);
  font-family: var(--ta-font-body);
  font-size: 1rem;
  color: var(--ta-ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ta-form input:focus,
.ta-form select:focus,
.ta-form textarea:focus {
  border-color: var(--ta-cedar);
  box-shadow: 0 0 0 3px rgba(185, 118, 47, 0.18);
  outline: none;
}

.ta-form__error {
  font-size: 0.8rem;
  color: #b23b22;
  min-height: 1rem;
}

.ta-form__note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--ta-bark);
}

.ta-cta {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  background-color: var(--ta-ink);
  background-size: cover;
  background-position: center;
  color: var(--ta-cream);
  text-align: center;
}

.ta-cta__title {
  color: var(--ta-cream);
  max-width: 22ch;
  margin-inline: auto;
}

.ta-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.ta-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 1.1rem 0;
  background: rgba(23, 19, 15, 0.86);
  backdrop-filter: blur(10px);
  transition: padding 0.3s ease, background 0.3s ease;
}

.ta-header.is-shrunk {
  padding: 0.55rem 0;
  background: rgba(23, 19, 15, 0.97);
}

.ta-header__inner {
  width: min(100% - 2.5rem, var(--ta-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ta-header__brand img {
  width: 80px;
  height: auto;
}

.ta-header__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.82rem;
  color: rgba(251, 247, 241, 0.88);
}

.ta-header__contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ta-header__contact i {
  color: var(--ta-ember);
}

.ta-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ta-nav a {
  color: rgba(251, 247, 241, 0.9);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.ta-nav a:hover,
.ta-nav a:focus-visible,
.ta-nav a[aria-current="page"] {
  color: var(--ta-ember);
}

.ta-burger {
  display: none;
  background: none;
  border: 0;
  color: var(--ta-cream);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.4rem;
}

.ta-footer {
  background: var(--ta-ink);
  color: rgba(251, 247, 241, 0.78);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
}

.ta-footer a {
  color: rgba(251, 247, 241, 0.78);
}

.ta-footer a:hover,
.ta-footer a:focus-visible {
  color: var(--ta-ember);
}

.ta-footer h4 {
  color: var(--ta-cream);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--ta-font-body);
  margin-bottom: 1.2rem;
}

.ta-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
}

.ta-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ta-footer__list li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.ta-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--ta-line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

.ta-legal {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ta-bark);
}

.ta-legal h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.ta-legal h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-family: var(--ta-font-body);
  font-weight: 700;
}

.ta-legal ul {
  padding-left: 1.2rem;
}

.ta-map {
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--ta-line);
  border-radius: var(--ta-radius-lg);
  overflow: hidden;
}

.ta-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

.ta-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ta-cedar-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.ta-vertical-label {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(23, 19, 15, 0.35);
  white-space: nowrap;
  pointer-events: none;
}

.ta-section--dark .ta-vertical-label {
  color: rgba(251, 247, 241, 0.4);
}

.ta-article-hero {
  padding: clamp(6rem, 11vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--ta-ink);
  background-size: cover;
  background-position: center;
  color: var(--ta-cream);
}

.ta-article-hero__title {
  color: var(--ta-cream);
  max-width: 20ch;
}

.ta-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 247, 241, 0.72);
}

.ta-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.ta-gallery__item {
  grid-column: span 4;
}

.ta-gallery__item--wide {
  grid-column: span 8;
}

.ta-gallery__item--full {
  grid-column: span 12;
}

.taapx-cookie {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 1080;
  width: min(100% - 2rem, 940px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.8rem;
  padding: 1.25rem 1.5rem;
  background: rgba(23, 19, 15, 0.96);
  border: 1px solid rgba(217, 154, 78, 0.4);
  border-radius: var(--ta-radius-lg);
  box-shadow: var(--ta-shadow);
  color: rgba(251, 247, 241, 0.9);
}

.taapx-cookie.is-hidden {
  display: none;
}

.taapx-cookie__lead {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1 1 320px;
}

.taapx-cookie__mark {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ta-line-light);
  border-radius: 50%;
  color: var(--ta-ember);
  font-size: 1.05rem;
}

.taapx-cookie__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 46ch;
}

.taapx-cookie__link {
  color: var(--ta-ember);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.taapx-cookie__link:hover,
.taapx-cookie__link:focus-visible {
  color: var(--ta-cream);
}

.taapx-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-left: auto;
}

.taapx-cookie__btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--ta-radius);
  font-family: var(--ta-font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.taapx-cookie__btn--ghost {
  background: transparent;
  border: 1px solid rgba(251, 247, 241, 0.4);
  color: rgba(251, 247, 241, 0.9);
}

.taapx-cookie__btn--ghost:hover,
.taapx-cookie__btn--ghost:focus-visible {
  background: rgba(251, 247, 241, 0.12);
  border-color: rgba(251, 247, 241, 0.7);
  color: var(--ta-cream);
}

.taapx-cookie__btn--solid {
  background: var(--ta-cedar);
  border: 1px solid var(--ta-cedar);
  color: #fff;
}

.taapx-cookie__btn--solid:hover,
.taapx-cookie__btn--solid:focus-visible {
  background: var(--ta-ember);
  border-color: var(--ta-ember);
  color: var(--ta-ink);
}

@media (max-width: 992px) {
  .ta-header__contact {
    display: none;
  }

  .ta-burger {
    display: inline-flex;
  }

  .ta-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.25rem;
    background: rgba(23, 19, 15, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .ta-nav.is-open {
    max-height: 520px;
    padding: 1rem 1.25rem 1.5rem;
  }

  .ta-nav li {
    width: 100%;
    border-bottom: 1px solid var(--ta-line-light);
  }

  .ta-nav a {
    display: block;
    padding: 0.9rem 0;
  }

  .ta-split,
  .ta-split--wide-left,
  .ta-split--wide-right {
    grid-template-columns: 1fr;
  }

  .ta-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ta-stat-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ta-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ta-grid--2,
  .ta-grid--3,
  .ta-grid--4 {
    grid-template-columns: 1fr;
  }

  .ta-form {
    grid-template-columns: 1fr;
  }

  .ta-stat-band {
    grid-template-columns: 1fr;
  }

  .ta-footer__grid {
    grid-template-columns: 1fr;
  }

  .ta-gallery__item,
  .ta-gallery__item--wide {
    grid-column: span 12;
  }

  .ta-hero__meta {
    gap: 1.5rem;
  }

  .taapx-cookie {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .taapx-cookie__actions {
    width: 100%;
    margin-left: 0;
  }

  .taapx-cookie__btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
/* --- Contrast + mobile header overlap fixes (article pages) --- */
.ta-card__index {
  color: var(--ta-cedar-deep);
}

.ta-kicker--light {
  color: #f7e3c2;
}

.ta-vertical-label {
  color: rgba(23, 19, 15, 0.82);
}

@media (max-width: 991.98px) {
  body.ta-page-article {
    padding-top: 118px;
  }

  .ta-vertical-label {
    display: none;
  }
}

/* ==========================================================================
   QA overrides (about page)
   ========================================================================== */

/* 1. Clearance for the fixed header so the hero is never overlapped */
main {
  padding-top: 84px;
  background-image: linear-gradient(var(--ta-ink), var(--ta-ink));
  background-repeat: no-repeat;
  background-position: top left;
  background-size: 100% 84px;
}

@media (max-width: 991.98px) {
  main {
    padding-top: 120px;
    background-size: 100% 120px;
  }
}

/* 2. Contrast: solid buttons need a darker cedar so white text passes 4.5:1 */
.ta-btn:not(.ta-btn--ghost):not(.ta-btn--light) {
  background: var(--ta-cedar-deep);
  border-color: var(--ta-cedar-deep);
  color: #fff;
}

.ta-btn:not(.ta-btn--ghost):not(.ta-btn--light):hover,
.ta-btn:not(.ta-btn--ghost):not(.ta-btn--light):focus-visible {
  background: #6f4313;
  border-color: #6f4313;
  color: #fff;
}

/* 3. Contrast: ghost buttons sitting on dark backgrounds */
.ta-hero .ta-btn--ghost,
.ta-cta .ta-btn--ghost,
.ta-section--dark .ta-btn--ghost {
  color: var(--ta-cream);
  border-color: rgba(251, 247, 241, 0.55);
}

.ta-hero .ta-btn--ghost:hover,
.ta-hero .ta-btn--ghost:focus-visible,
.ta-cta .ta-btn--ghost:hover,
.ta-cta .ta-btn--ghost:focus-visible,
.ta-section--dark .ta-btn--ghost:hover,
.ta-section--dark .ta-btn--ghost:focus-visible {
  background: var(--ta-cream);
  border-color: var(--ta-cream);
  color: var(--ta-ink);
}

/* 4. Contrast: card index labels on light backgrounds */
.ta-card__index {
  color: var(--ta-cedar-deep);
}

.ta-section--dark .ta-card__index {
  color: var(--ta-ember);
}

/* 5. Contrast: kickers and tags on dark backgrounds */
.ta-cta .ta-kicker,
.ta-section--dark .ta-tag,
.ta-footer .ta-tag {
  color: var(--ta-ember);
}

/* 6. Contrast: links inside cards on dark backgrounds */
.ta-section--dark .ta-card__title a,
.ta-section--dark .ta-card p a {
  color: var(--ta-ember);
}

.ta-section--dark .ta-card__title a:hover,
.ta-section--dark .ta-card__title a:focus-visible,
.ta-section--dark .ta-card p a:hover,
.ta-section--dark .ta-card p a:focus-visible {
  color: var(--ta-cream);
}

/* 7. Contrast: decorative vertical label on light sections */
.ta-vertical-label {
  color: rgba(23, 19, 15, 0.78);
}

/* 8. Guarantee hero clearance under the fixed header at every viewport width
      (mobile header measures 115px tall, so 124px of top padding clears it) */
main {
  padding-top: 124px;
  background-size: 100% 124px;
}

@media (max-width: 991.98px) {
  main {
    padding-top: 124px;
    background-size: 100% 124px;
  }
}

/* ==========================================================================
   QA fix: contrast for the decorative vertical label on the dark article hero
   ========================================================================== */
.ta-article-hero .ta-vertical-label {
  color: rgba(251, 247, 241, 0.85);
}

/* Placeholder contrast improvement (WCAG AA) */
.ta-form input::placeholder,
.ta-form textarea::placeholder {
  color: #5c5c5c;
  opacity: 1;
}

/* ==========================================================================
   QA overrides (cedar sauna / bathhouse service page)
   ========================================================================== */

/* 1. Contrast: give the fixed header a fully opaque background so the light
      navigation text, phone and email are measured against the real dark
      header instead of the cream page background. */
.ta-header,
.ta-header.is-shrunk {
  background: #17130f;
}

@media (max-width: 991.98px) {
  .ta-nav,
  .ta-nav.is-open {
    background: #17130f;
  }
}

/* 2. Contrast: the decorative vertical label sits on the dark hero image,
      so it must be light rather than the dark value used on pale sections. */
.ta-hero .ta-vertical-label {
  color: rgba(251, 247, 241, 0.85);
}

/* 3. Contrast: author role text inside dark sections inherits the dark bark
      colour and disappears against the near black card background. */
.ta-section--dark .ta-author__role {
  color: rgba(251, 247, 241, 0.76);
}

/* ==========================================================================
   QA fix (cookie-policy page): contrast of the contact card that sits inside
   the dark article hero. The card has a light cream background, but its text
   inherited the light hero colour and became invisible (1:1). Force dark ink.
   ========================================================================== */
.ta-article-hero .ta-card,
.ta-article-hero .ta-card p,
.ta-article-hero .ta-card .ta-card__title {
  color: var(--ta-ink);
}

.ta-article-hero .ta-card .ta-card__index {
  color: var(--ta-cedar-deep);
}

.ta-article-hero .ta-card a {
  color: var(--ta-cedar-deep);
}

.ta-article-hero .ta-card a:hover,
.ta-article-hero .ta-card a:focus-visible {
  color: var(--ta-cedar);
}

/* ==========================================================================
   QA fix: styling for the in-page form success confirmation
   (custom timber frame homes service page)
   ========================================================================== */
.ta-form__success {
  grid-column: 1 / -1;
  margin-top: 1.25rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid #2f6b3a;
  border-left: 6px solid #2f6b3a;
  border-radius: 4px;
  background: #e9f5ec;
  color: #1c3b24;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ta-form__success:focus {
  outline: 2px solid #2f6b3a;
  outline-offset: 3px;
}

.ta-form button[type="submit"]:disabled {
  cursor: default;
  opacity: 0.85;
  transform: none;
}

/* ==========================================================================
   QA fix (price page): contrast for inline body links that sit directly on a
   dark section background (not inside a light card). The default link colour
   (--ta-cedar-deep) measures ~3.0:1 on --ta-ink; switch it to the ember accent
   which measures ~7.6:1 on the same near-black background.
   ========================================================================== */
.ta-section--dark p a,
.ta-section--dark li a,
.ta-section--dark .ta-list a,
.ta-cta p a,
.ta-cta li a {
  color: var(--ta-ember);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ta-section--dark p a:hover,
.ta-section--dark p a:focus-visible,
.ta-section--dark li a:hover,
.ta-section--dark li a:focus-visible,
.ta-section--dark .ta-list a:hover,
.ta-section--dark .ta-list a:focus-visible,
.ta-cta p a:hover,
.ta-cta p a:focus-visible,
.ta-cta li a:hover,
.ta-cta li a:focus-visible {
  color: var(--ta-cream);
}

/* ==========================================================================
   QA fix (cookie consent banner): the solid "Accept" button used --ta-cedar
   (#b9762f) behind white text, which measures only ~3.7:1. Use the darker
   cedar-deep tone already used for solid buttons elsewhere in the design so
   white text clears 4.5:1, keeping the same warm palette.
   ========================================================================== */
.taapx-cookie__btn--solid {
  background: var(--ta-cedar-deep);
  border-color: var(--ta-cedar-deep);
  color: #fff;
}

.taapx-cookie__btn--solid:hover,
.taapx-cookie__btn--solid:focus-visible {
  background: var(--ta-ember);
  border-color: var(--ta-ember);
  color: var(--ta-ink);
}
