/* ===========================
   RESET & BASE STYLES
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#020604;
    color:#EFE7D2;
    font-family:"Marcellus", serif;
    overflow-x:hidden;
    font-size:17px;
}

/* ===========================
   CONTAINER
=========================== */

.container{
    width:min(1400px,90%);
    margin:auto;
}

/* ===========================
   HEADER
=========================== */

header{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:100;
    padding:6px 0;
    background:rgba(8,15,10,.15);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,.08);
}

header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

header .logo a{
    font-size:30px;
    font-family:"Cormorant Garamond";
    font-weight:700;
    color:#D7BC74;
    letter-spacing:2.5px;
    text-shadow:0 0 18px rgba(184,149,79,.35);
    text-decoration: none;
}

nav{
    display:flex;
    gap:45px;
}

nav a{
    color:#EFE7D2;
    text-decoration:none;
    font-size:19px;
    letter-spacing:.3px;
    transition:.3s;
    position:relative;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:1px;
    background:#D7BC74;
    transition:width .3s;
}

nav a:hover{
    color:#D7BC74;
}

nav a:hover::after{
    width:100%;
}

.button{
    padding:11px 32px;
    border:1px solid #B8954F;
    border-radius:12px;
    color:#EFE7D2;
    text-decoration:none;
    font-size:18px;
    letter-spacing:.5px;
    transition:.3s;
    background:rgba(18,35,25,.45);
}

.button:hover{
    background:#B8954F;
    color:#07110B;
    box-shadow:0 0 24px rgba(184,149,79,.4);
}

/* ===========================
   ШАПКА НА МОБИЛЬНОЙ ВЕРСИИ:
   логотип + монеты + кнопка входа/выхода (имя пользователя скрываем)
=========================== */

@media (max-width: 1100px) {
    .username-display {
        display: none;
    }

    header .container {
        flex-wrap: nowrap;
        gap: 10px;
    }

    header .logo a {
        font-size: 24px;
        letter-spacing: 1.5px;
    }

    .coins-widget {
        margin-right: 8px;
    }

    .user-coins {
        padding: 5px 12px;
        font-size: 14px;
        gap: 4px;
    }

    .coins-add-btn {
        width: 22px;
        height: 22px;
        font-size: 15px;
    }

    .button {
        padding: 9px 20px;
        font-size: 15px;
        letter-spacing: 0.2px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 0;
    }

    header .logo a {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .coins-widget {
        gap: 4px;
        margin-right: 6px;
    }

    .user-coins {
        padding: 4px 9px;
        font-size: 12.5px;
    }

    .coins-add-btn {
        width: 19px;
        height: 19px;
        font-size: 13px;
    }

    .button {
        padding: 7px 14px;
        font-size: 13px;
        border-radius: 8px;
    }
}

/* ===========================
   HERO
=========================== */

.hero{
    position:relative;
    min-height:150vh;
    background: url("../image/hero/hero.a8d214904908.webp") center center / cover no-repeat;
    display:flex;
    align-items:center;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(4,8,6,.82) 0%,
        rgba(4,8,6,.60) 35%,
        rgba(4,8,6,.15) 100%
    );
}

.hero-content{
    position:relative;
    z-index:2;
    width:min(1400px,90%);
    margin:auto;
}

.hero-left{
    max-width:620px;
}

.hero h1{
    font-family:"Cormorant Garamond", serif;
    font-size:104px;
    font-weight:600;
    line-height:.98;
    letter-spacing:.5px;
    color:#E7D8A4;
    text-shadow:0 0 40px rgba(184,149,79,.3), 0 0 90px rgba(184,149,79,.12);
    margin-bottom:38px;
}

.hero p{
    font-size:27px;
    line-height:1.7;
    color:#E6DFC8;
    margin-bottom:48px;
    font-weight:300;
    letter-spacing:.2px;
}

.hero-button{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:16px 42px;
    border-radius:8px;
    border:1px solid #B8954F;
    background:rgba(18,36,25,.45);
    color:#EFE7D2;
    text-decoration:none;
    font-size:20px;
    font-family: "Cormorant Garamond", serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition:.35s;
}

.hero-button:hover{
    background:#B8954F;
    color:#07110B;
    box-shadow:0 0 30px rgba(184,149,79,.45);
    transform:translateY(-2px);
}

/* ===========================
   DECORATIVE ELEMENTS
=========================== */

.vignette-divider {
    width: 320px;
    height: 26px;
    margin: 0 auto 34px auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' fill='none' stroke='%23B8954F' stroke-width='0.6'%3E%3Cpath d='M60 4 L66 10 L60 16 L54 10 Z' /%3E%3Ccircle cx='60' cy='10' r='1' fill='%23B8954F'/%3E%3Cpath d='M15 10 L50 10 M30 10 Q35 6 40 10' /%3E%3Cpath d='M105 10 L70 10 M90 10 Q85 6 80 10' /%3E%3Ccircle cx='10' cy='10' r='0.8' fill='%23B8954F'/%3E%3Ccircle cx='5' cy='10' r='0.5' fill='%23B8954F'/%3E%3Ccircle cx='110' cy='10' r='0.8' fill='%23B8954F'/%3E%3Ccircle cx='115' cy='10' r='0.5' fill='%23B8954F'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.85;
}

/* ===========================
   DOORS — большие полноширинные карточки в стиле Apple
=========================== */
.doors{
    position:relative;
    margin-top: 10px;
    z-index:10;
    padding-bottom:90px;
}

.doors h2{
    text-align:center;
    font-size:56px;
    font-weight:500;
    letter-spacing:.5px;
    margin-bottom:60px;
    font-family:"Cormorant Garamond", serif;
    color:#E7D8A4;
    text-shadow:0 0 30px rgba(184,149,79,.25);
}

/* Один столбец крупных карточек (Таро, Матрица) вместо сетки 4 в ряд */
.cards{
    width:min(1300px,95%);
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:40px;
}

/* Остальные направления — по две в ряд, компактнее главных */
.cards-secondary{
    width:min(1300px,95%);
    margin:40px auto 0;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
}

.card{
    position:relative;
    min-height:600px;
    border-radius:18px;
    overflow:hidden;
    border: 1px solid rgba(184, 149, 79, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display:flex;
    align-items:flex-end;
    cursor:pointer;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(184, 149, 79, 0.75);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

/* Картинка теперь фон на весь блок, а не иконка сверху */
.card-img-placeholder {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    margin:0;
    border-radius:0;
    background:#040a06;
    overflow:hidden;
}

.card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.card:hover .card-img-placeholder img{
    transform:scale(1.06);
}

/* Текстовый блок поверх картинки, с градиентом снизу для читаемости */
.card-inner {
    position:relative;
    z-index:2;
    width:100%;
    padding:60px 70px;
    box-sizing:border-box;
    border:none;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-end;
    background:linear-gradient(
        0deg,
        rgba(2,6,4,.94) 0%,
        rgba(2,6,4,.65) 40%,
        rgba(2,6,4,0) 100%
    );
}

.card h3{
    padding: 0;
    margin:0 0 16px 0;
    font-family:"Cormorant Garamond", serif;
    font-size: 60px;
    font-weight: 600;
    color:#E7D8A4;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0,0,0,.6);
}

.card-text {
    font-size: 19px;
    color: #DCD3BC;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 560px;
    min-height: 0;
}

.glow-effect {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(184,149,79,0.2) 0%, transparent 70%);
    filter: blur(10px);
    animation: pulseGlow 4s infinite ease-in-out;
    z-index: 1;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.9; }
}

/* Акцентная кнопка "Перейти" под названием — теперь настоящая кнопка,
   не просто текстовая ссылка */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 38px;
    border-radius: 8px;
    border: 1px solid #B8954F;
    background: rgba(184, 149, 79, 0.12);
    color: #E7D8A4;
    text-decoration: none;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: "Cormorant Garamond", serif;
    font-weight:600;
    transition: 0.3s;
}

.card-link span {
    transition: transform 0.3s;
    font-size: 15px;
}

.card:hover .card-link {
    background:#B8954F;
    color: #07110B;
    box-shadow: 0 0 26px rgba(184,149,79,.4);
}

.card:hover .card-link span {
    transform: translateX(5px);
}

/* Компактный вариант для карточек "по две в ряд" (не Таро/Матрица) */
.card--secondary{
    min-height: 400px;
}

.card--secondary .card-inner{
    padding: 40px 44px;
}

.card--secondary h3{
    font-size: 40px;
}

.card--secondary .card-text{
    font-size: 16px;
    margin-bottom: 24px;
}

.card--secondary .card-link{
    padding: 12px 30px;
    font-size: 15px;
}

/* ===========================
   FEATURES
=========================== */

.features {
    padding: 70px 0 110px 0;
    text-align: center;
}

.features h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 44px;
    color: #E7D8A4;
    margin-bottom: 65px;
    font-weight: 500;
}

.features-grid {
    width: min(1300px, 90%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: #B8954F;
}

.feature-item p {
    font-size: 16px;
    color: #b3ab98;
    line-height: 1.5;
}

/* ===========================
   ABOUT & FOOTER
=========================== */

.about{
    width:min(1100px,90%);
    margin:150px auto;
    text-align:center;
}

.about h2{
    font-family:"Cormorant Garamond", serif;
    font-size:66px;
    font-weight:500;
    margin-bottom:32px;
    color:#E7D8A4;
    text-shadow:0 0 30px rgba(184,149,79,.25);
}

.about p{
    font-size:24px;
    line-height:1.9;
    color:#DAD2BB;
    font-weight:300;
}

footer{
    padding:65px 0;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.08);
    color:#b3ab98;
    font-size:16px;
    letter-spacing:.3px;
    background:#09120C;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1200px){
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 20px;
    }
}

@media(max-width:1100px){
    nav{
        display:none;
    }
    .hero h1{
        font-size:76px;
    }
    .doors h2{
        font-size:46px;
    }
    .card{
        min-height:500px;
    }
    .card h3{
        font-size:48px;
    }
    .card--secondary{
        min-height:340px;
    }
    .card--secondary h3{
        font-size:34px;
    }
}

@media(max-width:900px){
    .cards-secondary{
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px){
    .hero{
        min-height:80vh;
    }
    .hero h1{
        font-size:56px;
    }
    .hero p{
        font-size:20px;
    }
    .about h2{
        font-size:46px;
    }
    .about p{
        font-size:19px;
    }

    .card{
        min-height:420px;
        border-radius:14px;
    }
    .card-inner{
        padding:36px 30px;
    }
    .card h3{
        font-size:38px;
        margin-bottom:10px;
    }
    .card-text{
        font-size:16px;
        margin-bottom:22px;
    }
    .card-link{
        padding:12px 28px;
        font-size:15px;
    }
    .card--secondary{
        min-height:320px;
    }
    .card--secondary .card-inner{
        padding:28px 26px;
    }
    .card--secondary h3{
        font-size:30px;
    }
}

@media(max-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features h2 {
        font-size: 30px;
    }

    .cards{
        gap:26px;
    }
    .card{
        min-height:360px;
    }
    .card-inner{
        padding:28px 22px;
    }
    .card h3{
        font-size:32px;
    }
    .card-text{
        font-size:15px;
        margin-bottom:18px;
    }
    .cards-secondary{
        gap:26px;
    }
    .card--secondary{
        min-height:280px;
    }
    .card--secondary h3{
        font-size:26px;
    }
}

.coins-widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
}

.user-coins {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(184, 149, 79, 0.4);
    background: rgba(184, 149, 79, 0.08);
    color: #E7D8A4;
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.coins-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(184, 149, 79, 0.5);
    background: rgba(184, 149, 79, 0.1);
    color: #E7D8A4;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.coins-add-btn:hover {
    background: #B8954F;
    color: #07110B;
}