/* Премиальный дизайн для Фортуна */

/* Base styles and variables */
:root {
    /* Премиальная темная цветовая схема */
    --primary-color: #1A1A1A;
    --primary-light: #333333;
    --primary-dark: #000000;
    --accent-gold: #D4AF37;
    --accent-gold-light: #F8E699;
    --accent-gold-dark: #996515;
    --text-light: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #888888;
    --background-light: #F9F9F9;
    --background-dark: #121212;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --header-height: 80px;
    --border-radius: 0px;
    --border-radius-sm: 4px;
    --container-width: 1440px;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Общие стили */
.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 3.5rem;
    position: relative;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--accent-gold);
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--accent-gold-dark);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-gold);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover {
    color: var(--text-light);
}

.btn:hover::before {
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1rem auto 0;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Хедер */
header {
    position: fixed;
    background: transparent;
    color: var(--text-light);
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 100%;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition-fast);
    position: relative;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

header h1:hover::after {
    width: 100%;
}

.menu__list {
    display: flex;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu__item:not(:last-child) {
    margin-right: 2.5rem;
}

.menu__link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
    position: relative;
}

.menu__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

.menu__link:hover {
    color: var(--accent-gold);
}

.menu__link:hover::after,
.menu__link.active::after {
    width: 100%;
}

.menu__link.active {
    color: var(--accent-gold);
}

.burger {
    display: none;
    position: relative;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 999;
}

.burger::before,
.burger::after,
.burger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-fast);
}

.burger::before {
    content: "";
    top: 0;
}

.burger::after {
    content: "";
    bottom: 0;
}

.burger span {
    top: 9px;
}

/* Герой-секция */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: var(--text-light);
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    margin-left: 10%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.5s;
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    color: var(--accent-gold);
    display: block;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 1s;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.hero-scroll span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    position: relative;
}

.hero-scroll span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Секция услуг */
.services {
    padding: 120px 0;
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    right: -300px;
    top: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-gold-light) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.service-item {
    display: flex;
    flex-direction: column;
    padding: 3rem;
    background: var(--text-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
    box-shadow: var(--shadow-sm);
}

.service-item.animated {
    transform: translateY(0);
    opacity: 1;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-gold);
    transition: var(--transition-normal);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-item:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.service-item:hover .service-icon {
    transform: translateY(-10px);
}

.service-item h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.service-item:hover h3 {
    transform: translateX(10px);
}

.service-item p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.service-link i {
    margin-left: 0.5rem;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--accent-gold-dark);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* О нас секция */
.about {
    position: relative;
    padding: 120px 0;
    background-color: var(--primary-dark);
    color: var(--text-light);
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1545058694-d770a5889daf') no-repeat center/cover;
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-dark) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.about-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding-right: 5rem;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.about h2 span {
    color: var(--accent-gold);
}

.about h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    margin-top: 1rem;
}

.about p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Контакты секция */
.contact {
    position: relative;
    padding: 120px 0;
    background-color: var(--background-light);
    overflow: hidden;
}

.contact-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.contact-info h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-items {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.contact-form {
    background: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-logo {
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-about p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
    transform: translateY(-5px);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 0.5rem;
}

.footer-contact li {
    display: flex;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--accent-gold);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.footer-contact span {
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.preloader-content {
    position: relative;
    width: 100px;
    height: 100px;
}

.preloader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.preloader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top: 3px solid transparent;
    border-right: 3px solid var(--accent-gold);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.preloader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top: 3px solid transparent;
    border-left: 3px solid var(--accent-gold);
    animation-duration: 1s;
}

.preloader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 700;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero-content {
        margin-left: 5%;
        max-width: 600px;
    }
    
    .about::before {
        width: 40%;
    }
    
    .contact-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .burger {
        display: block;
    }
    
    .menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-dark);
        padding: 100px 2rem 2rem;
        z-index: 998;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    header.open .menu {
        left: 0;
        box-shadow: var(--shadow-lg);
    }
    
    .menu__list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu__item {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
    }
    
    .menu__link {
        display: block;
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    header.open .burger::before {
        transform: rotate(45deg);
        top: 9px;
    }
    
    header.open .burger::after {
        transform: rotate(-45deg);
        bottom: 9px;
    }
    
    header.open .burger span {
        opacity: 0;
    }
    
    .about::before {
        display: none;
    }
    
    .about-content {
        padding-right: 0;
        max-width: 100%;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content {
        text-align: center;
        margin-left: 0;
        padding: 0 1.5rem;
    }
    
    .service-item {
        padding: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Cross-browser compatibility */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) #eee;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #eee;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-gold);
    border-radius: 4px;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-gold);
}

.bg-dark {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}




