@font-face {
    font-family: "Masvol";
    src: url("../fonts/cd-masvol-thin.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Gilroy-Light";
    src: url("../fonts/Gilroy-Light.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Gilroy-Bold";
    src: local('Gilroy Bold'), local('Gilroy-Bold'),
         url("../fonts/Gilroy/Gilroy-Bold.eot?#iefix") format('embedded-opentype'),
         url("../fonts/Gilroy/Gilroy-Bold.woff") format('woff'),
         url("../fonts/Gilroy/Gilroy-Bold.ttf") format('truetype');
    font-weight: bold;
    font-style: normal;
}


:root {
  --vh: 1vh;
}


* {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
    list-style-type: none;
    user-select: none;
}

html,
body {
    position: relative;
    height: auto;
    width: auto;
    background-color: #f5f5f5;
    font-family: 'Gilroy-Light', sans-serif;
    color: #1a1f22;
}

a:active,
a:hover,
a,
a > u {
    white-space: nowrap;
    text-decoration: none;
    color: #1a1f22;
    transition: 0.2s;
}

svg {
    fill: #ffffff
}

input,
textarea {
    outline:none;
    width: 100%;
    padding: 13px 16px;
    margin-top: 8px;
    background-color: #ffffff;
    color: #1a1f22;
    transition: 0.2s;
    margin: 0;
}

input::placeholder,
textarea::placeholder {
    font-weight: lighter;
    opacity: 0.5;
    color: #1a1f22;
}

.main {
    display: flex;
    height: auto;
    width: 100vw;
    align-items: center;
    flex-direction: column;
    gap: 48px;
}

.primary,
.second,
.program,
.location,
.dress-code,
.questionnaire,
.wishes,
.contacts,
.footer > a {
    display: flex;
    height: calc(var(--vh, 1vh) * 100);
    width: 100vw;
    align-items: center;
    flex-direction: column;
    padding: 48px;
    justify-content: space-between;
    gap: 32px;
    transition: height 0.3s ease;
}

.second,
.program,
.location,
.dress-code,
.questionnaire,
.wishes,
.contacts {
    transform: translateY(50px);
    opacity: 0;
}

.second {
    height: auto; 
    gap: 10vh;
}

.program,
.dress-code,
.wishes,
.contacts {
    height: auto; 
    gap: 3vh;
}

.location {
    height: auto;
    gap: 2vh;
}

.questionnaire,
.contacts {
    height: auto;
    padding: 6vh 3vh;
    gap: 1vh;
    color: #ffffff;
    max-width: calc(100vw - 6vh);
    text-align: center;
    background: #171a19;
    max-width: 900px;
}

.questionnaire,
.contacts {
    background: #171a19;
    background: -moz-radial-gradient(0% 100%, ellipse cover, rgba(85, 85, 85, 0.4) 10%,rgba(73, 73, 73, 0) 40%), -moz-linear-gradient(top, rgba(145, 145, 145, 0.25) 0%,rgba(68, 68, 68, 0.4) 100%), -moz-linear-gradient(-45deg, #171a19 0%,#000000 100%);
    background: -webkit-radial-gradient(0% 100%, ellipse cover, rgba(85, 85, 85, 0.4) 10%,rgba(73, 73, 73, 0) 40%), -webkit-linear-gradient(top, rgba(145, 145, 145, 0.25) 0%,rgba(68, 68, 68, 0.4) 100%), -webkit-linear-gradient(-45deg, #171a19 0%,#000000 100%);
    background: -o-radial-gradient(0% 100%, ellipse cover, rgba(85, 85, 85, 0.4) 10%,rgba(73, 73, 73, 0) 40%), -o-linear-gradient(top, rgba(145, 145, 145, 0.25) 0%,rgba(68, 68, 68, 0.4) 100%), -o-linear-gradient(-45deg, #171a19 0%,#000000 100%);
    background: -ms-radial-gradient(0% 100%, ellipse cover, rgba(85, 85, 85, 0.4) 10%,rgba(73, 73, 73, 0) 40%), -ms-linear-gradient(top, rgba(145, 145, 145, 0.25) 0%,rgba(68, 68, 68, 0.4) 100%), -ms-linear-gradient(-45deg, #171a19 0%,#000000 100%);
    background: -webkit-radial-gradient(0% 100%, ellipse cover, rgba(85, 85, 85, 0.4) 10%,rgba(73, 73, 73, 0) 40%), linear-gradient(to bottom, rgba(145, 145, 145, 0.25) 0%,rgba(68, 68, 68, 0.4) 100%), linear-gradient(135deg, #171a19 0%,#000000 100%));
}

.contacts {
    gap: 6vh;
}

.wishes {
    max-width: 900px;
}

.footer > a {
    display: flex;
    height: auto;
    gap: 4vh;
    justify-content: space-evenly;
    max-width: 900px;
    font-size: 13px;
    align-items: center;
    flex-direction: row;
    text-align: center;
    text-wrap-mode: wrap;
    padding: 10px 48px 32px 48px;
}

.primary-header {
    display: flex;
    white-space: nowrap;
    font-family: 'Masvol', sans-serif;
    align-items: center;
    flex-direction: column;
    gap: 1vh;
}

.primary-header > .title {
    font-size: 48px;
    text-transform: uppercase;
}

.primary-header > .line {
    width: 90%;
    border-bottom: 1px solid #1a1f22;
}

.primary-header > .date {
    font-family: 'Gilroy-Light', sans-serif;
    padding-top: 1vh;
    font-size: 20px;
}

.primary-block {
    height: 100%;
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.primary-block > .background {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    overflow-y: hidden;
}

.primary-block > .arrow {
    display: flex;
    position: absolute;
    width: 100%;
    bottom: 0;
    cursor: pointer;
    justify-content: center;
    padding: 3vh;
}

.second-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    padding: 0 2vh;
    text-align: center;
}

.second-header > .title,
.program-header > .title,
.location-header > .title,
.dress-code-header > .title,
.questionnaire-header > .title,
.wishes-header > .title,
.contacts-header > .title {
    font-family: 'Masvol', sans-serif; 
    text-transform: uppercase; 
    font-size: 36px; 
    padding-bottom: 2vh;
}

.second-header > .desc {
    text-align: center;
}

.second-countdown {
    position: relative;
    width: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 7vh 5vh;
    gap: 5vh;
    justify-content: center;
    max-width: 900px;
}

.second-countdown:before {
    content: '';
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color:rgba(0, 0, 0, 0.6);
}

.second-countdown > .title {
    font-family: 'Masvol', sans-serif; 
    text-transform: uppercase; 
    font-size: 36px; 
    text-align: center;
    z-index: 0;
}

.second-countdown > .countdown {
    display: flex; 
    gap: 3vh;
    z-index: 0;
}

.second-countdown > .countdown > .element {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
}

.second-countdown > .countdown > .element > .value {
    font-size: 42px;
}

.second-countdown > .countdown > .element > .name {
    padding: 0 1vh;
    font-size: 12px;
}

.program-info {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 0 1vh;
    justify-content: center;
}

.program-info > .time {
    text-align: right;
    white-space: nowrap;
}

.program-info > .line {
    height: 1px;
    background-color: #1a1f22;
    width: 100px;
}

.location-block,
.wishes-block,
.contacts-block {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
}

.wishes-block,
.contacts-block {
    gap: 5vh;
}

.location-block > .info,
.wishes-block > .info,
.contacts-block > .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    padding: 0 1vh;
}

.contacts-block > .info {
    gap: 1vh;
}

.location-block > .info > div,
.wishes-block > .info > div,
.contacts-block > .info > div {
    text-align: center;
}

.wishes-block > .info > .wishes-number {
    font-size: 42px;
}

.contacts-block > .info > .contacts-number {
    font-size: 28px;
    padding-bottom: 1vh;
}

.contacts-block > .info > .subinfo {
    display: flex;
    gap: 6px;
    font-size: 12px;
    align-items: center;
}

.contacts-block > .info > .subinfo > hr {
    border: 0;
    height: 1px;
    width: 4px;
    background-color: #ffffff;
}

.location-block > .info > hr,
.wishes-block > .info > hr {
    border: 0;
    height: 1px;
    width: 48px;
    background-color: #1a1f22;
}

.location-block > img {
    width: 100%;
    max-width: 900px;
    object-fit: cover;
    aspect-ratio: 16 / 8;
    filter: grayscale(100%);
}

.location-block > a {
     border: 1px solid #1a1f22;
    padding: 10px 20px;
    cursor: pointer;
}

.dress-code-header,
.questionnaire-header,
.contacts-header {
    display: flex;
    width: 100%;
    max-width: 900px;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    padding: 0 2vh;
    text-align: center;
}

.dress-code-block {
    display: flex; 
    gap: 3vh;
}

.dress-code-block > .color {
    width: 80px;
    height: 80px;
}



#rsvp-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    width: 460px;
}

.block-input {
    padding: 20px 0 36px 0;
    width: 100%;
}

.block-input > p {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.block-select {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#response-message {
    padding: 24px 0;
    width: 100%;
    text-align: center;
    visibility: hidden;
}

#rsvp-form > button {
    border: 1px solid #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    background: none;
    color: white;
    width: 100%;
}

[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}

[type="radio"]:checked + label,
[type="radio"]:not(:checked) + label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    font-size: 13px;
}

[type="radio"]:checked + label:before,
[type="radio"]:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border: 1px solid #ffffff;
    border-radius: 100%;
    background: #fff;
}

[type="radio"]:checked + label:after,
[type="radio"]:not(:checked) + label:after {
    content: '';
    width: 12px;
    height: 12px;
    background: #1a1f22;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

[type="radio"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

[type="radio"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}


/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .footer > a {
        flex-direction: column;
    }
}

/* Большие телефоны (481px - 767px) */
@media (max-width: 767px) {
    .primary, 
    .second,
    .program,
    .location,
    .dress-code,
    .wishes {
        padding: 24px;
    }

    .questionnaire,
    .contacts {
        padding: 48px 24px;
    }

    .second-countdown > .countdown > .element > .value {
        font-size: 28px;
    }

    .second-countdown > .countdown {
        gap: 2vh;
    }
}

/* Мобильные телефоны (до 480px) */
@media (max-width: 480px) {
    .second-countdown > .countdown > .last {
        display: none;
    }

    .primary-header > .title {
        font-size: 42px;
    }

    .program-info {
        font-size: 14px;
        gap: 28px 16px;
    }

    .program-info > .line {
        width: 48px;
    }
}

@media (max-width: 320px) {
    .primary-header > .title {
        font-size: 36px;
    }
}


::-webkit-scrollbar {
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #1d1d1b;
}

.btn, button{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
 
.btn:focus, button:focus{
    outline: none;
}
