.header-custom {
    padding: 10px;
}

.header-custom nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
    flex-wrap: wrap;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.brand-logo img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
}

.nav-links li {
    position: relative;
    padding-bottom: 8px;
}

.nav-links li a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.05rem;
}

.nav-links li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f86c35;
    transition: background-color 0.3s ease;
}

.nav-links li a:hover::after {
    background-color: #f86c35;
}

.nav-links li a:hover {
    background-color: #f86c35;
    color: white;
}

/* === АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ И ПЛАНШЕТОВ === */
@media (max-width: 1024px) {
    .brand-name {
        /*display: none;*/
    }
    .brand-logo img {
        width: 72px;
        height: 72px;
    }
    .header-custom nav {
        justify-content: center;
        row-gap: 5px;
    }

    .nav-links {
        justify-content: center;
        gap: 4px;
    }

    .nav-links li a {
        padding: 3px 8px;
        font-size: 1rem;
    }
}

/* === Центрирование на средних экранах (769–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-custom nav {
        justify-content: center;
        gap: 4px;
    }
    .brand-section {
        justify-content: center;
    }
    .nav-links li a {
        font-size: 1rem;
    }
}












.first-button {
    background-color: #f86c35;
    width: 200px; 
    text-align: center;
}
.first-button:hover {
    background-color: #fbb59a;
    color: black;
}

main.container {
  padding-top: 0.5rem;   /* Уменьшить отступ сверху */
  padding-bottom: 0.5rem;/* Уменьшить отступ снизу */
}

.grid-3 > article.card {
  margin: 0.25rem;
}
.card h3 {
    font-size: 1em;
    margin-bottom: 1em;
}
.card p {
    font-size: 1em;
}

.form-contact-button {
    background-color: #f86c35;
    text-align: center;
}
.form-contact-button:hover {
    background-color: #fbb59a;
    color: black;
}
.contact-form input:focus,
.contact-form textarea:focus {
  --form-element-active-border-color: #f86c35;
  --form-element-focus-color: rgba(248, 108, 53, 0.25);
}