/* Сброс стилей */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* базовые стили */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', system-ui, sans-serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

main {
    margin-top: 130px;
}

p, h1, h2, h3, h4, h5, h6, .body-small, .body-large, a { 
    text-decoration: none;
    line-height: 150%;
}

h1 {
    font-size: 36pt;
    line-height: 150%;
    font-weight: 350; 
}

h2 {
    font-size: 32pt;
    line-height: 150%;
    font-weight: 350;
}

h3 {
    font-size: 24pt;
    line-height: 150%;
    font-weight: 350;
}

h4 {
    font-size: 20pt;
    line-height: 150%;
    font-weight: 350;
}

h5 {
    font-size: 16pt;
    line-height: 150%;
    font-weight: 350;
}

h6 {
    font-size: 14pt;
    line-height: 150%;
    font-weight: 350;
}

.body-small {
    font-size: 14pt;
    line-height: 150%;
    font-weight: 350;
}

.body-medium {
    font-size: 16pt;
    line-height: 150%;
    font-weight: 350;
}

.body-large {
    font-size: 18pt;
    line-height: 150%;
    font-weight: 350;
}

p {
    font-size: 16pt; 
    line-height: 150%;
    font-weight: 350;
}

.body-large {
    font-size: 18pt;
}

ul {
    list-style: none; 
    margin: 0; 
    padding-left: 0; 
}

.btn-primary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 0px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: rgba(248, 248, 248, 0.1);
    color: #2a2245;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 0px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: rgba(234, 234, 234, 0.2);
}

.btn-third {
    background-color: #2a2245;
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 0px;
    font-size: 18px;
    border: 0px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-third:hover {
    background-color: #1e1935;
}


/* Стили для header */


.top-bar {
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
}

.top-bar a {
    padding: 10px;
}

/* Гамбургер-кнопка (скрыта на десктопе) */
.menu-toggle {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    visibility: hidden;
}


.header-menu-bar {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background-color: #fff;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header-menu__link {
    text-decoration: none;
    color: #777;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.header-menu__link:hover {
    color: #555;
}

/* Сброс для блока hero */

.hero {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    min-height: 600px;
    overflow: hidden;
    border-radius: 0;
    background-color: #fff; 
}

.hero-text {
    background-color: #2a2245;
    padding: 60px 60px;
    color: white;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.hero-text__title {
    margin-bottom: 30px;
}

.hero-text__btn {
    margin-bottom: 150px;
}

.hero-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Стили для преимуществ бренда */

.brand-difference {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
}

.brand-difference__title {
    text-align: center;
    margin-bottom: 40px;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    flex: 1 1 calc(25% - 20px);
    min-width: 250px;
    padding: 20px;
    box-sizing: border-box;
}

.featurei__icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.feature__title {
    margin-bottom: 10px;
    font-size: 16pt;
}

.feature__text {
    font-size: 14pt;
    color: #555;
}

/* Стили для раздела new ceramics */

.new-ceramics {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
}

.new-ceramics__title {
    margin-bottom: 40px;
}

.new-ceramics-products {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.new-ceramics-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 250px;
    box-sizing: border-box;
}

.new-ceramics-card__icon {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.new-ceramics-card__title {
    margin-bottom: 5px;
}

.new-ceramics-card_price {
    font-size: 16pt;
    font-weight: 600;
    color: #2a2245;
}

.new-ceramics__btn {
    display: block;
    margin: 40px auto;
    width: fit-content;
}

/* Стили для раздела popular products */

.popular-products {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
}

.popular-products__title {
    margin-bottom: 40px;
}

.popular-products-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.popular-products-card__long {
    flex: 1 1 calc(50% - 20px);
    min-width: 250px;
    box-sizing: border-box;
}

.popular-products-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 250px;
    box-sizing: border-box;
}

.popular-products-card__icon {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.popular-products-card__title {
    margin-bottom: 5px;
}

.popular-products-card__price {
    font-size: 16pt;
    font-weight: 600;
    color: #2a2245;
}

.popular-products__btn {
    display: block;
    margin: 40px auto;
    width: fit-content;
}

 /* Стили раздела join us */
 
.join-us {
    background-color: #f8f8f8;
    padding: 60px 20px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.join-us-out-container {
    display: flex;
    background-color: #ffffff;
    min-width: 1600px;
    justify-content: center;
}

.join-us-container {
    max-width: 600px;
    padding: 60px 40px;
    text-align: center;
}

.join-us-container__title {
    margin-bottom: 30px;
}

.join-us-container__text {
    color: #555;
    margin-bottom: 80px;
}

.join-us-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.join-us-form__input {
    flex: 1;
    min-width: 200px;
    padding: 18px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14pt;
    color: #555;
    background-color: #fff;
}

.join-us-form__input::placeholder {
    color: #aaa;
}

 /* Стили раздела над footer */

.bottom-section {
    display: flex;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    border-radius: 0;
    background-color: #555; 
}

.bottom-section-text {
    background-color: white;
    padding: 100px 60px;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.bottom-section-text p {
    padding-bottom: 40px;
    font-size: 18px;
}

.bottom-section__title {
    margin-bottom: 30px;
}

.bottom-section__btn {
    margin-top: 100px;
}

.bottom-section-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.bottom-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* стили для footer */

footer {
    background-color: #2a2245;
    color: white;
    padding: 60px 20px 30px;
    font-size: 14pt;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column__title {
    margin-bottom: 20px;
}

.footer-column-menu {
    list-style: none;
}

.footer-column-menu li {
    margin-bottom: 10px;
}

.footer-column-menu__link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column-menu__link:hover {
    color: white;
}


.footer-form {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.footer-form__input {
    flex: 1;
    min-width: 400px;
    padding: 18px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14pt;
    color: #555;
    background-color: #fff;
}

.footer-form__input::placeholder {
    color: #aaa;
}

.bottom-footer {
    display: flex;
    justify-content: space-between;
    margin: 30px auto;
    padding-top: 20px;
    max-width: 1600px;
    border-top: 1px solid #eee;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}


.copyright {
    color: #aaa;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: black;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #525252;
    transform: scale(1.1);
}

.scroll-top:active {
    transform: scale(0.95);
}
