/* Internal pages, contacts, footer, modal */
.page-hero,
.error-hero {
    position: relative;
    padding: 4rem 0 3rem;
}

.page-hero::before,
.error-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(240, 122, 22, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.page-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.2rem;
    align-items: stretch;
}

.page-hero__grid > div:first-child,
.page-hero__facts {
    position: relative;
    z-index: 1;
}

.page-hero__grid > div:first-child {
    display: grid;
    gap: 1rem;
}

.page-hero__facts {
    display: grid;
    gap: 1rem;
}

.page-hero__fact {
    padding: 1.15rem;
}

.page-hero__fact span {
    display: block;
    color: var(--text-muted);
    line-height: 1.6;
}

.workflow-step {
    padding-top: 1.5rem;
}

.workflow-step__index {
    color: var(--primary-color);
}

.topas-info {
    background: linear-gradient(180deg, rgba(240, 122, 22, 0.05), transparent 85%);
}

.topas-info__grid {
    align-items: center;
    gap: 1.4rem;
}

.topas-info__media img {
    border-radius: 24px;
    box-shadow: var(--shadow-light);
}

.topas-info__content {
    padding: 1rem 1.35rem;
}

.topas-info__list {
    padding-left: 1.1rem;
    display: grid;
    gap: 0.65rem;
    color: var(--text-muted);
}

.quick-order__wrap {
    padding-inline: 2rem;
}

.trusted-clients__grid {
    gap: 1.15rem;
}

.trusted-clients__item {
    min-height: 118px;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(24, 36, 47, 0.06);
}

.trusted-clients__item img {
    max-height: 60px;
    object-fit: contain;
}

.trusted-clients__item--summary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-gradient);
    color: #fff;
}

.trusted-clients__item--summary p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.84);
}

.projects .container {
    margin-bottom: 1.4rem;
}

.carousel-track img {
    height: clamp(180px, 26vw, 300px);
    border-radius: 22px;
}

.project-image-content {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.project-image-close {
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(15, 24, 32, 0.7);
    color: #fff;
}

.cta {
    position: relative;
    overflow: visible;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0.5rem 0 0;
    background:
        radial-gradient(circle at top right, rgba(245, 177, 52, 0.2), transparent 34%),
        linear-gradient(135deg, rgba(12, 20, 27, 0.98), rgba(28, 41, 54, 0.94));
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(6, 10, 14, 0.18);
}

.cta .container {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding: 2rem clamp(1rem, 3vw, 2.4rem) 1.8rem;
    text-align: center;
}

.cta h2,
.cta p {
    color: #fff;
}

.cta h2 {
    max-width: 12ch;
}

.cta p {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.78);
}

.cta .cta-button {
    min-width: min(100%, 320px);
    min-height: 56px;
    justify-self: center;
}

.cta .cta-button:hover {
    box-shadow: 0 24px 52px rgba(240, 122, 22, 0.28);
}

[data-theme="dark"] .page-hero::before,
[data-theme="dark"] .error-hero::before {
    background:
        radial-gradient(circle at top left, rgba(240, 122, 22, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(15, 24, 32, 0.42), rgba(15, 24, 32, 0));
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.contact-card {
    display: grid;
    gap: 1rem;
    cursor: pointer;
}

.contact-card a {
    text-decoration: none;
}

.contact-card--primary {
    background: var(--deep-gradient);
    color: #fff;
}

.contact-card--primary p,
.contact-card--primary .contact-list p,
.contact-card--primary .contact-copy-hint {
    color: rgba(255, 255, 255, 0.8);
}

.contact-phones {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.contact-phones li {
    display: grid;
    gap: 0.6rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-actions,
.messenger-list,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.messenger-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.messenger-badge--telegram {
    background: rgba(56, 163, 255, 0.18);
}

.contact-link--secondary {
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-copy-hint {
    font-size: 0.92rem;
}

.map-card {
    display: grid;
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.map-card__content {
    display: flex;
    align-items: center;
    padding: 0.4rem;
}

.map-card iframe {
    width: 100%;
    min-height: 380px;
    border: none;
    border-radius: 22px;
}

.copy-notification {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 0.95rem 1.2rem;
    border-radius: 18px;
    background: rgba(16, 25, 33, 0.92);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2200;
}

.copy-notification.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.footer {
    margin-top: 0;
    padding: 3rem 0 2rem;
    background: #111c25;
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.footer-section {
    min-width: 0;
    display: grid;
    gap: 0.75rem;
}

.footer-section--brand {
    max-width: 22rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-brand img {
    width: 40px;
    height: 40px;
}

.footer-section h3 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
}

.footer-section p,
.footer-section a {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.footer-links a {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal {
    align-items: center;
    justify-content: center;
}

.modal.is-open {
    display: flex;
}

.modal-content {
    width: min(560px, calc(100% - 32px));
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .modal-content {
    background: rgba(20, 31, 41, 0.96);
}

.modal-content h3 {
    margin: 0.5rem 0 0.35rem;
    font-size: 2rem;
}

.modal-description {
    margin: 0 0 1.1rem;
    color: var(--text-muted);
}

.modal-content form {
    display: grid;
    gap: 0.8rem;
}

.modal-content input {
    border-radius: 18px;
    border: 1px solid rgba(24, 36, 47, 0.12);
    background: rgba(244, 239, 231, 0.7);
    padding: 1rem 1.1rem;
    color: var(--text-light);
}

.modal-content input:focus {
    outline: 2px solid rgba(240, 122, 22, 0.25);
    border-color: rgba(240, 122, 22, 0.35);
}

.close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(24, 36, 47, 0.08);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

#responseMessage {
    margin-top: 1rem;
    min-height: 1.2rem;
}

.phone-button {
    right: 20px;
    bottom: 20px;
}

.phone-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--gradient);
    box-shadow: 0 22px 44px rgba(240, 122, 22, 0.22);
}

.phone-icon img {
    width: 26px;
    height: 26px;
}

.error-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
    gap: 1rem;
    padding: 2rem 0 4rem;
}

.error-hero__code {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(240, 122, 22, 0.12);
    color: var(--primary-color);
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
}

@media (max-width: 1100px) {
    .page-hero__grid,
    .map-card {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

