/* v470 — = panwa-cards.v445.css; headings never split a word into syllables, the home hero fits whole words. */

/* Card photos keep their ratio: the HTML height attribute no longer stretches them */
.panwa-related > img,
.panwa .panwa-related__link > img {
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Focus on the person in each existing photo */
.panwa-related img[src*="panwa-13"] { object-position: 66% 50% !important; }
.panwa-related img[src*="panwa-05"] { object-position: 28% 62% !important; }
.panwa-related img[src*="panwa-12"] { object-position: 40% 35% !important; }
.panwa-related img[src*="panwa-02"] { object-position: 50% 45% !important; }

/* Headings never split words into syllables (v445 did it in RU and ES); a word wider than its box still wraps. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }

/* Home hero: each phrase of the line starts on its own row in RU, EN and ES; the text starts under the logo */
.hero--editorial .hero__copy h1 { max-width: 11.7em; font-size: clamp(1.5rem, 7.6vw, 3.4rem); line-height: 1.1; }
html[lang="es"] .hero--editorial .hero__copy h1 { max-width: 9.6em; font-size: clamp(1.85rem, 9.2vw, 3.6rem); }
html[lang="en"] .hero--editorial .hero__copy h1 { max-width: 8.6em; font-size: clamp(2.1rem, 10.4vw, 4.2rem); line-height: 1.04; }
@media (min-width: 960px) {
  .hero--editorial .container { padding-left: clamp(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem), 124px); }
  .hero--editorial .hero__copy h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
  html[lang="es"] .hero--editorial .hero__copy h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
  html[lang="en"] .hero--editorial .hero__copy h1 { font-size: clamp(2.35rem, 4.4vw, 4rem); }
}

/* Panwa: four narrow cards on a small laptop, long Russian words stay whole */
@media (min-width: 1000px) and (max-width: 1199px) { .panwa-day h3, .panwa-cards--four h3 { font-size: 1.15rem; } }

/* 200-hour page on the narrowest phones: the price card stays inside the screen */
@media (max-width: 340px) { .ttc-price-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 480px) {
  #ed387-title, .panwa-section h2 { font-size: clamp(1.75rem, 8.6vw, 2.4rem); line-height: 1.15; }
  .tr-card h3, .panwa-related h3 { font-size: clamp(1.4rem, 7.2vw, 1.9rem); line-height: 1.2; }
  .panwa-related > img,
  .panwa .panwa-related__link > img { aspect-ratio: 16 / 10; }
}
