/* Shared layout, footer, newsletter and utility styles. */

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.text-center {
    text-align: center;
}

.justify-content-center {
    justify-content: center;
}

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.p-5 { padding: 2rem; }

.col-sm-3,
.col-sm-5,
.col-sm-7,
.col-sm-9,
.col-sm-12,
.col-md-6,
.col-lg-10 {
    grid-column: span 12;
}

.site-section {
    padding: 72px 0;
}

.site-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

.site-newsletter {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background:
        radial-gradient(760px 380px at 12% 18%, rgba(245, 158, 11, 0.18), transparent 58%),
        radial-gradient(720px 420px at 88% 8%, rgba(14, 165, 233, 0.16), transparent 60%),
        linear-gradient(135deg, #15313f 0%, #1c4852 52%, #204f59 100%);
}

.site-newsletter::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.1;
    pointer-events: none;
}

.site-newsletter__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    align-items: center;
}

.site-newsletter__copy h2 {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.05;
    font-weight: 900;
}

.site-newsletter__copy p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.75;
}

.site-newsletter__form {
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
}

.site-newsletter__grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.site-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.92);
}

.site-input::placeholder {
    color: rgba(15, 23, 42, 0.42);
}

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--cv-accent), var(--cv-accent-dark));
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
}

.site-btn:hover,
.site-btn:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.site-footer {
    padding: 28px 0 42px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.site-footer__top,
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer__top {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.site-footer__brand img {
    display: block;
    max-width: 180px;
}

.site-footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.site-footer__menu a,
.site-footer__copy,
.site-footer__copy a {
    color: rgba(15, 23, 42, 0.7);
    text-decoration: none;
    font-weight: 700;
}

.site-footer__menu a:hover,
.site-footer__copy a:hover {
    color: var(--cv-accent);
}

.site-footer__social {
    display: flex;
    gap: 12px;
}

.site-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.05);
    color: rgba(15, 23, 42, 0.7);
    text-decoration: none;
}

.site-footer__social a:hover {
    background: var(--cv-accent);
    color: #fff;
}

@media (min-width: 768px) {
    .col-sm-3 { grid-column: span 3; }
    .col-sm-5 { grid-column: span 5; }
    .col-sm-7 { grid-column: span 7; }
    .col-sm-9 { grid-column: span 9; }
    .col-sm-12 { grid-column: span 12; }
}

@media (min-width: 992px) {
    .col-md-6 { grid-column: span 6; }
    .col-lg-10 { grid-column: 2 / span 10; }
    .site-newsletter__inner {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

@media (max-width: 900px) {
    .site-newsletter__grid {
        grid-template-columns: 1fr;
    }

    .site-newsletter {
        padding: 56px 0;
    }

    .site-newsletter__copy h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .site-newsletter__form {
        padding: 16px;
        border-radius: 22px;
    }

    .site-input,
    .site-btn {
        min-height: 50px;
    }

    .site-footer__top,
    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__menu,
    .site-footer__social {
        justify-content: flex-start;
    }

    .site-footer__menu {
        gap: 14px;
    }
}
