:root {
    --bg: #f4f5f0;
    --surface: #ffffff;
    --ink: #20231f;
    --muted: #858b80;
    --line: #e6e9e1;
    --lime: #d7ff52;
    --lime-dark: #b8e62f;
    --dark: #20251f;
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

.container {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

/* HEADER */
.header {
    height: 82px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 800; letter-spacing: -1.2px; }
.logo-symbol { width: 36px; height: 36px; background: var(--lime); border-radius: 12px; display: grid; place-items: center; font-size: 21px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 700; color: #656b62; }
.nav a:hover { color: #111; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.city-button { border: 0; background: #f4f5f0; border-radius: 12px; padding: 12px 16px; font-size: 12px; font-weight: 700; }
.login-button { border: 0; background: var(--dark); color: white; border-radius: 12px; padding: 13px 19px; font-size: 12px; font-weight: 800; }

/* HERO */
.hero { padding: 38px 0 46px; }
.hero-panel {
    background: var(--dark); color: white; border-radius: 28px; min-height: 340px;
    position: relative; overflow: hidden; padding: 52px 56px; display: flex; align-items: center;
}
.hero-panel:before { content: ""; position: absolute; width: 410px; height: 410px; border: 1px solid rgba(215,255,82,.22); border-radius: 50%; right: 95px; top: -170px; }
.hero-panel:after { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(215,255,82,.17); border-radius: 50%; right: 150px; top: -115px; }
.hero-content { max-width: 680px; position: relative; z-index: 2; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.7px; margin-bottom: 20px; }
.hero-label:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.hero h1 { margin: 0; max-width: 670px; font-size: clamp(34px, 5vw, 57px); line-height: 1.12; letter-spacing: -2.8px; font-weight: 800; }
.hero h1 span { color: var(--lime); }
.hero-description { color: #b6bcb2; font-size: 14px; line-height: 1.8; margin: 19px 0 27px; max-width: 490px; }
.hero-bottom { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.hero-cta { background: var(--lime); color: #20251f; padding: 16px 23px; border-radius: 13px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 15px; transition: .2s; }
.hero-cta:hover { background: white; transform: translateY(-2px); }
.hero-note { font-size: 11px; color: #9da49a; }
.hero-note strong { color: white; display: block; font-size: 16px; margin-bottom: 2px; }
.hero-decoration { position: absolute; right: 75px; bottom: 0; width: 310px; height: 265px; z-index: 1; }
.hero-decoration .big-number { position: absolute; right: 0; bottom: -32px; font-size: 240px; line-height: 1; font-weight: 800; letter-spacing: -20px; color: rgba(215,255,82,.10); }
.hero-decoration .floating-card { position: absolute; right: 0; top: 35px; width: 190px; padding: 18px; background: var(--lime); color: var(--dark); border-radius: 18px; transform: rotate(7deg); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.floating-card small { display: block; font-size: 10px; font-weight: 800; opacity: .65; margin-bottom: 10px; }
.floating-card strong { display: block; font-size: 23px; line-height: 1.2; }
.floating-card span { display: block; font-size: 10px; margin-top: 12px; }

/* SEARCH */
.search-section { margin-top: -5px; position: relative; z-index: 3; }
.search-box { background: white; border: 1px solid var(--line); border-radius: 19px; padding: 12px; display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 10px; box-shadow: 0 15px 45px rgba(36,44,30,.06); }
.search-field { min-width: 0; padding: 8px 17px; border-right: 1px solid var(--line); }
.search-field label { display: block; font-size: 10px; font-weight: 800; color: #92988e; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.search-field input, .search-field select { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 13px; font-weight: 700; background: transparent; min-width: 0; }
.search-field input::placeholder { color: #b5bbb1; }
.search-button { background: var(--lime); border: 0; border-radius: 13px; padding: 0 30px; font-size: 12px; font-weight: 800; transition: .2s; }
.search-button:hover { background: var(--lime-dark); }

/* SECTION HEAD */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 58px 0 25px; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; color: #92998d; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 30px; letter-spacing: -1.4px; font-weight: 800; }
.section-description { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* CATEGORIES */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category {
    min-width: 0; min-height: 92px; border: 1px solid var(--line); background: white; border-radius: 17px;
    padding: 17px 14px; display: flex; flex-direction: column; justify-content: space-between; transition: .2s;
    text-align: left; color: var(--ink);
}
.category:hover, .category.active { border-color: var(--lime-dark); background: #f5ffd9; transform: translateY(-3px); }
.category-icon { width: 34px; height: 34px; background: #f1f3ec; border-radius: 11px; display: grid; place-items: center; font-size: 17px; }
.category-icon svg { width: 18px; height: 18px; display: block; }
.category:hover .category-icon svg, .category.active .category-icon svg { color: var(--lime-dark); }
.category.active .category-icon { background: var(--lime); }
.category-name { font-size: 10px; line-height: 1.4; font-weight: 800; }

/* CATALOG */
.catalog { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 54px; }
.filters { background: white; border: 1px solid var(--line); border-radius: 19px; padding: 22px; position: sticky; top: 20px; }
.filter-title { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 800; margin-bottom: 24px; }
.reset-button { border: 0; background: none; color: #92998d; font-size: 10px; font-weight: 700; }
.filter-group { border-top: 1px solid var(--line); padding: 19px 0; }
.filter-group:last-child { padding-bottom: 0; }
.filter-group h4 { font-size: 11px; font-weight: 800; margin: 0 0 14px; }
.filter-option { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #656d62; margin: 11px 0; cursor: pointer; }
.filter-option input { accent-color: #a8d629; width: 15px; height: 15px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs input { width: 100%; min-width: 0; border: 1px solid var(--line); background: #fafbf8; border-radius: 9px; padding: 10px; outline: none; font-size: 11px; }
.catalog-content { min-width: 0; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 19px; }
.results-count { font-size: 12px; color: var(--muted); }
.results-count strong { color: var(--ink); }
.sort-select { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 11px 13px; font-size: 11px; font-weight: 700; outline: none; max-width: 200px; }

/* MASTER CARDS */
.master-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.master-card { background: white; border: 1px solid var(--line); border-radius: 19px; padding: 15px; min-width: 0; transition: .22s; position: relative; }
.master-card:hover { border-color: #c8d1bd; transform: translateY(-3px); box-shadow: 0 13px 30px rgba(30,40,20,.06); }
.master-top { display: flex; align-items: flex-start; gap: 14px; }
.master-photo { width: 92px; height: 105px; flex: 0 0 92px; border-radius: 14px; overflow: hidden; background: #eef0e9; }
.master-photo img { width: 100%; height: 100%; object-fit: cover; }
.master-info { min-width: 0; flex: 1; padding-top: 3px; }
.master-status { display: inline-flex; align-items: center; gap: 5px; color: #6d9c28; font-size: 9px; font-weight: 800; margin-bottom: 7px; }
.master-status:before { content: ""; width: 6px; height: 6px; background: #9bcf36; border-radius: 50%; }
.master-name { font-size: 15px; font-weight: 800; letter-spacing: -.4px; line-height: 1.3; margin: 0 0 5px; }
.master-profession { color: #858c80; font-size: 10px; line-height: 1.5; }
.master-rating { display: flex; align-items: center; gap: 5px; margin-top: 9px; font-size: 10px; font-weight: 800; }
.master-rating .star { color: #e5a82b; }
.master-rating .reviews { color: #9ba195; font-weight: 500; }
.master-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.master-tag { background: #f2f4ee; border-radius: 7px; padding: 6px 8px; font-size: 9px; font-weight: 700; color: #687063; }
.master-bottom { border-top: 1px solid var(--line); padding-top: 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.master-price small { display: block; color: #9aa094; font-size: 9px; margin-bottom: 3px; }
.master-price strong { font-size: 17px; letter-spacing: -.6px; }
.master-price span { color: #90968b; font-size: 10px; font-weight: 500; }
.master-open { display: inline-flex; align-items: center; gap: 9px; background: var(--dark); color: white; border-radius: 10px; padding: 11px 13px; font-size: 10px; font-weight: 800; transition: .2s; }
.master-open:hover { background: #414b3a; }
.master-open span { color: var(--lime); }
.favorite { position: absolute; right: 14px; top: 14px; width: 29px; height: 29px; border: 0; background: rgba(255,255,255,.94); border-radius: 9px; color: #8b9285; font-size: 16px; z-index: 2; }
.favorite.active { color: #ed5a5a; }

/* PROMO */
.join-banner { margin: 55px 0 65px; background: var(--lime); border-radius: 23px; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 25px; position: relative; overflow: hidden; }
.join-banner:after { content: "↗"; position: absolute; right: 300px; top: -70px; font-size: 220px; font-weight: 800; color: rgba(32,37,31,.06); line-height: 1; }
.join-text { position: relative; z-index: 1; }
.join-text small { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; }
.join-text h2 { margin: 8px 0 7px; font-size: 25px; letter-spacing: -1px; }
.join-text p { margin: 0; color: #596247; font-size: 12px; }
.join-button { position: relative; z-index: 1; background: var(--dark); color: white; border-radius: 12px; padding: 15px 22px; font-size: 11px; font-weight: 800; white-space: nowrap; }

/* EMPTY */
.empty-state { display: none; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 45px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 8px; }

/* FOOTER */
.footer { background: var(--dark); color: white; padding: 42px 0 25px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 35px; }
.footer-brand p { color: #a3ab9e; max-width: 290px; font-size: 11px; line-height: 1.8; }
.footer-links { display: flex; gap: 65px; }
.footer-column strong { display: block; font-size: 11px; margin-bottom: 15px; }
.footer-column a { display: block; color: #a3ab9e; font-size: 10px; margin: 10px 0; }
.footer-column a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; color: #858e80; font-size: 10px; }

/* MOBILE FILTER */
.mobile-filter { display: none; width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: white; font-size: 11px; font-weight: 800; margin-bottom: 12px; }

/* ==================== КАРТОЧКА СПЕЦИАЛИСТА (master.php) ==================== */
.sv-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.sv-header { background: #fff; border-bottom: 1px solid var(--line); }
.sv-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.sv-brand { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 800; letter-spacing: -1.1px; color: var(--ink); }
.sv-brand-mark { width: 36px; height: 36px; background: var(--lime); border-radius: 12px; display: grid; place-items: center; font-size: 19px; font-weight: 800; }
.sv-brand-name { font-weight: 800; }
.sv-header-right { display: flex; align-items: center; gap: 20px; }
.sv-be-master { font-size: 12px; font-weight: 800; color: var(--lime-dark); }
.sv-be-master:hover { color: #8fb822; }
.sv-phone { font-size: 13px; font-weight: 800; }
.sv-main { flex: 1; }
.sv-main--narrow { max-width: 860px; margin: 0 auto; width: 100%; padding: 0 24px 60px; }
.sv-crumb { padding-top: 26px; font-size: 12px; font-weight: 700; color: var(--lime-dark); }
.sv-crumb a { color: var(--lime-dark); }
.sv-crumb a:hover { color: #8fb822; }

.sv-prof { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.sv-prof__head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; }
.sv-prof__img { width: 112px; height: 126px; border-radius: 16px; overflow: hidden; background: #eef0e9; flex: 0 0 112px; }
.sv-prof__img img { width: 100%; height: 100%; object-fit: cover; }
.sv-avatar { width: 48px; height: 48px; border-radius: 50%; background: #eef0e9; color: #6a7064; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.sv-avatar--lg { width: 72px; height: 72px; font-size: 30px; }
.sv-prof__info { min-width: 0; }
.sv-prof__name { font-size: 23px; font-weight: 800; letter-spacing: -.8px; }
.sv-prof__title { color: #8a9186; font-size: 12px; margin-top: 2px; }
.sv-prof__rating { display: flex; align-items: center; gap: 7px; margin-top: 13px; font-size: 12px; font-weight: 800; }
.sv-prof__rating b { font-size: 16px; }
.sv-prof__rev { color: #9ba195; font-weight: 500; }
.sv-stars, .sv-rating-stars, .sv-review__stars { display: inline-flex; gap: 2px; }
.sv-ic { width: 15px; height: 15px; fill: currentColor; }
.sv-ic--star { fill: #e5a82b; }
.sv-prof__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.sv-meta-chip { display: inline-flex; align-items: center; gap: 6px; background: #f2f4ee; border-radius: 9px; padding: 7px 10px; font-size: 10px; font-weight: 700; color: #687063; }
.sv-meta-chip svg { width: 13px; height: 13px; color: #8a9186; }
.sv-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; padding: 7px 10px; font-size: 10px; font-weight: 800; }
.sv-badge--verify { background: #eaf7dc; color: #5d8a24; }
.sv-prof__price { margin-top: 14px; font-size: 17px; font-weight: 800; letter-spacing: -.5px; }
.sv-prof__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: #fafbf8; border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 170px; }
.sv-prof__contact-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #9aa094; }
.sv-prof__phone { font-size: 14px; font-weight: 800; }
.sv-order-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--dark); color: #fff; border: 0; border-radius: 11px; padding: 13px 20px; font-size: 12px; font-weight: 800; cursor: pointer; transition: .2s; }
.sv-order-btn:hover { background: #414b3a; }
.sv-order-btn--full { width: 100%; }
.sv-order-btn--full span { color: var(--lime); }

.sv-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.sv-section__title { margin: 0 0 17px; font-size: 17px; font-weight: 800; letter-spacing: -.5px; }
.sv-services-list { list-style: none; margin: 0; padding: 0; }
.sv-service-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sv-service-row:last-child { border-bottom: 0; }
.sv-service-price { color: var(--lime-dark); font-weight: 800; white-space: nowrap; }
.sv-desc { margin: 0; color: #5c6458; font-size: 13px; line-height: 1.75; }
.sv-reviews { display: flex; flex-direction: column; gap: 12px; }
.sv-review { background: #f8f9f5; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; }
.sv-review__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sv-review__name { font-size: 12px; font-weight: 800; }
.sv-review__stars svg { width: 13px; height: 13px; fill: #e5a82b; }
.sv-review__text { margin: 0; font-size: 12px; line-height: 1.7; color: #5c6458; }

.sv-footer { background: var(--dark); color: #8a9287; margin-top: auto; }
.sv-footer-inner { max-width: 860px; margin: 0 auto; width: 100%; padding: 24px; font-size: 11px; }

/* Модалка заказа */
.sv-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20,26,16,.5); }
.sv-modal.open { display: flex; }
.sv-modal__box { width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 28px; position: relative; }
.sv-modal__close { position: absolute; right: 16px; top: 14px; border: 0; background: none; font-size: 26px; line-height: 1; color: #9aa094; cursor: pointer; }
.sv-modal__box h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.7px; }
.sv-modal__master { color: #8a9186; font-size: 12px; margin-bottom: 18px; }
.sv-frow { margin-bottom: 14px; }
.sv-frow label { display: block; font-size: 11px; font-weight: 800; color: #7a8176; margin-bottom: 6px; }
.sv-frow select, .sv-frow input, .sv-frow textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; padding: 12px 13px; font-size: 13px; outline: none; }
.sv-frow select:focus, .sv-frow input:focus, .sv-frow textarea:focus { border-color: var(--lime-dark); background: #fff; }

@media (max-width: 700px) {
    .sv-prof__head { grid-template-columns: 1fr; }
    .sv-prof__img { width: 92px; height: 104px; flex-basis: 92px; }
    .sv-prof__contact { min-width: 0; }
    .sv-header-inner { flex-wrap: wrap; gap: 10px; }
}

@media(max-width: 1100px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-decoration { right: 15px; opacity: .65; }
    .catalog { grid-template-columns: 210px minmax(0,1fr); gap: 18px; }
}

@media(max-width: 800px) {
    .nav { display: none; }
    .hero-panel { padding: 40px 32px; }
    .hero-decoration { right: -90px; opacity: .25; }
    .catalog { grid-template-columns: 1fr; }
    .filters { display: none; position: static; }
    .filters.open { display: block; }
    .mobile-filter { display: block; }
    .master-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-links { gap: 30px; }
}

@media(max-width: 560px) {
    .container { width: min(100% - 28px, 1320px); }
    .header { height: 68px; }
    .logo { font-size: 19px; }
    .logo-symbol { width: 32px; height: 32px; }
    .city-button { display: none; }
    .login-button { padding: 11px 13px; font-size: 10px; }

    .hero { padding: 18px 0 28px; }
    .hero-panel { min-height: 325px; padding: 32px 23px; border-radius: 21px; }
    .hero h1 { font-size: 37px; letter-spacing: -1.9px; }
    .hero-description { font-size: 12px; }
    .hero-decoration { display: none; }

    .search-box { grid-template-columns: 1fr; gap: 0; padding: 8px; }
    .search-field { border-right: 0; border-bottom: 1px solid var(--line); padding: 11px 12px; }
    .search-button { min-height: 48px; margin-top: 8px; }

    .section-head { margin-top: 39px; }
    .section-head h2 { font-size: 24px; }
    .category-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
    .category { min-height: 92px; padding: 12px; }
    .category-icon { width: 30px; height: 30px; }

    .catalog { margin-top: 35px; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
    .sort-select { width: 100%; max-width: none; }

    .master-list { grid-template-columns: 1fr; }
    .master-card { padding: 13px; }
    .master-photo { width: 84px; height: 95px; flex-basis: 84px; }
    .master-name { font-size: 14px; }

    .join-banner { margin: 35px 0 40px; padding: 26px 22px; align-items: flex-start; flex-direction: column; }
    .join-text h2 { font-size: 22px; }
    .join-button { width: 100%; text-align: center; }

    .footer-top { flex-direction: column; }
    .footer-links { justify-content: space-between; gap: 15px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
}