/* ==========================================================================
   ИСТОРИЯ ВИНОДЕЛА — СТИЛИ ЗАГЛУШКИ
   ========================================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font, 'Raleway', 'Helvetica Neue', Arial, sans-serif);
    background: var(--bg, #0a0a0a);
    color: var(--text, #e8e0d4);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Vine Container --- */
.vine-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.vine-svg {
    width: 100%;
    height: 100%;
}

/* --- Vine Stem Animation --- */
.vine-stem {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: vineGrow 4s ease-in-out forwards;
}

.vine-branch {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: branchGrow 2s ease-in-out forwards;
}

.vine-branch-l-1 {
    animation-delay: 1.2s;
}

.vine-branch-l-2 {
    animation-delay: 1.8s;
}

.vine-branch-l-3 {
    animation-delay: 2.5s;
}

.vine-branch-l-4 {
    animation-delay: 3.2s;
}

.vine-branch-r-1 {
    animation-delay: 1.2s;
}

.vine-branch-r-2 {
    animation-delay: 1.8s;
}

.vine-branch-r-3 {
    animation-delay: 2.5s;
}

.vine-branch-r-4 {
    animation-delay: 3.2s;
}

.vine-curl {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: curlGrow 1.5s ease-in-out forwards;
}

.vine-curl-l {
    animation-delay: 3.5s;
}

.vine-curl-r {
    animation-delay: 3.5s;
}

/* --- Leaf Anim --- */
.leaf {
    opacity: 0;
    animation: leafAppear 0.8s ease-in-out forwards;
}

.leaf-l-1 {
    animation-delay: 1.5s;
}

.leaf-l-2 {
    animation-delay: 2.1s;
}

.leaf-l-3 {
    animation-delay: 2.8s;
}

.leaf-l-4 {
    animation-delay: 3.5s;
}

.leaf-r-1 {
    animation-delay: 1.5s;
}

.leaf-r-2 {
    animation-delay: 2.1s;
}

.leaf-r-3 {
    animation-delay: 2.8s;
}

.leaf-r-4 {
    animation-delay: 3.5s;
}

@keyframes vineGrow {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes branchGrow {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes curlGrow {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes leafAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 0.85;
        transform: scale(1);
    }
}

/* --- Subtle leaf sway --- */
.leaf {
    animation: leafAppear 0.8s ease-in-out forwards,
        leafSway 6s ease-in-out infinite;
}

@keyframes leafSway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-2deg);
    }
}

/* --- Stub Container --- */
.stub-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 720px;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stub-content {
    text-align: center;
    animation: fadeInUp 1.2s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Decorative Line --- */
.decorative-line {
    width: 60px;
    height: 1px;
    background: var(--accent, #c9a84c);
    margin: 0 auto 32px;
    position: relative;
}

.decorative-line::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: var(--accent, #c9a84c);
    border-radius: 50%;
}

.stub-content>.decorative-line:last-child {
    margin-top: 32px;
    margin-bottom: 0;
}

/* --- Site Title --- */
.site-title {
    font-family: var(--heading-font, 'Cygre', 'Cormorant Garamond', Georgia, serif);
    font-weight: 300;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    letter-spacing: 0.04em;
    color: var(--text, #e8e0d4);
    margin-bottom: 12px;
    line-height: 1.2;
}

/* --- Site Title Image --- */
.site-title-image {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.site-title-img {
    display: block;
}

/* --- Subtitle --- */
.site-subtitle {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent, #c9a84c);
    margin-bottom: 32px;
    opacity: 0.9;
}

/* --- Description --- */
.site-description {
    font-family: var(--heading-font, 'Cygre', 'Cormorant Garamond', Georgia, serif);
    font-weight: 400;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    color: var(--text, #e8e0d4);
    opacity: 0.8;
    margin-bottom: 48px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Countdown --- */
.countdown-wrapper {
    margin-bottom: 48px;
}

.countdown-label {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent, #c9a84c);
    margin-bottom: 20px;
    opacity: 0.85;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-width: 80px;
    height: 90px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.countdown-number {
    font-family: var(--heading-font, 'Cygre', 'Cormorant Garamond', Georgia, serif);
    font-weight: 300;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1.1;
    color: var(--text, #e8e0d4);
    text-align: center;
    width: 100%;
}

.countdown-label-small {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent, #c9a84c);
    opacity: 0.7;
    margin-top: 6px;
}

.countdown-separator {
    font-family: var(--heading-font, 'Cygre', 'Cormorant Garamond', Georgia, serif);
    font-size: 1.8rem;
    color: var(--accent, #c9a84c);
    opacity: 0.4;
    align-self: center;
    margin-bottom: 20px;
}

.countdown-date {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text, #e8e0d4);
    opacity: 0.5;
}

/* --- Social Links --- */
.social-links {
    margin-bottom: 16px;
}

.social-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent, #c9a84c);
    margin-bottom: 24px;
    opacity: 0.85;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text, #e8e0d4);
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.social-link::before {
    display: none;
}

.social-link:hover {
    opacity: 0.7;
    transform: none;
    background: none;
    box-shadow: none;
}

.social-icon {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover .social-icon {
    opacity: 0.8;
}

.social-name {
    font-family: var(--body-font, 'Raleway', sans-serif);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* --- Contact Form 7 --- */
.cf7-section {
    margin-top: 32px;
    margin-bottom: 16px;
    animation: fadeInUp 1.2s ease-out 1.5s both;
}

.cf7-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent, #c9a84c);
    margin-bottom: 20px;
    opacity: 0.85;
}

.cf7-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

/* CF7 overrides for dark theme */
.cf7-form .wpcf7 input[type="text"],
.cf7-form .wpcf7 input[type="email"],
.cf7-form .wpcf7 input[type="tel"],
.cf7-form .wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text, #e8e0d4);
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    margin-bottom: 12px;
}

.cf7-form .wpcf7 input[type="text"]:focus,
.cf7-form .wpcf7 input[type="email"]:focus,
.cf7-form .wpcf7 input[type="tel"]:focus,
.cf7-form .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--accent, #c9a84c);
    background: rgba(255, 255, 255, 0.06);
}

.cf7-form .wpcf7 input[type="text"]::placeholder,
.cf7-form .wpcf7 input[type="email"]::placeholder,
.cf7-form .wpcf7 input[type="tel"]::placeholder,
.cf7-form .wpcf7 textarea::placeholder {
    color: rgba(232, 224, 212, 0.35);
}

.cf7-form .wpcf7 input[type="submit"] {
    padding: 12px 36px;
    background: transparent;
    border: 1px solid var(--accent, #c9a84c);
    border-radius: 50px;
    color: var(--accent, #c9a84c);
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: auto;
}

.cf7-form .wpcf7 input[type="submit"]:hover {
    background: var(--accent, #c9a84c);
    color: var(--bg, #0a0a0a);
}

.cf7-form .wpcf7 .wpcf7-not-valid-tip {
    color: #e57373;
    font-size: 0.75rem;
    margin-top: -8px;
    margin-bottom: 8px;
}

.cf7-form .wpcf7 form .wpcf7-response-output {
    border-color: var(--accent, #c9a84c);
    color: var(--text, #e8e0d4);
    margin: 12px 0 0;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* --- Particles --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent, #c9a84c);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .stub-container {
        padding: 32px 20px;
    }

    .countdown {
        gap: 4px;
    }

    .countdown-item {
        width: 64px;
        min-width: 64px;
        height: 76px;
        padding: 10px 4px;
    }

    .countdown-separator {
        font-size: 1.2rem;
    }

    .social-grid {
        gap: 16px;
    }

    .social-link {
        padding: 0;
    }

    .social-name {
        font-size: 0.8rem;
    }
}

/* --- Animations for staggered social links --- */
.social-link {
    opacity: 0;
    animation: socialFadeIn 0.6s ease-out forwards;
}

.social-link:nth-child(1) {
    animation-delay: 1.8s;
}

.social-link:nth-child(2) {
    animation-delay: 2.0s;
}

.social-link:nth-child(3) {
    animation-delay: 2.2s;
}

.social-link:nth-child(4) {
    animation-delay: 2.4s;
}

.social-link:nth-child(5) {
    animation-delay: 2.6s;
}

.social-link:nth-child(6) {
    animation-delay: 2.8s;
}

@keyframes socialFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}