:root {
    --orange-primary: #f97316;
    --orange-deep: #ea580c;
    --orange-light: #fb923c;
    --orange-pale: #fed7aa;
    --orange-bg: #fff7ed;
    --white: #ffffff;
    --text-dark: #431407;
    --text-medium: #7c2d12;
    --text-light: #9a3412;
    --shadow-sm: 0 1px 2px rgba(249, 115, 22, 0.08);
    --shadow-md: 0 8px 24px rgba(249, 115, 22, 0.15);
    --shadow-lg: 0 16px 48px rgba(249, 115, 22, 0.22);
    --shadow-xl: 0 24px 64px rgba(249, 115, 22, 0.18);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 25%, #fed7aa 50%, #ffedd5 75%, #fff7ed 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
    background-image:
        radial-gradient(circle at 15% 20%, #f97316 2px, transparent 2px),
        radial-gradient(circle at 10% 25%, #f97316 1.5px, transparent 1.5px),
        radial-gradient(circle at 12% 22%, #f97316 1.8px, transparent 1.8px),
        radial-gradient(ellipse at 20% 23%, #f97316 3px 2px, transparent 3px),
        radial-gradient(circle at 78% 70%, #f97316 2.2px, transparent 2.2px),
        radial-gradient(circle at 73% 75%, #f97316 1.6px, transparent 1.6px),
        radial-gradient(circle at 75% 72%, #f97316 1.9px, transparent 1.9px),
        radial-gradient(ellipse at 83% 73%, #f97316 3.2px 2.2px, transparent 3.2px),
        radial-gradient(circle at 40% 85%, #f97316 1.8px, transparent 1.8px),
        radial-gradient(circle at 35% 90%, #f97316 1.4px, transparent 1.4px),
        radial-gradient(circle at 37% 87%, #f97316 1.6px, transparent 1.6px),
        radial-gradient(ellipse at 45% 88%, #f97316 2.8px 1.8px, transparent 2.8px),
        radial-gradient(circle at 60% 15%, #f97316 2px, transparent 2px),
        radial-gradient(circle at 55% 20%, #f97316 1.5px, transparent 1.5px),
        radial-gradient(circle at 57% 17%, #f97316 1.7px, transparent 1.7px),
        radial-gradient(ellipse at 65% 18%, #f97316 3px 2px, transparent 3px);
    background-size: 200px 200px, 200px 200px, 200px 200px, 200px 200px;
}

.bg-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    opacity: 0.07;
    background: #f97316;
    animation: floatAround 20s ease-in-out infinite;
}
.bg-decoration.circle-1 {
    width: 280px;
    height: 280px;
    top: -100px;
    right: -80px;
    animation-delay: 0s;
    animation-duration: 22s;
}
.bg-decoration.circle-2 {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -50px;
    animation-delay: -5s;
    animation-duration: 18s;
    opacity: 0.05;
}
.bg-decoration.circle-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 5%;
    animation-delay: -11s;
    animation-duration: 25s;
    opacity: 0.06;
}
.bg-decoration.circle-4 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 10%;
    animation-delay: -8s;
    animation-duration: 20s;
    opacity: 0.04;
}

@keyframes floatAround {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    15% {
        transform: translate(30px, -25px) scale(1.05);
    }
    30% {
        transform: translate(-20px, 15px) scale(0.96);
    }
    45% {
        transform: translate(25px, 30px) scale(1.04);
    }
    60% {
        transform: translate(-30px, -20px) scale(0.97);
    }
    75% {
        transform: translate(15px, -30px) scale(1.03);
    }
    90% {
        transform: translate(-25px, 10px) scale(0.98);
    }
}

.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px 36px 40px;
    box-shadow: var(--shadow-xl), var(--shadow-lg);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(249, 115, 22, 0.08);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.main-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(249, 115, 22, 0.24), 0 18px 40px rgba(249, 115, 22, 0.16);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #fb923c, #f97316, #ea580c);
    border-radius: 0 0 8px 8px;
}

.logo-icon {
    display: inline-block;
    margin-bottom: 20px;
    animation: gentleBounce 2.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(249, 115, 22, 0.25));
}

.logo-icon svg {
    width: 72px;
    height: 72px;
}

@keyframes gentleBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-14px);
    }
    50% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-7px);
    }
    85% {
        transform: translateY(0);
    }
}

.title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.title .accent {
    color: #f97316;
    position: relative;
}
.title .accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: #fed7aa;
    border-radius: 3px;
    z-index: -1;
    opacity: 0.7;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fb923c, #f97316, #fb923c, transparent);
    margin: 0 auto 26px;
    border-radius: 2px;
    opacity: 0.7;
}

.contact-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.map-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.4);
    transition: all 0.35s ease;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    white-space: nowrap;
}

.map-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.map-button:hover {
    background: linear-gradient(135deg, #fb923c, #f97316);
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.55);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.3);
}

.map-button:active {
    transform: translateY(1px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.5);
}

.phones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 1.05rem;
    background: #fff7ed;
    padding: 10px 22px;
    border-radius: 40px;
    transition: all 0.25s ease;
    border: 1.5px solid #fed7aa;
    letter-spacing: 0.01em;
}

.phone-link svg {
    width: 22px;
    height: 22px;
    color: #f97316;
    flex-shrink: 0;
}

.phone-link:hover {
    background: #ffedd5;
    border-color: #fb923c;
    color: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.12);
}

.phone-link:active {
    transform: translateY(0);
}

.message {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 500;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px dashed #fb923c;
    position: relative;
}

.message::before {
    content: '🐾';
    position: absolute;
    top: -16px;
    left: 20px;
    font-size: 1.6rem;
    background: var(--white);
    padding: 0 8px;
    border-radius: 50%;
}

.message strong {
    color: #ea580c;
    font-weight: 700;
}

.social-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 18px;
    font-weight: 700;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: transform var(--transition);
    position: relative;
}

.social-link:hover {
    transform: translateY(-6px);
}
.social-link:active {
    transform: scale(0.94);
}

.social-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    background: var(--white);
    border: 2px solid transparent;
}

.social-link:hover .social-icon-wrapper {
    box-shadow: var(--shadow-lg), 0 0 0 8px rgba(249, 115, 22, 0.08);
    border-color: #fb923c;
}

.social-link.vk .social-icon-wrapper {
    background: linear-gradient(145deg, #e7f0ff, #d4e4ff);
    color: #0077ff;
}
.social-link.vk:hover .social-icon-wrapper {
    background: linear-gradient(145deg, #d4e4ff, #b8d4ff);
    color: #0055cc;
    box-shadow: 0 12px 32px rgba(0, 119, 255, 0.3), 0 0 0 8px rgba(0, 119, 255, 0.06);
    border-color: #0077ff;
}

.social-link.telegram .social-icon-wrapper {
    background: linear-gradient(145deg, #e8f5fd, #d0eafb);
    color: #26a5e4;
}
.social-link.telegram:hover .social-icon-wrapper {
    background: linear-gradient(145deg, #d0eafb, #b8ddf7);
    color: #1d8ec2;
    box-shadow: 0 12px 32px rgba(38, 165, 228, 0.3), 0 0 0 8px rgba(38, 165, 228, 0.06);
    border-color: #26a5e4;
}

.social-link.max .social-icon-wrapper {
    background: linear-gradient(145deg, #fff0e8, #ffe4d4);
    color: #f97316;
}
.social-link.max:hover .social-icon-wrapper {
    background: linear-gradient(145deg, #ffe4d4, #ffd4bc);
    color: #ea580c;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.3), 0 0 0 8px rgba(249, 115, 22, 0.06);
    border-color: #f97316;
}

.social-icon-wrapper svg {
    width: 40px;
    height: 40px;
    transition: transform var(--transition);
}
.social-link:hover .social-icon-wrapper svg {
    transform: scale(1.1);
}

.social-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-medium);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}
.social-link:hover .social-label {
    color: var(--orange-deep);
}

.badge {
    display: inline-flex; /* Изменили на inline-flex для выравнивания лошадки */
    align-items: center;
    gap: 8px; /* Расстояние между лошадкой и текстом */
    margin-top: 20px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    color: #c2410c;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid #fb923c;
    text-decoration: none;
    animation: pulseBadge 3s ease-in-out infinite;
    transition: opacity 0.2s ease;
}

.badge:hover {
    opacity: 0.85;
}

@keyframes pulseBadge {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(249, 115, 22, 0);
    }
}

/* АНИМАЦИЯ ЛОШАДКИ */
.running-horse {
    display: inline-block;
    font-size: 1.2rem;
    animation: runHorse 0.8s ease-in-out infinite alternate;
}

@keyframes runHorse {
    0% { transform: translateY(0) rotate(-5deg); }
    100% { transform: translateY(-4px) rotate(10deg); }
}

@media (max-width: 600px) {
    .main-container {
        padding: 32px 20px 28px;
        border-radius: var(--radius-lg);
        max-width: 100%;
    }
    .title {
        font-size: 1.5rem;
    }
    .contact-row {
        flex-direction: column;
        gap: 14px;
    }
    .map-button {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    .phones {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .phone-link {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .message {
        font-size: 0.95rem;
        padding: 16px 16px;
        border-radius: var(--radius-sm);
    }
    .message::before {
        top: -14px;
        left: 12px;
        font-size: 1.3rem;
    }
    .social-links {
        gap: 16px;
    }
    .social-icon-wrapper {
        width: 64px;
        height: 64px;
    }
    .social-icon-wrapper svg {
        width: 30px;
        height: 30px;
    }
    .social-label {
        font-size: 0.72rem;
    }
    .logo-icon svg {
        width: 56px;
        height: 56px;
    }
    .badge {
        font-size: 0.7rem;
        padding: 6px 16px;
    }
    .bg-decoration.circle-1 {
        width: 180px;
        height: 180px;
        top: -60px;
        right: -50px;
    }
    .bg-decoration.circle-2 {
        width: 120px;
        height: 120px;
        bottom: -40px;
        left: -30px;
    }
    .bg-decoration.circle-3 {
        width: 80px;
        height: 80px;
        top: 30%;
        left: -20px;
    }
    .bg-decoration.circle-4 {
        width: 130px;
        height: 130px;
        bottom: 10%;
        right: -30px;
    }
    .top-accent {
        width: 60px;
        height: 4px;
    }
    .divider {
        width: 44px;
        margin-bottom: 20px;
    }
    .contact-block {
        gap: 12px;
        margin-bottom: 18px;
    }
}

@media (max-width: 380px) {
    .main-container {
        padding: 24px 14px 20px;
        border-radius: var(--radius-md);
    }
    .title {
        font-size: 1.3rem;
    }
    .map-button {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    .phone-link {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .message {
        font-size: 0.85rem;
        padding: 14px 12px;
    }
    .social-links {
        gap: 10px;
    }
    .social-icon-wrapper {
        width: 54px;
        height: 54px;
    }
    .social-icon-wrapper svg {
        width: 26px;
        height: 26px;
    }
    .social-label {
        font-size: 0.66rem;
    }
    .logo-icon svg {
        width: 46px;
        height: 46px;
    }
    .badge {
        font-size: 0.65rem;
        padding: 5px 12px;
        margin-top: 14px;
    }
}
svg {
    max-width: 50px;
    max-height: 50px;
    height: auto;
}

/* Исключение для логотипа, если он тоже SVG, чтобы он остался нормальным */
.logo-icon svg {
    max-width: 72px;
    max-height: 72px;
}
