:root {
    --header-bg: #000;
    --text-color: #2e2e2e;
    --box-color: #ffc600;
    --font-family: "Roboto", "Arial", sans-serif;
    --body-bg-color: #f2f4f8;
    --box: #ccc;
    --white-color: #fff;
}

/* FONTS */
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/roboto-v30-latin-regular.woff2") format("woff2"),
    url("../fonts/roboto-v30-latin-regular.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/roboto-v30-latin-500.woff2") format("woff2"),
    url("../fonts/roboto-v30-latin-500.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/roboto-v30-latin-700.woff2") format("woff2"),
    url("../fonts/roboto-v30-latin-700.woff") format("woff");
    font-display: swap;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

*:focus {
    outline: 3px dashed var(--text-color);
    outline-offset: 3px;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--body-bg-color);
    font-family: var(--font-family);
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 16px;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    display: inline-block;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1150px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    flex-grow: 1;
}

.header {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: var(--header-bg);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__owner {
    color: var(--white-color);
    margin-right: 20px;
}

.header__link {
    white-space: nowrap;
    color: var(--white-color);
    transition: opacity 0.4s ease;
}

.header__link:hover {
    opacity: 0.8;
}

.header__link:active {
    opacity: 0.6;
}

.hero {
    position: relative;
}

.table-link {
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 8px 15px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    border: 3px solid #000;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.4s ease;
}

.table-link-js {
    right: 0;
}

.table-link:hover {
    color: blue;
}

.info {
    padding: 16px 32px;
    font-size: 24px;
    line-height: 1.5;
    background-color: #000;
    color: var(--white-color);
    border-radius: 50px;
}

.content__main {
    font-size: 40vmin;
    text-align: center;
    line-height: 1;
}

/* List */
.list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    margin-left: -30px;
    margin-bottom: -30px;
}

.card {
    display: flex;
    flex-direction: column;
    width: 350px;
    border-radius: 100px;
    margin-left: 30px;
    margin-bottom: 30px;
}

.card__header {
    padding: 10px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    background-color: var(--box-color);
}

.card__main {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    padding: 20px 0;
    text-align: center;
    background-color: var(--white-color);
}

.card__link {
    color: blue;
}

.card__description {
    flex-grow: 1;
    font-weight: 400;
    padding: 20px;
    background-color: rgba(0,0,0,.04);;
}

@media only screen and (max-width: 1150px) {
    .list {
        justify-content: center;
    }
}

@media only screen and (max-width: 430px) {
    .header__container{
        flex-direction: column;
        align-items: flex-start;
    }

    .header__owner {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .hero {
        padding-bottom: 10px;
    }

    .table-link {
        top: 15px;
        padding: 0;
        border: none;
        color: blue;
    }

    .info {
        border-radius: 10px;
    }
}

@media only screen and (max-width: 390px) {
    .card {
        width: 280px;
    }
}
