/* ===== Reset & base ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

body {
    background: #000;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Page wrapper & animation ===== */

.page {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.fade-in {
    animation: fade 1.2s ease forwards;
}

@keyframes fade {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* ===== Bottom light glow ===== */

.page::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 70%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 215, 120, 0.12),
        rgba(255, 215, 120, 0.04),
        rgba(0, 0, 0, 0) 75%
    );
    pointer-events: none;
}

/* ===== Top bar ===== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 10;
}

.logo {
    font-size: 22px;
    font-weight: 600;
}

/* ===== Buttons ===== */

.btn {
    padding: 8px 18px;
    border-radius: 20px;
    margin-left: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login {
    border: 2px solid white;
    color: white;
}

.signup {
    background: #2979ff;
    color: white;
}

.btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(255,255,255,0.3);
}

/* ===== User info ===== */

.user-area {
    display: flex;
    align-items: center;
}

.username {
    margin-right: 14px;
    opacity: 0.85;
}

.logout {
    color: #ff6b6b;
    text-decoration: none;
    background-color: black;
}

/* ===== Footer ===== */

.footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
}

/* ===== Burger menu ===== */

.menu-wrapper {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
}

.burger span {
    display: block;
    width: 32px;
    height: 4px;
    background: white;
    margin-bottom: 6px;
    border-radius: 3px;
}

/* Dropdown */

.dropdown {
    margin-top: 10px;
    background: rgba(40,40,40,0.85);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.menu-wrapper:hover .dropdown {
    max-height: 300px;
}

.dropdown a {
    display: block;
    padding: 14px 22px;
    color: #ddd;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

/* ===== Landing center text ===== */

.center-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: gold;
    font-size: 28px;
    text-align: center;
    max-width: 80%;
    pointer-events: none;
}

/* ===== Products grid ===== */

.products-container {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Product card */

.product-card {
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(255,255,255,0.08);
}

/* Placeholder image */

.product-image {
    width: 100%;
    height: 200px; /* фиксированная высота */
    display: flex;
    align-items: center;     /* вертикаль */
    justify-content: center; /* горизонталь */
    overflow: hidden;
    background-color: #f2f2f2;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}


.placeholder {
    background: linear-gradient(135deg, #444, #555);
}

/* Product info */

.product-info {
    padding: 16px;
}

.product-info h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.product-info p {
    font-size: 14px;
    opacity: 0.75;
}

/* ===== Responsive ===== */

@media (max-width: 1200px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .center-text {
        top: 58%;
        font-size: 20px;
        padding: 0 20px;
    }

    .btn {
        padding: 8px 16px;
    }

    .page::after {
        opacity: 0.6;
        height: 50%;
    }
}
/* ===== Contacts page FIX ===== */

.contacts-section {
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    width: 100%;
}

.contacts-card {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 45px 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

/* Имя */
.developer-name {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 28px;
    color: #ffffff;
}

/* Контакты */
.contact-info {
    max-width: 520px;
    margin: 0 auto 32px auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.5;
    color: #d6d6d6;
}

.contact-info strong {
    color: #ffffff;
}

/* Описание */
.developer-description {
    max-width: 560px;
    margin: 0 auto 38px auto;
}

.developer-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #cfcfcf;
}

/* Кнопка */
.support-button-wrapper {
    display: flex;
    justify-content: center;
}

.support-btn {
    padding: 14px 32px;
    font-size: 15px;
    border-radius: 999px;
}

/* ===== Mobile ===== */

@media (max-width: 600px) {
    .contacts-card {
        padding: 32px 24px;
    }

    .developer-name {
        font-size: 26px;
    }
}
/* ===== Cooperation page ===== */
.cooperation-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cooperation-card {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 26px;
    padding: 42px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.cooperation-title {
    font-size: 32px;
    font-style: italic;
    color: #ffd36a;
    margin-bottom: 26px;
}

.cooperation-info p {
    margin-bottom: 14px;
    font-size: 15px;
}

.cooperation-description {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}

/* ===== Product detail page ===== */
.product-detail-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail-card {
    max-width: 720px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 36px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.product-detail-image {
    width: 100%;
    height: 220px;
    background: #666;
    border-radius: 18px;
    margin-bottom: 22px;
}

.product-detail-title {
    font-size: 28px;
    color: #ffd36a;
    font-style: italic;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.product-detail-category {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 18px;
}

.product-detail-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 26px;
}

.product-detail-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

/* ===== Product detail page ===== */
.product-detail-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail-card {
    max-width: 720px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 36px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.product-detail-image {
    width: 100%;
    height: 220px;
    background: #666;
    border-radius: 18px;
    margin-bottom: 22px;
}

.product-detail-title {
    font-size: 28px;
    color: #ffd36a;
    font-style: italic;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.product-detail-category {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 18px;
}

.product-detail-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 26px;
}

.product-detail-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.product-detail-image {
    width: 100%;
    height: 220px;
    background: #666;
    border-radius: 18px;
    margin-bottom: 22px;
    object-fit: cover;
}

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

a:visited {
    color: inherit;
}

a:hover {
    color: inherit;
}

a:active {
    color: inherit;
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

body {
    background-color: #111;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

.profile-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.profile-title {
    font-size: 32px;
    margin-bottom: 5px;
}

.profile-subtitle {
    color: #aaa;
    margin-bottom: 40px;
}

.profile-subtitle span {
    color: #f5c542;
    font-weight: 600;
}

.profile-card {
    display: flex;
    background-color: #1a1a1a;
    border-radius: 20px;
    padding: 30px;
    gap: 40px;
    margin-bottom: 40px;
}

.avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.label {
    color: #888;
}

.value {
    font-weight: 500;
}

.highlight {
    background-color: #f5c542;
    color: #000;
    padding: 4px 10px;
    border-radius: 10px;
}

.profile-actions {
    display: flex;
    gap: 20px;
}

.action-card {
    flex: 1;
    background-color: #1a1a1a;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: 0.2s ease;
}

.action-card:hover {
    background-color: #222;
}

.action-card h3 {
    margin-bottom: 15px;
}

.action-card button {
    background-color: #f5c542;
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.action-card button:hover {
    opacity: 0.85;
}

body {
    background-color: #111;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

.edit-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.edit-title {
    font-size: 32px;
    margin-bottom: 8px;
}

.edit-subtitle {
    color: #888;
    margin-bottom: 40px;
}

.edit-card {
    background-color: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
}

.edit-avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.edit-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 10px;
    color: #aaa;
}

input[type="file"] {
    background-color: #222;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #333;
    color: #fff;
}

.edit-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.btn-back {
    text-decoration: none;
    color: #aaa;
    transition: 0.2s ease;
}

.btn-back:hover {
    color: #fff;
}

.btn-submit {
    background-color: #f5c542;
    color: #000;
    border: none;
    padding: 12px 28px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-submit:hover {
    opacity: 0.85;
}

/* ===== MOBILE VERSION ===== */

@media (max-width: 768px) {

    .profile-container {
        margin: 40px auto;
    }

    .profile-title {
        font-size: 24px;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }

    .profile-info {
        width: 100%;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        text-align: left;
    }

    .profile-actions {
        flex-direction: column;
    }

    .action-card {
        width: 100%;
    }

    .action-card button {
        width: 100%;
    }
}

/* ===== MOBILE VERSION ===== */

@media (max-width: 768px) {

    .edit-container {
        margin: 40px auto;
    }

    .edit-title {
        font-size: 24px;
        text-align: center;
    }

    .edit-subtitle {
        text-align: center;
    }

    .edit-card {
        padding: 25px;
    }

    .edit-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-submit {
        width: 100%;
    }

    .btn-back {
        text-align: center;
    }

    input[type="file"] {
        width: 100%;
    }
}

/* ===== Main pages polish ===== */
.home-hero {
    max-width: 920px;
    margin: 110px auto 30px auto;
    text-align: center;
    padding: 0 20px;
}

.home-tag {
    color: #ffd36a;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 14px;
    opacity: 0.9;
}

.home-hero h1 {
    font-size: 42px;
    margin-bottom: 14px;
    color: #fff;
}

.home-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: #d0d0d0;
    line-height: 1.6;
}

.home-hero-actions {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.home-grid {
    max-width: 1120px;
    margin: 20px auto 90px auto;
    padding: 0 20px 30px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.home-card h2 {
    color: #ffd36a;
    margin-bottom: 12px;
    font-size: 22px;
}

.home-card p {
    color: #d5d5d5;
    line-height: 1.65;
    margin-bottom: 16px;
    font-size: 15px;
}

.home-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 14px;
}

.contacts-intro {
    color: #d6d6d6;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contacts-photo-block h2 {
    margin-bottom: 10px;
    color: #ffd36a;
}

.contacts-photo-block img {
    width: 100%;
    border-radius: 14px;
    margin-top: 12px;
    max-height: 300px;
    object-fit: cover;
}

.cooperation-intro {
    color: #d6d6d6;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cooperation-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 14px;
}

@media (max-width: 1200px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-hero {
        margin-top: 90px;
    }

    .home-hero h1 {
        font-size: 30px;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .home-grid {
        grid-template-columns: 1fr;
        margin-bottom: 70px;
    }
}

/* ===== Products page background ===== */
.products-page {
    position: relative;
    min-height: 100vh;
    padding-bottom: 30px;
}

.products-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.86)),
        url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.coffee-bg-page {
    position: relative;
    min-height: 100vh;
    padding-bottom: 30px;
}

.coffee-bg-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.86)),
        url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.products-header {
    padding-top: 26px;
}

.products-intro {
    text-align: center;
    margin: 10px auto 6px auto;
    padding: 0 20px;
}

.products-intro h1 {
    font-size: 36px;
    color: #ffd36a;
    margin-bottom: 8px;
}

.products-intro p {
    color: #d8d8d8;
}

/* ===== UI polish ===== */
.top-bar {
    padding-top: 16px;
    padding-bottom: 16px;
    backdrop-filter: blur(4px);
}

.home-card,
.contacts-card,
.cooperation-card,
.product-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 211, 106, 0.45);
}

.home-card h2,
.cooperation-description h2,
.contacts-photo-block h2 {
    letter-spacing: 0.01em;
}

.home-subtitle,
.contacts-intro,
.cooperation-intro,
.products-intro p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.products-intro {
    margin-bottom: 18px;
}

.products-container {
    margin-top: 8px;
}

.product-card {
    backdrop-filter: blur(5px);
}

.product-info h3 {
    line-height: 1.35;
}

.btn {
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

@media (max-width: 900px) {
    .top-bar {
        padding: 14px 20px;
    }

    .home-hero {
        margin-top: 96px;
        margin-bottom: 22px;
    }

    .home-grid {
        gap: 18px;
    }

    .home-card {
        padding: 18px;
    }

    .contacts-card,
    .cooperation-card {
        border-radius: 18px;
        padding: 28px 22px;
    }

    .products-intro h1 {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .home-card h2 {
        font-size: 20px;
    }

    .home-card p {
        font-size: 14px;
    }

    .products-page::before,
    .coffee-bg-page::before {
        background-attachment: scroll;
    }
}

/* ===== Users pages polish ===== */
.profile-left {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.profile-edit-link {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    transition: background 0.2s ease;
}

.profile-edit-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: #111;
    background: linear-gradient(135deg, #f5c542, #ffd36a);
}

@media (max-width: 768px) {
    .profile-left {
        min-width: 0;
    }

    .profile-edit-link {
        width: 100%;
        text-align: center;
    }
}
