* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    background: url(../blackfridayimg/bg.jpg) no-repeat center top;
    background-size: cover;
    background-attachment: scroll;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    pointer-events: none;
}

/* Header styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: url(../blackfridayimg/dlya-vidliku.png) no-repeat center center;
    background-size: cover;
    height: 92px;
    z-index: 1000;
}

.logo {
    height: 72px;
    width: auto;
    padding-left: 4%;
    margin-bottom: 0.5%;
}

.countdown-header {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 3%;
    border-radius: 20px;
    font-size: 30px;
    margin-bottom: 0.5%;
}

.countdown-timer {
    font-weight: bold;
    font-family: monospace;
    font-size: 30px;
    color: #f5903b;
}

/* Main content wrapper */
.main-content {
    margin-top: 92px;
    margin-bottom: 10vw;
    position: relative;
    z-index: 1;
}

/* Hero section styles */
.hero-section {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
    min-height: 80vh;
}

.hero-container {
    width: 100%;
}

.hero-main-image {
    width: 66%;
    min-width: 250px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.hero-text-content {
    width: 46%;
    min-width: 330px;
    font-size: 1.4vw;
    padding: 22px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Links section styles */
.links-section {
    padding: 60px 20px;
    position: relative;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
}

.link-item {
    max-width: 250px;
    width: 80%;
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 144, 59, 0.1);
}

.link-image {
    width: 100%;
    object-fit: cover;
    display: block;
}

.categories-section {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.categories-title_wrapper {
    display: flex;
    justify-content: center;
}

.categories-title {
    width: 80%;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vw;
}

.top-row {
    display: flex;
    justify-content: center;
}

.top-row_text {
    position: absolute;
    margin-top: 23%;
    left: 31%;
    display: flex;
    justify-content: center;
    text-align: left;
    gap: 40px;
    font-size: 1vw;
    line-height: 1.5;
    text-transform: uppercase;
}

.block1 {
    left: 1vw;
    top: -2vw;
    position: relative;
}

.block2 {
    position: relative;
    top: 3vw;
    right: 13vw;
}

.block3 {
    position: relative;
    top: 9vw;
    right: 23vw;
}

.top-row_text ul {
    list-style: disc;
}

.bottom-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    justify-content: space-evenly;
}

.left-col,
.right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 49%;
}

.right-col {
    margin-top: -40px;
}

.top-row a {
    width: 47%;
}

.top-row img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.bottom-row img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.categories-grid img:hover {
    transform: scale(1.01);
    transition: 0.3s;
}

.right-col img:hover {
    transform: translateX(-4px);
    transform: scale(1.01);
    transition: 0.3s;
}

.left-col img:hover {
    transform: translateX(4px);
    transform: scale(1.01);
    transition: 0.3s;
}

.three-text-blocks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vw;
    position: relative;
}

.text-block {
    width: 80%;
}

.text-block h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.text-block p {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 16px;
}

.two-column-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 8%;
    position: relative;
}

.links_left-col {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links_left-col h3 {
    margin-bottom: 10px;
    font-size: 23px;
    font-weight: 800;
    color: #8c8c8c;
}

.links_left-col a {
    text-decoration: none;
    font-size: 19px;
    line-height: 1.4;
    color: white;
    font-weight: 700;
    transition: 0.5s;
}
.links_left-col a:hover {
    color: #ffa000;
    transition: 0.25s;
}
.links_right-col {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links_right-col h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #8c8c8c;
}

.right-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.right-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.right-item_text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    font-size: 16px;
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: relative;
    background: none;
}

/* Блок справа */
.footer-icons {
    position: absolute;
    right: 4vw;
    display: flex;
    gap: 15px;
}

.footer-icons img {
    width: 3vw;
    height: 3vw;
    display: block;
}

.footer-center-text {
    text-transform: uppercase;
    font-size: 1.5vw;
    font-weight: 700;
    margin-left: 22vw;
}

@media (max-width:1030px) {
    .main-header {
        padding: 5px 15px;
        flex-direction: column;
    }

    .countdown-header {
        font-size: 17px;
        border-radius: 5px 5px 30px 30px;
        background: rgba(0, 0, 0, 0.6);
    }

    .logo {
        padding: 0;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        background: url(../blackfridayimg/bg-mobile.jpg) no-repeat center top;
        background-size: cover;
        background-attachment: scroll;
    }

    .hero-main-image {
        width: 95%;
    }

    .main-header {
        height: 87px;
    }

    .main-content {
        margin-top: 87px;
        margin-bottom: 1vw;
    }

    .hero-text-block {
        margin-top: 0;
    }

    .countdown-timer {
        font-size: 16px;
    }

    /* Hero mobile */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Links mobile */
    .links-container {
        row-gap: 50px;
    }

    .link-item {
        width: 160px;
    }

    .link-image {
        height: 150px;
    }

    .hero-section {
        padding: 20px 0;
        min-height: 40vh;
    }

    /* Links small mobile */
    .links-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .links-section {
        padding: 5px 15px;
    }

    .hero-text-content {
        padding: 5px;
        border-radius: 15px;
        font-size: 3.23vw;
    }

    .top-row_text {
        gap: 0px;
        font-size: 1.75vw;
    }

    .block1 {
        left: 3vw;
    }

    .block2 {
        position: relative;
        top: 10vw;
        right: 10vw;
    }

    .block3 {
        top: 21vw;
        right: 50vw;
    }

    .three-text-blocks {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .text-block h3 {
        font-size: 4.5vw;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 1vw;
    }

    .text-block p {
        font-size: 3vw;
        line-height: 4vw;
        padding-left: 3vw;
    }

    .two-column-section {
        flex-direction: column;
    }

    .links_left-col,
    .links_right-col {
        width: 100%;
    }
    .site-footer {
        justify-content: space-between;
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-icons {
        padding: 10px 0;
        margin-top: 6vw;
        left: 8vw;
        right: 0;
    }
    .footer-icons img {
        width: 32px;
        height: 32px;
    }
    .footer-center-text {
        font-size: 3.5vw;
        margin-left: 5vw;
    }
}

@media (max-width: 480px) {
    /* Hero small mobile */
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
