/* 3D mesh page — unique styles for full7.html, based on common proflist.css */

/* HERO */
.hero--mesh3d .hero__inner {
  grid-template-columns: minmax(0, 1fr) 410px;
}

.hero--mesh3d .hero__bg {
  background-position: center right;
}

.mesh3d-panel {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
}

.mesh3d-panel h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.mesh3d-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mesh3d-panel__item {
  padding: 15px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.mesh3d-panel__item b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold2);
  font-size: 14px;
}

.mesh3d-panel__item span {
  font-weight: 800;
}

/* COMMON */
.mesh-section {
  padding: 48px 0;
}

.mesh-light {
  background: #fff;
  color: var(--text);
}

.mesh-dark {
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    radial-gradient(circle at 80% 0, #173a55 0, #071523 56%, #050f1a 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.mesh-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(240,173,85,.16);
  color: #9b5f1f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mesh-dark .mesh-eyebrow {
  color: var(--gold2);
}

.mesh-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 900;
}

.mesh-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.mesh-dark .mesh-lead {
  color: rgba(255,255,255,.78);
}

/* PURPOSE */
.mesh-purpose {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  align-items: stretch;
}

.mesh-purpose__left {
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(7,21,35,.08);
}

.mesh-purpose__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mesh-purpose-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 20px;
  background: #f7f9fb;
  border: 1px solid var(--line);
}

.mesh-purpose-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,21,35,.02), rgba(7,21,35,.42));
}

.mesh-purpose-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mesh-purpose-card__content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.mesh-purpose-card__content h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.mesh-purpose-card__content p {
  margin: 0;
  color: rgba(255,255,255,.9);
}

/* PANEL / SPEC — compact version */
.mesh-spec {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.mesh-spec__scheme {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}

.mesh-wire {
  position: relative;
  height: 205px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
}

.mesh-wire::before {
  content: "";
  position: absolute;
  inset: 22px 28px;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,.84) 30px 33px),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(255,255,255,.55) 48px 51px);
}

.mesh-wire::after {
  content: "V-образные рёбра жёсткости";
  position: absolute;
  left: 26px;
  bottom: 18px;
  color: var(--gold2);
  font-size: 14px;
  font-weight: 900;
}

.mesh-spec__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mesh-spec-card {
  min-height: 118px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
}

.mesh-spec-card b {
  display: block;
  margin-bottom: 8px;
  color: var(--gold2);
  font-size: 24px;
  line-height: 1;
}

.mesh-spec-card span {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.mesh-spec-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.42;
}

/* KIT + COLORS — merged block */
.mesh-kit {
  padding: 56px 0;
  background: #fff;
}

.mesh-kit__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.mesh-kit__head span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff1dc;
  color: #9b5f1f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mesh-kit__head h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 900;
}

.mesh-kit__head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.mesh-kit__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mesh-kit__cards div {
  min-height: 188px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(7,21,35,.08);
}

.mesh-kit__cards .is-dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.mesh-kit__cards i {
  display: block;
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
  font-style: normal;
  margin-bottom: 18px;
}

.mesh-kit__cards h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.mesh-kit__cards p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.mesh-kit__cards .is-dark p {
  color: rgba(255,255,255,.75);
}

.mesh-kit__colors {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mesh-color {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 28px rgba(7,21,35,.08);
}

.mesh-color span {
  display: block;
  height: 72px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0, rgba(255,255,255,.10) 6px, transparent 6px, transparent 18px);
}

.mesh-color b,
.mesh-color small {
  display: block;
  padding: 0 16px;
}

.mesh-color b {
  padding-top: 14px;
  color: var(--text);
}

.mesh-color small {
  padding-bottom: 16px;
  color: var(--muted);
}

/* Backward compatibility: if old HTML classes remain */
.mesh-kit-card {
  min-height: 188px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(7,21,35,.08);
}

.mesh-kit-card--accent {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.mesh-kit-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mesh-kit-card p {
  color: var(--muted);
}

.mesh-kit-card--accent p {
  color: rgba(255,255,255,.75);
}

.mesh-colors-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.mesh-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ROUTE */
.mesh-route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mesh-route div {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
}

.mesh-route b {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gold);
  color: #111;
  font-size: 18px;
}

.mesh-route h3 {
  color: #fff;
  font-size: 20px;
}

.mesh-route p {
  margin: 0;
  color: rgba(255,255,255,.72);
}

/* CHOICE */
.mesh-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mesh-choice-card {
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(7,21,35,.08);
}

.mesh-choice-card strong {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1dc;
  color: #9b5f1f;
  font-size: 12px;
  text-transform: uppercase;
}

.mesh-choice-card h3 {
  font-size: 22px;
}

.mesh-choice-card p {
  color: var(--muted);
}

.mesh-choice-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.mesh-choice-card li {
  position: relative;
  margin: 8px 0;
  padding-left: 22px;
}

.mesh-choice-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

/* SEO */
.mesh-seo {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
}

.mesh-seo p {
  color: rgba(255,255,255,.78);
  font-size: 16px;
}

.mesh-seo p:last-child {
  margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero--mesh3d .hero__inner,
  .mesh-purpose,
  .mesh-spec,
  .mesh-kit__grid,
  .mesh-colors-layout,
  .mesh-seo {
    grid-template-columns: 1fr;
  }

  .mesh-purpose__grid,
  .mesh-spec__items,
  .mesh-kit__cards,
  .mesh-kit__colors,
  .mesh-color-grid,
  .mesh-route,
  .mesh-choice {
    grid-template-columns: repeat(2, 1fr);
  }

  .mesh-kit__colors {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .mesh-section,
  .mesh-kit {
    padding: 36px 0;
  }

  .mesh3d-panel__grid,
  .mesh-purpose__grid,
  .mesh-spec__items,
  .mesh-kit__cards,
  .mesh-kit__colors,
  .mesh-color-grid,
  .mesh-route,
  .mesh-choice {
    grid-template-columns: 1fr;
  }

  .mesh-title,
  .mesh-kit__head h2 {
    font-size: 25px;
  }

  .mesh-wire {
    height: 170px;
  }

  .mesh-wire::before {
    inset: 20px;
    background:
      repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,.84) 24px 27px),
      repeating-linear-gradient(0deg, transparent 0 42px, rgba(255,255,255,.55) 42px 45px);
  }

  .mesh-purpose__left,
  .mesh-spec__scheme,
  .mesh-kit__cards div,
  .mesh-kit-card,
  .mesh-choice-card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .mesh3d-panel {
    padding: 18px;
  }

  .mesh-purpose-card {
    min-height: 145px;
  }

  .mesh-wire {
    height: 145px;
  }
}
