html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.hero {
    padding: 50px 20px;
    text-align: center;
    background: #f5f7fb;
    border-radius: 18px;
    margin-bottom: 30px;
}

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 760px;
        margin: 0 auto;
    }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.tool-link {
    display: block;
    padding: 24px;
    border: 1px solid #e2e6ef;
    border-radius: 16px;
    text-decoration: none;
    color: #222;
    background: white;
    transition: 0.2s;
}

    .tool-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    }

    .tool-link.disabled {
        opacity: 0.55;
        pointer-events: none;
    }

.tool-card,
.content-box {
    max-width: 760px;
    margin: 25px auto;
    padding: 28px;
    border: 1px solid #e2e6ef;
    border-radius: 18px;
    background: white;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccd3df;
        border-radius: 10px;
    }

.btn-primary {
    background: #0d6efd;
    color: white;
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

    .btn-primary:hover {
        background: #0b5ed7;
    }

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.alert-error {
    background: #ffe7e7;
    color: #8a0000;
    border: 1px solid #ffb5b5;
}