:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #fbbf24;
    --accent-hover: #f59e0b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Nav Styles */
.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

@media (max-width: 1024px) {
    .nav {
        display: none;
    }
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 140px;
    width: auto;
    transition: var(--transition);
    margin-bottom: -20px;
}

.header-contacts {
    text-align: right;
}

.work-time {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.phone-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phone {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.messengers {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.messenger {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    background: var(--bg-white);
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.messenger .svg-icon {
    width: 100%;
    height: 100%;
    display: block;
}

.viber:hover,
.telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.8) 100%), url('../images/3.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-features-list {
    list-style: none;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.hero-features-list li {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-features-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Section Common Styles */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-bg-text {
    position: absolute;
    font-size: 15rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.bg-text-left {
    top: 50%;
    left: -5%;
    transform: translateY(-50%);
}

.bg-text-right {
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
}

section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    height: 100%;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.about-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.highlight-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.van-icon {
    height: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.van-icon img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Technology Section Styles */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 4px solid var(--primary);
}

.tech-card.full-width {
    grid-column: span 2;
}

.tech-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tech-usage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-card.full-width {
        grid-column: span 1;
    }

    .tech-usage {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Process Section */
.process {
    background: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.process-step {
    position: relative;
    padding-top: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-num {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.08;
    line-height: 1;
    z-index: 0;
}

.step-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: 50%;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.step-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.process-step p {
    text-align: left;
}

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

.info-block h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.info-block ul {
    list-style: none;
}

.info-block li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    display: block;
}

.info-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.card.accent {
    border-top: 6px solid var(--primary);
}

.card.warning {
    background: #fffcf0;
    border: 1px solid #fde68a;
}

.card.warning h3,
.card.warning li::before {
    color: #b45309;
}

.card.warning li::before {
    background: #b45309;
}

.warning-text {
    margin-top: 1.5rem;
    font-weight: 700;
    color: #92400e;
}

/* Gallery Section */
.gallery {
    background: var(--bg-white);
}

.equipment-bg-deco {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 600px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
}

.equipment-bg-deco img {
    width: 100%;
    height: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    cursor: pointer;
    background: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contacts Section */
.contacts {
    background: var(--bg-light);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.messengers-list {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    background: var(--bg-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.messenger-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.svg-icon-sm {
    width: 24px;
    height: 24px;
    display: block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.875rem;
}

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

.copyright {
    font-size: 0.875rem;
    line-height: 1.6;
}

.dev-name {
    color: white;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

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

    .footer-nav {
        align-items: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {

    .about-grid,
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-contacts {
        text-align: center;
    }

    .messengers {
        justify-content: center;
    }

    .hero {
        padding: 4rem 0;
        text-align: center;
    }

    .hero-features-list {
        justify-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .phone-number {
        font-size: 1.5rem;
    }
}