* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root {
    --text-color-1: #1e293b;
    --text-color-2: #575f6bFF;
    --primary-1: #1565c0;
    --primary-2: #1e88e5;
    --primary-3: #2196f3;
    --primary-4: #42a5f5;
    --primary-5: #64b5f6;
    --primary-6: #90caf9;
    --primary-7: #bbdefb;
    --primary-8: #e3f2fd;
    --border: rgba(75, 85, 99, 0.25);
    --side-padding: 5rem;
}
html {
    scroll-behavior: smooth;
}
body {
    min-height: 100vh;
    color: #1e293b;
    font-family: "Poppins", sans-serif;
    background-color: #fafafaFF;
    position: relative;
    overflow-x: hidden;
}
p {
    font-family: "Merriweather", sans-serif;
}
a {
    text-decoration: unset;
    color: var(--text-color-1);
}
main {
    display: grid;
    gap: 9rem;
    padding-top: 5rem;
    margin-bottom: 8rem;
}
li {
    list-style: none;
}
.arrow-right {
    width: 1.25rem;
}

/* ── Header ─────────────────────────────────────────────── */
header {
    width: 100%;
    position: fixed;
    z-index: 100;
    background-color: white;
}
header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem var(--side-padding);
    border-bottom: 1px solid var(--primary-1);
}
.logotype {
    width: 8rem;
}
header nav ul {
    display: flex;
    align-items: center;
    gap: 1rem;
}
header nav ul li a {
    list-style: none;
    transition: all 200ms;
}
header nav ul li a:hover {
    color: var(--text-color-2);
    cursor: pointer;
}
header nav ul li:nth-child(3) {
    margin-right: 0.75rem;
}

/* ── Buttons & Chips ─────────────────────────────────────── */
.button {
    min-width: 8rem;
    min-height: 2rem;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 40px;
    background-image: linear-gradient(to bottom, rgba(66, 165, 245, 1) 0%, rgba(21, 101, 192, 1) 100%);
    box-shadow: 3px 3px 20px 0px #24415d33;
    transition: all 200ms;
}
.button.big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 12rem;
    min-height: 2.75rem;
    font-size: 1.25rem;
    font-weight: 500;
}
.button:hover {
    filter: brightness(1.25);
    cursor: pointer;
}

.chip-outline {
    padding: 0.25rem 1.25rem;
    border-radius: 40px;
    font-size: 0.85rem;
    border: 2px solid var(--primary-5);
    color: var(--primary-5);
    font-weight: bold;
    width: fit-content;
}

.chip {
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    background-color: var(--primary-5);
    color: white;
    font-weight: bold;
    width: fit-content;
}

/* ── Home ────────────────────────────────────────────────── */
#home {
    display: grid;
    position: relative;
}
#home-text {
    display: flex;
    position: relative;
    z-index: 10;
    flex-direction: column;
    width: fit-content;
    max-width: 32rem;
    padding-top: 5rem;
    padding-left: var(--side-padding);
}
#home-img {
    display: grid;
    position: absolute;
    left: 48vw;
    z-index: -100;
    top: 0%;
    width: 100%;
}
#home-img img {
    place-self: end;
    width: 50vw;
    max-width: 38rem;
    height: clamp(24rem, 55vw, 32rem);
    object-fit: cover;
    border-radius: 0 0 20px 20px;
    box-shadow: 3px 3px 20px 0px #24415d33;
}

#home-greeting {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#home-greeting .chip-outline {
    border: 2px solid var(--primary-3);
    color: var(--primary-3);
}

#home-greeting img {
    width: 3rem;
    clip-path: circle();
    border: 2px solid var(--primary-3);
    border-radius: 100%;
}

@media (max-width: 1120px) {
    #home-img { left: 45vw; }
}
@media (max-width: 1008px) {
    #home-img { left: 40vw; }
}
#home-text-container {
    display: flex;
    flex-direction: column;
}
#home-text-container h1 {
    margin-top: 1.5rem;
    font-size: 2.25rem;
    line-height: 2rem;
}
#home-text-container h2 {
    font-size: 1.75rem;
    color: var(--primary-3);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
#home-text-container p {
    margin-bottom: 1.5rem;
}
#home-cta {
    width: 100%;
    display: flex;
    justify-content: end;
}

/* ── Benefits ────────────────────────────────────────────── */
#home-benefits {
    display: flex;
    justify-content: space-between;
    gap: 5rem;
    padding-top: 5rem;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    position: relative;
    z-index: 10;
    margin-top: 2rem;
    font-family: "Ubuntu Condensed";
    font-size: 1.34rem;
}
#double-benefits {
    display: flex;
    position: relative;
}
#single-benefit, #double-benefits {
    display: flex;
    min-width: 17rem;
    height: 4.75rem;
    gap: 1rem;
    border: 1px solid var(--primary-1);
    background-color: #ffffff;
    align-items: center;
    padding-left: 1rem;
}
div #double-benefits {
    min-width: 30rem;
    padding-right: 2rem;
    justify-content: space-between;
}
#benefit-budget-friendly, #benefit-quote {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.benefit-separator {
    height: 60%;
    width: 1px;
    background-color: var(--primary-1);
}
.benefit-card-wrapper {
    display: grid;
    position: relative;
    z-index: 2;
}
.benefit-card-wrapper:nth-child(1) .benefit-bg-right {
    position: absolute;
    left: 40%;
    right: -0.5rem;
    height: 4.75rem;
    background-color: var(--primary-1);
    bottom: -0.5rem;
    z-index: -10;
}
#double-benefits .benefit-bg-left {
    position: absolute;
    left: -0.5rem;
    width: 42%;
    height: 4.75rem;
    background-color: var(--primary-1);
    bottom: -0.5rem;
    z-index: -1;
}
#double-benefits .benefit-bg-right {
    position: absolute;
    right: -0.5rem;
    width: 42%;
    height: 4.75rem;
    background-color: var(--primary-1);
    bottom: 0.65rem;
    z-index: -1;
}
#single-benefits .benefit-text {
    display: flex;
}
.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-1);
    color: #ffffff;
    width: fit-content;
    height: fit-content;
    padding: 0.5rem;
}

/* ── Section shared ──────────────────────────────────────── */
.section-container {
    display: flex;
    flex-direction: column;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    min-width: 0;
}
.subtitle {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    font-size: 1.25rem;
}
.subtitle .subtitle-div {
    width: 1.75rem;
    height: 1px;
    background-color: var(--primary-1);
}
h2 {
    font-size: 3rem;
    font-weight: normal;
}
.section-header {
    margin-bottom: 1.3rem;
}
.section-header-title {
    display: flex;
    place-content: center;
    justify-content: space-between;
    height: fit-content;
}
.legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 13rem;
    font-size: 0.85rem;
}
.legend-div {
    height: 100%;
    max-height: 3rem;
    width: 1px;
    background-color: var(--primary-1);
}

/* ── Services ────────────────────────────────────────────── */
#service-list {
    display: flex;
    justify-content: space-between;
}
#service-list li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 3rem 2.5rem;
    gap: 1rem;
}
#service-list .card-img {
    width: 8rem;
}
#service-list .service-text {
    display: flex;
    flex-direction: column;
}
#service-list .service-text span {
    color: #22c55e;
    font-weight: 500;
}
#service-list .service-text h3 {
    margin-top: 0.25rem;
    margin-bottom: 1.75rem;
}
#service-list h3 {
    font-family: "Ubuntu Condensed";
    font-weight: 500;
    font-size: 1.75rem;
    max-width: 12rem;
}
#service-list .button {
    width: 10rem;
    height: 2.45rem;
    font-size: 1rem;
}
#service-list li {
    border-top: 1px solid var(--border);
}
#service-list li:not(:first-child) {
    border-left: 1px solid var(--border);
}

/* ── Technologies ────────────────────────────────────────── */
#technologies {
    display: grid;
    position: relative;
}
.carousel {
    display: grid;
    top: 7rem;
    position: absolute;
    width: 100%;
    overflow: hidden;
}
.carousel-list {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: max-content;
    animation: marquee 18s linear infinite;
}
.carousel-list img {
    width: 4.5rem;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.technologies-img {
    display: grid;
    position: relative;
    width: fit-content;
    justify-content: center;
    place-self: center;
}
.technologies-img .button {
    position: absolute;
    align-items: center;
    left: 35%;
    top: 60%;
}
.notebook-img {
    width: clamp(32rem, 70vw, 42rem);
}
@media (max-width: 450px) {
    .carousel { top: 5rem; }
}
@media (max-width: 356px) {
    .technologies-img .button { left: 25%; top: 60%; }
}

/* ── Project Carousel ────────────────────────────────────── */

/*
 * Abordagem: remover alturas fixas e deixar o conteúdo
 * determinar a altura naturalmente. O wrapper usa
 * padding-bottom para preservar a visibilidade da sombra dos cards.
 * Os cards são alinhados em altura pelo próprio flexbox (align-items: stretch).
 */

#project-carousel-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    /* sem height fixa — deixa o conteúdo determinar */
}

#project-carousel {
    display: flex;
    align-items: stretch; /* todos os cards com a mesma altura */
    gap: 2rem;
    width: 100%;
    padding-top: 2rem;
    padding-left: 2rem;
    padding-bottom: 1.5rem; /* espaço para a box-shadow não ser cortada */
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#project-carousel::-webkit-scrollbar {
    display: none;
}

#project-carousel li {
    min-width: 22rem;
    max-width: 32rem;
    flex-shrink: 0;
    display: flex; /* necessário para section herdar altura total */
}

#project-carousel li section {
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    background-color: white;
    box-shadow: -4px -4px 30px 0px #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
}

#project-carousel li section img {
    width: 10rem;
    height: 8rem;
    object-fit: cover;
    border-radius: 1rem;
    flex-shrink: 0;
}

#project-carousel li section .chip {
    border: unset;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    font-weight: 400;
}

#project-carousel li section .chip:nth-child(1) {
    height: 2rem;
}

#project-carousel li section .chip:nth-child(2) {
    width: 7rem;
    height: 2rem;
}

#project-carousel .first-row {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

#project-carousel .subinfos {
    display: flex;
    align-items: center;
    gap: 1.45rem;
}

#project-carousel .right-side-project-item h4 {
    color: var(--text-color-2);
    font-size: 1.45rem;
}

#project-carousel .right-side-project-item small {
    font-weight: 400;
    color: #575f6bFF;
    font-size: 0.75rem;
    width: 100%;
}

#project-carousel .right-side-project-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0; /* permite encolher sem vazar */
}

#project-carousel section p {
    color: var(--text-color-2);
    font-family: "Merriweather", sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Botões de navegação */
.carousel-btn {
    position: absolute;
    top: calc(50% - 0.75rem); /* centraliza descontando o padding-bottom */
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.carousel-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: #374151;
    stroke-width: 2.5;
    fill: none;
}
.carousel-btn:hover {
    background: #f3f4f6;
}
.carousel-btn-prev { left: 0.5rem; }
.carousel-btn-next { right: 0.5rem; }

#project-carousel-wrapper:hover .carousel-btn:not(:disabled) {
    opacity: 1;
}

/* Gradientes laterais */
#project-carousel-wrapper::before,
#project-carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4rem;
    z-index: 5;
    pointer-events: none;
}
#project-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fafafa, transparent);
}
#project-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fafafa, transparent);
}

.project-link {
    transition: 200ms all;
}
.project-link:hover {
    filter: brightness(1.25);
}
.project-link > .chip:hover {
    cursor: pointer;
}

/* ── Contacts ────────────────────────────────────────────── */
#contacts-header-title {
    display: flex;
    justify-content: center !important;
}
#contacts-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-self: center;
    gap: 1.2rem 12rem;
    width: fit-content;
}
#contacts-list img {
    width: 1.65rem;
    background-color: var(--primary-1);
    padding: 0.15rem;
    border-radius: 0.5rem;
}
.contact-item {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 0.45rem;
    transition: all 200ms;
}
.contact-item:hover {
    filter: brightness(1.25);
    cursor: pointer;
    color: var(--text-color-2);
}
#contacts .action {
    place-self: center;
    margin-top: 2rem;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--primary-1);
    padding-top: 2rem;
}
#footer-infos {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    padding-bottom: 3rem;
}
#footer-infos .logotype {
    width: 15rem;
    height: 7rem;
}
#footer-text-infos {
    display: flex;
    align-items: start;
    gap: 4rem;
}
#reachout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#reachout span {
    font-size: 1.4rem;
    font-weight: 500;
}
.footer-separator {
    height: 5rem;
    width: 1px;
    background-color: var(--primary-1);
    place-self: center;
}
#aboutme {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: end;
}
#aboutme span {
    font-size: 1.4rem;
    font-weight: 500;
}
.footer-option {
    transition: all 200ms;
}
.footer-option:hover {
    color: var(--text-color-2);
    cursor: pointer;
}
#footer-extra {
    display: flex;
    justify-content: space-between;
    background-color: var(--primary-1);
    padding: 1rem 2rem;
    color: white;
}
#rights {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
#rights span:nth-child(1) {
    font-weight: 500;
}
#rights span:nth-child(2) {
    font-weight: 400;
    font-size: 0.85rem;
}
#footer-social-media {
    display: flex;
    gap: 1rem;
    color: white;
    place-self: center;
}
#footer-social-media li {
    transition: all 200ms;
}
#footer-social-media li:hover {
    filter: brightness(0.75);
    cursor: pointer;
}
#footer-social-media img {
    width: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — de 2800px até 300px
   ═══════════════════════════════════════════════════════════ */

/* ── Telas muito grandes (1600px – 2800px) ───────────────── */
@media (min-width: 1600px) {
    :root { --side-padding: 8rem; }
    h2 { font-size: 3.75rem; }
    #home-text { max-width: 40rem; }
    #home-img img { max-width: 48rem; height: clamp(28rem, 45vw, 38rem); }
    #home-text-container h1 { font-size: 2.75rem; }
    #home-text-container h2 { font-size: 2.1rem; }
    #home-text-container p  { font-size: 0.8rem; }
    #project-carousel li { min-width: 29rem; max-width: 40rem; }
}
@media (min-width: 2000px) {
    :root { --side-padding: 12rem; }
    h2 { font-size: 4.5rem; }
    body { font-size: 1.1rem; }
    .button     { min-width: 10rem; min-height: 2.5rem; font-size: 1.1rem; }
    .button.big { min-width: 14rem; min-height: 3.25rem; font-size: 1.4rem; }
    #project-carousel li { min-width: 30rem; max-width: 46rem; }
    #contacts-list { gap: 1.5rem 18rem; }
}
@media (min-width: 2400px) {
    :root { --side-padding: 16rem; }
    body { font-size: 1.2rem; }
    h2 { font-size: 5rem; }
}

/* ── Tablet Landscape (900px – 1099px) ───────────────────── */
@media (max-width: 1099px) {
    :root { --side-padding: 3.5rem; }
    h2 { font-size: 2.5rem; }
    header nav { display: none; }
    main { padding-top: 0; }
    #home-img img { width: 48vw; height: clamp(20rem, 48vw, 28rem); }
    #home-benefits { gap: 2rem; }
    div #double-benefits { min-width: 24rem; }
    #service-list { display: grid; grid-template-columns: 1fr 1fr; }
    #service-list li { display: grid; justify-content: center; text-align: center; }
    #service-list .service-text h3 { max-width: 16rem; }
    #service-list .card-img { place-self: center; }
    #service-list button { place-self: center; }
    #service-list li:nth-child(2) { border-left: 1px solid var(--border); }
    #service-list li:nth-child(3) { border-left: none; border-top: 1px solid var(--border); }
    #service-list li:nth-child(4) { border-left: 1px solid var(--border); }
    #contacts-list { gap: 1.2rem 6rem; }
    #footer-text-infos { gap: 2.5rem; }
}

/* ── Tablet Portrait (650px – 899px) ─────────────────────── */
@media (max-width: 899px) {
    :root { --side-padding: 2.5rem; }
    main { gap: 6rem; }
    h2 { font-size: 2.1rem; }
    #home-text { max-width: 100%; padding-right: var(--side-padding); }
    #home-img { left: 0; }
    #home-img img {
        width: 80vw;
        opacity: 0.65;
        max-width: unset;
        height: clamp(18rem, 60vw, 28rem);
        border-bottom-left-radius: 8rem;
        border-bottom-right-radius: 0;
    }
    #home-text-container h1 { font-size: 1.9rem; line-height: 1.85rem; }
    #home-text-container h2 { font-size: 1.4rem; }
    #home-benefits { flex-direction: column; gap: 1.5rem; padding-top: 3rem; }
    #single-benefit, #double-benefits { min-width: unset; width: 100%; }
    div #double-benefits { min-width: unset; width: 100%; padding-right: 1rem; }
    .benefit-card-wrapper:nth-child(1) { display: none; }
    #service-list li { padding: 2rem 1.5rem; }
    #service-list h3 { font-size: 1.4rem; }
    .notebook-img { width: clamp(22rem, 85vw, 36rem); }
    .carousel-list img { width: 3rem; }

    /* Carousel: cards um pouco menores, imagem reduzida */
    #project-carousel li { min-width: 18rem; max-width: 29rem; }
    #project-carousel li section img { width: 8rem; height: 6.5rem; }
    #project-carousel .right-side-project-item h4 { font-size: 1.25rem; }

    #contacts-list { gap: 1rem; }
    #footer-infos { flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
    #footer-infos .logotype { width: 10rem; height: auto; }
    #footer-text-infos { flex-direction: column; align-items: center; gap: 2rem; width: 100%; }
    .footer-separator { display: none; }
    #aboutme { text-align: center; }
    #footer-extra { flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
}

/* ── Mobile (450px – 649px) ──────────────────────────────── */
@media (max-width: 649px) {
    :root { --side-padding: 1.5rem; }
    main { gap: 5rem; }
    h2 { font-size: 1.75rem; }
    .legend-div { display: none; }
    .button     { min-width: 7rem; font-size: 0.9rem; }
    .button.big { min-width: 10rem; min-height: 2.5rem; font-size: 1.05rem; }
    #home-text { padding-top: 3.5rem; }
    #home-text-container h1 { font-size: 1.6rem; line-height: 1.6rem; margin-top: 1rem; }
    #home-text-container h2 { font-size: 1.2rem; }
    #home-text-container p  { font-size: 0.9rem; }
    #home-img img { opacity: 0.45; width: 90vw; }
    #service-list { grid-template-columns: 1fr; }
    #service-list li:nth-child(2),
    #service-list li:nth-child(3),
    #service-list li:nth-child(4) { border-left: none; border-top: 1px solid var(--border); }
    #service-list li { padding: 1.75rem 1.25rem; }
    .notebook-img { width: clamp(18rem, 90vw, 28rem); }

    /*
     * Carousel mobile: empilha imagem acima do conteúdo
     * para evitar que a first-row fique espremida em cards estreitos
     */
    #project-carousel li { min-width: 15rem; max-width: 20rem; }
    #project-carousel li section { padding: 1.25rem; gap: 0.85rem; }
    #project-carousel .first-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    #project-carousel li section img {
        width: 100%;
        height: 7rem;
    }
    #project-carousel .right-side-project-item { gap: 0.4rem; }
    #project-carousel .right-side-project-item h4 { font-size: 1.05rem; }
    #project-carousel .subinfos { gap: 0.75rem; }
    #project-carousel section p { font-size: 0.78rem; }

    .section-header-title { flex-direction: column; gap: 0.25rem; }
    .legend { max-width: unset; }
    #contacts-list { gap: 0.85rem; }
}

/* ── Small Mobile (300px – 449px) ───────────────────────── */
@media (max-width: 449px) {
    :root { --side-padding: 1rem; }
    main { gap: 4rem; margin-bottom: 5rem; }
    h2 { font-size: 1.5rem; }
    body { font-size: 0.9rem; }
    .button     { min-width: 6rem; min-height: 1.85rem; font-size: 0.8rem; }
    .button.big { min-width: 9rem; min-height: 2.25rem; font-size: 0.95rem; }
    #home-text-container h1 { font-size: 1.35rem; line-height: 1.4rem; }
    #home-text-container h2 { font-size: 1rem; }
    #home-benefits { display: none; }

    /* Carousel: cards menores, esconde descrição para economizar espaço */
    #project-carousel li { min-width: 12rem; max-width: 17rem; }
    #project-carousel li section { padding: 0.9rem; gap: 0.65rem; }
    #project-carousel li section img { height: 5.5rem; }
    #project-carousel .right-side-project-item h4 { font-size: 0.95rem; }
    #project-carousel .right-side-project-item small { font-size: 0.7rem; }
    #project-carousel .subinfos { gap: 0.5rem; }
    #project-carousel section p { display: none; } /* esconde descrição — muito pouco espaço */
    #project-carousel li section .chip,
    #project-carousel li section .chip-outline { 
        font-size: 0.7rem; 
        padding: 0.4rem 0.75rem; 
    }

    .contact-item { font-size: 0.85rem; }
    #contacts-list { gap: 0.75rem; }
    #footer-infos .logotype { width: 10rem; }
    #reachout span, #aboutme span { font-size: 1.1rem; }
    #footer-extra { padding: 0.75rem 1rem; }
    #rights span:nth-child(1) { font-size: 0.8rem; }
    #rights span:nth-child(2) { font-size: 0.7rem; }
    #footer-social-media img { width: 1.5rem; }
}

@media (max-width: 420px) {
    #contacts { width: 100%; }
    #contacts-list li:nth-child(4),
    #contacts-list li:nth-child(5),
    #contacts-list li:nth-child(6) { display: none; }
    #aboutme { display: none; }
}
@media (max-width: 370px) {
    #contacts-list { grid-template-columns: 1fr; }
}
