/* withmax.ru — minimal light theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
}

.subtitle {
    color: #666;
    margin-top: 8px;
    font-size: 1.1rem;
}

.form {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.field input[type="url"],
.field input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.field input:focus {
    outline: none;
    border-color: #3b82f6;
}

.slug-preview {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.slug-prefix {
    padding: 12px 0 12px 16px;
    background: #f5f5f5;
    color: #888;
    font-size: 1rem;
    white-space: nowrap;
}

.slug-preview input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    padding-left: 4px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
    width: 100%;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #2563eb;
}

/* Stub page */
.stub-container {
    max-width: 480px;
    margin: 120px auto;
    text-align: center;
    padding: 24px;
}

.stub-container h1 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.stub-container p {
    color: #666;
    margin-bottom: 24px;
}

.stub-container .btn {
    background: #3b82f6;
    color: #fff;
}

/* Promo section (class names avoid "ad" to prevent ad-blocker false positives) */
.promo-section {
    margin-top: 48px;
}

.promo-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    color: #444;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.promo-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.promo-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.promo-card img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.promo-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.promo-card p {
    font-size: 0.8rem;
    color: #888;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 24px 16px;
    }

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

    header h1 {
        font-size: 1.5rem;
    }

    .form {
        padding: 20px;
    }
}
