/* Главная страница (index.php) */

html, body {
    margin: 0;
    padding: 0;
    background: #fef0dc
}

body {
    font-family: 'Manrope', sans-serif;
    color: #3a2b27;
}

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

/* Ссылки в тексте: бордовые с бордовым подчёркиванием — только на главной */
a.link {
    color: #7e1a37;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: #7e1a37;
    text-underline-offset: .15em;
    transition: color .2s
}

a.link:hover {
    color: #5f1229
}

img {
    display: block;
    height: auto
}

h1, h2, p, dl, dd {
    margin: 0
}

.ic {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* Меню на светлом фоне; .hero — чтобы перебить menu.css, который подключается позже */
.hero .menu a {
    color: #4f3a33
}

.hero .menu a:hover {
    color: #2a1e1e
}

.hero .menu .is-active {
    color: #7e1a37;
    border-bottom-color: #7e1a37
}

.hero .menu a.is-active:hover {
    color: #5f1229
}

/* Светлое свечение вокруг букв: текст читается и там, где под ним листья */
.intro p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    margin-top: 14px;
    width: 80%;
    text-shadow: 0 0 10px #fef0dc, 0 0 10px #fef0dc, 0 0 10px #fef0dc, 0 0 60px #fef0dc, 0 0 60px #fef0dc, 0 0 60px #fef0dc
}

.intro p.title {
    width: auto;
    color: #2a1e1e;
    font-size: clamp(36px, 10.5vw, 52px);
    line-height: 1.02;
    letter-spacing: -.01em;
    margin-top: 0
}

.intro p.wait {
    color: #2a1e1e
}

/* Mobile (base) */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: #f2e2cf;
    overflow: hidden
}

.bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: url(/img/bg-lite.webp);
    background-size: cover;
    background-position-x: 84%;
}

/* Safari 26+ сам заливает зоны под строкой статуса и адресной строкой фоном html — растворяем край фото в этот цвет */
.bg::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    top: 0;
    height: 250px;
    background: linear-gradient(#fef0dc, rgba(254, 240, 220, 0))
}

/* Дымка под текстом, чтобы листья не спорили с ним; бутылка справа остаётся чистой */
.shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(242, 226, 207, .55) 0%, rgba(242, 226, 207, .4) 60%, rgba(242, 226, 207, 0) 78%)
}

/* z-index — поверх .bg::before */
.body {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(28px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom)) 28px
}

.body > .menu {
    margin-bottom: 30px
}

.content, .intro {
    display: contents
}

.line {
    width: 64px;
    height: 2px;
    background: #7e1a37;
    margin: 26px 0 0 0;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0 0 0;
}

/* Карточки из матового стекла; узкие, чтобы справа оставалась видна бутылка */
.contacts > * {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    background: rgba(255, 250, 244, .55);
    box-shadow: 0 6px 24px rgba(80, 45, 25, .1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #2a1e1e;
    width: 256px;
    box-sizing: border-box
}

.circle {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #7e1a37;
    display: flex;
    align-items: center;
    justify-content: center
}

.ic {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 1.6
}

.contacts span:last-child {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35
}

.contacts span.tel {
    line-height: normal
}

/* кружки соцсетей стоят под кружками контактов: 1px рамки + 16px отступа карточки */
.social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-left: 17px
}

.social a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #7e1a37;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s
}

/* Подсветка — только при наведении мышью: на телефоне после тапа :hover «залипает» */
@media (hover: hover) {
    .social a:hover {
        background: #9c1d43
    }
}

.sic {
    width: 24px;
    height: 24px;
    fill: #fff
}

.spacer {
    flex: 1;
    min-height: 40px
}

/* На бутылке уже есть этикетка с логотипом, на мобильном отдельный логотип не нужен */
.logo {
    display: none
}

/* Text */
.about {
    padding: 64px 24px 56px 28px;
    font-size: 16px;
    line-height: 1.65;
    background: #f6f1ea;
    color: #463a37
}

.about-in {
    max-width: 680px;
    margin: 0 auto
}

.about h1, .about h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: #2a1e1e;
    letter-spacing: -.01em;
    text-wrap: balance
}

.about h1 {
    font-size: clamp(34px, 8vw, 48px);
    line-height: 1.05
}

.about h2 {
    font-size: clamp(27px, 6vw, 34px);
    line-height: 1.1;
    margin-top: 48px
}

.about h2::before {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    background: #7e1a37;
    margin-bottom: 20px
}

.about p {
    margin-top: 14px
}

.about .lead {
    margin-top: 20px;
    font-size: 18px;
    color: #2a1e1e
}

.about a {
    color: #7e1a37;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: #7e1a37;
    text-underline-offset: .2em;
    transition: color .2s
}

.about a:hover {
    color: #5f1229
}

.about dl {
    margin-top: 20px
}

.about dt {
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6f6460
}

.about dd {
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 17px;
    color: #2a1e1e
}

/* Desktop */
@media (width >= 760px) and (aspect-ratio > 9/10) {
    .about {
        padding: 112px 48px 96px;
        font-size: 17px
    }

    .about .lead {
        font-size: 19px
    }

    .about h2 {
        margin-top: 56px
    }

    /* Экран, а если текст не влез между логотипом и низом — выше экрана (см. .content) */
    .hero {
        min-height: 100vh
    }

    /* Квадратное фото по ширине экрана: кадр чуть ниже середины, чтобы бутылка была видна целиком */
    .bg {
        background: url(/img/bg-lite.webp) 50% 62% / cover no-repeat, #f2e2cf
    }

    .bg::before {
        content: none
    }

    /* Светлая дымка слева под текстом, бокал и бутылка справа остаются чистыми */
    .shade {
        background: linear-gradient(90deg, rgba(246, 238, 227, .88) 0%, rgba(246, 238, 227, .72) 32%, rgba(246, 238, 227, 0) 58%)
    }

    .body {
        display: contents
    }

    /* Текст слева, по центру на высоте 51% экрана (как в полосе 28–74%), но не выше низа логотипа + 24px:
       центрируем в полосе, симметричной относительно 51vh и начинающейся под логотипом.
       Не влез — начинается под логотипом, и .hero вырастает. --top — низ .logo: отступ сверху, знак, зазор, надпись 540×104 */
    .content {
        --top: calc(clamp(20px, 5vh, 56px) + clamp(44px, 7vh, 88px) + clamp(8px, 1.4vh, 16px) + clamp(160px, 15vw, 260px) * .193 + 24px);
        position: relative; /* поверх .bg */
        min-height: calc(102vh - 2 * var(--top));
        margin: 0 44% 0 6%;
        padding: var(--top) 0 24px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: left;
        gap: clamp(12px, 2.6vh, 38px)
    }

    .intro {
        display: block
    }

    .intro p {
        font-size: clamp(22px, 1.75vw, 28px)
    }

    .intro p.title {
        font-size: clamp(48px, 4.6vw, 76px);
        text-wrap: balance
    }

    .contacts {
        flex-direction: row;
        flex-wrap: wrap;
        margin: 0
    }

    .contacts > * {
        padding: 12px 22px 12px 12px;
        width: auto
    }

    .contacts span:last-child {
        white-space: nowrap
    }

    .social {
        margin-top: 0;
        padding-left: 13px
    }

    .spacer {
        display: none
    }

    .logo {
        display: flex;
        flex-direction: column;
        position: absolute;
        left: 50%;
        top: clamp(20px, 5vh, 56px);
        transform: translateX(-50%);
        align-items: center;
        gap: clamp(8px, 1.4vh, 16px)
    }

    .logo img:first-child {
        width: clamp(44px, 7vh, 88px)
    }

    .logo img:last-child {
        width: clamp(160px, 15vw, 260px)
    }
}

.sprite {
    position: absolute
}
