/*
Theme Name: ART BAZAAR
Theme URI: https://artbazaar.example/
Author: Konus / Danchenko
Author URI: https://konusua.com/
Description: Тема ART BAZAAR — експертиза, оцінка та переміщення творів мистецтва. Конвертована зі статичного HTML у повноцінну WordPress-тему.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artbazaar
Tags: business, custom-menu, featured-images, translation-ready
*/

/* ===========================================================
   ART BAZAAR — design system (from Figma)
   Fonts: Manrope (headings) + Inter (body)
   =========================================================== */

:root {
  /* Brand */
  --brand-100: #F2CB4A;
  --brand-80:  #F5D56E;
  --brand-60:  #F7DF92;
  --brand-20:  #FBF2D0;
  --brand-10:  #FDF8E7;

  /* Black / text */
  --black-100: #161616;
  --black-80:  #27272A;
  --black-60:  #747474;
  --black-40:  #9F9F9F;
  --black-20:  #D9D9D9;

  /* Dark backgrounds */
  --dark-100: #0B0B0B;
  --dark-80:  #1E1D1C;
  --dark-60:  #393838;

  /* Semantic */
  --white: #FFFFFF;
  --red:   #E53E3E;

  /* Surfaces */
  --surface-gray: #F5F5F5;
  --border: #E6E6E6;

  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container: 1240px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0,0,0,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--black-100);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Typography scale ---------- */
.d1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.02em; }
.d2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.02em; }
.h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.01em; }
.h4 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.25; }
.h5 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.3; }
.p1 { font-size: 16px; }
.p2 { font-size: 14px; }
.p3 { font-size: 12px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--black-100);
  background: var(--brand-100);
  padding: 6px 12px;
  border-radius: 4px;
}
.eyebrow--ghost {
  background: transparent;
  color: var(--brand-100);
  padding: 0;
}

.muted { color: var(--black-60); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--gray { background: var(--surface-gray); }
.section--dark { background: var(--dark-80); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  padding: 15px 26px; border-radius: 8px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand-100); color: var(--black-100); }
.btn--primary:hover { background: var(--brand-80); box-shadow: 0 8px 20px rgba(242,203,74,.4); }
.btn--dark { background: var(--dark-80); color: var(--white); }
.btn--dark:hover { background: var(--black-100); }
.btn--ghost { border: 1px solid var(--black-20); color: var(--black-100); background: var(--white); }
.btn--ghost:hover { border-color: var(--black-100); }

/* ===========================================================
   HEADER
   =========================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo__mark { width: 46px; height: 46px; }
.logo__text {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: .02em; line-height: 1;
}
.nav { display: flex; align-items: center; gap: 30px; margin-left: 20px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--black-80); transition: color .2s; position: relative; }
.nav a:hover, .nav a.is-active { color: var(--black-100); }
.nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -28px; height: 2px; background: var(--brand-100);
}
.nav__item { position: relative; }
.nav__caret { font-size: 10px; opacity: .6; }
.nav__dropdown {
  position: absolute; top: calc(100% + 14px); left: -16px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.nav__dropdown a:hover { background: var(--surface-gray); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.langswitch {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--black-20); border-radius: 8px;
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.langswitch__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; min-width: 120px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
  z-index: 60;
}
.langswitch.is-open .langswitch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.langswitch__menu a { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--black-100); }
.langswitch__menu a:hover { background: var(--surface-gray); }
.langswitch__menu a.is-active { color: var(--black-100); font-weight: 700; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--black-100); transition: .25s; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { padding: 72px 0 96px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: stretch;
}
.hero__eyebrow { margin-bottom: 28px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .light { font-weight: 400; }
.hero__lead { max-width: 540px; color: var(--black-80); margin-bottom: 14px; }
.hero__lead strong { font-weight: 600; color: var(--black-100); }
.hero__sub { max-width: 540px; color: var(--black-60); margin-bottom: 40px; }
.hero__media { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* page hero (Експертиза) */
.pagehero { padding: 56px 0 80px; }
.pagehero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pagehero h1 { margin: 22px 0; }
.pagehero p { color: var(--black-60); max-width: 480px; margin-bottom: 36px; }
.pagehero__media { aspect-ratio: 1/.78; width: 100%; object-fit: cover; }

/* ---------- image placeholders ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.12)),
    repeating-linear-gradient(45deg, var(--black-20) 0 2px, transparent 2px 18px),
    var(--surface-gray);
}
.media::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--black-60);
  letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 12px;
}
.media--dark {
  background:
    linear-gradient(135deg, rgba(0,0,0,.3), rgba(0,0,0,.55)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 18px),
    var(--dark-60);
}
.media--dark::after { color: rgba(255,255,255,.7); }

/* ===========================================================
   SERVICES (Наші послуги)
   =========================================================== */
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head .h3 { margin-bottom: 16px; }
.title-split b { font-weight: 800; }
.title-split span { font-weight: 800; color: var(--black-100); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.svc-card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); height: 240px; overflow: hidden;
  border-right: 1px solid var(--border);
}
.services .svc-card:last-child { border-right: none; }
.svc-card__body { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.svc-card__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.svc-card__arrow {
  width: 28px; height: 28px; transition: transform .2s ease; color: var(--black-100);
}
.svc-card:hover .svc-card__arrow { transform: translate(4px,-4px); }
.svc-card__media { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===========================================================
   FOR WHOM (dark with image overlay)
   =========================================================== */
.forwhom {
  position: relative; color: var(--white);
  background: var(--dark-80);   /* заливка по краям окна, за пределами ширины сайта */
  padding: 0;
}
.forwhom .container {
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(11,11,11,.05) 0%, rgba(11,11,11,.15) 40%, rgba(11,11,11,.6) 100%),
    url('images/work.webp') center / cover no-repeat,
    var(--dark-60);
  padding: 72px 32px; min-height: 660px;
}
.forwhom__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.forwhom__head .d2 { margin-top: 18px; max-width: 620px; }
.forwhom__cards { margin-top: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.forwhom__card {
  background: rgba(20,20,20,.6); padding: 26px 28px; min-height: 96px;
  display: flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 22px;
  transition: background .2s ease;
}
.forwhom__card:hover { background: rgba(242,203,74,.14); }

/* ===========================================================
   ABOUT
   =========================================================== */
.about__top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 48px; }
.about__top .d2 { margin-top: 18px; }
.about__col p { color: var(--black-80); margin-bottom: 18px; }
.about__media { aspect-ratio: 16/6.6; margin-bottom: 48px; }
.values { display: grid; grid-template-columns: repeat(4,1fr); gap: 36px; }
.value { text-align: center; }
.value h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.value p { color: var(--black-60); font-size: 14px; }

/* ===========================================================
   PARTNERS / accordion
   =========================================================== */
.partners__top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 44px; }
.partners__top .d2 { margin-top: 18px; max-width: 540px; }
.partners__top p { color: var(--black-60); }
.partners__body { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 18px; text-align: left;
}
.acc-head .plus { font-size: 22px; color: var(--black-60); transition: transform .25s ease; }
.acc-item.is-open .acc-head .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body p { padding: 0 24px 22px; color: var(--black-60); font-size: 14px; }
.acc-item.is-open .acc-body { max-height: 240px; }
.partners__media { aspect-ratio: 1/.92; }

/* ===========================================================
   BLOG
   =========================================================== */
.blog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.blog__head .head-left { max-width: 640px; }
.blog__head .d2 { margin: 16px 0 14px; }
.blog__head p { color: var(--black-60); }
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post { display: flex; flex-direction: column; }
.post__media { aspect-ratio: 16/9; margin-bottom: 18px; }
.post__date { font-size: 12px; color: var(--black-60); margin-bottom: 8px; }
.post__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.post__excerpt { font-size: 14px; color: var(--black-60); margin-bottom: 14px; flex: 1; }
.tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--brand-100); color: var(--black-100); padding: 5px 10px; border-radius: 4px;
}

/* ===========================================================
   TOPIC FILTER (blog dropdown)
   =========================================================== */
.topicfilter { position: relative; }
.topicfilter__toggle {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; min-width: 200px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--black-100); cursor: pointer;
  transition: border-color .2s ease;
}
.topicfilter__toggle:hover { border-color: var(--black-100); }
.topicfilter__label { flex: 1; text-align: left; }
.topicfilter__caret { color: var(--black-60); transition: transform .2s ease; }
.topicfilter.is-open .topicfilter__caret { transform: rotate(180deg); }

.topicfilter__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 240px; z-index: 60;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.topicfilter.is-open .topicfilter__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.topicfilter__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 6px;
  font-size: 14px; color: var(--black-100);
}
.topicfilter__menu a:hover { background: var(--surface-gray); }
.topicfilter__menu a.is-active { font-weight: 700; }
.topicfilter__count {
  font-size: 11px; font-weight: 700;
  background: var(--brand-100); color: var(--black-100);
  padding: 2px 8px; border-radius: 4px;
}

@media (max-width: 640px) {
  .topicfilter { width: 100%; }
  .topicfilter__toggle { width: 100%; }
  .topicfilter__menu { left: 0; right: 0; }
}


/* ===========================================================
   EXPERTISE grids (research / documents)
   =========================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.feature {
  background: var(--white); padding: 30px 28px 26px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.section--gray .feature { background: var(--surface-gray); }
.feature__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.feature__icon {
  width: 44px; height: 44px; border-radius: 6px; background: var(--brand-100);
  display: flex; align-items: center; justify-content: center; color: var(--black-100);
}

/* ---- legal CTA banner ---- */
.legal {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 0;
  background: var(--brand-100); border-radius: var(--radius); overflow: hidden;
}
.legal__body { padding: 44px 40px; }
.legal__body h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px,2.2vw,26px); line-height: 1.25; margin-bottom: 14px; }
.legal__body p { color: rgba(0,0,0,.7); font-size: 15px; margin-bottom: 26px; max-width: 560px; }
.legal__media { background: var(--dark-60); min-height: 220px; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===========================================================
   CONTACT (dark)
   =========================================================== */
.contact { position: relative; color: var(--white);
  background:
    linear-gradient(180deg, rgba(11,11,11,.5), rgba(11,11,11,.62)),
    url('images/form.webp') center / cover no-repeat,
    var(--dark-60);
  padding: 80px 0;
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { margin: 18px 0 40px; max-width: 460px; }
.contact__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.contact__block h5 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.contact__block p { font-size: 14px; color: var(--black-20); margin-bottom: 4px; }
.contact__block .label { font-size: 12px; color: var(--brand-100); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }

/* form */
.form { background: #3a322a; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: 13px 14px; color: var(--white); font-family: inherit; font-size: 14px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.6); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-100); }
.field textarea { resize: vertical; min-height: 84px; }
.toggle { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.toggle button { padding: 13px; font-size: 14px; font-weight: 600; color: var(--black-20); background: var(--dark-100); transition: .2s; }
.toggle button.is-active { background: var(--brand-100); color: var(--black-100); }
.form .btn { width: 100%; padding: 16px; font-size: 15px; }
.form__note { text-align: center; font-size: 13px; color: var(--black-40); margin-top: 14px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1.6fr .8fr; gap: 40px; align-items: start; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 14px; color: var(--black-80); }
.footer__nav a:hover { color: var(--black-100); }
.footer__contacts p { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer__addr p { font-size: 14px; color: var(--black-60); margin-bottom: 12px; }
.footer__addr b { color: var(--black-100); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 8px; background: var(--black-100); color: var(--white);
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.socials a:hover { background: var(--brand-100); color: var(--black-100); }
.footer__copy { font-size: 13px; color: var(--black-60); }

/* ===========================================================
   THANK-YOU MODAL
   =========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(11,11,11,.55); backdrop-filter: blur(2px);
}
.modal.is-open { display: flex; animation: fade .2s ease; }
.modal__card {
  background: var(--white); border-radius: 18px; max-width: 480px; width: 100%;
  padding: 40px 36px; text-align: center; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: pop .25s ease;
}
.modal__close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; color: var(--black-60); font-size: 22px; }
.modal__icon { width: 64px; height: 64px; border-radius: 10px; background: var(--brand-100); margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; }
.modal__card h3 { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin-bottom: 14px; }
.modal__card > p { color: var(--black-60); margin-bottom: 24px; }
.modal__hint { background: var(--brand-10); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: var(--black-80); margin-bottom: 22px; text-align: left; display: flex; gap: 8px; }
.modal__hint::before { content: '•'; color: var(--brand-100); font-weight: 900; }
.modal .btn { width: 100%; padding: 16px; font-size: 15px; margin-bottom: 16px; }
.modal__note { font-size: 13px; color: var(--black-60); }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }

/* page-load reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .nav, .langswitch span:last-child { display: none; }
  .burger { display: flex; }
  .header__inner { height: 72px; }
  .hero__grid, .pagehero__grid, .about__top, .partners__body, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .values { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .services, .forwhom__cards, .feature-grid, .posts { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal__media { min-height: 160px; }
  /* mobile nav drawer */
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--border); padding: 16px 32px 24px; margin: 0;
  }
  .nav.is-open a.is-active::after { display: none; }
  .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 4px 16px; min-width: 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .services, .forwhom__cards, .feature-grid, .posts, .values, .footer__grid, .contact__cols { grid-template-columns: 1fr; }
  .svc-card { grid-template-columns: 1fr; height: auto; }
  .svc-card__media { height: 200px; }
  .forwhom__head, .blog__head { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ===========================================================
   WordPress integration helpers (added during conversion)
   =========================================================== */

/* real featured / customizer images inside .media placeholders */
.has-thumb { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.has-thumb::after { display: none; }
.post__media-link { display: block; }
.post__media-link .post__media { width: 100%; }

/* keep menu links inheriting color when rendered by wp_nav_menu */
.nav a, .footer__nav a, .post__title a { color: inherit; }
.post__title a:hover { color: var(--black-60); }

/* accessibility — WP standard */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto; clip-path: none; color: #161616;
  display: block; height: auto; left: 6px; top: 6px; padding: 12px 18px;
  width: auto; z-index: 100000; border-radius: 8px; box-shadow: var(--shadow);
}

/* WP alignments */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter{ display: block; margin-left: auto; margin-right: auto; }
.alignwide  { max-width: 1100px; }

/* single post / page content */
.entry { max-width: 760px; margin: 0 auto; }
.entry__back { display: inline-block; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--black-60); }
.entry__back:hover { color: var(--black-100); }
.entry__head { margin-bottom: 32px; }
.entry__meta { font-size: 13px; color: var(--black-60); margin-top: 12px; }
.entry-content > * { margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); font-weight: 800; margin: 1.5em 0 .5em; line-height: 1.2; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--black-100); text-decoration: underline; text-decoration-color: var(--brand-100); }
.entry-content img, .entry-content figure { border-radius: var(--radius); }
.entry-content blockquote { border-left: 3px solid var(--brand-100); padding: 4px 0 4px 22px; color: var(--black-80); font-style: italic; }
.entry__thumb { aspect-ratio: 16/8; margin-bottom: 32px; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--black-80);
}
.pagination .page-numbers.current { background: var(--brand-100); border-color: var(--brand-100); color: var(--black-100); }
.pagination a.page-numbers:hover { border-color: var(--black-100); }

/* login page (wp_login_form markup) */
.login-wrap { max-width: 440px; margin: 0 auto; }
.login-wrap .form { background: var(--surface-gray); border-color: var(--border); }
.login-wrap #loginform p { margin-bottom: 18px; }
.login-wrap #loginform label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--black-100); }
.login-wrap #loginform input.input,
.login-wrap #loginform input[type="text"],
.login-wrap #loginform input[type="password"] {
  width: 100%; background: var(--white); border: 1px solid var(--black-20);
  border-radius: 8px; padding: 13px 14px; color: var(--black-100);
  font-family: inherit; font-size: 14px;
}
.login-wrap #loginform input:focus { outline: none; border-color: var(--brand-100); }
.login-wrap .login-remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--black-60); }
.login-wrap .login-remember label { margin: 0; font-weight: 500; color: var(--black-60); }
.login-wrap .login-remember input { width: auto; }
.login-wrap .login-submit .button,
.login-wrap #wp-submit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 16px; font-size: 15px; font-weight: 700;
  background: var(--brand-100); color: var(--black-100); border-radius: 8px;
  font-family: var(--font-body); transition: background .2s ease;
}
.login-wrap #wp-submit:hover { background: var(--brand-80); }
.login-wrap .form__note a { color: var(--black-80); text-decoration: underline; text-decoration-color: var(--brand-100); }

/* ===========================================================
   Contact Form 7 (inside the dark .contact form)
   =========================================================== */
.contact .wpcf7-form .field { margin-bottom: 18px; }
.contact .wpcf7-form .wpcf7-not-valid-tip { color: #ffb4b4; font-size: 12px; margin-top: 6px; }
.contact .wpcf7-form .wpcf7-not-valid { border-color: var(--red) !important; }
.contact .wpcf7-form .wpcf7-response-output {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; font-size: 13px;
  border: 1px solid rgba(255,255,255,.2); color: var(--black-20);
}
.contact .wpcf7-form.invalid .wpcf7-response-output,
.contact .wpcf7-form.spam .wpcf7-response-output,
.contact .wpcf7-form.failed .wpcf7-response-output { border-color: var(--red); color: #ffb4b4; }
.contact .wpcf7-form.sent .wpcf7-response-output { border-color: var(--brand-100); color: var(--brand-100); }
.contact .wpcf7-spinner { margin: 12px auto 0; display: block; }
/* CF7 wraps fields in spans — keep inputs full width */
.contact .wpcf7-form .wpcf7-form-control-wrap { display: block; }
.contact .wpcf7-form input.wpcf7-form-control,
.contact .wpcf7-form select.wpcf7-form-control,
.contact .wpcf7-form textarea.wpcf7-form-control {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: 13px 14px; color: var(--white); font-family: inherit; font-size: 14px;
}
.contact .wpcf7-form textarea.wpcf7-form-control { resize: vertical; min-height: 84px; }
.contact .wpcf7-form input:focus,
.contact .wpcf7-form select:focus,
.contact .wpcf7-form textarea:focus { outline: none; border-color: var(--brand-100); }
.contact .wpcf7-form input.wpcf7-submit { width: 100%; padding: 16px; font-size: 15px; }
/* ===========================================================
   Toggle (Україна / ЄС / Інше) у формі Contact Form 7.
   CF7 обгортає кнопки у <p>, через що grid ламається —
   розкладаємо кнопки у рівний ряд через flex.
   =========================================================== */
.contact .toggle { display: flex; gap: 0; }
.contact .toggle p { display: contents; margin: 0; }
.contact .toggle button { flex: 1 1 0; margin: 0; }

.pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Багатокрапка між номерами (span.page-numbers.dots) — без рамки й ховера */
.pagination .page-numbers.dots {
  border: 0;
  min-width: auto;
  color: var(--black-60);
}

/* ===== Навігація між записами (попередній / наступний) ===== */
.postnav {
  max-width: 760px;          /* як .entry */
  margin: 48px auto 0;
}
.postnav .nav-links {
  display: flex;
  gap: 20px;
}
.postnav .nav-previous,
.postnav .nav-next {
  flex: 1 1 0;               /* дві рівні колонки */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.postnav .nav-previous:hover,
.postnav .nav-next:hover {
  border-color: var(--black-100);
}
.postnav .nav-next { text-align: right; }
.postnav a {
  display: block;
  padding: 18px 20px;
}
.postnav__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--black-60);
  margin-bottom: 6px;
}
.postnav__title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--black-100);
  line-height: 1.35;
}
@media (max-width: 640px) {
  .postnav .nav-links { flex-direction: column; }
  .postnav .nav-next { text-align: left; }
}

/* ===== Search form ===== */
.searchform { display: flex; gap: 10px; align-items: stretch; }
.searchform__input {
  flex: 1; min-width: 220px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 14px; font-family: inherit; font-size: 14px;
  background: var(--white); color: var(--black-100);
}
.searchform__input:focus { outline: none; border-color: var(--brand-100); }
.searchform__btn { white-space: nowrap; }
@media (max-width: 640px) {
  .searchform { width: 100%; }
}

/* ===== Topic filter (blog) ===== */
.topicfilter__select {
  appearance: none; -webkit-appearance: none;
  background: var(--white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230b0b0b' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 44px 13px 16px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--black-100); cursor: pointer;
  transition: border-color .2s ease;
}
.topicfilter__select:hover { border-color: var(--black-100); }
.topicfilter__select:focus { outline: none; border-color: var(--brand-100); }
@media (max-width: 640px) {
  .topicfilter, .topicfilter__select { width: 100%; }
}
