:root {
  --primary-color: #415167;
  --secondary-color: #EDF0F5;
  --ternary-color: #151D28;
  --text-color: #333;
  --accent-color: #C7A17A;
  --font-family: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);    
}

body {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background: aliceblue;
}

a {
    cursor: pointer;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

img {
    width: auto;

}
footer {
    padding: 16px;
    text-align: center; 
    background: var(--secondary-color);
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    font-weight: 700;
    background: rgb(255, 255, 255);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}


.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 40px;
}

.nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
    text-align: center; 
    align-items: center;
}

.shopping--busket, .nav__link {
    padding: 8px 10px;
    border-radius: 6px;
    transition: var(--transition);
    width: fit-content;
}

.nav__link:hover, .nav__link:active,
.shopping--busket:hover, .shopping--busket:active {
    background: var(--secondary-color);
    color: var(--ternary-color);
}

.btn {
    min-width: 44px;
    min-height: 44px;
    padding: 12px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header__cta, .header__cta:hover {
    background: var(--primary-color);
}

.btn--primary:hover {
    transform: translateY(-2px);
}

.btn--primary:active {
    transform: scale(0.98);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 12px 10px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle__line {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Состояние открытого меню */
.menu-toggle.active .menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.start_layout {
    display: flex;
    align-items: center;
    height: 100vh;
}

h1 {
    padding-left: 50px;
    background: rgba(240, 248, 255, 0.75);
    color: var(--primary-color);
    font-weight: 900;
    display: flex;
    flex-direction: column;
    font-size: 10vw;
    position: absolute;
    z-index: 1;
    
}

.highlight {
    color: whitesmoke;
    background-color: var(--accent-color);
}

.banner {
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;

}

#home {
    min-height: 40vh;
}
#coffee {
    background: linear-gradient(to right, #415167 0vw, #415167 25vw, transparent 25vw);
}
#giftsets{
    background: linear-gradient(to right, #EDF0F5 0vw, #EDF0F5 75vw, transparent 75vw);
}
#introsets {
    background: linear-gradient(to left, #415167 0vw, #415167 23.75vw, transparent 23.75vw);
}

#home, #coffee, #giftsets, #introsets {
    padding: 0rem 3.125rem;
}

.h__title {
    display: grid;
    justify-items: center;
    color: var(--primary-color);
    padding: 3.125rem 0 1.875rem 0;
    text-align: center;
}

.h__title h2,
.h__title h3 {
    background-color: rgba(240, 248, 255, 0.75);
    width: fit-content;
}
.home__list, .cards {
    padding-bottom: 3.125rem;
}

.home__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 1.5rem;
}

.cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card__content {
    flex-direction: column;
    padding: 2.25rem; 
}

.card {
    background: white;
    max-width: 621px;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.buy__cta {
    background: var(--accent-color);
}

.buy__cta:hover {
    background: #96785a;
}

.cost__text {
    color: var(--accent-color);
    font-size: 16px;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.card__title {
    padding-bottom: 1.5rem;
    font-size: 1.25rem;
}

.card__button-buy {
    padding-top: 1.5rem;
    display: flex;
    color: var(--ternary-color);
    gap: 2rem;
}

.giftset__container {
    padding: 0 3.125rem 3.125rem 0;
    display: flex;
    
}

.giftset__img {
    align-self: center;
    position: absolute;
    z-index: 1;
    max-width: 30vw;
}

.giftset__content {
    margin-left: 15%;
    padding: 4rem;
    background: white;
}

.giftset__content-group {
    margin-left: 25%;
}

.icons__group {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    gap: 1.75rem;
}

.items__h {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    left: 0;
}

.icons-items {
    display: flex;
    align-items: center;
}

.giftsets__numbers {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
}

.giftsets__number {
    background: var(--secondary-color);
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    color: #c1c4c9;
    font-weight: 800;
    font-size: 1.75rem;
    border: 2px solid white;
}

.giftsets__number:hover, 
.giftsets__number:active,
.giftsets__number-active {
    background: white;
    color: var(--primary-color);
}

.card-introsets {
    width: 21.8rem;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.introsets__card-items {
    padding: 2rem; 
}

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

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