/* ============ CostaBlanca Pros — дизайн-токены и базовые стили ============ */
:root {
  --ink: #102B3B;        /* основной текст */
  --ink-soft: #33505F;
  --ink-mute: #5E7684;
  --foam: #F1F5F6;       /* фон секций */
  --line: #DCE4E8;       /* границы */
  --azul: #1B5BC7;       /* основной синий */
  --azul-dark: #12439C;
  --azul-light: #E8EFFC;
  --amber: #F2A614;      /* «Verified» и ТОП */
  --amber-light: #FDF3DC;
  --pine: #128A63;       /* «свободен» / WhatsApp */
  --pine-light: #E3F4EE;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,43,59,.06), 0 8px 24px -12px rgba(16,43,59,.14);
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #fff; line-height: 1.55; }
h1, h2, h3, .logo { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; max-width: 34ch; }
h2 { font-size: 1.3rem; margin-top: 0; }
.h-small { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--azul); }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 0 48px; }
.muted { color: var(--ink-mute); }
.small { font-size: .86rem; }
.center { text-align: center; }
.hidden { display: none; }
.prewrap { white-space: pre-line; color: var(--ink-soft); }
.link { color: var(--azul); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); margin: 0 0 6px; }

/* --- Шапка --- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.logo { font-size: 1.1rem; color: var(--ink); text-decoration: none; margin: 0; }
.logo span { color: var(--azul); }
.logo-dot { display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: var(--amber); }
.nav { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-link:hover { color: var(--azul); }
.lang-select, .field { font: inherit; }
.lang-select { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; background: #fff; color: var(--ink-soft); }

/* --- Hero и фильтры --- */
.hero { background: var(--foam); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.hero-compact { padding: 28px 0 26px; }
.hero-sub { color: var(--ink-soft); max-width: 60ch; }
.breadcrumb { font-size: .88rem; color: var(--ink-mute); margin-bottom: 8px; }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--azul); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.filter-card { padding: 18px; margin-top: 18px; }
.filter-grid { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.filter-grid.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.filter-actions { margin-top: 14px; display: flex; align-items: center; gap: 14px; }
.field { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font-size: .95rem; color: var(--ink); background: #fff; }
.field:focus { outline: 2px solid var(--azul); outline-offset: 1px; border-color: var(--azul); }
textarea.field { resize: vertical; }
.date-field { max-width: 220px; margin-top: 10px; }

/* --- Чипы (языки, статусы) --- */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; user-select: none; }
.chip:hover { border-color: var(--azul); color: var(--azul); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip-active { border-color: var(--azul); background: var(--azul-light); color: var(--azul-dark); }
.chip:focus-within { outline: 2px solid var(--azul); outline-offset: 1px; }
.tag { display: inline-block; background: var(--foam); border-radius: 999px; padding: 3px 10px; font-size: .78rem; color: var(--ink-soft); }
.tag-link { text-decoration: none; }
.tag-link:hover { background: var(--azul-light); color: var(--azul-dark); }

/* --- Кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); padding: 10px 18px; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--azul-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--azul); color: var(--azul); }
.btn-whatsapp { background: var(--pine); color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.08); }
.btn-whatsapp::before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.4 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5s.8 1.9.8 2c.1.1.1.3 0 .5-.3.6-.7.9-.5 1.2.7 1.2 1.6 2 2.8 2.6.3.2.5.1.7-.1l.9-1c.2-.3.4-.2.7-.1l2.1 1c.3.2.5.2.6.4 0 .1 0 .7-.2 1.2z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.4 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5s.8 1.9.8 2c.1.1.1.3 0 .5-.3.6-.7.9-.5 1.2.7 1.2 1.6 2 2.8 2.6.3.2.5.1.7-.1l.9-1c.2-.3.4-.2.7-.1l2.1 1c.3.2.5.2.6.4 0 .1 0 .7-.2 1.2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn.wide { width: 100%; }

/* --- Сетка карточек --- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.results-count { margin: 0 0 14px; font-weight: 500; }

/* --- Карточка мастера --- */
.pro-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; transition: box-shadow .15s; }
.pro-card:hover { box-shadow: 0 4px 10px rgba(16,43,59,.08), 0 16px 34px -14px rgba(16,43,59,.22); }
.pro-card.is-promoted { border-color: var(--amber); }
.top-badge { position: absolute; top: -10px; right: 16px; background: var(--amber); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px; }
.pro-card-head { display: flex; gap: 12px; align-items: flex-start; }
.avatar { flex: 0 0 46px; height: 46px; display: grid; place-items: center; background: var(--azul-light); color: var(--azul-dark); font-family: var(--font-display); font-weight: 800; border-radius: var(--radius); }
.pro-card-title h3 { margin: 0; font-size: 1rem; }
.pro-card-title a { color: var(--ink); text-decoration: none; }
.pro-card-title a:hover { color: var(--azul); }
.pro-card-title p { margin: 2px 0 0; font-size: .86rem; }
.stretched::after { content: ''; position: absolute; inset: 0; }
.raised { position: relative; z-index: 1; }
.pro-bio { color: var(--ink-soft); font-size: .9rem; margin: 0; }

/* --- Бейджи статусов --- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 600; }
.badge-free { background: var(--pine-light); color: var(--pine); }
.badge-soon { background: var(--azul-light); color: var(--azul-dark); }
.badge-busy { background: var(--foam); color: var(--ink-mute); }
.badge-verified { background: var(--amber-light); color: var(--ink); }
.badge-plain { background: #fff; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }

/* Сигнатурный элемент: пульс «свободен сейчас» */
.dot.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; animation: pulse 1.8s cubic-bezier(.2,.6,.4,1) infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .6; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot.pulse::after { animation: none; opacity: 0; } }

.stars { font-weight: 600; font-size: .88rem; color: var(--ink); }
.stars::first-letter { color: var(--amber); }

/* --- Профиль --- */
.profile-head { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.contact-box { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.note { padding: 12px 14px; font-size: .88rem; color: var(--ink-mute); box-shadow: none; }
.profile-grid { display: grid; gap: 36px; grid-template-columns: 2fr 1fr; }
.profile-main section { margin-bottom: 36px; }
.portfolio-card { overflow: hidden; }
.portfolio-cover { height: 120px; background: linear-gradient(135deg, var(--azul-light), var(--foam) 55%, var(--amber-light)); display: flex; align-items: flex-end; padding: 10px; }
.portfolio-body { padding: 14px 16px; }
.portfolio-body h3 { font-size: .98rem; margin-bottom: 4px; }
.review { padding: 14px 16px; margin-top: 12px; }
.review-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lang-list { list-style: none; margin: 0; padding: 0; }
.lang-list li { display: flex; justify-content: space-between; padding: 5px 0; font-size: .92rem; }
.bullets { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--ink-soft); }

/* --- Формы/кабинет --- */
.narrow { max-width: 420px; }
.narrow-wide { max-width: 720px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form h1 { font-size: 1.5rem; }
.block { margin-bottom: 18px; }
.error { color: #C0392B; font-weight: 600; font-size: .9rem; }
.saved { color: var(--pine); font-weight: 600; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 38px; text-align: center; }
.empty.small { padding: 20px; text-align: left; }
.empty-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }

/* --- Подвал --- */
.site-footer { background: var(--foam); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 34px 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; line-height: 1.9; }
.footer-links a:hover { color: var(--azul); }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 14px 16px; font-size: .8rem; color: var(--ink-mute); }

/* --- Мобильные --- */
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .contact-box { width: 100%; }
}
