/* Main Content */
main {
}

/* Main Block */
.main-block {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    color: #f5f5f5;
}

/* Sections */
.main-block section {
    margin-bottom: 100px;
}

.main-block h1,
.main-block h2,
.main-block h3 {
    font-family: "Fjalla One", sans-serif;
    line-height: 1.3;
}

.main-block h1 {
    max-width: 800px;
    margin: 15px 0 25px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.main-block h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.main-block h3 {
    font-size: 1.4rem;
}

.main-block p {
    max-width: 750px;
    color: #c4c4c4;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Hero */
.hero-section {
    padding: 70px 0 60px;
}

.hero-section .section-label {
    color: #af4428;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero-section > p:not(.section-label) {
    max-width: 650px;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* Buttons */
.main-block .btn {
    display: inline-block;
    margin: 10px 15px 10px 0;
    padding: 13px 22px;
    border: 2px solid #af4428;
    border-radius: 4px;
    background-color: #af4428;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease;
}

.main-block .btn:hover {
    background-color: transparent;
    color: #af4428;
}

/* Links */
.main-block .link-site {
    color: #af4428;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-block .link-site:hover {
    color: #fff;
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Service Cards */
.service-card {
    padding: 28px;
    border: 1px solid #414141;
    border-top: 3px solid #af4428;
    border-radius: 5px;
    background-color: #262626;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: #af4428;
    transform: translateY(-3px);
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.98rem;
}

.service-card ul {
    padding-left: 22px;
    color: #c4c4c4;
    line-height: 2;
}

.service-card li {
    padding-left: 4px;
}

.service-card li::marker {
    color: #af4428;
}

/* Development Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.process-card {
    padding: 28px;
    border: 1px solid #414141;
    border-radius: 5px;
    background-color: #262626;
}

.process-number {
    display: inline-block;
    margin-bottom: 15px;
    color: #af4428;
    font-family: "Fjalla One", sans-serif;
    font-size: 1.8rem;
}

.process-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.process-card p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* Technical Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.skills-list span {
    padding: 10px 16px;
    border: 1px solid #414141;
    border-radius: 4px;
    background-color: #292929;
    color: #e5e5e5;
    font-size: 0.95rem;
}

/* Contact */
.contact-section {
    padding: 45px;
    border-left: 4px solid #af4428;
    background-color: #292929;
}

.contact-section h2 {
    margin-top: 0;
}

.contact-section p {
    margin-bottom: 25px;
}

.contact-section .link-site {
    display: inline-block;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    main {
        margin-left: 0;
        padding: 30px;
    }

    .main-block {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    main {
        padding: 20px;
    }

    .main-block section {
        margin-bottom: 65px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .main-block h1 {
        font-size: clamp(2.3rem, 10vw, 3.5rem);
    }

    .main-block h2 {
        font-size: 1.7rem;
    }

    .service-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .process-card {
        padding: 22px;
    }

    .contact-section {
        padding: 25px;
    }

    .skills-list {
        gap: 8px;
    }

    .skills-list span {
        padding: 9px 12px;
    }
}