/* Subpaginile de antrenamente (exerciții de bază, nivelul de dificultate, grupul de persoane), RO + EN,
   aduse pe 17.11.2026 la aspectul hub-ului de antrenamente.
   Spre deosebire de hub, aici markup-ul și textul paginilor au rămas neatinse (clasele .dtb-*): fișierul
   acesta e doar o „piele” peste ele, activată de clasa `ats` pusă lângă `dtb` pe rădăcina paginii.
   Toți selectorii încep cu `.dtb.ats`, ca să bată regulile din dresaj-canin.css indiferent de ordinea de
   încărcare. Culorile sunt cele ale site-ului; titlurile folosesc Inter 800 de la instructori. */
@font-face {
  font-family: 'Inter Display';
  src: url('/assets/fonts/inter/Inter-instructors-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

.dtb.ats {
  --ats-navy: var(--color-secondary, #0A3A71);
  --ats-red: var(--color-primary, #C83021);
  --ats-red-dark: #AD281C;
  --ats-tint: #F2F5F8;
  --ats-line: #CED8E2;
  --ats-hair: #EBEBEB;
  --ats-display: 'Inter Display', 'Inter', system-ui, sans-serif;
  font-size: 17px;
}

.dtb.ats .dtb-wrap { max-width: 1240px; padding-inline: 32px; }
.dtb.ats .dtb-wrap--narrow { max-width: 1240px; }
.dtb.ats .dtb-section { padding-block: 96px; }
.dtb.ats .dtb-section--tight { padding-block: 72px; }
.dtb.ats .dtb-section--tinted { background: var(--ats-tint); }

/* ---------- tipografie ---------- */
.dtb.ats .dtb-eyebrow { gap: 0; margin: 0 0 14px; color: var(--ats-red); font-size: 12px; letter-spacing: .16em; }
.dtb.ats .dtb-eyebrow::before { display: none; }
.dtb.ats .dtb-h2 { max-width: 20em; margin: 0 0 22px; color: var(--ats-navy); font-family: var(--ats-display); font-size: 42px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-wrap: initial; }
.dtb.ats .dtb-section-head { max-width: none; margin-bottom: 32px; }
.dtb.ats .dtb-section-head--center { margin-inline: 0; text-align: left; }
.dtb.ats .dtb-section-head--center .dtb-eyebrow { justify-content: flex-start; }
.dtb.ats .dtb-p, .dtb.ats .dtb-prose p { max-width: 68ch; font-size: 17px; line-height: 1.6; }
.dtb.ats .dtb-prose a { color: var(--ats-navy); font-weight: 600; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dtb.ats .dtb-prose a:hover { color: var(--ats-red); }

/* ---------- butoane ---------- */
.dtb.ats .dtb-btn { min-height: 52px; padding: 10px 24px; border: 2px solid transparent; border-radius: 12px; box-shadow: none; font-size: 16px; line-height: 1.3; backdrop-filter: none; }
.dtb.ats .dtb-btn:hover { transform: none; }
.dtb.ats .dtb-btn--primary { border-color: var(--ats-red); background: var(--ats-red); color: #fff; }
.dtb.ats .dtb-btn--primary:hover { border-color: var(--ats-red-dark); background: var(--ats-red-dark); }
.dtb.ats .dtb-btn--ghost, .dtb.ats .dtb-cta .dtb-btn--outline { border-color: #fff; background: transparent; color: #fff; }
.dtb.ats .dtb-btn--ghost:hover, .dtb.ats .dtb-cta .dtb-btn--outline:hover { border-color: #fff; background: #fff; color: var(--ats-navy); }

/* ---------- hero: text pe bleumarin, fotografia alături ---------- */
.dtb.ats .dtb-hero { display: grid; grid-template-columns: 50% 50%; min-height: 540px; padding: 0; overflow: visible; background: var(--ats-navy); }
.dtb.ats .dtb-hero__media { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; min-height: 340px; }
.dtb.ats .dtb-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.dtb.ats .dtb-hero__scrim { display: none; }
.dtb.ats .dtb-hero > .dtb-wrap { grid-column: 1; grid-row: 1; max-width: none; margin: 0; padding: 36px 64px 72px max(32px, calc((100vw - 1240px) / 2 + 32px)); }
.dtb.ats .dtb-crumbs { margin-bottom: 48px; color: rgba(255, 255, 255, .85); font-size: 13px; letter-spacing: 0; }
.dtb.ats .dtb-hero__grid { display: block; }
.dtb.ats .dtb-hero__eyebrow { margin: 0 0 14px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 12px; letter-spacing: .16em; backdrop-filter: none; }
.dtb.ats .dtb-hero__title { margin: 0 0 28px; font-family: var(--ats-display); font-size: clamp(38px, 3.7vw, 54px); line-height: 1.12; letter-spacing: -.02em; text-wrap: initial; }
.dtb.ats .dtb-hero__title::after { content: ""; display: block; width: 132px; height: 7px; margin-top: 16px; border-radius: 8px; background: var(--ats-red); transform: rotate(-1deg); transform-origin: left; }
.dtb.ats .dtb-hero__lead { max-width: 30em; margin: 0 0 34px; color: #fff; font-size: 19px; line-height: 1.6; }
.dtb.ats .dtb-hero__lead strong { color: #fff; }
.dtb.ats .dtb-hero__actions { gap: 16px; }

/* ---------- introducerea de sub hero ---------- */
.dtb.ats .dtb-hero + .dtb-section--tight { padding-bottom: 96px; }
.dtb.ats .dtb-hero + .dtb-section--tight .dtb-p { margin: 0 0 14px; }
.dtb.ats .dtb-hero + .dtb-section--tight .dtb-p:first-child { max-width: 34em; margin-bottom: 28px; color: var(--ats-navy); font-size: 26px; font-weight: 600; line-height: 1.35; }
.dtb.ats .dtb-hero + .dtb-section--tight .dtb-p:nth-child(2) { max-width: 36em; margin-bottom: 28px; padding: 6px 0 6px 24px; border-left: 5px solid var(--ats-red); color: var(--ats-navy); font-size: 20px; font-weight: 600; line-height: 1.45; }

/* ---------- pașii: listă numerotată pe linia de traseu ---------- */
.dtb.ats .dtb-timeline { counter-reset: ats-step; gap: 24px; }
.dtb.ats .dtb-timeline::before { top: 26px; bottom: 26px; left: 25px; width: 0; border-left: 2px dashed var(--ats-red); background: none; transform: none; }
.dtb.ats .dtb-tl-item { counter-increment: ats-step; grid-template-columns: 52px minmax(0, 1fr); gap: 28px; align-items: start; }
.dtb.ats .dtb-tl-item > .dtb-tl-mark { grid-column: 1; grid-row: 1; width: 52px; height: 52px; border: 2px solid var(--ats-red); background: #fff; box-shadow: none; }
.dtb.ats .dtb-tl-item > .dtb-tl-card { grid-column: 2; grid-row: 1; }
.dtb.ats .dtb-tl-mark svg { display: none; }
.dtb.ats .dtb-tl-mark::after { content: counter(ats-step, decimal-leading-zero); color: var(--ats-red); font-family: var(--ats-display); font-size: 16px; font-weight: 800; line-height: 1; }
.dtb.ats .dtb-tl-card { padding: 34px 38px 36px; border: 0; border-radius: 22px; background: #fff; box-shadow: none; }
.dtb.ats .dtb-tl-step { margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.dtb.ats .dtb-tl-card .dtb-h3 { margin: 0 0 14px; color: var(--ats-navy); font-family: var(--ats-display); font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.dtb.ats .dtb-tl-card p { margin: 0 0 12px; line-height: 1.6; }
.dtb.ats .dtb-tl-media { border-radius: 16px; aspect-ratio: 16 / 10; }

/* ---------- liste (semne de progres, greșeli, roluri) ---------- */
.dtb.ats .dtb-prose ul, .dtb.ats .dtb-tl-card ul { gap: 0; margin: 20px 0; }
.dtb.ats .dtb-prose li { max-width: 68ch; padding: 16px 0 16px 36px; border-top: 1px solid var(--ats-line); line-height: 1.6; }
.dtb.ats .dtb-prose li:last-child { border-bottom: 1px solid var(--ats-line); }
.dtb.ats .dtb-prose li .icon { top: 17px; color: var(--ats-red); font-size: 1.3em; }
.dtb.ats .dtb-prose li strong { color: var(--ats-navy); }
.dtb.ats .dtb-tl-card li { padding-block: 4px; }

/* ---------- caseta cu sfaturi ---------- */
.dtb.ats .dtb-card--accent { padding: 48px 56px; border: 0; border-radius: 24px; background: var(--ats-navy); color: #fff; }
.dtb.ats .dtb-card--accent .dtb-h3 { margin: 0 0 18px; color: #fff; font-family: var(--ats-display); font-size: 30px; font-weight: 800; line-height: 1.2; }
.dtb.ats .dtb-card--accent p { max-width: 70ch; margin: 0 0 12px; color: #fff; line-height: 1.6; }
.dtb.ats .dtb-card--accent p:last-child { margin-bottom: 0; }
/* Primul paragraf din .dtb-prose e colorat bleumarin mai jos (pagina grupului); în casetă trebuie să rămână alb. */
.dtb.ats .dtb-card--accent .dtb-prose > p:first-child, .dtb.ats .dtb-card--accent .dtb-prose p, .dtb.ats .dtb-card--accent strong { color: #fff; }

/* ---------- pagina grupului: text lung lângă fotografie ---------- */
.dtb.ats .dtb-split { gap: 72px; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.dtb.ats .dtb-split__media { border-radius: 24px; }
.dtb.ats .dtb-split--top .dtb-split__media { position: sticky; top: 24px; }
.dtb.ats .dtb-prose .dtb-h3 { margin: 48px 0 16px; color: var(--ats-navy); font-family: var(--ats-display); font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.dtb.ats .dtb-prose > p:first-child { color: var(--ats-navy); font-size: 21px; font-weight: 600; line-height: 1.5; }

/* ---------- întrebări frecvente ---------- */
.dtb.ats .dtb-faq { gap: 24px; }
.dtb.ats .dtb-qa { padding: 32px 34px 34px; border: 0; border-radius: 22px; background: #fff; }
.dtb.ats .dtb-qa__q { margin: 0 0 12px; color: var(--ats-navy); font-family: var(--ats-display); font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.dtb.ats .dtb-qa__a { color: inherit; font-size: 17px; line-height: 1.6; }

/* ---------- cta ---------- */
.dtb.ats .dtb-cta { padding-block: 112px; }
.dtb.ats .dtb-cta__scrim { background: rgba(10, 58, 113, .78); }
.dtb.ats .dtb-cta__title { margin: 0 0 18px; font-family: var(--ats-display); font-size: 46px; text-wrap: initial; }
.dtb.ats .dtb-cta__lead { max-width: 34em; margin-bottom: 32px; color: #fff; font-size: 20px; }
.dtb.ats .dtb-cta__actions { gap: 16px; }

/* ---------- desktop: introducerea pe două coloane, fotografia pasului lângă text ---------- */
@media (min-width: 901px) {
  .dtb.ats .dtb-hero + .dtb-section--tight > .dtb-wrap { display: grid; grid-template-columns: 5fr 6fr; grid-auto-flow: dense; column-gap: 80px; align-items: start; }
  .dtb.ats .dtb-hero + .dtb-section--tight .dtb-p:first-child { grid-column: 1; grid-row: 1; }
  .dtb.ats .dtb-hero + .dtb-section--tight .dtb-p:nth-child(2) { grid-column: 1; grid-row: 2 / span 6; }
  .dtb.ats .dtb-hero + .dtb-section--tight .dtb-p:nth-child(n+3) { grid-column: 2; }
  /* Introducere cu doar două paragrafe (pagina despre dificultate): al doilea trece în dreapta, ca să nu rămână coloana goală. */
  .dtb.ats .dtb-hero + .dtb-section--tight .dtb-p:nth-child(2):last-child { grid-column: 2; grid-row: 1; align-self: center; max-width: none; margin-bottom: 0; }
  .dtb.ats .dtb-hero + .dtb-section--tight .dtb-p:first-child:nth-last-child(2) { margin-bottom: 0; }
  .dtb.ats .dtb-tl-card:has(> .dtb-tl-media) { display: grid; grid-template-columns: 5fr 6fr; column-gap: 36px; align-content: start; }
  .dtb.ats .dtb-tl-card:has(> .dtb-tl-media) > * { grid-column: 2; }
  .dtb.ats .dtb-tl-card:has(> .dtb-tl-media) > .dtb-tl-media { grid-column: 1; grid-row: 1 / span 12; align-self: start; margin: 0; }
}

@media (max-width: 1100px) {
  .dtb.ats .dtb-hero > .dtb-wrap { padding-right: 40px; }
  .dtb.ats .dtb-split { gap: 48px; }
}

@media (max-width: 900px) {
  .dtb.ats .dtb-section { padding-block: 64px; }
  .dtb.ats .dtb-section--tight { padding-block: 56px; }
  .dtb.ats .dtb-hero + .dtb-section--tight { padding-bottom: 64px; }
  .dtb.ats .dtb-hero { display: flex; flex-direction: column-reverse; min-height: 0; }
  .dtb.ats .dtb-hero > .dtb-wrap { padding: 28px 32px 48px; }
  .dtb.ats .dtb-hero__media { height: 400px; min-height: 0; }
  .dtb.ats .dtb-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dtb.ats .dtb-split--top .dtb-split__media { position: relative; top: auto; }
}

@media (max-width: 600px) {
  .dtb.ats { font-size: 16px; }
  .dtb.ats .dtb-wrap { padding-inline: 20px; }
  .dtb.ats .dtb-section { padding-block: 56px; }
  .dtb.ats .dtb-section--tight { padding-block: 48px; }
  .dtb.ats .dtb-hero + .dtb-section--tight { padding-bottom: 56px; }
  .dtb.ats .dtb-h2 { margin-bottom: 18px; font-size: 30px; }
  .dtb.ats .dtb-p, .dtb.ats .dtb-prose p, .dtb.ats .dtb-qa__a { font-size: 16px; }
  .dtb.ats .dtb-hero > .dtb-wrap { padding: 24px 20px 40px; }
  .dtb.ats .dtb-crumbs { margin-bottom: 24px; }
  .dtb.ats .dtb-hero__title { margin-bottom: 22px; font-size: 34px; }
  .dtb.ats .dtb-hero__title::after { width: 96px; height: 6px; margin-top: 12px; }
  .dtb.ats .dtb-hero__lead { margin-bottom: 26px; font-size: 17px; }
  .dtb.ats .dtb-hero__media { height: 250px; }
  .dtb.ats .dtb-hero__actions .dtb-btn { justify-content: center; }
  .dtb.ats .dtb-hero + .dtb-section--tight .dtb-p:first-child { margin-bottom: 22px; font-size: 21px; }
  .dtb.ats .dtb-hero + .dtb-section--tight .dtb-p:nth-child(2) { margin-bottom: 22px; padding-left: 18px; font-size: 18px; }
  .dtb.ats .dtb-timeline { gap: 16px; }
  .dtb.ats .dtb-timeline::before { left: 19px; }
  .dtb.ats .dtb-tl-item { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .dtb.ats .dtb-tl-item > .dtb-tl-mark { width: 40px; height: 40px; }
  .dtb.ats .dtb-tl-mark::after { font-size: 13px; }
  .dtb.ats .dtb-tl-card { padding: 22px 20px 24px; }
  .dtb.ats .dtb-tl-card .dtb-h3 { font-size: 22px; }
  .dtb.ats .dtb-card--accent { padding: 30px 24px; }
  .dtb.ats .dtb-card--accent .dtb-h3 { font-size: 25px; }
  .dtb.ats .dtb-prose .dtb-h3 { margin-top: 36px; font-size: 23px; }
  .dtb.ats .dtb-prose > p:first-child { font-size: 18px; }
  .dtb.ats .dtb-qa { padding: 24px; }
  .dtb.ats .dtb-qa__q { font-size: 20px; }
  .dtb.ats .dtb-cta { padding-block: 72px; }
  .dtb.ats .dtb-cta__title { font-size: 30px; }
  .dtb.ats .dtb-cta__lead { font-size: 18px; }
  .dtb.ats .dtb-cta__actions { flex-direction: column; }
}

@media (max-width: 360px) {
  .dtb.ats .dtb-wrap { padding-inline: 16px; }
  .dtb.ats .dtb-hero > .dtb-wrap { padding-inline: 16px; }
  .dtb.ats .dtb-hero__title { font-size: 30px; }
}
