/* Основные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Подключение шрифтов Etude Noire */
@font-face {
    font-family: 'Etude Noire Bold';
    src: url('https://fonts.cdnfonts.com/s/85517/EtudeNoire-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Etude Noire Regular';
    src: url('https://fonts.cdnfonts.com/s/85517/EtudeNoire-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Анимации для загрузки сайта */
@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);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    background-color: #181716;
    color: #ffffff;
    line-height: 1.6;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.8s ease-out;
}

/* Контейнеры и общие стили */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeInUp 0.8s ease-out both;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ffffff;
}

/* Шапка сайта */
header {
    background-color: #181716;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    animation: slideInDown 0.8s ease-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: 2px;
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.logo i {
    margin-right: 10px;
    color: #ffffff;
}

nav ul {
    display: flex;
    list-style: none;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Стили для логотипа */
.logo-image {
    height: 50px;
    width: auto;
    margin-right: 0;
}

/* Главный баннер */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/fon/glavniy-fon.jpeg') no-repeat center center/cover;
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn {
    display: inline-block;
    background-color: #ffffff;
    color: #181716;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #ffffff;
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #181716;
}

/* О компании */
.about {
    padding: 100px 0;
    background-color: #1f1e1d;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    animation: slideInLeft 0.8s ease-out both;
}

.about-text p {
    margin-bottom: 20px;
    color: #ddd;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-image {
    flex: 1;
    background: linear-gradient(45deg, #2a2928, #181716), url('images/fon/fon-2.jpg') no-repeat center center/cover;
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    animation: slideInRight 0.8s ease-out both;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/fon/fon-2.jpg') no-repeat center center/cover;
    opacity: 0.3;
    
}

/* Каталог станков */
.catalog {
    padding: 100px 0;
    background-color: #181716;
}

.machines-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.machine-card {
    background-color: #1f1e1d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    flex: 1 1 300px;
    max-width: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
    animation: fadeInUp 0.8s ease-out both;
}

/* Задержки для карточек станков */
.machine-card:nth-child(1) { animation-delay: 0.2s; }
.machine-card:nth-child(2) { animation-delay: 0.3s; }
.machine-card:nth-child(3) { animation-delay: 0.4s; }
.machine-card:nth-child(4) { animation-delay: 0.5s; }

.machine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.machine-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.machine-card:hover .machine-image img {
    transform: scale(1.05);
}

.machine-info {
    padding: 25px;
}

.machine-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.machine-info p {
    color: #aaa;
    margin-bottom: 15px;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.price {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Преимущества */
.advantages {
    padding: 100px 0;
    background-color: #1f1e1d;
}

.advantages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.advantage-card {
    flex: 1 1 250px;
    text-align: center;
    padding: 40px 20px;
    background-color: #181716;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid #333;
    animation: fadeInUp 0.8s ease-out both;
}

/* Задержки для карточек преимуществ */
.advantage-card:nth-child(1) { animation-delay: 0.2s; }
.advantage-card:nth-child(2) { animation-delay: 0.3s; }
.advantage-card:nth-child(3) { animation-delay: 0.4s; }
.advantage-card:nth-child(4) { animation-delay: 0.5s; }
.advantage-card:nth-child(5) { animation-delay: 0.6s; }
.advantage-card:nth-child(6) { animation-delay: 0.7s; }

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #2a2928, #181716);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.advantage-card p {
    color: #aaa;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Контакты */
.contacts {
    padding: 100px 0;
    background-color: #181716;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
    animation: slideInLeft 0.8s ease-out both;
}

.contact-form {
    flex: 1;
    animation: slideInRight 0.8s ease-out both;
}

.contact-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #1f1e1d;
    border-radius: 8px;
    border: 1px solid #333;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-item p {
    color: #aaa;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ddd;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #1f1e1d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ffffff;
    transition: border-color 0.3s;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Подвал */
footer {
    background-color: #121110;
    color: #ffffff;
    padding: 70px 0 20px;
    border-top: 1px solid #333;
    animation: fadeInUp 0.8s ease-out both;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1 1 200px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ffffff;
}

.footer-column p {
    color: #aaa;
    margin-bottom: 20px;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1f1e1d;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #ffffff;
    color: #181716;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Анимация для появления при скролле */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность для логотипа */
@media (max-width: 768px) {
    .logo-image {
        height: 35px;
        width: auto;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 8px 15px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-image {
        height: 300px;
        order: -1;
    }
    
    .machines-grid {
        gap: 20px;
    }
    
    .machine-card {
        flex: 1 1 100%;
        max-width: 400px;
    }
    
    .advantages-grid {
        gap: 20px;
    }
    
    .advantage-card {
        flex: 1 1 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-container {
        gap: 30px;
    }
    
    .footer-column {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Уменьшаем задержки анимаций на мобильных */
    .machine-card,
    .advantage-card {
        animation-delay: 0.1s !important;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 250px;
    }
    
    .btn-outline {
        margin-left: 0 !important;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .about, .catalog, .advantages, .contacts {
        padding: 60px 0;
    }
    
    .about-image {
        height: 250px;
    }
    
    .machine-info {
        padding: 20px;
    }
    
    .machine-info h3 {
        font-size: 1.2rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .advantage-card {
        padding: 30px 15px;
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    footer {
        padding: 50px 0 15px;
    }
    
    .copyright {
        margin-top: 30px;
        font-size: 0.9rem;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }
    
    .about-image {
        height: 200px;
    }
    
    .machine-image {
        height: 180px;
    }
    
    .advantage-card {
        padding: 20px 10px;
    }
}
.advantage-card {
    flex: 1 1 250px;
    text-align: center;
    padding: 40px 20px;
    background-color: #181716;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
}

/* Основная анимация приподнимания */
.advantage-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 30px rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #1a1918, #151413);
}

/* Эффект свечения */
.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.advantage-card:hover::before {
    opacity: 1;
}

/* Анимация иконки */
.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #2a2928, #1a1918);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.15) rotateY(180deg);
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    color: #181716;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Эффект пульсации для иконки */
.advantage-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.advantage-card:hover .advantage-icon::after {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анимация текста */
.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Etude Noire Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.advantage-card:hover h3 {
    color: #ffffff;
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.advantage-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.advantage-card:hover h3::after {
    width: 80%;
}

.advantage-card p {
    color: #aaa;
    font-family: 'Etude Noire Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.advantage-card:hover p {
    color: #e0e0e0;
    transform: translateY(-1px);
}
/* Секция регистрации */
.registration {
    padding: 100px 0;
    background-color: #1f1e1d;
}

.registration-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.registration-form {
    background: #181716;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.registration-form h3 {
    font-family: 'Etude Noire Bold', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.form-subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.registration-form .form-group {
    margin-bottom: 20px;
}

.registration-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ddd;
    font-family: 'Etude Noire Regular', sans-serif;
}

.registration-form .form-group input,
.registration-form .form-group select,
.registration-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #1f1e1d;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Etude Noire Regular', sans-serif;
}

.registration-form .form-group input:focus,
.registration-form .form-group select:focus,
.registration-form .form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 10px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #aaa;
}

.login-link a {
    color: #ffffff;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Блок преимуществ регистрации */
.registration-benefits {
    padding: 20px;
}

.registration-benefits h3 {
    font-family: 'Etude Noire Bold', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #181716;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateX(5px);
}

.benefit-item i {
    font-size: 1.5rem;
    color: #ffffff;
    background: #2a2928;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 5px;
}

.benefit-item h4 {
    font-family: 'Etude Noire Bold', sans-serif;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 1.1rem;
}

.benefit-item p {
    color: #aaa;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Адаптивность для формы регистрации */
@media (max-width: 768px) {
    .registration-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .registration-form {
        padding: 30px 20px;
    }
    
    .registration-benefits {
        padding: 0;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-item i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .registration {
        padding: 60px 0;
    }
    
    .registration-form {
        padding: 25px 15px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .benefit-item i {
        align-self: center;
    }
}
/* ===== ДИНАМИЧЕСКИЕ ЭФФЕКТЫ ===== */

/* Параллакс эффект для героя */
.hero {
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(24, 23, 22, 0.3) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Анимация типинга для заголовка */
.typing-container {
    display: inline-block;
    position: relative;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #ffffff;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Плавающие элементы */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Анимированный градиент для кнопок */
.btn-gradient {
    background: linear-gradient(45deg, #ffffff, #e0e0e0, #ffffff);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    border: none;
    position: relative;
    overflow: hidden;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* Анимация появления счетчиков */
.counter {
    font-size: 2.5rem;
    font-family: 'Etude Noire Bold', sans-serif;
    color: #ffffff;
}

.counter-container {
    text-align: center;
    padding: 20px;
}

/* Интерактивные карточки станков */
.machine-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.machine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    pointer-events: none;
}

.machine-card:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-out;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 3D эффект при наведении на карточки */
.machine-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
}

/* Анимированный фон для преимуществ */
.advantages {
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.01) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Анимация иконок преимуществ */
.advantage-icon {
    position: relative;
}

.advantage-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        border-color: transparent;
    }
    50% { 
        transform: scale(1.1);
        border-color: rgba(255,255,255,0.1);
    }
}

/* Динамическая форма регистрации */
.registration-form {
    position: relative;
}

.form-group input:focus,
.form-group select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

/* Анимированный прогресс-бар для формы */
.form-progress {
    height: 3px;
    background: #333;
    margin-bottom: 30px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.form-progress-bar {
    height: 100%;
    background: #ffffff;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.form-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Парящие частицы в герое */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Анимация загрузки для изображений */
.machine-image {
    position: relative;
    overflow: hidden;
}

.machine-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #2a2928 25%, #1f1e1d 50%, #2a2928 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.machine-image.loaded::before {
    display: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Интерактивная навигация */
nav ul li a {
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, transparent);
    transition: width 0.3s ease;
}

nav ul li a:hover::before {
    width: 100%;
}

/* Анимированный скролл-индикатор */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
}

.scroll-dot {
    display: block;
    width: 12px;
    height: 12px;
    margin: 15px 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

.scroll-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0; }
}

/* Анимация появления текста */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Динамический ховер для преимуществ */
.advantage-card {
    position: relative;
    overflow: hidden;
}

.advantage-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover::after {
    opacity: 1;
}

/* Анимация для цен */
.price {
    position: relative;
    display: inline-block;
}

.price::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.machine-card:hover .price::after {
    width: 100%;
}

/* Интерактивная карта в подвале */
.footer-column h3 {
    position: relative;
    display: inline-block;
}

.footer-column h3::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.footer-column:hover h3::before {
    width: 100%;
}
/* Секция превью каталога */
.catalog-preview {
    padding: 100px 0;
    background-color: #181716;
}

.section-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Обновленные стили карточек для превью */
.machine-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    max-width: calc(100% - 30px);
}

.machine-category {
    background: rgba(255, 255, 255, 0.9);
    color: #181716;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: 'Etude Noire Bold', sans-serif;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.machine-specs {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd;
    font-size: 0.9rem;
}

.spec-item i {
    width: 16px;
    color: #aaa;
}

.machine-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    min-height: 3.2rem;
}

.machine-info p {
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 2.8rem;
}

/* CTA блок под каталогом */
.catalog-cta {
    text-align: center;
    background: #1f1e1d;
    padding: 50px;
    border-radius: 12px;
    margin-top: 60px;
    border: 1px solid #333;
}

.catalog-cta h3 {
    font-family: 'Etude Noire Bold', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.catalog-cta p {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Адаптивность для превью каталога */
@media (max-width: 768px) {
    .catalog-preview {
        padding: 60px 0;
    }
    
    .machine-info h3 {
        min-height: auto;
        font-size: 1.2rem;
    }
    
    .machine-info p {
        min-height: auto;
    }
    
    .catalog-cta {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .catalog-cta h3 {
        font-size: 1.4rem;
    }
    
    .catalog-cta p {
        font-size: 1rem;
    }
}
/* Исправления для логотипа на планшетах и мобильных */
.logo-image {
    height: 70px;
    width: auto;
    margin-right: 0;
    /* Добавляем гарантированное отображение */
    display: block !important;
    max-height: 70px !important;
}

/* Убираем проблемные медиа-запросы для логотипа */
@media (max-width: 768px) {
    .logo-image {
        height: 50px !important; /* Уменьшаем немного для планшетов */
        width: auto !important;
    }
    
    .header-container {
        flex-direction: row !important; /* Оставляем горизонтальное расположение */
        text-align: left;
        padding: 15px 0 !important;
    }
    
    nav ul {
        margin-top: 0 !important; /* Убираем лишний отступ */
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    nav ul li {
        margin: 0 10px !important;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 40px !important; /* Еще меньше для телефонов */
        width: auto !important;
    }
    
    .header-container {
        padding: 10px 0 !important;
    }
    
    nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    nav ul li {
        margin: 0 5px !important;
    }
    
    nav ul li a {
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .logo-image {
        height: 35px !important;
        width: auto !important;
    }
    
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    nav ul {
        justify-content: center;
    }
}
/* Гарантированное отображение логотипа на всех устройствах */
@media (max-width: 1200px) {
    .logo-image {
        height: 60px !important;
        width: auto !important;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 50px !important;
        width: auto !important;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 40px !important;
        width: auto !important;
    }
}
/* Overrides for VSK catalog integration (state before mobile version) */
.machine-image {
  overflow: hidden;
}

.machine-image img {
  width: calc(100% + 32px);
  height: 100%;
  display: block;
  margin-left: -16px;
  margin-right: -16px;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.12) contrast(1.06);
  transform: scale(1.34);
  transition: transform 0.35s ease;
}

.machine-card:hover .machine-image img {
  transform: scale(1.38);
}
