/*
Theme Name: ArtMaks Theme
Theme URI: https://artmaks.loc
Author: Developer
Author URI: https://artmaks.loc
Description: Тема для мастерской металла ArtMaks. Лофт-мебель, ворота, навесы и нестандартные металлоконструкции.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artmaks
*/

:root {
    --steel: #2a2d32;
    --steel-light: #3d4148;
    --concrete: #1a1c1f;
    --concrete-light: #252830;
    --fire: #ff6b35;
    --fire-glow: #ff8c5a;
    --spark: #ffd93d;
    --wood: #8b6914;
    --text: #e8e6e3;
    --text-muted: #9ca3af;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--concrete);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Текстурный оверлей */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

h1,
h2,
h3,
h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays for child elements */
.reveal-stagger>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger>*:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-stagger>*:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal-stagger>*:nth-child(6) {
    transition-delay: 0.5s;
}

/* ===== HERO ENTRANCE ANIMATIONS ===== */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(80px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Hero content animations */
.hero .hero-badge {
    opacity: 0;
    animation: slideInFromTop 0.7s ease forwards;
    animation-delay: 0.2s;
}

.hero h1 {
    opacity: 0;
    animation: slideInFromLeft 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero .hero-subtitle {
    opacity: 0;
    animation: slideInFromLeft 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero .hero-cta {
    opacity: 0;
    animation: slideInFromBottom 0.7s ease forwards;
    animation-delay: 0.8s;
}

.hero .hero-geo {
    opacity: 0;
    animation: slideInFromBottom 0.7s ease forwards;
    animation-delay: 1s;
}

.hero .hero-visual {
    opacity: 0;
    animation: slideInFromRight 1s ease forwards;
    animation-delay: 0.5s;
}

.hero .floating-badge:first-of-type {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
    animation-delay: 1.2s;
}

.hero .floating-badge:last-of-type {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
    animation-delay: 1.4s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(26, 28, 31, 0.98) 0%, rgba(26, 28, 31, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--fire) 0%, var(--fire-glow) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
    position: relative;
    z-index: 1;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
}

.logo-text span {
    color: var(--fire);
}

.logo-image {
    height: 100px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.logo {
    align-self: flex-start;
    margin-top: -8px;
}

nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    list-style: none;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fire);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--fire);
}

nav a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-phone {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.header-phone:hover {
    color: var(--fire);
}

.header-email {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.header-email:hover {
    color: var(--fire);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--fire) 0%, #e55a2b 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--fire);
    color: var(--fire);
}

.btn-outline:hover {
    background: var(--fire);
    color: var(--white);
}

.header-socials {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    margin: 0;
}

.btn-max {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.btn-max img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.btn-max:hover {
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.4);
}

/* Telegram brand color */
.header-socials .btn-telegram {
    background: linear-gradient(135deg, #26A5E4 0%, #0088cc 100%);
}

.header-socials .btn-telegram:hover {
    box-shadow: 0 8px 24px rgba(38, 165, 228, 0.4);
}

/* VK brand color */
.header-socials .btn-vk {
    background: linear-gradient(135deg, #0077FF 0%, #0066DD 100%);
}

.header-socials .btn-vk:hover {
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU SIDEBAR ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 150;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--concrete);
    z-index: 160;
    transition: left 0.3s ease;
    flex-direction: column;
    border-right: 1px solid rgba(255, 107, 53, 0.2);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header .logo {
    display: flex;
    align-items: center;
}

.mobile-logo-image {
    height: 60px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.mobile-menu-close:hover {
    color: var(--fire);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex: 1;
}

.mobile-menu-nav a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu-nav a:hover {
    color: var(--fire);
    padding-left: 12px;
}

.mobile-menu-contacts {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--steel);
}

.mobile-menu-contacts a,
.mobile-menu-contacts p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 0;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.mobile-menu-contacts a:hover {
    color: var(--fire);
}

.mobile-menu-contacts svg {
    width: 20px;
    height: 20px;
    fill: var(--fire);
    flex-shrink: 0;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, var(--concrete) 0%, var(--steel) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 107, 53, 0.03) 0px, rgba(255, 107, 53, 0.03) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, rgba(255, 107, 53, 0.03) 0px, rgba(255, 107, 53, 0.03) 1px, transparent 1px, transparent 80px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--fire);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--fire);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 .accent {
    color: var(--fire);
    position: relative;
}

.hero h1 .accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fire);
    opacity: 0.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 500px;
}

.hero-geo {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.geo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.geo-item svg {
    width: 20px;
    height: 20px;
    fill: var(--fire);
}

.geo-item strong {
    color: var(--white);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.hero-image-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 450px;
    background: var(--steel-light);
    border: 3px solid var(--fire);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--fire), transparent, var(--fire));
    z-index: -1;
    animation: borderGlow 3s infinite;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-image-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.hero-image-placeholder svg {
    width: 120px;
    height: 120px;
    fill: var(--fire);
    opacity: 0.5;
    margin-bottom: 16px;
}

.floating-badge {
    position: absolute;
    background: var(--concrete);
    border: 2px solid var(--fire);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-badge.experience {
    bottom: 60px;
    left: -40px;
}

.floating-badge.trust {
    top: 40px;
    right: -20px;
}

.floating-badge .number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fire);
    line-height: 1;
}

.floating-badge .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ===== STORY SECTION ===== */
.story {
    padding: 120px 0;
    background: var(--steel);
    position: relative;
}

.story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--concrete) 0%, transparent 100%);
    pointer-events: none;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.story-image {
    position: relative;
}

.story-image-main {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--steel-light);
    border-left: 4px solid var(--fire);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-image-main svg {
    width: 100px;
    height: 100px;
    fill: var(--fire);
    opacity: 0.3;
}

.story-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border: 3px solid var(--fire);
    opacity: 0.3;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--fire);
    margin-bottom: 16px;
    font-weight: 600;
}

.story h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    line-height: 1.2;
}

.story-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.story-highlight {
    background: rgba(255, 107, 53, 0.1);
    border-left: 4px solid var(--fire);
    padding: 24px;
    margin: 32px 0;
}

.story-highlight p {
    font-size: 1.1rem;
    color: var(--text);
    font-style: italic;
}

.story-highlight .author {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
}

/* ===== PROBLEM SOLVER ===== */
.problem-solver {
    padding: 120px 0;
    background:
        radial-gradient(ellipse at center, rgba(255, 107, 53, 0.1) 0%, transparent 60%),
        var(--concrete);
}

.problem-solver-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.problem-solver h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.problem-solver-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.case-study {
    background: var(--steel);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.case-study-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--fire);
}

.case-study-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.case-savings {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 107, 53, 0.1);
    padding: 16px 24px;
    border-left: 4px solid var(--fire);
}

.case-savings .amount {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fire);
}

.case-savings .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-study-image {
    aspect-ratio: 16/10;
    background: var(--steel-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-image svg {
    width: 80px;
    height: 80px;
    fill: var(--fire);
    opacity: 0.3;
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-item {
    background: var(--steel);
    padding: 32px;
    border-top: 3px solid var(--fire);
    transition: transform 0.3s, box-shadow 0.3s;
}

.problem-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.problem-item svg {
    width: 48px;
    height: 48px;
    fill: var(--fire);
    margin-bottom: 20px;
}

.problem-item h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.problem-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== SERVICES ===== */
.services {
    padding: 120px 0;
    background: var(--steel);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.tab-btn {
    padding: 16px 32px;
    background: transparent;
    border: 2px solid var(--steel-light);
    color: var(--text-muted);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    border-color: var(--fire);
    color: var(--fire);
    background: rgba(255, 107, 53, 0.1);
}

.services-content {
    display: none;
}

.services-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-geo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.1);
    padding: 8px 16px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--fire);
}

.services-geo-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--concrete);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--fire);
    transition: height 0.3s;
}

.service-card:hover {
    transform: translateX(8px);
}

.service-card:hover::before {
    height: 100%;
}

.service-card-image {
    aspect-ratio: 16/10;
    background: var(--steel-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-image svg {
    width: 48px;
    height: 48px;
    fill: var(--fire);
    opacity: 0.4;
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== PROCESS ===== */
.process {
    padding: 120px 0;
    background: var(--concrete);
}

.process-header {
    text-align: center;
    margin-bottom: 80px;
}

.process h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--fire), var(--fire-glow), var(--fire));
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--steel);
    border: 3px solid var(--fire);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--fire);
    position: relative;
    z-index: 2;
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== GALLERY ===== */
.gallery {
    padding: 120px 0;
    background: var(--steel);
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 16px;
}

.gallery-item {
    background: var(--steel-light);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item svg {
    width: 48px;
    height: 48px;
    fill: var(--fire);
    opacity: 0.3;
    transition: all 0.3s;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(255, 107, 53, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover svg {
    transform: scale(1.2);
    opacity: 0.5;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-cta {
    text-align: center;
    margin-top: 48px;
}

.gallery-cta p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ===== FAQ ===== */
.faq {
    padding: 120px 0;
    background: var(--concrete);
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: left;
}

.faq-question svg {
    width: 24px;
    height: 24px;
    fill: var(--fire);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at center, rgba(255, 107, 53, 0.2) 0%, transparent 60%),
        var(--steel);
    text-align: center;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
}

.btn-telegram:hover {
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.4);
}

.cta-phone {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.05em;
}

.cta-phone a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid var(--fire);
    transition: color 0.3s;
}

.cta-phone a:hover {
    color: var(--fire);
}

/* ===== FOOTER ===== */
footer {
    background: var(--concrete);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-logo-image {
    height: 120px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--fire);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--fire);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--steel);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--fire);
}

.social-links a.social-max:hover {
    background: #2196F3;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-geo {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .case-study {
        grid-template-columns: 1fr;
    }

    .problem-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-steps::before {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

    .header-contacts {
        flex-direction: row;
        align-items: center;
    }

    .header-phone {
        display: block;
        font-size: 0.9rem;
        color: var(--fire);
    }

    .header-email {
        display: none;
    }

    .header-cta .btn {
        display: none;
    }

    .hero-geo {
        flex-direction: column;
        gap: 16px;
    }

    .problem-list {
        grid-template-columns: 1fr;
    }

    .services-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid var(--fire);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid var(--fire);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--fire);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid var(--fire);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: var(--fire);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 28, 31, 0.9);
    padding: 12px 24px;
    color: var(--text);
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    border-left: 3px solid var(--fire);
}

.lightbox-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(26, 28, 31, 0.9);
    padding: 8px 16px;
    color: var(--fire);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* Lightbox images cursor */
.service-card-image.has-image,
.gallery-item img {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 60px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 22px;
        top: 10px;
        right: 10px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fire) 0%, #e55a2b 100%);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    overflow: visible;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--fire), var(--spark), var(--fire));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.scroll-to-top:hover::before {
    opacity: 1;
    animation: borderRotate 2s linear infinite;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.scroll-to-top-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.scroll-to-top-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
    transition: transform 0.3s;
}

.scroll-to-top:hover .scroll-to-top-icon svg {
    transform: translateY(-3px);
}

/* Sparks Animation */
.scroll-to-top-sparks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.spark {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--spark);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px var(--spark), 0 0 10px var(--fire);
}

.scroll-to-top:hover .spark {
    animation: sparkFly 0.8s ease-out forwards;
}

.spark:nth-child(1) {
    top: 50%;
    left: 50%;
    animation-delay: 0s;
}

.spark:nth-child(2) {
    top: 50%;
    left: 50%;
    animation-delay: 0.1s;
}

.spark:nth-child(3) {
    top: 50%;
    left: 50%;
    animation-delay: 0.2s;
}

.spark:nth-child(4) {
    top: 50%;
    left: 50%;
    animation-delay: 0.15s;
}

.spark:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 0.25s;
}

.spark:nth-child(6) {
    top: 50%;
    left: 50%;
    animation-delay: 0.05s;
}

@keyframes sparkFly {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--spark-x, 30px)),
                calc(-50% + var(--spark-y, -40px))) scale(0);
    }
}

.spark:nth-child(1) {
    --spark-x: -25px;
    --spark-y: -35px;
}

.spark:nth-child(2) {
    --spark-x: 25px;
    --spark-y: -30px;
}

.spark:nth-child(3) {
    --spark-x: -35px;
    --spark-y: -15px;
}

.spark:nth-child(4) {
    --spark-x: 30px;
    --spark-y: -20px;
}

.spark:nth-child(5) {
    --spark-x: 0px;
    --spark-y: -45px;
}

.spark:nth-child(6) {
    --spark-x: 15px;
    --spark-y: -40px;
}

/* Fire glow effect */
.scroll-to-top::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background: radial-gradient(ellipse, rgba(255, 107, 53, 0.6) 0%, transparent 70%);
    filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.scroll-to-top:hover::after {
    opacity: 1;
    animation: fireGlow 0.5s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    0% {
        transform: translateX(-50%) scaleY(1);
        opacity: 0.6;
    }

    100% {
        transform: translateX(-50%) scaleY(1.3);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .scroll-to-top-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Footer social icons - Max messenger */
.social-max {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-max img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}