/* Medical Travel - template-medical-travel.php. Kolory i kroje z :root motywu (css/style.css). */
.mt {
    --mt-paper: #FFFDF8;
    --mt-dim: rgba(247, 241, 229, 0.78);
    --mt-line-light: rgba(247, 241, 229, 0.18);
    --mt-r-sm: 6px;
    --mt-r-md: 14px;
    --mt-r-lg: 22px;
    color: var(--rcm-ink);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
}
.mt .container { max-width: 1300px; }
.mt h1, .mt h2, .mt h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: 0; text-transform: none; }
.mt p { margin: 0; }
.mt img, .mt video { max-width: 100%; height: auto; display: block; }

.mt-sec { padding-block: clamp(56px, 7vw, 104px); }
.mt-eyebrow { font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--rcm-ember-deep); }
.mt-eyebrow--light { color: var(--rcm-ember-soft); }
.mt-h2 { font-size: clamp(29px, 3.4vw, 42px); margin-top: 14px !important; color: inherit; }
.mt-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--rcm-ink-soft); max-width: 62ch; margin-top: 18px !important; }
.mt-lead--light { color: var(--mt-dim); }
.mt-kicker { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rcm-ember-deep); margin-bottom: 10px !important; }

.mt-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; letter-spacing: .02em; padding: 15px 28px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; transition: background-color .25s, border-color .25s, color .25s; }
.mt-btn--primary { background: var(--rcm-ember-deep); color: #fff; }
.mt-btn--primary:hover { background: var(--rcm-ink); color: #fff; }
.mt-btn--ghost-light { border-color: var(--mt-line-light); color: var(--rcm-cream); }
.mt-btn--ghost-light:hover { background: rgba(247, 241, 229, .1); color: var(--rcm-cream); }
.mt a:focus-visible, .mt summary:focus-visible, .mt .mt-btn:focus-visible { outline: 2px solid var(--rcm-ember-soft); outline-offset: 2px; }

/* hero */
.mt-hero { position: relative; background: var(--rcm-ink); color: var(--rcm-cream); overflow: hidden; }
.mt-hero__bg { position: absolute; inset: 0; }
.mt-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.mt-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, rgba(30,26,20,.74) 0%, rgba(30,26,20,.62) 45%, rgba(30,26,20,.92) 100%); }
.mt-hero__inner { position: relative; padding-block: clamp(56px, 7vw, 100px); }
.mt-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.mt-hero__title { font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -.01em; max-width: 15ch; margin-top: 14px !important; color: var(--rcm-cream); }
.mt-hero__title em { font-style: italic; color: var(--rcm-ember-soft); }
.mt-reel { position: relative; margin: 0; border-radius: var(--mt-r-lg); overflow: hidden; border: 1px solid var(--mt-line-light); box-shadow: 0 24px 60px rgba(0,0,0,.45); background: #000; max-width: 360px; justify-self: end; width: 100%; }
.mt-reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.mt-reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; font-size: 12.5px; color: var(--rcm-cream); background: linear-gradient(0deg, rgba(30,26,20,.88), transparent); }
.mt-reel figcaption b { display: block; font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.mt-facts { margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--mt-line-light); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 34px; }
.mt-facts__fact { padding-top: 20px; }
.mt-facts dt { font-family: var(--font-serif); font-size: clamp(19px, 2vw, 24px); color: var(--rcm-cream); }
.mt-facts dd { margin: 6px 0 0; font-size: 13.5px; color: var(--mt-dim); line-height: 1.55; }

/* dlaczego warto */
.mt-why { background: var(--rcm-cream-soft); }
.mt-why__grid { margin-top: 46px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.mt-why__item { border-top: 2px solid var(--rcm-ink); padding-top: 18px; }
.mt-why__item h3 { font-size: 20px; margin-bottom: 10px; }
.mt-why__item p { font-size: 14.5px; color: var(--rcm-ink-mute); line-height: 1.65; }

/* pakiety */
.mt-care { background: var(--mt-paper); }
.mt-care__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.mt-care__figure { margin: 0; }
.mt-care__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--mt-r-md); }
.mt-care__figure figcaption { font-size: 12.5px; color: var(--rcm-ink-mute); padding-top: 10px; }
.mt-packs { margin-top: 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.mt-pack { background: var(--mt-paper); border: 1px solid var(--rcm-line); border-radius: var(--mt-r-md); padding: 30px 28px; display: flex; flex-direction: column; }
.mt-pack--featured { border-color: var(--rcm-ember); box-shadow: 0 18px 44px rgba(30,26,20,.08); }
.mt-pack__name { font-size: 25px; }
.mt-pack__sub { font-size: 14px; color: var(--rcm-ink-mute); margin-top: 10px !important; line-height: 1.6; }
.mt-pack__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px !important; }
.mt-pack__meta span { font-size: 11.5px; color: var(--rcm-ink-soft); background: var(--rcm-cream); border-radius: 999px; padding: 4px 11px; line-height: 1.5; }
.mt-pack__rows { list-style: none; margin: 20px 0 0; padding: 0; }
.mt-pack__rows li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rcm-line-soft); font-size: 14px; line-height: 1.5; margin: 0; }
.mt-pack__rows li span { color: var(--rcm-ink-soft); }
.mt-pack__rows li b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-pack__rows li.mt-pack__step { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--rcm-ink-mute); padding-top: 16px; border-top: 0; }
.mt-pack__note { margin: 18px 0 24px !important; font-size: 12.5px; color: var(--rcm-ink-mute); line-height: 1.6; }
.mt-pack__note b { display: block; font-weight: 500; color: var(--rcm-ink-soft); letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; margin-bottom: 4px; }
.mt-pack__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto !important; padding-top: 16px; border-top: 2px solid var(--rcm-ink); }
.mt-pack__total span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rcm-ink-mute); }
.mt-pack__total b { font-family: var(--font-serif); font-weight: 400; font-size: 30px; color: var(--rcm-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-custom { margin-top: 22px; background: var(--rcm-bone); border-radius: var(--mt-r-md); padding: clamp(26px, 3.4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.mt-custom__title { font-size: clamp(25px, 2.6vw, 32px); }
.mt-custom__text { font-size: 15px; color: var(--rcm-ink-soft); margin: 12px 0 22px !important; max-width: 52ch; }
.mt-custom__list { list-style: none; margin: 0; padding: 0; }
.mt-custom__list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rcm-line); font-size: 14.5px; margin: 0; }
.mt-custom__list li:first-child { border-top: 0; }
.mt-custom__list b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-care__foot { margin-top: 26px !important; font-size: 13.5px; color: var(--rcm-ink-mute); max-width: 74ch; }

/* pobyt */
.mt-stay { background: var(--rcm-forest-deep); color: var(--rcm-cream); }
.mt-cabins { margin-top: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.mt-cabin { background: rgba(247,241,229,.055); border: 1px solid var(--mt-line-light); border-radius: var(--mt-r-md); overflow: hidden; display: flex; flex-direction: column; }
.mt-cabin__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mt-cabin__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mt-cabin h3 { font-size: 23px; color: var(--rcm-cream); }
.mt-cabin p { font-size: 14.5px; color: var(--mt-dim); line-height: 1.65; }
.mt-cabin .mt-btn { align-self: flex-start; margin-top: auto; }
.mt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-tag { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--rcm-cream); border: 1px solid var(--mt-line-light); border-radius: 999px; padding: 5px 12px; line-height: 1.4; }
.mt-tag--hot { border-color: var(--rcm-ember); color: var(--rcm-ember-soft); }

/* na terenie gospodarstwa */
.mt-zone { background: var(--rcm-forest); color: var(--rcm-cream); }
.mt-zone__grid { margin-top: 42px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.mt-zone__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--mt-r-sm); }
.mt-zone__item h3 { font-size: 19px; margin: 16px 0 8px; color: var(--rcm-cream); }
.mt-zone__item p { font-size: 14px; color: var(--mt-dim); line-height: 1.6; }
.mt-zone__extra { margin-top: 34px !important; padding: 18px 22px; border: 1px solid var(--mt-line-light); border-radius: var(--mt-r-md); font-size: 14.5px; }
.mt-zone__extra b { font-weight: 500; color: var(--rcm-ember-soft); }
.mt-zone__extra span { color: var(--mt-dim); }

/* atrakcje */
.mt-around { background: var(--rcm-bone); }
.mt-around__grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.mt-around__list { list-style: none; margin: 0; padding: 0; }
.mt-around__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 18px 0; border-top: 1px solid var(--rcm-line); font-size: 15px; margin: 0; }
.mt-around__list li:first-child { border-top: 0; padding-top: 0; }
.mt-around__list b { display: block; font-weight: 500; color: var(--rcm-ink); }
.mt-around__list em { font-style: normal; color: var(--rcm-ink-mute); font-size: 14px; }
.mt-around__dist { font-family: var(--font-serif); font-size: 17px; color: var(--rcm-ember-deep); white-space: nowrap; }
.mt-around__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mt-around__photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--mt-r-sm); }
.mt-around__photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* jak to działa */
.mt-how { background: var(--mt-paper); }
.mt-steps { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--rcm-ink); }
.mt-step { padding: 24px 26px 8px 0; }
.mt-step + .mt-step { border-left: 1px solid var(--rcm-line); padding-left: 26px; }
.mt-step__num { font-family: var(--font-serif); font-size: 15px; color: var(--rcm-ember-deep); letter-spacing: .1em; }
.mt-step h3 { font-size: 20px; margin: 10px 0; }
.mt-step p { font-size: 14.5px; color: var(--rcm-ink-mute); line-height: 1.65; }

/* klinika od środka */
.mt-inside { background: var(--rcm-cream-soft); }
.mt-inside__grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.mt-player { margin: 0; border-radius: var(--mt-r-lg); overflow: hidden; border: 1px solid var(--rcm-line); background: #000; }
.mt-player video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.mt-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mt-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--mt-r-sm); }
.mt-reviews { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.mt-review { margin: 0; border-left: 2px solid var(--rcm-ember); padding-left: 22px; }
.mt-review blockquote { margin: 0; padding: 0; border: 0; font-family: var(--font-serif); font-size: 18px; line-height: 1.5; color: var(--rcm-ink); font-style: normal; }
.mt-review figcaption { margin-top: 14px; font-size: 13px; color: var(--rcm-ink-mute); }

/* pytania */
.mt-faq { background: var(--mt-paper); }
.mt-faq__list { margin-top: 34px; max-width: 80ch; }
.mt-faq details { border-top: 1px solid var(--rcm-line); }
.mt-faq details:last-child { border-bottom: 1px solid var(--rcm-line); }
.mt-faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--font-serif); font-size: 19px; color: var(--rcm-ink); }
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::after { content: "+"; position: absolute; right: 8px; top: 17px; font-family: var(--font-sans); font-size: 20px; color: var(--rcm-ember-deep); }
.mt-faq details[open] summary::after { content: "-"; }
.mt-faq details p { padding: 0 8px 22px 0; font-size: 15px; color: var(--rcm-ink-mute); max-width: 70ch; }

/* zapytanie */
.mt-ask { background: var(--rcm-ink); color: var(--rcm-cream); }
.mt-ask__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.mt-ask__contacts { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; font-size: 14.5px; color: var(--mt-dim); }
.mt-ask__contacts b { display: block; color: var(--rcm-cream); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.mt-ask__form { background: var(--rcm-cream-soft); color: var(--rcm-ink); border-radius: var(--mt-r-lg); padding: clamp(24px, 3vw, 36px); }
.mt-ask__form .cf7-grid { margin-top: 0; }
.mt-ask__form select { width: 100%; padding: 10px 28px 8px 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D43E00' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center; border: 0; border-bottom: 1px solid var(--rcm-line); border-radius: 0; font-family: var(--font-sans); font-size: 15px; color: var(--rcm-ink); line-height: 1.5; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.mt-ask__form select:focus { border-bottom-color: var(--rcm-ember); outline: none; }
.mt-ask__form .mt-ask__call { margin-top: 18px; border-color: var(--rcm-line); color: var(--rcm-ink); }
.mt-ask__form .mt-ask__call:hover { background: var(--rcm-cream); color: var(--rcm-ink); }

/* Dwa pakiety: karty na pół szerokości zamiast pustej trzeciej kolumny. */
@media (min-width: 1001px) {
    .mt-packs:has(> .mt-pack:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
    .mt-hero__grid, .mt-care__head, .mt-custom, .mt-around__grid, .mt-inside__grid, .mt-ask__grid { grid-template-columns: minmax(0, 1fr); }
    .mt-reel { justify-self: start; max-width: 300px; }
    .mt-player { max-width: 340px; }
    .mt-why__grid, .mt-zone__grid, .mt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mt-step:nth-child(odd) { border-left: 0; padding-left: 0; }
    .mt-packs, .mt-reviews { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .mt-facts, .mt-why__grid, .mt-cabins, .mt-zone__grid, .mt-steps, .mt-around__photos { grid-template-columns: minmax(0, 1fr); }
    .mt-facts { gap: 0; }
    .mt-facts__fact + .mt-facts__fact { border-top: 1px solid var(--mt-line-light); margin-top: 16px; padding-top: 16px; }
    .mt-step + .mt-step { border-left: 0; padding-left: 0; border-top: 1px solid var(--rcm-line); padding-top: 20px; }
    .mt-pack { padding: 26px 22px; }
    .mt-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .mt * { transition: none !important; animation: none !important; }
}
