:root {
    --nav-red: #DD0510;
    --at-red-light: #e63946;
    --at-sky: #87ceeb;
    --at-dark: #1a1a1a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-radius: 16px;
    --btn-radius: 40px;
    --container-padding: 96px;
}

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

body {
    font-family: 'Play', sans-serif;
    font-weight: 400;
    color: #333;
    line-height: 1.7;
    background: #fff;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .brand, .logo { font-family: 'Play', sans-serif; font-weight: 700; }

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 var(--container-padding);
}

/* Стили для введения в услуги (4 пункта договора) */
.services-intro {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-intro-list {
    list-style: none;
    counter-reset: services-counter;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.services-intro-list li {
    counter-increment: services-counter;
    padding: 1rem 1rem 1rem 3rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.services-intro-list li::before {
    content: counter(services-counter);
    position: absolute;
    left: 0.5rem;
    top: 0.8rem;
    width: 2rem;
    height: 2rem;
    background: var(--accent, #4a9eff);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Защита изображений от перетаскивания и сохранения */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* Непрозрачный слой над изображениями для защиты */
.protected-image {
    position: relative;
}

.protected-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* ==================== МОДАЛЬНОЕ ОКНО ==================== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; }
.modal.active { display: block; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 900px; height: 85vh; max-height: 700px; background: white; border-radius: var(--card-radius); display: flex; flex-direction: column; box-shadow: 0 25px 60px rgba(0,0,0,0.3); z-index: 2001; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #eee; }
.modal-header h3 { font-size: 1.3rem; color: var(--at-dark); }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; transition: var(--transition); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #f0f0f0; color: var(--nav-red); }
.modal-body { flex: 1; padding: 0; overflow: hidden; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; }
.modal-close-btn { padding: 10px 28px; }

/* ==================== NAV ==================== */
nav { background: var(--nav-red); color: white; position: sticky; top: 0; z-index: 1000; padding: 1.67rem 0; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo svg { display: block; }
.nav-links-desktop { display: flex; gap: 2.4rem; }
.nav-links-desktop a { color: white; text-decoration: none; font-weight: 500; font-size: 1.02rem; transition: var(--transition); }
.nav-links-desktop a:hover { color: var(--at-sky); }

.lang-dropdown { position: relative; display: inline-block; }
.lang-dropbtn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 8px 16px; font-size: 0.9rem; border-radius: var(--btn-radius); cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.lang-dropbtn:hover { background: rgba(255,255,255,0.1); }
.lang-dropdown-content { display: none; position: absolute; right: 0; background: white; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); border-radius: 12px; z-index: 1001; overflow: hidden; }
.lang-dropdown-content a { color: #333; padding: 12px 16px; text-decoration: none; display: block; font-size: 0.95rem; transition: background 0.2s; }
.lang-dropdown-content a:hover { background: #f5f5f5; }
.lang-dropdown:hover .lang-dropdown-content { display: block; }

.hamburger { font-size: 1.9rem; cursor: pointer; color: white; display: none; }
.nav-links-mobile { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--nav-red); color: white; flex-direction: column; padding-top: 110px; z-index: 999; text-align: center; }
.nav-links-mobile.active { display: flex; }
.nav-links-mobile a { color: white; text-decoration: none; font-size: 1.45rem; font-weight: 500; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }

/* ==================== HERO ==================== */
.hero { position: relative; padding: 80px 0; overflow: hidden; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0.15; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center; }
.hero-content h1 { font-size: 3.2rem; line-height: 1.2; color: var(--at-dark); margin-bottom: 24px; }
.hero-content p { font-size: 1.2rem; color: #555; max-width: 530px; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 32px; background: var(--nav-red); color: white; text-decoration: none; font-weight: 600; border-radius: var(--btn-radius); transition: var(--transition); border: none; cursor: pointer; font-family: 'Play', sans-serif; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(228, 37, 40, 0.3); }
.btn-secondary { background: transparent; border: 2px solid var(--nav-red); color: var(--nav-red); }
.btn-secondary:hover { background: var(--nav-red); color: white; }
.btn-block { width: 100%; }

/* ==================== ВЕРТИКАЛЬНАЯ КАРУСЕЛЬ ==================== */
.hero-sidebar-vertical { display: flex; flex-direction: column; background: transparent; }
.carousel-vertical-wrapper { display: flex; flex-direction: column; background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.carousel-vertical-container { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; overflow: hidden; cursor: pointer; }
.carousel-vertical-slides { position: relative; width: 100%; height: 100%; }
.carousel-vertical-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; display: block; }
.carousel-vertical-slide.active { opacity: 1; }
.carousel-vertical-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==================== SECTIONS ==================== */
.section { padding: 90px 0; }
.section-header { text-align: left; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--at-dark); margin-bottom: 10px; }
.section-header p { color: #666; }

/* ==================== FROSTED GLASS ==================== */
.frosted-glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.service-card { padding: 40px 32px; border-radius: var(--card-radius); transition: var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); background: rgba(255, 255, 255, 0.85); }
.service-card .icon { font-size: 2.8rem; margin-bottom: 24px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--at-dark); }

/* Pricing */
.pricing-section { background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf0 100%); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.price-card { border-radius: var(--card-radius); padding: 40px 30px; text-align: center; position: relative; transition: var(--transition); }
.price-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.85); }
.price-card.popular { border: 2px solid var(--nav-red); background: rgba(255, 255, 255, 0.8); }
.price-card.popular::before { content: "EMPFOHLEN"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--nav-red); color: white; padding: 6px 24px; border-radius: var(--btn-radius); font-size: 0.8rem; font-weight: 600; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--at-dark); }
.price { font-size: 2.5rem; color: var(--nav-red); margin: 16px 0; font-weight: 700; }
.price-card ul { text-align: left; margin: 28px 0; line-height: 2.2; list-style: none; }

/* Process */
.process-container { position: relative; }
.process-steps-left { margin-left: 33.33%; max-width: 600px; }
.process-step { display: flex; gap: 24px; margin-bottom: 40px; }
.step-number { font-size: 3rem; font-weight: 700; color: var(--nav-red); min-width: 70px; }
.process-step h3 { font-size: 1.3rem; margin-bottom: 6px; color: var(--at-dark); }

/* Cooperation Terms */
.cooperation-terms { margin-top: 70px; padding-top: 40px; border-top: 1px solid #eee; }
.terms-title { font-size: 2rem; color: var(--at-dark); }
.terms-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.highlight-card { background: white; border-radius: var(--card-radius); padding: 32px 24px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; transition: var(--transition); }
.highlight-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.highlight-card i { font-size: 2.5rem; color: var(--nav-red); margin-bottom: 20px; }
.highlight-card h4 { font-size: 1.2rem; margin-bottom: 12px; color: var(--at-dark); }

/* Legal Info */
.legal-info { background: #fafafa; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.impressum-content { margin-top: 24px; line-height: 1.9; }
.disclaimer-box { background: white; padding: 40px; border-top: 5px solid var(--nav-red); border-radius: var(--card-radius); }
.disclaimer-box h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--at-dark); }

.legal-buttons-centered { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.legal-btn { display: inline-block; padding: 14px 32px; background: #d0d0d0; color: #1a1a1a; text-decoration: none; border-radius: var(--btn-radius); font-weight: 500; transition: var(--transition); border: 2px solid transparent; cursor: pointer; }
.legal-btn:hover { background: white; color: var(--nav-red); border-color: var(--nav-red); }

/* Contact */
.contact-form { max-width: 700px; margin: 0 0 0 0; padding: 48px 40px; border-radius: var(--card-radius); }
@media (min-width: 993px) { .contact-form { margin-left: 4cm; } }
.contact-form h2 { text-align: left; margin-bottom: 36px; color: var(--at-dark); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; font-family: 'Play', sans-serif; font-size: 1rem; transition: var(--transition); background: rgba(255,255,255,0.8); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--nav-red); box-shadow: 0 0 0 3px rgba(228, 37, 40, 0.1); background: white; }
.terms-checkbox { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 20px; }
.terms-checkbox input { margin-top: 4px; }
.terms-checkbox label { font-size: 0.9rem; color: #444; }

/* ==================== BLOG ==================== */
.blog-section { background: #f9f9f9; }
.blog-grid { display: flex; flex-direction: column; gap: 40px; margin-bottom: 50px; }

.blog-article { background: white; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: var(--transition); }
.blog-article:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

.article-layout-left,
.article-layout-right,
.article-layout-top,
.article-layout-bottom,
.article-layout-zigzag { display: grid; gap: 0; }

.article-layout-left { grid-template-columns: 1fr 1fr; }
.article-layout-right { grid-template-columns: 1fr 1fr; direction: rtl; }
.article-layout-right .article-content { direction: ltr; }
.article-layout-top { grid-template-columns: 1fr; }
.article-layout-bottom { grid-template-columns: 1fr; }
.article-layout-zigzag { grid-template-columns: 1.2fr 0.8fr; }

.article-image { height: 100%; min-height: 280px; }
.article-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-content { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.article-category { display: inline-block; background: var(--nav-red); color: white; padding: 4px 16px; border-radius: var(--btn-radius); font-size: 0.8rem; margin-bottom: 16px; align-self: flex-start; }
.article-content h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--at-dark); }
.article-content h3 a { color: inherit; text-decoration: none; transition: var(--transition); }
.article-content h3 a:hover { color: var(--nav-red); }
.article-meta { display: flex; gap: 20px; color: #888; font-size: 0.85rem; margin-bottom: 16px; }
.article-excerpt { color: #555; margin-bottom: 20px; line-height: 1.7; }
.read-more { color: var(--nav-red); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.read-more:hover { gap: 12px; }

.blog-loader { text-align: center; padding: 40px; }
.loader-spinner { width: 40px; height: 40px; border: 3px solid #f0f0f0; border-top-color: var(--nav-red); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

.blog-load-more-wrapper { text-align: center; margin: 30px 0; }

.blog-pagination { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.pagination-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #ddd; background: white; border-radius: 12px; cursor: pointer; font-family: 'Play', sans-serif; font-weight: 500; transition: var(--transition); text-decoration: none; color: #333; }
.pagination-btn:hover, .pagination-btn.active { background: var(--nav-red); color: white; border-color: var(--nav-red); }
.pagination-dots { display: flex; align-items: center; padding: 0 8px; color: #888; }

/* ==================== ARTICLE PAGE ==================== */
.article-header { margin-bottom: 40px; }
.article-header h1 { font-size: 2.5rem; color: var(--at-dark); margin: 20px 0; }
.article-hero-image { width: 100%; border-radius: var(--card-radius); margin: 24px 0; max-height: 500px; object-fit: cover; }
.article-body { max-width: 800px; line-height: 1.9; font-size: 1.05rem; }
.article-body h2 { font-size: 1.8rem; color: var(--at-dark); margin: 40px 0 16px; }
.article-body h3 { font-size: 1.4rem; margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 16px 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--at-dark); }
.article-footer { margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee; }

/* ==================== LEGAL PAGE ==================== */
.legal-document { max-width: 800px; }
.legal-document h1 { font-size: 2.5rem; color: var(--at-dark); margin-bottom: 30px; }
.legal-pdf-notice { background: #f9f9f9; padding: 32px; border-radius: var(--card-radius); text-align: center; margin-bottom: 40px; }
.legal-pdf-notice p { margin-bottom: 20px; }
.legal-content h2 { font-size: 1.6rem; color: var(--at-dark); margin: 36px 0 14px; }
.legal-content h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.legal-content p { margin-bottom: 16px; line-height: 1.8; }
.legal-content strong { color: var(--at-dark); }

/* ==================== SERVICE DETAIL PAGE ==================== */
.service-detail { margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid #eee; }
.service-detail:last-child { border-bottom: none; }
.service-detail-icon { font-size: 3rem; margin-bottom: 20px; }
.service-detail h2 { font-size: 1.8rem; color: var(--at-dark); margin-bottom: 12px; }
.service-features { list-style: none; margin: 20px 0; }
.service-features li { padding: 8px 0; }
.service-features li i { color: #4caf50; margin-right: 10px; }

.process-steps-vertical { margin: 30px 0; }
.process-step-detail { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.step-number-detail { background: var(--nav-red); color: white; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

.faq-section { margin-top: 50px; }
.faq-list { margin: 24px 0; }
.faq-item { margin-bottom: 12px; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 24px; cursor: pointer; font-weight: 500; background: #fafafa; }
.faq-item p { padding: 0 24px 18px; color: #555; }

.page-cta { margin-top: 50px; text-align: center; }

/* ==================== GRAZ SECTION ==================== */
.graz-section { background: linear-gradient(to bottom, #fff, #f0f0f0); }
.graz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.graz-map h3, .graz-photo h3 { font-size: 1.5rem; margin-bottom: 24px; color: var(--at-dark); text-align: left; }
.map-container { position: relative; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.map-container img { width: 100%; height: 300px; object-fit: cover; display: block; }
.map-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); padding: 30px 20px 20px; color: white; display: flex; align-items: center; gap: 12px; }
.map-overlay i { color: var(--nav-red); font-size: 1.5rem; }
.photo-container { border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.photo-container img { width: 100%; height: 300px; object-fit: cover; display: block; }

/* ==================== FOOTER ==================== */
footer { background: #ECECEC; color: #1a1a1a; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-logo { font-size: 1.4rem; font-weight: 700; display: block; margin-bottom: 16px; color: var(--at-dark); }
footer p { color: #444; line-height: 1.8; }
footer p i { width: 20px; margin-right: 8px; color: var(--nav-red); }
footer a { color: #1a1a1a; text-decoration: none; transition: var(--transition); }
footer a:hover { color: var(--nav-red); }
footer h4 { color: #555; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 18px; }
.footer-copyright { text-align: center; padding-top: 40px; border-top: 1px solid #ccc; color: #555; font-size: 0.85rem; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    :root { --container-padding: 48px; }
}

@media (max-width: 992px) {
    :root { --container-padding: 32px; }
    .nav-links-desktop { display: none; }
    .hamburger { display: block; }
    .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-content { text-align: center; }
    .hero-content p { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-sidebar-vertical { max-width: 400px; margin: 0 auto; }
    .process-steps-left { margin-left: 0; max-width: 100%; }
    .legal-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .terms-highlights { grid-template-columns: 1fr; }
    .graz-grid { grid-template-columns: 1fr; }
    .article-layout-left,
    .article-layout-right,
    .article-layout-zigzag { grid-template-columns: 1fr; }
    .article-layout-right { direction: ltr; }
    .contact-form { margin-left: 0 !important; }
    .section-header { text-align: center; }
}

@media (max-width: 768px) {
    .hero-sidebar-vertical { max-width: 100%; }
    .carousel-vertical-container { aspect-ratio: 9 / 19; }
}

@media (max-width: 576px) {
    :root { --container-padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .hero-content h1 { font-size: 2.4rem; }
}
