/* Сброс стилей */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

li {
  display: inline;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, p {
  margin: 0;
  font-weight: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Шрифт */

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

body, input, button, textarea, select {
    font-family: 'Caveat', cursive, sans-serif;
}

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

.header {
    display: flex;
    flex-direction: column;
    height: 80px;
    padding: 0 60px;
    user-select: none;
    -webkit-user-select: none;
}

.header__top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    height: 50%;
    padding: 5px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.79);
}

.header__top > a {
    justify-self: center;
    grid-column: 2;
}

.header__top a img,
.header__top__search img,
.header__top__user img {
    height: 15px;
    width: auto;
}

.header__top__search {
    justify-self: start;
    grid-column: 1;
}

.header__top__user {
    justify-self: end;
    grid-column: 3;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.header__bottom {
    display: block;
    height: 50%;
    align-items: center;
    padding: 5px 0;
}

.header__bottom ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header__bottom li {
    border-radius: 8px;
    padding: 5px 5px;
    border: 1px solid white;
    color: #22223cee;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header__bottom li a {
    display: inline-block;
    width: 100%;
    height: 100%;
    text-align: center;
}

.header__bottom li:hover {
    border: 1px solid #22223cee;
}

.header__bottom li:active {
    border: 1px solid white;
    background-color: #22223cee;
    color: white;
}

/* Стили основной части */

.main-part {
    display: flex;
    flex-direction: column;
    gap: 70px;
    padding: 30px 50px 30px 50px;
}

.main-part__promo {
    background-color: #0f0f32ee;
    color: rgba(255, 255, 255, 0.914);
    max-width: 1200px;
    max-height: 600px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.main-part__promo img {
    grid-column: 5 / 8;
    grid-row: 1 / 7;
    width: 100%;
    height: 100%;
    object-fit: fill;
    margin: 0;
    padding: 0;
}

.main-part__promo h1 {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    padding: 50px 40px 10px 50px;
    align-self: start;
}

.main-part__promo button {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
    margin-left: 50px;
    margin-top: 20px;
    padding: 10px 10px;
    width: 55%;
    height: 70%;
    background-color: #8b8fdb4e;
    color: rgba(255, 255, 255, 0.867);
    border: none;
    transition: all 0.2s ease;
}

.main-part__promo button:hover {
    border: 1px solid rgba(255, 255, 255, 0.867);
}

.main-part__promo button:active {
    background-color: #8b8fdb93;
}

.main-part__promo p {
    grid-column: 1 / 5;
    grid-row: 4 / 7;
    padding: 15px 40px 50px 50px;
    align-self: end;
}

.main-part__advantages {
    padding: 0;
    color: #0f0f32ee;
}

.main-part__ceramics,
.main-part__popular {
    margin: 0 auto;
    padding: 0;
    color: #0f0f32ee;
}

.main-part__advantages h2 {
    text-align: center;
    margin-bottom: 30px;
}

.main-part__ceramics h2,
.main-part__popular h2 {
    padding: 0 0 0 10px;
    text-align: left;
    margin-bottom: 30px;
}

.main-part__popular__cards,
.main-part__advantages__cards,
.main-part__ceramics__cards {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
}

.main-part__advantages__cards div {
    border: 1px solid white;
    border-radius: 8px;
    padding: 10px;
    flex: 1;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: start;
    transition: transform 0.3s ease;
}

.main-part__advantages__cards div:hover {
    border: 1px solid currentColor;
    background-color: white;
    transform: scale(1.15);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-part__advantages__cards img {
    width: 25px;
    height: 25px;
    margin-bottom: 10px;
}

.main-part__advantages__cards h3 {
    margin-bottom: 10px;
}

.main-part__advantages__cards p {
    color: #666;
    text-align: left;
}

.main-part__ceramics__cards div {
    border: 1px solid white;
    border-radius: 8px;
    padding: 10px;
    flex: 1;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: start;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.main-part__popular__cards div {
    border: 1px solid white;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 350px;
    align-items: start;
    transition: transform 0.3s ease;
}

.main-part__popular__cards div:hover,
.main-part__ceramics__cards div:hover {
    border: 1px solid currentColor;
}

.main-part__popular__cards div:hover p:first-of-type,
.main-part__ceramics__cards div:hover p:first-of-type {
    font-size: 1.4rem;
}
.main-part__popular__cards div:hover p:last-of-type,
.main-part__ceramics__cards div:hover p:last-of-type {
    font-size: 1.2rem;
}

.main-part__ceramics__cards img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.main-part__popular__cards p:first-of-type,
.main-part__ceramics__cards p:first-of-type {
    font-weight: 400;
    font-size: 1.2rem;
    margin-top: 15px;
}
.main-part__popular__cards p:last-of-type,
.main-part__ceramics__cards p:last-of-type {
    font-weight: 750;
    font-size: 1rem;
    margin-top: 10px;
}

.main-part__popular button,
.main-part__ceramics button {
    height: 30px;
    display: block;
    margin: 20px auto 0 auto;
    padding: 5px 10px;
    background-color: #bbbde54e;
    color: currentColor;
    border: 1px solid white;
    transition: all 0.2s ease;
}

.main-part__history button:hover,
.main-part__popular button:hover,
.main-part__ceramics button:hover {
    border: 1px solid currentColor;
}

.main-part__history button:active,
.main-part__popular button:active,
.main-part__ceramics button:active {
    background-color: #8b8fdb93;
}

.main-part__popular__cards img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.main-part__popular__cards {
    align-items: stretch;
}

.main-part__popular__cards > div:first-child {
    flex: 2;
}

.main-part__popular__cards > div:not(:first-child) {
    flex: 1;
}

.main-part__club {
    padding: 40px 50px;
    background-color: #b4b2b2;
    color: #0f0f32ee;
}

.main-part__club > * {
    background-color: white;
    text-align: center;
    padding: 30px 0;
}

.main-part__club p {
    padding: 0 200px;
}

.main-part__club form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.main-part__club input[type="email"] {
    padding: 12px 20px;
    width: 300px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.main-part__club input[type="email"]:focus {
    outline: none;
    border-color: #6f6fb5ee;
}

.main-part__club button[type="submit"] {
    padding: 12px 30px;
    background-color: #0f0f32ee;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-part__club button[type="submit"]:hover {
    background-color: #5a5a9a;
}

.main-part__club button[type="submit"]:active {
    transform: scale(0.9);
}

.main-part__club input[type="email"]:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.main-part__club button[type="submit"]:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.main-part__history {
    background-color: rgba(220, 219, 219, 0.19);
    color: #0f0f32ee;
    max-width: 1400px;
    max-height: 500px;
    margin: 0 auto;
    padding: 0;
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
}

.main-part__history img {
    grid-column: 4 / 7;
    grid-row: 1 / 6;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

.main-part__history h2 {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
    align-self: start;
    margin: 5px 10px;
}

.main-part__history p:nth-of-type(1) {
    grid-column: 1 / 4;
    grid-row: 2 / 3;
    align-self: start;
    margin: 5px 10px;
}

.main-part__history p:nth-of-type(2) {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
    align-self: start;
    margin: 5px 10px;
}

.main-part__history button {
    grid-column: 1 / 2;
    grid-row: 5 / 6;
    padding: 5px 10px;
    margin: 5px 10px;
    height: 50px;
    align-self: start;
    background-color: #bbbde54e;
    color: currentColor;
    border: 1px solid rgba(220, 219, 219, 0.19);
    transition: all 0.2s ease;
}

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

.footer {
    background-color: #0f0f32ee;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
    user-select: none;
    -webkit-user-select: none;
    color: white;
}

.footer_copyright {
    border-top: 2px solid #3939b3aa;
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.footer_copyright div {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 15px;
}

.footer_copyright div a {
    height: 25px;
    width: 25px;
}

.footer__nav {
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: top;
    gap: 50px;
}

.footer__nav__links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: top;
    gap: 70px;
}

.footer__nav__links div {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__nav__links div ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav__links a {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.footer__nav__links a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: white;
}

.footer__nav__links a:active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: #3939b3aa;
}

.footer__nav__email {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    min-width: 490px;
    gap: 0;
    flex-wrap: nowrap;
}

.footer__nav__email form {
    width: 100%;
}
 
.footer__nav__email fieldset {
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer__nav__email legend {
    font-weight: 200;
    margin-bottom: 10px;
    color: white;
    display: block;
}


.footer__nav__email input[type="email"] {
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0);
    border-right: none;
    background-color: rgba(240, 240, 240, 0.193);
    color: white;
    width: 70%;
    height: 60px;
    transition: all 0.3s ease;
}

.footer__nav__email input[type="email"]:focus {
    outline: none;
    border-color: #3939b3aa;
}

.footer__nav__email input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.744);
}

.footer__nav__email button[type="submit"] {
    padding: 10px 15px;
    background: #3636bec2;
    color: white;
    border: 2px none;
    border-left: none;
    cursor: pointer;
    width: 29%;
    height: 60px;
}

.footer__nav__email button[type="submit"]:disabled {
    background: #666;
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Бургер-меню */

.burger {
    display: none;
    width: 20px;
    height: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 100%;
    height: 2px;
    background-color: #22223cee;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 5;
}

.nav-overlay.active {
    display: block;
}


/* Медиа запросы */

@media (max-width: 1024px) {
    .header {
        padding: 0 20px;
    }

    .footer__nav__email {
        min-width: 370px;
        margin: 0 20px 20px 20px;
    }

    .footer__nav {
        flex-direction: column;
        gap: 30px;
    }

}

@media (max-width: 768px) {
    .main-part__promo {
        max-height: 400px;
        font-size: 11px;
    }

    .main-part__promo button {
        width: 70%;
    }

    .main-part__advantages__cards {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-part__advantages__cards div {
        width: 250px;
    }

    .main-part__club p {
    padding: 0 50px;
    }
}

@media (max-width: 690px) {
    .burger {
        display: flex;
        justify-self: end;
        position: relative;
        z-index: 11;
    }

    .header__bottom {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header__bottom.active {
        max-height: 300px;
    }


    .header__bottom ul {
        flex-direction: column;
        gap: 15px;
    }

    body {
        font-size: 16px;
    }

    .header {
        height: auto;
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: white;
    }


    .header__top {
        height: auto;
    }
    
    .header__bottom li {
        display: inline-block;
        padding: 5px 12px;
        height: 25px;
    }

    .header__bottom li:hover {
        border: 1px solid white;
    }
    
    .main-part {
        padding: 20px 15px;
        gap: 40px;
    }
    
    
    .main-part__ceramics__cards,
    .main-part__popular__cards {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .main-part__ceramics__cards div,
    .main-part__popular__cards > div:first-child,
    .main-part__popular__cards > div:not(:first-child) {
        flex: none;
        width: 280px;
        max-width: 100%;
        margin: 10px;
    }
    
    .main-part__promo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px 20px;
        min-height: 150px;
        width: 100%;
    }

    .main-part__promo img,
    .main-part__promo p {
        display: none;
    }

    .main-part__promo h1 {
        text-align: center;
        margin-bottom: 25px;
        font-size: 1.3rem;
    }

    .main-part__promo button {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 250px;
    }
    
    .main-part__club {
        padding: 40px 15px;
        background-color: #b4b2b2;
        color: #0f0f32ee;
    }

    .main-part__club > * {
        background-color: inherit;
        text-align: center;
        padding: 30px 0;
    }

    .main-part__club p {
        padding: 0 20px;
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
    }

    .main-part__club form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 10px;
    }

    .main-part__club input[type="email"],
    .main-part__club button[type="submit"] {
        width: 100%;
        margin: 0;
    }
    
    
    .main-part__history {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 30px 20px;
        min-height: 250px;
        box-sizing: border-box;
        background-color: rgba(220, 219, 219, 0.19);
        color: #0f0f32ee;
    }

    .main-part__history img {
        display: none;
    }

    .main-part__history h2,
    .main-part__history p {
        text-align: center;
        margin-bottom: 15px;
        width: 100%;
        max-width: 600px;
    }

    .main-part__history button {
        width: 100%;
        max-width: 250px;
        margin: 20px auto 0;
        height: 40px;
        padding: 5px 10px;
    }
    
    .footer {
        padding: 20px 0 0 0;
    }
    
    .footer__nav {
        align-items: center;
    }

    .footer__nav__links {
        flex-wrap: wrap;
        align-items: top;
        justify-content: center;
        text-align: center;
        gap: 30px;
        padding: 0 10px;
    }
    
    
    .footer__nav__email {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
    }
    
    .footer__nav__email form {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer__nav__email input[type="email"],
    .footer__nav__email button[type="submit"] {
        width: 100%;
        margin: 1px 0;
    }
    
    .main-part__advantages__cards div:hover,
    .main-part__ceramics__cards div:hover,
    .main-part__popular__cards div:hover {
        transform: none;
        box-shadow: none;
        border: 1px solid white;
    }
    
    .main-part__popular__cards div:hover p:first-of-type,
    .main-part__ceramics__cards div:hover p:first-of-type {
        font-size: 1.2rem;
    }
    
    .main-part__popular__cards div:hover p:last-of-type,
    .main-part__ceramics__cards div:hover p:last-of-type {
        font-size: 1rem;
    }
}

/* Кнопка "Наверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #22223cee;
    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: #2e2e51ee;
    transform: scale(1.1);
}

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

/* Для мобильных устройств */
@media (max-width: 768px) {
    .scroll-top {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }
}