:root {
    --basic-white: #ffffff;
    --basic-black: #000000;
    --basic-gray: #e5e5e5;
    --basic-dark-gray: #666666;
    --special-navy-blue: #1C1B32;
    --special-gray-hover: #9493a5;

    /* Основные цвета одежды */
    --palette-green: #25412F;
    --palette-brown: #6B5841;
    --palette-grayish-yellow-brown: #A8967C;
    --palette-silver-crayola: #CDC8BC;
    --palette-platinum: #E8E8E4;

    /* Дополнительные цвета одежды */
    --palette-agate-gray: #B6AFAD;
    --palette-cement-gray: #718578;
}

/* Шрифты */
@font-face {
    font-family: "Modetheartistscript";
    font-weight: normal;
    font-style: normal;
    src: url("../fonts/madetheartistscript.woff2") format("woff2"),
         url("../fonts/madetheartistscript.woff") format("woff");
}
  
@font-face {
    font-family: "Inter";
    font-weight: normal;
    font-style: normal;
    src: url("../fonts/Inter-Regular.woff2") format("woff2"),
         url("../fonts/Inter-Regular.woff") format("woff");
}

/* Глобальные параметры */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.page {
    width: 100%;
    font-size: clamp(14px, 4vw, 20px);
    font-weight: 400;
    line-height: 1.4;
}

.page__body {
    min-width: 320px;
    display: grid;
    grid-template-rows: min-content 1fr min-content;
    margin: 0;
    font-family: "Inter", "Tahoma", sans-serif;
    color: var(--basic-dark-gray);
    background-color: var(--basic-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

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

.container {
    width: 100%;
    max-width: 1180px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

.button {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: normal;
    text-transform: uppercase;
    color: var(--basic-white);
    background-color: var(--special-navy-blue);
    padding: 12px 30px;
    text-align: center;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--special-gray-hover);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ========== АНИМАЦИЯ ПОЯВЛЕНИЯ ========== */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ХЕДЕР ========== */
.header {
    position: relative;
    display: flex;
    flex-direction: column;
    color: var(--basic-white);
    text-align: center;
    padding: 130px 20px 50px;
    background-image: url("../img/photo_2023-09-26_19-39-49.jpg");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.marquee {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    padding: 15px 0;
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
}

.marquee__text {
    font-size: clamp(16px, 4vw, 30px);
    text-transform: uppercase;
    font-weight: 100;
    white-space: nowrap;
    animation: marquee__text 20s infinite linear;
}

@keyframes marquee__text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.title {
    font-family: "Modetheartistscript", "Tahoma", sans-serif;
    font-size: clamp(40px, 10vw, 124px);
    font-weight: 400;
    margin-bottom: 40px;
}

.text {
    max-width: 416px;
    font-size: clamp(18px, 4vw, 30px);
    line-height: 1.5;
    margin: 0 auto 30px;
}

/* ========== СЧЕТЧИК ========== */
.countdown {
    background-color: var(--basic-gray);
    color: var(--special-navy-blue);
    padding: 40px 20px;
    text-align: center;
}

.countdown__title {
    font-size: clamp(28px, 6vw, 55px);
    text-transform: uppercase;
}

.timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 30px 10px;
}

.timer__item {
    margin: 20px 0;
}

.timer__numbers {
    display: block;
    font-family: "Modetheartistscript", "Tahoma", sans-serif;
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 600;
    padding: 10px;
}

.desc {
    font-size: clamp(12px, 3vw, 16px);
    font-style: italic;
}

/* ========== АДРЕС ========== */
.address {
    font-family: "Modetheartistscript", "Tahoma", sans-serif;
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 600;
    text-align: center;
    background-image: url("../img/photo_2023-09-20_18-47-27.jpg");
    background-size: cover;
    padding: 50px 20px;
}

.address__title {
    font-size: clamp(40px, 8vw, 80px);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.subtitle {
    font-size: clamp(20px, 4vw, 40px);
    font-weight: 400;
    margin-bottom: 30px;
}

.address__text {
    font-family: "Inter", "Arial", sans-serif;
    font-size: clamp(14px, 3.5vw, 20px);
    line-height: 1.6;
    max-width: 90%;
}

/* ========== ГАЛЕРЕЯ ========== */
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5px;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-1 {
    grid-row: span 2;
}

/* ========== КАРТЫ ========== */
.maps {
    font-family: "Modetheartistscript", "Tahoma", sans-serif;
    background-color: var(--basic-gray);
    text-align: center;
    padding: 50px 20px;
}

.maps__title {
    font-weight: 400;
    font-size: clamp(30px, 6vw, 74px);
}

.maps__subtitle {
    max-width: 420px;
    font-family: "Inter", "Arial", sans-serif;
    font-size: clamp(14px, 3vw, 20px);
    line-height: 1.6;
    color: var(--basic-dark-gray);
    text-transform: uppercase;
    margin: 30px auto;
}

.maps__img {
    width: 100%;
    height: auto;
    min-height: 300px;
}

/* ========== ТАЙМИНГ ========== */
.timing {
    background-image: url("../img/photo_2023-09-20_18-47-27.jpg");
    background-size: cover;
    text-align: center;
    padding: 50px 20px;
}

.schedule {
    max-width: 510px;
    width: 100%;
    background-image: url("../img/photo_2023-09-21_17-18-41.jpg");
    background-position: center;
    background-size: cover;
    padding: 30px 20px;
    margin: 0 auto;
    border-radius: 5px;
}

.schedule__title {
    position: relative;
    font-size: clamp(24px, 5vw, 46px);
    margin-top: 10px;
}

.signature {
    position: absolute;
    font-family: "Modetheartistscript", "Tahoma", sans-serif;
    font-size: clamp(20px, 4vw, 34px);
    top: 0;
    left: auto;
    right: 20px;
    font-weight: 100;
    white-space: nowrap;
}

.schedule__list {
    padding: 30px 10px;
}

.schedule__item {
    position: relative;
    font-size: clamp(40px, 8vw, 70px);
    margin-bottom: 100px;
}

.signature__1 {
    font-size: clamp(24px, 5vw, 50px);
    right: 10px;
    top: 15px;
}

.signature__2 {
    font-size: clamp(20px, 4vw, 38px);
    right: 10px;
    top: 15px;
}

.signature__3 {
    font-size: clamp(20px, 4vw, 38px);
    right: 10px;
    top: 15px;
}

/* ========== ДРЕСС-КОД ========== */
.dress-code {
    text-align: center;
    background-image: url("../img/photo_2023-09-20_18-47-52.jpg");
    background-size: cover;
    padding: 40px 15px;
}

.dress-code__title {
    font-size: clamp(32px, 7vw, 70px);
    font-weight: 400;
    text-transform: uppercase;
}

.dress-code__subtitle {
    max-width: 700px;
    line-height: 1.5;
    font-size: clamp(18px, 4vw, 30px);
    margin: 0 auto 50px;
}

.dress-code__items {
    position: relative;
    margin-bottom: 80px;
}

.dress-code__text {
    font-family: "Modetheartistscript", "Tahoma", sans-serif;
    font-size: clamp(24px, 5vw, 62px);
    font-weight: 100;
    position: static;
    display: block;
    margin-bottom: 20px;
}

.colors__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.colors__item {
    width: clamp(60px, 12vw, 200px);
    height: clamp(60px, 12vw, 200px);
}

.item-1 { background-color: var(--palette-green); }
.item-2 { background-color: var(--palette-brown); }
.item-3 { background-color: var(--palette-grayish-yellow-brown); }
.item-4 { background-color: var(--palette-silver-crayola); }
.item-5 { background-color: var(--palette-platinum); }
.item-6 { background-color: var(--basic-black); }
.item-7 { background-color: var(--palette-agate-gray); }
.item-8 { background-color: var(--palette-cement-gray); }

.preferences {
    padding: 30px 20px;
}

.preferences__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.preferences__item {
    position: relative;
    max-width: 450px;
    width: 100%;
    color: var(--basic-dark-gray);
}

.preferences__title {
    position: absolute;
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 100;
    text-transform: uppercase;
    top: 20px;
    left: 20px;
}

.preferences__subtitle {
    position: absolute;
    font-size: clamp(18px, 4vw, 34px);
    text-transform: uppercase;
    top: 70px;
    left: 30px;
}

.preferences__text {
    font-size: clamp(28px, 5vw, 60px);
    font-weight: 100;
    font-family: "Modetheartistscript", "Tahoma", sans-serif;
    position: absolute;
    top: 120px;
    left: 20px;
}

/* ========== ПОЖЕЛАНИЯ ========== */
.wishes {
    text-transform: uppercase;
    text-align: center;
    color: var(--basic-dark-gray);
    background-image: url("../img/photo_2023-09-20_18-48-23.jpg");
    background-size: cover;
    padding: 50px 20px;
}

.wishes__title {
    font-size: clamp(32px, 6vw, 60px);
}

.wishes__list {
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
    padding: 40px 15px;
}

.wishes__subtitle {
    font-family: "Modetheartistscript", "Tahoma", sans-serif;
    font-size: clamp(24px, 5vw, 40px);
    text-transform: initial;
    margin-bottom: 15px;
}

.wishes__text {
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.6;
    text-transform: none;
}

/* ========== ФОРМА ========== */
.form {
    background-color: var(--basic-gray);
    padding: 50px 20px;
}

.form-message {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;

    position: absolute;
    max-width: 500px;
    bottom: 10%;
    left: 25%;
    right: 25%;
    z-index: 100;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-feedback {
    width: 100%;
    max-width: 800px;
    position: relative;
    padding: 20px;
    margin: 0 auto;
}

.form-feedback::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--basic-black);
    position: absolute;
    left: 0;
    bottom: -30px;
}

.form__title {
    font-size: clamp(32px, 6vw, 60px);
    text-align: center;
    margin-bottom: 40px;
}

.form__list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
}

.form__item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-feedback__title {
    font-size: clamp(18px, 4vw, 26px);
    margin-bottom: 10px;
}

.form-feedback__input {
    font-size: clamp(16px, 4vw, 25px);
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: var(--basic-white);
    width: 100%;
}

.form-feedback__input:focus {
    outline: none;
    border-color: var(--special-navy-blue);
}

.form__radio {
    border: none;
    padding: 0;
}

.form__radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.form__radio-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.form__radio-item {
    position: relative;
    padding: 5px 0;
}

.form__label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px 8px 45px;
    font-size: clamp(14px, 3.5vw, 18px);
}

.form__radio:checked + .form__label::after {
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    top: 50%;
    left: 15px;
    background-color: var(--basic-black);
    border-radius: 50%;
    transform: translateY(-50%);
}

.form__radio + .form__label::before {
    content: "";
    width: 22px;
    height: 22px;
    position: absolute;
    top: 50%;
    left: 10px;
    background-color: var(--basic-white);
    border: 2px solid var(--basic-black);
    border-radius: 50%;
    transform: translateY(-50%);
}

.form__btn-small {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.form__small {
    font-size: 12px;
    text-transform: uppercase;
}

/* ========== ПОМОЩЬ ========== */
.help {
    background-color: var(--basic-gray);
    padding: 50px 20px;
}

.help__text {
    max-width: 600px;
    font-size: clamp(16px, 4vw, 22px);
    text-align: center;
}

.help__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--basic-dark-gray);
}

.help__img {
    max-width: 150px;
    width: 30%;
    border-radius: 50%;
}

.help__name {
    font-family: "Modetheartistscript", "Tahoma", sans-serif;
    font-size: clamp(28px, 6vw, 44px);
    margin: 20px 0 10px;
}

.help__phone,
.help__email {
    margin-bottom: 10px;
    font-size: clamp(14px, 3.5vw, 18px);
}

.help__link-phone,
.help__link-email {
    font-size: clamp(16px, 4vw, 26px);
    color: var(--basic-dark-gray);
}

.help__job-title {
    text-transform: uppercase;
    margin-bottom: 30px;
    font-size: clamp(16px, 4vw, 26px);
    font-weight: 100;
}

/* ========== ФУТЕР ========== */
.footer {
    position: relative;
    background-color: var(--basic-gray);
    padding: 30px 15px;
}

.footer::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--basic-black);
    position: absolute;
    top: 0;
    left: 0;
}

.footer__wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: clamp(12px, 3vw, 16px);
}

.email,
.developer-site {
    display: flex;
    flex-direction: column;
}

.footer__link {
    color: var(--basic-dark-gray);
    padding-top: 5px;
}

/* ========== МЕДИА-ЗАПРОСЫ ========== */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .timer {
        gap: 5px;
        padding: 20px 5px;
    }
    
    .schedule__item {
        margin-bottom: 60px;
    }
    
    .signature {
        position: static;
        display: block;
        font-size: clamp(16px, 4vw, 24px);
        margin-top: 5px;
    }
    
    .schedule__title {
        margin-bottom: 20px;
    }
    
    .signature__1,
    .signature__2,
    .signature__3 {
        font-size: clamp(16px, 4vw, 24px);
    }
    
    .footer__wrap {
        flex-direction: column;
        text-align: center;
    }
    
    .preferences__title,
    .preferences__subtitle,
    .preferences__text {
        position: static;
        text-align: center;
        margin: 10px 0;
    }
    
    .preferences__item img {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    /* .timer {
        grid-template-columns: repeat(2, 1fr);
    } */
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .img-1 {
        grid-row: auto;
    }
    
    .colors__item {
        width: 80px;
        height: 80px;
    }

    .form-message {
        left: 8%;
        right: 8%;
    }
    
    .form__radio-list--grid {
        grid-template-columns: 1fr;
    }
    
    .form__btn-small {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }
}