:root {
    --bg: #f4f7fb;
    --bg-soft: #eef4ff;
    --card: #ffffff;
    --card-soft: #f8fafc;

    --text: #111827;
    --text-soft: #4b5563;
    --text-muted: #6b7280;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #dbeafe;

    --danger: #dc2626;
    --danger-hover: #b91c1c;

    --border: #e5e7eb;
    --border-strong: #d1d5db;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .10), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 45%, #f7f8fb 100%);
    color: var(--text);
    line-height: 1.55;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 36px;
    padding-right: 36px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(229, 231, 235, .9);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -.02em;
}

.logo:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Mobile menu button */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--text);
    transition: transform .18s ease, opacity .18s ease;
}

body.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */

.nav,
.admin-menu,
.account-menu,
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.nav {
    justify-content: flex-end;
    gap: 8px;
}

.nav a,
.admin-menu a,
.account-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 700;
    box-shadow: none;
}

.nav a {
    background: transparent;
}

.nav a:hover,
.admin-menu a:hover,
.account-menu a:hover {
    background: #e0ecff;
    color: var(--primary-hover);
    text-decoration: none;
}

.nav a.active,
.admin-menu a.active,
.account-menu a.active {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.admin-menu,
.account-menu {
    margin: 0 0 22px;
}

/* Layout */

.main {
    padding-top: 34px;
    padding-bottom: 52px;
}

h1,
h2,
h3 {
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -.025em;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
}

h2 {
    margin: 34px 0 16px;
    font-size: clamp(24px, 3vw, 32px);
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 20px;
}

/* Cards */

.card {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: rgba(229, 231, 235, .95);
    box-shadow: var(--shadow-sm);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.card h3 a {
    color: var(--text);
}

.card h3 a:hover {
    color: var(--primary);
    text-decoration: none;
}

.card-meta {
    color: var(--text-muted);
    font-size: 14px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .28);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(37, 99, 235, .18);
}

.btn-light {
    background: #eef2ff;
    color: var(--primary-hover);
    box-shadow: none;
}

.btn-light:hover {
    background: #dbeafe;
    color: var(--primary-hover);
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ef4444);
    color: #fff;
    box-shadow: 0 8px 20px rgba(220, 38, 38, .20);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-hover), var(--danger));
    color: #fff;
    box-shadow: 0 12px 26px rgba(220, 38, 38, .26);
}

/* Forms */

.form {
    max-width: 800px;
}

label {
    display: block;
    margin: 15px 0 7px;
    color: var(--text);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

select {
    cursor: pointer;
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
    border-radius: 3px;
    transition: none;
    box-shadow: none;
}

.service-area-box input[type="checkbox"] {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    transition: none;
    box-shadow: none;
    cursor: pointer;
    transform: translateY(-1px);
}


/* Notices */

.notice {
    margin: 16px 0;
    padding: 13px 15px;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    background: #ecfdf5;
    color: #065f46;
}

.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* Tables */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

tr:last-child td {
    border-bottom: 0;
}

td select,
td input,
td textarea {
    min-width: 150px;
}

/* Small UI */

.status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}

.logo-img {
    max-width: 120px;
    max-height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.js-business-status.status-saved {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

/* Service area */

.service-area-box {
    margin: 26px 0;
    padding: 20px;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    box-shadow: var(--shadow-sm);
}

.service-area-box h3 {
    margin: 0 0 8px;
}

.form-help {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px 0;
    color: var(--text-soft);
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.checkbox-line input {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.service-all-line {
    display: inline-flex;
    margin: 12px 0 18px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
}

.service-regions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
}

.service-region {
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: #fff;
}

.service-region-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    background: #f1f5f9;
    color: var(--text);
    line-height: 1.3;
    user-select: none;
}

.service-region-title input[type="checkbox"] {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin: 0;
    transform: translateY(-1px);
}

.service-city-list {
    height: 220px;
    padding: 9px 12px;
    overflow: auto;
    background: #fff;
}

/* Images */
.upload-zone {
    position: relative;
    margin: 22px 0;
    padding: 34px 18px;
    border: 2px dashed #93c5fd;
    border-radius: 20px;
    background: #eff6ff;
    color: #1e3a8a;
    text-align: center;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.upload-zone:hover {
    border-color: #60a5fa;
    background: #dbeafe;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .12);
}

.upload-zone strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.upload-zone span {
    display: block;
    color: #475569;
    font-size: 14px;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 460px) {
    .upload-zone {
        padding: 28px 14px;
        border-radius: 16px;
    }
}

.business-photos-box {
    margin: 26px 0;
}

.business-photos-box h3 {
    margin: 0 0 14px;
}

.business-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.business-photo-item {
    width: 160px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.business-photo-item img {
    display: block;
    width: 100%;
    height: 110px;
    margin-bottom: 10px;
    border-radius: 10px;
    object-fit: cover;
}

.business-photo-item .btn {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
}

@media (max-width: 460px) {
    .business-photo-item {
        width: calc(50% - 7px);
    }

    .business-photo-item img {
        height: 100px;
    }
}
/* /Images */

/* Img Mini */
.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 22px;
}

.photo-preview-item {
    width: 120px;
    height: 90px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* /Img Mini */

/* B.Images */
.public-business-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 26px;
}

.public-business-photos a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.public-business-photos a:hover {
    text-decoration: none;
}

.public-business-photos img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

@media (max-width: 600px) {
    .public-business-photos {
        grid-template-columns: 1fr;
    }

    .public-business-photos img {
        height: 220px;
    }
}
/* /B.Images */

/* Footer */

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    color: var(--text-muted);
}

.footer-nav {
    justify-content: center;
    margin-top: 12px;
    font-size: 14px;
}

.footer-nav a {
    color: var(--text-soft);
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-nav span {
    color: #cbd5e1;
}

/* Responsive */

@media (max-width: 1000px) {
    .wrap {
        padding-left: 32px;
        padding-right: 32px;
    }

    .service-regions-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 760px) {
    .wrap {
        padding-left: 24px;
        padding-right: 24px;
    }
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 68px;
        padding: 12px 24px;
    }

    .logo {
        max-width: calc(100% - 60px);
        font-size: 22px;
    }

    .mobile-menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 100;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 22px;
        background: rgba(255, 255, 255, .98);
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(14px);
    }

    body.menu-open .nav {
        display: flex;
    }

    .nav a {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 999px;
        background: #f8fafc;
        color: var(--text-soft);
        font-size: 16px;
        font-weight: 800;
    }

    .nav a:hover {
        background: var(--primary-soft);
        color: var(--primary-hover);
        text-decoration: none;
    }

    .admin-menu,
    .account-menu {
        width: 100%;
        gap: 8px;
    }

    .admin-menu a,
    .account-menu a {
        min-height: 38px;
        padding: 8px 12px;
        background: #f8fafc;
        font-size: 14px;
    }

	.main {
		padding-top: 26px;
		padding-bottom: 42px;
	}

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

    .card {
        padding: 18px;
        border-radius: var(--radius-md);
    }

    .btn {
        width: 100%;
        min-height: 44px;
    }

    .form {
        max-width: none;
    }

    input,
    textarea,
    select {
        font-size: 16px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: var(--radius-md);
    }

    th,
    td {
        padding: 10px;
    }

    td textarea {
        min-width: 240px;
    }

    .service-regions-grid {
        grid-template-columns: 1fr;
    }

    .service-city-list {
        height: 190px;
    }
}

@media (max-width: 460px) {
    h1 {
        font-size: 29px;
    }

    h2 {
        font-size: 23px;
    }

    .wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .admin-menu a,
    .account-menu a {
        width: 100%;
        justify-content: center;
    }

    .service-area-box {
        padding: 16px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 6px;
    }

    .footer-nav span {
        display: none;
    }
}

