:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --accent: #FF5722;
    --accent-hover: #F4511E;
    --secondary: #10B981;
    --bg-main: #FFFFFF;
    --bg-alt: #F9FAFB;
    --text-main: #111827;
    --text-muted: #4B5563;
    --border-color: #E5E7EB;
    --card-bg: #FFFFFF;
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

[data-theme="dark"] {
    --primary: #6366F1;
    --primary-hover: #818CF8;
    --accent: #FF5722;
    --accent-hover: #F4511E;
    --secondary: #10B981;
    --bg-main: #0F172A;
    --bg-alt: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #CBD5E1; /* Улучшен контраст для доступности */
    --border-color: #334155;
    --card-bg: #1E293B;
    --header-bg: rgba(15, 23, 42, 0.95);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; transition: background-color 0.3s, color 0.3s; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }

h1, h2, h3, h4 { color: var(--text-main); line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-weight: 600; border-radius: var(--radius); transition: all 0.2s; cursor: pointer; border: 2px solid transparent; text-align: center; line-height: 1.2; min-height: 44px; /* A11y: min touch target */ }
.btn i { font-size: 1.1em; line-height: 1; display: flex; align-items: center; }
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); }
.btn-accent { background-color: var(--accent); color: #fff; }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background-color: transparent; border-color: var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-main); }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.05em; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-full { width: 100%; }
.btn-tg { background-color: #2AABEE; color: white; border-color: #2AABEE; }
.btn-tg:hover { background-color: #229ED9; border-color: #229ED9; }
.btn-wa { background-color: #25D366; color: white; border-color: #25D366; }
.btn-wa:hover { background-color: #1DA851; border-color: #1DA851; }
.btn-max { background: radial-gradient(136.12% 140.74% at 99.77% 99.04%, #8d28c8 0%, #7c42fa 20%, #007aff 80%, #609ceb 100%); color: white; border: none; }
.btn-max:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background-color: var(--bg-alt); transition: 0.2s; color: var(--text-main); }
.btn-icon:hover { background-color: var(--primary); color: white; }
.btn-icon.tg { color: #2AABEE; }
.btn-icon.wa { color: #25D366; }
.btn-icon.max { background: radial-gradient(136.12% 140.74% at 99.77% 99.04%, #8d28c8 0%, #7c42fa 20%, #007aff 80%, #609ceb 100%); color: white; border: none; }
.btn-icon.tg:hover { background-color: #2AABEE; color: white; }
.btn-icon.wa:hover { background-color: #25D366; color: white; }
.btn-icon.max:hover { filter: brightness(1.1); color: white; }

/* Header */
.header { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--header-bg); backdrop-filter: blur(12px); z-index: 1000; border-bottom: 1px solid var(--border-color); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.6rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; text-transform: uppercase; padding: 0.5rem 0; perspective: 1000px; }
.logo-icon { width: 64px; height: auto; color: var(--primary); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); filter: drop-shadow(0 0 0 rgba(255, 107, 0, 0)); border-radius: 0; }

/* Logo Animations */
.animated-logo { animation: logoFadeScale 0.8s ease-out forwards; }
.logo-white { 
    fill: currentColor; 
    animation: logoPartIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both; 
    transform-origin: center; 
}
.logo-orange { 
    animation: logoPartIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both; 
    transform-origin: center; 
}
.logo-accent { 
    fill: #FF6B00; /* Return orange hexagon */
    animation: logoPartIn 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both; 
    transform-origin: center; 
}

@keyframes logoFadeScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes logoPartIn {
    from { transform: scale(0) rotate(-10deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

/* Animations On Hover */
.logo:hover .logo-icon { transform: scale(1.05) translateY(-2px); }
.logo:hover .logo-white { transform: translateY(-1px); transition: transform 0.4s ease; }
.logo:hover .logo-orange, .logo:hover .logo-accent { animation: logoPulse 2s infinite ease-in-out; filter: brightness(1.1) saturate(1.2); }

@keyframes logoPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); filter: brightness(1.1) saturate(1.2); }
    100% { transform: scale(1); }
}

.nav-menu { display: flex; gap: 2rem; }
.nav-menu a { font-weight: 700; transition: color 0.2s; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.5rem 0; }
.nav-menu a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-weight: 700; display: none; font-size: 0.95rem; }
.theme-toggle { background: none; border: none; color: var(--text-main); font-size: 1.25rem; cursor: pointer; padding: 0.75rem; border-radius: 50%; transition: background-color 0.2s; display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { background-color: var(--bg-alt); }
.mobile-menu-btn { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.75rem; }
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background-color: var(--text-main); transition: 0.3s; border-radius: 2px; }

.header-cta .mobile-icon { display: none; font-size: 1.25rem; }

/* Hero */
.hero { padding: 140px 0 100px; min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background-color: var(--bg-main); z-index: 1; }
.hero-bg-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; pointer-events: none; transition: transform 0.1s linear; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; animation: floatBg 20s infinite ease-in-out alternate; }
.shape-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(79, 70, 229, 0.4); animation-delay: 0s; }
.shape-2 { bottom: -20%; right: -10%; width: 600px; height: 600px; background: rgba(255, 87, 34, 0.2); animation-delay: -5s; }
.shape-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: rgba(16, 185, 129, 0.2); animation-delay: -10s; }

@keyframes floatBg {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.9); }
}

.hero-container { display: flex; align-items: center; gap: 4rem; position: relative; z-index: 1; width: 100%; }
.hero-content { flex: 1.1; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--card-bg); padding: 0.5rem 1.25rem; border-radius: 30px; font-size: 0.875rem; font-weight: 600; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom: 2rem; backdrop-filter: blur(10px); }
.badge-icon { color: #FBBF24; font-size: 1.1rem; }
.badge-text { color: var(--text-main); }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.5rem; line-height: 1.1; text-transform: uppercase; text-align: left; }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-block; }
.hero-desc { color: var(--text-muted); font-size: 1.25rem; margin-bottom: 3rem; max-width: 600px; line-height: 1.6; font-weight: 500; text-align: left; }
.hero-buttons { display: flex; gap: 1.5rem; margin-bottom: 3rem; flex-wrap: wrap; justify-content: flex-start; }
.btn-glow { box-shadow: 0 0 20px rgba(255, 87, 34, 0.4); }
.btn-glow:hover { box-shadow: 0 0 30px rgba(255, 87, 34, 0.6); }
.hero-trust-text { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.95rem; font-weight: 600; }
.hero-trust-text i { color: var(--secondary); font-size: 1.2rem; }

.hero-stats-row { display: none; } /* Скрыто, перенесено в визуальный блок */

.hero-visuals { flex: 0.9; position: relative; display: none; }
@media (min-width: 992px) {
    .hero-visuals { display: flex; align-items: center; justify-content: center; }
    .hero-image-decor { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; padding-bottom: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--primary), transparent); opacity: 0.1; z-index: -1; animation: pulseDecor 4s infinite alternate; }
    
    .diagnostic-card { background: var(--card-bg); padding: 2rem; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); z-index: 2; backdrop-filter: blur(10px); width: 100%; max-width: 420px; animation: floatUI 6s infinite ease-in-out alternate; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
    .diagnostic-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25); animation-play-state: paused; border-color: var(--primary); }
    .diag-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; font-size: 1.25rem; font-weight: 700; color: var(--text-main); border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
    .diag-header i { color: var(--primary); font-size: 1.5rem; }
    .diag-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
    .diag-list li { display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; color: var(--text-main); font-weight: 500; }
    .diag-list li.checked i { color: var(--secondary); font-size: 1.2rem; }
    .diag-list li.loading i { color: var(--accent); font-size: 1.2rem; }
    
    .diag-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
    .diag-stat { display: flex; flex-direction: column; }
    .diag-stat strong { font-size: 1.25rem; color: var(--text-main); line-height: 1.2; }
    .diag-stat span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
}

@keyframes floatUI {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes pulseDecor {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.15; }
}
@keyframes floatCard {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

/* Animations */
.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; opacity: 0; transform: translateY(30px); }
.animate-fade-left { animation: fadeLeft 1s ease-out forwards; opacity: 0; transform: translateX(40px); }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { to { opacity: 1; transform: translateX(0); } }

/* Services */
.services { padding: 5rem 0; background-color: var(--bg-main); border-bottom: 1px solid var(--border-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.service-card { background-color: var(--card-bg); padding: 2rem; border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; flex-direction: column; transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.icon-box { width: 56px; height: 56px; background: rgba(79, 70, 229, 0.1); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; margin-bottom: 1.5rem; }
.price-tag { font-weight: 700; color: var(--text-main); font-size: 1.25rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--border-color); }

/* Accordion */
.price-accordion-container { max-width: 800px; margin: 0 auto; }
.price-accordion-container h3 { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; }
.accordion { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item { border: 1px solid var(--border-color); border-radius: var(--radius); background-color: var(--card-bg); overflow: hidden; }
.accordion-header { width: 100%; text-align: left; padding: 1.25rem 1.5rem; background: none; border: none; font-size: 1.125rem; font-weight: 600; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.2s; min-height: 56px; }
.accordion-header:hover { background-color: var(--bg-alt); }
.accordion-header i { transition: transform 0.3s; color: var(--text-muted); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: var(--bg-main); }
.accordion-body ul { padding: 1.5rem; }
.accordion-body li { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.95rem; }
.accordion-body li:last-child { border-bottom: none; }
.accordion-body li span:last-child { font-weight: 600; color: var(--text-main); white-space: nowrap; margin-left: 1rem; text-align: right; }

/* Estimate Section */
.estimate-section { padding: 5rem 0; background-color: var(--bg-alt); border-bottom: 1px solid var(--border-color); }
.estimate-card { background-color: var(--primary); border-radius: 12px; display: flex; overflow: hidden; box-shadow: var(--shadow-lg); color: white; }
.estimate-content { padding: 3rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.estimate-content h2 { color: white; margin-bottom: 1rem; }
.estimate-content p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; font-size: 1.1rem; }
.estimate-steps { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; }
.step { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.step span { width: 24px; height: 24px; background: white; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.estimate-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.estimate-buttons .btn { flex: 1; min-width: 240px; }
.estimate-image { flex: 0.8; display: none; }
@media (min-width: 900px) {
    .estimate-image { display: block; }
    .estimate-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
}

.estimate-form-alternative { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed rgba(255,255,255,0.2); }
.estimate-form-alternative p { font-size: 0.95rem; margin-bottom: 1rem; color: rgba(255,255,255,0.9); }
.estimate-form-alternative .mini-form input { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: white; }
.estimate-form-alternative .mini-form input::placeholder { color: rgba(255,255,255,0.6); }
.estimate-form-alternative .mini-form input:focus { background: rgba(255,255,255,0.2); border-color: white; }
.estimate-form-alternative .btn-primary { background-color: white; color: var(--primary); }
.estimate-form-alternative .btn-primary:hover { background-color: var(--bg-alt); }

/* Trust */
.trust-section { padding: 5rem 0; background-color: var(--bg-main); border-bottom: 1px solid var(--border-color); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.trust-item { text-align: center; }
.trust-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.trust-item h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.trust-item p { color: var(--text-muted); font-size: 0.95rem; }

.works-placeholder { width: 100%; height: 200px; background-color: var(--bg-alt); border: 2px dashed var(--border-color); border-radius: var(--radius); margin-bottom: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); gap: 0.5rem; }
.works-placeholder i { font-size: 2rem; opacity: 0.5; }

.reviews-cta { text-align: center; padding: 2rem; background-color: var(--bg-alt); border-radius: 12px; }
.accent-link { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* Contacts & FAQ */
.contacts-faq { padding: 5rem 0; background-color: var(--bg-alt); }
.contacts-faq-wrapper { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 992px) {
    .contacts-faq-wrapper { grid-template-columns: 1fr 1fr; }
}
.faq-container h2, .contacts-info-container h2 { margin-bottom: 2rem; }
.faq-container .accordion-body p { padding: 1.5rem; margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.mini-form-card { background: var(--card-bg); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.mini-form-card p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.mini-form { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; }
.mini-form input { flex: 1; min-width: 200px; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius); background-color: var(--bg-main); color: var(--text-main); font-family: inherit; font-size: 1rem; outline: none; transition: border-color 0.2s; min-height: 44px; }
.mini-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1); }
.mini-form button { white-space: nowrap; }

.form-success-msg { color: var(--secondary); font-weight: 600; margin-top: 1rem; padding: 0.75rem; background: rgba(16, 185, 129, 0.1); border-radius: var(--radius); text-align: center; }

.info-items { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon { width: 44px; height: 44px; background: rgba(79, 70, 229, 0.1); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.info-item h4 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.info-item p { color: var(--text-muted); font-size: 0.95rem; }
.phone-link { color: var(--text-main); font-weight: 700; font-size: 1.1rem; transition: color 0.2s; }
.phone-link:hover { color: var(--primary); }

.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); background: var(--card-bg); height: 300px; }

/* Footer */
.footer { background-color: #0F172A; color: #F8FAFC; padding-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { color: #CBD5E1; margin-top: 1rem; font-size: 0.95rem; max-width: 300px; }
.footer h4 { color: #FFFFFF; font-size: 1.1rem; margin-bottom: 1.25rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #CBD5E1; transition: color 0.2s; font-size: 0.95rem; }
.footer-links a:hover { color: white; }
.footer-contacts p { color: #CBD5E1; margin-bottom: 0.75rem; font-size: 0.95rem; }
.footer-contacts a { color: white; font-weight: 500; }
.footer-bottom { border-top: 1px solid #1E293B; padding: 1.5rem 0; text-align: center; color: #64748B; font-size: 0.875rem; }

.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background-color: var(--primary); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 99; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--primary-hover); transform: translateY(-2px); }

/* Responsive Adjustments */
@media (min-width: 768px) {
    .header-phone { display: block; }
}

@media (max-width: 767px) {
    .header-inner { height: 60px; }
    .logo { font-size: 1.25rem; gap: 0.5rem; }
    .logo-icon { width: 56px; height: auto; }
    .header-actions { gap: 0.5rem; }
    
    .header-cta .desktop-text { display: none; }
    .header-cta .mobile-icon { display: block; }
    .header-cta { padding: 0; width: 40px; height: 40px; border-radius: 50%; }

    .nav-menu { display: none; position: absolute; top: 60px; left: 0; width: 100%; background-color: var(--header-bg); flex-direction: column; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-md); }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: flex; }

    .hero { padding: 100px 0 60px; }
    .hero-container { flex-direction: column; text-align: left; gap: 2rem; width: 100%; }
    .hero-content { flex: 1; width: 100%; align-items: flex-start; }
    .hero-title { font-size: 2.25rem; word-break: break-word; hyphens: auto; }
    .hero-desc { font-size: 1.1rem; margin-bottom: 2rem; width: 100%; }
    .hero-buttons { gap: 1rem; width: 100%; }
    
    .estimate-content { padding: 2rem; }
    .estimate-steps { flex-direction: column; gap: 1rem; }
    .btn-large { padding: 0.875rem 1.5rem; font-size: 1rem; width: 100%; }

    /* Переработка блока услуг для мобильных */
    .services { padding: 2.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header p { font-size: 0.95rem; }

    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        overflow-x: visible;
    }

    .service-card {
        display: grid;
        grid-template-areas: 
            "icon title price"
            "icon desc price";
        grid-template-columns: 44px 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 12px;
        padding: 12px 16px;
        border-radius: 12px;
        min-height: 70px;
        text-align: left;
    }

    .service-card:active {
        transform: scale(0.98);
        background-color: var(--bg-alt);
    }

    .icon-box {
        grid-area: icon;
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .service-card h3 {
        grid-area: title;
        margin-bottom: 0;
        font-size: 1rem;
        text-align: left;
        align-self: end;
    }

    .service-card p {
        grid-area: desc;
        margin-bottom: 0;
        font-size: 0.8rem;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        align-self: start;
        color: var(--text-muted);
    }

    .price-tag {
        grid-area: price;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        font-size: 1rem;
        color: var(--primary);
        font-weight: 700;
        padding-left: 10px;
        white-space: nowrap;
    }

    .service-card.highlight {
        background: rgba(79, 70, 229, 0.04);
        border: 1px solid rgba(79, 70, 229, 0.15);
    }
    
    .service-card.highlight .price-tag {
        color: var(--secondary);
    }

    .price-accordion-container h3 { font-size: 1.25rem; margin-bottom: 1.5rem; }
    .accordion-header { padding: 1rem 1.25rem; font-size: 1rem; }
    .accordion-body ul, .faq-container .accordion-body p { padding: 1.25rem; }

    /* Touch UI Improvements (A11y) */
    .btn, .btn-large, .btn-sm, .mini-form button {
        min-height: 48px !important;
        min-width: 48px;
        padding: 12px 24px !important;
    }

    .header-cta {
        width: 48px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }

    .mobile-menu-btn, .theme-toggle {
        width: 48px;
        height: 48px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu a {
        padding: 16px 0;
        font-size: 16px;
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.85rem !important;
        word-break: break-word;
    }

    .service-card {
        grid-template-columns: 40px 1fr auto !important;
        padding: 10px !important;
        column-gap: 8px !important;
    }
    
    .service-card p {
        display: none;
    }

    .price-tag {
        font-size: 0.9rem;
        padding-left: 5px;
    }
    
    .mini-form {
        flex-direction: column;
        gap: 12px;
    }
    .mini-form input {
        width: 100%;
        height: 48px;
        font-size: 16px !important;
    }
}
