/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Noto+Sans:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Custom Properties */
:root {
    --primary: #f28b0d;
    --primary-hover: #d97b0b;
    --background-light: #f8f7f5;
    --background-dark: #181511;
    --surface-dark: #27221b;
    --border-dark: #393128;
    --text-secondary: #baac9c;
    --radius: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Noto Sans', sans-serif;
    background-color: var(--background-dark);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.bg-surface-dark { background-color: var(--surface-dark); }
.border-border-dark { border-color: var(--border-dark); }
.text-text-secondary { color: var(--text-secondary); }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border-dark);
    background-color: rgba(24, 21, 17, 0.95);
    backdrop-filter: blur(8px);
}

.header .container {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.nav-contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-contacts a {
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-contacts a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    display: flex;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background-color: var(--primary);
    padding: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--background-dark);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.btn-secondary {
    display: flex;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    background-color: var(--surface-dark);
    padding: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--border-dark);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    min-height: 600px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(24, 21, 17, 0.95), rgba(24, 21, 17, 0.8), transparent),
                linear-gradient(to top, rgba(24, 21, 17, 0.8), transparent);
}

.hero .container {
    position: relative;
    z-index: 10;
    padding: 5rem 1rem;
}

@media (min-width: 640px) {
    .hero .container {
        padding: 5rem 1.5rem;
    }
}

.hero-content {
    max-width: 42rem;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(242, 139, 13, 0.3);
    background-color: rgba(242, 139, 13, 0.1);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.hero-content h2 {
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    color: white;
}

@media (min-width: 640px) {
    .hero-content h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h2 {
        font-size: 3.75rem;
    }
}

.hero-content p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75;
    color: #d1d5db;
}

@media (min-width: 640px) {
    .hero-content p {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
}

@media (min-width: 640px) {
    .section-header h2 {
        font-size: 2.25rem;
    }
}

.divider {
    margin-top: 0.5rem;
    height: 0.25rem;
    width: 5rem;
    border-radius: var(--radius-full);
    background-color: var(--primary);
}

.center-mobile .divider {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .center-mobile .divider {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Services */
.services {
    border-top: 1px solid var(--border-dark);
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-dark);
    background-color: var(--surface-dark);
    padding: 1.5rem;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: rgba(242, 139, 13, 0.5);
}

.service-icon {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    background-color: rgba(242, 139, 13, 0.1);
    color: var(--primary);
    transition: all 0.2s;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--background-dark);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.service-card p {
    color: var(--text-secondary);
}

/* Why Choose Us */
.why-us {
    background-color: var(--surface-dark);
}

.benefits-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .benefit-card {
        align-items: flex-start;
        text-align: left;
    }
}

.benefit-card span {
    margin-bottom: 1rem;
    font-size: 3rem;
    color: var(--primary);
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: bold;
    color: white;
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Form Section */
.form-section {
    border-top: 1px solid var(--border-dark);
}

.form-map-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .form-map-container {
        flex-direction: row;
    }
}

.form-container {
    flex: 1;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header p {
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.input-wrapper {
    position: relative;
}

.input-wrapper span {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #6b7280;
}

.input-wrapper input {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    background-color: var(--surface-dark);
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 0.875rem;
    color: white;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 139, 13, 0.1);
}

textarea {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    background-color: var(--surface-dark);
    padding: 0.75rem;
    font-size: 0.875rem;
    color: white;
    resize: vertical;
    transition: all 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 139, 13, 0.1);
}

.form-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Map */
.map-container {
    flex: 1;
    min-height: 400px;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.map-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.2) brightness(0.6);
}

.map-info {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    border-radius: var(--radius-lg);
    background-color: rgba(39, 34, 27, 0.95);
    border: 1px solid var(--border-dark);
    padding: 1rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .map-info {
        left: auto;
        right: 1.5rem;
        width: 18rem;
    }
}

.info-item {
    display: flex;
    gap: 0.75rem;
}

.info-item:not(:first-child) {
    margin-top: 1rem;
}

.info-item span {
    color: var(--primary);
}

.info-item h4 {
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
}

.info-item p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-dark);
    padding: 3rem 0;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.footer-logo span {
    color: var(--primary);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-contacts {
        flex-direction: row;
        gap: 2rem;
        text-align: left;
    }
}

.footer-contacts a {
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contacts a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Адаптивность для мобильных */
@media (max-width: 640px) {
    .header .container {
        padding: 0 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.125rem;
    }
    
    .nav-contacts {
        gap: 0.5rem;
    }
    
    .nav-contacts a {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border: 1px solid var(--border-dark);
        border-radius: var(--radius);
        background-color: var(--surface-dark);
    }
    
    .nav-contacts .btn-primary {
        height: 2rem;
        padding: 0 0.75rem;
        font-size: 0.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.875rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    .benefit-card span {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        display: none; /* Скрываем текст логотипа на очень маленьких экранах */
    }
    
    .nav-contacts a {
        font-size: 0.7rem;
        padding: 0.25rem;
    }
    
    .nav-contacts .btn-primary {
        padding: 0 0.5rem;
        font-size: 0.7rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-content h2 {
        font-size: 1.625rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        height: 2.25rem;
        padding: 0 1rem;
        font-size: 0.875rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.benefit-card,
.form-group {
    animation: fadeIn 0.5s ease-out forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Плавное появление при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}