/* ==================================================
   RESET
================================================== */

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

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* ==================================================
   VARIABLES
================================================== */

:root {

    --bg: #f6f5f2;
    --hero: #ebe6d4;

    --text: #121821;
    --muted: #7f7f7f;

    --white: #ffffff;

    --accent: #dde45f;

    --border: #e8e8e5;

    --footer-dark: #081122;
    --footer-light: #0b1730;

    --radius-xs: 12px;
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 40px;

    --shadow:
        0 10px 30px rgba(0, 0, 0, .04);

    --container: 1600px;
}

/* ==================================================
   BASE
================================================== */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    width: min(calc(100% - 80px), var(--container));
    margin: 0 auto;
}

/* ==================================================
   HEADER
================================================== */

.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 46px;
    width: auto;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__link {
    padding: 16px 36px;
    border-radius: 999px;
    color: #666;
    transition: .25s;
}

.nav__link:hover {
    background: #f5f5f5;
}

.nav__link--active {
    background: #111;
    color: #fff;
}

.basket {
    white-space: nowrap;
    font-size: 15px;
    color: #111;
}

/* ==================================================
   HERO
================================================== */

.hero {
    padding: 32px 0 120px;
}

.hero__box {

    background: var(--hero-bg, var(--hero));

    position: relative;

    border-radius: 40px;

    padding: 56px;

    overflow: hidden;

    min-height: 700px;

    transition:
        background-color .45s ease,
        color .45s ease;
}

.hero__content {

    display: grid;

    grid-template-columns:
        1.15fr 620px;

    gap: 80px;

    align-items: center;
}

.hero__eyebrow {

    display: block;

    font-size: 14px;

    font-weight: 800;

    margin-bottom: 70px;
}

.hero__brand {

    display: block;

    color: #666;

    font-size: 14px;

    margin-bottom: 20px;
}

.hero__title {

    font-size: 86px;

    line-height: .92;

    font-weight: 800;

    letter-spacing: -4px;

    margin-bottom: 30px;
}

.hero__description {

    max-width: 560px;

    color: #666;

    font-size: 28px;

    line-height: 1.4;

    margin-bottom: 35px;
}

.hero__price {

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 8px;
}

.hero__current {

    font-size: 66px;

    font-weight: 800;

    line-height: 1;
}

.hero__old {

    color: #777;

    text-decoration: line-through;
}

.badge-discount {

    padding: 10px 18px;

    border-radius: 999px;

    background: var(--hero-accent, var(--accent));

    font-weight: 700;

    transition:
        background-color .45s ease;
}

.hero__note {

    color: #777;

    margin-bottom: 38px;
}

.hero__help {

    margin-top: 18px;

    font-size: 14px;

    color: #666;
}

.hero__image {

    background: var(--hero-image-bg, #f2f2f4);

    border-radius: 30px;

    padding: 60px;

    min-height: 520px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        background-color .45s ease;
}

.hero__brand,
.hero__title,
.hero__description,
.hero__current,
.hero__old,
.hero__image img {

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.hero__image img {

    opacity: 1;

    transform: scale(1);
}

.hero__image img.hero-anim-out {

    opacity: 0;

    transform: scale(.96);
}

.hero-anim-out {

    opacity: 0;

    transform: translateY(15px);
}

.hero-anim-in {

    opacity: 1;

    transform: translateY(0);
}

/* ==================================================
   BUTTONS
================================================== */

.btn {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    min-height: 58px;

    border-radius: 999px;

    font-weight: 600;

    transition:
        background-color .25s ease,
        color .25s ease,
        transform .25s ease,
        opacity .25s ease;
}

.btn--primary {

    min-width: 180px;

    background: #121819;

    color: #fff;
}

.btn--primary:hover {

    opacity: .95;

    transform: translateY(-2px);
}

.btn--secondary {

    width: 100%;

    height: 54px;

    background: #ecebe5;

    color: #111;

    border-radius: 999px;
}

.btn--secondary:hover {

    background: #e8e7e1;
}

/* ==================================================
   HERO VISUAL
================================================== */

.hero__visual {
    position: relative;
}

.offer-badge {

    position: absolute;

    right: 0;
    top: 0;

    z-index: 10;

    padding: 14px 24px;

    border-radius: 999px;

    background: #fff;

    font-weight: 600;
}

.hero__image img {

    width: 100%;

    max-width: 520px;

    max-height: 400px;

    height: auto;

    margin: auto;

    object-fit: contain;

    object-position: center;
}

.slider {

    display: grid;

    grid-template-columns: auto 1fr auto;

    gap: 30px;

    align-items: center;

    margin-top: 30px;
}

.slider__progress {

    height: 3px;

    background: #cfcfc8;

    border-radius: 999px;

    overflow: hidden;
}

.slider__progress span {

    display: block;

    width: 50%;

    height: 100%;

    background: #161616;

    transition:
        width .45s ease,
        background-color .45s ease;
}

.slider__navigation {

    display: flex;

    gap: 14px;
}

.slider__btn {

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #fff;

    transition:
        background-color .3s ease,
        color .3s ease,
        opacity .3s ease;
}

.slider__btn--dark {

    background: #111;

    color: #fff;
}

.slider__btn--disabled {

    background: #dfdfdf !important;

    color: #999 !important;

    opacity: .6;

    cursor: not-allowed;
}

/* ==================================================
   PRODUCTS
================================================== */

.products {
    padding-bottom: 140px;
}

.section-header {

    display: flex;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 40px;
}

.section-header__eyebrow {

    display: block;

    margin-bottom: 10px;

    font-size: 13px;

    font-weight: 700;

    color: #666;
}

.section-header h2 {

    font-size: 80px;

    line-height: .95;

    letter-spacing: -2px;

    font-weight: 800;

    margin-bottom: 18px;
}

.section-header p {

    color: #666;

    font-size: 20px;

    max-width: 650px;
}

.selection-info {

    font-size: 15px;

    color: #666;
}

/* ==================================================
   PRODUCTS TOOLBAR
================================================== */

.products-toolbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    margin-bottom: 40px;
}

.categories {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}

.category {

    padding: 14px 28px;

    border-radius: 999px;

    background: #ecebe5;

    transition: .25s;
}

.category:hover {

    background: #e4e3de;
}

.category.active {

    background: #111;

    color: #fff;
}

.products-toolbar__right {

    display: flex;

    align-items: center;

    gap: 20px;
}

.products-count {

    color: #666;

    font-size: 15px;
}

.toolbar-arrow {

    width: 54px;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #fff;
}

/* ==================================================
   GRID
================================================== */

.products-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px;
}

/* ==================================================
   CARD
================================================== */

.product-card {

    display: flex;

    flex-direction: column;
}

.product-card__image {

    position: relative;

    background: #f2f2f4;

    border-radius: 24px;

    aspect-ratio: 1;

    overflow: hidden;

    padding: 28px;

    margin-bottom: 20px;
}

.product-card__image img {

    width: 100%;

    height: 100%;

    object-fit: contain;
}

.discount-badge {

    position: absolute;

    left: 16px;

    top: 16px;

    padding: 8px 15px;

    border-radius: 999px;

    background: var(--accent);

    font-size: 14px;

    font-weight: 700;
}

.product-card__brand {

    display: block;

    color: #999;

    font-size: 11px;

    letter-spacing: .05em;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.product-card h3 {
    min-height: 52px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-card__category {

    color: #7c7c7c;

    font-size: 14px;

    margin-bottom: 18px;
}

.product-card__price {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 22px;
}

.product-card__price strong {

    font-size: 24px;

    font-weight: 700;

    line-height: 1;
}

.product-card__price span {

    color: #999;

    font-size: 14px;

    text-decoration: line-through;
}

.product-card__body {

    display: flex;

    flex-direction: column;

    flex: 1;
}

.product-card .btn--secondary {

    margin-top: auto;
}
/* ==================================================
   INFO CARD
================================================== */

.tips-finished {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 420px;
    padding: 48px;

    background: #ece7d8;
    border-radius: 24px;

    grid-column: span 2;
}

.tips-finished small {
    display: block;

    margin-bottom: 28px;

    color: #7a776e;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tips-finished h3 {
    max-width: 420px;

    margin-bottom: 24px;

    font-size: 54px;
    line-height: .95;
    font-weight: 800;
    letter-spacing: -2px;
}

.tips-finished p {
    max-width: 320px;

    color: #666;

    font-size: 16px;
    line-height: 1.5;
}

.tips-finished__counter {
    margin-top: auto;
    padding-top: 60px;

    font-size: 72px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -3px;
}

@media (max-width: 1400px) {
    .tips-finished {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {

    .tips-finished {
        grid-column: span 1;

        min-height: 320px;
        padding: 32px;
    }

    .tips-finished h3 {
        font-size: 38px;
    }

    .tips-finished__counter {
        font-size: 56px;
    }
}



/* ==================================================
   FOOTER
================================================== */

.footer {

    background:
        linear-gradient(
            90deg,
            var(--footer-dark),
            var(--footer-light)
        );

    color: #fff;

    padding: 110px 0 45px;
}

.footer__top {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 120px;

    padding-bottom: 50px;

    border-bottom:
        1px solid rgba(255,255,255,.1);
}

.footer__logo {

    height: 50px;

    margin-bottom: 20px;
}

.footer__contact {

    color: rgba(255,255,255,.7);

    font-size: 18px;
}

.footer__label {

    display: block;

    color: rgba(255,255,255,.5);

    font-size: 13px;

    margin-bottom: 12px;
}

.footer__value {

    font-size: 54px;

    line-height: 1;

    font-weight: 700;
}

.footer__bottom {

    padding-top: 26px;

    display: flex;

    justify-content: space-between;

    gap: 40px;

    color: rgba(255,255,255,.65);

    font-size: 14px;
}

.footer__links {

    display: flex;

    gap: 28px;
}

.footer__links a {

    transition: .25s;
}

.footer__links a:hover {

    color: #fff;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1400px) {

    .hero__title {
        font-size: 72px;
    }

    .section-header h2 {
        font-size: 64px;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {

    .hero__content {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        order: -1;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer__bottom {
        flex-direction: column;
    }
}

@media (max-width: 767px) {

    .container {
        width: calc(100% - 40px);
    }

    .header__inner {

        height: auto;

        padding: 20px 0;

        flex-direction: column;

        gap: 20px;
    }

    .header__right {

        width: 100%;

        flex-direction: column;
    }

    .nav {

        width: 100%;

        flex-direction: column;
    }

    .nav__link {

        width: 100%;

        text-align: center;
    }

    .hero {

        padding: 20px 0 80px;
    }

    .hero__box {

        padding: 30px;

        min-height: auto;
    }

    .hero__content {

        gap: 40px;
    }

    .hero__title {

        font-size: 46px;

        letter-spacing: -2px;
    }

    .hero__description {

        font-size: 20px;
    }

    .hero__current {

        font-size: 48px;
    }

    .section-header {

        flex-direction: column;
    }

    .section-header h2 {

        font-size: 44px;
    }

    .products-toolbar {

        flex-direction: column;

        align-items: flex-start;
    }

    .products-grid {

        grid-template-columns: 1fr;
    }

    .footer {

        padding: 80px 0 40px;
    }

    .footer__value {

        font-size: 38px;
    }

    .footer__links {

        flex-direction: column;

        gap: 12px;
    }
}