/* Brand Colors from screenshots */
:root {
    --background-color: #edeae3;
    --primary-dark: #3e7f98;
    --primary-medium: #5e95a5;
    --primary-light: #7eabb2;
    --primary-lighter: #9ec2c0;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: var(--white);
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 4px 20px var(--shadow);
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--primary-medium);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(237, 234, 227, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo with animated spheres */
.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-medium);
    cursor: pointer;
}

.logo-text {
    font-weight: 700;
}

.logo-xi {
    font-weight: 400;
    margin: 0 2px;
    position: relative;
}

.logo-o {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 2px;
}

.sphere-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphere {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-lighter);
    border-radius: 50%;
    animation: sphereFloat 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes sphereFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-8px) scale(1.2);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-button {
    background: var(--primary-medium);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(94, 149, 165, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(94, 149, 165, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-medium);
    border: 2px solid var(--primary-medium);
}

.cta-button.secondary:hover {
    background: var(--primary-medium);
    color: var(--white);
}

/* Floating background shapes */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-lighter);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    text-align: center;
}

/* Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-medium);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.case-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.case-header h3 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.case-header h3 a:hover {
    color: var(--primary-medium);
    transform: translateY(-1px);
}

.case-header h3 a::after {
    content: '↗';
    font-size: 0.8rem;
    margin-left: 4px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.case-header h3 a:hover::after {
    opacity: 1;
}

.case-location {
    color: var(--text-light);
    font-size: 0.9rem;
}

.case-result {
    margin-top: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* What I Do Section */
.what-i-do {
    background: var(--white);
}

.what-i-do-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.what-i-do-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
}

.section-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.7;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .what-i-do-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* My Focus Section */
.focus-content {
    max-width: 1000px;
    margin: 0 auto;
}

.focus-intro {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--primary-dark);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
}

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

.focus-area {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.focus-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.focus-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-light));
}

/* Focus background icons */
.focus-bg-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.focus-area:hover .focus-bg-icon {
    opacity: 0.8;
}

.focus-area h3 {
    color: var(--primary-medium);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}

.focus-area p {
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    z-index: 3;
}

/* How I Work Section */
.how-i-work-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.how-i-work-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.how-i-work-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
}

.work-note {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
}

.work-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.work-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.work-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-medium);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.work-step p {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .how-i-work-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .how-i-work-left {
        text-align: center;
    }
    
    .work-step {
        text-align: left;
    }
}

/* Why Choose Me Section */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reason-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
}

.reason-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-icon svg {
    width: 100%;
    height: 100%;
}

.reason-card h3 {
    color: var(--primary-medium);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.reason-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* My Values Section */
.my-values {
    background: var(--background-color);
    padding: 60px 0;
}

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

.values-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.values-title {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    flex-shrink: 0;
}

.values-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-lighter), transparent);
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.value-item {
    padding: 0.8rem 0;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.value-item::before {
    content: "•";
    color: var(--primary-medium);
    font-weight: bold;
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.value-item:hover {
    transform: translateX(5px);
}

.value-item:hover::before {
    color: var(--primary-dark);
}

.value-item p {
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
    display: inline;
}

@media (max-width: 768px) {
    .values-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .values-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary-lighter), transparent);
    }
    
    .values-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .value-item {
        text-align: center;
    }
}

/* Skills Section */
.skills {
    padding: 60px 0;
    background: white;
}

.skills-content {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.skills-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.skills-divider {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-medium), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-category {
    background: linear-gradient(135deg, var(--background-light) 0%, #f8fafc 100%);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-light));
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-medium);
}

.skill-icon {
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-icon svg {
    transition: all 0.3s ease;
}

.skill-category:hover .skill-icon svg {
    transform: scale(1.1);
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-medium);
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    background: var(--primary-medium);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Responsive Skills */
@media (max-width: 768px) {
    .skills {
        padding: 40px 0;
    }
    
    .skills-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .skills-title {
        font-size: 1.3rem;
    }
    
    .skills-divider {
        width: 60px;
        height: 2px;
        background: var(--primary-medium);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .skill-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .skill-tags {
        gap: 6px;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Testimonials Section */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.testimonial-content p {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.author-info {
    flex: 1;
}

.testimonial-author strong {
    color: var(--primary-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author strong a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.testimonial-author strong a:hover {
    color: var(--primary-medium);
    transform: translateY(-1px);
}

.testimonial-author strong a::after {
    content: '↗';
    font-size: 0.7rem;
    margin-left: 3px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.testimonial-author strong a:hover::after {
    opacity: 1;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Final CTA Section */
.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.cta-option {
    text-align: center;
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
}

.cta-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-light));
}

.cta-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.cta-option:hover .cta-icon {
    opacity: 1;
}

.cta-icon svg {
    width: 100%;
    height: 100%;
}

.cta-option h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-option p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.cta-option .cta-button {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* Calendar Widget Styles */
.calendar-option {
    position: relative;
}

.calendar-widget {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.calendar-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--background-light);
    border-radius: 12px 12px 0 0;
}

.calendar-header h4 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.calendar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.calendar-close:hover {
    background: var(--background-light);
    color: var(--primary-dark);
}

.calendar-container {
    padding: 0;
    border-radius: 0;
}

.calendar-container iframe {
    border-radius: 0;
    border: none;
}

/* Booking Form Styles */
.booking-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    color: var(--text-dark);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-medium);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

.booking-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.booking-submit:hover {
    background: var(--primary-medium);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.booking-submit:active {
    transform: translateY(0);
}

.calendar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--background-light);
    border-radius: 0 0 12px 12px;
}

.calendar-footer p {
    margin: 0 0 12px 0;
    color: var(--text-medium);
    font-size: 0.9rem;
    text-align: center;
}

.calendar-contacts {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.calendar-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.calendar-contact:hover {
    background: var(--primary-medium);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 16px;
}

/* Calendar Overlay */
.calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.calendar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-content .cta-button {
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    .cases-grid,
    .focus-areas,
    .work-steps,
    .reasons-grid,
    .values-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calendar-widget {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90vw;
        max-width: 500px;
        max-height: 80vh;
        overflow-y: auto;
        margin: 0;
    }
    
    .calendar-widget.active {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .calendar-container iframe {
        height: 300px;
    }
    
    .calendar-contacts {
        flex-direction: column;
        gap: 8px;
    }
    
    .calendar-contact {
        justify-content: center;
        width: 100%;
    }
    
    section {
        padding: 60px 0;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .navbar {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .case-card,
    .focus-area,
    .reason-card,
    .value-item,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .cta-option {
        padding: 2rem 1.5rem;
    }
    
    /* Дополнительные стили для карточек реферальной программы на маленьких экранах */
    .condition-card {
        text-align: center !important;
    }
    
    .condition-content {
        text-align: center !important;
    }
    
    .condition-text {
        text-align: center !important;
    }
    
    .condition-card h3 {
        text-align: center !important;
    }
    
    .condition-percentage {
        justify-content: center !important;
    }
    
    .condition-description {
        text-align: center !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Language switching - managed by JavaScript */
[data-en], [data-ru] {
    /* Initial state will be managed by JavaScript */
}

/* Logo improvements */
.logo-text {
    font-weight: 700;
    position: relative;
}

.logo-dot {
    font-size: 1.2rem;
    color: var(--primary-medium);
    margin: 0 4px;
    font-weight: 700;
    position: relative;
    top: -0.3rem;
    vertical-align: middle;
}

/* Infinity animation for logo-o */
.logo-o {
    position: relative;
    width: 36px;
    height: 36px;
    margin: 0 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-o:hover .sphere-container {
    animation: morphToInfinity 2s ease-in-out infinite;
}

.logo-o:hover .sphere {
    animation: transformToInfinity 2s ease-in-out infinite;
}

.logo-o:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
}

@keyframes morphToInfinity {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(0.8) rotate(0deg);
    }
}

/* Простое круговое движение */
.sphere {
    animation: simpleCircle 6s linear infinite;
}

/* Простое вращение на месте */
@keyframes simpleCircle {
    0% { 
        transform: rotate(0deg);
        opacity: 0.7;
    }
    100% { 
        transform: rotate(360deg);
        opacity: 0.7;
    }
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

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

.nav-menu li a:hover {
    color: var(--primary-medium);
}

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

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

/* Footer */
.footer {
    background: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-medium);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-medium);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link.linkedin {
    background: var(--background-color);
    border: 2px solid #0077B5;
    color: #0077B5;
}

.social-link.linkedin:hover {
    background: #0077B5;
    color: white;
    transform: translateY(-2px);
}

.social-link.telegram {
    background: var(--background-color);
    border: 2px solid #0088cc;
    color: #0088cc;
}

.social-link.telegram:hover {
    background: #0088cc;
    color: white;
    transform: translateY(-2px);
}

/* Case logos */
.case-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.case-logo img,
.case-logo svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.case-logo svg {
    border-radius: 0;
}

.case-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

/* Testimonial avatars */
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Blog Styles */
.blog-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
    padding: 6rem 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: visible;
    margin-top: 80px; /* Отступ для навигации */
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Blog logo styles - используем основные стили логотипа */


@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-5px) translateX(-5px); }
    75% { transform: translateY(-15px) translateX(3px); }
}

.blog-content {
    padding: 4rem 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-post {
    background: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.blog-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.post-image {
    height: 150px;
    overflow: hidden;
}

.blog-post.featured .post-image {
    height: 200px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.post-date {
    color: var(--text-light);
}

.post-content h2,
.post-content h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h2 a,
.post-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-content h2 a:hover,
.post-content h3 a:hover {
    color: var(--primary-medium);
}

.post-content p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--primary-medium);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.post-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.newsletter-signup {
    background: var(--background-color);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
}

.newsletter-signup h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.newsletter-signup p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--primary-medium);
}

/* Footer optimization */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-section a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-medium);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-medium);
}

/* Blog post header styles */
.blog-post-header {
    background: var(--background-color);
    padding: 4rem 0 2rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-top: 80px; /* Отступ для навигации */
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-medium);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.post-featured-image {
    margin: 2rem 0;
    text-align: center;
    width: 100%;
}

.post-featured-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.post-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-date, .post-read-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Blog post content styles */
.blog-post-content {
    padding: 3rem 0;
    background: var(--white);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.post-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.post-cta {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

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

.post-cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Referral Program Styles */
.referral-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
    padding: 4rem 0 3rem 0;
    text-align: center;
    position: relative;
    overflow: visible;
    margin-top: 80px; /* Отступ для навигации */
}

.referral-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.referral-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.referral-content {
    padding: 4rem 0;
    background: var(--white);
}

.referral-program {
    max-width: 900px;
    margin: 0 auto;
}

.program-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.program-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.program-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

.condition-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.condition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.condition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-light));
}

.condition-content {
    display: block;
}

.condition-text {
    width: 100%;
}

.condition-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.condition-icon svg {
    width: 100%;
    height: 100%;
}

.condition-card h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.condition-percentage {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-medium);
    margin-bottom: 0.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.condition-description {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

.referral-example {
    margin-bottom: 3rem;
}

.referral-example h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.example-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    border-left: 4px solid var(--primary-medium);
}

.example-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.example-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-label {
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
    min-width: 200px;
}

.payment-amount {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.payment-return {
    font-weight: 600;
    color: var(--primary-medium);
    background: var(--primary-lighter);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.referral-cta {
    text-align: center;
    background: var(--background-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
}

.referral-cta h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.referral-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: var(--primary-medium);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(94, 149, 165, 0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(94, 149, 165, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-medium);
    border: 2px solid var(--primary-medium);
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button.secondary:hover {
    background: var(--primary-medium);
    color: var(--white);
    transform: translateY(-2px);
}

/* Mobile responsive for referral program */
@media (max-width: 768px) {
    .referral-header h1 {
        font-size: 2rem;
    }
    
    .referral-header p {
        font-size: 1rem;
    }
    
    .referral-conditions {
        grid-template-columns: 1fr;
    }
    
    .condition-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .condition-content {
        text-align: center;
    }
    
    .condition-text {
        text-align: center;
    }
    
    .condition-card h3 {
        text-align: center;
    }
    
    .condition-percentage {
        font-size: 2.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .condition-description {
        text-align: center;
    }
    
    .payment-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .payment-label {
        min-width: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button.primary,
    .cta-button.secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile responsive for blog */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .blog-post.featured {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-text h2 {
        font-size: 1.5rem;
    }
    
    .post-text p {
        font-size: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
