/* Базовые сбросы и настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background-color: #f9f9f9;
}

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

/* Стили шапки в стиле лофт */
.loft-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3436;
    text-decoration: none;
}
.logo span {
    color: #e76f51; /* Акцентный цвет */
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #2d3436;
    font-weight: 500;
    transition: color 0.3s;
}
.main-nav a:hover {
    color: #e76f51;
}

.btn-header {
    background-color: #e76f51;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
}
.btn-header:hover {
    background-color: #d65c40;
}

/* Секция Герой */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.highlight {
    color: #e76f51;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}
.btn-primary {
    display: inline-block;
    background-color: #e76f51;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}
.btn-primary:hover {
    background-color: #d65c40;
}

/* Секции */
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2d3436;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #e76f51;
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-icon {
    font-size: 2.5rem;
    color: #e76f51;
    margin-bottom: 20px;
}
.service-card h3 {
    margin-bottom: 15px;
}

/* Портфолио - НОВЫЕ СТИЛИ */
.portfolio {
    background-color: #f1f2f6;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #e76f51;
    color: white;
    border-color: #e76f51;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.portfolio-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(231, 111, 81, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
}

.portfolio-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2d3436;
}

.portfolio-info p {
    color: #636e72;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #f1f2f6;
    color: #636e72;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-cta {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.portfolio-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #2d3436;
}

.btn-secondary {
    display: inline-block;
    background-color: #2d3436;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #1a1e1f;
}

/* О нас и контакты */
.about-contact {
    background-color: #fff;
}
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.contact-info {
    margin-top: 30px;
}
.contact-info h3 {
    margin-bottom: 15px;
}
.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.contact-info i {
    color: #e76f51;
    margin-right: 10px;
    width: 20px;
}
.contact-info a {
    color: #2d3436;
    text-decoration: none;
}
.contact-info a:hover {
    color: #e76f51;
}
.social-links {
    margin-top: 20px;
}
.social-links a {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 15px;
    color: #2d3436;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #e76f51;
}

.loft-image-placeholder {
    height: 350px;
    border-radius: 8px;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=60');
    background-size: cover;
    background-position: center;
}

/* Подвал */
.loft-footer {
    background-color: #2d3436;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f5f5f5;
}
.footer-content p {
    margin-bottom: 10px;
    opacity: 0.8;
}
.small {
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 15px;
        display: none; /* Можно сделать гамбургер-меню */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    .loft-image-placeholder {
        height: 250px;
    }
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    .filter-btn {
        width: 200px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .portfolio-img {
        height: 200px;
    }
}