body {
    margin: 0;
    font-family: 'Playfair Display', serif;
    background: radial-gradient(circle at top left, #f4f1ea, #e9e6df 40%, #e1ddd5);
    color: #333;
    text-align: center;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #d8e3dc, #f5efe6);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: visible;
}

.hero h1 {
    font-size: 50px;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 22px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.info {
    padding: 60px 20px;
    background: white;
}

.info h2 {
    margin-top: 30px;
    font-weight: 600;
}

.ayah {
    padding: 60px 20px;
    background: #f0efe9;
}

.arabic {
    font-size: 28px;
    line-height: 2;
    direction: rtl;
    font-family: serif;
}

.translation {
    margin-top: 20px;
    font-style: italic;
}

.dua {
    padding: 60px 20px;
    background: white;
}

footer {
    padding: 40px;
    background: #e9e4d4;
    font-size: 14px;
    opacity: 0.7;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

.info,
.ayah,
.dua {
    max-width: 500px;
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 70px 30px;
    transition: 0.3s;
}

h1,
h2,
h3,
p {
    transition: all 0.3s ease;
}

.lang {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999;
    /* самое важное - чтобы кнопки были поверх всего */
    background: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lang button {
    background: white;
    border: none;
    padding: 8px 12px;
    margin: 3px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.lang button:hover {
    transform: scale(1.1);
}

section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 600px;
    margin: auto;
}

.info:hover,
.ayah:hover,
.dua:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

p {
    line-height: 1.6;
}

.lang button:active {
    transform: scale(0.95);
}

.hero h1 {
    animation: fadeIn 1s ease forwards;
}

.subtitle {
    font-size: 18px;
    letter-spacing: 6px;
    color: #b8a98a;
    margin-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actions {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

p.address {
    font-size: 14px
}
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.hero * {
    position: relative;
    z-index: 1;
}
.monogram {
    display: flex;
    justify-content: center; /* центр по горизонтали */
    align-items: center;     /* центр по вертикали (если нужно) */
    margin-bottom: 10px;
    overflow: visible; /* чтобы тени не обрезались */
    margin-top: 40px;
}

.monogram svg {
    width: 300px;
    max-width: 80vw;
    display: block;
    margin: 0 auto;
    overflow: visible;
    filter: none;
    transform: translateZ(0);
}
.monogram path {
    fill: url(#goldGradient);
    filter: none;
    shape-rendering: geometricPrecision;
}
.monogram text {
    -webkit-font-smoothing: antialiased;
}
.divider {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px;
}

.divider svg {
    opacity: 0.8;
}
.names {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.name {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    letter-spacing: 2px;
    color: #caa64a;
    text-transform: none; /* ВАЖНО убрать uppercase */
}
@media (max-width: 768px) {
    .name {
        font-size: 50px;
    }

    .amp {
        font-size: 40px;
    }
}
.names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.amp {
    font-family: 'Great Vibes', cursive;
    font-size: 35px;
    margin: -5px 0; /* поднимаем амперсанд чуть выше */
    color: #caa64a;
}
.divider {
    margin: 30px 0 40px;
    display: flex;
    justify-content: center;
}

.divider img {
    width: 400px;
    opacity: 0.85;
    filter: drop-shadow(0 2px 6px rgba(202,166,74,0.3));
}
.name, .amp {
    opacity: 0;
    transform: translateY(30px);
}

/* сама анимация */
@keyframes writeName {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* по очереди */
.name-top {
    animation: writeName 1s ease forwards;
}

.amp {
    animation: writeName 1s ease forwards;
    animation-delay: 0.4s;
}

.name-bottom {
    animation: writeName 1s ease forwards;
    animation-delay: 0.8s;
}
svg {
    overflow: visible !important;
}
.monogram svg {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    padding: 40px;
}

.monogram text {
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    dominant-baseline: middle;
}
@supports (-webkit-touch-callout: none) {
    .monogram svg text {
        dominant-baseline: middle;
    }
}