/* GALINA V17.10 — mobile typography, spacing, and compact calendar dock.
   Overrides V17.8/V17.9 intentionally. Does not alter calculators, prices, orders, or Tilda links. */

/* Every word stays intact. Text may wrap BETWEEN words; no inserted hyphens. */
html, body, body *:not(script):not(style) {
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
}
/* Long technical addresses/URLs remain breakable to avoid horizontal scrolling. */
a[href^="mailto:"], a[href^="http"]:not(.btn):not(.btn-dark):not(.btn-outline):not(.btn-gold) {
  overflow-wrap: anywhere !important;
}

@media (max-width: 720px) {
  /* Restrained, readable editorial hierarchy; prevents mid-word splits. */
  :is(main, section, article) h1:not(.screen-reader-only),
  :is(main, section, article) h2:not(.screen-reader-only),
  .pr-hero h1, .tr-hero h1, .sales-hero h1,
  .service-bridge-head h2, .ga-intro-column h2,
  .v10-section h2, .pr-section h2, .tr-section h2,
  .sales-section h2, .ga-price-teaser h2,
  .ga-v176-hero h1, .ga-v178-catalog-page main h1,
  .ga-v178-catalog-page main h2 {
    font-size: clamp(29px, 7.5vw, 38px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    max-width: 100% !important;
    text-wrap: balance;
    -webkit-hyphens: none !important;
    hyphens: none !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  /* Large decorative hero statements should not dominate the phone. */
  .service-bridge-head h2, .service-offer-body h3, .v10-section h2,
  .ga-intro-column h2, .section-head h2,
  .pr-metrics h3, .tr-track h3, .pr-section h3, .tr-section h3,
  .ga-cal-intro h2, .ga-price-teaser h2 {
    font-size: clamp(28px, 7.2vw, 36px) !important;
    line-height: 1.23 !important;
    letter-spacing: -0.015em !important;
    text-wrap: balance;
    hyphens: none !important;
  }
  .service-bridge-head h2, .section-head h2, .ga-intro-column h2 {
    text-align: center !important;
  }
  /* Do not shrink body text to 10–12px inside cards; labels remain legible. */
  main p, main li, main blockquote,
  .v10-home-card p, .service-offer-body p,
  .pr-section p, .tr-section p, .sales-section p,
  .v10-section p, .ga-interactive-band p,
  .ga-tool-card p, .pr-metrics p,
  .ga-v176-hero p, .ga-v178-catalog-page .product p {
    font-size: clamp(16px, 4.25vw, 18px) !important;
    line-height: 1.56 !important;
  }
  .kicker, .pr-over, .sales-eyebrow, .tr-caption-mini,
  .v10-overline, .v10-vid-eyebrow,
  .ga-price-kicker, .ga-price-small,
  .tr-track-top > span:first-child,
  .tr-track .tr-track-sub, .v10-topic small,
  .service-offer-top, .service-study-details > p,
  .service-links a small, .service-note,
  .v10-small-note, .ga-tool-note, .ga-mini-tag {
    font-size: 14px !important;
    line-height: 1.5 !important;
    letter-spacing: .035em !important;
  }
  .v10-home-card .btn, .v10-home-card .v10-home-card .btn,
  .btn, button, .pr-section a, .tr-section a {
    min-height: 44px;
  }
  /* Reduce empty space between blocks, without collapsing the photo. */
  .section, .v10-section, .pr-section, .tr-section,
  .sales-section, .ga-interactive-band,
  .service-bridge, .v10-media-band, .v10-book-bridge,
  .v10-home-offer, .v10-home-offer .commercial-shortcuts-grid,
  .about, .products, .calculator-section,
  .ga-daily-band, .ga-cal-intro {
    padding-top: 34px !important;
    padding-bottom: 36px !important;
    min-height: 0 !important;
  }
  .about-inner, .v10-media-grid, .v10-media-reversed,
  .products-grid, .sales-hero-grid, .tr-hero-layout,
  .pr-hero-grid, .ga-interactive-layout {
    gap: 17px !important;
    min-height: 0 !important;
    align-items: start !important;
  }
  .about-photo { margin: 0 auto 13px !important; }
  .about-photo img {
    width: 100% !important;
    height: auto !important;
    max-height: 470px !important;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center 24%;
  }
  .about-copy, .pr-portrait, .v10-media-copy { margin-top: 0 !important; padding-top: 0 !important; }
  .section-head, .service-bridge-head, .tr-section-head, .pr-section .pr-heading,
  .v10-section-lead { margin-bottom: 22px !important; }
  .service-offer, .tr-track, .pr-metrics article,
  .v10-home-card, .v10-topic, .ga-price-teaser { min-height: 0 !important; }
  .service-offer-body { margin-top: 17px !important; margin-bottom: 18px !important; }
  .service-offer-body h3, .tr-track h3 { margin-top: 9px !important; margin-bottom: 12px !important; }
  .service-links a { min-height: 56px !important; }
  .ga-mini-tag, .sales-proof a, .tr-track-topics a,
  .v10-topic small { font-size: 14px !important; line-height: 1.4 !important; }
  .v10-home-card>div { padding: 20px 17px !important; }
  .v10-home-card img { max-height: 310px !important; }

  /* Floating calendar remains fully operable but only a 52px dot is visible. */
  .ga-cal-dock {
    right: 12px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 120 !important;
  }
  .ga-cal-trigger {
    display: grid !important;
    place-items: center !important;
    position: relative;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 17px rgba(7,33,23,.23) !important;
  }
  .ga-cal-trigger-date, .ga-cal-trigger-copy, .ga-cal-trigger-arrow {
    display: none !important;
  }
  .ga-cal-trigger::before {
    content: "▦";
    display: block;
    color: #f1d194;
    font: 500 27px/1 Georgia, serif;
  }
  .ga-cal-panel {
    bottom: calc(100% + 9px) !important;
    max-height: min(76dvh, 600px) !important;
  }
  .ga-cal-panel h2 { font-size: 27px !important; }
  .ga-cal-panel label, .ga-cal-panel .ga-cal-panel-summary,
  .ga-cal-panel .ga-cal-privacy, .ga-cal-panel .ga-cal-full,
  .ga-cal-panel .ga-cal-result p {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
  .ga-cal-panel select, .ga-cal-panel button { font-size: 16px !important; }
}
@media (max-width: 380px) {
  :is(main, section, article) h1:not(.screen-reader-only),
  :is(main, section, article) h2:not(.screen-reader-only),
  .pr-hero h1, .tr-hero h1, .sales-hero h1,
  .service-bridge-head h2, .ga-intro-column h2,
  .v10-section h2, .ga-price-teaser h2 {
    font-size: clamp(27px, 7.3vw, 32px) !important;
  }
  .kicker, .pr-over, .sales-eyebrow, .v10-overline,
  .tr-track-top > span:first-child { letter-spacing: .015em !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ga-cal-trigger, .ga-cal-dock { transition: none !important; }
}

/* GALINA V17.11 — calibrated mobile readability pass.
   Desktop headings/layout, orders, calendar behaviour, numeric calculations
   and Tilda links are intentionally untouched. */
@media (max-width: 720px) {
  /* Reading copy: avoid the 15–16px effective text that was left by v17.10. */
  :is(main, section, article) p:not(.kicker):not(.section-lead):not(.hero-lead):not(.pr-lead):not(.tr-lead):not(.sales-lead),
  :is(main, section, article) li,
  .section-head > p, .dir-body p, .product-feature p,
  .v10-home-card p, .service-offer-body p, .tr-track p,
  .ga-cal-intro p, .ga-v176-hero p {
    font-size: 18px !important;
    line-height: 1.58 !important;
  }

  /* Decorative labels were originally 11–14px. Bring them to 16px without
     increasing the established heading typography. */
  .kicker, .hero-copy .eyebrow, .pr-over, .sales-eyebrow,
  .v10-overline, .v10-vid-eyebrow, .tr-caption-mini,
  .ga-price-kicker, .ga-price-small, .ga-mini-tag,
  .v10-small-note, .ga-tool-note, .service-note,
  .service-offer-top, .service-study-details > p,
  .dir-number, .dir-more, .tr-ribbon span,
  .tr-track-top > span:first-child, .tr-track .tr-track-sub,
  .ga-v178-catalog-page .product .label,
  .about-photo figcaption,
  .ga-v178-catalog-page main > .eyebrow {
    font-size: 16px !important;
    line-height: 1.5 !important;
    letter-spacing: .02em !important;
  }

  /* Familiarization badges: '9 архетипов', 'Без регистрации', etc. */
  .tags span, .about-chips span,
  .tr-track-topics a, .tr-track-topics span,
  .sales-proof a, .ga-price-teaser .ga-price-small,
  .ga-v176-tag, .ga-v176-pill, .ga-v175-chip,
  .v10-topic small, .v10-topic span, .ga-method-chip,
  .ga-mini-tag {
    font-size: 16px !important;
    line-height: 1.42 !important;
    letter-spacing: normal !important;
  }

  /* All CTAs: 'Посмотреть комплект', 'Посмотреть личный разбор'. */
  .btn, .btn-dark, .btn-outline, .btn-gold,
  .v10-home-card .btn, .hero-actions .btn,
  .product-feature a, .tr-track-link, .tr-minilink,
  .service-links a, .sales-inline-link,
  .ga-v178-catalog-page .product a,
  .ga-v178-catalog-page .product button,
  .ga-v178-catalog-page .basket a,
  .calc-submit, .ga-cal-panel button {
    font-size: 17px !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    min-height: 46px;
    white-space: normal !important;
    text-align: center;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /* Date-of-birth form: labels, the select itself and its placeholder. */
  .date-grid label, .calc-card label,
  .ga-cal-panel label, .ga-v175-form label,
  .ga-v176-form label, .ga-yantra-form label {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .date-grid select, .date-grid input,
  .calc-card select, .calc-card input,
  .ga-cal-panel select, .ga-cal-panel input,
  .ga-v175-form input, .ga-v175-form select {
    font-size: 17px !important;
    line-height: 1.35 !important;
    min-height: 48px;
  }
  .calc-card .muted, .result-text, .tr-track .tr-track-sub,
  .product-feature p, .ga-v178-catalog-page .note p {
    font-size: 18px !important;
    line-height: 1.55 !important;
  }
  /* Necessary supporting notes still must be readable. */
  .calc-small, .calc-disclaimer, .secondary-note,
  .footnote, .footer p, .service-offer-note,
  .ga-cal-panel .ga-cal-privacy,
  .ga-cal-panel .ga-cal-panel-summary,
  .ga-v178-catalog-page .basket #basket-count,
  .pr-tiny, .sales-small {
    font-size: 16px !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
  }
  .ga-v178-catalog-page .basket a { font-size: 16px !important; }
  .ga-v178-catalog-page .basket #basket-count { min-width: 0; }

  /* Safe line wrapping. Entire words move to the next line. */
  .tags span, .about-chips span, .v10-overline, .kicker,
  .tr-track-topics a, .service-links a,
  .dir-more, .btn, .calc-submit, .ga-mini-tag {
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
  }
}
