/* https://fonts.google.com 
-----------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

body {
    margin: 0;
    position: relative;
    font-family: sans-serif;
    height: 100vh;
    background: #1A1C24;
    /* background: url(img/bg.jpg)center center no-repeat; */
    ;
    font-family: "Inter", sans-serif;
    color: #fff;
}

html,
body {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
p {
    padding: 0;
    margin: 0;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

pre {
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0px 15px;
}


button {
    border: none;
    background: transparent;
    cursor: pointer;
}

.header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    background: #1A1C24;
    padding: 10px 15px 10px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-top: 6px;
}

.logo img {
    width: 80px;
}

.login {
    display: flex;
    align-items: center;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
}

.city {
    margin-top: 8px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 200;
    background: #2a2a2a;
}


@media (max-width: 767px) {
    .header .container {
        padding: 0;
    }
}


/* scroll
-----------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 0px;
}


/* categories
-----------------------------------------------------------------*/
.categories {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 920px;
    margin: 100px auto 60px;
    gap: 16px;
}

.category {
    max-width: 928px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 65% 35%;
    height: 320px;
    position: relative;
    color: #1A1C24;
    border-radius: 32px;
    padding: 0;
    overflow: visible;
    /* Разрешаем картинке выходить за пределы */
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease;
    cursor: pointer;
}

/* Описываем контейнер для текста */
.category__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Прижимает текст к нижней части, если места много */
    height: 100%;
    /* Занимает всю доступную высоту */
    z-index: 2;
    /* Чтобы текст всегда был поверх фоновых картинок */
}

.category-counter {
    display: inline-flex;
    /* Позволяет плашке подстраиваться под контент */
    align-items: center;
    /* Выравнивает иконку и текст строго по центру вертикали */
    gap: 6px;
    /* Аккуратный отступ между иконкой, цифрой и текстом */
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    /* Тёмный аккуратный цвет */
    background: rgba(255, 255, 255, 0.5);
    /* Твоя полупрозрачная подложка */
    padding: 4px 10px;
    border-radius: 20px;
}

.category-counter img {
    width: 16px;
    /* Запрещает иконке сжиматься, если текст длинный */
}

/* Выделение цифры (опционально, если хочешь сделать её чуть заметнее) */
.category-counter span {
    font-weight: 700;
}

/* Делаем небольшие отступы, чтобы элементы не слипались */
.category__title {
    margin-bottom: 6px;
    line-height: 1.2;
    /* Чтобы длинные названия красиво переносились */
}

.category__row {
    color: #1A1C24;
    opacity: 0.7;
    margin-top: auto;
    /* Выталкивает строку с предложениями в самый низ */
}


/* Корректируем подзаголовок, который мы внедрили в тег span */
.category__title .category__subtitle {
    display: block;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    opacity: 0.8;
}

/* Контентная часть */
.category__inner {
    padding: 0 0 0 60px;
    /* Большие отступы */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Заголовок (крупный и тонкий) */
.category__title {
    padding: 30px 0px 56px;
    font-size: 56px;
    font-weight: 200;
    line-height: 1;
}


.category-tags {
    font-size: 13px;
    color: #5a6578;
    /* Мягкий серый цвет, чтобы не спорил с заголовком */
    margin: 0;
    line-height: 1.4;
}

/* Позиционирование картинки */
.category__img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
}

.category__img img {
    width: auto;
    position: absolute;
    right: -40px;
    /* Выходит за правый край */
    height: 110%;
    object-fit: cover;
    /* Чтобы картинки не сжимались уродливо */
    transition: transform 0.3s ease;
    transform-origin: bottom;
    bottom: 0;
}

.category:hover .category__img img {
    transform: scale(1.05);

    /* Картинка мягко увеличивается */
}

@media (max-width: 767px) {

    .categories {
        margin: 100px auto 60px;
    }

    .category {
        height: 240px;
        border-radius: 24px;

    }

    .category__inner {
        padding: 0 0 0 32px;
    }

    .category__title {
        padding: 32px 0px 32px;
        font-size: 32px;
    }

}

@media (max-width: 479px) {

    .categories {
        gap: 12px;
    }

    .category {
        height: 200px;
    }

    .category__inner {
        padding: 0 0 0 20px;
    }

    .category__title {
        padding: 20px 0px 20px;
        font-size: 24px;
    }

    .category-tags {
        font-size: 12px;
    }

    .categories {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 920px;
        margin: 100px auto 60px;
        gap: 12px;
    }


}




/* тест */
/* -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
----------------------------------------------------------------------------- */



.footer {
    position: fixed;
    width: 180px;
    left: 50%;
    transform: translateX(-50%);
    height: 56px;
    bottom: 15px;
    right: 0;
    background: #050505;
    border-radius: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    border-radius: 48px;
    width: 50px;
    opacity: 0.5;
}

.menu-btn-active {
    background: #8870ff;
    opacity: 1;
}

.menu-btn img {
    width: 28px;
}




/* --- КАТЕГОРИИ: СОВРЕМЕННЫЕ ДВУХЦВЕТНЫЕ ПЕРЕЛИВЫ --- */

/* 1. Репетиторы (Розовое золото / Теплый закат) */
.category:nth-child(1) {
    background: linear-gradient(120deg, #E8C3BA 0%, #E2C092 100%);
}

/* 2. Строители (Мягкий ультрамарин + Индиго) */
.category:nth-child(2) {
    background: linear-gradient(120deg, #81B3EC 0%, #5279CC 100%);
}

/* 3. Отделочники (Жемчужный: Лаванда + Мята) */
.category:nth-child(3) {
    background: linear-gradient(120deg, #DCD9F1 0%, #B3E5D8 100%);
}

/* 4. Ягодный сорбет (Нежная малина + Персик) */
.category:nth-child(4) {
    background: linear-gradient(120deg, #E296BC 0%, #ECC5A8 100%);
}

/* 5. Небесный лед (Светлая бирюза + Нежно-голубой) */
.category:nth-child(5) {
    background: linear-gradient(120deg, #C2E2ED 0%, #ADC3E7 100%);
}

/* 6. Шалфей и олива (Приглушенный зеленый + Фисташка) */
.category:nth-child(6) {
    background: linear-gradient(120deg, #96B9A8 0%, #CADBB7 100%);
}

/* 7. Солнечный янтарь (Мягкий мандарин + Золото) */
.category:nth-child(7) {
    background: linear-gradient(120deg, #FECD69 0%, #E8A374 100%);
}

/* 8. Морской бриз (Пыльная волна + Хвоя) */
.category:nth-child(8) {
    background: linear-gradient(120deg, #9BC4CB 0%, #7CA0A5 100%);
}

/* 9. Коралловый рассвет (Нежный пудрово-красный + Сливки) */
.category:nth-child(9) {
    background: linear-gradient(120deg, #FFA2A2 0%, #ECD5BB 100%);
}

/* 10. Грозовое облако (Лавандово-серый + Дымчато-синий) */
.category:nth-child(10) {
    background: linear-gradient(120deg, #A4B2E6 0%, #8591B8 100%);
}

/* 11. Свежий лайм (Молодая зелень + Лимонный мусс) */
.category:nth-child(11) {
    background: linear-gradient(120deg, #A7F3A1 0%, #E6EF9F 100%);
}

/* 12. Карамельный крем (Мягкий капучино + Топленое молоко) */
.category:nth-child(12) {
    background: linear-gradient(120deg, #D9C3A5 0%, #EFE5D3 100%);
}

/* 13. Графитовый шелк (Светлый асфальт + Серебро) */
.category:nth-child(13) {
    background: linear-gradient(120deg, #C9CCD0 0%, #AFB4BA 100%);
}

/* 14. Черничная пастила (Пыльный пурпур + Розовая пудра) */
.category:nth-child(14) {
    background: linear-gradient(120deg, #C0A1CE 0%, #EAD0D7 100%);
}

/* 15. Хвойный туман (Глубокий мятный + Холодное золото) */
.category:nth-child(15) {
    background: linear-gradient(120deg, #9CC5B7 0%, #D4CE9E 100%);
}

/* 16. Терракота (Благородный глиняный + Охра) */
.category:nth-child(16) {
    background: linear-gradient(120deg, #E3A387 0%, #E8C895 100%);
}

/* 17. Сапфировый лед (Холодный синий + Сиреневый туман) */
.category:nth-child(17) {
    background: linear-gradient(120deg, #A3C9E2 0%, #C3B1E2 100%);
}