/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a5f;
    --accent: #d4a853;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #faf9f7;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
	overflow-x: hidden;
	width: 100%;
	position: relative;
	margin: 0;
	padding: 0;
}

body {
    overflow-x: hidden;
	width: 100%;
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
	margin: 0;
	padding: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.5s;
    padding: 1.25rem 0;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px var(--shadow);
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
}

#header.scrolled .logo-box {
    background: var(--primary);
    color: white;
}

#header:not(.scrolled) .logo-box {
    background: white;
    color: var(--primary);
}

.logo-text {
    display: none;
}

.logo-title {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    transition: color 0.3s;
}

#header.scrolled .logo-title {
    color: var(--primary);
}

#header:not(.scrolled) .logo-title {
    color: white;
}

.logo-subtitle {
    font-size: 0.75rem;
    transition: color 0.3s;
}

#header.scrolled .logo-subtitle {
    color: var(--text-light);
}

#header:not(.scrolled) .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.header-contacts {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.3s;
}

#header.scrolled .phone-link {
    color: var(--primary);
}

#header:not(.scrolled) .phone-link {
    color: white;
}

.messengers {
    display: flex;
    gap: 0.5rem;
}

.messenger-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.messenger-btn.whatsapp {
    background: #25d366;
}

.messenger-btn.whatsapp:hover {
    background: #20ba5a;
    transform: scale(1.1);
}

.messenger-btn.telegram {
    background: #0088cc;
}

.messenger-btn.telegram:hover {
    background: #0077b5;
    transform: scale(1.1);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    transition: all 0.3s;
}

#header.scrolled .mobile-menu-btn span {
    background: var(--primary);
}

#header:not(.scrolled) .mobile-menu-btn span {
    background: white;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    z-index: 99;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.mobile-messengers {
    display: flex;
    gap: 0.75rem;
}

.mobile-messenger-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    color: white;
}

.mobile-messenger-btn:nth-child(1) {
    background: #25d366;
}

.mobile-messenger-btn:nth-child(2) {
    background: #0088cc;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.95), rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    padding: 8rem 0 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-badge svg {
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-subtitle .highlight {
    color: var(--accent);
    font-weight: 500;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.feature-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
    background: #c49943;
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeIn 0.6s 1s both;
}

.scroll-border {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4px;
}

.scroll-dot {
    width: 6px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    animation: scrollDot 1.5s infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.section-title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-light);
    max-width: 42rem;
    margin: 0 auto;
}

/* Pains Solutions */
.pains-solutions {
    background: var(--bg);
}

.pains-grid {
    display: grid;
    gap: 2rem;
}

.pain-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.5s;
}

.pain-card:hover {
    box-shadow: 0 12px 40px var(--shadow);
}

.pain-block {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.pain-icon-bad {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pain-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.pain-desc {
    color: var(--text-light);
    font-size: 0.875rem;
}

.solution-arrow {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

/* Новый стиль для зеленой галочки */
.check-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1C375A; /* Наш зеленый цвет */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавная пружинистая анимация */
}



/* Эффект при наведении на всю карточку */
.pain-card:hover .check-circle {
    transform: scale(1.15); /* Увеличивается */
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5); /* Тень становится ярче */
	background: #7dd959;
}

.solution-block {
    display: flex;
    gap: 0.75rem;
}

.solution-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--shadow);
}

.shield-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.video-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.truck-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.solution-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.solution-desc {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Portfolio (UPDATED) */
.portfolio {
    background: white;
}

.portfolio-container {
    position: relative;
    min-height: 450px; 
}

.portfolio-item {
    display: none;
    gap: 3rem;
    align-items: flex-start; /* Changed from center to start for top alignment */
}

.portfolio-item.active {
    display: grid;
}

/* Slider CSS */
.portfolio-slider-wrapper {
    position: relative;
}

.before-after-slider {
    position: relative;
    width: 104%;
	height: 104%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

.slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.slider-label {
    position: absolute;
    top: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.before-label {
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
}

.after-label {
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--primary);
}


.portfolio-info h3 {
    margin-top: -1.0rem;
}

.portfolio-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--accent);
    color: white;
}

.portfolio-dots {
    display: flex;
    gap: 0.5rem;
}

.portfolio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}

.portfolio-dot.active {
    width: 24px;
    background: var(--accent);
}

.portfolio-info {
    padding-left: 2rem;
}

.project-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--primary);
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    margin-bottom: 1rem; /* Reduced from 0.5rem */
}

.project-location svg {
    color: var(--accent);
}

.brand-section {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.4rem;
}

.brand-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-tag {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 0.0rem;
}

.stat-box {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.125rem; /* Slightly reduced */
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.project-costs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Reduced from 0.75rem */
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.cost-row span {
    color: var(--text-light);
}

.cost-row strong {
    color: var(--primary);
    font-weight: 700;
}

/* Excursion */
.excursion {
    background: linear-gradient(rgba(30, 58, 95, 0.85), rgba(30, 58, 95, 0.85)), url('images/block_4-1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.excursion-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.excursion-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.excursion-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 168, 83, 0.2);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.excursion-title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.excursion-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.excursion-list {
    list-style: none;
    margin-bottom: 2rem;
}

.excursion-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.excursion-list svg {
    color: var(--accent);
    flex-shrink: 0;
}

.excursion-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.excursion-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.excursion-badge-float {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: white;
    color: var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.excursion-info-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.info-card-title {
    font-weight: 700;
    color: var(--primary);
}

.info-card-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Pricing */
.pricing {
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.5s;
}

.pricing-card:hover {
    box-shadow: 0 12px 40px var(--shadow);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.2);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.pricing-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.investor-icon {
    background: linear-gradient(135deg, #64748b, #475569);
}

.comfort-icon {
    background: linear-gradient(135deg, var(--accent), #c49943);
}

.designer-icon {
    background: linear-gradient(135deg, var(--primary), #2d4a6f);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.pricing-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.price-from {
    font-size: 0.875rem;
    color: var(--text-light);
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.pricing-features svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card:not(.popular) .pricing-features svg {
    color: #cbd5e1;
}

.pricing-card.popular .pricing-features svg {
    color: var(--accent);
}

.pricing-btn {
    width: 100%;
}

.pricing-card:not(.popular) .pricing-btn {
    background: #f1f5f9;
    color: var(--primary);
}

.pricing-card:not(.popular) .pricing-btn:hover {
    background: #e2e8f0;
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Team */
.team {
    background: white;
}

.team-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-card {
    background: var(--bg);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.5s;
}

.team-card:hover {
    box-shadow: 0 12px 40px var(--shadow);
}

.team-photo-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.team-photo {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 0 4px white, 0 4px 12px var(--shadow);
}

.quote-icon {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.team-exp {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.team-quote {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-text {
    color: var(--text-light);
    font-size: 0.875rem;
}


/* Reviews */
.reviews {
    background: var(--bg);
    padding: 5rem 0;
}

.reviews-grid {
    display: grid;
    gap: 2rem;
}

.review-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar, .review-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.25rem;
}

.source-google-bg { background: #4285F4; }
.source-yandex-bg { background: #FC3F1D; }
.source-2gis-bg { background: #2BC417; }
.source-avito-bg { background: #00AAFF; }

.review-meta {
    flex: 1;
}

.review-author {
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.review-text {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.review-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.source-google { color: #4285F4; }
.source-yandex { color: #FC3F1D; }
.source-2gis { color: #2BC417; }
.source-avito { color: #00AAFF; }
.source-vk { color: #0077FF; }
.source-ok { color: #FF9900; }

/* Планшеты и узкие мониторы: 2 колонки */
@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Обычные мониторы и ноутбуки: 3 колонки */
@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

.footer-company .logo-box {
    background: var(--accent);
    color: var(--primary);
}

.footer-company .logo-title {
    color: white;
}

.footer-company .logo-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin: 1.5rem 0;
    line-height: 1.6;
    max-width: 28rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: white;
}

.contact-link svg {
    color: var(--accent);
    flex-shrink: 0;
}

.map-placeholder {
    border-radius: 16px;
    overflow: hidden;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Quiz Modal */
.quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quiz-modal.active {
    display: flex;
}

.quiz-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.quiz-container {
    position: relative;
    width: 100%;
    max-width: 42rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quiz-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-close:hover {
    background: #e2e8f0;
}

.quiz-progress {
    height: 4px;
    background: #f1f5f9;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s;
}

.quiz-content {
    padding: 2rem;
}

.quiz-step-counter {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.quiz-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.quiz-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
}

.quiz-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.quiz-option.selected {
    border-color: var(--accent);
    background: rgba(212, 168, 83, 0.05);
}

.quiz-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.quiz-option.selected .quiz-option-icon {
    background: var(--accent);
    color: white;
}

.quiz-option-text h4 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.125rem;
}

.quiz-option-text p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 150;
    display: none;
}

.floating-cta.visible {
    display: block;
}

.floating-menu {
    position: absolute;
    bottom: 5rem;
    right: 0;
    width: 256px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s;
}

.floating-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.floating-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.floating-option:last-child {
    margin-bottom: 0;
}

.floating-option:hover {
    background: #f8fafc;
}

.floating-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.phone-bg {
    background: var(--primary);
}

.whatsapp-bg {
    background: #25d366;
}

.telegram-bg {
    background: #0088cc;
}

.floating-option-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.floating-option-text {
    font-size: 0.75rem;
    color: var(--text-light);
}

.floating-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.active {
    background: #334155;
}

.floating-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    animation: ping 1.5s infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 10; 
}

.floating-btn.active + .floating-pulse {
    display: none;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive */
@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
    
    .hero-cta {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .header-contacts {
        display: flex;
    }
    
    .pains-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-item {
        grid-template-columns: 1fr 1fr;
    }
    
    .excursion-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 7rem 0;
    }
}


/* Portfolio SEO Block */
.portfolio-seo-block {
    background: #f8fafc;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    border: 1px solid var(--border);
    margin-top: 3rem;
}

.seo-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seo-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.seo-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.seo-tags span {
    background: white;
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.seo-footer-text {
    font-weight: 500;
    color: var(--primary) !important;
}


/* По умолчанию (на ПК) скрываем мобильный блок и показываем десктопный */
.mobile-only {
    display: none;
}
.desktop-only {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

/* Скрываем старую кнопку бургер-меню, она нам больше не нужна */
.mobile-menu-btn {
    display: none !important;
}

/* НАСТРОЙКИ ДЛЯ МОБИЛЬНЫХ (экран меньше 768px) */
/* НАСТРОЙКИ ДЛЯ МОБИЛЬНЫХ (экран меньше 768px) */
@media (max-width: 768px) {
    .portfolio-seo-block {
        flex-direction: column;
    }

    /* Скрываем десктопную версию */
    .desktop-only {
        display: none;
    }
    
    /* Показываем мобильную версию */
    .mobile-only {
        display: block;
        width: 100%;
    }

    /* Настраиваем сам хедер */
    #header {
        background: white !important;
        padding: 0.5rem 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    
    #header .container {
        padding: 0 12px;
    }

    /* -- ПЕРВАЯ СТРОКА (Лого, Телефон текстом, Часы) -- */
    .mobile-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
        gap: 8px;
    }

    /* Логотип (Квадрат с иконкой) */
    .logo-box.mini {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        flex-shrink: 0;
        background: var(--primary) !important;
        color: white !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo-box.mini svg {
        width: 20px;
        height: 20px;
    }

    /* Ссылка телефона (теперь просто текст без фона) */
    .mobile-phone-link {
        font-weight: 800;
        font-size: 16px;
        color: var(--primary); /* Темно-синий, как у лого */
        text-decoration: none;
        white-space: nowrap;
    }

    /* Бейджик времени работы */
    .work-hours-badge {
        font-size: 11px;
        font-weight: 600;
        color: #ef4444;
        background: #fef2f2;
        padding: 4px 6px;
        border-radius: 6px;
        border: 1px solid #fecaca;
        text-align: center;
        white-space: nowrap;
    }

    .work-hours-badge.open {
        color: #15803d;
        background: #dcfce7;
        border-color: #86efac;
    }

    /* -- ВТОРАЯ СТРОКА (Кнопки) -- */
    .mobile-bottom-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; /* Три равные колонки */
        gap: 8px;
    }

    .mobile-act-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        height: 40px;
        border-radius: 8px;
        text-decoration: none;
        color: white;
        font-weight: 600;
        font-size: 12px; /* Чуть меньше шрифт, чтобы влезло "Позвонить" */
        transition: transform 0.2s;
    }
    
    .mobile-act-btn:active {
        transform: scale(0.96);
    }
    
    .mobile-act-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Цвета кнопок */
    .btn-telegram {
        background: #0088cc;
    }

    .btn-max {
        background: linear-gradient(90deg, #3789FF 0%, #9C44DB 100%);
    }
    
    /* Новая кнопка Позвонить (Зеленая, как WhatsApp раньше, или Акцентная) */
    /* Используем зеленый, так как это стандарт для действия "Вызов" */
    .btn-call {
        background: #22c55e; 
    }
}


/* --- СТИЛЬ ДЛЯ КНОПКИ MAX (Десктоп) --- */
.messenger-btn.max {
    background: linear-gradient(90deg, #3789FF 0%, #9C44DB 100%);
}
.messenger-btn.max:hover {
    transform: scale(1.1);
}

/* --- ИСПРАВЛЕНИЕ ДЛЯ ПЛАНШЕТОВ (768px - 1150px) --- */
/* Этот код сработает только на планшетах и узких ноутбуках,
   где сейчас вылезает горизонтальный скролл */
@media (min-width: 768px) and (max-width: 1150px) {
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%; /* Гарантируем, что контейнер не шире экрана */
    }
	
	/* Уменьшаем отступы в шапке */
    .header-content {
        gap: 0.5rem; /* Минимальный отступ между лого и контактами */
        width: 100%;
    }

    /* Делаем логотип компактнее: скрываем подпись */
    .logo-subtitle {
        display: none;
    }
    .logo-title {
        font-size: 1rem; /* Чуть меньше текст */
    }

    .logo-text {
        display: none; 
    }
    
    /* Делаем блок контактов компактнее */
    .header-contacts {
        gap: 0.5rem;
    }

    /* Телефон: уменьшаем шрифт */
    .phone-link {
        font-size: 14px; 
        white-space: nowrap; /* Запрещаем перенос номера на 2 строки */
    }
    
    .phone-link svg {
        width: 16px;
        height: 16px;
    }

    /* Кнопки мессенджеров: чуть меньше */
    .messengers {
        gap: 6px;
    }
    .messenger-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
}

/* Настройка блока в футере */
#footerMapTrigger {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Оверлей с иконкой "Развернуть" */
.map-overlay-hint {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 95, 0.6); /* Цвет primary с прозрачностью */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px;
}

.map-overlay-hint span {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Показываем оверлей при наведении */
#footerMapTrigger:hover .map-overlay-hint {
    opacity: 1;
}

/* Специфичные стили для контейнера модальной карты */
.quiz-container.map-modal-container {
    max-width: 1000px; /* Шире обычного окна */
    width: 90%;
    height: 80vh; /* Высота 80% от экрана */
    padding: 0; /* Убираем отступы, чтобы карта была на всё окно */
    background: #f1f5f9;
}

.map-modal-content {
    width: 100%;
    height: 100%;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    /* На мобильных подсказка видна всегда (полупрозрачная), чтобы было понятно, что можно кликнуть */
    .map-overlay-hint {
        opacity: 0; /* Или оставьте 0, если хотите, чтобы появлялась только при тапе, но лучше сделать явную кнопку, если карта не интерактивна */
    }
    
    /* Или просто сделаем кнопку в углу */
    #footerMapTrigger::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2; /* Прозрачный слой поверх iframe, чтобы ловить клик */
    }
}