/* Глобальные стили проекта «Огонёк» — шрифты, переменные, сброс стилей, шапка и подвал. */

/* =========================
   FONTS
========================= */

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Medium.ttf");
    font-weight: 500;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Bold.ttf");
    font-weight: 700;
}

@font-face {
    font-family: "Arsenal";
    src: url("../fonts/Arsenal-Bold.ttf");
    font-weight: 700;
}

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #fff;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: transparent;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* =========================
   GLOBAL
========================= */

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

:root {
    --orange: #FD6500;
    --orange-hover: #FD6500;
    --dark: #0A0A0A;
    --card: #0A0A0A;
    --border: #2E2C2C transparent 50%;
    --text-muted: #878787;
    --transition-duration: .3s ease;
}

/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .95);
    border-bottom: 1px solid #181818;
    backdrop-filter: blur(10px);
}

.header__wrapper {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 200px;
}

/* =========================
   NAVIGATION
========================= */

.nav__list {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav__link {
    font-size: 19px;
    font-weight: 400;
    transition: var(--transition);
    white-space: nowrap;
}

.nav__link:hover {
    color: #FD6500;
}

.nav__link.active {
    color: #FD6500;
    font-weight: 600;
}

/* =========================
   ACTIONS
========================= */

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn img {
    width: 30px;
    height: 30px;
    transition: .3s ease;
    margin-right: 60px;
    margin-left: 60px;
}

.cart-btn:hover img {
    transform: scale(1.15);
    filter:
        drop-shadow(0 0 8px #FD6500) drop-shadow(0 0 15px #FD6500);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 20px;
    height: 20px;
    margin-left: 60px;
    margin-right: 60px;
    background: var(--orange);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: .3s ease;
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

.login-btn {
    height: 48px;
    padding: 10px 24px;
    border: 2px solid var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    white-space: nowrap;
}

.login-btn:hover {
    background: var(--orange);
}

.login-btn span {
    font-size: 16px;
}

.login-btn img {
    width: 24px;
    height: 24px;
}

/* =========================
   BURGER
========================= */

.burger {
    display: none;
    width: 35px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
}

.burger span {
    height: 3px;
    background: #fff;
    border-radius: 5px;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: #000;
    transition: .4s ease;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav {
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav a {
    font-size: 22px;
}

.mobile-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
}

.mobile-cart__icon {
    width: 22px;
    height: 22px;
}

.mobile-cart__text {
    flex: 1;
}

/* бейдж количества */
.mobile-cart__count {
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cart:hover {
    opacity: 0.8;
}

.mobile-cart__count {
    animation: pop 0.2s ease;
}

@keyframes pop {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

.mobile-login {
    margin-top: 20px;
    border: 2px solid var(--orange);
    border-radius: 12px;
    text-align: center;
    padding: 14px;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 635px;
    overflow: hidden;
    border-bottom: 1px solid #1b1b1b;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, .95) 20%,
            rgba(0, 0, 0, .3) 70%,
            rgba(0, 0, 0, .05) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero__left {
    max-width: 700px;
}

.hero__title {
    font-family: "Arsenal", serif;
    font-size: 85px;
    line-height: 90%;
    margin-bottom: 79px;
}

.hero__title span {
    display: block;
    color: var(--orange);
}

.hero__text {
    font-size: 20px;
    line-height: 155%;
    color: #c7c7c7;
    max-width: 500px;
    margin-bottom: 79px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.btn-primary {
    width: 300px;
    height: 80px;
    border-radius: 15px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

.btn-secondary{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 40px;
    width:300px;
    height:80px;
    border:2px solid #ff6500;
    border-radius:16px;
    color:#fff;
    text-decoration:none;
    font-size:22px;
    font-weight:700;
    transition:.3s ease;
}

.btn-secondary:hover{
    background: var(--orange-hover);
    transform: translateY(-2px);
}

.hero__image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   FEATURES
========================= */

.features {
    padding: 48px 0 40px;
}

.features__wrapper {
    background: #171717;
    border: 1px solid #181818;
    border-radius: 15px;
    min-height: 150px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.feature {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 15px 30px;
    transition: .3s ease;
}

.feature:hover {
    background: #131313;
}

.feature img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================
   ABOUT
========================= */

.about {
    padding: 20px 0 90px;
}

.about__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image {
    overflow: hidden;
    border-radius: 30px;
}

.about__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .6s ease;
}

.about__image:hover img {
    transform: scale(1.05);
}

.about__content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
}

.about__content p {
    color: #bcbcbc;
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.btn-outline {
    width: 350px;
    height: 60px;
    border: 2px solid var(--orange);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-size: 24px;
    font-weight: 400;
    transition: .3s ease;
}

.btn-outline:hover {
    background: var(--orange);
}

.btn-outline img {
    width: 40px;
    height: 30px;
}

/* =========================
   FOOTER
========================= */

.footer {
    border-top: 1px solid #1a1a1a;

    padding: 35px 0;
}

.footer__wrapper {
    display: grid;
    grid-template-columns:
        220px 1fr 240px 220px;
    gap: 65px;

    align-items: center;
}

.footer__logo img {
    width: 170px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    color: #b9b9b9;
    font-size: 14px;
    transition: .3s ease;
}

.footer__links a:hover {
    color: var(--orange);
}

.footer__work p,
.footer__social p {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.footer__social p {
    margin-bottom: 30px;
}

.footer__work span {
    display: block;
    color: #b7b7b7;
    margin-bottom: 7px;
}

.socials {
    display: flex;
    gap: 40px;
}

.socials a {
    transition: .3s ease;
}

.socials a:hover {
    transform: translateY(-4px);
}

.socials img {
    width: 38px;
    height: 38px;
}



/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
    background: #FD6500;
    border-radius: 50px;
}

/* =========================
   1200px
========================= */

@media (max-width:1200px) {

    .header__wrapper {
        min-height: 80px;
    }

    .logo img {
        width: 170px;
    }

    .nav__list {
        gap: 25px;
    }

    .nav__link {
        font-size: 16px;
    }

    .header__actions {
        gap: 15px;
    }

    .login-btn,
    .logout-btn-header,
    .profile-link-btn {
        height: 42px;
        padding: 8px 16px;
        gap: 8px;
    }

    .login-btn span,
    .logout-btn-header span,
    .profile-link-btn span {
        font-size: 14px;
    }

    .login-btn img,
    .logout-btn-header img {
        width: 20px;
        height: 20px;
    }

    .cart-btn img {
        width: 24px;
        height: 24px;
    }

    .mobile-menu {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .hero__title {
        font-size: 72px;
    }

    .hero__text {
        font-size: 22px;
    }

    .about__content h2 {
        font-size: 52px;
    }

    .about__content p {
        font-size: 20px;
    }

    .feature h3 {
        font-size: 22px;
    }
}

/* =========================
   992px
========================= */

@media (max-width:992px) {

    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header__actions {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 90px 0;
    }

    .hero__content {
        min-height: auto;
    }

    .hero__image {
        opacity: .25;
        width: 100%;
    }

    .hero__title {
        font-size: 62px;
    }

    .hero__text {
        font-size: 20px;
    }

    .features__wrapper {
        grid-template-columns: 1fr;
    }

    .about__wrapper {
        grid-template-columns: 1fr;
    }

    .footer__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .socials {
        justify-content: center;
    }
}

/* =========================
   768px
========================= */

@media (max-width:768px) {

    .hero__title {
        font-size: 48px;
    }

    .hero__text {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
    }

    .btn-primary {
        width: 220px;
        height: 65px;
        font-size: 24px;
    }

    .btn-secondary {
        width: 220px;
        height: 65px;
        font-size: 24px;
    }

    .about__content h2 {
        font-size: 42px;
    }

    .about__content p {
        font-size: 18px;
    }

    .btn-outline {
        width: 280px;
        height: 62px;
        font-size: 20px;
    }

    .feature h3 {
        font-size: 20px;
    }

    .feature p {
        font-size: 16px;
    }
}

/* =========================
   576px
========================= */

@media (max-width:576px) {

    .header__wrapper {
        min-height: 78px;
    }

    .logo img {
        width: 130px;
    }

    .mobile-menu {
        top: 78px;
        height: calc(100vh - 78px);
    }

    .hero {
        padding: 70px 0;
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__text {
        font-size: 16px;
        margin-bottom: 35px;
    }

    .btn-primary {
        width: 100%;
        max-width: 240px;
    }

    .btn-secondary {
        width: 100%;
        max-width: 240px;
    }

    .feature {
        padding: 20px;
    }

    .feature img {
        width: 45px;
    }

    .about {
        padding-bottom: 60px;
    }

    .about__content h2 {
        font-size: 34px;
    }

    .btn-outline {
        width: 100%;
    }
}

/* =========================
   375px
========================= */

@media (max-width:375px) {

    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 32px;
    }

    .feature {
        gap: 14px;
    }

    .feature h3 {
        font-size: 17px;
    }

    .feature p {
        font-size: 14px;
    }

    .about__content p {
        font-size: 16px;
    }
}

body.lock {
    overflow: hidden;
}



.burger.active span:nth-child(1) {
    transform:
        translateY(11px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform:
        translateY(-11px) rotate(-45deg);
}

.burger span {
    transition: .3s ease;
}

/* =========================
   FOOTER COPYRIGHT
========================= */

.footer__bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .5px;
}

@media (max-width:576px) {
    .footer__bottom {
        margin-top: 30px;
        padding-top: 20px;
        font-size: 12px;
    }
}

/* =========================
   HEADER LOGGED IN STATUS
   ========================= */
.logout-btn-header,
.profile-link-btn {
    height: 48px;
    padding: 10px 24px;
    border: 2px solid var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    color: #fff;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    font-weight: 500;
    box-sizing: border-box;
    white-space: nowrap;
}

.profile-link-btn {
    background: rgba(253, 101, 0, 0.1);
}

.profile-link-btn:hover {
    background: var(--orange);
}

.logout-btn-header:hover {
    background: #ff3838;
    border-color: #ff3838;
}

.logout-btn-header span,
.profile-link-btn span {
    font-size: 16px;
}

.logout-btn-header img {
    width: 24px;
    height: 24px;
}

.mobile-profile {
    margin-top: 20px;
    border: 2px solid var(--orange);
    background: rgba(253, 101, 0, 0.1);
    border-radius: 12px;
    text-align: center;
    padding: 14px;
    font-weight: 600;
}

.mobile-logout {
    margin-top: 10px;
    border: 2px solid #ff3838;
    background: rgba(255, 56, 56, 0.1);
    border-radius: 12px;
    text-align: center;
    padding: 14px;
    color: #ff3838;
    font-weight: 600;
}

.mobile-logout:hover {
    background: #ff3838;
    color: #fff;
}

/* Custom Modals (Confirm Dialog) */
.confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.confirm-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.confirm-dialog {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    padding: 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(253, 101, 0, 0.03);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal.active .confirm-dialog {
    transform: scale(1);
}

.confirm-dialog__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.confirm-dialog__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(253, 101, 0, 0.1);
    color: var(--orange, #FD6500);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-dialog__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.confirm-dialog__title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.confirm-dialog__body {
    font-size: 14.5px;
    color: var(--text-muted, #878787);
    line-height: 1.55;
    margin-bottom: 26px;
}

.confirm-dialog__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-dialog__btn {
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    outline: none;
}

.confirm-dialog__btn--cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.confirm-dialog__btn--cancel:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.confirm-dialog__btn--confirm {
    background: var(--orange, #FD6500);
    border: none;
    color: #fff;
}

.confirm-dialog__btn--confirm:hover {
    background: #e05600;
    box-shadow: 0 4px 15px rgba(253, 101, 0, 0.35);
    transform: translateY(-1px);
}

.confirm-dialog__btn--confirm:active {
    transform: translateY(0);
}