/* Fonts */

@font-face {
    font-display: swap;
    font-weight: 400;
    font-family: 'Roboto';
    font-style: normal;
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
    url('../fonts/Roboto-Regular.woff') format('woff'),
    url('../fonts/Roboto-Regular.ttf') format('ttf');
}

@font-face {
    font-display: swap;
    font-weight: 400;
    font-family: 'OldStandardTT';
    font-style: normal;
    src: url('../fonts/OldStandardTT-Regular.woff2') format('woff2'),
    url('../fonts/OldStandardTT-Regular.woff') format('woff'),
    url('../fonts/OldStandardTT-Regular.ttf') format('ttf');
}

/* Base styles */

* {
    box-sizing: border-box;
}

a {
    outline: none;
}

html, body {
    margin: 0;
    font-family: 'Roboto', 'Arial', sans-serif;
    color: #CDB28A;
    background-color: #1A1F22;
}

/* Present */

.present {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.present__header {
    flex-grow: 1;
    text-align: center;
}

/* Logo */

.logo {
    max-width: 132px;
    height: 100%;
    transition: transform 0.15s linear;
}

/* Header */

.header__container {
    margin: 0 auto;
    padding: 24px 15px;
    max-width: 965px;
}

.header__logo:hover img,
.header__logo:focus img {
    transform: scale(1.05);
}

.header__title {
    margin: 16px 0;
    font-weight: 400;
    font-family: 'OldStandardTT', 'Times New Roman', serif;
    font-size: 64px;
    line-height: 80px;
}

.header__info {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 80px 0 24px;
    font-weight: 400;
    font-family: 'OldStandardTT', 'Times New Roman', serif;
    font-size: 44px;
    line-height: 54px;
}

.header__coming-soon {
    flex-grow: 1;
    padding: 0 15px;
    white-space: nowrap;
}

.header__lines {
    width: 100%;
    max-width: 320px;
    height: 1px;
    background-color: #CDB28A;
}

.header__timer {
    margin: 0 auto 40px;
}

/* Apply */

.apply {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    border: 1px solid #CDB28A;
}

.apply__title {
    margin: 0 15px 0 0;
    font-family: 'OldStandardTT', 'Times New Roman', serif;
    font-weight: normal;
    font-size: 44px;
    line-height: 54px;
}

.apply__registration {
    position: relative;
    padding: 12px 24px;
    width: 100%;
    max-width: 210px;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 22px;
    color: #CDB28A;
    border: 1px solid #CDB28A;
    text-decoration: none;
    text-align: left;
    transition: color 0.15s linear, background-color 0.15s linear;
}

.apply__registration:hover,
.apply__registration:focus {
    color: #1A1F22;
    background-color: #CDB28A;
}

.apply__registration::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 28px;
    width: 16px;
    height: 1px;
    background-color: #CDB28A;
    transform: translateY(-50%);
    transition: background-color 0.15s linear;
}

.apply__registration:hover::before,
.apply__registration:focus::before {
    background-color: #1A1F22;
}

.apply__registration::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 28px;
    width: 6px;
    height: 6px;
    border: 1px solid #CDB28A;
    border-bottom: none;
    border-left: none;
    transform: translateY(-50%) rotate(45deg);
    transition: border 0.15s linear;
}

.apply__registration:hover::after,
.apply__registration:focus::after {
    border-color: #1A1F22;
}

/* Timer */

.timer {
    display: flex;
    justify-content: space-between;
    max-width: 520px;
    padding: 0;
    list-style: none;
}

.timer__count {
    font-weight: 400;
    font-family: 'OldStandardTT', 'Times New Roman', serif;
    font-size: 44px;
    line-height: 54px;
}

.timer__text {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: normal;
    font-size: 14px;
    line-height: 18px;
}

.timer__item {
    display: flex;
    flex-direction: column;
    width: 100px;
    height: 100px;
    padding: 14px;
    background-color: rgba(205, 178, 138, 0.1);
    border-radius: 50%;
}

.timer__item:not(:last-child) {
    margin-right: 15px;
}

/* Footer */

.footer {
    background-color: #99815C;
}

.footer__container {
    margin: 0 auto;
    padding: 24px 15px;
    max-width: 810px;
}

/* Socials */

.socials {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 18px;
    color: #1A1F22;
    text-align: center;
}

.socials__link {
    color: #1A1F22;
    text-decoration: none;
}

.socials__link:hover,
.socials__link:focus {
    text-decoration: underline;
}

.socials__item {
    position: relative;
}

.socials__item:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -45px;
    width: 4px;
    height: 4px;
    background-color: #1A1F22;
    border-radius: 50%;
    transform: translateY(-50%);
}

.socials__item:not(:last-child) {
    margin-right: 15px;
}

@media screen and (max-width: 768px) {
    /* Logo */
    .logo {
        max-width: 100px;
    }

    /* Header */
    .header__title {
        font-size: 34px;
        line-height: 42px;
    }

    .header__info {
        margin: 64px 0 24px;
        font-size: 28px;
        line-height: 34px;
    }

    /* Timer */
    .timer {
        max-width: 345px;
    }

    .timer__item {
        width: 76px;
        height: 76px;
    }

    .timer__count {
        font-size: 28px;
        line-height: 34px;
    }

    .timer__text {
        font-size: 12px;
        line-height: 14px;
    }

    .timer__item:not(:last-child) {
        margin-right: 12px;
    }

    /* Apply */
    .apply {
        flex-direction: column;
        padding: 24px 16px;
    }

    .apply__title {
        margin: 0 0 16px 0;
        font-size: 28px;
        line-height: 34px;
    }

    /* Socials */
    .socials {
        flex-direction: column;
    }

    .socials__item:not(:last-child) {
        margin: 0 0 16px 0;
    }

    .socials__item:not(:first-child)::before {
        display: none;
    }
}

@media screen and (max-width: 540px) {
    /* Apply */
    .apply__title {
        max-width: 260px;
    }

    /* Timer */
    .timer__item {
        width: 62px;
        height: 62px;
        padding: 8px;
    }

    .timer__count {
        font-size: 24px;
        line-height: 30px;
    }

    .timer__text {
        font-size: 10px;
        line-height: 12px;
    }
}
