/*--------------------Переменные--------------------*/ $secondaryColor: #03202e; /*--------------------/Переменные--------------------*/ /*--------------------Обнуление, body--------------------*/ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Hibana", sans-serif; &.lock { overflow: hidden; } } .container { max-width: 1160px; margin: 0 auto; } /*--------------------/Обнуление, body--------------------*/ /*--------------------Общие стили--------------------*/ section { &:nth-child(even) { background-color: $mainColor; } &:nth-child(odd) { background-color: $secondaryColor; } height: 100vh; display: flex; justify-content: center; align-items: center; } .title { font-size: 100px; color: #fff; @media (max-width: 430px) { font-size: 30px; } } footer { height: 40vw; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 100px; @media (max-width: 430px) { font-size: 30px; } } /*--------------------/Общие стили--------------------*/ /*--------------------Шапка--------------------*/ .header { background-color: #000000; padding: 30px; display: flex; justify-content: space-between; align-items: center; position: relative; &__logo { background-color: #ffffff; padding: 5px; text-decoration: none; } } /*--------------------/Шапка--------------------*/ /*--------------------Меню--------------------*/ .menu { &__icon { display: none; @media (max-width: 430px) { display: block; width: 100%; height: 18px; position: relative; z-index: 5; cursor: pointer; span { position: absolute; top: calc(50% - 1px); left: 0; width: 100%; height: 2px; background-color: #fff; transition: all 0.2s; &:first-child { top: 0; } &:last-child { top: auto; bottom: 0; } } &.active { span { transform: scale(0); &:first-child { transform: rotate(-45deg); top: calc(50% - 1px); } &:last-child { transform: rotate(45deg); bottom: calc(50% - 1px); } } } } } // .menu__body &__body { @media (max-width:760px) { position: absolute; top: 0; left: -100%; height: 100vh; width: 100%; background-color: rgba(255, 255, 255, 0.8); transition: all 0.2s; display: flex; overflow: auto; } &.active { left: 0; } } // .menu__list &__list { list-style-type: none; display: flex; gap: 30px; @media (max-width: 430px) { flex-direction: column; padding: 30px; gap: 0; height: 100%; width: 100%; background-color: $mainColor; overflow: auto; } } // .menu__link &__link { color: #000000; text-decoration: none; &:hover { text-decoration: underline; } @media (max-width: 768px) { display: block; font-size: 12px; line-height: 70px; } } } /*--------------------/Меню--------------------*/