/*
 * pk.css — ülejäänud stiilid (laetakse asünkroonselt, kriitiline osa on inline).
 * BEM-klassid pk-*; värvid ja fondid tulevad kriitilise CSS-i tokenitest.
 */

/* ---------- Sektsioonid ---------- */
.pk-main { display: block; }
.pk-sec { position: relative; }
.pk-sec--tekst .pk-container { max-width: 900px; }
.pk-sec--kaardid, .pk-sec--hinnatabel, .pk-sec--galerii { background: #fff; }
.pk-sec--kkk, .pk-sec--sisukord { background: #fff; }
.pk-sec--partnerid { background: #fff; text-align: center; }
.pk-taitmata { background: #fff3a3; color: #5a4a00; padding: 0 4px; outline: 1px dashed #c9a400; }

/* ---------- Proosa ---------- */
.pk-prose { color: var(--pk-tekst); }
.pk-prose h2, .pk-prose h3, .pk-prose h4 { font-family: var(--pk-oswald); text-transform: uppercase; letter-spacing: 1px; color: var(--pk-roheline); }
.pk-prose h2 { font-size: 30px; }
.pk-prose h3 { font-size: 24px; }
.pk-prose a { color: var(--pk-roheline-tume); text-decoration: underline; }
.pk-prose a:hover { color: var(--pk-link-hover); }
.pk-prose ul, .pk-prose ol { padding-left: 1.4em; }
.pk-prose li { margin-bottom: .3em; }
.pk-prose img { height: auto; }
.pk-prose--wp { max-width: 900px; margin: 0 auto; padding: 60px 20px; }

/* ---------- Tabelid ---------- */
.pk-table { overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
.pk-table table, .pk-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pk-table th, .pk-table td, .pk-prose th, .pk-prose td { border: 1px solid #dfe5e8; padding: 10px 14px; text-align: left; vertical-align: top; }
.pk-table th, .pk-prose th { background: var(--pk-riba); font-weight: 500; }

/* ---------- Pilt + tekst ---------- */
.pk-split { display: grid; grid-template-columns: 45% 1fr; gap: 50px; align-items: center; }
.pk-split--parem .pk-split__media { order: 2; }
.pk-split__media img, .pk-split__img { width: 100%; display: block; }
.pk-split__text > :first-child { margin-top: 0; }

/* ---------- Kaardid ---------- */
.pk-cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin: 0; align-items: start; }
.pk-cards--4 { grid-template-columns: repeat(4, 1fr); }
.pk-card { background: #f9fafa; display: flex; flex-direction: column; overflow: hidden; }
.pk-card__media { display: block; line-height: 0; }
.pk-card__media img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pk-card__body { padding: 35px; text-align: center; display: block; }
.pk-card__title { font-family: var(--pk-oswald); font-size: 23px; font-weight: 600; line-height: 27.6px; text-transform: uppercase; color: #3f444b; margin: 0 0 15px; }
.pk-card__title a { color: inherit; text-decoration: none; }
.pk-card__text { margin: 0 0 15px; color: #3f444b; line-height: 24px; }
.pk-card__more { margin: 0; }
.pk-card__more .pk-btn { padding: 12px 24px; font-size: 15px; line-height: 15px; font-family: var(--pk-roboto); border: 2px solid #3f444b; border-radius: 3px; color: #3f444b; background: transparent; }

/* ---------- Galerii ---------- */
.pk-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.pk-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.pk-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.pk-gallery--5, .pk-gallery--6 { grid-template-columns: repeat(5, 1fr); }
.pk-gallery__item { margin: 0; }
.pk-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ---------- Video (lite YouTube) ---------- */
.pk-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 30px 0 0; }
.pk-video { min-width: 0; }
.pk-yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.pk-yt img, .pk-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pk-yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(35, 164, 85, .92); }
.pk-yt__play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.pk-yt:hover .pk-yt__play, .pk-yt:focus .pk-yt__play { background: var(--pk-link-hover); }

/* ---------- Hinnatabel ---------- */
.pk-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 30px 0 0; }
.pk-price { background: var(--pk-kaart); padding: 28px 24px; text-align: center; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.pk-price__title { font-family: var(--pk-oswald); font-size: 22px; text-transform: uppercase; color: var(--pk-tekst-sek); margin: 0 0 .3em; }
.pk-price__sub { margin: 0 0 .8em; font-size: 14px; }
.pk-price__amount { margin: 0 0 1em; font-family: var(--pk-oswald); color: var(--pk-roheline-tume); }
.pk-price__value { font-size: 40px; font-weight: 700; line-height: 1.1; }
.pk-price__unit { font-size: 16px; }
.pk-price__list { list-style: none; margin: 0 0 1em; padding: 0; text-align: left; }
.pk-price__list li { padding: 6px 0; border-bottom: 1px dotted var(--pk-punktjoon); }
.pk-price__more { text-align: left; font-size: 14px; flex: 1; }
.pk-price__cta { margin: 1em 0 0; }

/* ---------- Vorm (Elementor Pro) ---------- */
.pk-form { max-width: 800px; margin: 0 auto; }
.pk-form--lyhike { max-width: 600px; }
.pk-form .elementor-field-textual, .pk-form input[type=text], .pk-form input[type=email], .pk-form input[type=tel], .pk-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #c8d0d4; background: #fff; font: inherit; color: var(--pk-tekst);
}
.pk-form .elementor-button { background: var(--pk-roheline); color: #fff; border: 0; padding: 15px 40px; font-family: var(--pk-montserrat); font-weight: 500; cursor: pointer; }
.pk-form .elementor-button:hover { background: var(--pk-link-hover); }
p.pk-form-fallback { text-align: center; font-size: 18px; }

/* ---------- KKK ---------- */
.pk-faq { margin: 0; border-top: 1px solid #d5d8dc; }
.pk-faq__item { background: transparent; border: 0; border-bottom: 1px solid #d5d8dc; margin: 0; }
.pk-faq__q { cursor: pointer; padding: 15px 20px 15px 54px; font-family: var(--pk-roboto); font-size: 16px; font-weight: 700; line-height: 16px; color: #333; list-style: none; position: relative; }
.pk-faq__q::-webkit-details-marker { display: none; }
.pk-faq__q::after { content: "+"; position: absolute; left: 20px; right: auto; top: 15px; transform: none; font-size: 18px; font-weight: 700; color: #333; line-height: 16px; width: 24px; }
.pk-faq__item[open] > .pk-faq__q::after { content: "\2212"; }
.pk-faq__a { padding: 15px 20px; border-top: 1px solid #d5d8dc; color: #333; font-weight: 400; line-height: 24px; }
.pk-faq__a > :first-child { margin-top: 0; }

/* ---------- Kontakt ---------- */
.pk-kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pk-kontakt__nimi { font-family: var(--pk-oswald); font-size: 24px; text-transform: uppercase; color: var(--pk-roheline); margin: 0 0 .6em; }
.pk-kontakt__dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.pk-kontakt__dl dt { font-family: var(--pk-oswald); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; color: var(--pk-roheline); }
.pk-kontakt__dl dd { margin: 0; }
.pk-kontakt__map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Sisukord ---------- */
.pk-toc { max-width: 900px; margin: 0 auto; }
.pk-toc__title { font-family: var(--pk-oswald); text-transform: uppercase; color: var(--pk-roheline); font-size: 22px; margin: 0 0 .4em; }
.pk-toc ol, .pk-toc ul { margin: 0; padding-left: 1.3em; }
.pk-toc a { color: var(--pk-roheline-tume); }

/* ---------- CTA ---------- */
.pk-cta { margin: 24px 0 0; text-align: center; }

/* ---------- Partnerid ---------- */
.pk-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 50px; align-items: center; margin: 30px 0 0; padding: 0; list-style: none; }
.pk-partners__item { margin: 0; }
.pk-partners img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .8; }

/* ---------- Postituste riba ---------- */
.pk-posts { position: relative; background: var(--pk-roheline); padding: 60px 0; color: #fff; }
.pk-posts__title { font-family: var(--pk-oswald); font-weight: 700; text-transform: uppercase; text-align: center; font-size: 30px; line-height: 30px; letter-spacing: 0; color: #fff; margin: 0 0 60px; }
.pk-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1120px; margin: 0 auto; }
.pk-post { background: transparent; color: #ebebeb; display: block; }
.pk-post__thumb { display: block; line-height: 0; aspect-ratio: 1 / .66; overflow: hidden; margin-bottom: 20px; }
.pk-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pk-post__title { font-family: var(--pk-roboto); font-size: 20px; font-weight: 600; line-height: 24px; margin: 0; padding: 0; }
.pk-post__title a { color: #fff; text-decoration: none; }
.pk-post__title a:hover { color: #3e3e3e; }
.pk-post__date { font-size: 12px; line-height: 15.6px; color: #efefef; margin: 0 0 13px; padding: 0; }
.pk-post__excerpt { margin: 0 0 10px; padding: 0; color: #ebebeb; line-height: 24px; }
.pk-post__more { margin: 0; padding: 0; font-family: var(--pk-roboto); font-size: 15px; font-weight: 500; line-height: 22.5px; }
.pk-post__more a { color: #3e3e3e; text-decoration: none; }
.pk-posts__grid--arhiiv { padding: 0; }
.pk-sec--blogi .pk-post { box-shadow: none; }

/* ---------- Artikkel ---------- */
.pk-artikkel .pk-container { max-width: 800px; }
.pk-artikkel__tagasi { display: inline-block; margin-top: 30px; font-family: var(--pk-montserrat); font-weight: 500; }

/* ---------- Leheküljed ---------- */
.pk-pager { margin: 40px 0 0; }
.pk-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pk-pager a, .pk-pager span { display: block; padding: 8px 14px; border: 1px solid #dfe5e8; text-decoration: none; color: var(--pk-tekst-sek); background: #fff; }
.pk-pager .current, .pk-pager a:hover { background: var(--pk-roheline); border-color: var(--pk-roheline); color: #fff; }
.pk-empty { text-align: center; padding: 60px 20px; }

/* ---------- Jalus ---------- */
.pk-footer { position: relative; margin-top: 0; }
.pk-footer__cta { position: relative; background: var(--pk-roheline); color: #fff; padding: 80px 0 70px; }
.pk-footer__cta-title { font-family: var(--pk-oswald); font-size: 28px; font-weight: 600; line-height: 28px; text-transform: none; letter-spacing: 0; margin: 0; color: #fff; }
.pk-footer__bar { background: var(--pk-riba); color: var(--pk-tekst-sek); padding: 50px 0; text-align: left; }
.pk-footer__kontakt { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.pk-footer__cta-in { max-width: 1160px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pk-footer__kontakt a, .pk-footer__link { color: var(--pk-tekst-sek); text-decoration: none; font-family: var(--pk-roboto); font-weight: 500; font-size: 15px; line-height: 15px; }
.pk-footer__kontakt a:hover, .pk-footer__link:hover { color: var(--pk-roheline-tume); }
.pk-footer__fb { width: 34px; height: 34px; display: block; color: var(--pk-roheline) !important; }
.pk-footer__nap { margin: 10px 0 0; font-size: 13px; line-height: 19px; text-align: right; }
.pk-footer__rule { border: 0; border-top: 1px dotted var(--pk-punktjoon); margin: 25px 0 20px; }
.pk-footer__alumine { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; font-weight: 300; line-height: 15px; }
.pk-footer__copy { margin: 0; line-height: 15px; }
.pk-footer__digilovi { opacity: .1; transition: opacity .25s; line-height: 0; }
.pk-footer__digilovi:hover { opacity: .4; }
.pk-footer__digilovi img { width: 92px; height: auto; }

/* ---------- Tagasi üles ---------- */
.pk-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; background: var(--pk-roheline); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; z-index: 90; font-size: 20px; line-height: 1; }
.pk-top[hidden] { display: none; }
.pk-top:hover { background: var(--pk-link-hover); color: #fff; }

/* ---------- Tahvel / mobiil ---------- */
@media (max-width: 999px) {
	.pk-cards, .pk-cards--4, .pk-posts__grid { grid-template-columns: repeat(2, 1fr); }
	.pk-gallery { grid-template-columns: repeat(2, 1fr); }
	.pk-split, .pk-kontakt { grid-template-columns: 1fr; gap: 24px; }
	.pk-split--parem .pk-split__media { order: 0; }
	.pk-gallery--4, .pk-gallery--5, .pk-gallery--6 { grid-template-columns: repeat(2, 1fr); }
	.pk-prose h2 { font-size: 25px; }
	.pk-posts__title, .pk-footer__cta-title { font-size: 28px; }
}
@media (max-width: 689px) {
	.pk-sec { padding: 40px 0; }
	.pk-cards, .pk-cards--4, .pk-posts__grid { grid-template-columns: 1fr; }
	.pk-posts { padding: 60px 0; }
	.pk-footer__cta { padding: 60px 20px 50px; }
	.pk-footer__alumine { justify-content: center; text-align: center; }
	.pk-kontakt__map iframe { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

.pk-split--parem { grid-template-columns: 1fr 45%; }

.pk-card__more .pk-btn:hover, .pk-card__more .pk-btn:focus { background: #3f444b; color: #fff; }
.pk-sec--kaardid { padding: 10px 0; }
.pk-sec--kaardid > .pk-container { max-width: 1440px; padding: 0 10px; }
.pk-sec--partnerid { padding: 100px 0; }

.pk-post__more a:hover { color: #fff; }
.pk-sec--blogi { background: var(--pk-roheline); }
.pk-sec--blogi .pk-pager a, .pk-sec--blogi .pk-pager span { background: #fff; }

.pk-footer__bar .pk-container { max-width: 1140px; }
.pk-split--galerii { grid-template-columns: 570fr 440fr; gap: 90px; align-items: start; padding-right: 40px; }
.pk-split--galerii .pk-gallery { margin: 0; gap: 8px; }
.pk-split--galerii .pk-split__text > :first-child { margin-top: 0; }
@media (max-width: 999px) { .pk-split--galerii { grid-template-columns: 1fr; gap: 24px; padding-right: 0; } }
.pk-faq__a p { margin: 0 0 1em; }
.pk-faq__a p:last-child { margin-bottom: 0; }

@media (min-width: 1025px) {
	.pk-kontakt { grid-template-columns: 713fr 414fr; gap: 60px; }
	.pk-kontakt__map { order: -1; }
	.pk-kontakt__map iframe { height: 530px; }
}
.pk-sec--kontakt { padding: 100px 0; }
.pk-kontakt__nimi { font-size: 30px; line-height: 30px; font-weight: 900; color: #54595f; margin: 0 0 20px; }

.pk-kontakt > * { min-width: 0; }
.pk-kontakt__dl dd { overflow-wrap: anywhere; }
@media (max-width: 600px) {
	.pk-kontakt__dl { grid-template-columns: 1fr; gap: 0; }
	.pk-kontakt__dl dd { margin-bottom: 10px; }
	.pk-sec--kontakt { padding: 50px 0; }
}
