/* Phone polish (loaded last): nothing covers Donara's face, everything fits the width, rows read cleanly. */
@media (max-width:640px){
  /* hero: portrait first and clear, certificate below it (overlaps only the bottom edge) */
  .hero{padding:92px 0 40px}
  .hero-title{font-size:clamp(34px,10vw,44px);margin-top:16px}
  .hero-sub{margin-top:14px}
  .hero-cta{margin-top:24px}
  .facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:28px}
  .facts li{min-width:0}
  .facts b{font-size:24px}
  .facts span{font-size:12.5px;line-height:1.3}
  .hero-art{display:flex;flex-direction:column;align-items:center;padding:0;max-width:none;width:100%;margin-top:28px}
  .portrait{width:86%;max-width:360px}
  .hero .cert,.loaded .hero .cert{position:relative;left:auto;bottom:auto;width:88%;max-width:340px;margin-top:-46px;z-index:5}
  .loaded .hero .cert{transform:rotate(-3deg)}
  .cert-title{font-size:19px}
  .tag-a{right:4%;top:14px;font-size:12.5px;padding:8px 12px}
  .tag-b{display:none}
  .o-cap{width:24%;left:2%;top:-14px}
  .o-dip{width:26%;right:0;bottom:auto;top:52%}
  .o-heart{width:13%;right:2%;top:34%}
  .o-star{width:9%;right:12%;top:-10px}
  .o-star2{display:none}
  .hero .ptags{display:none}

  /* chart rows: name + value on one line, bar underneath (long Armenian names fit) */
  .bar{grid-template-columns:1fr auto;grid-template-areas:"name val" "track track";gap:6px 10px}
  .bar-name{grid-area:name;min-width:0}
  .bar-val{grid-area:val}
  .bar-track{grid-area:track}
  .chart-card{gap:22px}

  /* gallery: two columns instead of one very long one */
  .masonry{columns:2;column-gap:10px}
  .masonry .ph{margin-bottom:10px;border-radius:14px}

  /* tidy spacing and decorations */
  .sec{padding:60px 0}
  .head{margin-bottom:28px}
  .film-photos{gap:8px}
  .film-photos img{border-radius:12px}
  .fo-cap{width:72px;left:-4px;top:-56px}
  .fo-medal{width:64px;right:-4px;bottom:-24px}
  .fo-heart{width:58px;top:0}
  .fo-gift{width:72px;right:2%;top:-10px}
  .band{margin:0 6px;border-radius:28px}
  .ai-row{gap:8px}
  .grad-grid{gap:12px}
  .lessons li{grid-template-columns:44px 1fr;gap:12px}
  .lessons::before,.lessons::after{left:19px}
  .lessons .n{width:38px;height:38px;font-size:16px}
  .faq summary{font-size:16.5px;padding:18px 52px 18px 18px}
  .faq details p{padding:0 18px 18px}
  .join-ph{max-width:none}
}
@media (max-width:360px){
  .facts b{font-size:21px}
  .facts span{font-size:11.5px}
  .portrait{width:90%}
  .hero .cert,.loaded .hero .cert{width:94%}
}
