/* ==========================================================================
   Landing: ТРАНСПАКИ — модульные / быстровозводимые здания
   Imported only from src/transpaki/index.html.
   Reuses homepage .hp-* blocks; this file adds landing-specific blocks only.
   Depends: tokens.css, base.css, components/*, homepage tokens.
   All visual values reference tokens.css — no hardcoded hex except greys
   for logo placeholders (intentionally neutral).
   ========================================================================== */

/* --------------------------------------------------------------------------
   FAQ aside sticky offset — landing header has no cats-row (~72px tall),
   so reduce the homepage offset (148px) to sit just below the sticky header.
   -------------------------------------------------------------------------- */
.tp-page .hp-faq-aside {
  top: 96px;
}

/* --------------------------------------------------------------------------
   Block: Применение — compact tiles (no images), 10+ usage scenarios
   Adapted from .hp-tasks-grid — lighter, text-only tiles.
   -------------------------------------------------------------------------- */
.tp-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tp-app {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.tp-app:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tp-app-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
}

.tp-app-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.tp-app:hover .tp-app-media img {
  transform: scale(1.04);
}

.tp-app-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-app-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.tp-app-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Block: Продукция — landing showcase of building types (NOT a shop catalog)
   Image + title + short description + key facts + one popup CTA.
   No price, no SKU, no merchandising badges — this is a single landing page.
   -------------------------------------------------------------------------- */
.tp-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tp-product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.tp-product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tp-product-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.tp-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.tp-product-card:hover .tp-product-media img {
  transform: scale(1.04);
}

.tp-product-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.tp-product-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.tp-product-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.tp-product-specs {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tp-product-specs li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.tp-product-specs li span {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tp-product-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 14px 28px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Block: Реализованные объекты — 4 project cards (client / area meta)
   Built on card.css language (white card, line border, radius, shadow).
   -------------------------------------------------------------------------- */
.tp-objects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tp-object-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.tp-object-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tp-object-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.tp-object-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.tp-object-card:hover .tp-object-media img {
  transform: scale(1.04);
}

.tp-object-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.tp-object-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.tp-object-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.tp-object-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.tp-object-meta-lbl {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tp-object-meta-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Block: Нам доверяют — logo placeholder strip
   -------------------------------------------------------------------------- */
.tp-logos {
  padding: 64px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tp-logos-head {
  text-align: center;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px;
}

.tp-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.tp-logo {
  width: 150px;
  height: 56px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   Block: Отзывы — compact quote cards (card.css language)
   -------------------------------------------------------------------------- */
.tp-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tp-review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.tp-review-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  quotes: "«" "»";
}

.tp-review-quote::before { content: open-quote; }
.tp-review-quote::after  { content: close-quote; }

.tp-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.tp-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 16px/1 var(--sans);
  flex-shrink: 0;
}

.tp-review-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.tp-review-role {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}

/* --------------------------------------------------------------------------
   Block: Преимущества зданий — 4 icon feature cards (light section)
   -------------------------------------------------------------------------- */
.tp-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tp-feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms, box-shadow 200ms;
}

.tp-feature:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.tp-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-feature-icon svg {
  width: 22px;
  height: 22px;
}

.tp-feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.tp-feature-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Lead form — simplified (name + phone only) with EXTRA-LARGE fields.
   Used in #get-quote inline form AND the callback popup. Goal: the two
   fields must be impossible to miss. Consent checkbox kept (152-FZ).
   -------------------------------------------------------------------------- */
.tp-lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tp-lead-form .form-group {
  display: flex;
  flex-direction: column;
}

/* Short intro line above the popup form */
.tp-popup-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.tp-lead-form .form-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.tp-lead-form .form-input {
  height: 64px;
  padding: 0 22px;
  font-size: 19px;
  font-weight: 500;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-card);
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 200ms, box-shadow 200ms;
}

.tp-lead-form .form-input::placeholder {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted-light);
}

.tp-lead-form .form-input:focus,
.tp-lead-form .form-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Big primary submit — matches field height */
.tp-lead-submit {
  width: 100%;
  height: 62px;
  font-size: 18px;
  border-radius: var(--r);
}

/* Compact consent checkbox under the big fields */
.tp-lead-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.tp-lead-form .checkbox-group input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.tp-lead-form .checkbox-group a {
  color: var(--accent);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Hero — bullet list (replaces paragraph subtitle)
   -------------------------------------------------------------------------- */
.tp-hero-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tp-hero-list li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.tp-hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* --------------------------------------------------------------------------
   Hero — "Купить" button with old/new price
   -------------------------------------------------------------------------- */
.tp-buy-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-price-old {
  text-decoration: line-through;
  opacity: 0.65;
  font-weight: 600;
  font-size: 0.85em;
}

.tp-price-new {
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Block: Что такое транспак
   -------------------------------------------------------------------------- */
.tp-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}

.tp-about-copy {
  display: flex;
  flex-direction: column;
}

.tp-about-copy h2 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.tp-about-copy .hp-sub {
  margin-bottom: 24px;
}

.tp-about-adv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-about-adv li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.tp-about-adv-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-about-adv-ic svg {
  width: 15px;
  height: 15px;
}

.tp-about-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-about-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 24px;
  box-sizing: border-box;
}

.tp-about-cap {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.tp-about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.tp-about-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
}

.tp-about-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.tp-about-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.tp-about-banner {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 28px;
  text-align: center;
}

.tp-about-banner img {
  width: 100%;
  max-width: 812px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tp-about-banner figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Block: Технические характеристики (spec table)
   -------------------------------------------------------------------------- */
.tp-specs {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.tp-spec {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.tp-spec-key {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.tp-spec-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Responsive: Tablet ≤ 1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tp-products-grid {
    grid-template-columns: 1fr;
  }

  .tp-about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tp-about-cards {
    grid-template-columns: 1fr;
  }

  .tp-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-objects-grid {
    grid-template-columns: 1fr;
  }

  .tp-reviews-grid {
    grid-template-columns: 1fr;
  }

  .tp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile ≤ 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .tp-products-grid {
    grid-template-columns: 1fr;
  }

  .tp-apps-grid {
    grid-template-columns: 1fr;
  }

  .tp-objects-grid {
    grid-template-columns: 1fr;
  }

  .tp-features-grid {
    grid-template-columns: 1fr;
  }

  .tp-logo {
    width: 130px;
    height: 48px;
  }

  .tp-about-copy h2 {
    font-size: 28px;
  }

  .tp-about-media img,
  .tp-about-banner {
    padding: 16px;
  }

  .tp-spec {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .tp-hero-list li {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   Логотип в хедере — иконка СТИМ + текст ТРАНСПАКИ
   -------------------------------------------------------------------------- */
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Юридические страницы (политика, соглашение, 404)
   -------------------------------------------------------------------------- */
.tp-legal {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink);
}

.tp-legal h1 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.tp-legal-upd {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.tp-legal h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}

.tp-legal p,
.tp-legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.tp-legal p {
  margin: 0 0 14px;
}

.tp-legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.tp-legal li {
  margin-bottom: 8px;
}

.tp-legal a {
  color: var(--accent);
  text-decoration: underline;
}

.tp-legal-back {
  margin-top: 40px;
}

@media (max-width: 640px) {
  .tp-legal h1 {
    font-size: 28px;
  }
}
