
:root{
  --bg:#f6f7fb; --surface:#fff; --text:#171528; --muted:#6d7186; --line:#e7e7f0;
  --primary:#5142d8; --accent:#ff5e87; --dark:#16132a; --soft:#f0f1f9; --gold:#ffbf1a;
  --success:#109c67; --danger:#cf3d63; --warning:#d7a100;
  --radius:22px; --shadow:0 16px 40px rgba(18,16,35,.08);
}
*{box-sizing:border-box} html,body{margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
a{color:var(--primary);text-decoration:none} img{max-width:100%;display:block}
.container{width:min(1280px,calc(100% - 48px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(0,0,0,.05)}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:18px}
.brand img{height:34px}
.main-nav{
    display:flex;
    gap:32px;
    align-items:center;
    font-weight:500;
    flex-wrap:wrap
}
.main-nav a{
    color:var(--text);
    text-decoration:none;
}
.btn{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--accent),#ff7f7f);color:#fff;border:none;border-radius:999px;padding:12px 22px;font-weight:700;cursor:pointer;box-shadow:0 12px 28px rgba(255,94,135,.28)}
.btn-small{padding:10px 16px}.btn-dark{background:var(--dark)}.full{width:100%}.text-link{font-weight:700}
.hero,.company-hero,.page-hero.compact{background-size:cover;background-position:center;color:#fff}.hero{padding:84px 0 96px}.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:center}
.eyebrow{display:inline-block;color:#ffb0c4;text-transform:uppercase;font-size:12px;letter-spacing:.16em;font-weight:700;margin-bottom:12px}
.hero h1,.page-hero h1,.company-hero h1{font-size:56px;line-height:1.05;margin:0 0 16px;font-weight:800}
.hero p,.page-subtitle{font-size:18px;max-width:700px;color:rgba(255,255,255,.88)}
.hero-search,.filters{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.hero-search input,.filters input,.filters select,.admin-form input,.admin-form textarea,.admin-form select{width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--text);font:inherit}
.hero-search input{max-width:360px}.hero-search-wide input{flex:1 1 320px}
.hero-card{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:28px;padding:28px;box-shadow:var(--shadow);backdrop-filter:blur(10px)}
.floating-score{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--primary);font-size:30px;font-weight:800;margin-bottom:20px}
.hero-stats{display:flex;gap:18px;margin-top:28px;flex-wrap:wrap}.hero-stats div{min-width:110px;background:rgba(255,255,255,.12);padding:14px 18px;border-radius:18px}.hero-stats strong{display:block;font-size:30px}.hero-stats span{font-size:13px;color:rgba(255,255,255,.78)}
.mini-review-list{display:grid;gap:10px;margin-top:16px}.mini-review{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.08)}.mini-review span{color:#ffd65a}
.section{padding:72px 0}.section.muted,.section-soft{background:#f0f2fb}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.section-head-tight{margin-bottom:18px}.section h2{font-size:38px;line-height:1.1;margin:0}
.category-card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.category-feature-card{background:#fff;border-radius:22px;box-shadow:var(--shadow);padding:24px;color:var(--text)}.category-feature-card h3{margin:14px 0 8px;font-size:21px}.category-feature-card p{margin:0;color:var(--muted)}.category-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#f4efff,#fff0f4);color:var(--primary);font-size:24px;font-weight:800}
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.company-card,.review-card,.content-card,.stat-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
.company-thumb{height:220px;background-size:cover;background-position:center;border-radius:var(--radius) var(--radius) 0 0}.company-card-body{padding:22px}.company-brand{display:flex;gap:14px;align-items:center;margin-bottom:16px}.compact-brand{align-items:flex-start}.company-brand img{width:72px;height:72px;object-fit:contain;border-radius:18px;background:#fff;padding:8px;border:1px solid var(--line)}.company-brand h3{margin:0 0 4px;font-size:22px}.company-brand p{margin:0;color:var(--muted)}
.rating-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:700;margin-bottom:12px}.rating-row strong{font-size:24px}.rating-row span{letter-spacing:.08em;color:var(--gold)}.rating-row small{color:var(--muted);font-weight:600}.small-rating strong{font-size:inherit}
.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.single-col-review-grid{grid-template-columns:1fr}.review-card{padding:22px}.review-card h3{margin:10px 0}.review-meta{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:var(--muted)}.review-card-wide p{white-space:pre-wrap}
.page-hero.compact{padding:64px 0;background:linear-gradient(135deg,#18112f,#5142d8)}.company-hero{padding:76px 0}.company-hero-inner{display:flex;align-items:center;gap:28px}.company-logo-large{width:130px;height:130px;object-fit:contain;background:#fff;border-radius:26px;padding:16px}.light small{color:rgba(255,255,255,.8)}.category-list{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.category-list span{background:rgba(255,255,255,.14);padding:8px 12px;border-radius:999px}
.two-col{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:24px}.narrow{max-width:860px}.content-card{padding:24px}.content-card h2,.content-card h3{margin-top:0}.rich-text p:last-child{margin-bottom:0}.sticky-sidebar{position:sticky;top:92px;height:max-content}.review-item{padding:0 0 22px;border-bottom:1px solid var(--line);margin-bottom:22px}.review-item:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.related-item{display:flex;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.related-item:last-child{border-bottom:none}.related-item img{width:56px;height:56px;object-fit:contain;background:#fff;border-radius:14px;padding:6px;border:1px solid var(--line)}
.site-footer{background:var(--dark);color:#fff;padding-top:44px;margin-top:72px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px;padding-bottom:26px}.footer-grid a,.footer-grid p{display:block;color:rgba(255,255,255,.78);margin:6px 0}.footer-logo{height:34px}.footer-bottom{padding:14px 0;border-top:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.64)}
.login-body{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#18112f,#5142d8)}.login-card{width:min(460px,calc(100% - 32px));background:#fff;padding:34px;border-radius:28px;box-shadow:var(--shadow)}.login-logo{height:34px;margin-bottom:18px}
.admin-body{background:#eff1f8}.admin-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.admin-sidebar{background:#151326;color:#fff;padding:28px;display:flex;flex-direction:column}.admin-brand{font-size:26px;font-weight:800;margin-bottom:28px}.admin-sidebar nav{display:grid;gap:8px}.admin-sidebar nav a{color:rgba(255,255,255,.85);padding:12px 14px;border-radius:14px}.admin-sidebar nav a:hover{background:rgba(255,255,255,.08)}.logout-form{margin-top:auto}.admin-main{padding:28px}.admin-head{margin-bottom:18px}.row-between{display:flex;justify-content:space-between;align-items:center;gap:18px}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:20px}.admin-stats-4{grid-template-columns:repeat(4,1fr)}.stat-card{padding:22px}.stat-card strong{display:block;font-size:36px}.stat-card span{color:var(--muted)}
.alert{padding:14px 16px;border-radius:16px;margin-bottom:16px}.alert.success{background:#e7fff5;color:#0a8d5e}.alert.error{background:#fff0f3;color:var(--danger)}
.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.admin-table th{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.actions form{display:inline}.actions button,.quick-action{border:none;background:none;color:var(--danger);cursor:pointer;padding:0;font:inherit}.quick-action{color:var(--success);font-weight:700}
.admin-form{display:grid;gap:16px}.wide-form{background:#fff;padding:24px;border-radius:24px;box-shadow:var(--shadow)}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.admin-form label{display:grid;gap:8px;font-weight:700}.admin-form textarea{min-height:140px;resize:vertical}.checkbox-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;border:none;padding:0}.checkbox-item{display:flex;align-items:center;gap:10px;background:#f6f7fb;padding:12px 14px;border-radius:14px}.small-muted{color:var(--muted);font-size:14px}
.status-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;text-transform:capitalize}.status-published{background:#e7fff5;color:var(--success)}.status-pending{background:#fff8dd;color:#9a7900}.status-draft{background:#eef1f7;color:#596273}
@media (max-width: 1000px){.hero-grid,.cards-grid,.review-grid,.category-card-grid,.two-col,.footer-grid,.admin-shell,.admin-stats,.form-grid,.checkbox-grid{grid-template-columns:1fr}.admin-shell{display:block}.admin-sidebar{position:static}.sticky-sidebar{position:static}.hero h1,.page-hero h1,.company-hero h1{font-size:40px}}

.compact-stats{margin-bottom:20px}
.admin-two-col{align-items:start}
.admin-block{padding:24px}
.details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.details-grid div{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.small-muted{color:var(--muted);font-size:14px}
@media (max-width:1000px){.details-grid{grid-template-columns:1fr}}

.admin-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.admin-muted {
    color: #64748b;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.admin-table th {
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.actions-cell {
    white-space: nowrap;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-right: 8px;
}

.action-view {
    background: #eef2ff;
    color: #4f46e5;
}

.action-edit {
    background: #f5f3ff;
    color: #7c3aed;
}

.action-delete {
    background: #fff1f2;
    color: #e11d48;
}
/* ===== HOMEPAGE REDESIGN ===== */

.homepage-v2 {
    background: #f7fbfd;
}

.home-hero {
    background: #eaf3f8;
    padding: 48px 0 24px;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    min-height: 420px;
}

.hero-text h1 {
    font-size: 54px;
    line-height: 1.08;
    margin: 0 0 24px;
    color: #171528;
    font-weight: 800;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #62697a;
    max-width: 520px;
    margin: 0 0 30px;
}

.hero-visual img,
.benefits-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.section-white {
    background: #fff;
    padding: 50px 0 56px;
}

.centered-block {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}

.centered-block h2 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 18px;
    color: #111;
}

.centered-block p {
    color: #72798a;
    font-size: 17px;
    margin: 0;
}

.section-arrow {
    display: inline-block;
    font-size: 34px;
    color: #ff7a9a;
    margin-bottom: 12px;
    line-height: 1;
}

.home-benefits {
    background: #fff;
    padding: 0 0 64px;
}

.benefits-banner {
    background: linear-gradient(135deg, #4b24a9, #5f36bb);
    color: #fff;
    text-align: center;
    padding: 42px 20px;
    margin-bottom: 40px;
}

.benefits-banner h2 {
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #fff;
}

.benefits-banner p {
    max-width: 760px;
    margin: 0 auto 22px;
    color: rgba(255,255,255,.84);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
}

.benefits-list {
    display: grid;
    gap: 28px;
}

.benefit-item {
    padding-left: 8px;
}

.benefit-item h3 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #171528;
}

.benefit-item p {
    margin: 0;
    color: #717789;
    line-height: 1.8;
}

.home-categories {
    background: #eef7fa;
    padding: 64px 0;
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 42px;
}

.section-title-block h2 {
    font-size: 44px;
    line-height: 1.08;
    margin: 0;
    color: #111;
}

.section-top-right {
    max-width: 560px;
}

.section-top-right p,
.reviews-intro {
    font-size: 17px;
    line-height: 1.8;
    color: #717789;
    margin-top: 0;
}

.btn-light {
    background: #fff;
    color: #ff658b;
    box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.category-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.category-photo-card {
    position: relative;
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #ddd;
}

.category-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.16));
    z-index: 1;
}

.category-photo-content {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
}

.category-photo-content h3 {
    margin: 12px 0 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.3;
}

.category-mini-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4b84ff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.home-reviews {
    background: #eef7fa;
    padding: 8px 0 64px;
}

.reviews-head {
    align-items: center;
}

.review-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.review-card-v2 {
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.review-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #efe9ff;
    color: #5a36ba;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
}

.review-stars {
    color: #ffbf1a;
    margin-top: 4px;
}

.review-card-v2 h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #171528;
}

.review-card-v2 p {
    color: #646b7a;
    line-height: 1.75;
    min-height: 74px;
}

.review-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    color: #7c8291;
    font-size: 13px;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #d8deea;
    border-radius: 999px;
    color: #171528;
    background: #fff;
}

.home-contact-band {
    background: linear-gradient(135deg, #4b24a9, #5f36bb);
    padding: 56px 0;
    color: #fff;
}

.contact-band-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.contact-band-info h3,
.contact-band-form h3 {
    margin: 0 0 24px;
    font-size: 26px;
    color: #fff;
}

.office-block {
    margin-bottom: 28px;
}

.office-block strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.office-block p {
    margin: 4px 0;
    color: rgba(255,255,255,.82);
}

.contact-form-v2 {
    display: grid;
    gap: 16px;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form-v2 input,
.contact-form-v2 textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 18px;
    background: transparent;
    color: #fff;
    font: inherit;
    outline: none;
}

.contact-form-v2 input::placeholder,
.contact-form-v2 textarea::placeholder {
    color: rgba(255,255,255,.72);
}

.contact-form-v2 textarea {
    min-height: 140px;
    resize: vertical;
}

.site-footer {
    background: #eaf3f8;
    color: #171528;
    padding-top: 56px;
    margin-top: 0;
}

.footer-grid a,
.footer-grid p,
.footer-bottom {
    color: #5f6472;
}

.footer-grid h4 {
    color: #171528;
}

@media (max-width: 1024px) {
    .hero-layout-v4 {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }

    .hero-text-v4 {
        margin: 0 auto;
    }

    .hero-text-v4 p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text-v4 h1 {
        font-size: 42px;
    }

    .hero-bg-left,
    .hero-bg-right {
        width: 520px;
        height: 220px;
    }
}

/* header desktop */
.main-nav a {
    position: relative;
}

.main-nav a::after {
    display: none !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 42px;
}

.topbar-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.main-nav-v2 {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 0;
    flex-wrap: nowrap;
}

.main-nav-v2 a {
    font-size: 16px;
    font-weight: 400;
    color: #1d1d2f;
    text-decoration: none;
}

.header-actions-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-links a {
    font-size: 14px;
    font-weight: 400;
    color: #6c7280;
    text-decoration: none;
}

.write-review-btn {
    background: linear-gradient(135deg, #ff6a88, #ff4b6e);
    color: #fff;
    border-radius: 40px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 20px rgba(255, 75, 110, 0.3);
    transition: all 0.3s ease;
}

.brand-v2 img {
    height: 32px;
    width: auto;
    display: block;
}

/* header mobile */
@media (max-width: 1024px) {
    .topbar-v2 {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-left {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .main-nav-v2 {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-actions-v2 {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}