* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f1f5f9;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 2rem;
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.header__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header__brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 1.25rem;
}
.header__brand-logo {
    height: 3rem;
    width: auto;
}
.header__brand-title {
    font-size: 1.25rem;
    white-space: nowrap;
}
.header__search {
    flex: 1 1 300px;
    max-width: 450px;
    min-width: 150px;
}
.search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}
.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.search-form__input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    font-size: 0.95rem;
    outline: none;
    background: white;
    min-width: 0;
    padding-right: 2.5rem;
}
.search-form__input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.search-form__clear {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
    display: none;
}
.search-form__clear:hover {
    color: #0f172a;
}
.search-form__button {
    padding: 0.5rem 1.2rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-form__button:hover {
    background: #4338ca;
}
main {
    margin-top: 5rem;
    flex: 1;
}
.main__content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}
.scroll-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #4f46e5;
    border: none;
    cursor: pointer;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: 0.2s;
    z-index: 9999;
}
.scroll-button:hover {
    background-color: #4338ca;
    transform: scale(1.05);
}
.scroll-button:active {
    transform: scale(0.95);
}
.scroll-button__icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #475569;
}
.footer__container {
    max-width: 1400px;
    margin: 0 auto;
}
.footer__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer__brand-logo {
    height: 1.8rem;
    width: auto;
    opacity: 0.7;
}
.footer__copyright {
    font-size: 0.85rem;
}
.footer__link {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.85rem;
}
.footer__link:hover {
    color: #4338ca;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }
    .header__container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .header__brand-link {
        font-size: 1.1rem;
    }
    .header__brand-logo {
        height: 2.4rem;
    }
    .header__brand-title {
        font-size: 1.1rem;
    }
    .header__search {
        max-width: 100%;
        flex: 1 1 auto;
    }
    .search-form__input {
        font-size: 0.9rem;
        padding: 0.4rem 0.7rem;
    }
    .search-form__button {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    main {
        margin-top: 6rem;
    }
    .main__content {
        padding: 1rem;
    }
    .scroll-button {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 1rem;
    }
    .footer__bottom {
        gap: 1rem;
    }
    .footer__brand-logo {
        height: 1.5rem;
    }
}
@media (max-width: 480px) {
    .header {
        padding: 0.3rem 0.7rem;
    }
    .header__brand-logo {
        height: 2rem;
    }
    .header__brand-title {
        font-size: 1rem;
    }
    .search-form__input {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
    .search-form__button {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
    }
    main {
        margin-top: 5.5rem;
    }
    .main__content {
        padding: 0.75rem;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
@media (max-width: 360px) {
    .header__brand-link {
        gap: 0.4rem;
    }
    .header__brand-title {
        font-size: 0.9rem;
    }
    .search-form__input {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    .search-form__button {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    main {
        margin-top: 5rem;
    }
}