/* Font Face Declarations */
@font-face {
    font-family: 'TT Ramillas';
    src: url('шрифты/TT Ramillas Trial Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('шрифты/TT Ramillas Trial Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('шрифты/TT Ramillas Trial Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('шрифты/TT Ramillas Trial Bold Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('шрифты/TT Ramillas Trial Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('шрифты/TT Ramillas Trial Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-video {
        animation: none !important;
        filter: blur(0) !important;
        -webkit-filter: blur(0) !important;
    }
    
    .hero-main-title,
    .hero-bureau-subtitle,
    .hero-services-buttons,
    .hero-service-btn {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
}

:root {
    --primary-color: #475569;
    --primary-dark: #1e293b;
    --primary-light: #64748b;
    --secondary-color: #94a3b8;
    --accent-color: #cbd5e1;
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #f1f5f9;
    --bg-lighter: #e2e8f0;
    --bg-white: #ffffff;
    --border-color: #cbd5e1;
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
}

body {
    font-family: 'TT Ramillas', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contact page uses standard container width */
#contact .container {
    max-width: 1200px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

/* Header on non-home pages */
.header.not-home {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.header.not-home .auth-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.header.not-home .auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.header.not-home .lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.header.not-home .lang-btn.active {
    background: white;
    color: var(--primary-dark);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    gap: 2rem;
}

.header.not-home .header-content {
    padding: 1rem 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    font-family: 'TT Ramillas', sans-serif;
}

.header.not-home .header-logo {
    color: white;
}

/* Hide logo and nav on home page */
.header:not(.not-home) .header-logo {
    display: none;
}

.header:not(.not-home) .header-nav {
    display: none;
}

/* Hide bureau text completely */
.header-bureau {
    display: none !important;
}

/* Center header-right on home page */
.header:not(.not-home) .header-content {
    justify-content: flex-end;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s ease;
    font-family: 'TT Ramillas', sans-serif;
    position: relative;
}

.header-nav-list a:hover {
    opacity: 0.8;
}

.header-nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.header-nav-list a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    justify-content: flex-end;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* Auth Buttons */
.auth-btn {
    padding: 0.5rem 1rem;
    border: 1px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Smaller auth buttons on home page */
.header:not(.not-home) .auth-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-btn:active,
.auth-btn.active {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0;
    background: transparent;
    padding: 0;
    border-radius: 12px;
    border: 1px solid white;
    overflow: hidden;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-right: 1px solid white;
    background: transparent;
    color: white;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    position: relative;
    flex: 1;
}

/* Smaller language switcher on home page */
.header:not(.not-home) .lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
}

.header:not(.not-home) .language-switcher {
    border-width: 1px;
}

.lang-btn:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.lang-btn:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-right: none;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    margin-top: 0;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}


.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    filter: blur(6px);
    -webkit-filter: blur(6px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* Hero Content */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: white;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-family: 'TT Ramillas', sans-serif;
}

.hero-main-title {
    font-size: 4.5rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'TT Ramillas', 'Georgia', 'Times New Roman', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-bureau-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'TT Ramillas', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: none;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.15s forwards;
}

.hero-description {
    position: absolute;
    left: 2rem;
    bottom: 140px;
    max-width: 500px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: white;
    text-align: left;
    font-family: 'TT Ramillas', sans-serif;
}

/* Hero Services Buttons */
.hero-services-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    margin-bottom: 6rem;
    max-width: 1200px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.hero-service-btn {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 3px solid white;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'TT Ramillas', sans-serif;
    font-size: 1.25rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.hero-service-btn:nth-child(1) {
    animation-delay: 0.4s;
}

.hero-service-btn:nth-child(2) {
    animation-delay: 0.45s;
}

.hero-service-btn:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-service-btn:nth-child(4) {
    animation-delay: 0.55s;
}

.hero-service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.hero-service-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: white;
}

.hero-service-btn:active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.25),
        0 3px 6px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Bottom Navigation */
.hero-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: #2E4A6B;
    padding: 0.7rem 0;
    width: 100%;
}

.hero-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-nav-list a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
    font-family: 'TT Ramillas', 'Georgia', 'Times New Roman', serif;
}

.hero-nav-list a:hover {
    opacity: 0.8;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 10px 10px -5px rgba(15, 23, 42, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: white;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

/* Hide all sections by default - JavaScript will show the correct one based on URL hash */
section {
    display: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Service Page Section */
.service-page {
    background: var(--bg-white);
    min-height: 100vh;
    padding-top: 100px;
}

.service-page-content {
    max-width: 1400px;
    margin: 0 auto;
    transform: scale(0.9);
    transform-origin: center top;
}

.service-page-title {
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'TT Ramillas', 'Georgia', 'Times New Roman', serif;
}

.service-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.service-left-column {
    display: flex;
    flex-direction: column;
}

.service-right-column {
    display: flex;
    flex-direction: column;
}

.service-quote {
    position: relative;
    margin-bottom: 1.75rem;
    padding: 1.75rem 2rem;
    text-align: center;
}

.service-page-intro {
    font-size: 1.5rem;
    color: #0a0f1a;
    text-align: center;
    margin: 0;
    line-height: 1.8;
    font-style: italic;
    font-family: 'TT Ramillas', 'Georgia', 'Times New Roman', serif;
    position: relative;
    padding: 0 1.5rem;
}

.service-page-intro::before {
    content: '"';
    font-size: 5rem;
    line-height: 1;
    position: absolute;
    left: -1rem;
    top: -1rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: 'TT Ramillas', 'Georgia', 'Times New Roman', serif;
}

.service-page-intro::after {
    content: '"';
    font-size: 5rem;
    line-height: 1;
    position: absolute;
    right: -1rem;
    bottom: -2rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: 'TT Ramillas', 'Georgia', 'Times New Roman', serif;
}

.quote-author {
    display: block;
    text-align: right;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-light);
    font-style: normal;
    font-family: 'TT Ramillas', sans-serif;
    font-weight: 500;
}
.service-description h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    margin-top: 2.5rem;
    font-family: 'TT Ramillas', sans-serif;
}

.service-features-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-family: 'TT Ramillas', sans-serif;
    text-align: left;
}

.service-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-family: 'TT Ramillas', sans-serif;
}

.service-description p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Service Features Grid */
.service-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0;
}

.service-feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    aspect-ratio: 9 / 12;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(71, 85, 105, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.service-feature-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    font-family: 'TT Ramillas', sans-serif;
    line-height: 1.4;
}

.feature-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.service-feature-card:hover .feature-card-hover {
    opacity: 1;
    visibility: visible;
}

.service-feature-card:hover h4 {
    opacity: 0;
    visibility: hidden;
}

.feature-card-hover p {
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.workflow-section {
    margin: 4rem 0;
    padding: 0 0 3rem 0;
}

.workflow-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 3rem 0;
    padding: 0;
    text-align: center;
    font-family: 'TT Ramillas', sans-serif;
}

.workflow-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 1400px;
    height: 350px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 1rem 1rem;
    gap: 0.25rem;
    position: relative;
    margin-top: 0;
}

.workflow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 140px;
    position: relative;
    z-index: 2;
    min-height: 350px;
    padding: 0.5rem 0;
}


.workflow-hexagon {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.workflow-hexagon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.workflow-hexagon-1::before {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.workflow-hexagon-2::before {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.workflow-hexagon-3::before {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.workflow-hexagon-4::before {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.workflow-hexagon-5::before {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.workflow-hexagon-6::before {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.workflow-hexagon-7::before {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.workflow-item:hover .workflow-hexagon::before {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.workflow-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    position: relative;
    z-index: 4;
    display: block;
    filter: brightness(0) invert(1);
    margin: 0 auto;
}

.workflow-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-family: 'TT Ramillas', sans-serif;
    text-align: center;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workflow-description {
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 180px;
    height: 95px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.workflow-description p {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.workflow-number {
    position: absolute;
    top: -12px;
    left: 8px;
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'TT Ramillas', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.workflow-description-top {
    order: 1;
    margin-bottom: 0.5rem;
}

.workflow-description-bottom {
    order: 5;
    margin-top: 0.5rem;
}


.workflow-hexagon {
    order: 3;
}

.workflow-title {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.workflow-item:nth-child(odd) .workflow-title {
    order: 3;
    position: relative;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    z-index: 5;
}

.workflow-item:nth-child(even) .workflow-title {
    order: 1;
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    z-index: 5;
}

.workflow-item:nth-child(odd) .workflow-hexagon {
    order: 2;
}

.workflow-item:nth-child(even) .workflow-hexagon {
    order: 2;
}

.workflow-item:nth-child(odd) .workflow-description-top {
    order: 1;
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
}

.workflow-item:nth-child(even) .workflow-description-bottom {
    order: 4;
    position: relative;
    margin-top: auto;
    padding-top: 1rem;
}

.workflow-connector {
    flex: 0 0 25px;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--primary-light) 0px,
        var(--primary-light) 8px,
        transparent 8px,
        transparent 12px,
        var(--primary-light) 12px,
        var(--primary-light) 13px,
        transparent 13px,
        transparent 17px,
        var(--primary-light) 17px,
        var(--primary-light) 25px,
        transparent 25px,
        transparent 37px
    );
    margin: 0 0.25rem;
    align-self: center;
    z-index: 1;
}

@media (max-width: 1200px) {
    .workflow-timeline {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .workflow-connector {
        display: none;
    }
    
    .workflow-item {
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .workflow-timeline {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .workflow-connector {
        display: block;
        width: 2px;
        height: 40px;
        background: repeating-linear-gradient(
            to bottom,
            var(--primary-light) 0px,
            var(--primary-light) 8px,
            transparent 8px,
            transparent 16px
        );
        top: 0;
        margin: 0;
    }
    
    .workflow-description-top,
    .workflow-description-bottom {
        order: 3;
    }
    
    .workflow-step-number-top,
    .workflow-step-number-bottom {
        order: 2;
    }
    
    .workflow-hexagon {
        order: 3;
    }
    
    .workflow-title {
        order: 4;
    }
}

/* Features Section */
.features-container {
    position: relative;
    /* Немного шире 100vw, чтобы темный фон гарантированно доходил до краев
       с учетом общего масштабирования body */
    width: 120vw;
    margin: 3rem 0;
    padding: 1.5rem 0 4rem 0;
    background: var(--primary-dark);
    border-radius: 0;
    margin-left: calc(-60vw + 50%);
    margin-right: calc(-60vw + 50%);
    box-shadow: 
        inset 0 40px 100px rgba(0, 0, 0, 0.6),
        inset 0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    position: relative;
}

.features-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 15%,
        transparent 85%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.features-title {
    text-align: center;
    margin: 0 0 2.5rem 0;
    padding-top: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-white);
    font-family: 'TT Ramillas', sans-serif;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: flex;
    gap: 0;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.feature-card {
    position: relative;
    width: 240px;
    aspect-ratio: 9 / 16;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.75rem 1.75rem 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 0;
    margin-left: -50px;
}

.feature-card:first-child {
    margin-left: 0;
}

.feature-card:nth-child(1) {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-lighter) 100%);
    z-index: 1;
    transform: scale(0.9) perspective(1000px) rotateY(20deg);
}

.feature-card:nth-child(2) {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    z-index: 2;
    transform: scale(0.9) perspective(1000px) rotateY(16deg);
}

.feature-card:nth-child(3) {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-lighter) 100%);
    z-index: 3;
    transform: scale(0.9) perspective(1000px) rotateY(8deg);
}

.feature-card-center {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-lighter) 100%) !important;
    z-index: 7 !important;
    transform: scale(0.9) perspective(1000px) rotateY(0deg) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.feature-card:nth-child(4) {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    z-index: 5;
    transform: scale(0.9) perspective(1000px) rotateY(-8deg);
    width: 240px;
    aspect-ratio: 9 / 16;
}

.feature-card:nth-child(5) {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    z-index: 6;
    transform: scale(0.9) perspective(1000px) rotateY(-16deg);
}

.feature-card:nth-child(6) {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    z-index: 5;
    transform: scale(0.9) perspective(1000px) rotateY(-20deg);
}

.feature-card:nth-child(7) {
    background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--bg-white) 100%);
    z-index: 4;
    transform: scale(0.9) perspective(1000px) rotateY(-20deg);
}

/* Ensure the center card is perfectly straight, overriding nth-child transforms */
.features-grid .feature-card.feature-card-center {
    transform: scale(0.9) rotateY(0deg) !important;
}


.feature-card-icon {
    width: 110px;
    height: 110px;
    margin: 1rem auto 1rem auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    overflow: visible;
    padding: 0;
}

.feature-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    font-family: 'TT Ramillas', sans-serif;
    line-height: 1.3;
    text-align: center;
}

.feature-card-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-20px) scale(0.927) perspective(1000px) rotateY(0deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    z-index: 10 !important;
}

.feature-card:nth-child(6):hover {
    transform: translateY(-20px) scale(0.927) perspective(1000px) rotateY(0deg);
}

.feature-card:nth-child(7):hover {
    transform: translateY(-20px) scale(0.927) perspective(1000px) rotateY(0deg);
}

.feature-card-center:hover {
    transform: translateY(-20px) scale(0.927) perspective(1000px) rotateY(0deg) !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border-color: var(--primary-color) !important;
    z-index: 10 !important;
}

@media (max-width: 768px) {
    .features-title {
        font-size: 2rem;
        margin: 2rem 0 1.5rem 0;
    }
    
    .features-container {
        padding: 2rem 0;
    }
    
    .features-numbers {
        height: 80px;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-number-item {
        width: 200px;
        margin-left: -50px;
    }
    
    .feature-number-item:first-child {
        margin-left: 0;
    }
    
    .feature-number-circle {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
    
    .feature-number-line {
        height: 60px;
        margin-top: 8px;
    }
    
    .features-grid {
        gap: 0;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 0 1rem;
        overflow: visible;
    }
    
    .feature-card {
        width: 200px;
        aspect-ratio: 9 / 16;
        padding: 2rem 1.25rem 1.25rem 1.25rem;
        margin-left: -50px;
    }
    
    .feature-card:first-child {
        margin-left: 0;
    }
    
    .feature-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.625rem;
        margin: 1.25rem 0 1rem 0;
    }
    
    .feature-card-title {
        font-size: 1.2rem;
    }
    
    .feature-card-description {
        font-size: 0.9375rem;
    }
    
    .feature-card:hover {
        transform: translateY(-8px) scale(1.02) !important;
    }
}

.service-advantages {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-advantages li {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.service-advantages li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.service-cta {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.service-cta p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.service-cta .btn {
    margin-top: 1rem;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon .icon-image {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.info-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
}

.info-content {
    flex: 1;
}

.copyable-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    opacity: 0.6;
    border-radius: 4px;
}

.copy-btn:hover {
    opacity: 1;
    color: var(--primary-color);
    background: rgba(71, 85, 105, 0.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.messenger-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.messenger-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.messenger-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.messenger-icon {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--bg-white);
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input.has-value + label,
.form-group textarea:focus + label,
.form-group textarea.has-value + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Required field indicator */
.form-group label::after {
    content: '';
}

.form-group input.required + label::after,
.form-group textarea.required + label::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.footer .container {
    max-width: 1600px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-section h3 {
    margin-bottom: 0.75rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a,
.footer-section ul li {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-top-actions {
        top: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .hero-login {
        font-size: 0.85rem;
    }
    
    .btn-appointment {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-services-overlay {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .service-overlay-card {
        padding: 2rem 1.5rem;
    }
    
    .service-overlay-card h3 {
        font-size: 1.25rem;
    }
    
    .hero-nav-indicator {
        display: none;
    }
    
    .hero-chat-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .chat-text {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-left {
        order: 1;
        flex: 0 0 auto;
    }
    
    .header-nav {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        margin-top: 1rem;
    }
    
    .header-nav-list {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-nav-list a {
        font-size: 0.9rem;
    }
    
    .header-right {
        order: 2;
        gap: 0.75rem;
        flex: 0 0 auto;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .service-main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-features-title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-content-wrapper {
        padding: 2rem 1rem;
    }
    
    .hero-logo {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-bureau-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .hero-description {
        position: static;
        max-width: 100%;
        margin-bottom: 2rem;
        text-align: center;
        padding: 0 1rem;
        font-size: 1rem;
    }
    
    .hero-services-buttons {
        margin-top: 2rem;
        padding: 0 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .hero-service-btn {
        padding: 1.25rem 1rem;
        font-size: 0.85rem;
        min-height: 90px;
        min-width: 140px;
        max-width: 180px;
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .hero-nav-list {
        gap: 2rem;
        flex-wrap: wrap;
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .lang-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .auth-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .header-right {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .language-switcher {
        width: 100%;
        max-width: 280px;
    }
}

/* Floating Order Button */
.floating-order-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'TT Ramillas', sans-serif;
    border: 1px solid white;
}

.floating-order-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.floating-order-btn:active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.floating-btn-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .floating-order-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .floating-order-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-order-btn {
        transition: none !important;
    }
    
    .floating-order-btn:hover {
        transform: none !important;
    }
}