:root {
  --guide-plum: #5b3348;
  --guide-paper: #fffdf9;
  --guide-ink: #332722;
}

.guide-page { background: #fffaf5; color: var(--guide-ink); }
.guide-page .site-header { background: rgba(255, 250, 245, .88); }

.guide-breadcrumb {
  display: flex; align-items: center; gap: 9px; padding-top: 24px;
  color: var(--ink-soft); font-size: 13px; font-weight: 700;
}
.guide-breadcrumb a { text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--coral); }

.guide-hero {
  display: grid; grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  gap: clamp(38px, 7vw, 88px); align-items: center; padding-top: 52px; padding-bottom: 58px;
}
.guide-hero-copy h1 {
  max-width: 760px; margin-top: 24px; font-family: 'Literata', Georgia, serif;
  font-size: clamp(42px, 6.2vw, 76px); line-height: .98; letter-spacing: -.045em;
}
.guide-lead { max-width: 700px; margin: 26px 0 0; color: var(--ink-soft); font-size: clamp(18px, 2vw, 22px); line-height: 1.58; }
.guide-hero-action { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 28px; }
.guide-hero-action > span { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--guide-plum); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.guide-meta span + span::before { content: '•'; margin-right: 22px; color: var(--coral); }
.guide-cover { position: relative; margin: 0; }
.guide-cover::before {
  content: ''; position: absolute; inset: 18px -16px -16px 18px; border-radius: 36px;
  background: linear-gradient(135deg, #ffc3ac, #f6a7bd); transform: rotate(1.3deg);
}
.guide-cover img { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-lg); }

.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 720px); justify-content: center; gap: clamp(40px, 7vw, 92px); align-items: start; }
.guide-aside {
  position: sticky; top: 104px; padding: 22px; border: 1px solid rgba(91, 51, 72, .13);
  border-radius: 22px; background: rgba(255, 255, 255, .72); box-shadow: var(--shadow-sm);
}
.guide-aside > span, .section-kicker { color: var(--coral); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.guide-aside p { margin: 12px 0 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.guide-aside .btn { font-size: 13px; padding: 12px 16px; }
.guide-content { min-width: 0; }
.guide-intro { margin: 0 0 56px; font-family: 'Literata', Georgia, serif; font-size: clamp(22px, 3vw, 29px); line-height: 1.5; color: var(--guide-plum); }
.product-bridge {
  margin: 0 0 72px; padding: 30px; border: 1px solid rgba(91, 51, 72, .12);
  border-radius: 28px; background: linear-gradient(145deg, #fff, #fff1ea);
  box-shadow: 0 18px 50px rgba(91, 51, 72, .09);
}
.product-bridge h2 { margin: 10px 0 16px; font-family: 'Literata', Georgia, serif; font-size: clamp(28px, 4vw, 39px); line-height: 1.12; letter-spacing: -.035em; }
.product-bridge > p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.product-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 9px; align-items: center; margin-top: 26px; }
.product-flow > div { min-height: 106px; padding: 15px 13px; border-radius: 17px; background: #fff; box-shadow: 0 6px 18px rgba(91,51,72,.07); }
.product-flow b { display: block; color: var(--guide-plum); font-size: 13px; line-height: 1.3; }
.product-flow span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.product-flow i { color: var(--coral); font-style: normal; font-weight: 900; }
.product-buy-row { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.product-buy-row .btn { flex: 0 0 auto; padding: 13px 19px; font-size: 13px; }
.product-buy-row > span { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.product-buy-row > span b { color: var(--guide-plum); }
.guide-section { margin: 0 0 66px; }
.guide-section h2, .guide-related h2, .guide-cta h2 {
  font-family: 'Literata', Georgia, serif; font-size: clamp(29px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em;
}
.guide-section h2 { margin-bottom: 22px; }
.guide-section h3 { font-family: var(--font); font-size: 17px; line-height: 1.28; letter-spacing: -.01em; }
.guide-section p, .guide-section li { font-size: 17px; line-height: 1.78; }
.guide-section p { margin: 0 0 20px; }
.guide-section strong { color: var(--guide-plum); }

.copy-card {
  position: relative; margin: 26px 0; padding: 28px 28px 24px 34px; overflow: hidden;
  border: 1px solid rgba(91, 51, 72, .12); border-radius: 4px 26px 26px 26px;
  background: var(--guide-paper); box-shadow: 0 12px 35px rgba(91, 51, 72, .08);
}
.copy-card::before { content: '“'; position: absolute; left: 12px; top: -18px; color: rgba(255, 107, 107, .15); font-family: Georgia, serif; font-size: 112px; line-height: 1; }
.copy-card blockquote { position: relative; margin: 0; font-family: 'Literata', Georgia, serif; font-size: 20px; line-height: 1.55; }
.copy-card figcaption { position: relative; margin-top: 13px; color: var(--ink-soft); font-size: 13px; }
.copy-example { margin-top: 18px; padding: 9px 14px; border: 1px solid rgba(91, 51, 72, .15); border-radius: 999px; background: #fff; color: var(--guide-plum); font: 800 12px var(--font); cursor: pointer; }
.copy-example:hover { border-color: var(--coral); color: var(--coral); }
.copy-example:focus-visible, .topic-list a:focus-visible { outline: 3px solid rgba(255, 107, 107, .35); outline-offset: 3px; }

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 25px; }
.decision-grid article { padding: 21px 18px; border: 1px solid rgba(91, 51, 72, .1); border-radius: 20px; background: rgba(255,255,255,.75); }
.decision-grid article > span { display: block; margin-bottom: 10px; color: var(--coral); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.decision-grid article p { margin: 9px 0 0; font-size: 13px; line-height: 1.55; }
.guide-note { margin: 28px 0; padding: 22px 24px; border-left: 4px solid var(--coral); background: #fff0ea; border-radius: 0 18px 18px 0; font-size: 15px; line-height: 1.65; }

.guide-checks { display: grid; gap: 13px; margin: 24px 0 0; padding: 0; list-style: none; }
.guide-checks li { position: relative; padding: 17px 18px 17px 50px; border-radius: 16px; background: rgba(255,255,255,.78); }
.guide-checks li::before { content: '✓'; position: absolute; left: 18px; top: 17px; color: var(--coral); font-weight: 900; }
.story-steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: story; }
.story-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 3px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: story; }
.story-steps li::before { content: counter(story); grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--guide-plum); font-weight: 800; }
.story-steps li span { color: var(--ink-soft); font-size: 14px; }

.topic-list { display: grid; gap: 12px; }
.topic-list a { display: flex; justify-content: space-between; gap: 25px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.topic-list a:hover { transform: translateX(5px); border-color: rgba(255,107,107,.45); }
.topic-list span { color: var(--ink-soft); text-align: right; font-size: 13px; }

.guide-faq details { border-bottom: 1px solid var(--line); }
.guide-faq summary { padding: 22px 2px; cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: '+'; float: right; color: var(--coral); font-size: 22px; }
.guide-faq details[open] summary::after { content: '−'; }
.guide-faq details p { padding: 0 32px 20px 2px; color: var(--ink-soft); font-size: 15px; }

.guide-related { padding-top: 32px; padding-bottom: 80px; }
.guide-related-head { margin-bottom: 25px; }
.guide-related-head h2 { margin-top: 8px; }
.guide-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { display: flex; min-height: 210px; flex-direction: column; padding: 24px; border-radius: 24px; color: #fff; background: var(--guide-plum); text-decoration: none; }
.related-card:nth-child(2) { background: #9d4f5f; }
.related-card:nth-child(3) { background: #b96351; }
.related-card span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.related-card h3 { margin-top: 24px; font-family: 'Literata', Georgia, serif; font-size: 23px; line-height: 1.2; }
.related-card b { margin-top: auto; font-size: 13px; }
.related-card:hover { transform: translateY(-4px); }

.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 76px; padding: 40px 44px; border-radius: 30px; background: linear-gradient(120deg, #ffe0d1, #ffd4df); }
.guide-cta > div > span { color: var(--coral); font: 700 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.guide-cta h2 { max-width: 720px; margin-top: 8px; }
.guide-cta p { margin: 12px 0 0; color: var(--ink-soft); }

.copy-toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 999px; background: var(--guide-plum); color: #fff; font-size: 13px; font-weight: 800; opacity: 0; pointer-events: none; transition: .2s ease; }
.copy-toast.show { transform: translate(-50%, 0); opacity: 1; }
.mobile-create { display: none; }

@media (max-width: 900px) {
  .guide-hero { grid-template-columns: 1fr; padding-top: 38px; }
  .guide-cover { max-width: 720px; }
  .guide-layout { grid-template-columns: minmax(0, 720px); }
  .guide-aside { display: none; }
  .decision-grid { grid-template-columns: 1fr; }
  .guide-related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 170px; }
}
@media (max-width: 680px) {
  .guide-page .nav .link:nth-child(2) { display: none; }
  .guide-page .nav { gap: 12px; }
  .guide-page .nav .btn { padding: 11px 15px; font-size: 12px; }
  .guide-breadcrumb { overflow: hidden; white-space: nowrap; }
  .guide-hero { padding-top: 28px; padding-bottom: 44px; }
  .guide-hero-copy h1 { font-size: clamp(38px, 12vw, 54px); }
  /* На телефоне фотография отнимала почти целый экран до полезного текста.
     Убираем весь блок, а не оставляем пустую рамку или декоративную подложку. */
  .guide-cover { display: none; }
  .guide-meta { display: grid; }
  .guide-meta span + span::before { display: none; }
  .guide-intro { margin-bottom: 45px; }
  .product-bridge { margin-bottom: 54px; padding: 24px 18px; border-radius: 22px; }
  .product-flow { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-flow i { display: none; }
  .product-flow > div { min-height: 92px; }
  .product-buy-row { display: block; }
  .product-buy-row .btn { width: 100%; }
  .product-buy-row > span { display: block; margin-top: 12px; text-align: center; }
  .guide-section { margin-bottom: 52px; }
  .guide-section p, .guide-section li { font-size: 16px; }
  .copy-card { padding: 24px 20px 20px 25px; }
  .copy-card blockquote { font-size: 18px; }
  .topic-list a { display: block; }
  .topic-list span { display: block; margin-top: 7px; text-align: left; }
  .guide-cta { display: block; padding: 30px 24px; }
  .guide-cta .btn { width: 100%; margin-top: 24px; }
  .guide-page { padding-bottom: 74px; }
  .mobile-create {
    display: flex; position: fixed; left: 14px; right: 14px; bottom: 12px; z-index: 80;
    align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #ff9e5e); box-shadow: 0 15px 38px rgba(91,51,72,.3);
    text-decoration: none; font-weight: 800;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-card, .topic-list a, .copy-toast { transition: none; }
}
