:root {
    --primary-color: #121212;
    --accent-color: #f5f5f5;
    --text-color: #333;
    --light-text: #f5f5f5;
    --section-padding: 6rem 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Типографика */
h1,
h2,
h3 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 5rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--light-text);
}

h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40%;
    height: 2px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.5rem;
    color: #777;
    font-weight: 300;
    font-size: 1.1rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    color: var(--light-text);
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Навигация */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

header.scrolled .logo {
    color: var(--primary-color);
}

header.scrolled .nav-link {
    color: var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--light-text);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--light-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle i {
    font-size: 1.5rem;
    color: var(--light-text);
    transition: all 0.3s ease;
}

header.scrolled .menu-toggle i {
    color: var(--primary-color);
}

/* Главный экран */
.hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), url('img/back.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--light-text);
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    display: block;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-outline {
    background: transparent;
    color: var(--light-text);
}

.btn-outline:hover {
    background: var(--light-text);
    color: var(--primary-color);
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--light-text);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* О нас */
.about {
    padding: var(--section-padding);
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img {
    position: relative;
    height: 600px;
}

.about-img::before {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80%;
    height: 80%;
    border: 1px solid var(--primary-color);
    z-index: -1;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3rem;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 200;
    color: var(--primary-color);
    margin-bottom: 0;
}

.stat-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Услуги */
.services {
    padding: var(--section-padding);
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service {
    background: #fff;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Портфолио */
.portfolio {
    padding: var(--section-padding);
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #eee;
}

.portfolio-item {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-category {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-title {
    color: #fff;
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* Отзывы */
.testimonials {
    padding: var(--section-padding);
    background: #f9f9f9;
    text-align: center;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #555;
}

.testimonial-author {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-position {
    font-size: 0.9rem;
    color: #999;
}

/* Контакты */
.contact {
    padding: var(--section-padding);
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: none;
    background: #f5f5f5;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: 1px solid var(--primary-color);
}

textarea.form-control {
    resize: none;
    height: 150px;
}

/* Футер */
footer {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--light-text);
    color: var(--primary-color);
}

.footer-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--light-text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Адаптив */
@media (max-width: 992px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-img {
        height: 400px;
        margin-bottom: 2rem;
    }

    .about-img::before {
        bottom: -15px;
        right: -15px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .nav-link {
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .testimonial {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1.2rem;
    }

    .about-img {
        height: 300px;
    }
}

/* Наши преимущества */
.advantages {
    padding: var(--section-padding);
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 40%;
    background: rgba(0, 0, 0, 0.02);
    z-index: 1;
    border-radius: 0 0 0 100%;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #fff;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.advantage-number {
    font-size: 3.5rem;
    font-weight: 200;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.advantage-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.advantage-content p {
    margin-bottom: 0;
}

/* Адаптив для блока преимуществ */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .advantage-item {
        padding: 2rem;
    }

    .advantage-number {
        font-size: 3rem;
    }

    .advantage-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .advantage-item {
        flex-direction: column;
        padding: 1.5rem;
    }

    .advantage-number {
        margin-bottom: 1rem;
    }
}


/* FAQ */
.faq {
    padding: var(--section-padding);
    background-color: #fff;
}

.faq-description {
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.faq-items {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item:hover .faq-question h3 {
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: #777;
    line-height: 1.7;
}

/* Анимация при наведении */
.faq-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1.1rem;
    }

    .faq-toggle {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1.2rem 0;
    }

    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
}