@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #ffffff;
    --bg-secondary: #f4f6f8;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #336799;
    --accent-light: #5b83ac;
    --border: rgba(0,0,0,0.08);
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
    --radius: 8px;
	--radius-sm: 12px;
    --radius-lg: 16px;
    --transition: 0.25s ease-in-out;
	--error: #b21f2d;
	--error-bg: #fff0f2;
	--error-text: #7f1d1d;
	--success: #16a34a;
	--success-bg: #f0fdf4;
	--success-text: #14532d;
	--validate-bg: #fff0f2;
	--validate-color: #b21f2d;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1120;
        --bg-secondary: #111827;
        --bg-card: #161f33;
        --text: #e2e8f0;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --accent: #4a8ab8;
        --accent-light: #6fa5cc;
        --border: rgba(255,255,255,0.08);
        --shadow: 0 4px 24px rgba(0,0,0,0.25);
        --shadow-lg: 0 12px 24px rgba(0,0,0,0.35);
		--error: #b21f2d;
		--error-bg: #b21f2d;
		--error-text: #e2e8f0;
		--success: #16a34a;
		--success-bg: #16a34a;
		--success-text: #e2e8f0;
		--validate-bg: #4d0b10;
		--validate-color: #a7303e;
    }

	.logo img, .header-contacts, .menu-toggle {
		filter: grayscale(100%) invert(100%) brightness(200%);
	}

	section:nth-of-type(2n):last-of-type {
		background: transparent;
	}
}

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

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:-webkit-any-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 3px;
}

ul {
	list-style: none;
}

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

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
	transition: opacity var(--transition);
}

.logo:hover img {
	opacity: .8;
}

.footer .logo img {
	filter: grayscale(100%) invert(100%) brightness(200%);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

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

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0px;
    line-height: 1.3;
}

.header-phone {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
	transition: color var(--transition);
}

.header-phone:hover {
    color: var(--accent-light);
}

.header-email {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.header-email:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle:hover span, .menu-toggle[aria-expanded="true"]:hover span {
    background: var(--accent-light);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

section:nth-of-type(2n) {
	background: var(--bg-secondary);
	border: 0px solid var(--border);
}

.hero {
    display: flex;
    align-items: center;
    background: var(--bg);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-feature::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
}

.hero-price span {
    color: var(--accent);
    font-size: 1.3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
	border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
	filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-images img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 320px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-images img:first-child {
    margin-top: 40px;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.guarantee-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.guarantee-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--accent);
}

.guarantee-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guarantee-text strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.management {
    text-align: center;
    background: var(--bg);
}

.management-inner {
    max-width: 720px;
    margin: 0 auto;
}

.management h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.management p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.platforms {
    display: inline-flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-tag {
    padding: 10px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.functions-header {
    text-align: center;
    margin-bottom: 48px;
}

.functions-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.function-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.function-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.function-card-body {
    padding: 20px;
}

.function-num {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.1em;
}

.function-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.stages-header {
    text-align: center;
    margin-bottom: 48px;
}

.stages-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.stage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,78,180,0.2);
}

.stage-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.stage-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.stage-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.consult {
    background: var(--bg);
}

.consult-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.consult-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.consult-info > p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.consult-info button {
	margin-top: 32px;
}

.consult-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.consult-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.consult-item::before {
    content: '—';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

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

.form-group input.error,
.form-group textarea.error {
	border-color: var(--validate-color);
	background: var(--validate-bg);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
	border-color: var(--validate-color);
}

.form-group .error-msg {
	color: var(--validate-color);
	font-size: 0.8rem;
	margin-top: 6px;
	line-height: 1.4;
	display: none;
}

.form-group .error-msg.visible {
	display: block;
}

.form-submit-wrap {
    display: flex;
    align-items: anchor-center;
    gap: 16px;
    margin-top: 8px;
}

.form-submit {
    flex-shrink: 0;
}

.form-agree {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
}

.form-agree a {
    color: var(--accent);
    text-decoration: underline;
}

.form-agree a:hover {
    color: var(--accent-light);
}

.form-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.form-message {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: var(--radius);
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.6;
	display: none;
	opacity: 0;
	border: 1.5px solid transparent;
	transition: opacity var(--transition);
}

.form-message.show {
	display: block;
	opacity: 1;
}

.form-message.error {
	background: var(--error-bg);
	color: var(--error-text);
	border-color: rgba(220, 38, 38, 0.2);
}

.form-message.success {
	background: var(--success-bg);
	color: var(--success-text);
	border-color: rgba(22, 163, 74, 0.2);
}

.objects-header {
    text-align: center;
    margin-bottom: 48px;
}

.objects-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.objects-slider-wrap {
    position: relative;
}

.objects-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.object-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    box-shadow: var(--shadow);
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
}

.object-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.object-card:hover img {
    transform: scale(1.05);
}

.object-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	background: linear-gradient(to top, rgba(26,30,46,0.72) 0%, rgba(26,30,46,0.15) 45%, transparent 70%);
	transition: var(--transition);
}

.object-overlay span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.object-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	background: linear-gradient(to top, rgba(26,30,46,0.72) 0%, rgba(26,30,46,0.15) 45%, transparent 70%);
	transition: var(--transition);
}

.object-card:hover .object-overlay {
	background: rgba(26,30,46,0.55);
}

.project-name {
	font-size: 18px;
	font-weight: 600;
	color: var(--white);
	text-shadow: 0 1px 4px rgba(0,0,0,0.3);
	transition: var(--transition);
}

.object-card:hover .project-name {
	opacity: 0;
}

.project-hover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	opacity: 0;
	transition: opacity var(--transition);
	pointer-events: none;
}

.object-card:hover .project-hover {
	opacity: 1;
}

.project-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--accent);
	background: var(--bg-card);
	padding: 6px 14px;
	border-radius: 20px;
	transform: translateY(-8px);
	transition: transform 0.35s ease 0.05s;
}

.object-card:hover .project-badge {
	transform: translateY(0);
}

.project-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	background: var(--bg);
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius-sm);
	border: none;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	transform: translateY(8px);
}

.object-card:hover .project-btn {
	transform: translateY(0);
	transition-delay: 0.08s;
}

.project-btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.slider-btn.prev { left: -24px; }
.slider-btn.next { right: -24px; }

.slider-btn:disabled,
.slider-btn.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.promo {
    background: var(--bg);
    padding: 80px 0;
}

.promo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.promo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.promo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.4) 60%, transparent 100%);
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 590px;
    padding: 60px;
}

.promo-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.promo-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.02em;
}

.promo-content p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.contacts {
    background: var(--bg);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: stretch;
}

.contacts-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.contact-block {
    margin-bottom: 28px;
}

.contact-block-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-block-value {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}

.contact-block-value a {
    color: var(--accent);
    transition: var(--transition);
}

.contact-block-value a:hover {
    color: var(--accent-light);
}

.contacts-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

.footer {
    background: #0f172a;
    color: #fff;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-grid.footer-grid-partners {
    grid-template-columns: 2fr 1.5fr 1fr;
    align-items: start;
}

.footer-partners {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-partners .partner-item {
    width: 110px;
    height: 55px;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: var(--transition);

	display: flex;
    align-items: center;
    justify-content: center;
}

.footer-partners .partner-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.footer-partners .partner-item svg {
    width: 100%;
    height: 100%;
    max-height: 36px;
}

.footer-brand .logo {
    margin-bottom: 12px;
    display: inline-flex;
    color: #fff;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 280px;
}

.footer-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-links a:hover {
	color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: #fff;
}

.fade {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.fade.visible {
    opacity: 1;
}

@media (min-width: 1025px) {
	.hero {
		min-height: 100vh;
		margin-top: -80px;
	}

	.scroll-top.visible {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

@media (max-width: 1024px) {
	header + * {
		padding-top: 40px;
	}

    .hero-inner, .about-grid, .consult-grid, .contacts-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .functions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	
	.stages-grid {
        grid-template-columns: repeat(3, 2fr);
    }

    .objects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .object-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .promo-content {
        padding: 40px;
        max-width: 100%;
    }

    .promo-card::after {
        background: linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.6) 100%);
    }

    .contacts-map {
        min-height: 300px;
    }

    .contacts-map iframe {
        min-height: 300px;
    }

    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }

	.consult-image {
		display: none;
	}
}

.text-page {
	padding-bottom: 80px;
	background: var(--bg);
}

.text-page h1 {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.text-page h2 {
	font-size: 1.3rem;
	font-weight: 600;
	margin-top: 40px;
	margin-bottom: 16px;
	color: var(--text);
}

.text-page h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-top: 24px;
	margin-bottom: 12px;
	color: var(--text);
}

.text-page p, .text-page li {
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 12px;
}

.text-page ul {
	list-style: disc;
	padding-left: 24px;
	margin-bottom: 16px;
}

.text-page ul li {
	margin-bottom: 8px;
}

.text-page a {
	color: var(--accent);
}

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

.edit-date {
	color: var(--text-muted);
	font-size: 0.85rem;
	margin-bottom: 32px;
	display: block;
}

@media (max-width: 768px) {
    section:not(.hero) { padding: 64px 0; }

    .partners { padding: 64px 0; }
    .promo { padding: 64px 0; }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header-contacts { display: none; }
    .menu-toggle { display: flex; }

    .nav-contacts {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
        margin-top: 4px;
    }

    .nav-contacts a {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text);
    }

    .nav-contacts a.nav-email {
        font-size: 0.85rem;
        font-weight: 400;
        color: var(--text-muted);
    }
	
	.btn {
		width: stretch;
	}

    .about-images {
        grid-template-columns: 1fr;
    }

    .about-images img:first-child {
        margin-top: 0;
    }

    .functions-grid,
    .stages-grid,
    .objects-grid {
        grid-template-columns: 1fr;
    }

    .object-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .modal {
        padding: 28px 20px;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-submit-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .consult-grid {
        gap: 48px;
    }

    .footer-grid,
    .footer-grid.footer-grid-partners {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        line-height: 1.6;
    }

    .footer-bottom a {
        line-height: inherit;
    }

    .form-submit-wrap {
        align-items: stretch;
        width: 100%;
    }

    .form-submit-wrap .form-agree {
        max-width: none;
        width: 100%;
		text-align: justify;
    }

    .form-submit-wrap .btn.form-submit {
        width: 100%;
    }

    .promo-content {
        padding: 32px 20px;
    }

    .partners-grid {
        gap: 32px;
    }

    .contacts-map {
        min-height: 280px;
    }

    .contacts-map iframe {
        min-height: 280px;
    }
}

.consult-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.btn-consult-modal {
    margin-top: 32px;
}

.btn-contacts-modal {
    margin-top: 16px;
}

.footer-policy-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.scroll-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
	box-shadow: 0 4px 16px rgba(51,103,153,0.35);
	z-index: 999;
	-webkit-tap-highlight-color: transparent;
}

.scroll-top:hover {
	background: var(--accent-light);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(51,103,153,0.45);
}

.scroll-top:active {
	transform: translateY(0) scale(0.95);
}

.scroll-top svg {
	width: 20px;
	height: 20px;
	pointer-events: none;
}

.error {
	background: var(--bg-secondary);
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
}

.error-box {
	text-align: center;
	padding: 40px 20px;
}

.error-box h1 {
	font-size: 96px;
	font-weight: 700;
	color: var(--text-muted);
	margin: 0 0 16px;
	line-height: 1;
}

.error-box p {
	font-size: 16px;
	color: #5a6a7f;
	margin: 0 0 8px;
	line-height: 1.5;
}

.error-links {
	margin-top: 32px;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.error-links a,
.error-links button {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	border: none;
	background: var(--accent);
	color: #fff;
	transition: background 0.2s;
}

.error-links a:hover,
.error-links button:hover {
	background: var(--accent-light);
}

@media (max-width: 480px) {
	.error-box h1 { font-size: 72px; }
}

.project-page .section-header h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 64px;
}

.project-gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.project-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    cursor: zoom-in;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.project-gallery-overlay {
    position: absolute;
    inset: 0;
    padding: 28px 32px;
    background: linear-gradient(
        to bottom,
        rgba(15,23,42,0.60) 0%,
        rgba(15,23,42,0.15) 30%,
        rgba(15,23,42,0.10) 55%,
        rgba(15,23,42,0.85) 100%
    );
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-gallery-overlay .project-label {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 20px;
}

.project-gallery-overlay h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 8px;
    color: #fff;
}

.project-gallery-overlay .project-address {
    font-size: 0.9rem;
    opacity: 0.90;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.project-spec-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-spec-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.project-spec-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.project-spec-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.project-desc {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 24px;
}

.project-desc a {
    color: var(--accent);
    transition: var(--transition);
}

.project-desc a:hover {
    color: var(--accent-light);
}

.project-desc p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.project-desc p + p {
    margin-top: 16px;
}

.project-systems {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-system-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-system-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.project-system-icon {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    color: var(--accent);
    opacity: 0.15;
    pointer-events: none;
}

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

.project-system-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    padding-right: 56px;
}

.project-system-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-right: 56px;
}

.project-equipment {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.project-equipment h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

.project-equipment-list {
    column-count: 2;
    column-gap: 32px;
    list-style: none;
}

.project-equipment-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
	margin-bottom: 12px;
}

.project-equipment-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 3px;
    opacity: 0.6;
    transform: translateY(-50%);
}

.project-integrations {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition);
}

.project-integration-badge:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.project-cta {
    text-align: center;
    padding: 48px 0;
}

.project-cta p {
    margin-bottom: 20px;
}

.project-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
	left: 0;
    width: 100vw;
	height: 100vh;
    background: rgba(15,23,42,0.82);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.project-modal.active {
    display: flex;
}

.project-modal img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.project-modal-close:hover {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .project-systems {
        grid-template-columns: 1fr;
    }
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 4/3;
    }
    .project-gallery-overlay {
        padding: 20px 20px 18px;
    }
    .project-gallery-overlay h1 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    .project-gallery-overlay .project-address {
        font-size: 0.85rem;
    }
    .project-system-icon {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 20px;
    }
    .project-system-card h3, .project-system-card p {
        padding-right: 48px;
    }
    .project-equipment-list {
        column-count: 1;
    }
    .project-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-desc, .project-equipment {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .project-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .project-gallery-item:first-child {
        grid-column: span 2;
    }
    .project-gallery-overlay {
        padding: 16px 16px 14px;
    }
    .project-gallery-overlay h1 {
        font-size: 1.3rem;
    }
    .project-gallery-overlay .project-label {
        font-size: 0.6rem;
        padding: 5px 10px;
    }
    .project-specs {
        grid-template-columns: 1fr;
    }
}