/* Artamonov & Partners v154 — final visual/editorial pass.
   Loaded last. This layer deliberately neutralises the legacy mobile hero/footer/review rules. */
html{overflow-x:clip}
body[data-v154="true"]{min-width:0!important;overflow-x:clip!important}
body[data-v154="true"] *{box-sizing:border-box}
body[data-v154="true"] .button,
body[data-v154="true"] button,
body[data-v154="true"] a{overflow-wrap:break-word}
body[data-v154="true"] .button{white-space:normal!important;text-align:center!important;line-height:1.18!important;min-width:0!important}

/* ---------- Mobile header + hero: one readable first screen ---------- */
@media (max-width:768px){
  body[data-v154="true"] .site-header-v51{position:sticky!important;top:0!important;z-index:90!important}
  body[data-v154="true"] .site-header-v51 .header51-shell{padding:7px 9px!important}
  body[data-v154="true"] .site-header-v51 .header51-top{min-height:68px!important;padding:0 8px!important;gap:8px!important;border-radius:20px!important}
  body[data-v154="true"] .site-header-v51 .brand-v27{min-width:0!important;flex:1 1 auto!important}
  body[data-v154="true"] .site-header-v51 .brand-v27 img{width:174px!important;height:auto!important;max-height:50px!important;object-fit:contain!important}
  body[data-v154="true"] .site-header-v51 .brand-v27>span{display:none!important}
  body[data-v154="true"] .site-header-v51 .header51-actions{gap:5px!important;flex:0 0 auto!important}
  body[data-v154="true"] .site-header-v51 .header51-call-mobile,
  body[data-v154="true"] .site-header-v51 .menu-toggle{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border-radius:15px!important}
  body[data-v154="true"] .site-header-v51 .header51-call-mobile svg{width:22px!important;height:22px!important}

  body[data-v154="true"] #top{
    position:relative!important;
    height:calc(100svh - 82px)!important;
    min-height:520px!important;
    max-height:none!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
    background:#f8f1e7!important;
    isolation:isolate!important;
  }
  @supports(height:100dvh){body[data-v154="true"] #top{height:calc(100dvh - 82px)!important}}
  body[data-v154="true"] #top .hero-media-v57{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;overflow:hidden!important;z-index:0!important;
  }
  body[data-v154="true"] #top .hero-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden!important}
  body[data-v154="true"] #top .hero-photo img{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;
    object-fit:cover!important;object-position:center center!important;transform:none!important;transform-origin:center!important;
    filter:saturate(1.02) contrast(1.01)!important;
  }
  body[data-v154="true"] #top .hero-wash{
    display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:1!important;
    background:
      linear-gradient(90deg,rgba(252,249,244,.995) 0%,rgba(252,249,244,.95) 30%,rgba(252,249,244,.66) 49%,rgba(252,249,244,.20) 66%,rgba(252,249,244,0) 81%),
      linear-gradient(180deg,rgba(252,249,244,0) 0%,rgba(252,249,244,0) 62%,rgba(252,249,244,.20) 78%,rgba(252,249,244,.72) 100%)!important;
    pointer-events:none!important;
  }
  body[data-v154="true"] #top .hero-mobile-badge-v111{display:none!important}
  body[data-v154="true"] #top .hero-content{
    position:relative!important;z-index:3!important;width:min(calc(100% - 28px),var(--container))!important;height:100%!important;min-height:0!important;
    margin-inline:auto!important;padding:16px 0 14px!important;display:flex!important;align-items:stretch!important;background:transparent!important;
  }
  body[data-v154="true"] #top .hero-copy{
    position:relative!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;padding:0!important;margin:0!important;
    transform:none!important;filter:none!important;display:flex!important;isolation:isolate!important;
  }
  body[data-v154="true"] #top .hero-copy::before{
    content:""!important;display:block!important;position:absolute!important;z-index:0!important;pointer-events:none!important;
    left:-18px!important;top:-10px!important;width:min(77vw,315px)!important;height:61%!important;border:0!important;border-radius:0!important;
    background:radial-gradient(ellipse at 33% 28%,rgba(255,255,255,.99) 0%,rgba(255,253,249,.89) 47%,rgba(255,253,249,.42) 70%,rgba(255,253,249,0) 100%)!important;
    filter:blur(3px)!important;
  }
  body[data-v154="true"] #top .hero-copy>*{position:relative!important;z-index:1!important}
  body[data-v154="true"] #top .hero-text-v64{width:100%!important;height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important}
  body[data-v154="true"] #top .hero-top-v151{position:static!important;left:auto!important;top:auto!important;width:61%!important;max-width:238px!important;margin:0!important;z-index:auto!important}
  body[data-v154="true"] #top .hero-kicker-v63{display:block!important;margin:0 0 7px!important;font-size:10.5px!important;line-height:1.22!important;letter-spacing:.06em!important;color:#7f4e18!important;font-weight:800!important}
  body[data-v154="true"] #top .hero-copy h1{margin:0!important;max-width:none!important;font-size:clamp(29px,7.8vw,33px)!important;line-height:.99!important;letter-spacing:-.043em!important;color:#102541!important;text-wrap:balance!important}
  body[data-v154="true"] #top .hero-copy h1 .hero-gold-tail{display:block!important;margin-top:9px!important;max-width:235px!important;font-size:clamp(17px,4.6vw,19px)!important;line-height:1.08!important;letter-spacing:-.02em!important;color:#a9651f!important;text-shadow:0 1px 0 rgba(255,255,255,.86)!important}
  body[data-v154="true"] #top .hero-bottom-v151{
    position:static!important;z-index:auto!important;margin:auto 0 0!important;padding:0!important;width:100%!important;border:0!important;border-radius:0!important;
    background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;display:block!important;
  }
  body[data-v154="true"] #top .hero-lead-v89{
    position:relative!important;max-width:78%!important;margin:0 0 11px!important;padding:0!important;display:block!important;transform:none!important;
  }
  body[data-v154="true"] #top .hero-lead-v89::before{
    content:""!important;position:absolute!important;z-index:-1!important;left:-16px!important;right:auto!important;top:-12px!important;bottom:-12px!important;width:calc(100% + 40px)!important;height:auto!important;
    background:radial-gradient(ellipse at 30% 55%,rgba(255,254,251,.98) 0%,rgba(255,254,251,.90) 52%,rgba(255,254,251,.42) 77%,rgba(255,254,251,0) 100%)!important;border:0!important;border-radius:0!important;
  }
  body[data-v154="true"] #top .hero-lead-v89 strong{display:block!important;max-width:none!important;margin:0!important;color:#173451!important;font-size:13.6px!important;line-height:1.38!important;font-weight:700!important;text-shadow:0 1px 12px rgba(255,255,255,.88)!important}
  body[data-v154="true"] #top .hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body[data-v154="true"] #top .hero-actions .button{width:100%!important;min-height:47px!important;height:auto!important;padding:10px 13px!important;border-radius:14px!important;font-size:13.2px!important;gap:8px!important}
  body[data-v154="true"] #top .hero-message-v100{background:rgba(255,255,255,.92)!important;backdrop-filter:none!important}
}
@media (max-width:390px){
  body[data-v154="true"] .site-header-v51 .brand-v27 img{width:166px!important}
  body[data-v154="true"] #top .hero-content{width:calc(100% - 26px)!important;padding-top:14px!important;padding-bottom:12px!important}
  body[data-v154="true"] #top .hero-top-v151{width:62%!important;max-width:218px!important}
  body[data-v154="true"] #top .hero-copy h1{font-size:29px!important}
  body[data-v154="true"] #top .hero-copy h1 .hero-gold-tail{font-size:17px!important;max-width:210px!important}
  body[data-v154="true"] #top .hero-lead-v89{max-width:82%!important}
}
@media (max-width:360px){
  body[data-v154="true"] .site-header-v51 .header51-top{min-height:64px!important;padding-inline:5px!important}
  body[data-v154="true"] .site-header-v51 .brand-v27 img{width:154px!important}
  body[data-v154="true"] .site-header-v51 .header51-call-mobile,
  body[data-v154="true"] .site-header-v51 .menu-toggle{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  body[data-v154="true"] #top{height:calc(100svh - 76px)!important;min-height:492px!important}
  @supports(height:100dvh){body[data-v154="true"] #top{height:calc(100dvh - 76px)!important}}
  body[data-v154="true"] #top .hero-top-v151{max-width:202px!important}
  body[data-v154="true"] #top .hero-kicker-v63{font-size:9.7px!important;margin-bottom:6px!important}
  body[data-v154="true"] #top .hero-copy h1{font-size:27px!important}
  body[data-v154="true"] #top .hero-copy h1 .hero-gold-tail{font-size:15.9px!important;max-width:198px!important;margin-top:7px!important}
  body[data-v154="true"] #top .hero-lead-v89 strong{font-size:12.8px!important;line-height:1.34!important}
  body[data-v154="true"] #top .hero-actions{gap:6px!important}
  body[data-v154="true"] #top .hero-actions .button{min-height:44px!important;padding:8px 11px!important;font-size:12.5px!important}
}
@media (max-width:430px) and (max-height:650px){
  body[data-v154="true"] #top .hero-content{padding-top:9px!important;padding-bottom:9px!important}
  body[data-v154="true"] #top .hero-kicker-v63{font-size:9.3px!important;margin-bottom:5px!important}
  body[data-v154="true"] #top .hero-copy h1{font-size:26px!important}
  body[data-v154="true"] #top .hero-copy h1 .hero-gold-tail{font-size:15.2px!important;margin-top:6px!important;max-width:194px!important}
  body[data-v154="true"] #top .hero-lead-v89{margin-bottom:7px!important;max-width:83%!important}
  body[data-v154="true"] #top .hero-lead-v89 strong{font-size:12px!important;line-height:1.3!important}
  body[data-v154="true"] #top .hero-actions{gap:5px!important}
  body[data-v154="true"] #top .hero-actions .button{min-height:41px!important;padding:7px 10px!important;font-size:12px!important}
}

/* Proof line: longer attribution stays readable */
@media (max-width:768px){
  body[data-v154="true"] .trust-grid-v74 article span{min-height:0!important;max-width:none!important;overflow-wrap:normal!important}
  body[data-v154="true"] .trust-grid-v74 .trust-money-v74 span{font-size:10.8px!important;line-height:1.24!important}
}

/* ---------- Reviews: visually zoom the portraits out and protect heads ---------- */
body[data-v154="true"] #reviews .review-card-v49 figure{background:#eee5d8!important}
body[data-v154="true"] #reviews .review-card-v49 figure img{object-position:center 12%!important;transform:scale(.96)!important;transform-origin:center center!important;border-radius:12px!important}
@media (max-width:768px){
  body[data-v154="true"] #reviews .review-card-v49 figure,
  body[data-v154="true"] #reviews .review-card-v49 .review-photo-placeholder-v49{height:230px!important;min-height:230px!important;padding:8px!important;border-radius:18px 18px 0 0!important;overflow:hidden!important}
  body[data-v154="true"] #reviews .review-card-v49 figure img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 9%!important;transform:scale(.92)!important;border-radius:12px!important}
  body[data-v154="true"] #reviews .review-card-v49 .review-photo-placeholder-v49{padding:18px!important}
}
@media (max-width:360px){
  body[data-v154="true"] #reviews .review-card-v49 figure,
  body[data-v154="true"] #reviews .review-card-v49 .review-photo-placeholder-v49{height:216px!important;min-height:216px!important}
}

/* ---------- Quiz result: human tone + readable action ---------- */
body[data-v154="true"] #quiz .quiz-result-focus-v154{max-width:650px!important;margin:3px auto 0!important;padding:10px 13px!important;border:1px solid #ead4b2!important;border-radius:12px!important;background:#fff7ea!important;color:#6d512f!important;font-size:13px!important;line-height:1.45!important;text-align:left!important}
body[data-v154="true"] #quiz .quiz-result-focus-v154[hidden]{display:none!important}
body[data-v154="true"] #quiz .quiz-price-v153 [data-quiz-price-main]{overflow-wrap:anywhere!important}
@media (max-width:768px){
  body[data-v154="true"] #quiz .quiz-result-head-v153{margin-bottom:16px!important}
  body[data-v154="true"] #quiz .quiz-result-head-v153 h3{font-size:26px!important;line-height:1.13!important}
  body[data-v154="true"] #quiz .quiz-result-lead-v153{font-size:13.4px!important;line-height:1.48!important}
  body[data-v154="true"] #quiz .quiz-result-focus-v154{font-size:13px!important;padding:10px 11px!important}
  body[data-v154="true"] #quiz .quiz-result-layout-v153{gap:14px!important}
  body[data-v154="true"] #quiz .quiz-result-panel-v153{padding:15px!important}
  body[data-v154="true"] #quiz .quiz-result-panel-v153 li,
  body[data-v154="true"] #quiz .quiz-result-steps-v153 li{font-size:13.5px!important;line-height:1.47!important}
  body[data-v154="true"] #quiz .quiz-result-messengers-v153 .quiz-contact-actions-v137{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body[data-v154="true"] #quiz .quiz-result-messengers-v153 .quiz-contact-actions-v137>a:nth-child(3){grid-column:1/-1!important;width:calc(50% - 4px)!important;justify-self:center!important}
  body[data-v154="true"] #quiz .quiz-result-messengers-v153 .button{min-height:48px!important;padding:8px 9px!important;font-size:12.2px!important;gap:7px!important}
  body[data-v154="true"] #quiz .quiz-result-messengers-v153 .button-icon-v100{width:24px!important;height:24px!important;flex-basis:24px!important}
  body[data-v154="true"] #quiz .quiz-lead-form-v153 h4{font-size:18px!important;line-height:1.2!important}
  body[data-v154="true"] #quiz .quiz-lead-form-v153>p{font-size:12.2px!important}
}

/* ---------- Debts: compact on phones instead of nine tall cards ---------- */
@media (max-width:768px){
  body[data-v154="true"] #debts .debt51-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;scroll-snap-type:none!important}
  body[data-v154="true"] #debts .debt51-card,
  body[data-v154="true"] #debts .debt51-card:nth-child(n),
  body[data-v154="true"] #debts .debt51-card:last-child{
    position:relative!important;display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;grid-template-rows:1fr!important;align-items:center!important;
    min-width:0!important;width:100%!important;min-height:88px!important;height:auto!important;margin:0!important;padding:10px!important;border-radius:15px!important;overflow:hidden!important;
  }
  body[data-v154="true"] #debts .debt51-card>img,
  body[data-v154="true"] #debts .debt51-card:nth-child(n)>img,
  body[data-v154="true"] #debts .debt51-card:last-child>img{
    display:block!important;grid-column:1!important;grid-row:1!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;opacity:1!important;visibility:visible!important;object-fit:contain!important;transform:none!important;
  }
  body[data-v154="true"] #debts .debt51-card:last-child::before{display:none!important;content:none!important}
  body[data-v154="true"] #debts .debt51-card>div,
  body[data-v154="true"] #debts .debt51-card:nth-child(n)>div,
  body[data-v154="true"] #debts .debt51-card:last-child>div{grid-column:2!important;grid-row:1!important;align-self:center!important;padding:0 0 0 8px!important;margin:0!important}
  body[data-v154="true"] #debts .debt51-card h3{margin:0!important;font-size:14.2px!important;line-height:1.18!important}
  body[data-v154="true"] #debts .debt51-card p{display:none!important}
}
@media (max-width:350px){
  body[data-v154="true"] #debts .debt51-card,
  body[data-v154="true"] #debts .debt51-card:nth-child(n),
  body[data-v154="true"] #debts .debt51-card:last-child{grid-template-columns:40px minmax(0,1fr)!important;min-height:82px!important;padding:8px!important}
  body[data-v154="true"] #debts .debt51-card>img,
  body[data-v154="true"] #debts .debt51-card:nth-child(n)>img,
  body[data-v154="true"] #debts .debt51-card:last-child>img{width:38px!important;height:38px!important;min-height:38px!important}
  body[data-v154="true"] #debts .debt51-card h3{font-size:13.2px!important}
}

/* ---------- Footer: no label can leave its card ---------- */
@media (max-width:768px){
  body[data-v154="true"] .site-footer .footer-brand-v59{padding:14px 12px!important}
  body[data-v154="true"] .site-footer .footer-socials-v98{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;max-width:100%!important;margin-top:11px!important}
  body[data-v154="true"] .site-footer .footer-socials-v98 .messenger-chip{
    min-width:0!important;width:100%!important;min-height:78px!important;height:auto!important;padding:8px 5px!important;border-radius:16px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;text-align:center!important;overflow:hidden!important;
  }
  body[data-v154="true"] .site-footer .footer-socials-v98 .messenger-icon-v88{width:35px!important;height:35px!important;min-width:35px!important;flex:0 0 35px!important;display:grid!important;place-items:center!important}
  body[data-v154="true"] .site-footer .footer-socials-v98 .messenger-icon-v88 img{width:31px!important;height:31px!important;max-width:31px!important;max-height:31px!important;transform:none!important;object-fit:contain!important}
  body[data-v154="true"] .site-footer .footer-socials-v98 .messenger-chip>span:last-child{display:block!important;min-width:0!important;width:100%!important;font-size:12.7px!important;line-height:1.12!important;font-weight:750!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;text-align:center!important}
  body[data-v154="true"] .site-footer .footer-mobile-links-v75 details>div{display:grid!important;gap:9px!important}
  body[data-v154="true"] .site-footer .footer-mobile-links-v75 details>div>span,
  body[data-v154="true"] .site-footer .footer-mobile-links-v75 details>div>strong{color:rgba(255,255,255,.78)!important;font-size:12.5px!important;line-height:1.45!important}
  body[data-v154="true"] .site-footer .footer-ad-warning-v59 p{color:rgba(255,255,255,.72)!important;font-size:12.4px!important;line-height:1.5!important}
}

/* ---------- Misc mobile resilience ---------- */
@media (max-width:768px){
  body[data-v154="true"] .button-phone-v98,
  body[data-v154="true"] #contacts .final-actions .button{min-width:0!important;max-width:100%!important;white-space:normal!important}
  body[data-v154="true"] .contact-picker-grid-v100 .contact-channel-whatsapp-v153{min-width:0!important}
}
