/* Typy testov – cards follow the order page (/objednat-test/): coloured head band, product logo, counts row, pink buy bar. */

.tt-hero { padding: 40px 0 10px; }
.tt-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.tt-hero h1 { color: var(--pink); font-size: 44px; font-weight: 600; line-height: 1.2; max-width: 640px; }
.tt-hero p { font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 640px; }
.tt-hero .tt-lead { font-size: 18px; }
.tt-hero-img { margin: 0; justify-self: center; }
.tt-hero-img img { width: 100%; max-width: 460px; }
.tt-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tt-jump a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--bg-soft); color: var(--blue); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.tt-jump a:hover { background: var(--blue); color: #fff; }

/* Switch */
.tt-pick { padding: 30px 0 20px; }
.tt-pick-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; margin-bottom: 26px; }
.tt-pick-head h2 { color: var(--blue); font-size: 32px; margin: 0; }
.tt-switch { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.tt-switch button { border: 0; background: transparent; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--blue); transition: background .2s, color .2s; }
.tt-switch button[aria-checked="true"] { background: var(--pink); color: #fff; }
.tt-switch-note { flex-basis: 100%; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--bg-pink); color: var(--ink); font-size: 15px; }

/* Cards */
.tt-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.tt-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 102, 179, .14); scroll-margin-top: 110px; transition: opacity .25s, filter .25s; }
.tt-card-wide { grid-column: 1 / -1; }
.tt-tag { margin: 0; padding: 14px 16px; text-align: center; font-weight: 700; font-size: 16px; }
.tone-blue .tt-tag { background: var(--blue); color: #fff; }
.tone-pink .tt-tag { background: #E57AA8; color: #fff; }
.tone-light .tt-tag { background: #9BCBF4; color: var(--ink); }
.tt-name { margin: 0; padding: 18px 16px 12px; display: flex; justify-content: center; align-items: center; min-height: 72px; }
.tt-name img { width: auto; height: 30px; }
.tt-maxlogo { display: inline-flex; align-items: flex-end; gap: 6px; }
.tt-maxlogo img { height: 30px; }
.tt-maxlogo span { font-size: 30px; line-height: .9; font-weight: 800; color: var(--blue); letter-spacing: -.01em; }
.tt-counts { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 12px; background: var(--bg-soft); min-height: 92px; }
.tt-counts[hidden] { display: none; }
.tt-num { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; }
.tt-num b { font-size: 30px; font-weight: 700; }
.tt-num small { font-size: 12px; margin-top: 4px; max-width: 110px; }
.tt-baby { color: var(--blue); }
.tt-mama { color: var(--pink); }
.tt-plus { font-size: 26px; font-weight: 700; color: #1DB954; }
.tt-off-note { margin: 0; font-weight: 600; color: var(--muted); }
.tt-body { flex: 1; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.tt-desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.tt-meta { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.tt-meta div { display: flex; gap: 6px; flex-wrap: wrap; }
.tt-meta dt { font-weight: 700; color: var(--blue); }
.tt-meta dt::after { content: ":"; }
.tt-meta dd { margin: 0; }
.tt-more { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.tt-more summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tt-more summary::-webkit-details-marker { display: none; }
.tt-more summary::after { content: ""; width: 14px; height: 8px; background: url("../icons/chevron-down.svg") center / contain no-repeat; transition: transform .2s; }
.tt-more[open] summary::after { transform: rotate(180deg); }
.tt-more ul { margin: 12px 0 8px; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.tt-more li::marker { color: var(--pink); }
.tt-who { font-size: 14px; margin: 0; }
.tt-off-why { margin: 0; font-size: 14px; font-weight: 600; color: var(--pink); }
.tt-buy { display: block; padding: 20px 16px; background: var(--pink); color: #fff; text-align: center; font-weight: 700; font-size: 22px; transition: background .2s; }
.tt-buy:hover { background: var(--pink-hover); color: #fff; }

/* Wide MAX card: horizontal layout on desktop */
.tt-card-wide { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-areas: "tag tag" "name body" "counts body" "buy buy"; }
.tt-card-wide .tt-tag { grid-area: tag; }
.tt-card-wide .tt-name { grid-area: name; }
.tt-card-wide .tt-counts { grid-area: counts; }
.tt-card-wide .tt-body { grid-area: body; border-left: 1px solid var(--line); }
.tt-card-wide .tt-buy { grid-area: buy; }

/* Twins mode */
[data-mode-active="twins"] .tt-card[data-twins-ok="0"] { opacity: .55; filter: grayscale(.85); }
[data-mode-active="twins"] .tt-card[data-twins-ok="0"] .tt-buy { pointer-events: none; background: #B8BFCC; }
[data-mode-active="twins"] .tt-card[data-twins-ok="0"] .tt-off-why { display: block; }

.tt-ins { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 0; font-weight: 600; font-size: 16px; color: var(--blue); }

/* Tables */
.tt-compare h2, .tt-explain h2, .tt-lists h2, .tt-faq h2 { color: var(--blue); font-size: 32px; margin-bottom: 26px; }
.tt-table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 102, 179, .10); background: #fff; }
.tt-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
.tt-table th, .tt-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tt-table thead th { background: var(--blue); color: #fff; font-weight: 700; }
.tt-table tbody th { color: var(--blue); font-weight: 700; white-space: nowrap; }
.tt-table tbody tr:nth-child(even) { background: #F7F9FF; }
.tt-table tbody tr:last-child th, .tt-table tbody tr:last-child td { border-bottom: 0; }
/* Client 17. 11.: all table text in the same colour (no pink/green highlights). */
.tt-table .m, .tt-table .no, .tt-table .yes { color: inherit; font-weight: inherit; }
.tt-th-sub { display: block; font-size: 12px; font-weight: 500; opacity: .85; text-transform: none; letter-spacing: 0; }
.tt-table-s { min-width: 480px; }
.tt-note { max-width: 980px; margin: 18px auto 0; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.6; }

/* Explanations */
.tt-exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tt-exp { padding: 28px; }
.tt-exp h3 { color: var(--blue); font-size: 20px; }
.tt-exp p { margin: 0; font-size: 15px; line-height: 1.6; }
.tt-exp-ar h3 { color: var(--blue); }
.tt-ico { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; margin-bottom: 14px; }
.tt-ico svg { width: 26px; height: 26px; fill: currentColor; }
.tt-ico-mama { background: var(--bg-soft); color: var(--blue); }
.tt-ico-baby { background: var(--bg-soft); color: var(--blue); }

/* Twins */
.tt-twins-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tt-twins-box h2 { color: var(--blue); font-size: 30px; }
.tt-twins-box p { font-size: 16px; line-height: 1.6; }

/* Lists + FAQ */
.tt-lists p.center { font-size: 16px; }
.tt-link { color: var(--blue); text-decoration: underline; font-weight: 600; }
.tt-acc-group { background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 102, 179, .10); padding: 4px 28px; margin-top: 18px; }
.tt-acc-group .acc:last-child { border-bottom: 0; }
.tt-dlist { columns: 2; column-gap: 30px; list-style: none; }
.tt-dlist li { position: relative; padding: 4px 0 4px 18px; break-inside: avoid; }
.tt-dlist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.tt-small { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* CTA */
.tt-cta-box { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.tt-cta-box h2 { color: var(--pink); font-size: 30px; }
.tt-cta-box p { font-size: 16px; max-width: 700px; }
.tt-contacts { display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 700; color: var(--blue); }
.tt-contacts a { display: inline-flex; align-items: center; gap: 10px; }
.tt-contacts svg { width: 26px; height: 26px; }
.tt-cta-box .btn-row { flex-direction: column; align-items: stretch; }

@media (max-width: 1280px) {
  .tt-cards { grid-template-columns: repeat(2, 1fr); }
  .tt-exp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .tt-hero-in { grid-template-columns: 1fr; }
  .tt-hero-img { display: none; }
  .tt-twins-box { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .tt-hero { padding-top: 24px; }
  .tt-hero h1 { font-size: 30px; }
  .tt-pick-head h2, .tt-compare h2, .tt-explain h2, .tt-lists h2, .tt-faq h2 { font-size: 26px; }
  .tt-cards, .tt-exp-grid { grid-template-columns: 1fr; }
  .tt-card-wide { display: flex; }
  .tt-card-wide .tt-body { border-left: 0; }
  .tt-switch { width: 100%; }
  .tt-switch button { flex: 1; padding: 11px 10px; }
  .tt-buy { font-size: 20px; }
  .tt-acc-group { padding: 0 18px; }
  .tt-dlist { columns: 1; }
  .soft-box.tt-twins-box, .pink-box.tt-cta-box { padding: 26px 20px; }
}
