@import url('https://fonts.googleapis.com/css2?family=Kufam:ital,wght@0,400..900;1,400..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Montserrat", sans-serif;
	color: white;
}

html {
	scroll-behavior: smooth;
}

body{
	background: url("./img/1625930494_36-kartinkin-com-p-nerzhaveika-tekstura-krasivo-36.jpg") center center/cover no-repeat;
	background-attachment: fixed !important;
	-ms-transform: translate3d(0, 0, 0);
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

body.active-modal{
	overflow: hidden;
}

body::-webkit-scrollbar{
	background:#2C354B;
	width: 10px;
}

body::-webkit-scrollbar-thumb{
	background:#F1234A;
	border-radius: 10px;
	border: 2px solid #2C354B;
}

.row{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
}

.container{
	max-width: 1300px;
	padding: 0 10px;
	margin: 0 auto;
}

.logo{
	font-family: "Kufam", sans-serif;
	font-weight: 400;
	text-decoration: none;
	display: flex;
	gap: 20px;
	align-items: center;
	font-size: 26px;
}

a{
	text-decoration: none;
	cursor: pointer !important;
}

.btn{
	height: 35px;
	min-width: 220px;
	width: fit-content;
	background: #F1234A;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	line-height: 35px;
	border: none;
	border-radius: 25px;
	display: block;
}

.big-btn{
	height: 45px;
	font-size: 24px;
	width: 280px;
}

h2{
	font-weight: 700;
	text-align: center;
	font-size: 42px;
	margin-bottom: 40px;
}

h3{
	font-weight: 500;
	font-size: 26px;
}

h4{
	font-weight: 400;
	font-size: 18px;
}

/* Header */

header{
	padding: 15px 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.header__menu-list{
	list-style: none;
}

.header__menu-list a{
	font-weight: 500;
	font-size: 22px;
}

section{
	margin: 80px 0;
}
.header__mobile-nav{
	display: none;
	align-items: center;
	gap: 30px;
}

.header__mobile-nav a{
	height: 30px;
	width: 30px;
}

.header__mobile-nav a img{
	width: 100%;
	height: 100%;
}

.burger{
	width: 30px;
	height: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
}

.burger figure{
	width: 100%;
	height: 4px;
	background: white;
	border-radius: 5px;
	transition: all 0.3s;
}

.burger.active figure:nth-child(1){
	transform: rotate(45deg) translate(5px, 7px);
}

.burger.active figure:nth-child(2){
	transform: translate(15px);
	width: 0;
}

.burger.active figure:nth-child(3){
	transform: rotate(-45deg) translate(6px, -7px);
}

/* Hero */

.hero{
	background: url("./img/Hero.png") 0 0/cover no-repeat;
	margin: 0;
}

.hero__wrapper{
	padding-top: 50px;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero h1{
	font-size: 48px;
	font-weight: 700;
}

.hero p{
	font-size: 28px;
	font-weight: 700;
	margin: 40px 0;
}

/* Services */

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

.services__list-service{
	max-width: 380px;
	background: #2C354B;
	border-radius: 0 25px 0 25px;
	position: relative;
}

.services__list-service img{
	height: 200px;
	width: 100%;
	object-fit: cover;
	border-radius: 0 25px 0 0;
}

.service__descr{
	padding: 20px 15px 65px 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.service__descr ul{
	padding-left: 20px;
}

.service__descr .btn{
	position: absolute;
	bottom: 15px;
	left: 15px;
	width: calc(100% - 30px);
}

/* Materials */
.section-intro {
  font-size: 1.4rem;    /* великий розмір */
  font-weight: 600;     /* напівжирний */
  color: #fff;          /* білий текст */
  text-align: center;   /* по центру */
  line-height: 1.6;     /* зручніше читати */
  margin: 20px auto 28px; /* відступи зверху/знизу */
  max-width: 900px;     /* щоб текст не розтягувався */
}

.materials{
	background: url("./img/materials.png") 0 -100px/cover no-repeat;
	padding: 60px 0;
}

.materials p{
	font-weight: 500;
	font-size: 26px;
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	margin-bottom: 40px;
	word-spacing: 30px;
}

.materials p span{
	word-spacing: 0;
}

.materials .btn{
	margin: 0 auto;
}

/* Advantages */

.advantages figure{
	height: 3px;
	display: block;
	width: 280px;
	margin: 40px auto;
	background: #F1234A;
	border-radius: 5px;
}

.advantages__subtitle{
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
	font-size: 18px;
}

.advantages__list{
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 40px;
}

.advantages__list-item{
	width: 30%;
	background: #2C354B;
	padding: 35px;
	border-radius: 25px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.advantages__list-item img{
	width: auto;
	height: 42px;
	display: block;
	margin: 0 auto;
}

.advantages__list-item h3{
	color:#F1234A ;
}

/* Сonsultation */

.consultation{
	background: url("./img/feedback.png") 0 0/cover no-repeat;
	padding: 60px 0;
	text-align: center;
}

.consultation p{
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 40px;
}

form{
	max-width: 380px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

input{
	width: 100%;
	height: 35px;
	border-radius: 25px;
	padding: 0 10px;
	font-size: 18px;
	color: black;
}
textarea{
	width: 100%;
	padding: 7px 10px;
	border-radius: 15px;
	font-size: 18px;
	color: black;
	resize: none;
}

textarea::-webkit-scrollbar{
	display: none;
}

form button{
	width: 100% !important;
}

form button img{
	height: 35px;
	width: 35px;
}

form span{
	text-align: center;
}

/* Contacts */

.contacts h2{
	text-align: left;
}

.contacts ul{
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contacts a{
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 18px;
}

.contacts__map{
	width: 60%;
}

.contacts__map iframe{
	height: 100%;
	width: 100%;
	min-height: 280px;
	border-radius: 15px;
}

/* Footer */

footer{
	padding-bottom: 10px;
}

footer .logo{
	justify-content: center;
	font-size: 18px;
}

footer .logo img{
	width: 32px;
}

/* Modal */

.modal{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	z-index: -1;
	background: #000000a3;
	padding: 10px;
	transition: all 0.3s;
}

.modal.active{
	opacity: 1;
	z-index: 100;
}

.modal__window{
	background: #2C354B;
	padding: 20px 20px 25px 20px;
	border-radius: 25px;
	position: relative;
	transform: scale(0.1);
	transition: all 0.4s;
}

.modal.active .modal__window{
	transform: scale(1);
}

#close-modal{
	position: absolute;
	right: 15px;
	top: 15px;
	color: white;
	background: none;
	font-size: 22px;
	height: 20px;
	width: 20px;
	line-height: 0;
	border: none;
	cursor: pointer;
}

.modal__window h2{
	font-size: 28px;
	text-align: left;
	margin-bottom: 20px;
}

.modal__window p{
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 20px;
	text-align: center;
}

/* Media querys */

@media all and (max-width: 1024px) {
	body{
			background: #151924;
	}

	.header__mobile-nav{
		display: flex;
	}

	.header__menu{
		position: absolute;
		left: -120%;
		top: 0;
		height: 100vh;
		width: 40vw;
		display: flex;
		justify-content: center;
		align-items: center;
		transition: all 0.3s;
		z-index: 10;
		background: #2C354B;
	}

	.header__menu.active{
		left: 0;
		width: 80vw;
	}
	
	.header__menu-list{

		gap: 60px;
		flex-direction: column;
	}
	.materials{
		background: url("./img/materials.png") center center/cover no-repeat;
	}
	.advantages__list{
		flex-wrap: wrap;
	}
	.advantages__list-item{
		width: 100%;
		max-width: 768px;
	}
}

@media all and (max-width: 768px) {
	.hero__wrapper .btn{
		margin: 0 auto;
	}
	
	.hero h1{
		font-size: 48px;
		font-weight: 700;
		text-align: center;
	}
	
	.hero p{
		font-size: 28px;
		font-weight: 700;
		margin: 40px 0;
		text-align: center;
	}

	.services__list{
		justify-content: center;
		flex-wrap: wrap;
	}
	.contacts .row{
		flex-wrap: wrap;
	}
	.contacts__map{
		width: 100%;
	}
	.contacts h2{
		text-align: center;
	}
	.contacts__info{
		width: 100%;
	}
	.header__mobile-nav a{
		animation: drag-drag 4s 1s ease-in-out infinite;
		animation-iteration-count: 3;
	}

	@keyframes drag-drag {
		0%{
			transform: rotate(0deg);
		}
		3%{
			transform: rotate(-10deg);
		}
		6%{
			transform: rotate(10deg);
		}
		9%{
			transform: rotate(-10deg);
		}
		12%{
			transform: rotate(0deg);
		}
		100%{
			transform: rotate(0deg);
		}
	}
}

@media all and (max-width: 480px) {
	.hero{
		background: url("./img/Hero.png") -500px 0/cover no-repeat;
	}
	.hero h1{
		font-size: 36px;
	}
	.hero p{
		font-size: 20px;
		margin: 20px 0;
	}
	.materials p{
		font-size: 22px;
	}
	h2{
		font-size: 32px;
	}
	h3{
		font-size: 28px;
	}
	.header__menu.active{
		left: 0;
		width: 100%;
	}
	.header__mobile-nav {
		position: relative;
		z-index: 20;
	}
}


/* === Cookie banner (fixed on top; stays visible while scrolling) === */
.ck-banner{
  position: fixed;
  top: 20px;                        /* відступ від верху */
  left: 50%;
  transform: translateX(-50%);      /* по центру */
  width: min(920px, 92vw);
  z-index: 9999;

  background: #fff;
  color: #111;
  padding: 22px 24px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);

  display: none;                    /* показуєте через JS */
}

/* ваші стилі тексту/кнопок лишайте без змін */
.ck-banner a{ color:#0d6efd !important; text-decoration: underline; }


@media (max-width: 680px){
  .ck-banner{
    top: max(12px, env(safe-area-inset-top, 0px)); /* краще на телефонах з «чубчиком» */
    padding: 18px;
  }
}


/* перекрити глобальне * {color:white;} */
.ck-banner, .ck-banner *{ color:#111 !important; }

/* Заголовок/текст */
.ck-title{ margin:0 0 10px; font-size:22px; font-weight:700; }
.ck-text{ margin:0 0 14px; }
.ck-text a{ color:#0d6efd !important; text-decoration:underline; }

/* Кнопки */
.ck-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.ck-btn{ border:0; border-radius:3px; padding:10px 16px; cursor:pointer; font-weight:600; }
.ck-accept{ background:#2f9e44; color:#fff !important; }
.ck-reject{ background:#e5e5e5; }
.ck-link{ background:transparent; text-decoration:none !important; display:inline-flex; gap:8px; align-items:center; }
.ck-link:before{ content:"⚙"; }

/* Модалка налаштувань */
.ck-ovl{ position: fixed; inset:0; background:rgba(0,0,0,.55); z-index:9998; display:none; }
.ck-modal{
  position: fixed; left:50%; top:50%; transform:translate(-50%,-50%); z-index:9999;
  background:#fff; color:#111; width:min(780px,95vw); border:1px solid #ddd;
  box-shadow:0 18px 60px rgba(0,0,0,.35); border-radius:6px; padding:20px 22px; display:none;
}
.ck-modal, .ck-modal *{ color:#111 !important; }
.ck-modal h3{ margin:0 0 10px; }
.ck-row{ margin:10px 0; }
.ck-save{ background:#0d6efd; color:#fff !important; }

/* Модалка політики: зверху по центру, як біле вікно */
.ck-modal.ck-modal--top{
  top: 8%;
  left: 50%;
  transform: translate(-50%, 0);
  position: fixed;
  z-index: 9999;
  background: #fff;
  color: #111;
  width: min(780px, 95vw);
  max-height: 78vh;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 20px 22px;
}

/* Примусово підняти #ck-modal догори */
#ck-modal{
  top: 8% !important;
  left: 50% !important;
  transform: translate(-50%, 0) !important;
  max-height: 78vh;
  overflow: auto;
}

@media (max-width: 680px){
  #ck-modal{
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  }
}

.ck-reopen-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0073e6;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  z-index: 99999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  transition: background 0.3s;
}

.ck-reopen-btn:hover {
  background: #005bb5;
}

.ck-ovl[hidden], .ck-modal[hidden],
#cc-overlay[hidden], #cc-modal[hidden] { display: none !important; }

.ck-ovl, #cc-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998;
}

.ck-modal, #cc-modal {
  position: fixed; left: 50%; top: 0; transform: translateX(-50%);
  margin-top: 20px; /* або ваш відступ зверху */
  background: #fff; color:#111; border-radius: 8px; z-index: 9999;
  width: min(720px, 92vw); box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 20px 22px;
}
