<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/slick.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Merriweather:wght@700;900&display=swap"rel="stylesheet">
<title>Document</title>
</head>
<body>
<main>
<section class="services">
<div class="container">
<div class="services__slider">
<div class="services__slider-item">
<p class="services__title">Бухгалтерские услуги в Санкт-Петербурге</p>
<button class="services__btn">Наша презентация</button>
</div>
<div class="services__slider-item">
<p class="services__title">Бухгалтерские услуги в Санкт-Петербурге</p>
<button class="services__btn">Наша презентация</button>
</div>
<div class="services__slider-item">
<p class="services__title">Бухгалтерские услуги в Санкт-Петербурге</p>
<button class="services__btn">Наша презентация</button>
</div>
<div class="services__slider-item">
<p class="services__title">Бухгалтерские услуги в Санкт-Петербурге</p>
<button class="services__btn">Наша презентация</button>
</div>
</div>
</div>
</section>
</main>
*,
*::after,
*::before{
box-sizing: border-box;
}
a{
color: inherit;
text-decoration: none;
}
.container{
max-width:1130px;
padding: 0 10px;
margin: 0 auto;
}
.services{
background-image: url(../images/services-bg.png);
background-repeat: no-repeat;
background-size: cover;
background-position:top center;
}
.services__slider{
padding: 170px 500px 140px 0px;
}
.services__title{
font-family: 'Merriweather', serif;
font-weight: 700;
font-size: 48px;
line-height: 66px;
color: #fff;
padding-bottom: 80px;
max-width: 234px;
}
.services__btn{
border: none;
background-color: #005fa3;
font-family: 'Lato', sans-serif;
font-weight: 400;
font-size: 18px;
line-height: 25px;
color: #fff;
padding: 19px 44px;
padding: 22px 23px;
margin-bottom: 120px;
}
.slick_btn{
border: none;
padding: 22px;
background-color: rgb(255, 255, 255,0.2);
}
.slick_btn:hover{
background-color: rgb(255, 255, 255,0.5);
}
.slick-next{
position: absolute;
bottom: 170px;
right: 0;
}
.slick-prew{
position: absolute;
bottom: 170px;
right: 53px;
}
.slick-dots{
display: flex;
list-style: none;
}
.slick-dots button{
font-size: 0;
height: 15px;
width: 15px;
background-color: transparent;
border: none;
margin-right: 40px;
background-image: url(../images/slick__unactive.svg);
background-size: cover;
background-repeat: no-repeat;
}
li.slick-active{
background-image: url(../images/slick__active.svg);
background-size: 15px;
background-position:left bottom;
background-repeat: no-repeat;
}
$(function(){
$('.services__slider').slick({
nextArrow: '<button type="button" class="slick_btn slick-next"><img class="img" src="images/next.svg"></button>',
prevArrow: '<button type="button" class="slick_btn slick-prew"><img src="images/prev.svg"></button>',
Infinity:true,
dots:true
});
});