:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #243b35;
    background: #f6f8f7;
    color-scheme: light;
    font-size: 16px;
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px max(20px, calc((100% - 1140px) / 2));
    background: #fff;
    border-bottom: 1px solid #e3eae6;
}
header strong { font-size: 23px; letter-spacing: -.7px; color: #17664f; }
header > span { color: #687b73; font-size: 14px; }
header form { margin-left: auto; flex-shrink: 0; }
header button { background: #eef4f1; color: #245e4c; }
main { width: 100%; max-width: 1180px; margin: 24px auto; padding: 0 20px 32px; }
main > p { color: #687b73; font-size: 14px; }
nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e3eae6;
    border-radius: 10px;
    background: #fff;
    color: #446256;
    text-decoration: none;
    font-size: 14px;
}
nav a:hover { background: #edf5f0; }
nav a[aria-current] { background: #e7f3ec; border-color: #b9d9c7; color: #155d43; font-weight: 600; }
section { min-width: 0; padding: 28px; margin-bottom: 20px; border: 1px solid #e3eae6; border-radius: 16px; background: #fff; }
h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; letter-spacing: -.6px; }
h2 { margin: 24px 0 12px; font-size: 21px; line-height: 1.3; }
p { margin: 12px 0 18px; line-height: 1.65; }
p, li, h1, h2, label { overflow-wrap: anywhere; }
form { width: 100%; max-width: 560px; min-width: 0; }
label { display: block; margin: 18px 0; font-size: 14px; font-weight: 600; }
input, select, textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px;
    margin-top: 7px;
    border: 1px solid #cbd8d0;
    border-radius: 9px;
    background: #fff;
    color: #243b35;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
}
input, select { min-height: 46px; }
input[type=hidden] { display: none; }
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #7a8982; }
input[type=file] { overflow: hidden; padding: 8px; font-size: 14px; }
input::file-selector-button { border: 0; border-radius: 5px; padding: 8px; margin-right: 8px; background: #edf5f0; color: #245e4c; }
button { min-height: 44px; padding: 11px 18px; border: 0; border-radius: 9px; background: #17664f; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { filter: brightness(.95); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 8px 0; }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: #17664f; }
.scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #e5ece7; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
td, th { padding: 14px; border-bottom: 1px solid #e5ece7; min-width: 110px; max-width: 320px; overflow-wrap: anywhere; vertical-align: middle; }
th { background: #f6f9f7; color: #536a5e; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.alert, .success { padding: 14px 16px; border-radius: 10px; }
.alert { background: #fff1ee; color: #973627; }
.success { background: #eaf6ee; color: #24613d; }
:focus-visible { outline: 3px solid #6caa8e; outline-offset: 3px; }
.phone-fields { display: flex; gap: 8px; }
.phone-fields input:first-child { width: 84px; flex: 0 0 84px; }
.phone-fields input:last-child { min-width: 0; flex: 1; }
small { display: block; margin-top: 8px; color: #687b73; font-size: 12px; font-weight: 400; line-height: 1.6; }
.phone-contact { display: inline-flex; align-items: center; gap: 6px; }
.phone-contact > span { min-width: 0; overflow-wrap: anywhere; }
.phone-action { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9px; color: #145c49; background: #edf5f1; flex-shrink: 0; }
.phone-action:hover { background: #d6eade; }
.phone-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp-action { color: #13773a; }
@media (max-width: 640px) {
    header { padding: 12px 16px; gap: 10px; }
    header strong { font-size: 21px; }
    header > span { display: none; }
    header button { padding: 8px 14px; }
    main { margin-top: 16px; padding: 0 12px 24px; }
    main > p { padding: 0 4px; }
    nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 16px 0; }
    nav a { min-width: 0; padding: 9px 12px; font-size: 13px; overflow-wrap: anywhere; }
    section { padding: 18px 14px; border-radius: 12px; margin-bottom: 14px; }
    h1 { font-size: 24px; }
    h2 { font-size: 19px; }
    section > p { font-size: 14px; color: #62756b; }
    label { margin: 16px 0; }
    form > button { width: 100%; }
    td, th { padding: 12px; }
    .phone-fields input { padding-left: 9px; padding-right: 9px; }
    .clients-scroll { border: 0; overflow: visible; }
    .clients-table, .clients-table tbody { display: block; }
    .clients-table tr:first-child { display: none; }
    .clients-table tr:not(:first-child) { display: block; border: 1px solid #e3eae6; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
    .clients-table td { display: block; width: 100%; min-width: 0; max-width: none; padding: 9px 0; border-bottom: 1px solid #eef2ef; }
    .clients-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #728278; }
    .clients-table td:last-child { border-bottom: 0; }
    .clients-table td:empty::after { content: '—'; color: #8a978f; }
    .phone-contact { display: flex; flex-wrap: wrap; }
    .phone-contact > span { flex: 1 1 120px; }
}
