:root {
  --purple: #8a2be2;
  --purple-dark: #5c189c;
  --ocean: #007bff;
  --navy-blue: #2e2f42;
  --green: #45a049;
  --green-dark: #337536;
  --slate: #434455;
  --light-slate: #8e8f99;
  --cornflower: #e7e9fc;
  --cloud: #f4f4fd;
  --navy-blue-modal: rgba(46, 47, 66, 0.4);
  --grey: rgba(46, 47, 66, 0.7);
  --white: #fff;
  --dairy: #fcfcfc;
}

* {
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img {
  width: 50%;
  border-radius: 5px;
}

#logo-img {
  width: 50px;
}

h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: none;
  line-height: 2.4rem;
  margin-bottom: 60px;
}

h3 {
  font-size: 1.25rem;
}

p {
  text-align: center;
  font-size: 1rem;
  line-height: 1.2rem;
  color: var(--light-slate);
  line-height: 1.5;
  margin-bottom: 0.2rem;
}

li {
  list-style: none;
}

section {
  padding: 60px 0 0 0;
}

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

.gradient {
  font-size: 1.75rem;
  font-weight: bold;
  background: linear-gradient(to right, #ac00ee 0%, #0d1681 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header {
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

h2[id]::before {
  content: '';
  display: block;
  height: 70px;
  margin-top: -70px;
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-nav {
  display: flex;
  gap: 15px;
}

.header-nav a {
  font-family: Raleway;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: var(--purple);
}

.header.scrolled a {
  color: var(--white);
}

.header.scrolled a:hover {
  color: var(--purple);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

.menu-toggle.scrolled {
  color: var(--purple);
}

.hero-section {
  height: 100vh;
  background: linear-gradient(
    200deg,
    #0d1ad3 0%,
    #252d9c 20%,
    #7711b6 80%,
    #850fce 100%
  );
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-section-all-pages {
  height: 30vh;
  background: linear-gradient(
    200deg,
    #0d1ad3 0%,
    #252d9c 20%,
    #7711b6 80%,
    #850fce 100%
  );
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.all-pages-h3 {
  text-align: left;
  color: var(--navy-blue);
  font-size: 1.15rem;
  margin: 20px 0;
}

.all-pages-text {
  text-align: left;
  color: var(--navy-blue);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/header/hero-background.svg') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.hero-div {
  position: relative;
  z-index: 2;
  bottom: 15%;
}

.hero-logo {
  width: 180px;
  margin-bottom: 50px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.hero-description {
  font-size: 1.25rem;
}

.offer-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-item {
  width: 280px;
  text-align: center;
}

.offer-icon-bg {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--purple);
  border-radius: 50%;
  margin: 0 auto 20px auto;
  transition: transform 0.3s ease;
}

.offer-icon-bg:hover {
  transform: scale(1.1);
}

.offer-icon {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.offer-item-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 10px 0;
}

.image-section {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  pointer-events: none;
  width: 100%;
  border-radius: 5px;
}

.description-img {
  max-width: 30%;
  width: auto;
}

.image-container {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  bottom: 0;
}

.image-container:nth-child(1) {
  width: 480px;
  height: auto;
  left: 50px;
  z-index: 10;
  animation-delay: 0.3s;
  bottom: -60px;
}

.image-container:nth-child(2) {
  width: 480px;
  height: auto;
  left: 20%;
  z-index: 20;
  animation-delay: 0.6s;
  bottom: -10px;
}

.image-container:nth-child(3) {
  width: 480px;
  height: auto;
  left: 40%;
  z-index: 30;
  animation-delay: 0.9s;
  bottom: -50px;
}

.image-container:nth-child(4) {
  width: 480px;
  height: auto;
  left: 55%;
  z-index: 20;
  animation-delay: 1.2s;
  bottom: -30px;
}

.image-container:nth-child(5) {
  width: 480px;
  height: auto;
  right: 50px;
  z-index: 10;
  animation-delay: 1.5s;
  bottom: -60px;
}

.image-item {
  width: 100%;
  opacity: 1;
  border-radius: 5px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-text {
  background: linear-gradient(to right, #ac00ee 0%, #0d1681 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carusel-text-style {
  min-height: 80px;
  text-align: center;
  font-size: 2.4rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

@keyframes blink-cursor {
  50% {
    border-color: transparent;
  }
}

.cooperating-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cooperating-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cooperating-item:hover {
  transform: scale(1.05);
}

.cooperating-img {
  width: 50%;
  height: auto;
}

.cooperating-content {
  max-width: 500px;
}
.cooperating-item:nth-child(even) {
  flex-direction: row-reverse;
}

.cooperating-title-item {
  padding-bottom: 30px;
}
.cooperating-text {
  text-align: left;
}
.portfolio .container {
  padding: 0;
  margin: 0 auto;
  max-width: 90%;
}

.portfolio {
  background-color: var(--navy-blue);
  color: var(--cornflower);
  text-align: center;
}

.portfolio-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 3rem;
}

.portfolio-description {
  font-size: 1.15rem;
  color: var(--light-slate);
  max-width: 800px;
  margin: 0 auto 40px;
}

.portfolio-categorie-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

.portfolio-categorie-title {
  font-size: 1.15rem;
  color: var(--light-slate);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.portfolio-categorie-title.active,
.portfolio-categorie-title:hover {
  color: var(--white);
  border-color: var(--white);
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  list-style: none;
  margin: 0;
  justify-items: start;
  align-items: start;
  justify-content: flex-start;
  grid-auto-flow: row dense;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  flex: 1 1 400px;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.portfolio-item-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  text-align: center;
}

.stages {
  background-color: var(--white);
  text-align: center;
}

.stages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  justify-content: center;
}

.stages-item {
  flex: 1 1 300px;
  max-width: 320px;
  padding: 20px;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stages-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.stages-img {
  width: 100%;
  margin-bottom: 20px;
}

.stages-item-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--navy-blue);
  margin-bottom: 10px;
}

.stages-item-text {
  font-size: 1rem;
  color: var(--light-slate);
  line-height: 1.5;
}

.services {
  background-color: var(--white);
  text-align: center;
  padding-bottom: 60px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  justify-content: center;
}

.services-item {
  flex: 1 1 300px;
  max-width: 320px;
  padding: 20px;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.services-img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.services-item-title {
  margin-bottom: 10px;
}

.services-item-text {
  text-align: left;
}

.contacts {
  height: 100vh;
  background: linear-gradient(
    200deg,
    #0d1ad3 0%,
    #252d9c 20%,
    #7711b6 80%,
    #850fce 100%
  );
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contacts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/header/hero-background.svg') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.contacts .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-contacts {
  width: 180px;
  margin-bottom: 40px;
}

.contacts-message {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.contacts a {
  font-size: 2.25rem;
  color: var(--white);
  text-decoration: none;
  margin: 5px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacts a:hover {
  transform: scale(1.1);
}

.contacts-text {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: bold;
  animation: blinking 4s infinite alternate;
}

@keyframes blinking {
  0% {
    background: linear-gradient(0deg, #00ff37, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  20% {
    background: linear-gradient(60deg, #00ff37, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  40% {
    background: linear-gradient(120deg, #00ff37, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  60% {
    background: linear-gradient(180deg, #00ff37, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  80% {
    background: linear-gradient(240deg, #00ff37, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  100% {
    background: linear-gradient(300deg, #00ff37, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

footer {
  background-color: var(--navy-blue);
  padding: 20px 0;
  text-align: center;
  color: var(--cornflower);
}

.contacts,
footer {
  margin: 0;
  padding: 0;
}

.footer-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding-top: 40px;
  margin: 0 0 10px 0;
  gap: 20px;
}

.footer-item a {
  color: var(--cornflower);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-item a:hover {
  color: var(--purple);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--light-slate);
  padding-bottom: 40px;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .image-container:nth-child(1),
  .image-container:nth-child(2),
  .image-container:nth-child(3),
  .image-container:nth-child(4),
  .image-container:nth-child(5) {
    width: 280px;
  }
}

#at-container img {
  margin-top: 20px;
  min-width: 400px;
  height: auto;
  transition: transform 0.3s ease;
}

#at-container img:hover {
  transform: scale(1.1);
}

.page-404 {
  color: var(--white);
}

.hero-title-404 {
  font-size: 6.25rem;
}

.footer-copyright-404 {
  position: fixed;
  bottom: 20px;
}

#toTop {
  position: fixed;
  display: inline-block;
  bottom: 30px;
  right: -40px;
  width: 70px;
  height: 70px;
  z-index: 1000;
  cursor: pointer;
  text-align: center;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

#toTop img {
  width: 25px;
  position: relative;
  top: 20px;
  right: -30px;
  transition: all 0.3s ease-in-out;
}

#toTop:hover img {
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#toTop.show {
  opacity: 1;
  visibility: visible;
  right: calc(2%);
}

.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-popup p {
  text-align: center;
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-popup a {
  color: var(--green);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  background-color: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cookie-buttons button:hover {
  background-color: var(--green-dark);
}

.cookie-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.cookie-close:hover {
  color: var(--purple);
}

.messenger-links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.messenger-link svg {
  fill: white;
  transition: transform 0.2s ease;
}

.messenger-link:hover svg {
  transform: scale(1.1);
}

use.telegram {
  fill: #0088cc;
}
use.viber {
  fill: var(--white);
}
use.whatsapp {
  fill: #25d366;
}
@media (max-width: 767px) {
  .all-pages {
    padding: 60px 0;
  }
  .header-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    flex-direction: column;
    width: 100%;
    padding: 20px;
    text-align: center;
    gap: 15px;
  }

  .header.scrolled a {
    color: var(--cloud);
  }

  .header-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .header {
    flex-direction: column;
    align-items: center;
  }

  img {
    width: 100%;
  }

  #logo-img {
    width: 50px;
  }

  .image-section {
    display: none;
  }

  .hero-logo {
    padding-top: 50%;
  }

  .hero-title {
    font-size: 2rem;
    margin: 0 15px 15px 15px;
  }

  .stages-list {
    gap: 20px;
  }

  .stages-item {
    flex: 1 1 100%;
    max-width: none;
  }

  .services-list {
    gap: 20px;
  }

  .services-item {
    flex: 1 1 100%;
    max-width: none;
  }

  .contacts .hero-logo {
    padding-top: 0;
  }

  .offer-list {
    flex-direction: column;
    align-items: center;
  }

  #at-container img {
    min-width: 100px;
    max-width: 80%;
  }

  .contacts a {
    font-size: 2rem;
  }

  #toTop {
    position: fixed;
    display: inline-block;
    bottom: 40px;
    right: -40px;
    width: 30px;
    height: 40px;
  }

  #toTop img {
    position: relative;
    top: 10px;
    right: 0px;
    transition: all 0.3s ease-in-out;
  }

  .cookie-popup {
    width: 90%;
  }
}

.calculator {
  width: 100%;
  margin: auto;
  color: var(--white);
  background: linear-gradient(to right, #ac00ee 0%, #0d1681 100%);
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 25px;
}

.title {
  margin-bottom: 8px;
  font-weight: bold;
}

.btn-group {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  background: #022236;
  cursor: pointer;
  border: 2px solid #035d96;
}

.btn.active {
  background: #0280d1;
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-group button {
  padding: 6px 12px;
  background: #035d96;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

input[type='range'] {
  flex: 1;
}

.value {
  min-width: 35px;
  text-align: center;
  font-weight: bold;
}

.checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkboxes label {
  background: #022236;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
}

.price-block {
  margin-top: 30px;
  text-align: center;
  font-size: 22px;
}

.highlight {
  color: #f1c40f;
  font-weight: bold;
}
