* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #03060b 0%, #090d16 100%);
    color: #e7e2f3;
    text-align: center;
    animation: fadeInPage 1.1s ease-out both;
}


.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}


header {
    background: linear-gradient(135deg, #080a11 0%, #181d31 100%);
    border-bottom: 1px solid #4c3d7a;
    animation: fadeInPage 1.1s ease-out both;
}

header .container {
    text-align: center;
}

header h1,
header p,
.site-heading,
h2 {
    margin-bottom: 5px;
    color: #9d8cff;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.35),
        0 0 10px rgba(157, 140, 255, 0.25);
    animation: fadeInTitle 1.2s ease-out both;
}

header h1 {
    font-size: 48px;
    text-align: center;
}

h2 {
    font-size: 28px;
}

header p {
    margin: 0;
    color: #c9c9c9;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: none;
    animation: fadeInTitle 1.2s ease-out 0.2s both;
    text-align: center;
}

.tab-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 8px;
}

.tab-button {
    flex: 1 1 160px;
    max-width: 200px;
    text-align: center;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #c9c9c9;
    background: #0f1422;
    color: #e7e2f3;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tab-button:hover,
.tab-button:focus-visible {
    background: #0e111d;
    border-color: #868686;
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #1d2a4b 0%, #4b2e83 100%);
    color: #f4f0ff;
    font-weight: 700;
    border-color: #868686;
}

.tab-button,
#contactButton {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9c9c9;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: none;
}

.tab-button {
    font-size: 14px;
}

#contactButton {
    font-size: 16px;
}


.hero {
    text-align: center;
    padding: 24px 0;
}


.hero h2 {
    font-size: clamp(28px, 4vw, 32px);
}

main .site-heading {
    font-size: 28px;
}

main .page-content h2,
.about h2 {
    margin-top: 0;
}

main .page-content p:first-of-type {
    max-width: 760px;
    margin: 0 auto 30px;
}

.service-category {
    margin: 0 0 16px;
}

main .page-content h2 + .cards,
.about h2 + .cards {
    margin-top: 16px;
}

.service-category.secondary {
    margin-top: 32px;
}


button {
    margin-top: 20px;
    padding: 12px 42px;
    background: linear-gradient(135deg, #1d2a4b 0%, #4b2e83 100%);
    color: #f4f0ff;
    border: 1px solid #c9c9c9;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

button:hover,
button:focus-visible {
    background: #0e111d;
    border-color: #868686;
    transform: translateY(-2px);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
}

.modal.open {
    display: flex;
}

.modal-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #080a11 0%, #181d31 100%);
    border: 1px solid #c9c9c9;
    border-radius: 12px;
    padding: 28px;
    max-width: 420px;
    width: min(100%, 420px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transition: top 0.2s ease-out;
}

.modal-content .contact-group {
    margin-bottom: 18px;
}

.modal-content .contact-group:last-child {
    margin-bottom: 0;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #f5e6c8;
    font-size: 24px;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.modal-content h3 {
    margin: 0 0 8px;
    color: #9d8cff;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-content p {
    margin: 0;
    color: #f5e6c8;
    line-height: 1.6;
}


.cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    width: 100%;
    padding: 32px 28px;
    background: #0f1422;
    border: 1px solid #c9c9c9;
    box-shadow: inset 0 0 0 1px rgba(157, 140, 255, 0.18);
    border-radius: 12px;
}

.card h3 {
    margin: 0 0 16px;
    color: #b7afd3;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow: 0 0 8px rgba(157, 140, 255, 0.2);
}


.about {
    background: #0a0d14;
    border-top: 1px solid #3f2d68;
}


footer {
    text-align: center;
    border-top: 1px solid #4c3d7a;
    padding-bottom: 20px;
    animation: fadeInPage 1.1s ease-out both;
}

.footer-owner {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #8f7bd9;
    letter-spacing: 0.04em;
}

.tab-bar,
.tab-button,
main,
section,
.container,
.hero,
.hero h2,
.hero p,
.hero button,
.cards,
.card,
.about,
.footer-owner {
    animation: fadeInPage 1.1s ease-out both;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}