/* Блоки сторінок (template-parts/blocks/*) */

.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid--3 { grid-template-columns: 1fr; } }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; font-size: 14px; color: var(--muted); }
.note .ic { color: var(--cyan-d); margin-top: 2px; }

/* ---------- Перший екран ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero .container { position: relative; z-index: 2; display: flex; align-items: center; min-height: 680px; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 50%; padding: 72px 48px 72px 0; }
.hero__lead { font-size: var(--fs-lead); color: var(--text); max-width: 520px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__channels { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }
.hero__channels p { font-size: 14px; color: var(--muted); }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: calc(50% + 112px); } /* фото на 100 px вужче, ніж половина екрана */
.hero__media > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero__card { z-index: 2; }
.hero__card--1 { left: -40px; bottom: 96px; }
.hero__card--2 { right: 40px; bottom: 40px; }
.hero__card--3 { right: 40px; top: 40px; }
.hero__badge { top: 40px; left: calc(50% + 36px); }
@media (max-width: 1279px) { .hero .container { min-height: 620px; } .hero__card--1 { left: 24px; } }
@media (max-width: 1023px) {
	.hero .container { display: block; min-height: 0; }
	.hero__text { width: 100%; padding: 48px 0 32px; }
	.hero__media { position: relative; left: auto; height: 360px; margin: 0 var(--gutter) 32px; }
	.hero__media > img { border-radius: 0; }
	.hero__badge { top: auto; bottom: 280px; left: auto; right: calc(var(--gutter) + 16px); }
}
@media (max-width: 767px) {
	.hero__text { gap: 18px; padding: 28px 0 24px; }
	.hero__btns, .hero__btns .btn { width: 100%; }
	.hero__channels { padding-top: 18px; }
	.hero__media { height: 340px; }
	.hero__media > img { border-radius: var(--r-l); }
	.hero__card { padding: 10px 12px; }
	.hero__card b { font-size: 15px; }
	.hero__media { margin-bottom: 20px; }
	.hero__card--1 { left: 12px; bottom: 12px; }
	.hero__card--2, .hero__card--3 { display: none; }
	.hero__badge { bottom: 280px; right: calc(var(--gutter) + 8px); }
}

/* ---------- Біжуча стрічка (одразу під першим екраном) ---------- */
.marquee { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: 18px 0; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 1; width: 80px; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.marquee__track { display: flex; width: max-content; animation: ew-marquee var(--marquee-time, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; }
.marquee__item { display: flex; align-items: center; gap: 12px; padding: 0 28px; font-family: var(--f-head); font-weight: 500; font-size: 17px; white-space: nowrap; }
.marquee__item .ic { color: var(--mint); }
.marquee__item::after { content: ''; width: 6px; height: 6px; margin-left: 44px; border-radius: 50%; background: var(--cyan-d); }
@keyframes ew-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 767px) { .marquee { padding: 14px 0; } .marquee__item { font-size: 14px; padding: 0 18px; gap: 10px; } .marquee__item::after { margin-left: 26px; } .marquee::before, .marquee::after { width: 32px; } }
@media (prefers-reduced-motion: reduce) {
	.marquee__track { animation: none; width: auto; }
	.marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
	.marquee__list[aria-hidden] { display: none; }
}

/* ---------- Конструктор ціни ---------- */
.cfg__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--gap); }
.cfg-tab { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--white); text-align: left; transition: border-color .15s, box-shadow .15s; }
.cfg-tab:hover { border-color: var(--line-2); }
.cfg-tab[aria-checked=true] { border-color: var(--cyan-d); box-shadow: 0 0 0 3px rgba(0, 169, 184, .12); }
.cfg-tab__img { width: 52px; height: 52px; object-fit: contain; flex: none; border-radius: 10px; background: var(--white); }
.cfg-tab__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cfg-tab__txt b { font-size: 14px; color: var(--ink); }
.cfg-tab__txt span { font-size: 13px; color: var(--muted); }
.cfg-tab[aria-checked=true] .cfg-tab__txt span { color: var(--cyan-dd); font-weight: 600; }
.cfg__main { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.cfg__pick { position: sticky; top: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; border-radius: var(--r-l); background: var(--white); border: 1px solid var(--line); }
.cfg__img { width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border-radius: var(--r-m); background: var(--white); }
.cfg__img img { max-height: 100%; width: auto; object-fit: contain; }
.cfg__name { font-size: 22px; }
.cfg__price { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cfg__price small { font-size: 13px; color: var(--muted); }
.cfg__price b { font-family: var(--f-head); font-weight: 600; font-size: 40px; line-height: 1.15; }
.cfg__price span { font-size: 14px; color: var(--text); }
.cfg__unknown { color: var(--orange-d) !important; font-size: 13px !important; }
.cfg__opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.cfg__col { display: contents; }
.cfg__opts > .cfg__group:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.cfg__opts > .cfg__group:first-child legend { grid-column: 1 / -1; }
.cfg__group { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--white); min-width: 0; }
.cfg__group legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; font-family: var(--f-head); font-weight: 500; font-size: 17px; color: var(--ink); }
.cfg-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-m); cursor: pointer; transition: border-color .15s, background-color .15s; }
.cfg-opt:hover { border-color: var(--line-2); }
.cfg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-opt:has(input:checked) { border-color: var(--cyan-d); background: #F4FDFE; }
.cfg-opt:has(input:focus-visible) { outline: 3px solid var(--cyan-d); outline-offset: 2px; }
.cfg-opt__check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border: 1.5px solid var(--line-2); border-radius: 6px; color: transparent; background: var(--white); }
.cfg-opt__check--round { border-radius: 50%; }
.cfg-opt input:checked + .cfg-opt__check { background: var(--cyan-d); border-color: var(--cyan-d); color: var(--white); }
.cfg-opt__logo { display: flex; align-items: center; width: 124px; height: 46px; flex: none; }
.cfg-opt__logo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.cfg-opt__thumb { width: 48px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; }
.cfg-opt__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cfg-opt__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.cfg-opt__txt b { font-size: 15px; color: var(--ink); }
.cfg-opt__txt small { font-size: 12px; color: var(--muted); }
.cfg-opt__price { flex: none; font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--ink); text-align: right; }
.cfg-opt__price--add { max-width: 120px; font-family: var(--f-text); font-size: 13px; color: var(--cyan-dd); line-height: 1.25; }
.cfg-opt__price--add small { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 1279px) {
	.cfg__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cfg__main { grid-template-columns: 320px minmax(0, 1fr); }
	.cfg__opts { grid-template-columns: 1fr; }
	.cfg__opts > .cfg__group:first-child { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
	.cfg__main { grid-template-columns: 1fr; }
	.cfg__pick { position: static; display: grid; grid-template-columns: 220px 1fr; column-gap: 24px; }
	.cfg__img { grid-row: span 5; }
}
@media (max-width: 767px) {
	.cfg__tabs { display: flex; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 12px; padding: 0 var(--gutter) 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.cfg__tabs::-webkit-scrollbar { display: none; }
	.cfg-tab { flex: 0 0 auto; scroll-snap-align: start; }
	.cfg__pick { display: flex; padding: 20px; order: 2; }
	.cfg__img { aspect-ratio: 16 / 9; }
	.cfg__opts { gap: 12px; }
	.cfg__price b { font-size: 32px; }
	.cfg__group { padding: 18px 14px; }
	.cfg-opt { padding: 10px 12px; gap: 10px; }
	.cfg-opt__logo { width: 92px; height: 36px; }
	.cfg-opt__txt small { display: none; }
	.cfg-opt__price--add { max-width: 96px; font-size: 12px; }
}

/* ---------- Профілі ---------- */
.prof { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; transition: box-shadow .2s, transform .2s; }
a.prof:hover { box-shadow: var(--sh-1); transform: translateY(-2px); }
.prof__logo { display: flex; align-items: center; height: 80px; margin-bottom: 8px; }
.prof__logo img { max-height: 80px; max-width: 220px; width: auto; object-fit: contain; }
.prof__name { font-size: 22px; }
.prof__tag { font-size: 15px; }
.prof__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.prof .chip--hot { margin-bottom: 8px; }
@media (max-width: 767px) { .prof { padding: 20px; } .prof__logo { height: 64px; } .prof__logo img { max-height: 64px; max-width: 200px; } .prof__name { font-size: 18px; } .prof .price b { font-size: 24px; } .arrow-btn { width: 40px; height: 40px; } }
@media (max-width: 479px) { #profili .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Фурнітура ---------- */
.hw { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.hw__photo { position: relative; }
.hw__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl); }
.hw__card { left: 24px; right: 24px; bottom: 24px; }
.hw .sec-head { margin-bottom: 32px; }
.hw__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.hw__item { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-l); background: var(--white); }
.hw__logo { display: flex; align-items: center; height: 64px; }
.hw__logo img { max-height: 64px; max-width: 190px; width: auto; object-fit: contain; }
.hw__item b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 18px; color: var(--ink); }
.hw__item span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 1023px) { .hw { grid-template-columns: 1fr; gap: 40px; } .hw__photo img { aspect-ratio: 16 / 10; } }
@media (max-width: 767px) { .hw__list { grid-template-columns: 1fr; gap: 10px; } .hw__item { flex-direction: row; align-items: center; padding: 16px; } .hw__logo { width: 130px; height: 52px; flex: none; } .hw__logo img { max-height: 52px; } .hw__card { left: 12px; right: 12px; bottom: 12px; } }

/* ---------- Заявка ---------- */
.lead-sec { padding: 56px 0; }
@media (max-width: 767px) { .lead-sec { padding: 0; } }
.lead { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: center; padding: 64px; border-radius: var(--r-xl); background: var(--ink); color: #C9DDE3; }
.lead::before { content: ''; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 229, 172, .28), transparent 70%); pointer-events: none; }
.lead__text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lead__text .h2 { color: var(--white); }
.lead__sub { font-size: var(--fs-lead); color: var(--mint); font-weight: 600; }
.lead__ch { margin-top: 8px; font-size: 15px; }
.lead__form { position: relative; padding: 36px; border-radius: var(--r-l); background: var(--white); box-shadow: var(--sh-2); }
.lead__form .h3 { margin-bottom: 20px; }
@media (max-width: 1023px) { .lead { grid-template-columns: 1fr; padding: 48px; gap: 36px; } }
@media (max-width: 767px) { .lead-sec .container { padding: 0; } .lead { border-radius: 0; padding: 40px var(--gutter); } .lead__form { padding: 24px 20px; } }

/* ---------- Переваги ---------- */
.adv { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--gap); }
.adv__big { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; border-radius: var(--r-l); background: var(--grad-d); color: var(--ink); }
.adv__big b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 96px; line-height: 1; }
.adv__big span { font-family: var(--f-head); font-weight: 500; font-size: 22px; }
.adv__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.adv__grid > .adv__tile { grid-column: span 3; }
.adv__grid > .adv__tile--pay { grid-column: span 4; }
.adv__tile { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.adv__tile b { font-family: var(--f-head); font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--ink); }
.adv__tile--pay { gap: 4px; justify-content: flex-end; }
.adv__logo { display: flex; align-items: center; height: 60px; margin-bottom: 12px; }
.adv__logo img { max-height: 60px; max-width: 120px; width: auto; object-fit: contain; }
.adv__tile--pay small { font-size: 13px; color: var(--muted); }
.adv__cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: var(--gap); padding: 24px 24px 24px 36px; border-radius: var(--r-l); background: var(--ink); }
.adv__cta p { font-family: var(--f-head); font-weight: 500; font-size: 22px; line-height: 1.35; color: var(--white); }
.adv__cta .grad-text { background-image: var(--grad); }
@media (max-width: 1023px) { .adv { grid-template-columns: 1fr; } .adv__big { flex-direction: row; align-items: center; } .adv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adv__grid > .adv__tile, .adv__grid > .adv__tile--pay { grid-column: auto; } }
@media (max-width: 767px) {
	.adv__big { padding: 22px; } .adv__big b { font-size: 64px; } .adv__big span { font-size: 18px; }
	.adv__grid { gap: 10px; } .adv__tile { padding: 16px; gap: 12px; } .adv__tile b { font-size: 14px; } .adv__tile .icon-box { width: 44px; height: 44px; }
	.adv__cta { flex-direction: column; align-items: stretch; padding: 22px; } .adv__cta p { font-size: 18px; }
}

/* ---------- Послуги ---------- */
.srv { display: flex; flex-direction: column; overflow: hidden; }
.srv__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.srv__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px; }
.srv__title { font-size: 20px; }
.srv__body p { font-size: 15px; }
.srv__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.srv__price small { font-size: 14px; color: var(--muted); }
.srv__price b { font-family: var(--f-head); font-weight: 600; font-size: 26px; color: var(--ink); }
.srv__na { color: var(--line-2); letter-spacing: .05em; }
.srv__btns { display: flex; gap: 10px; }
.srv__btns .btn { flex: 1; }
.arrow-btn--light { background: var(--tint); color: var(--cyan-dd); width: 46px; height: 46px; }
@media (max-width: 767px) { .srv__body { padding: 16px; } .srv__title { font-size: 17px; } .srv__price b { font-size: 22px; } .srv__btns .btn { padding: 0 14px; } }
@media (max-width: 479px) { .srv__body p { display: none; } }

/* ---------- Про нас ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.about__photo { position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl); }
.about__card { left: 20px; bottom: 20px; max-width: 300px; }
.about__body { display: flex; flex-direction: column; align-items: flex-start; }
.about__body .sec-head { margin-bottom: 24px; }
.about__lead { font-family: var(--f-head); font-weight: 500; font-size: 22px; line-height: 1.35; margin-bottom: 24px; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; font-size: 16px; }
.about__cols p + p { margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; padding: 40px 16px; border-radius: var(--r-xl); background: var(--ink); }
.stats__item { display: flex; flex-direction: column; gap: 6px; padding: 0 32px; }
.stats__item + .stats__item { border-left: 1px solid #1F4452; }
.stats__item b { white-space: nowrap; font-family: var(--f-head); font-weight: 600; font-size: 44px; line-height: 1.15; background-image: var(--grad); }
.stats__item span { font-weight: 600; font-size: 18px; color: var(--white); }
.stats__item small { font-size: 14px; color: #8FB0BA; }
.about__do-title { margin: 56px 0 20px; }
.about__tile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-m); background: var(--white); border: 1px solid var(--line); font-weight: 600; color: var(--ink); line-height: 1.3; }
@media (max-width: 1023px) {
	.about { grid-template-columns: 1fr; gap: 40px; } .about__photo img { aspect-ratio: 16 / 10; } .about__card { right: 16px; bottom: 16px; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } .stats__item:nth-child(3) { border-left: 0; }
}
@media (max-width: 767px) {
	.about__lead { font-size: 18px; } .about__cols { grid-template-columns: 1fr; gap: 0; margin-bottom: 24px; font-size: 15px; } .about__cols > div + div { margin-top: 12px; }
	.about__body .btn { width: 100%; } .about__card { left: 12px; right: 12px; bottom: 12px; max-width: none; }
	.stats { margin-top: 32px; grid-template-columns: 1fr; padding: 24px; row-gap: 0; } .stats__item { padding: 20px 0; } .stats__item:first-child { padding-top: 0; } .stats__item:last-child { padding-bottom: 0; } .stats__item + .stats__item { border-left: 0; border-top: 1px solid #1F4452; } .stats__item b { font-size: 40px; } .stats__item span { font-size: 16px; }
	.about__do-title { margin: 40px 0 16px; } .about__do { gap: 10px; } .about__tile { padding: 12px; gap: 10px; font-size: 13px; } .about__tile .icon-box { width: 36px; height: 36px; }
}

/* ---------- Наші роботи: ряди за пропорціями фото ---------- */
.works { display: flex; flex-direction: column; gap: 12px; }
.works__row { display: flex; gap: 12px; aspect-ratio: var(--row-ar); }
.works__item { position: relative; flex: var(--ar) 1 0; min-width: 0; overflow: hidden; border-radius: var(--r-m); background: var(--bg); cursor: pointer; }
.works__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.works__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: var(--sh-1); font-size: 13px; color: var(--text); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.works__cap b { font-size: 15px; color: var(--ink); line-height: 1.3; }
.works__type { margin-bottom: 4px; padding: 4px 10px; font-size: 12px; }
.works__item:hover img, .works__item.is-active img { transform: scale(1.04); }
.works__item:hover .works__cap, .works__item:focus-visible .works__cap, .works__item.is-active .works__cap { opacity: 1; transform: none; }
/* телефон: ряди розбираються, фото переносяться по ширині (≈2 у ряд) */
@media (max-width: 767px) {
	.works { flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.works::after { content: ''; flex-grow: 999; }
	.works__row { display: contents; }
	.works__item { flex: var(--ar) 1 calc(var(--ar) * 130px); aspect-ratio: var(--ar); border-radius: var(--r-s); }
	.works__cap { left: 6px; right: 6px; bottom: 6px; padding: 10px; }
}

/* ---------- Сертифікати ---------- */
.certs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.certs__list { display: flex; flex-direction: column; gap: 10px; }
.certs__row { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--white); text-align: left; transition: border-color .15s, box-shadow .15s; }
.certs__row:hover { border-color: var(--line-2); }
.certs__row[aria-selected=true] { border-color: var(--cyan-d); box-shadow: var(--sh-1); }
.certs__row > .ic { color: var(--muted); margin-left: auto; }
.certs__row[aria-selected=true] > .ic { color: var(--cyan-d); }
.certs__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.certs__txt b { font-size: 15px; color: var(--ink); }
.certs__txt small { font-size: 13px; color: var(--muted); }
.certs__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.certs__ring { position: relative; width: 100%; height: 500px; overflow-x: clip; perspective: 1400px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.certs__ring.is-drag { cursor: grabbing; }
.certs__card { position: absolute; top: 0; left: 50%; width: 330px; margin-left: -165px; padding: 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s ease; will-change: transform; -webkit-user-drag: none; }
.certs__ring.is-drag .certs__card { transition: none; }
.certs__card img { width: 100%; height: auto; border-radius: 4px; pointer-events: none; }
.certs__card.is-front { cursor: zoom-in; border-color: var(--cyan-d); }
.certs__ring.is-drag .certs__card.is-front { cursor: grabbing; }
.certs__nav { display: flex; align-items: center; gap: 12px; }
.certs__arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.certs__arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.certs__arrow[data-certs-prev] .ic { transform: scaleX(-1); }
.certs__hint { font-size: 13px; color: var(--muted); }
@media (max-width: 1023px) { .certs { grid-template-columns: 1fr; gap: 24px; } .certs__stage { order: -1; } }
@media (max-width: 767px) {
	.certs__list { flex-direction: row; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.certs__list::-webkit-scrollbar { display: none; }
	.certs__row { flex: 0 0 78%; scroll-snap-align: start; }
	.certs__row > .ic { display: none; }
	.certs__ring { height: 340px; }
	.certs__card { width: 220px; margin-left: -110px; padding: 6px; }
}

/* ---------- Контакти з картою ---------- */
.contacts { position: relative; overflow: hidden; min-height: 760px; display: flex; align-items: center; background: #E6EEF0; }
.contacts__map { position: absolute; inset: 0; }
.contacts__map img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pin-xd) var(--pin-yd); }
.contacts__fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(243, 248, 249, .55), transparent 45%); pointer-events: none; }
.contacts__inner { position: relative; z-index: 2; pointer-events: none; }
.contacts__card { pointer-events: auto; width: 580px; max-width: 100%; padding: 40px; border-radius: var(--r-xl); background: var(--ink); color: #C9DDE3; box-shadow: var(--sh-2); }
.contacts__card .sec-head { margin-bottom: 28px; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; margin-bottom: 28px; }
.contacts__row:first-child { grid-column: 1 / -1; }
.contacts__row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.contacts__row .icon-box { background: rgba(255, 255, 255, .08); color: var(--mint); }
.contacts__row small { display: block; margin-bottom: 2px; font-size: 12px; color: #84A2AD; }
.contacts__row span { color: var(--white); }
.contacts__row a:hover { color: var(--mint); }
/* Мітка: точка на карті (лівий край контейнера карти = 0, тому % = частка ширини секції) */
.contacts__pin { position: absolute; z-index: 1; left: var(--pin-xd); top: var(--pin-yd); width: 0; height: 0; }
.contacts__dot { position: absolute; left: -24px; top: -54px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--grad-d); color: var(--ink); }
.contacts__dot .ic { transform: rotate(45deg); }
.contacts__pulse { position: absolute; left: -22px; top: -12px; width: 44px; height: 24px; border-radius: 50%; background: rgba(0, 169, 184, .35); animation: ew-pulse 2s ease-out infinite; }
@keyframes ew-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.contacts__label { position: absolute; z-index: 1; left: var(--pin-xd); top: var(--pin-yd); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--sh-1); transform: translate(-50%, calc(-100% - 70px)); white-space: nowrap; }
.contacts__mark { display: block; width: 34px; height: 34px; }
.contacts__mark svg { width: 100%; height: 100%; }
.contacts__label b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.2; }
.contacts__label small { display: block; font-size: 12px; color: var(--muted); }
.contacts__route { position: absolute; z-index: 2; left: var(--pin-xd); top: calc(var(--pin-yd) + 36px); transform: translateX(-50%); width: 340px; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-l); background: var(--white); box-shadow: var(--sh-2); }
.contacts__route-head { display: flex; gap: 12px; align-items: flex-start; }
.contacts__route-head b { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.contacts__route-head small { display: block; font-size: 13px; color: var(--muted); }
.contacts__alt { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-s); background: var(--bg); font-size: 13px; }
.contacts__alt .ic { color: var(--cyan-d); margin-top: 1px; }
.contacts__gm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--cyan-dd); }
.contacts__osm { position: absolute; z-index: 2; right: 8px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .8); font-size: 11px; color: var(--muted); }
@media (max-width: 1279px) { .contacts__card { width: 500px; padding: 32px; } }
@media (max-width: 1023px) {
	.contacts__grid { grid-template-columns: 1fr; }
	.contacts__card { width: 380px; }
}
@media (max-width: 767px) {
	.contacts { flex-direction: column; align-items: stretch; min-height: 0; }
	.contacts__inner { padding: 0; order: 1; }
	.contacts__map { order: 2; }
	.contacts__card { width: 100%; border-radius: 0; padding: 40px var(--gutter) 32px; }
	.contacts__grid { gap: 16px; }
	.contacts__map { position: relative; display: block; height: 580px; }
	.contacts__map img { object-position: var(--pin-xm) var(--pin-ym); }
	.contacts__fade { display: none; }
	/* мітка й картка відраховуються від верху карти (картка контактів зверху) */
	.contacts__pin, .contacts__label, .contacts__route { top: auto; }
	.contacts__pin { left: var(--pin-xm); bottom: calc(580px * (1 - var(--pin-ym-n, .259))); }
	.contacts__label { left: var(--pin-xm); bottom: calc(580px * (1 - var(--pin-ym-n, .259)) + 70px); transform: translateX(-50%); }
	.contacts__route { left: var(--gutter); right: var(--gutter); bottom: 32px; width: auto; transform: none; }
}

/* ---------- Звичайна сторінка (index.php) ---------- */
.entry { max-width: 860px; }
.entry__body { margin-top: 24px; }
.entry__body p, .entry__body ul, .entry__body ol { margin-bottom: 16px; }
.entry__body ul { list-style: disc; padding-left: 22px; }
.entry__body a { color: var(--cyan-dd); text-decoration: underline; }
