:root {
  --te-ink: #10131f;
  --te-muted: #626d7d;
  --te-soft: #f5f7fb;
  --te-card: rgba(255, 255, 255, 0.82);
  --te-line: rgba(17, 24, 39, 0.12);
  --te-gold: #c89532;
  --te-rose: #b23a55;
  --te-plum: #332044;
  --te-navy: #121a2f;
  --te-blue: #3157d5;
  --te-shadow: 0 26px 80px rgba(16, 19, 31, 0.18);
  --te-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.template-e {
  margin: 0;
  color: var(--te-ink);
  background: #fbfbfd;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.template-e img {
  display: block;
  max-width: 100%;
}

.template-e a {
  color: inherit;
  text-decoration: none;
}

.template-e h1,
.template-e h2,
.template-e h3,
.template-e p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.te-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.te-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  color: var(--te-navy);
  font-weight: 900;
}

.te-brand img,
.te-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.te-brand-mark {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--te-plum), var(--te-rose));
  font-weight: 950;
}

.te-brand span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.te-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #465365;
  font-size: 0.92rem;
  font-weight: 800;
}

.te-nav a:hover {
  color: var(--te-rose);
}

.te-call {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--te-navy);
  font-weight: 900;
  white-space: nowrap;
}

.te-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(22px, 4vw, 48px);
  min-height: 760px;
  align-items: center;
  padding: clamp(44px, 7vw, 96px) clamp(16px, 5vw, 78px);
  background:
    radial-gradient(circle at 18% 14%, rgba(200, 149, 50, 0.28), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(49, 87, 213, 0.2), transparent 30%),
    linear-gradient(135deg, #fbfbff 0%, #eef3ff 45%, #fff7f1 100%);
  overflow: hidden;
}

.te-hero::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  pointer-events: none;
}

.te-hero-copy,
.te-hero-visual {
  position: relative;
  z-index: 1;
}

.te-eyebrow {
  margin: 0 0 12px;
  color: var(--te-rose);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.te-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--te-navy);
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.te-hero-text {
  max-width: 690px;
  margin: 24px 0 0;
  color: #334155;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.te-actions,
.te-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.te-actions {
  margin-top: 28px;
}

.te-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.te-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--te-plum), var(--te-rose));
  box-shadow: 0 18px 40px rgba(178, 58, 85, 0.28);
}

.te-btn-primary:visited {
  color: #fff;
}

.te-btn-secondary {
  color: var(--te-navy);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.te-trust-badges {
  margin-top: 24px;
}

.te-trust-badges span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #283244;
  font-size: 0.86rem;
  font-weight: 850;
  box-shadow: 0 10px 30px rgba(16, 19, 31, 0.06);
}

.te-hero-visual {
  min-height: 540px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--te-navy), var(--te-plum));
  box-shadow: var(--te-shadow);
}

.te-hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.te-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 26, 47, 0.08), rgba(18, 26, 47, 0.62));
}

.te-glass-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.te-quote-card {
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 22px;
}

.te-quote-card span,
.te-quote-card strong,
.te-quote-card p,
.te-mini-card span,
.te-mini-card strong {
  display: block;
}

.te-quote-card span {
  color: #ffe8b0;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.te-quote-card strong {
  margin-top: 6px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.te-quote-card p {
  margin: 10px 0 0;
  color: #e7edf7;
}

.te-mini-card {
  top: 22px;
  right: 22px;
  width: min(190px, calc(100% - 44px));
  padding: 16px;
}

.te-mini-card strong {
  color: #ffe8b0;
  font-size: 2rem;
  line-height: 1;
}

.te-mini-card span {
  margin-top: 6px;
  color: #edf2ff;
  font-size: 0.84rem;
  font-weight: 800;
}

.te-proof-strip,
.te-section,
.te-experience,
.te-testimonials,
.te-final-cta,
.te-faq {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.te-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -38px;
  position: relative;
  z-index: 5;
  overflow: hidden;
  border: 1px solid var(--te-line);
  border-radius: 8px;
  background: var(--te-line);
  box-shadow: var(--te-shadow);
}

.te-proof-strip div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.te-proof-strip strong,
.te-proof-strip span {
  display: block;
}

.te-proof-strip strong {
  color: var(--te-gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.te-proof-strip span {
  margin-top: 7px;
  color: var(--te-navy);
  font-weight: 900;
}

.te-section,
.te-testimonials,
.te-faq {
  padding: clamp(64px, 9vw, 108px) 0;
}

.te-section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.te-section-head h2,
.te-experience h2,
.te-final-cta h2 {
  margin: 0;
  color: var(--te-navy);
  font-size: clamp(2.05rem, 4.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.te-section-head p:not(.te-eyebrow),
.te-experience-copy p,
.te-final-cta p {
  color: var(--te-muted);
  font-size: 1.04rem;
}

.te-service-grid,
.te-process-grid,
.te-review-grid,
.te-faq-list,
.te-contact-grid {
  display: grid;
  gap: 14px;
}

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

.te-service-card,
.te-process-grid div,
.te-review-grid blockquote,
.te-faq-list details,
.te-lead-form,
.te-contact-grid a,
.te-contact-grid div,
.te-work-empty {
  border: 1px solid var(--te-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 42px rgba(16, 19, 31, 0.08);
}

.te-service-card {
  min-height: 270px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
}

.te-service-card span {
  color: var(--te-gold);
  font-weight: 950;
}

.te-service-card h3 {
  margin: 32px 0 10px;
  color: var(--te-navy);
  font-size: 1.38rem;
  line-height: 1.1;
}

.te-service-card p {
  margin-bottom: 0;
  color: var(--te-muted);
}

.te-experience {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  padding: clamp(62px, 8vw, 96px) 0;
}

.te-experience-media {
  min-height: 460px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #e7ecf7, #fff4e5);
  box-shadow: var(--te-shadow);
}

.te-experience-media img,
.te-work-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.te-experience-copy p {
  margin: 18px 0 0;
}

.te-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.te-process-grid div {
  padding: 18px;
}

.te-process-grid strong,
.te-process-grid span,
.te-contact-grid strong,
.te-contact-grid span {
  display: block;
}

.te-process-grid strong {
  color: var(--te-navy);
}

.te-process-grid span {
  margin-top: 6px;
  color: var(--te-muted);
  font-size: 0.92rem;
}

.te-work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 14px;
}

.te-work-grid figure {
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8edf6;
  box-shadow: 0 16px 44px rgba(16, 19, 31, 0.12);
}

.te-work-grid figure:first-child {
  grid-row: span 2;
  min-height: 574px;
}

.te-work-grid figcaption {
  padding: 13px 15px;
  color: var(--te-navy);
  background: #fff;
  font-weight: 850;
}

.te-work-empty {
  grid-column: 1 / -1;
  padding: 28px;
}

.te-work-empty strong,
.te-work-empty span {
  display: block;
}

.te-work-empty span {
  margin-top: 6px;
  color: var(--te-muted);
}

.te-testimonials {
  padding-top: 32px;
}

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

.te-review-grid blockquote {
  margin: 0;
  padding: 24px;
}

.te-review-grid p {
  margin: 0;
  color: #313b4d;
  font-size: 1.02rem;
}

.te-review-grid cite {
  display: block;
  margin-top: 18px;
  color: var(--te-rose);
  font-style: normal;
  font-weight: 950;
}

.te-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
  padding: clamp(62px, 8vw, 96px);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 149, 50, 0.34), transparent 34%),
    linear-gradient(135deg, var(--te-navy), var(--te-plum));
  box-shadow: var(--te-shadow);
}

.te-final-cta h2,
.te-final-cta .te-eyebrow {
  color: #fff;
}

.te-final-cta p {
  color: #dbe4f4;
}

.te-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.te-contact-grid a,
.te-contact-grid div {
  padding: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.te-contact-grid strong {
  color: #ffe8b0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.te-contact-grid span {
  margin-top: 5px;
  color: #fff;
  font-weight: 800;
}

.te-lead-form {
  display: grid;
  gap: 13px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.te-lead-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 850;
}

.te-lead-form input,
.te-lead-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--te-ink);
  font: inherit;
  background: #fff;
}

.te-lead-form textarea {
  resize: vertical;
}

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

.te-faq-list details {
  padding: 22px;
}

.te-faq-list summary {
  cursor: pointer;
  color: var(--te-navy);
  font-weight: 950;
}

.te-faq-list p {
  margin: 12px 0 0;
  color: var(--te-muted);
}

.te-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 5vw, 78px) 94px;
  color: var(--te-muted);
}

.te-mobile-cta {
  display: none;
}

@media (max-width: 980px) {
  .te-header {
    grid-template-columns: 1fr auto;
  }

  .te-nav {
    display: none;
  }

  .te-hero,
  .te-experience,
  .te-final-cta {
    grid-template-columns: 1fr;
  }

  .te-hero {
    min-height: auto;
    padding-top: 48px;
  }

  .te-hero-visual,
  .te-experience-media {
    min-height: 390px;
  }

  .te-service-grid,
  .te-review-grid,
  .te-faq-list {
    grid-template-columns: 1fr 1fr;
  }

  .te-work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .te-work-grid figure:first-child {
    grid-row: auto;
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .te-header {
    min-height: 66px;
    padding: 12px 14px;
  }

  .te-call {
    display: none;
  }

  .te-brand span:last-child {
    max-width: 72vw;
  }

  .te-hero {
    padding: 34px 14px 52px;
  }

  .te-hero::before {
    inset: 12px;
  }

  .te-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.05rem);
    line-height: 1.02;
    word-break: break-word;
  }

  .te-actions,
  .te-actions .te-btn,
  .te-trust-badges span {
    width: 100%;
  }

  .te-trust-badges span,
  .te-actions .te-btn {
    justify-content: center;
  }

  .te-hero-visual,
  .te-experience-media {
    min-height: 340px;
  }

  .te-mini-card {
    top: 14px;
    right: 14px;
  }

  .te-quote-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 18px;
  }

  .te-proof-strip,
  .te-service-grid,
  .te-process-grid,
  .te-review-grid,
  .te-faq-list,
  .te-contact-grid,
  .te-work-grid {
    grid-template-columns: 1fr;
  }

  .te-proof-strip {
    margin-top: -24px;
  }

  .te-section,
  .te-testimonials,
  .te-faq {
    padding: 58px 0;
  }

  .te-service-card {
    min-height: auto;
  }

  .te-final-cta {
    width: min(100% - 24px, 1180px);
    padding: 34px 18px;
  }

  .te-footer {
    display: grid;
    padding-bottom: 92px;
  }

  .te-mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .te-mobile-cta a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    background: var(--te-navy);
    font-weight: 950;
    box-shadow: 0 14px 38px rgba(16, 19, 31, 0.22);
  }

  .te-mobile-cta a:first-child {
    background: linear-gradient(135deg, var(--te-plum), var(--te-rose));
  }
}
