/*-----------------------body----------------------- */

    body {
    font-family: "Roboto", sans-serif;
    color: #434455;
    background-color: #ffffff;
    }

    ul,
    ol {
    list-style: none;
    margin: 0;
    padding: 0;
    }

    address{
    font-style: normal;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
    margin: 0;
    }
    
    button {
    cursor: pointer;
    }
    
    img{
    display: block;
    }
    
    .container{
    width: 1183px;
    margin: 0 auto;
    }
    
    
    a {
    text-decoration: none;
    }
    
    .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
    }


    /* ------------------header------------- */
    .header{
    padding-top: 38px;
    padding-bottom: 80px;
    background-color: #141414;
    }

    .header-info{
    display: flex;
    align-items: center;
    margin-bottom: 98px;
    }

    .header-nav{
    display: flex;
    }
    
    .header-logo-svg{
    fill: #FFFFFF;
    }

    .header-logo{
    color: #FFFFFF;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    margin-right: 80px;

    }

    .header-list{
    display: flex;
    flex-direction: row;
    gap: 40px;
    
    }
    
    .header-menu-link{
    font-family: Epilogue;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #ffffff;
        
    }

    .header-address-tel{
    padding: 18px 35px;
    color: #FFFFFF;
    background-color: #1E2827;
    border-radius: 8px;
    margin-top: 20px;
    margin-left: 505px;
    }

    .header-title-text{
    display: flex;
    }

    .header-title{
    font-family: Epilogue;
    font-weight: 600;
    font-size: 60px;
    line-height: 1;
    letter-spacing: -0.04em;
    min-width: 750px;
    margin-right: 144px;
    color: #FFFFFF;
    }

    .header-text{
    font-family: Epilogue;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    max-width: 282px;
    color: #FFFFFF;
    }
    
    .other{ 
    display: flex;
    gap: 64px;
    }

    /* --------------cnopku---------------- */
    .gallery-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 122px;
    }
    /* Контейнер для зображення */
    .image-wrapper {
        
    }
    
    

    /* Головне зображення */
    #main-image {
    width: 436px;
    height: 255px;
    border: none;
    transition: opacity 0.3s ease-in-out;
    }
    
    /* Контейнер для кнопок та номера */
    .controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        
    }
    /* Нумерація фото */
    #image-number {
        font-size: 18px;
        color: #FFFFFF;
        min-width: 82px;
        margin-left: 245px; 
    }
    
    /* Кнопки */
    button {
    padding: 14px 17px;
    font-size: 18px;
    cursor: pointer;
    background-color: transparent ;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: background 0.3s;
    }
    
    button:hover {
    border: 1px solid rgba(255, 255, 255, 1)
    }



    /* -------------about------------------- */
    
    .about{
    padding: 80px 0;
    }

    .about-container{
        display: flex;
        
    }


    .about-title{
    color: #1E2827;
    font-family: Epilogue;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    min-width: 174px;
    margin-right: 110px;
    }
    
    
    .about-list{
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        row-gap: 40px;
    }

    .about-text{
    color: #141414;
    font-family: Epilogue;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.3;
    max-width: 439px;
    }

    .about-at{
    color: #141414;
    font-family: Epilogue;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.3;
    max-width: 380px;

    }

    
    /* --------------catalog------------ */
    
    .catalog{
    background-color: #141414;
    }

    .catalog-title{
    color: #FFFFFF;
    font-family: Epilogue;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 64px;

    }

    .catalog-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    row-gap: 64px;
    }
    
    .catalog-item{
    width: calc((100% - 72px) / 4);
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    }

    .catalog-item:hover {
    border-color: #FFFFFF;
    }

    .catalog-item.selected {
        border: 1px solid white !important; /* Білий бордер при виборі */
    }

    .catalog-text{
    color: #FFFFFF;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    margin-top: 39px;
    text-align: center;
    }

    .catalog-btn{
    background: rgba(30, 40, 39, 1);
    color: #FFFFFF;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    border: none;
    border-radius: 8px;
    padding: 18px 35px;
    width: 122px;
    height: 50px;
    transition: background-color 250ms
    cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 80px;
    margin-top: 80px;
    }

    .catalog-btn:hover,
    .catalog-btn:focus{
    border-radius: 1px solid rgba(255, 255, 255, 1);
    }

    .catalog-button{
    display: flex;
    justify-content: flex-end;
    }

    .modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 40px 40px;
        box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
        width: 904px;
        height: 694px;
        text-align: left;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    /* Анімація появи модального вікна */
    @keyframes fadeIn {
        from { opacity: 0; transform: translate(-50%, -55%); }
        to { opacity: 1; transform: translate(-50%, -50%); }
    }
    
    /* Закриття модального вікна */
    .close {
        float: right;
        cursor: pointer;
        color: #141414;
        font-size: 24px;
    }
    
    /* Відображення вибраного годинника в модальному вікні */
    .modal-selected-watch {
        text-align: center;
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 10px;
        background: #f9f9f9;
    }
    
    .modal-watch-img {
        max-width: 100px;
        height: auto;
        display: block;
        margin: 0 auto 10px;
    }
    
    /* Поля форми */
    .modal input {
        width: 100%;
        padding: 12px 16px;
        margin-top: 12px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 14px;
    }
    .modal-textarea{
        width: 100%;
        height: 120px;
        font-size: 14px;
        border: 1px solid rgba(46, 47, 66, 0.4);
        color: rgba(46, 47, 66, 0.4);
        padding: 8px 16px; 
        border-radius: 4px;
        outline: transparent;
        resize: none;
        background-color: transparent;
        transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* Стилі помилок валідації */
    .error {
        color: red;
        font-size: 12px;
        display: none;
    }
    
    
    .submit{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    }

    .btn-title{
    display: block;
    min-width: 169px;
    height: 56px;
    border-radius: 10px;
    color: #ffffff;
    font-family: Roboto;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin: 0px 98px 0 95px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
    background: #141414;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    


    /* ------------------new------------------------ */
    
    .new{
    display: flex;
    padding: 80px 0;
    }

    .new-tex{
    color: rgba(20, 20, 20, 0.4);
    font-family: Epilogue;
    font-weight: 300;
    font-size: 12px;
    line-height: 1,17;
    }

    .new-title{
    color: #1E2827;
    font-family: Epilogue;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    max-width: 448px;
    margin-bottom: 80px;
    }

    .new-list-img{
    display: flex;
    flex-direction: row;
    gap: 24px;
    }

    /* --------------sale---------------- */
    .sale{
    padding-bottom: 160px;
    }


    .sale-title{
    color: #1E2827;
    font-family: Epilogue;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 80px;

    }

    .sale-list-list{
    margin-left: 97px;
    display: flex;
    }

    .sale-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 20px;
    }

    .sale-item{
        background-color: #141414;
    }


    .sale-price-list{
    margin-left: 40px;
    max-width: 369px;

    }
    
    .sale-list-tex-subtitle{
    color: #141414;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 8px;

    }

    .sale-list-tex-text{
    color: rgba(20, 20, 20, 0.5);
    font-family: Epilogue;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 16px;
    }

    .sale-price-list-ww{
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    align-items: center;
    }

    .sale-price-text{
    color: #141414;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;

    }

    .sale-price-text-ww{
    color: rgba(20, 20, 20, 0.5);
    font-family: Epilogue;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: line-through;

    }

    .descrip-title{
    color: #141414;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;

    }

    .descrip-text{
    color: rgba(20, 20, 20, 0.5);
    font-family: Epilogue;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 20px;

    }

    .details-title{
    color: #141414;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 17px;
    }

    .details-text{
    white-space: pre-line;
    color: rgba(20, 20, 20, 0.5);
    font-family: Epilogue;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    
    }


    /* --------------footer------------ */

    .footer{
    padding-top: 100px;
    padding-bottom: 32px;
    background-color: #1E2827;
    }
    
    .footer-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    

    }

    .icon-foter-logo{
    fill: #FFFFFF;
    margin-bottom: 40px;
    }

    .address-tel{
    color: #FFFFFF;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;

    }


    .footer-tex{
    margin-top: 20px;
    min-width: 181px;
    }

    .tex{
    color: #FFFFFF;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.02em;

    }
    
    .footer-nav{
    margin-left: 349px;
    }

    .footer-nav-list{
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 115px;
    }

    .footer-nav-item-href{
    color: #FFFFFF;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;

    }
    
    .footer-icon-menu{
    margin-left: 367px;
    
    }

    .icon-list{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 164px;
    max-height: 44px;
    
    }
    
    .icon-item{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 44px;
    height: 44px;

    
    }

    .icon-svg{
    fill: #FFFFFF;
    
    }


    .privat-item-href{
    color: #FFFFFF;
    font-family: Epilogue;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: right;

    }

    .footer-reserved{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 174px;
    }

    .reserved-tex{
    color: rgba(198, 205, 209, 1);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    min-width: 279px;
    margin-right: 680px;
    }

    .privat-list{
    display: flex;
    flex-direction: row;
    gap: 18px;
    min-width: 217px;
    }
    
    .privat-text{
    color: rgba(198, 205, 209, 1);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: right;
    }
