@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Palui SP 2';
    src: url('PaluiSP2-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
	--base-01: #272729;
	--base-02: #fff;
	--base-03: #fafafa;
	--base-04: #f7f7f7;
	--base-04: #565758;
	--base-05: #7d7d7f;
	--base-06: #d4d4d4;
	--base-07: #192ba2;
	--base-08: #346de9;
	--error: #e51414;
	--secondary: #c7dd4b;
	--primary: #ec7137;
	--primary-hover: #ff8b55;

    --font-family: "Montserrat", sans-serif;
    --second-family: "Palui SP 2", sans-serif;
}

body {
    margin: 0;
    overflow: hidden;
    height: 100dvh;
    background: url('background.png') center / cover no-repeat;
}

p, h1 {
    margin: 0; 
}

p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--base-02);
}

.content {
    position: relative;
    height: 100%;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    width: fit-content;
    border: 1px solid var(--base-06);
    background: var(--base-02); 
    border-radius: 0 0 30px 0;
    padding: 32px;
}

.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
}

.text h1 {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 58px;
    line-height: 120%;
    text-transform: uppercase;
    text-align: center;
    color: var(--base-02);
}

.text p {
    max-width: 733px;
}

.text h1 span {
    color: var(--secondary);
}

.contacts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: absolute;
    left: 211px;
    right: 211px;
    bottom: 32px;
}

.contacts .item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.contacts .item .item-title{
    color: var(--base-06);
}


.contacts .item a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--secondary);
    text-decoration: none;
    transition: color .3s;
}

.contacts .item a:hover {
    color: var(--primary);
}

@media (max-width: 1440px) {
    .contacts {
        left: 81px;
        right: 81px;
    }
}

@media (max-width: 1200px) {
    p, a{
        font-size: 12px;
    }

    .text, .contacts {
        padding: 0 16px;
    }
    
    .content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .logo {
        position: static;
        width: 100%;
        border: none;
        padding: 0;
    }

    .logo svg {
        width: 173px;
        height: 35px;
    }

    .text {
        position: static;
        transform: none;
        gap: 20px;
    }

    .text h1 {
        font-size: 28px;
    }

    .text p {
        max-width: 343px;
    }

    .contacts {
        padding-bottom: 20px;
        position: static;
        grid-template-columns: 1fr;
    }
    
    .contacts .item {
        gap: 8px;
    }

    .contacts .item a {
        font-size: 12px;
    }
}