* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

body.modal-open {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    color: #0f766e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #d7dee7;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    min-height: 50px;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 50px;
    padding: 0;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #14532d;
    line-height: 1;
    text-decoration: none;
}

.brand:hover,
.brand:hover .brand-wordmark,
.brand:hover .brand-tagline {
    text-decoration: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.05;
}

.brand-logo {
    height: 100%;
    max-height: 52px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    padding-top: 5px;
    padding-bottom: 5px;
}

.brand-wordmark {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.brand-tagline {
    display: block;
    width: 100%;
    color: #111827;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid #d7dee7;
    border-radius: 5px;
    color: #14532d;
    box-shadow: none;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    border-radius: 999px;
}

.header-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.main-nav a {
    padding: 6px 10px;
    font-size: 14px;
    text-decoration: none;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}

.manager-shell .main-nav {
    gap: 4px;
}

.manager-shell .main-nav a {
    padding: 3px 6px;
    font-size: 14px;
    text-decoration: none;
}

.main-nav a.is-active,
.main-nav a:hover {
    background: transparent;
    text-decoration: underline;
}

.page-content {
    padding: 82px 0 48px;
}

.card {
    background: #ffffff;
    border: 1px solid #d7dee7;
    border-radius: 5px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.hero {
    display: grid;
    gap: 18px;
    padding: 40px;
}

.landing-card {
    width: min(100%, 460px);
    max-width: 460px;
    margin: 0 auto;
    padding: 32px 28px;
    text-align: center;
}

.landing-card h1 {
    margin-bottom: 10px;
}

.landing-subtitle {
    margin: 0 auto 18px;
    max-width: 360px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.6;
}

.landing-card .muted,
.landing-card .alert {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.landing-form {
    margin-top: 22px;
    justify-items: center;
}

.landing-form label {
    width: 350px;
    max-width: 100%;
    justify-items: stretch;
}

.landing-form input,
.landing-form textarea {
    width: 350px;
    max-width: 100%;
}

.landing-form textarea {
    min-height: 84px;
}

.landing-form .button-fit {
    justify-self: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.subsection {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.subsection h2 {
    margin-top: 0;
}

.inline-form {
    display: inline;
}

.action-stack {
    display: grid;
    gap: 8px;
}

.admin-tariff-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tariff-inline select {
    width: auto;
    min-width: 120px;
}

.button-danger {
    background: #b91c1c;
}

.hero h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.1;
}

.hero p {
    margin: 0;
    max-width: 720px;
    font-size: 18px;
    color: #4b5563;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h1,
.auth-card h1,
.form-card h1,
.card h1 {
    margin-top: 0;
}

.auth-card,
.form-card {
    max-width: 760px;
}

.register-choice-card {
    max-width: 860px;
    margin: 0 auto;
}

.register-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.register-choice-item {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 12px 4px;
}

.register-choice-item h1,
.register-choice-item h2 {
    margin: 0;
    line-height: 1.25;
}

.register-choice-item h1 {
    font-size: 30px;
}

.register-choice-item h2 {
    font-size: 28px;
}

.project-compact-form {
    justify-items: start;
}

.project-compact-form label {
    width: 100%;
    max-width: 250px;
}

.project-compact-form .compact-textarea-label {
    max-width: 250px;
}

.tgbot-compact-form {
    justify-items: start;
}

.tgbot-compact-form label {
    width: 100%;
    max-width: 350px;
}

.tgbot-compact-form input:not([type="checkbox"]),
.tgbot-compact-form textarea {
    width: 350px;
    max-width: 350px;
}

.project-form-compact {
    justify-items: start;
}

.project-form-compact label {
    width: 100%;
    max-width: 350px;
}

.project-form-compact input,
.project-form-compact textarea {
    width: 350px;
    max-width: 350px;
}

.partner-balance-form input,
.partner-balance-form textarea {
    width: 400px;
    max-width: 400px;
}

.partner-profile-form input,
.partner-profile-form textarea {
    width: 250px;
    max-width: 250px;
}

.compact-field {
    width: 250px;
    max-width: 250px;
}

.compact-field-small {
    width: 250px;
    max-width: 250px;
}

.compact-field-textarea {
    width: 250px;
    max-width: 250px;
    min-height: 96px;
}

.create-project-field {
    width: 400px;
    max-width: 400px;
}

.create-project-bonus-field {
    width: 400px;
    max-width: 400px;
}

.project-compact-form .create-project-wide-label {
    max-width: 400px;
}

.project-create-card {
    text-align: center;
}

.project-create-form {
    margin-top: 22px;
    justify-items: center;
}

.project-create-form label,
.project-create-form .create-project-wide-label {
    width: 400px;
    max-width: 400px;
}

.project-create-form [data-bonus-amount-row] {
    width: 400px;
    max-width: 400px;
}

.project-create-form .button-fit {
    justify-self: center;
}

.bonus-type-select-label {
    width: 400px !important;
    max-width: 400px !important;
}

.project-create-form .create-project-field {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block;
    box-sizing: border-box;
}

.project-create-form .create-project-bonus-field {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block;
    box-sizing: border-box;
}

.button-fit {
    width: auto;
    min-width: 0;
    justify-self: start;
    padding-left: 14px;
    padding-right: 14px;
}

.button-small {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.2;
}

.comment-cell-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-cell-action {
    margin-top: 8px;
}

.comment-cell-action .button,
.comment-cell-action .success-link {
    display: inline-block;
}

.lead-status-form {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.lead-status-form select {
    min-width: 150px;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.2;
    box-sizing: border-box;
}

.lead-status-form button,
.lead-status-form .button {
    margin-left: 0;
    width: auto;
    min-width: 0;
    align-self: flex-start;
}

.table-datetime-muted {
    color: #6b7280;
    font-size: 12px;
}

.leads-table-row td {
    color: #6b7280;
    font-size: 12px;
}

.leads-table-row td strong {
    color: #4b5563;
    font-size: 12px;
}

.lead-request-cell {
    width: 200px;
    min-width: 200px;
}

.lead-request-stack {
    display: grid;
    gap: 10px;
    white-space: normal;
    word-break: break-word;
}

.lead-request-stack strong {
    font-size: 12px;
}

.project-links-list {
    display: grid;
    gap: 20px;
}

.project-link-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
}

.project-link-row .muted {
    margin: 0;
    line-height: 1.5;
}

.project-share-note {
    max-width: 720px;
}

.project-share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.project-share-url {
    color: #166534;
    word-break: break-all;
}

.project-share-url:hover {
    color: #14532d;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.info-grid p {
    margin-bottom: 0;
}

.admin-stats-layout {
    display: grid;
    gap: 0;
}

.admin-stats-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-stat-card {
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.admin-stat-card strong {
    display: block;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.admin-stat-card p {
    margin: 8px 0 0;
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.partner-stats-grid {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.partner-stat-card {
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.partner-stat-card strong {
    display: block;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.partner-stat-card p {
    margin: 8px 0 0;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.partner-stat-card-wide {
    grid-column: span 1;
}

.partner-stat-card-wide p {
    font-size: 18px;
    line-height: 1.35;
}

.deals-summary-grid {
    display: grid;
    margin-bottom: 22px;
    grid-template-columns: repeat(4, minmax(180px, 220px)) !important;
    justify-content: start;
    gap: 14px;
}

.deals-summary-grid .partner-stat-card {
    min-width: 0;
}

.partner-project-description {
    max-width: 760px;
    margin: 0;
    color: #334155;
    line-height: 1.7;
    white-space: normal;
}

.help-guide {
    display: grid;
    gap: 28px;
}

.help-step {
    display: grid;
    gap: 16px;
}

.help-step-text h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.help-step-text p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.help-step-image-wrap {
    width: 100%;
}

.help-step-image {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.partner-business-code-inline {
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .partner-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .deals-summary-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .lead-request-cell {
        width: 180px;
        min-width: 180px;
    }
}

.code-area {
    width: 100%;
    min-height: 110px;
    font-family: Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.code-area-compact {
    width: 400px;
    max-width: 400px;
}

.copy-actions {
    margin-top: 10px;
}

.form-settings-layout-tight {
    grid-template-columns: fit-content(350px) minmax(260px, 320px);
    justify-content: start;
    gap: 10px;
}

.form-settings-layout-tight .form-card,
.form-settings-layout-tight .side-note {
    margin: 0;
}

.landing-card .muted {
    text-align: center;
}

.form-note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.copy-link-box {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.domain-links-table .button {
    min-height: 38px;
    padding: 0 14px;
}

.copy-status {
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
    color: #166534;
    line-height: 1.4;
}

.project-actions-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.partner-business-code-inline {
    text-align: right;
    line-height: 1.5;
}

.partner-project-meta {
    margin-top: 4px;
    display: grid;
    gap: 6px;
    color: #334155;
    line-height: 1.5;
}

.danger-link {
    color: #7f1d1d;
    font-weight: 400;
}

.danger-link:hover {
    color: #991b1b;
}

.success-link {
    color: #15803d;
    font-weight: 400;
}

.success-link:hover {
    color: #166534;
}

.project-status-label {
    font-weight: 600;
}

.project-status-label.is-on {
    color: #15803d;
}

.project-status-label.is-off {
    color: #b91c1c;
}

.project-status-label.is-deleted {
    color: #6b7280;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-chip-active {
    background: #dcfce7;
    color: #166534;
}

.status-chip-deleted {
    background: #fee2e2;
    color: #991b1b;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    overflow-y: auto;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-card {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    padding: 22px 24px;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    overflow-y: auto;
}

.modal-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-card p {
    margin-bottom: 18px;
    color: #475569;
    line-height: 1.55;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-form-stacked {
    display: grid;
    gap: 14px;
}

.modal-actions-stacked {
    display: grid;
    gap: 14px;
}

.modal-field {
    display: grid;
    gap: 6px;
}

.modal-field span {
    font-size: 14px;
    color: #334155;
}

.modal-field input,
.modal-field textarea {
    width: 100%;
    max-width: 100%;
}

.form-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.side-note h3 {
    margin-top: 0;
}

.side-note p:last-child {
    margin-bottom: 0;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: auto;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 5px;
    background: #0f766e;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.button-secondary {
    background: #dbeafe;
    color: #1e3a8a;
}

.button-danger {
    background: #7f1d1d;
    color: #ffffff;
}

.button-success {
    background: #15803d;
    color: #ffffff;
}

.button-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: #0d5f59;
    text-decoration: none;
}

.button-secondary:hover {
    background: #bfdbfe;
    color: #1e3a8a;
}

.button-danger:hover {
    background: #991b1b;
    color: #ffffff;
}

.button-success:hover {
    background: #166534;
    color: #ffffff;
}

.menu-toggle,
.menu-toggle:hover {
    min-height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid #d7dee7;
    color: #14532d;
    box-shadow: none;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font: inherit;
    font-weight: 400;
    background: #ffffff;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

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

th {
    background: #f8fafc;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 5px;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #166534;
}

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

.muted {
    color: #6b7280;
}

.landing-page {
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 24%),
        linear-gradient(180deg, #f3faf7 0%, #eef6f2 46%, #edf4f7 100%);
    color: #1f2937;
}

.landing-header {
    height: 50px;
    background: rgba(243, 250, 247, 0.96);
    border-bottom: 1px solid #d8e7de;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.landing-page > main {
    padding-top: 50px;
}

.landing-header-row {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.landing-brand {
    font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #14532d;
    white-space: nowrap;
    text-transform: none;
}

.landing-brand .brand-tagline,
.brand .brand-tagline,
.brand-stack .brand-tagline {
    color: #111827;
}

.landing-brand:hover {
    text-decoration: none;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.landing-nav a {
    color: #4b5563;
    padding: 6px 10px;
    font-size: 14px;
    text-decoration: none;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}

.landing-nav a:hover {
    background: transparent;
    color: #065f46;
    text-decoration: underline;
}

.landing-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 5px;
    background: #0f766e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.landing-contact-button:hover {
    background: #0d5f59;
    text-decoration: none;
}

.landing-register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 5px;
    border: 1px solid #84cc16;
    background: #ffffff;
    color: #4d7c0f;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    cursor: default;
}

.landing-register-button:hover {
    border-color: #4d7c0f;
    background: #84cc16;
    color: #ffffff;
    text-decoration: none;
}

.landing-hero {
    min-height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    padding: 48px 0 72px;
}

.landing-hero-inner {
    width: 100%;
    max-width: 780px;
    padding: 52px 44px;
    border: 1px solid #d9e7df;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 70px rgba(15, 118, 110, 0.08);
}

.landing-kicker {
    margin: 0 0 12px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0;
    max-width: 520px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.05;
}

.landing-hero-subtitle {
    max-width: 520px;
    margin: 14px 0 0;
    font-size: 20px;
    line-height: 1.5;
    color: #475569;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.landing-page .button {
    min-height: 44px;
    padding: 0 22px;
    background: #0f766e;
    border-radius: 5px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.landing-page .button-secondary {
    background: #dbeafe;
    color: #1e3a8a;
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.14);
}

.landing-page .button-landing-accent {
    border: 1px solid #84cc16;
    background: #ffffff;
    color: #4d7c0f;
    box-shadow: 0 10px 22px rgba(101, 163, 13, 0.1);
}

.landing-page .button-placeholder {
    background: #fde68a;
    color: #92400e;
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.14);
    cursor: default;
}

.landing-page .button:hover,
.landing-page .button-secondary:hover {
    text-decoration: none;
}

.landing-page .landing-hero-actions .button:not(.button-secondary):hover {
    background: #0d5f59;
}

.landing-page .button-secondary:hover {
    background: #bfdbfe;
}

.landing-page .button-landing-accent:hover {
    border-color: #4d7c0f;
    background: #84cc16;
    color: #ffffff;
}

.landing-page .button-placeholder:hover {
    background: #fcd34d;
    color: #92400e;
}

.landing-page .button-compact {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
    width: fit-content;
    min-width: 0;
}

.landing-section {
    padding: 84px 0;
}

.landing-section-accent {
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid #d8e7de;
    border-bottom: 1px solid #d8e7de;
}

.landing-block {
    max-width: 860px;
}

.landing-block h2 {
    margin: 0 0 18px;
    font-size: 36px;
}

.landing-lead {
    margin: 0 0 18px;
    font-size: 22px;
    color: #0f766e;
    font-weight: 700;
}

.landing-block p {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
}

.landing-steps {
    margin: 20px 0 0;
    padding-left: 22px;
    max-width: 820px;
    color: #334155;
    font-size: 18px;
    line-height: 1.75;
}

.landing-steps li + li {
    margin-top: 10px;
}

.landing-integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.landing-integration-card {
    padding: 22px 24px;
    border: 1px solid #d8e7de;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.06);
}

.landing-integration-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.landing-integration-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
}

.landing-integration-card-accent {
    border-color: #facc15;
    background: linear-gradient(180deg, rgba(254, 249, 195, 0.85), rgba(255, 255, 255, 0.92));
}

.landing-integration-card-blue {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.82), rgba(255, 255, 255, 0.92));
}

.landing-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.tariff-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.tariff-card h3 {
    margin: 0;
    font-size: 28px;
}

.tariff-price {
    margin: 0;
    color: #9a3412;
    font-size: 20px;
    font-weight: 700;
}

.tariff-list {
    margin: 0;
    padding-left: 18px;
    color: #4b5563;
    line-height: 1.7;
}

.landing-audience-card {
    padding: 20px 22px;
    border: 1px solid #d8e7de;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.05);
}

.landing-page .card {
    border-radius: 5px;
}

.landing-contacts p {
    margin: 10px 0;
    font-size: 20px;
    color: #111827;
}

.landing-footer {
    padding: 0 0 34px;
}

.landing-footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid #d8e7de;
}

.landing-footer-row a {
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 900px) {
    .container {
        width: min(1120px, calc(100% - 44px));
    }

    .site-header,
    .landing-header {
        overflow: visible;
    }

    .header-row,
    .landing-header-row {
        gap: 12px;
        min-height: 64px;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 20;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 14px;
        padding: 18px;
        border: 1px solid #d7dee7;
        border-radius: 5px;
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

    .site-header.is-menu-open .header-menu,
    .landing-header.is-menu-open .header-menu {
        display: flex;
    }

    .main-nav,
    .landing-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .main-nav a,
    .landing-nav a {
        width: 100%;
        padding: 6px 0;
    }

    .hero {
        padding: 24px;
    }

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

    .section-head {
        flex-direction: column;
    }

    .form-settings-layout {
        grid-template-columns: 1fr;
    }

    .project-link-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .landing-header {
        min-height: 64px;
    }

    .landing-hero {
        min-height: auto;
        padding: 36px 0 54px;
    }

    .landing-hero-inner {
        padding: 32px 24px;
    }

    .landing-audience-grid {
        grid-template-columns: 1fr;
    }

    .landing-integrations-grid {
        grid-template-columns: 1fr;
    }

    .landing-block h2 {
        font-size: 30px;
    }

    .landing-block p,
    .landing-audience-card,
    .landing-contacts p {
        font-size: 16px;
    }

    .landing-contact-button {
        min-height: 42px;
    }

    .landing-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .landing-contact-button,
    .landing-register-button {
        width: 100%;
        height: 42px;
    }

    .register-choice-grid {
        grid-template-columns: 1fr;
    }

    .register-choice-item h1,
    .register-choice-item h2 {
        font-size: 24px;
    }

    .deals-summary-grid,
    .partner-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .help-step-text h2 {
        font-size: 18px;
    }
}
