
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f6fb;
    color: #1e293b;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo {
    color: #5146e5;
    font-size: 23px;
    font-weight: bold;
    text-decoration: none;
}

nav a {
    text-decoration: none;
    color: #64748b;
}

.hero {
    padding: 65px 0 45px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    margin-bottom: 15px;
    line-height: 1.15;
}

.hero h1 span {
    color: #5146e5;
}

p {
    line-height: 1.7;
    color: #64748b;
}

.section {
    padding: 30px 0 65px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card, .workspace {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
}

.card {
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-bottom: 5px;
}

.card p {
    flex: 1;
}

.icon {
    width: 45px;
    height: 45px;
    background: #eeedff;
    color: #5146e5;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: bold;
    font-size: 20px;
}

button, .btn {
    display: inline-block;
    padding: 11px 15px;
    border: 1px solid #dbe1eb;
    border-radius: 9px;
    background: white;
    color: #1e293b;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.primary {
    background: #5146e5;
    color: white;
    border-color: #5146e5;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dbe1eb;
    border-radius: 9px;
    font: inherit;
    margin-top: 7px;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.field {
    margin: 16px 0;
}

.field label {
    font-weight: bold;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 15px 0;
}

.result {
    background: #f5f6fb;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 14px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.tool {
    padding: 35px 0 65px;
}

.tool h1 {
    font-size: 32px;
}

.back {
    display: inline-block;
    color: #5146e5;
    text-decoration: none;
    margin-bottom: 18px;
}

footer {
    padding: 24px 0;
    text-align: center;
    background: white;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 750px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 40px;
    }
}

@media (max-width: 500px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: 92%;
    }
}
