:root {
    --primary: #ED510F;
    --accent: #FFF0EB;
    --text-color: #000;
    --light: #FAFAFA;
    --radius: 10px;
}

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

@font-face {
    font-family: 'Inter';
    src: url(../fonts/Inter-Medium.woff2) format('woff2'),url(../fonts/Inter-Medium.woff) format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url(../fonts/Inter-SemiBold.woff2) format('woff2'),url(../fonts/Inter-SemiBold.woff) format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:focus {
    outline: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body,
.wrapper {
    height: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
}

body {
    font: 14px/1.2 'Inter', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light);
    min-width: 320px;
}

.container {
    width: 100%;
    max-width: 1230px;
    padding: 0 28px;
    margin: 0 auto;
}

/*  Header */
.header {
    padding: 24px 0;
    background-color: var(--accent);
}
.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1370px;
}

/* Order-block */
.order-column {
    padding: 44px 0;
}

.order-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th,
.order-table td {
    ont-size: 18px;
    font-weight: 500;
    vertical-align: top;
    padding: 0 0 28px;
    border: none;
}

.order-form tbody>tr:nth-child(odd)>td,
.order-form tbody>tr:nth-child(odd)>th {
    background-color: transparent!important;
}

.order-table small {
    font-size: 14px;
}

.order-table th:nth-child(2),
.order-table td:nth-child(2) {
    text-align: right;
}

.order-table tfoot tr {
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.order-table tfoot td {
    padding: 35px 0 0;
    font-size: 20px;
    font-weight: 600;
}

.order-table-info {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(0, 0, 0, .5);
    list-style-position: inside;
    margin-top: 6px;
}

.order-table-amount {
    font-size: 20px;
    white-space: nowrap;
}

.order-table-amount--primary {
    color: var(--primary);
}

.order-picture {
    display: none;
}

/*  Congratulation-block  */
.congratulation-block {
    text-align: center;
    max-width: 443px;
    padding-top: 58px;
    margin: 0 auto;
}

.congratulation-picture {
    display: block;
    margin-bottom: 40px;
}

.congratulation-picture img {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.congratulation-text {
    color: rgba(0, 0, 0, .5);
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    padding: 16px 10px;
    min-width: 178px;
    border-radius: var(--radius);
}

.btn--primary {
    background-color: var(--primary);
}

.wrapper {
    position: relative;
    z-index: 1;
}

.wrapper:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90%;
    background: url(../img/bg-main.svg) bottom center / cover no-repeat;
    z-index: -1;
}

.ccf-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ccf-field {
    margin-bottom: 15px;
}

.ccf-field label {
    display: block;
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
    color: #555;
}

.ccf-field input[type="text"],
.ccf-field select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.ccf-field input[type="text"]:focus,
.ccf-field select:focus {
    border-color: #0073aa;
    outline: none;
}

.ccf-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    text-align: center;
}

.ccf-button:hover {
    background-color: #005d8c;
}

.ccf-button:active {
    background-color: #003f66;
}

#user-data-form {
    margin-right: 15px;
    margin-left: 15px;
}

.ccf-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

@media (min-width: 992px) {
    /*  Header */
    .header {
        padding: 40px 0;
        background-color: transparent;
    }
    .header .container {
        justify-content: space-between;
    }

    /*  Order-block */
    .order-block {
        display: grid;
        grid-template-areas:
                            "form form-table"
                            "form form-table";
        grid-template-columns: minmax(505px, 1fr) 1fr;
        grid-gap: 44px;
        padding: 28px;
        box-shadow: 0px 13px 32.4px rgba(0, 0, 0, 0.05);
        border-radius: var(--radius);
        background-color: var(--light);
        margin-bottom: 48px;
    }

    .order-form {
        grid-area: form;
        background-color: #fff;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .order-column {
        grid-area: form-table;
        display: flex;
        flex-direction: column;
        padding: 24px 0 0;
    }

    .order-title {
        margin-bottom: 42px;
    }

    .order-table {
        max-width: 505px;
        margin-bottom: 32px;
    }

    .order-table tr, .order-table td {
        border: none;
        background-color: #FAFAFA!important;
    }

    .order-table tfoot .order-table-amount {
        font-size: 24px;
    }

    .order-picture {
        display: block;
        margin-top: auto;
    }

    .order-picture img {
        display: block;
        width: 100%;
        height: auto;
    }

    /*  Congratulation-block  */
    .congratulation-picture img {
        max-width: 264px;
        padding-top: 0;
    }

    .page-title {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 8px;
    }
}