:root {
    --primary-color: #303890;
    --text-color: #333;

    --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --body-font: 18px;

    --width: calc((100%) - 3em);
    --max-width: 1024px;
}

body {
    font: calc(var(--body-font) * 1.2)/1.2 var(--font);
    margin: 0 auto;
    padding: 0;
    color: var(--text-color);
    width: var(--width);
    max-width: var(--max-width);
}

header {
    display: flex;
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
    margin: 2rem 0 1.25rem 0;
    align-items: flex-end;
    padding-bottom: 0.5rem;
}

header > img {
    width: 280px;
    margin-right: 1rem;
}

header > div {
    position: relative;
    top: -5px;
    font-size: calc(var(--body-font) * 1.5);
    font-weight: 500;
    color: var(--primary-color);
}

.title {
    font-size: calc(var(--body-font) * 1.25);
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.hose-data > h2 {
    border-top: 1px solid var(--text-color);
    padding-top: 2rem;
    font-size: var(--body-font);
    text-align: center;
    margin: 2.5rem 0 1.25rem 0;
}

.hose-header {
    display: flex;
    text-align: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    color: white;
    align-items: center;
    font-size: calc(var(--body-font) * 0.7);
    line-height: 1;
    font-weight: bold;
    gap: 4px;
}

.hose-header > div {
    height: 30px;
    padding: 1rem 0;
    background-color: var(--primary-color);
}

.hose-description {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.hose-description > div {
    border-left: 1px solid var(--text-color);
    border-right: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    padding: 2.5rem 0;
    text-align: center;
}

.hose-inspection-result {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
    text-align: center;
}

h3, h4, h5 {
    font-size: calc(var(--body-font) * 1);
    margin: 4rem 0 1rem 0;
    text-align: center;
}

.hose-inspection-result > div {
    text-align: right;
    margin-right: 1rem;
    width: 50%;
}

.observations{
    font-size: var(--body-font);
    line-height: 1;
    text-align: center;
    width: var(--width);
    max-width: var(--max-width);
    margin: 2rem auto;
}

.hose-inspection-result > :nth-child(2) {
    width: 50%;
    text-align: left;
}

.result {
    font-size: calc(var(--body-font) * 1.5);
    text-transform: uppercase;
    font-weight: bolder;
    line-height: 1.2;
    text-align: center;
    width: var(--width);
    max-width: var(--max-width);
    margin: 2rem auto;
}

.result > img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.result > div {
    position: relative;
    top: -40px;
    border-top: 1px solid var(--text-color);
    padding: 0.5rem 40px;
    max-width: fit-content;
    margin: 0.5rem auto 0 auto;
    font-size: var(--body-font);
    text-transform: none;
    font-weight: normal;
}

footer {
    font-size: calc(var(--body-font) * 0.6);
    line-height: 1.2;
    text-align: center;
    width: var(--width);
    max-width: calc(var(--max-width) / 1.3);
    margin: 3rem auto;
}

.contact {
    font-size: calc(var(--body-font) * 0.6);
    line-height: 1.2;
    width: var(--width);
    max-width: var(--max-width);
    margin: 2rem auto 3rem auto;
    border-top: 1px solid var(--text-color);
    text-align: center;
    padding-top: 1rem;
}

p {
    margin: 0;
}

.search-container {
    max-width: 620px;
    margin: 4rem auto;
}

.tag-search-form {
    border: 1px solid #d8dbe8;
    padding: 2rem;
    background: #fff;
}

.tag-search-form label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: calc(var(--body-font) * 1.1);
    font-weight: 700;
}

.tag-search-controls {
    display: flex;
    gap: 0.75rem;
}

.tag-search-controls input {
    flex: 1;
    min-width: 0;
    border: 1px solid #a9aec8;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    font: var(--body-font)/1.2 var(--font);
    text-transform: uppercase;
}

.tag-search-controls input:focus {
    border-color: var(--primary-color);
    outline: 2px solid rgba(48, 56, 144, 0.18);
    outline-offset: 2px;
}

.tag-search-controls button {
    border: 0;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    padding: 0.8rem 1.4rem;
    font: var(--body-font)/1.2 var(--font);
    font-weight: 700;
}

.tag-search-controls button:hover,
.tag-search-controls button:focus {
    background: #20296f;
}

.tag-error {
    min-height: 1.2em;
    margin-top: 0.75rem;
    color: #d9534f;
    font-size: calc(var(--body-font) * 0.85);
    font-weight: 700;
}

@media screen and (max-width: 480px) {
    :root {
        --body-font: 10px;
    }

    header > div {
        font-size: calc(var(--body-font) * 1.25);
        font-weight: 600;
    }

    header > img {
        width: 102px;
        margin-right: 0.5rem;
        position: relative;
        top: -8px;
    }

    .client-data {
        margin-bottom: -1rem;
    }

    .hose-data > h2 {
        font-size: calc(var(--body-font) * 1.2);
    }

    h3, h4, h5 {
        font-size: calc(var(--body-font) * 1.2);
        margin: 2rem 0 1rem 0;
    }

    .hose-description > div {
        padding: 0.75rem 0;
    }

    .result {
        margin: 0.5rem auto -3rem auto
    }

    .observations {
        margin: 0 auto 2rem auto;
        font-size: calc(var(--body-font) * 1.2)/1.2 var(--font);
    }

    .hose-description {
        font-size: calc(var(--body-font) * 1.1)/1.2 var(--font);
    }

    .search-container {
        margin: 2rem auto;
    }

    .tag-search-form {
        padding: 1rem;
    }

    .tag-search-controls {
        flex-direction: column;
    }

    .tag-search-controls button {
        width: 100%;
    }
}
