/* Tokens */
:root {
  --c-bg: #FBF6F4;
  --c-surface: #FFFFFF;
  --c-text: #2A1C1C;
  --c-muted: #6A5352;
  --c-accent: #A8323F;
  --c-accent-dark: #8B2733;
  --c-accent-text: #FFFFFF;
  --c-plate-bg: #2A1C1C;
  --c-plate-text: #FBF6F4;
  --c-line: #E5D9D6;
  --f-main: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --r-card: 20px;
  --r-btn: 999px;
  --r-bar: 18px;
  --sh-soft: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --pad-x: clamp(16px, 4vw, 40px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--c-bg);
  background-image: radial-gradient(var(--c-accent) 2.4px, transparent 2.6px);
  background-size: 44px 44px;
  color: var(--c-text);
  font-family: var(--f-main);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; margin: 0 0 16px; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); margin: 0 0 16px; }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); margin: 0 0 10px; }
p { margin: 0 0 16px; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-dark); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
html.tn-js .tn-rv { visibility: hidden; opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease, visibility .6s; }
html.tn-js .tn-rv--in, html.tn-js .tn-rv.tn-rv--in { visibility: visible; opacity: 1; transform: none; }
html:not(.tn-js) .tn-rv { visibility: visible; opacity: 1; }
.tn-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-plate-bg); color: var(--c-plate-text);
  padding: 12px 20px; border-radius: 0 0 var(--r-card) 0;
}
.tn-skip:focus { left: 0; color: var(--c-plate-text); }
.tn-wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad-x); }
.tn-sec { padding-block: clamp(64px, 9vw, 128px); }
.tn-txt { max-width: 68ch; }
.tn-txt--muted { color: var(--c-muted); font-size: 0.9rem; }
.tn-hl { color: var(--c-accent); }
.tn-plate {
  display: inline-block;
  background: var(--c-plate-bg); color: var(--c-plate-text);
  border-radius: var(--r-card);
  padding: 16px 24px;
}

/* Header */
.tn-bar {
  position: sticky; top: 12px; z-index: 95;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px;
  width: calc(100% - 2 * clamp(12px, 3vw, 28px));
  max-width: 1240px; margin: 12px auto 0;
  min-height: 68px;
  background: var(--c-surface);
  border-radius: var(--r-bar);
  box-shadow: var(--sh-soft);
  padding: 10px clamp(14px, 2.5vw, 24px);
}
.tn-bar__call { justify-self: end; }
.tn-brand {
  justify-self: center; text-align: center;
  font-weight: 700; color: var(--c-text);
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.2rem);
  text-decoration: none; max-width: 46vw; line-height: 1.25;
}
.tn-drawer__btn {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--c-text); background: transparent;
  border: 2px solid var(--c-line); border-radius: var(--r-btn);
  min-height: 48px; padding: 0 18px; cursor: pointer;
}
.tn-drawer__btn-box, .tn-drawer__btn-box::before, .tn-drawer__btn-box::after {
  width: 20px; height: 2px; background: var(--c-text); border-radius: 2px;
  content: ""; display: block;
}
.tn-drawer__btn-box { position: relative; }
.tn-drawer__btn-box::before { position: absolute; top: -6px; }
.tn-drawer__btn-box::after { position: absolute; top: 6px; }
.tn-drawer__btn:hover { border-color: var(--c-accent); }

/* Drawer nav */
.tn-drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 90;
  width: min(340px, 84vw);
  background: var(--c-surface);
  box-shadow: var(--sh-soft);
  transform: translateX(-102%);
  transition: transform .35s ease;
  padding: clamp(112px, 16vh, 150px) clamp(24px, 5vw, 40px) 32px;
  overflow-y: auto;
  visibility: hidden;
}
.tn-drawer--open { transform: translateX(0); visibility: visible; }
.tn-drawer__list { list-style: none; display: grid; gap: 6px; }
.tn-drawer__link {
  position: relative; display: inline-block;
  color: var(--c-text); text-decoration: none;
  font-size: 1.05rem; font-weight: 600;
  padding: 10px 2px;
}
.tn-drawer__link::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  width: 100%; height: 3px; background: var(--c-accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.tn-drawer__link:hover::after, .tn-drawer__link[aria-current="page"]::after { transform: scaleX(1); }
.tn-drawer__link:hover, .tn-drawer__link[aria-current="page"] { color: var(--c-accent); }
.tn-drawer-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgb(42 28 28 / .5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.tn-drawer-scrim.is-open { opacity: 1; visibility: visible; }

/* Buttons */
.tn-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--c-accent); color: var(--c-accent-text);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; border: 2px solid var(--c-accent);
  border-radius: var(--r-btn);
  cursor: pointer;
  overflow: hidden; position: relative; z-index: 0;
  transition: background-color .25s ease, color .25s ease, transform .15s ease, border-color .25s ease;
}
.tn-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-accent-dark);
  transform: translateY(101%); transition: transform .3s ease;
}
.tn-btn:hover { color: var(--c-accent-text); }
.tn-btn:hover::before { transform: translateY(0); }
.tn-btn:focus-visible {
  outline: 3px solid var(--c-accent); outline-offset: 3px;
  box-shadow: 0 0 0 7px rgb(168 50 63 / .3);
}
.tn-btn:active { transform: scale(0.97); }
.tn-btn--ghost { background: transparent; color: var(--c-accent); }
.tn-btn--ghost:hover { color: var(--c-accent-text); }

/* Floating call */
.tn-fab {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 60;
  min-height: 52px; padding: 0 24px;
  display: inline-flex; align-items: center;
  background: var(--c-accent); color: var(--c-accent-text);
  font-weight: 600; text-decoration: none;
  border-radius: var(--r-btn); box-shadow: var(--sh-soft);
}
.tn-fab:hover { background: var(--c-accent-dark); color: var(--c-accent-text); }
.tn-fab:active { transform: scale(0.97); }

/* Hero */
.tn-hero { padding-top: clamp(40px, 6vw, 80px); }
.tn-hero__grid { display: grid; gap: 32px; align-items: center; }
.tn-hero__title { max-width: 15ch; }
.tn-hero__line { display: inline-block; }
.tn-hero__line--xl { font-size: clamp(2.6rem, 5.6vw + 1rem, 5.4rem); }
.tn-hero__line--m { font-size: clamp(1.9rem, 3vw + 1rem, 3.4rem); color: var(--c-accent); }
.tn-hero__line--s { font-size: clamp(1.5rem, 2vw + 1rem, 2.4rem); }
.tn-hero__lead { max-width: 54ch; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.tn-hero__say { margin-top: 8px; max-width: 56ch; }
.tn-hero__media { margin: 0; }
.tn-hero__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--c-line); border-radius: 0;
}

/* Checklist */
.tn-check__grid { display: grid; gap: 32px; margin-top: 32px; }
.tn-check__list { list-style: none; display: grid; gap: 12px; counter-reset: chk; }
.tn-check__item {
  counter-increment: chk;
  background: var(--c-surface); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  padding: 14px 20px 14px 56px; position: relative;
}
.tn-check__item::before {
  content: counter(chk, decimal-leading-zero);
  position: absolute; left: 18px; top: 14px;
  color: var(--c-accent); font-weight: 700; font-size: 0.95rem;
}
.tn-check__fig { margin: 0; }
.tn-check__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--c-line); }
.tn-check__fig figcaption { padding-top: 10px; }

/* Services */
.tn-svc__grid { display: grid; gap: 24px; margin-top: 32px; }
.tn-card {
  background: var(--c-surface); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  padding: clamp(24px, 3vw, 32px);
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tn-card:hover { transform: translateY(-6px); box-shadow: var(--sh-soft); }
.tn-svc__initial {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 14px;
  border-radius: var(--r-card);
  background: var(--c-plate-bg); color: var(--c-plate-text);
  font-size: 1.8rem; font-weight: 700;
}
.tn-svc__initial.tn-hl { color: var(--c-plate-text); background: var(--c-accent); }

/* Infrastructure map */
.tn-map__grid { display: grid; gap: 24px; margin-top: 32px; }
.tn-map__board {
  display: flex; flex-wrap: wrap; gap: 10px;
  background: var(--c-surface); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  padding: 16px;
}
.tn-map__node {
  flex: 1 1 auto; min-height: 48px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--c-text); background: var(--c-bg);
  border: 2px solid var(--c-line); border-radius: var(--r-btn);
  padding: 8px 18px; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.tn-map__node:hover { border-color: var(--c-accent); }
.tn-map__node[aria-selected="true"] { background: var(--c-accent); color: var(--c-accent-text); border-color: var(--c-accent); }
.tn-map__panels { background: var(--c-surface); border-radius: var(--r-card); box-shadow: 0 1px 2px rgb(0 0 0 / .05); padding: clamp(20px, 3vw, 32px); }
.tn-map__panel[hidden] { display: none; }
.is-hidden { display: none; }

/* Form */
.tn-formsec__grid { display: grid; gap: 32px; align-items: start; }
.tn-form {
  background: var(--c-surface); border-radius: var(--r-card);
  box-shadow: var(--sh-soft);
  padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 18px;
}
.tn-form form.tn-form { padding: 0; background: none; box-shadow: none; }
.tn-form__row { display: grid; gap: 6px; }
.tn-form__lab { font-weight: 600; font-size: 0.95rem; }
.tn-form__in {
  font-family: inherit; font-size: 1rem; color: var(--c-text);
  background: var(--c-bg); border: 2px solid var(--c-line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.tn-form__in::placeholder { color: var(--c-muted); opacity: 1; }
.tn-form__in:focus-visible { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgb(168 50 63 / .25); }
.tn-form__area { resize: vertical; min-height: 110px; }
.tn-form__row:has(.tn-form__in:user-invalid) .tn-form__in,
.tn-form__in[aria-invalid="true"] { border-color: var(--c-accent); }
.tn-form__err { color: var(--c-accent-dark); font-size: 0.9rem; margin: 0; }
.tn-form__chk { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.tn-form__chk input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c-accent); flex: none; }
.tn-form__note { color: var(--c-muted); font-size: 0.9rem; margin: 0; }
.tn-form__send { width: 100%; }
.is-busy { pointer-events: none; opacity: .65; }

/* Steps */
.tn-steps__grid { display: grid; gap: 32px; margin-top: 32px; }
.tn-steps__list { list-style: none; display: grid; gap: 20px; counter-reset: st; }
.tn-steps__item { counter-increment: st; position: relative; padding-top: 20px; }
.tn-steps__item::before {
  content: counter(st);
  position: absolute; top: -14px; left: 24px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-accent-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.tn-steps__fig { margin: 0; }
.tn-steps__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--c-line); }

/* FAQ */
.tn-faq__item {
  background: var(--c-surface); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  padding: 4px 20px; margin-top: 12px;
}
.tn-faq__item summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem;
  padding: 14px 0; list-style-position: inside;
  color: var(--c-text);
}
.tn-faq__item summary:hover { color: var(--c-accent); }
.tn-faq__item[open] summary { color: var(--c-accent); }

/* Inner pages */
.tn-pagehead { padding-block: clamp(40px, 6vw, 72px) 0; }
.tn-pagehead h1 { max-width: 100%; }
.tn-pagehead .tn-txt { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 60ch; }
.tn-txt h2 { margin-top: 40px; }
.tn-txt h3 { margin-top: 28px; }
.tn-txt ul, .tn-txt ol { padding-left: 24px; margin: 0 0 16px; }
.tn-txt li { margin-bottom: 8px; }
.tn-txt table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; background: var(--c-surface); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.tn-txt th, .tn-txt td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.tn-txt th { background: var(--c-bg); font-weight: 700; }
.tn-txt tr:last-child td { border-bottom: 0; }
.tn-summary {
  background: var(--c-plate-bg); color: var(--c-plate-text);
  border-radius: var(--r-card); padding: clamp(24px, 3vw, 32px);
  margin-bottom: 32px;
}
.tn-summary .tn-txt, .tn-summary p { color: var(--c-plate-text); }
.tn-contacts { display: grid; gap: 20px; margin-top: 24px; }
.tn-contacts address { font-style: normal; background: var(--c-surface); border-radius: var(--r-card); box-shadow: 0 1px 2px rgb(0 0 0 / .05); padding: 24px; }
.tn-contacts ul { list-style: none; display: grid; gap: 10px; }
.tn-contacts ul li span { color: var(--c-muted); margin-right: 6px; }
.tn-confirm, .tn-lost { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.tn-confirm h1, .tn-lost h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem); }
.tn-lost__code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--c-accent); line-height: 1; margin: 0 0 16px; }
.tn-more { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* Footer */
.tn-foot { background: var(--c-surface); border-radius: var(--r-card) var(--r-card) 0 0; padding: clamp(48px, 6vw, 72px) 0 24px; margin-top: clamp(48px, 6vw, 80px); }
.tn-foot__grid { display: grid; gap: 32px; }
.tn-foot__head { font-weight: 700; margin: 0 0 14px; }
.tn-foot__links { list-style: none; display: grid; gap: 8px; }
.tn-foot__links a { color: var(--c-text); text-decoration: none; }
.tn-foot__links a:hover { color: var(--c-accent); text-decoration: underline; }
.tn-foot__col address { font-style: normal; }
.tn-foot__col address p { margin: 0 0 10px; }
.tn-foot__col ul { list-style: none; display: grid; gap: 8px; }
.tn-foot__col ul li span { color: var(--c-muted); margin-right: 6px; }
.tn-foot__bottom { border-top: 1px solid var(--c-line); margin-top: 32px; padding-top: 20px; }
.tn-foot__copy { color: var(--c-muted); font-size: 0.9rem; margin: 0; }

/* Breakpoints */
@media (min-width: 480px) {
  .tn-map__node { flex: 0 1 auto; }
}
@media (min-width: 640px) {
  .tn-svc__grid { grid-template-columns: repeat(2, 1fr); }
  .tn-foot__grid { grid-template-columns: repeat(2, 1fr); }
  .tn-form__row { grid-template-columns: 160px 1fr; align-items: center; }
  .tn-form__row:has(.tn-form__area) { grid-template-columns: 1fr; align-items: start; }
}
@media (min-width: 768px) {
  .tn-check__grid { grid-template-columns: 3fr 2fr; }
  .tn-steps__grid { grid-template-columns: 3fr 2fr; }
  .tn-formsec__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .tn-contacts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .tn-hero__grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .tn-svc__grid { grid-template-columns: repeat(3, 1fr); }
  .tn-map__grid { grid-template-columns: 2fr 3fr; align-items: start; }
  .tn-foot__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .tn-sec { padding-block: 128px; }
  .tn-map__node { flex: 1 1 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.tn-js .tn-rv { visibility: visible; opacity: 1; transform: none; }
  .tn-btn::before { display: none; }
  .tn-drawer { transition: none; }
}

h2, h3, p, .tn-txt { overflow-wrap: break-word; }
.tn-hero__grid > *, .tn-formsec__grid > *, .tn-check__grid > *, .tn-steps__grid > * { min-width: 0; }
@media (max-width: 479px) {
  body { hyphens: auto; }
}
