:root {
    font-size: 100%;
    --main-gradient:linear-gradient(45deg, #7d267a, #ff6036);
    --bg-color:#ffe2e2;;

}

@media (min-width: 120rem) {
    :root {font-size: 125%}
}

@media (max-width: 30rem) {
    :root{font-size: 87.5%;}
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color:#ffe2e2;;
    overflow-x: hidden;


}

.nav{
    width: 100%;
    background: #f8f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8 clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
    max-width: 100vw;
}

@media (max-width: 48rem) {
    .nav {
        flex-wrap: 1;
    }

    .nav img {
        height: 2rem;
        width: auto;
    }
}


.nav-menu{
    display: flex;
    align-items:center;
    gap: 4rem;
    margin-left:auto ;
    margin-right: 1.25rem;
    font-size: 1.3rem;
    font-weight: bold;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    cursor: pointer;

}

@media (max-width: 48rem) {
    .nav-menu {
    gap: 1rem;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    }
}



.nav-menu p {
    margin: 0;
    white-space: nowrap;
    font-family: 'Roboto' , sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: 1.1rem;
    color: #333;
    letter-spacing: -0.5px;
    transition: color 0.3s;

}

.tinder{
    width: 7.5rem;
    height: auto;
    display: block;
    
}

@media(max-width:48rem) {
    .tinder {
    width: clamp(3rem, 15vw, 6rem);
    flex-shrink: 1;
    
    }
}



.button1{
    background: linear-gradient(45deg, #fd267a, #ff6036);
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 1.25rem;
    color: #efe8e8;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s ease;
    margin-left: auto;
}

@media (max-width: 48rem) {
    .nav.header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2%;
    gap: 1vw;
    
    }

}

.button1:hover {
    transform: scale(1.05);
}



@media (max-width: 48rem) {
    .nav-menu {
    display: flex;
    margin: 0;
    flex-grow: 1;
    justify-content: center;
    gap: 1vw;

    }

    .nav-menu p {
        font-size: clamp(0.6rem, 2.5vw, 0.9rem);
        margin: 0;
        white-space: nowrap;
        letter-spacing: -0.02em;

    }

    .button1 {
        padding: 0.4rem 2vw;
        font-size: clamp(0.5rem, 2vw, 0.8rem);
        flex-shrink: 0;
        white-space: nowrap;
    }
}


.hero {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1rem, 5vw, 3rem );
    padding: 5rem 5%;
    flex-wrap: wrap;
    overflow-x: hidden;
}

.card{
    position: relative;
    display: flex;
    background: #fff;
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
    border-radius: 1rem;
    padding: 1rem;
    transition: 0.3s ease;
    box-sizing: border-box;
}

.card-right {
    position: relative;
    display: flex;
    flex-direction: column;
    transform: rotate(8deg) translateY(1.25rem);
    margin: 2rem;
}

.card-left{
    position: relative;
    display: flex;
    flex-direction: column;
    transform: rotate(-8deg) translateY(-1.25rem);
    margin: 2rem;
}

@media (max-width: 48rem) {
    .card-left, .card-right {
        transform: rotate(0) translateY(0);
        margin: 0 0  2rem 0;
        bottom: 1rem;
    }
}

.card > img {
    width: 100%;
    aspect-ratio: 4/5;
    height: auto;
    object-fit: cover;
    border-radius:1rem;
}

.card-info {
    position: absolute;
    bottom: 25%;
    left: 8%;
    color: #FFFFFF;
    font-family: "Roboto Flex", sans-serif;
}

/* Блок центровой */

.hero-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align:center;
    max-width: 30rem;
    margin: auto;

}

@media (max-width: 30rem) {
    .hero-text {
        padding: 1.5rem 0.5rem;
    }
}


.hero-text h1 {
    text-transform: uppercase;
    color: #fd2c72;
    font-family: Verdana, Geneva, Tahoma;
    gap: 6rem;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
   
}

@media(max-width: 30rem) {
    .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

.hero-text p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-style: italic;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1rem;

}


@media(max-width: 30rem) {
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    
    }
}

.button-start {
    background: linear-gradient(45deg, #fd267a, #ff6036);
    padding: 1rem 2rem;
    border-radius: 2rem;
    color: #efe8e8;
    font-weight: bold;
    font-size: 1.4rem;
    margin: auto;
    cursor: pointer;
    transition: 0.3s ease;

}

@media (max-width: 64rem) {
    .button-start {
        font-size: 1.1rem;
        margin-top: 1.5rem;

     }

}

.button-start:hover {
    transform: scale(1.05);
}


.location{
    position: absolute;
    bottom: 4.5rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.5rem rgba(251, 248, 248, 0.1);
    color: #FFFFFF;

}

.location:hover {
    transform: scale(1.25);
    text-decoration: underline;
}

.geolok{
    width: 1rem;
    height: auto;
    filter: invert(100%) brightness(200%);
}

.citi-name{
    font-family: "Roboto Flex", sans-serif;
    font-size: 1.2rem;
    font-style: italic;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    outline: none;

}

.citi-name:hover {
    color: #ffcc00;
    text-decoration: underline;
}



.dekor-user{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    cursor:pointer;

}

.dekor{
    width: 2rem;
    height: auto;   
}

.dekor:hover {
    transform: scale(1.25);
}

.heard1{
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-40%, -32%) rotate(-17deg);
    z-index: 10;
    pointer-events: none;
}

.heard2 {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    transform: translate(32%, -12%)  rotate(20deg);
    z-index: 10;
    pointer-events: none;
}
.serdce { 
    width: clamp(2.5rem, 4vw, 3rem);
    height: auto;
    display: block;
}

.serdehko {
    width: clamp(2.5rem, 5vw, 4rem);
    height: auto;
    max-width: none;
    display: block;
}



.heard3 {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-34%, -40%) rotate(-10deg);
    z-index: 10;
    pointer-events: none;
}

.heard4 {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    transform: translate(20%, -25%) rotate(8deg);
    z-index: 10;
    pointer-events: none;
}

.serdce1 {
    width: clamp(2.5rem, 5vw, 4rem);
    height: auto;
    display: block
}

.serdce2 {
    width: clamp(2.5rem, 4vw, 3rem);
    height: auto;
    max-width: none;
    display: block;
}

.location2 {
    position: absolute;
    bottom: 4.5rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.5rem rgba(251, 248, 248, 0.1);
    color:#fff;

}

.location2:hover {
    transform: scale(1.25);
    text-decoration: underline;
}

.geolok1 {
    width: 1rem;
    height: auto;
    filter: invert(100%) brightness(200%);
}

.citi-name1 {
    font-family: "Roboto Flex", sans-serif;
    font-size: 1.2rem;
    font-style: italic;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.citi-name1:hover {
    color: #ffcc00;
    text-decoration: underline;
}



.dekor-user1 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    cursor: pointer;

}

.dekor1 {
    width: 2rem;
    height: auto;
}

.dekor1:hover {
    transform: scale(1.25);
}




/* sector #2*/

.cats {
    width: 100%;
    background: #FD2C72;
    padding: 3rem 0 8rem 0;
    overflow: hidden;
    position: relative;
}


.cats h2 {
    position: relative;
    z-index: 2;
    font-family: "Roboto Flex", sans-serif;
    text-transform: uppercase;
    color: #fff;
    padding: 1rem;
    font-size: clamp(1rem, 4vw, 2.5rem);
    font-weight: bold;
    font-style: oblique;
    margin-top: -1rem;
    margin-left: 5%;
    margin-bottom: 2rem;
    line-height: 1.1;
}



.heart-container {
    position: relative;
    display: inline-block;
}


.glass1,
.glass2 {
    position: absolute;
    height: auto;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%);
    
}

/* Настройки для І (сердце с лапкой) */
.glass1 {
    width: 5rem;
    bottom: 1rem;
    
}

/* Настройки для Й (сердце завитух) */
.glass2 {
    width: 8rem;
    bottom: 1rem;
    
}

/*Стреки лево-право*/

.arrow{
    position: absolute;
    display: flex;
    justify-content:flex-end;
    top: 5rem;
    right: 10%;
    gap: 1rem;
    z-index: 10;
}

.arrow1{
    width: 2.5rem;
    height: 2.5rem;
    transition: transform 0.2 ease;
    cursor: pointer;
}

.arrow2{
    width: 2.5rem;
    height: 2.5rem;
    transition: transform 0.2 ease;
    cursor: pointer;
    
}

.arrow1:hover, .arrow2:hover {
    transform: scale(1.15);
}

/* Второй список  карточек с котами */

.cats-list {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 6%;
    margin-top: 1rem; 
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;   
}

.cats-list::-webkit-scrollbar {
    display: none;

}

.cat-card {
    position: relative;
    background: #FFFFFF;
    flex: 0 0 15.3rem;
    height: 26.25rem;
    padding: 0.6rem;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-0.5rem);
}

.img1 {
    width: 100%;
    height:  21.8rem;
    border-radius: 1rem;
    object-fit: cover;

}

.dekor-user2 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: auto;
    padding: 0.5rem 0;
    cursor: pointer;
}
.dekor2 {
    width: 1.8rem;
    height: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.dekor2:hover {
    transform: scale(1.1);
}




/*Секция №3*/

.matches{
    width: 100%;
    padding: 3rem 0 8rem 0;
    overflow: hidden;
    position: relative;
}


.matches-content {
    position: relative;
    display: flex;
    justify-content:center;
    gap: 1.5rem;
    padding: 2rem 5%;
    margin-top: 2rem;
        
}

.air-word-bubble{
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
   
}

.ideal-couple {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 900;
    font-size: 4rem;
    text-transform: uppercase;
    text-align: center;
    color: #fd2c72;
}

.heart-bubble1{
    width: 20%;
    height: 15rem;

}

.heart-bubble2 {
    width: 20%;
    height: 15rem;
}



.heart-in-combination {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    
}

.heart-solid, .delicate-heart {
    width: 4%;
    height: 4rem;

    /*Тень для сердец*/
    filter: invert(13%) sepia(100%) saturate(5260%) hue-rotate(1deg) brightness(97%) contrast(117%);
   
}

.pairs-container1{
    position: relative;
    background: linear-gradient(143deg, #fd267a 0%, #ff6036 100%);
    flex: 0 0 15.3rem;
    height: 26.25rem;
    padding: 0.6rem;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    transform: rotate(9deg) translateY(2rem);
    transition: all 0.3s ease;
}

.img-cat1 {
    width: 100%;
    height: 85%;
    border-radius: 1rem;
    margin-bottom: 2rem;
    object-fit: cover;
}

.card-left1 {
    position: relative;
    display: flex;
    transform: rotate(0);
    margin-bottom: 3rem;
}

.chat-bubble {
    position: absolute;
    background: #fd2c72;
    color: #fff;
    padding: 0.8rem;
    text-align: center;
    font-family: "Roboto Flex", sans-serif;
    font-weight: 900;
    font-style: italic;
    border-radius: 1.2rem;
    font-size: 0.75rem;
    width: 10rem;
    z-index: 15;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.left-b {
    top: -1rem;
    left: -9rem;
    transform: rotate(6deg);
    /* Небольшой контр-поворот для читаемости */
}

.pairs-container2 {
    position: relative;
    background: linear-gradient(232deg, #fd267a 0%, #ff6036 100%);
    flex: 0 0 15.3rem;
    height: 26.25rem;
    padding: 0.6rem;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    transform: rotate(-9deg) translateY(5rem);
    transition: all 0.3s ease;
    
}

.word1 {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.05rem;
    white-space: nowrap;   

}

.img-cat2 {
    width: 100%;
    height: 85%;
    border-radius: 1rem;
    object-fit: cover;
}

.card-right2 {
    position: relative;
    display: flex;
    transform: rotate(0);
    margin-bottom: 3rem;
}

.chat-bubble {
    position: absolute;
    background: #fd2c72;
    color: #fff;
    padding: 0.8rem;
    text-align: center;
    font-family: "Roboto Flex", sans-serif;
    font-weight: 700;
    font-style: italic;
    border-radius: 2rem ;
    font-size: 0.75rem;
    width: 10rem;
    z-index: 15;
    letter-spacing: 0.05rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: bubble-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.8s;
}

.left-b {
    top: -0.7rem;
    left: -9rem;
    transform: rotate(6deg);
   
}

.right-b{
    top: -1rem;
    right: -9rem;
    transform: rotate(-6deg);
}

.pairs-container1:hover {
    transform: rotate(0deg) scale(1.15);
    z-index: 10;
}

.pairs-container2:hover {
    transform: rotate(0deg) scale(1.15);
    z-index: 10;
}

.ticker {
    width: 100%;
    height: 3rem;
    border-radius: 2rem;
    background-color: #fd267a;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 7rem;
}

.ticker-text {
    display: flex;
    width: max-content;
    animation: ticker-animation 25s linear infinite;
}

.ticker-text span {
    font-family: "Roboto Flex", sans-serif; 
    font-size: 1.6rem;
    font-weight: bold;
    font-style: oblique;
    text-transform: uppercase;
    color: #efe8e8;
    padding-right: 4rem;
    animation: ticker-animation 30s linear infinite;

}

@keyframes ticker-animation {
    0% {
        transform: translateX(0);
    }
    
100% {
        
        transform: translateX(-33.33%);
    }
}

@keyframes bubble-pop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    80% {
        transform: scale(1.1) rotate(8deg);
    }

    100% {
        transform: scale(1) rotate(6deg);
        opacity: 1;
    }
}



/* Мобільна версія (для екранів менше 768px) */
@media (max-width: 768px) {

    .ideal-couple {
        font-size: 2.2rem;
        /* Уменьшаем заголовок, чтобы влез в одну строку */
        padding: 0 1rem;
    }

    .matches-content {
        flex-direction: column;
        /* Ставим карточки друг под друга */
        align-items: center;
        gap: 4rem;
        /* Расстояние между наклоненными карточками */
        padding-top: 5rem;
    }

    /* Убираем сильный наклон и смещение, чтобы карточки не вылезали за экран */
    .pairs-container1,
    .pairs-container2 {
        flex: 0 0 18rem;
        /* Делаем карточки чуть шире на мобилках */
        height: 28rem;
        transform: rotate(5deg) translateY(0);
        /* Уменьшаем угол */
    }

    .pairs-container2 {
        transform: rotate(-5deg) translateY(0);
    }

    /* Позиционируем облачка ТАК, чтобы они не улетали за край экрана */
    .left-b {
        left: 50%;
        top: -4rem;
        transform: translateX(-50%) rotate(0deg);
        /* Центрируем над котом */
        width: 80%;
        /* Чтобы текст не был слишком узким */
    }

    .right-b {
        right: auto;
        left: 50%;
        top: -4rem;
        transform: translateX(-50%) rotate(0deg);
        /* Центрируем над кисой */
        width: 80%;
    }

    /* Уменьшаем сердечки по бокам заголовка */
    .heart-bubble1,
    .heart-bubble2 {
        display: none;
        /* На мобилках их лучше скрыть, чтобы не теснили текст */
    }

    /* Сердечко-разделитель между карточками */
    .heart-solid,
    .delicate-heart {
        width: 15%;
        height: auto;
    }

    .ticker {
        margin-top: 10rem;
        /* Опускаем бегущую строку ниже */
        height: 2.5rem;
    }

    .ticker-text span {
        font-size: 1.1rem;
        /* Уменьшаем шрифт бегущей строки */
    }
}






/* --- Адаптив для планшетов и ноутбуков (до 1024px) --- */
@media (max-width: 64rem) {

    .cats h2 {
        font-size: 2rem;
        margin-left: 3%;
        

    }

    
    
    .cat-card {
        flex: 0 0 14rem;
        height: 24rem;
    }
    
}

/* --- Адаптив для смартфонов (до 480px) --- */
@media (max-width: 30rem) {
    
    .cats h2 {
        font-size: 1.6rem;
        margin-left: 3%;
        margin-top: -0.5rem;
    
    
    }

    .cats {
        padding-top: 1.5rem;
        padding-bottom: 6rem;
    }

  
            
    .glass1 {
                
        width: 3rem;
        bottom: 0.5rem;
        
        
    }
    
    .glass2 {
      width: 8rem;
      bottom: 0.2rem;
    
    }
    
    
    .arrow {
        top: 2.5rem;
        right: 1.25rem;
        gap: 0.8rem;
    }

    .arrow1,
    .arrow2 {
        width: 2rem;
        height: 2rem;
        pointer-events: auto;
    }

    
    .cats-list {
        margin-top: 1.5rem;
        gap: 1rem;
        padding: 0 1.25rem;
    }

    .cat-card {
        flex: 0 0 13.5rem;
        height: 23rem;
    }

       

    .img1 {
        height: 18rem;
        
    }
}






