/* ISAEV — Product page template */

/* ─── BREADCRUMBS — на мобильном скрываем (визуальный шум). На desktop — ненавязчиво. ─── */
.breadcrumbs {
  display: none;  /* скрыто по умолчанию */
}
@media (min-width: 980px) {
  .breadcrumbs {
    display: block;
    padding: 76px var(--gutter) 0;
    max-width: var(--container);
    margin: 0 auto;
  }
  .breadcrumbs ol {
    display: flex; gap: 8px; flex-wrap: wrap;
    list-style: none;
    font-size: 12px; font-weight: 400;
    color: var(--gray-light);
  }
  .breadcrumbs li::after {
    content: '/';
    margin-left: 8px;
    color: var(--gray-light);
    opacity: .5;
  }
  .breadcrumbs li:last-child::after { content: none; }
  .breadcrumbs a {
    color: var(--gray); text-decoration: none;
    transition: color var(--dur-fast);
  }
  .breadcrumbs a:hover { color: var(--blue); }
  .breadcrumbs li:last-child { color: var(--black); }
}

/* ─── PRODUCT HERO ─── */
.product-hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: 80vh;
  align-items: center;
}
.product-hero .ph-visual {
  background: var(--isaev-linen);
  height: 100%; min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-hero .ph-visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.product-hero .ph-visual .ph-placeholder {
  color: var(--gray-light); font-size: 14px;
  font-style: italic;
  text-align: center;
}
.product-hero .ph-copy {
  padding: 80px clamp(28px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
.ph-tag {
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.ph-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  color: var(--black);
  margin-bottom: 12px;
}
.ph-subtitle {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--blue); margin-bottom: 32px;
}
.ph-lede {
  font-size: 19px; font-weight: 400;
  color: var(--gray); line-height: 1.7;
  max-width: 480px; margin-bottom: 40px;
}
.ph-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ph-price-note {
  font-size: 12px; color: var(--gray-light);
  letter-spacing: .04em;
  margin-top: 18px;
}

/* ─── PRODUCT MANIFEST ─── */
.p-manifest {
  background: var(--white);
  padding: var(--section-pad-y) var(--gutter);
  text-align: center;
}
.p-manifest blockquote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.3;
  color: var(--black);
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.p-manifest blockquote em {
  font-style: italic; color: var(--blue);
}
.p-manifest .p-manifest-body {
  font-size: 17px; font-weight: 400;
  color: var(--gray); line-height: 1.75;
  max-width: var(--container-text);
  margin: 36px auto 0;
}

/* ─── SCENARIOS ─── */
.p-scenarios {
  background: var(--white);
  padding: var(--section-pad-y) var(--gutter);
  border-top: 1px solid var(--divider);
}
.scenarios-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--container); margin: 56px auto 0;
}
.scenario {
  background: var(--isaev-fog);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-mid) var(--ease-out);
}
.scenario:hover { transform: translateY(-4px); }
.scenario .s-img {
  aspect-ratio: 4 / 3;
  background: var(--isaev-blue-mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light); font-size: 13px; font-style: italic;
  overflow: hidden;
}
.scenario .s-img img { width: 100%; height: 100%; object-fit: cover; }
.scenario .s-body { padding: 28px 32px 32px; }
.scenario .s-tag {
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.scenario h3 {
  font-family: var(--font-serif);
  font-weight: 400; font-size: 26px;
  color: var(--black); margin-bottom: 10px;
  line-height: 1.2;
}
.scenario p {
  font-size: 15px; font-weight: 400;
  color: var(--gray); line-height: 1.65;
}

/* ─── UGC VIDEO BLOCK ─── */
.p-ugc {
  background: var(--isaev-dark);
  padding: var(--section-pad-y) var(--gutter);
  color: #F5F5F7;
}
.p-ugc .section-head h2 { color: #F5F5F7; }
.p-ugc .section-head p { color: rgba(255,255,255,.5); }
.ugc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--container); margin: 48px auto 0;
}
.ugc-item {
  aspect-ratio: 9 / 16;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: 13px; font-style: italic;
  position: relative;
}
.ugc-item video { width: 100%; height: 100%; object-fit: cover; }
.ugc-item iframe { width: 100%; height: 100%; border: 0; }
.ugc-item .ugc-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-size: 13px; color: #F5F5F7; font-style: normal;
}

/* ─── QUIET SPECS ─── */
.p-specs {
  background: var(--white);
  padding: var(--section-pad-y) var(--gutter);
  border-top: 1px solid var(--divider);
}
.specs-list {
  max-width: var(--container-narrow);
  margin: 56px auto 0;
  display: grid; gap: 0;
}
.spec-item {
  display: grid; grid-template-columns: 1.2fr 2fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--divider);
  align-items: baseline;
}
.spec-item:last-child { border-bottom: none; }
.spec-item dt {
  font-family: var(--font-serif);
  font-weight: 400; font-size: 22px;
  color: var(--black);
}
.spec-item dd {
  font-size: 16px; font-weight: 400;
  color: var(--gray); line-height: 1.7;
}

/* ─── INSIDE THE BOX ─── */
.p-box {
  background: var(--isaev-linen);
  padding: var(--section-pad-y) var(--gutter);
}
.box-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container); margin: 48px auto 0;
}
.box-item { text-align: center; }
.box-item .b-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--isaev-stone);
}
.box-item h4 {
  font-family: var(--font-serif);
  font-weight: 400; font-size: 20px;
  color: var(--black); margin-bottom: 8px;
}
.box-item p {
  font-size: 14px; font-weight: 400;
  color: var(--gray); line-height: 1.6;
}
.box-quote {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  text-align: center;
  color: var(--black);
  max-width: var(--container-text);
  margin: 60px auto 0;
}

/* ─── CROSS-SELL ─── */
.p-crosssell {
  background: var(--white);
  padding: var(--section-pad-y) var(--gutter);
  border-top: 1px solid var(--divider);
}
.cross-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--container); margin: 48px auto 0;
}
.cross-card {
  background: var(--isaev-fog);
  border-radius: var(--radius-md);
  padding: 56px 48px;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: background var(--dur-fast), transform var(--dur-mid) var(--ease-out);
}
.cross-card:hover {
  background: var(--blue-mist);
  transform: translateY(-4px);
}
.cross-card .c-tag {
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.cross-card h3 {
  font-family: var(--font-serif);
  font-weight: 400; font-size: 32px;
  color: var(--black); margin-bottom: 10px;
}
.cross-card p {
  font-size: 15px; font-weight: 400;
  color: var(--gray); line-height: 1.65;
}

/* ─── FINAL CTA ON PRODUCT PAGE ─── */
.p-final-cta {
  background: var(--isaev-dark);
  padding: var(--section-pad-y) var(--gutter);
  text-align: center;
  color: #F5F5F7;
  position: relative; overflow: hidden;
}
.p-final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(59,109,200,.18) 0%, transparent 70%);
}
.p-final-cta h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  max-width: 700px; margin: 0 auto 22px;
  position: relative;
}
.p-final-cta h2 em { font-style: italic; color: #a8c4f0; }
.p-final-cta p {
  font-size: 17px; font-weight: 400;
  color: rgba(255,255,255,.55);
  max-width: 480px; margin: 0 auto 40px;
  position: relative;
}
.p-final-cta .ph-cta { justify-content: center; position: relative; }

/* ─── STICKY MOBILE CTA — плавающая кнопка без обёртки-фона ─── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  z-index: 100;
  pointer-events: none;  /* фон-зона не перехватывает клики */
}
.sticky-cta a {
  display: block; text-align: center;
  padding: 16px 24px;
  background: var(--blue); color: #F5F5F7;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 16px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.12);
  pointer-events: auto;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.sticky-cta a:hover { background: var(--blue-dark); transform: translateY(-1px); }
.sticky-cta a:active { transform: translateY(0); }

/* ─── FAQ ─── */
.p-faq {
  padding: var(--section-pad-y) var(--gutter);
  max-width: 880px;
  margin: 0 auto;
}
.p-faq .section-head {
  text-align: center;
  margin-bottom: 56px;
}
.p-faq h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 12px;
  text-wrap: balance;
}
.p-faq .section-head p {
  color: var(--ink-light);
  font-size: 17px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-top: 1px solid var(--divider);
  padding: 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--divider);
}
.faq-item summary {
  cursor: pointer;
  padding: 24px 4px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color var(--dur-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  transition: transform var(--dur-mid) var(--ease-apple);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--blue); }
.faq-item .faq-body {
  padding: 0 4px 28px;
  color: var(--ink-light);
  font-size: 16px;
  line-height: 1.65;
  max-width: 720px;
  text-wrap: pretty;
}
.faq-item .faq-body p:first-child { margin-top: 0; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-hero .ph-visual { min-height: 380px; }
  .product-hero .ph-copy { padding: 56px 28px; }
  .scenarios-grid { grid-template-columns: 1fr; max-width: 520px; }
  .ugc-grid { grid-template-columns: repeat(2, 1fr); }
  .box-grid { grid-template-columns: repeat(2, 1fr); }
  .cross-grid { grid-template-columns: 1fr; max-width: 520px; }
  .spec-item { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  .ugc-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .box-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .sticky-cta { display: block; }
  /* Body получает запас снизу — чтобы плавающая кнопка не наезжала на footer */
  body { padding-bottom: 96px; }
}
