/* OtoKot – strona główna */
.otk-home { background: #fff; overflow-x: clip; }
.otk-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.otk-home *, .otk-home *::before, .otk-home *::after { box-sizing: border-box; }
.otk-home img { max-width: 100%; height: auto; display: block; }
.otk-ph { display: block; width: 100%; height: 100%; min-height: 140px; background: var(--otk-mleko-2) var(--otk-paw) center / 40% no-repeat; }
.otk-sec { padding: 72px 0; }
.otk-head { max-width: 720px; margin-bottom: 30px; }
.otk-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .2rem 0 .6rem; color: var(--otk-esp); }
.otk-head p { color: var(--otk-szary); margin: 0; }
.otk-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.otk-eyebrow { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--otk-rudy-d); display: flex; align-items: center; gap: .5rem; }
.otk-eyebrow::before { content: ""; width: 34px; height: 9px; background: linear-gradient(var(--otk-rudy-l), var(--otk-rudy-l)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--otk-rudy-l), var(--otk-rudy-l)) 0 50% / 100% 2px no-repeat, linear-gradient(var(--otk-rudy-l), var(--otk-rudy-l)) 0 100% / 100% 2px no-repeat; transform: skewY(-6deg); }
.otk-note { font-size: .84rem; color: var(--otk-szary); }
.otk-paw { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* HERO – orbita */
.otk-hero { background: radial-gradient(circle at 85% 30%, #FBE3C9 0 22%, transparent 22.2%), var(--otk-mleko); padding: 56px 0 64px; }
.otk-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.otk-hero__grid > * { min-width: 0; }
.otk-kicker { display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: var(--otk-rudy-d); border: 1px solid var(--otk-line); border-radius: 999px; padding: .35rem .85rem; font-size: .86rem; font-weight: 500; margin: 0 0 18px; }
.otk-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; color: var(--otk-esp); margin: 0 0 18px; }
.otk-hero__lead { font-size: 1.08rem; color: var(--otk-esp-2); max-width: 560px; margin: 0 0 26px; }
.otk-find { display: flex; max-width: 520px; background: #fff; border: 2px solid var(--otk-esp); border-radius: 16px; padding: 5px; }
.otk-find input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem .8rem; font: inherit; }
.otk-find input:focus { outline: 0; }
.otk-find button { border: 0; border-radius: 12px; background: var(--otk-esp); color: var(--otk-mleko); font: inherit; font-weight: 700; padding: 0 1.3rem; cursor: pointer; }
.otk-find button:hover { background: var(--otk-rudy); }
.otk-hero__links { margin: 18px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.otk-hero__links a { color: var(--otk-esp); font-weight: 700; text-decoration: underline wavy var(--otk-rudy-l) 2px; text-underline-offset: 6px; }
.otk-hero__links a:hover { color: var(--otk-rudy-d); }

.otk-orbit { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1 / 1; margin: 0 auto; }
.otk-orbit::before { content: ""; position: absolute; inset: 3%; border: 2px dashed var(--otk-rudy-l); border-radius: 50%; animation: otk-spin 80s linear infinite; }
.otk-orbit__photo { position: absolute; inset: 16%; border-radius: 50%; overflow: hidden; border: 8px solid #fff; box-shadow: 0 18px 40px rgba(43, 30, 23, .18); background: var(--otk-mleko-2); }
.otk-orbit__photo a, .otk-orbit__photo img { display: block; width: 100%; height: 100%; }
.otk-orbit__photo img { object-fit: cover; }
.otk-orbit__list { list-style: none; margin: 0; padding: 0; }
.otk-orbit__i { position: absolute; transform: translate(-50%, -50%); }
.otk-orbit__i a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; background: #fff; color: var(--otk-esp); text-decoration: none; font-weight: 700; font-size: .9rem; border-radius: 999px; padding: .45rem .55rem .45rem .9rem; box-shadow: 0 4px 14px rgba(43, 30, 23, .12); transition: background .15s, color .15s; }
.otk-orbit__i a small { background: var(--otk-rudy); color: #fff; border-radius: 999px; min-width: 1.6rem; padding: .1rem .4rem; text-align: center; font-size: .74rem; }
.otk-orbit__i a:hover { background: var(--otk-esp); color: var(--otk-mleko); }
.otk-orbit__i--0 { left: 50%; top: 3%; }
.otk-orbit__i--1 { left: 92%; top: 27%; }
.otk-orbit__i--2 { left: 92%; top: 73%; }
.otk-orbit__i--3 { left: 50%; top: 97%; }
.otk-orbit__i--4 { left: 8%; top: 73%; }
.otk-orbit__i--5 { left: 8%; top: 27%; }
@keyframes otk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .otk-orbit::before { animation: none; } }

/* Kartoteka ras */
.otk-cards__filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.otk-cards__filter button { border: 2px solid var(--otk-line); background: #fff; color: var(--otk-esp); border-radius: 999px; padding: .45rem 1rem; font: inherit; font-weight: 500; cursor: pointer; }
.otk-cards__filter button.is-on { background: var(--otk-oko); border-color: var(--otk-oko); color: #fff; }
.otk-cards__grid { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; }
.otk-card a { position: relative; display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 22px 18px 18px; text-decoration: none; color: var(--otk-text); background: repeating-linear-gradient(#FFFDF8 0 27px, #F1E3CF 27px 28px); border: 1px solid var(--otk-line); border-radius: 0 10px 10px 10px; transition: transform .15s, box-shadow .15s; }
.otk-card__tab { position: absolute; top: -24px; left: -1px; height: 24px; min-width: 54px; padding: 0 14px; display: flex; align-items: center; justify-content: center; background: var(--otk-rudy); color: #fff; font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; border-radius: 10px 10px 0 0; }
.otk-card strong { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.25rem; color: var(--otk-esp); }
.otk-card__meta { font-size: .8rem; font-weight: 500; color: var(--otk-oko); }
.otk-card__note { font-size: .9rem; color: var(--otk-szary); }
.otk-card a:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 10px 22px rgba(43, 30, 23, .12); }
.otk-card a:hover strong { color: var(--otk-rudy-d); }
.otk-card[hidden] { display: none; }
.otk-cards__more { margin: 26px 0 0; }

/* Nowe – polaroidy */
.otk-snap { background: var(--otk-mleko-2); }
.otk-snap__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; }
.otk-snap__item a { display: flex; flex-direction: column; gap: .4rem; background: #fff; padding: 12px 12px 18px; text-decoration: none; color: var(--otk-text); box-shadow: 0 6px 18px rgba(43, 30, 23, .12); transform: rotate(-1.2deg); transition: transform .18s; height: 100%; }
.otk-snap__item:nth-child(even) a { transform: rotate(1deg); }
.otk-snap__item a:hover { transform: rotate(0) translateY(-4px); }
.otk-snap__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--otk-mleko); margin-bottom: .4rem; }
.otk-snap__img img { width: 100%; height: 100%; object-fit: cover; }
.otk-snap__item strong { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.12rem; line-height: 1.3; color: var(--otk-esp); }
.otk-snap__date { font-size: .8rem; color: var(--otk-szary); margin-top: auto; }

/* Kocie liczydło */
.otk-calc { background: var(--otk-esp); color: var(--otk-mleko); }
.otk-calc .otk-head h2 { color: var(--otk-mleko); }
.otk-calc .otk-eyebrow { color: var(--otk-rudy-l); }
.otk-calc__box { max-width: 900px; }
.otk-calc__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.otk-calc__tabs button { border: 0; border-radius: 14px 14px 0 0; background: var(--otk-esp-2); color: var(--otk-rudy-l); font: inherit; font-weight: 700; padding: .75rem 1.2rem; cursor: pointer; }
.otk-calc__tabs button[aria-selected="true"] { background: var(--otk-mleko); color: var(--otk-esp); }
.otk-calc__panel { background: var(--otk-mleko); color: var(--otk-text); border-radius: 0 16px 16px 16px; padding: 26px; }
.otk-calc__panel form { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.otk-calc__panel form p { margin: 0; display: flex; flex-direction: column; gap: .3rem; flex: 1 1 180px; min-width: 0; }
.otk-calc__panel label { font-size: .86rem; font-weight: 500; }
.otk-calc__panel input, .otk-calc__panel select { width: 100%; border: 2px solid var(--otk-line); border-radius: 10px; padding: .6rem .7rem; font: inherit; background: #fff; }
.otk-calc__panel input:focus, .otk-calc__panel select:focus { outline: 0; border-color: var(--otk-rudy); }
.otk-calc__out { display: block; margin-top: 18px; padding: 14px 16px; background: #fff; border-left: 5px solid var(--otk-oko); border-radius: 0 10px 10px 0; font-size: 1.05rem; }
.otk-calc__out b { color: var(--otk-rudy-d); }

/* Pierwszy rok – oś pozioma z tropem */
.otk-year__line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; }
.otk-year__line::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; border-top: 3px dotted var(--otk-rudy-l); }
.otk-year__line li { position: relative; padding-top: 40px; }
.otk-year__line li::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff var(--otk-paw) center / 18px no-repeat; border: 2px solid var(--otk-rudy); }
.otk-year__line li:nth-child(even)::before { transform: rotate(18deg); }
.otk-year__when { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--otk-oko); }
.otk-year__line h3 { font-size: 1.12rem; margin: .25rem 0 .4rem; color: var(--otk-esp); }
.otk-year__line p { font-size: .9rem; color: var(--otk-szary); margin: 0; }

/* Ogon */
.otk-tail { background: var(--otk-mleko); }
.otk-tail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.otk-tail__grid > * { min-width: 0; }
.otk-tail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--otk-esp); margin: .2rem 0 .6rem; }
.otk-tail__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.otk-tail__btns button { border: 2px solid var(--otk-esp); background: transparent; color: var(--otk-esp); border-radius: 999px; padding: .45rem .9rem; font: inherit; font-size: .92rem; cursor: pointer; }
.otk-tail__btns button.is-on, .otk-tail__btns button:hover { background: var(--otk-esp); color: var(--otk-mleko); }
.otk-tail__fig { margin: 0; background: #fff; border-radius: 24px; padding: 20px; border: 1px solid var(--otk-line); }
.otk-tail__svg { width: 100%; max-height: 300px; display: block; }
.otk-tail__body { fill: var(--otk-esp); }
.otk-tail__tail { fill: none; stroke: var(--otk-esp); stroke-width: 12; stroke-linecap: round; transition: stroke-width .2s; }
.otk-tail__tail.is-napuszony { stroke-width: 26; stroke-dasharray: 2 3; }
.otk-tail__tail.is-bicz { transform-origin: 120px 178px; animation: otk-whip .5s ease-in-out infinite alternate; }
@keyframes otk-whip { from { transform: rotate(-14deg); } to { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .otk-tail__tail.is-bicz { animation: none; } }
.otk-tail__fig figcaption { margin-top: 12px; font-size: .98rem; min-height: 4.5em; }

/* Rośliny */
.otk-plants__search input { width: 100%; max-width: 460px; border: 2px solid var(--otk-esp); border-radius: 14px; padding: .7rem .9rem; font: inherit; }
.otk-plants__search input:focus { outline: 0; border-color: var(--otk-oko); }
.otk-plants__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.otk-plants__col { border-radius: var(--otk-r); padding: 20px; min-width: 0; }
.otk-plants__col--ok { background: var(--otk-oko-l); }
.otk-plants__col--no { background: #F8DCD6; }
.otk-plants__col h3 { margin: 0 0 12px; font-size: 1.2rem; }
.otk-plants__col--ok h3 { color: #3E5512; }
.otk-plants__col--no h3 { color: #8E2A1C; }
.otk-plants__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.otk-plants__col li { background: rgba(255, 255, 255, .75); border-radius: 10px; padding: .55rem .75rem; }
.otk-plants__col li.is-hit { outline: 2px solid var(--otk-esp); }
.otk-plants__col li em { color: var(--otk-szary); font-size: .85rem; }
.otk-plants__col li span { display: block; font-size: .86rem; color: var(--otk-esp-2); }
.otk-plants__none { margin-top: 14px; font-weight: 500; }

/* Działy – łapki */
.otk-paws__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.otk-paws__grid a { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .2rem; padding: 18px 18px 18px 64px; border: 1px solid var(--otk-line); border-radius: var(--otk-r); text-decoration: none; color: var(--otk-esp); min-height: 84px; transition: background .15s, border-color .15s; }
.otk-paws__grid .otk-paw { position: absolute; left: 16px; top: 50%; width: 34px; height: 34px; margin-top: -17px; fill: var(--otk-rudy-l); transform: rotate(-14deg); transition: fill .15s, transform .15s; }
.otk-paws__grid strong { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; }
.otk-paws__grid span { font-size: .84rem; color: var(--otk-szary); }
.otk-paws__grid a:hover { background: var(--otk-mleko); border-color: var(--otk-rudy-l); }
.otk-paws__grid a:hover .otk-paw { fill: var(--otk-rudy); transform: rotate(8deg); }

/* Wyprawka */
.otk-kit { background: var(--otk-mleko-2); }
.otk-kit__grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 28px; align-items: start; }
.otk-kit__grid > * { min-width: 0; }
.otk-kit h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--otk-esp); margin: .2rem 0 .6rem; }
.otk-ring { width: 120px; height: 120px; display: block; margin: 16px 0 6px; transform: rotate(-90deg); }
.otk-ring circle { fill: none; stroke: #fff; stroke-width: 12; }
.otk-ring .otk-ring__bar { stroke: var(--otk-oko); stroke-linecap: round; transition: stroke-dashoffset .3s; }
.otk-kit__count { font-weight: 700; color: var(--otk-oko); margin: 0 0 12px; }
.otk-kit__col { background: #fff; border-radius: var(--otk-r); padding: 20px; }
.otk-kit__col h3 { margin: 0 0 10px; font-size: 1.15rem; }
.otk-kit__col ul { list-style: none; margin: 0; padding: 0; }
.otk-kit__col li { border-bottom: 1px dashed var(--otk-line); }
.otk-kit__col li:last-child { border-bottom: 0; }
.otk-kit__col label { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; cursor: pointer; }
.otk-kit__col input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--otk-oko); flex: none; }
.otk-kit__col input:checked + span { text-decoration: line-through; color: var(--otk-szary); }

/* Pytania w dymkach */
.otk-chat__list { max-width: 820px; display: grid; gap: 14px; }
.otk-bubble summary { list-style: none; cursor: pointer; position: relative; display: inline-block; max-width: 86%; background: var(--otk-mleko); border: 1px solid var(--otk-line); border-radius: 20px 20px 20px 4px; padding: .8rem 1.1rem; font-weight: 700; color: var(--otk-esp); }
.otk-bubble summary::-webkit-details-marker { display: none; }
.otk-bubble summary::after { content: "+"; display: inline-block; margin-left: .6rem; color: var(--otk-rudy); }
.otk-bubble[open] summary::after { content: "–"; }
.otk-bubble p { margin: 10px 0 0 auto; max-width: 86%; background: var(--otk-rudy); color: #fff; border-radius: 20px 20px 4px 20px; padding: .85rem 1.1rem; }

/* O serwisie */
.otk-story { padding-top: 24px; }
.otk-story__box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; background: var(--otk-esp); color: var(--otk-mleko); border-radius: 28px; padding: 40px; }
.otk-story__box > * { min-width: 0; }
.otk-story h2 { color: var(--otk-mleko); font-size: clamp(1.5rem, 2.8vw, 2rem); margin: .2rem 0 .7rem; }
.otk-story .otk-eyebrow { color: var(--otk-rudy-l); }
.otk-story .otk-more { color: var(--otk-rudy-l); margin-left: 12px; }
.otk-story__trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.otk-story__trail li { position: relative; padding-left: 46px; }
.otk-story__trail li::before { content: ""; position: absolute; left: 0; top: -2px; width: 30px; height: 30px; background: var(--otk-paw) center / contain no-repeat; filter: brightness(1.6); }
.otk-story__trail li:nth-child(2) { margin-left: 22px; }
.otk-story__trail li:nth-child(3) { margin-left: 44px; }
.otk-story__trail b { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.15rem; color: var(--otk-rudy-l); }

/* Responsywność */
@media (max-width: 1100px) {
	.otk-cards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.otk-year__line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
	.otk-year__line::before { display: none; }
	.otk-paws__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.otk-kit__grid { grid-template-columns: 1fr 1fr; }
	.otk-kit__side { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.otk-hero__grid, .otk-tail__grid, .otk-story__box { grid-template-columns: 1fr; }
	.otk-orbit { aspect-ratio: auto; max-width: none; display: flex; flex-direction: column; align-items: center; gap: 18px; }
	.otk-orbit::before { display: none; }
	.otk-orbit__photo { position: relative; inset: auto; width: 240px; height: 240px; }
	.otk-orbit__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
	.otk-orbit__i { position: static; transform: none; }
	.otk-snap__grid, .otk-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.otk-plants__cols { grid-template-columns: 1fr; }
	.otk-paws__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.otk-sec { padding: 54px 0; }
	.otk-story__box { padding: 28px; }
}
@media (max-width: 560px) {
	.otk-snap__grid, .otk-cards__grid, .otk-paws__grid, .otk-kit__grid { grid-template-columns: 1fr; }
	.otk-year__line { grid-template-columns: 1fr; }
	.otk-find button { padding: 0 .9rem; }
	.otk-calc__panel { padding: 18px; }
	.otk-bubble summary, .otk-bubble p { max-width: 100%; }
	.otk-story__trail li:nth-child(n) { margin-left: 0; }
}
