:root {
    --g: #146b58;
    --g-dark: #0f5949;
    --d: #123e35;
    --m: #e8f5ef;
    --c: #fbf8f1;
    --i: #18332d;
    --u: #6f7f7b;
    --l: #e1e9e5;
    --white: #ffffff;
    --danger: #a33a32;
    --success: #176446;
    --warning: #875b00;
    --info: #245785;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: Arial, "Helvetica Neue", Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: inherit;
}

body {
    margin: 0;
    color: var(--i);
    font-size: 15px;
    line-height: 1.5;
    background: var(--white);
}

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

button,
select {
    cursor: pointer;
}

button:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

a {
    color: var(--g);
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

/* Header */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 74px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #edf1ef;
    backdrop-filter: blur(10px);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--d);
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.logo i {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    background: var(--g);
    border-radius: 10px;
    font-style: normal;
}

.logo span,
.eyebrow {
    color: #df8b52;
}

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

.links > a {
    color: #425c55;
    text-decoration: none;
}

.links > a:hover {
    color: var(--g);
}

.hamb {
    display: none;
    padding: 7px;
    color: var(--d);
    background: none;
    border: 0;
    font-size: 25px;
}

/* Buttons */

.btn,
.outline,
.danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 9px;
    padding: 10px 15px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn {
    color: var(--white);
    background: var(--g);
    border: 1px solid var(--g);
}

.btn:hover {
    color: var(--white);
    background: var(--g-dark);
    border-color: var(--g-dark);
    transform: translateY(-1px);
}

.btn.sm {
    min-height: 36px;
    padding: 9px 13px;
    font-size: 12px;
}

.outline {
    color: var(--g);
    background: var(--white);
    border: 1px solid #b8cbc4;
}

.outline:hover {
    background: var(--m);
    border-color: var(--g);
}

.danger {
    color: var(--danger);
    background: var(--white);
    border: 1px solid #e5bbbb;
}

.danger:hover {
    background: #fde4e1;
}

.wide {
    width: 100%;
}

/* Hero */

.hero {
    padding: 82px 0;
    background: linear-gradient(120deg, #f2fbf6, #fff4e8);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 45px;
}

.pill {
    display: inline-block;
    padding: 9px 13px;
    color: #385e53;
    background: var(--white);
    border: 1px solid #dae8e2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero h1,
.page-head h1,
.section h2,
.panel h1 {
    color: var(--d);
    font-family: Arial, "Helvetica Neue", Tahoma, sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero h1 {
    margin: 22px 0 18px;
}

.hero h1 em {
    color: #df8b52;
    font-style: normal;
    font-weight: 500;
}

.hero p {
    max-width: 600px;
    color: var(--u);
    font-size: 17px;
    line-height: 1.8;
}

.home-art {
    position: relative;
    width: 300px;
    height: 300px;
    margin: auto;
    display: grid;
    place-items: center;
    background: #f4dfba;
    border-radius: 50%;
}

.home-art b {
    color: var(--g);
    font-size: 150px;
}

.home-art > div {
    position: absolute;
    top: 30px;
    right: 20px;
    color: #dc9a62;
    font-size: 50px;
}

.home-art small {
    position: absolute;
    right: -15px;
    bottom: 25px;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(81, 109, 99, 0.16);
    font-weight: 700;
}

/* General sections */

.section {
    padding: 85px 0;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section h2 {
    margin: 12px 0 35px;
    font-size: 38px;
}

.soft,
.page-head {
    background: var(--c);
}

.page-head {
    padding: 55px 0;
}

.page-head h1 {
    margin: 12px 0 25px;
    font-size: 39px;
}

.center {
    text-align: center;
}

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

/* Service and profile cards */

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

.cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--l);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(54, 94, 80, 0.06);
}

.card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(54, 94, 80, 0.1);
}

.card > i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--g);
    background: var(--m);
    border-radius: 14px;
    font-size: 24px;
    font-style: normal;
}

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

.card p {
    min-height: 50px;
    color: var(--u);
    line-height: 1.7;
}

.profile {
    text-align: center;
}

.avatar {
    width: 68px;
    height: 68px;
    margin: auto;
    display: grid;
    place-items: center;
    color: var(--g);
    background: var(--m);
    border-radius: 50%;
    font-family: Arial, "Helvetica Neue", Tahoma, sans-serif;
    font-size: 25px;
    font-weight: 700;
}

.verified {
    padding: 3px;
    color: var(--white);
    background: var(--g);
    border-radius: 50%;
    font-size: 10px;
}

/* Steps */

.steps,
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 45px;
}

.steps > div {
    padding: 25px;
}

.steps i {
    width: 65px;
    height: 65px;
    margin: auto;
    display: grid;
    place-items: center;
    color: var(--g);
    background: var(--m);
    border-radius: 20px;
    font-size: 24px;
    font-style: normal;
}

/* Authentication and forms */

.auth {
    min-height: 70vh;
    padding: 55px 16px;
    display: grid;
    place-items: center;
    background: var(--c);
}

.panel {
    width: min(460px, 100%);
}

.register-panel {
    width: min(560px, 100%);
}

.wide-auth .panel {
    width: min(760px, 100%);
}

.panel h1 {
    margin: 5px 0;
    font-size: 35px;
}

.panel > p {
    color: var(--u);
}

label {
    display: block;
    margin: 18px 0;
    color: var(--i);
    font-size: 12px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 7px;
    padding: 12px;
    color: var(--i);
    background: var(--white);
    border: 1px solid #cfdad6;
    border-radius: 9px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--g);
    box-shadow: 0 0 0 3px rgba(20, 107, 88, 0.12);
}

.role-pick {
    margin-top: 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.role-pick button {
    padding: 12px;
    color: var(--i);
    background: var(--white);
    border: 1px solid var(--l);
    border-radius: 9px;
}

.role-pick button.active {
    color: var(--g);
    background: var(--m);
    border-color: var(--g);
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

.helper-register-fields {
    margin: 20px 0;
    padding: 20px;
    background: #f2f9f5;
    border: 1px solid #d8e9e1;
    border-radius: 12px;
}

.helper-register-fields[hidden] {
    display: none;
}

.helper-field-title {
    margin-bottom: 15px;
    color: var(--g);
    font-size: 15px;
    font-weight: 700;
}

.helper-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    color: #755500;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
}

/* Alerts */

.alert {
    width: min(1160px, calc(100% - 32px));
    margin: 10px auto;
    padding: 13px 16px;
    border-radius: 8px;
}

.panel .alert {
    width: 100%;
}

.success {
    color: var(--success);
    background: #dff3e8;
}

.error {
    color: #972e26;
    background: #fde4e1;
}

/* Search */

.search {
    max-width: 600px;
    display: flex;
    gap: 10px;
}

.search input {
    margin: 0;
}

/* Tables */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--l);
    border-radius: 12px;
}

table {
    width: 100%;
    min-width: 800px;
    background: var(--white);
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--l);
    font-size: 13px;
    vertical-align: top;
}

th {
    color: #557069;
    background: #f4f8f6;
}

td small {
    display: block;
    margin-top: 5px;
    color: var(--u);
}

.status {
    display: inline-block;
    padding: 6px 9px;
    background: #eeeeee;
    border-radius: 999px;
    font-size: 11px;
}

.status.completed {
    color: var(--success);
    background: #dff3e8;
}

.status.pending {
    color: var(--warning);
    background: #fff0cf;
}

.status.cancelled {
    color: #972e26;
    background: #fde4e1;
}

.status.confirmed,
.status.in_progress {
    color: var(--info);
    background: #e1eefb;
}

.empty {
    padding: 55px;
    color: var(--u);
    text-align: center;
}

/* Statistics */

.stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 45px;
}

.stats > div {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--l);
    border-radius: 12px;
}

.stats b,
.stats span {
    display: block;
}

.stats b {
    color: var(--g);
    font-family: Arial, "Helvetica Neue", Tahoma, sans-serif;
    font-size: 25px;
    font-weight: 700;
}

.stats span {
    margin-top: 8px;
    color: var(--u);
}

.inline {
    display: flex;
    gap: 6px;
}

.inline select {
    min-width: 130px;
    margin: 0;
}

/* Admin navigation */

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.admin-title {
    margin-bottom: 24px;
}

.admin-title h2 {
    margin-bottom: 6px;
}

.muted {
    margin: 0;
    color: var(--u);
}

.helper-summary {
    padding: 12px 16px;
    color: var(--g);
    background: var(--m);
    border-radius: 10px;
    white-space: nowrap;
}

/* Assignment forms */

.assignment-form,
.status-form {
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.assignment-form select,
.status-form select {
    margin: 0;
}

.assignment-form button {
    width: 100%;
}

.assigned-helper,
.not-assigned {
    display: block;
    padding: 7px 9px;
    border-radius: 7px;
}

.assigned-helper {
    color: var(--success);
    background: #e2f4eb;
}

.not-assigned {
    color: #966300;
    background: #fff1cd;
}

.status-form .status {
    width: fit-content;
}

/* Helper administration */

.admin-filter {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto;
    gap: 10px;
    margin-bottom: 35px;
}

.admin-filter input,
.admin-filter select {
    margin: 0;
}

.helper-heading {
    margin-bottom: 22px;
}

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

.helper-admin-card {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--l);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(30, 72, 60, 0.06);
}

.helper-card-head {
    display: flex;
    align-items: center;
    gap: 15px;
}

.helper-card-head .avatar {
    flex: 0 0 60px;
    margin: 0;
}

.helper-card-head h3 {
    margin: 0 0 8px;
}

.helper-card-head p {
    margin: 4px 0;
    color: var(--u);
    font-size: 13px;
}

.helper-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0;
}

.helper-information {
    padding: 15px;
    background: #f6faf8;
    border-radius: 10px;
}

.helper-information p {
    margin: 8px 0;
}

.helper-admin-card details {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--l);
}

.helper-admin-card summary {
    color: var(--g);
    font-weight: 700;
    cursor: pointer;
}

.helper-edit-form {
    margin-top: 15px;
}

.helper-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.helper-actions form,
.helper-actions button {
    flex: 1;
}

/* Footer */

footer {
    padding: 45px 0 20px;
    color: #b9d1ca;
    background: var(--d);
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.white {
    color: var(--white);
}

.copy {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 11px;
}

/* Tablet */

@media (max-width: 850px) {
    .hamb {
        display: block;
    }

    .links {
        position: absolute;
        top: 74px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 22px;
        background: var(--white);
        border-bottom: 1px solid var(--l);
        box-shadow: 0 14px 30px rgba(30, 72, 60, 0.1);
    }

    .links.show {
        display: flex;
    }

    .links > a {
        padding: 10px;
        border-radius: 7px;
    }

    .links > a:hover {
        background: var(--m);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .home-art {
        margin-top: 40px;
    }

    .cards,
    .cards.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filter {
        grid-template-columns: 1fr 1fr;
    }

    .helper-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .admin-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .helper-summary {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 550px) {
    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 39px;
    }

    .home-art {
        margin-top: 0;
        transform: scale(0.8);
    }

    .cards,
    .cards.three,
    .steps,
    .stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full {
        grid-column: auto;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 31px;
    }

    .page-head h1 {
        font-size: 32px;
    }

    .search {
        flex-direction: column;
    }

    .foot {
        flex-direction: column;
    }

    .admin-filter {
        grid-template-columns: 1fr;
    }

    .helper-actions {
        flex-direction: column;
    }

    .between {
        align-items: flex-start;
        flex-direction: column;
    }

    .assignment-form,
    .status-form {
        min-width: 200px;
    }
}

