/* UI-kit: кнопки, мітки, поля, картки, модалка */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--r-pill); font-weight: 600; white-space: nowrap; transition: background-position .45s ease, background-size .35s ease, background-color .2s, border-color .2s, color .2s, filter .2s; border: 1.5px solid transparent; }
.btn--l { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--m { min-height: 46px; padding: 0 22px; font-size: 15px; }
/* Градієнт удвічі ширший за кнопку: при наведенні «прокручується» до насиченого бірюзового зліва */
.btn--primary { background: linear-gradient(90deg, var(--cyan-d) 0%, var(--cyan) 50%, var(--mint) 100%) 100% 0 / 200% 100%; color: var(--ink); }
.btn--primary:hover { background-position: 0 0; }
.btn--dark { background: var(--ink) linear-gradient(90deg, var(--cyan-dd), var(--cyan-d)) no-repeat 0 0 / 0 100%; color: var(--white); }
.btn--dark:hover { background-size: 100% 100%; }
/* Обводка: при наведенні кнопка заливається зліва направо */
.btn--outline { border-color: var(--ink); color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0 100%; }
.btn--outline:hover { background-size: 100% 100%; color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--tint); }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: var(--mint); }
.btn--phone { background: var(--white); border-color: var(--line); color: var(--ink); padding-left: 18px; }
.btn--phone .ic { color: var(--cyan-d); }
.btn--phone:hover { border-color: var(--cyan-d); background: var(--tint); }
.btn--telegram { background: var(--tg); color: var(--white); padding-left: 18px; }
.btn--viber { background: var(--viber); color: var(--white); padding-left: 18px; }
/* Месенджери: при наведенні трохи світлішають і насичуються */
.btn--telegram:hover, .btn--viber:hover { filter: brightness(1.12) saturate(1.15); }
.btn--block { width: 100%; }
.channels { display: flex; flex-wrap: wrap; gap: 12px; }
.channels--col { flex-direction: column; }
.channels--col .btn { width: 100%; }
@media (max-width: 767px) { .channels { flex-direction: column; } .channels .btn { width: 100%; } }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--tint); color: var(--ink); font-weight: 600; font-size: 14px; }
.chip--line { background: var(--white); border: 1px solid var(--line); }
.chip--sale { background: var(--orange); color: var(--white); }
.chip--hot { background: var(--orange-t); color: var(--orange-d); font-size: 12px; padding: 5px 10px; }
.chip--hot .ic { color: var(--orange); }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: var(--r-pill); background: var(--tint); color: var(--cyan-dd); font-weight: 600; font-size: 13px; }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 56px; }
.sec-head .h2 { max-width: 900px; }
.sec-sub { max-width: 760px; font-size: var(--fs-body); color: var(--text); }
.sec-head--dark .eyebrow { background: rgba(255, 255, 255, .1); color: var(--mint); }
.sec-head--dark .h2 { color: var(--white); }
.sec-head--dark .sec-sub { color: #A9C3CC; }
@media (max-width: 767px) { .sec-head { gap: 12px; margin-bottom: 28px; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--r-m); background: var(--tint); color: var(--cyan-d); flex: none; }
.icon-box--s { width: 40px; height: 40px; border-radius: var(--r-s); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--white); box-shadow: var(--sh-2); }
.float-card > div > b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.2; }
.float-card > div > span { display: block; font-size: 13px; color: var(--muted); }
.sale-badge { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; background: var(--orange); color: var(--white); transform: rotate(-8deg); text-align: center; line-height: 1; }
.sale-badge small { font-weight: 600; font-size: 15px; }
.sale-badge b { font-family: var(--f-head); font-weight: 600; font-size: 40px; margin: 4px 0 2px; }
@media (max-width: 767px) { .sale-badge { width: 100px; height: 100px; } .sale-badge small { font-size: 10px; } .sale-badge b { font-size: 27px; } }

.price { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); }
.price small { font-weight: 500; font-size: 15px; color: var(--muted); }
.price b { font-family: var(--f-head); font-weight: 600; font-size: 30px; }
.price i { font-style: normal; font-weight: 600; font-size: 15px; }
.arrow-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-d); color: var(--ink); flex: none; transition: transform .2s; }
a:hover > .arrow-btn, .arrow-btn:hover { transform: rotate(45deg); }

/* Поля (Contact Form 7 і власні) */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .field label { font-weight: 500; font-size: 14px; color: var(--muted); }
.field input, .field textarea, .wpcf7 input[type=text], .wpcf7 input[type=tel], .wpcf7 input[type=email], .wpcf7 textarea { width: 100%; min-height: 56px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--white); color: var(--ink); font-size: 16px; transition: border-color .15s; }
.wpcf7 textarea { padding: 14px 18px; min-height: 110px; }
.field input:focus, .wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--cyan-d); box-shadow: 0 0 0 3px rgba(0, 169, 184, .15); }
.wpcf7 input::placeholder { color: #93A7AF; }
.wpcf7-form p { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 .wpcf7-submit { width: 100%; min-height: 56px; border: 0; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--cyan-d) 0%, var(--cyan) 50%, var(--mint) 100%) 100% 0 / 200% 100%; color: var(--ink); font-weight: 600; font-size: 16px; cursor: pointer; transition: background-position .45s ease, color .2s; }
.wpcf7 .wpcf7-submit:hover { background-position: 0 0; }
.wpcf7-spinner { display: none; }
.wpcf7-not-valid-tip { font-size: 13px; color: #D43F3A; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.form-note { font-size: 13px; color: var(--muted); }
.ew-form { display: grid; gap: 14px; }

/* Модалка */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 39, 50, .6); }
.modal.is-open { display: flex; }
.modal__box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 40px; border-radius: var(--r-xl); background: var(--white); box-shadow: var(--sh-2); }
.modal__close { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--ink); }
.modal__title { font-family: var(--f-head); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--ink); padding-right: 48px; }
.modal__sub { margin: 8px 0 22px; }
.modal__summary { margin-bottom: 18px; padding: 14px; border-radius: 18px; background: var(--bg); font-size: 14px; color: var(--ink-2); }
.modal__summary b { color: var(--cyan-dd); }
.modal__or { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; font-size: 13px; color: var(--muted); }
.modal__or::before, .modal__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 767px) {
	.modal { align-items: flex-end; padding: 0; }
	.modal__box { max-width: none; border-radius: 28px 28px 0 0; padding: 28px 20px 32px; }
	.modal__title { font-size: 22px; }
}

/* Відправка форми: напівпрозора форма + індикатор (main.js) */
.wpcf7-form { position: relative; }
.wpcf7-form > :not(.form-sending) { transition: opacity .25s ease, filter .25s ease; }
.wpcf7-form.is-sending > :not(.form-sending) { opacity: .35; filter: saturate(.6); pointer-events: none; user-select: none; }
.form-sending { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s; }
.wpcf7-form.is-sending .form-sending { opacity: 1; visibility: visible; pointer-events: auto; cursor: progress; }
.form-sending__pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; transform: translateY(6px) scale(.96); transition: transform .25s ease; }
.wpcf7-form.is-sending .form-sending__pill { transform: none; }
.form-sending__spin { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 3px solid var(--tint); border-top-color: var(--cyan-d); border-right-color: var(--mint); animation: ew-spin .8s linear infinite; }
@keyframes ew-spin { to { transform: rotate(360deg); } }
/* Успіх показує вікно «Дякуємо», рядок під формою не потрібен */
.wpcf7 form.sent .wpcf7-response-output { display: none; }

/* Вікно «Дякуємо» */
.modal--notice { align-items: center; padding: 16px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal--notice.is-open { animation: ew-fade-in .25s ease; }
.notice { max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 32px 32px; text-align: center; }
.modal--notice.is-shown .notice { animation: ew-pop-in .35s cubic-bezier(.2, .9, .3, 1.2); }
.notice .modal__title { padding: 0; }
.notice__text { color: var(--text); }
.notice .btn { min-width: 160px; margin-top: 8px; }
.notice__icon { width: 76px; height: 76px; display: block; margin-bottom: 4px; }
.notice__icon svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.notice__ring { stroke: var(--mint-d); fill: var(--mint-t); stroke-dasharray: 151; stroke-dashoffset: 0; }
.notice__tick { stroke: var(--mint-d); stroke-dasharray: 36; stroke-dashoffset: 0; }
.modal--notice.is-shown .notice__ring { animation: ew-draw-ring .5s ease both; }
.modal--notice.is-shown .notice__tick { animation: ew-draw-tick .35s .4s ease both; }
@keyframes ew-fade-in { from { opacity: 0; } }
@keyframes ew-pop-in { from { opacity: 0; transform: translateY(12px) scale(.94); } }
@keyframes ew-draw-ring { from { stroke-dashoffset: 151; } }
@keyframes ew-draw-tick { from { stroke-dashoffset: 36; } }
@media (max-width: 767px) { .modal--notice { align-items: center; padding: 16px; } .modal--notice .modal__box { border-radius: var(--r-xl); padding: 40px 20px 24px; } }

/* Те, що робили стилі CF7 (вони вимкнені в inc/forms.php) */
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output { background: var(--orange-t); color: var(--orange-d); border: 0; }
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { background: #FDECEC; color: #B3261E; border: 0; }
.wpcf7-form-control-wrap { position: relative; }

/* Переглядач фото й документів (main.js, [data-lb]) */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(6, 28, 37, .94); color: var(--white); opacity: 0; transition: opacity .2s ease; }
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.lb__count { font-weight: 600; font-size: 14px; color: #A9C3CC; font-variant-numeric: tabular-nums; }
.lb__close { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--white); font-size: 28px; line-height: 1; transition: background-color .2s; }
.lb__close:hover { background: rgba(255, 255, 255, .2); }
.lb__stage { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; margin: 0; padding: 0 8px; }
.lb__img { max-width: 100%; max-height: 100%; min-height: 0; flex: 0 1 auto; object-fit: contain; border-radius: 10px; opacity: 0; transform: scale(.98); transition: opacity .25s ease, transform .25s ease; user-select: none; -webkit-user-drag: none; }
.lb__img.is-in { opacity: 1; transform: none; }
.lb--doc .lb__img { background: var(--white); padding: 8px; }
.lb__cap { flex: none; max-width: 720px; text-align: center; font-size: 15px; color: #D5E6EB; }
.lb__nav { grid-row: 2; align-self: center; justify-self: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--white); font-size: 34px; line-height: 1; transition: background-color .2s; }
.lb__nav:hover { background: var(--cyan-d); }
.lb__nav[hidden] { display: none; }
.lb__nav--prev { grid-column: 1; }
.lb__nav--next { grid-column: 3; }
.lb__thumbs { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; padding: 14px 18px 18px; overflow-x: auto; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumb { flex: none; width: 64px; height: 48px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .2s, border-color .2s; }
.lb--doc .lb__thumb { width: 40px; height: 56px; background: var(--white); }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumb:hover { opacity: .9; }
.lb__thumb.is-on { opacity: 1; border-color: var(--mint); }
.works__item { cursor: zoom-in; }
@media (max-width: 767px) {
	.lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
	.lb__nav { position: absolute; bottom: 86px; width: 44px; height: 44px; font-size: 28px; }
	.lb__nav--prev { left: 16px; } .lb__nav--next { right: 16px; }
	.lb__stage { padding: 0 6px 60px; }
	.lb__thumbs { justify-content: flex-start; }
}
