/* ====================
   Общие стили
   ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    background: #FFFFFF;
    color: #21243D;
}

/* ====================
   Навигация
   ==================== */

.navbar {
    padding: 27px 0;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 20px;
    color: #000000;
    margin-left: 33px;
}

.navbar-nav .nav-link:hover {
    color: #FF6464;
}

/* ====================
   Герой секция
   ==================== */

.hero-section {
    padding: 140px 0 70px;
}

.hero-content h1 {
    font-weight: 700;
    font-size: 40px;
    line-height: 60px;
    color: #21243D;
    margin-bottom: 30px;
}

.hero-content p {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #21243D;
    margin-bottom: 44px;
}

.btn-download {
    background: #FF6464;
    border-radius: 8px;
    padding: 13px 20px;
    font-weight: 500;
    font-size: 20px;
    color: #FFFFFF;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-download:hover {
    background: #e55555;
    color: #FFFFFF;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image-bg {
    width: 350px;
    height: 350px;
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-image img {
    width: 500px;
    height: 350px;
    border-radius: 5%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* ====================
   Секция постов
   ==================== */

.recent-posts {
    background: #EDF7FA;
    padding: 32px 0 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-header h2 {
    font-weight: 400;
    font-size: 22px;
    color: #21243D;
}

.section-header a {
    font-weight: 400;
    font-size: 16px;
    color: #00A8CC;
    text-decoration: none;
}

.section-header a:hover {
    text-decoration: underline;
}

.post-card {
    background: #FFFFFF;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0px 4px 10px rgba(187, 225, 250, 0.25);
    height: 100%;
}

.post-card h3 {
    font-weight: 700;
    font-size: 26px;
    line-height: 38px;
    color: #21243D;
    margin-bottom: 17px;
}

.post-meta {
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #21243D;
    margin-bottom: 11px;
}

.post-meta span {
    margin: 0 13px;
}

.post-card p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #21243D;
}

/* ====================
   Секция работ
   ==================== */

.featured-works {
    padding: 32px 0 83px;
}

.featured-works h2 {
    font-weight: 400;
    font-size: 22px;
    color: #21243D;
    margin-bottom: 22px;
}

.work-item {
    display: flex;
    gap: 18px;
    padding: 30px 0;
    border-bottom: 1px solid #E0E0E0;
}

.work-item:first-child {
    padding-top: 0;
}

.work-item:last-child {
    border-bottom: none;
}

.work-image {
    flex-shrink: 0;
}

.work-image img {
    width: 246px;
    height: 180px;
    border-radius: 6px;
    object-fit: cover;
}

.work-content h3 {
    font-weight: 700;
    font-size: 30px;
    line-height: 44px;
    color: #21243D;
    margin-bottom: 16px;
}

.work-meta {
    margin-bottom: 20px;
}

.year-badge {
    background: #142850;
    border-radius: 16px;
    padding: 2px 10px;
    font-weight: 900;
    font-size: 18px;
    color: #FFFFFF;
    display: inline-block;
    margin-right: 26px;
}

.work-category {
    font-weight: 400;
    font-size: 20px;
    color: #8695A4;
    display: inline-block;
}

.work-content p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #21243D;
}

/* ====================
   Страница контактов
   ==================== */

.contact-page {
    padding: 64px 0 83px;
    min-height: calc(100vh - 300px);
}

.contact-title {
    font-weight: 700;
    font-size: 44px;
    line-height: 60px;
    color: #21243D;
    margin-bottom: 20px;
    text-align: center;
}

.contact-subtitle {
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #21243D;
    text-align: center;
    margin-bottom: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #E0E0E0;
}

.contact-item:first-of-type {
    padding-top: 0;
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #EDF7FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 28px;
    color: #FF6464;
}

.contact-info {
    flex-grow: 1;
}

.contact-method {
    font-weight: 500;
    font-size: 20px;
    line-height: 29px;
    color: #21243D;
    margin-bottom: 8px;
}

.contact-link {
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #00A8CC;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #FF6464;
    text-decoration: underline;
}

.social-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E0E0E0;
    text-align: center;
}

.social-heading {
    font-weight: 500;
    font-size: 22px;
    line-height: 32px;
    color: #21243D;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    color: #21243D;
    font-size: 40px;
    transition: color 0.3s, transform 0.3s;
}

.social-link:hover {
    color: #FF6464;
    transform: scale(1.1);
}

.availability-info {
    margin-top: 50px;
    padding: 30px;
    background: #EDF7FA;
    border-radius: 6px;
}

.availability-info p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #21243D;
    margin-bottom: 12px;
}

.availability-info p:last-child {
    margin-bottom: 0;
}

.availability-info strong {
    font-weight: 700;
}

/* ====================
   Страница детального проекта
   ==================== */

.work-detail {
    padding: 64px 0 83px;
}

.detail-header {
    margin-bottom: 40px;
}

.detail-title {
    font-weight: 700;
    font-size: 34px;
    line-height: 50px;
    color: #21243D;
    margin-bottom: 24px;
}

.detail-meta {
    margin-bottom: 24px;
}

.detail-year {
    background: #FF7C7C;
    border-radius: 16px;
    padding: 4px 12px;
    font-weight: 900;
    font-size: 18px;
    color: #FFFFFF;
    display: inline-block;
    margin-right: 20px;
}

.detail-category {
    font-weight: 400;
    font-size: 20px;
    color: #21243D;
    display: inline-block;
}

.detail-intro {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #21243D;
    margin: 0;
}

.detail-image-block {
    margin: 40px 0;
}

.detail-image-block img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.detail-content {
    margin: 40px 0;
}

.content-heading-1 {
    font-weight: 700;
    font-size: 30px;
    line-height: 44px;
    color: #21243D;
    margin-bottom: 16px;
}

.content-heading-2 {
    font-weight: 500;
    font-size: 24px;
    line-height: 35px;
    color: #21243D;
    margin-bottom: 16px;
}

.content-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #21243D;
    margin: 0;
}

/* ====================
   Страница работ
   ==================== */

.works-page {
    padding: 64px 0 83px;
    min-height: calc(100vh - 300px);
}

.works-title {
    font-weight: 700;
    font-size: 44px;
    line-height: 60px;
    color: #21243D;
    margin-bottom: 48px;
}

.works-project {
    padding: 48px 0;
    border-bottom: 1px solid #E0E0E0;
}

.works-project:first-of-type {
    padding-top: 0;
}

.works-project:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.project-image img {
    border-radius: 6px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-content {
    padding-left: 0;
}

.project-title {
    font-weight: 700;
    font-size: 30px;
    line-height: 44px;
    color: #21243D;
    margin-bottom: 20px;
}

.project-meta {
    margin-bottom: 24px;
}

.project-year {
    background: #142850;
    border-radius: 16px;
    padding: 4px 12px;
    font-weight: 900;
    font-size: 18px;
    color: #FFFFFF;
    display: inline-block;
    margin-right: 20px;
}

.project-category {
    font-weight: 400;
    font-size: 20px;
    color: #8695A4;
    display: inline-block;
}

.project-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #21243D;
    margin: 0;
}

/* ====================
   Страница блога
   ==================== */

.blog-page {
    padding: 64px 0 83px;
    min-height: calc(100vh - 300px);
}

.blog-title {
    font-weight: 700;
    font-size: 44px;
    line-height: 60px;
    color: #21243D;
    margin-bottom: 55px;
}

.blog-article {
    padding: 32px 0;
    border-bottom: 1px solid #E0E0E0;
}

.blog-article:first-of-type {
    padding-top: 0;
}

.blog-article:last-of-type {
    border-bottom: none;
}

.article-title {
    font-weight: 700;
    font-size: 30px;
    line-height: 44px;
    color: #21243D;
    margin-bottom: 16px;
}

.article-meta {
    font-weight: 400;
    font-size: 20px;
    line-height: 29px;
    color: #21243D;
    margin-bottom: 16px;
}

.article-meta span {
    margin: 0 16px;
    color: #21243D;
}

.article-excerpt {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #21243D;
    margin: 0;
}

/* Активная ссылка в навигации */
.navbar-nav .nav-link.active {
    color: #FF6464;
}

/* ====================
   Футер
   ==================== */

footer {
    text-align: center;
    padding: 51px 0;
}

.social-icons {
    margin-bottom: 26px;
}

.social-icons a {
    color: #21243D;
    font-size: 30px;
    margin: 0 17.5px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #FF6464;
}

footer p {
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #21243D;
}

/* ====================
   Адаптивность
   ==================== */

/* Планшеты */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 32px;
        line-height: 46px;
    }

    .work-item {
        flex-direction: column;
    }

    .work-image img {
        width: 100%;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 34px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .post-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
        line-height: 40px;
    }

    .post-card h3 {
        font-size: 22px;
        line-height: 32px;
    }

    .work-content h3 {
        font-size: 24px;
        line-height: 36px;
    }

    .work-category {
        font-size: 18px;
    }

    /* Works page mobile */
    .works-title {
        font-size: 32px;
        line-height: 46px;
    }

    .project-title {
        font-size: 24px;
        line-height: 36px;
    }

    .project-category {
        font-size: 18px;
    }

    /* Blog page mobile */
    .blog-title {
        font-size: 32px;
        line-height: 46px;
    }

    .article-title {
        font-size: 24px;
        line-height: 36px;
    }

    /* Work detail page mobile */
    .detail-title {
        font-size: 26px;
        line-height: 38px;
    }

    .content-heading-1 {
        font-size: 24px;
        line-height: 36px;
    }

    .content-heading-2 {
        font-size: 20px;
        line-height: 30px;
    }

    .detail-image-block {
        margin: 30px 0;
    }

    /* Contact page mobile */
    .contact-title {
        font-size: 32px;
        line-height: 46px;
    }

    .contact-subtitle {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 40px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        margin-right: 16px;
    }

    .contact-icon i {
        font-size: 24px;
    }

    .contact-method {
        font-size: 18px;
    }

    .contact-link {
        font-size: 16px;
        word-break: break-all;
    }

    .social-links {
        gap: 20px;
    }

    .social-link {
        font-size: 32px;
    }

    .availability-info {
        padding: 20px;
    }
}

/* Sticky footer across pages that use plain <footer> */
footer { margin-top: auto; }
