@font-face {
  font-family: "Onest";
  src: url("Onest-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Onest";
  src: url("Onest-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Onest";
  src: url("Onest-Medium.woff2") format("woff2");
  font-weight: 500;
}

:root {
  --section-spacing: 150px; 
  --primary-color: #dbc742;
  --secondary-color: #333; 
  --background-light: #f9f9f9; 
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.15);
}

html {
  scroll-padding-top: 75px;
}

body {
  margin: 0 auto;
  height: 100%;
  overflow-x: hidden;
  width: 100%;
  margin-top: 70px;
  background-color: #000;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
}

#scrollToTopBtn {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #333;
  color: #dbc742;
  border: none;
  cursor: pointer;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollToTopBtn:hover {
  background-color: #555;
}

#scrollToTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

/* PAGE 1 */
.navbar {
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background-color: #dbc742; 
}

.navbarLeft {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
}

.navbarCenter {
  display: flex;
  gap: 30px;
}

.navbarCenter a {
  color: black;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-size: 20px;
}

.navbarCenter a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  background-color: black;
  transition: width 0.3s ease;
}

.navbarCenter a:hover::after {
  width: 100%;
}

.navbarRight {
  display: flex;
  align-items: center;
}

.order-button {
  font-weight: 700;
  font-size: 20px;
  color: black; 
  background-color: transparent;
  padding: 10px 30px;
  border-radius: 20px;
  border: 2px solid black; 
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.order-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.predl {
  width: 80%;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
}

.sovr {
  font-weight: 700;
  font-size: 90px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  margin-bottom: -10px;
}

.sovr img {
  margin-left: 10px;
  height: 90%;
}

.predl > div:last-child {
  display: flex;
  flex-grow: 1;
  align-items: stretch;
}

.sovr1 {
  width: 40%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.studia {
  font-weight: 700;
  font-size: 90px;
  line-height: 0.9;
  margin-top: -25px;
}

.studia1 {
  font-weight: 700;
  font-size: 50px;
  color: #afafaf;
  padding: 20px 0;
  margin: auto 0px;
}

.sovr12 {
      gap: 30px;
  display: flex;
  margin-top: auto;
  align-items: center;
}

.sovr121 a {
  text-decoration: none;
  color: white;
}

.sovr121 {
  background-color: #dbc742;
  border-radius: 40px;
  display: flex;
  text-align: center;
  padding: 10px 30px;
  color: white;
  font-size: 24px;
}

.sovr121:hover {
  background-color: #c5b235;
}

.sovr122 {
  background-color: #dbc742;
  margin-left: 10px;
  border-radius: 40px;
  padding: 15px;
  width: 50px;
  height: 50px;
}

.sovr122 a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.sovr122 img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.sovr122:hover {
  background-color: #c5b235;
}

.sovr122 img {
  transform: scale(0.9);
  padding-right: 10%;
  transform-origin: center center;
}

.fs img {
  margin-left: 100px;
}

.sovr2 {
  width: 60%;
  overflow: hidden; 
}

.sovr2 img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; 
  transform: none !important; 
}

/* PAGE 2 */
.page2 {
  margin-top: var(--section-spacing);
  padding: 0 40px;
  box-sizing: border-box;

  font-family: "Inter", sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}

.page2p1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 500px;
}

.p2p21 {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.p2p22 {
  width: clamp(250px, 40vw, 500px);
  height: clamp(250px, 40vw, 500px);
  background-color: #dbc742;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
  color: black;
  font-size: 24px;
  align-self: center;
}

.ww {
  display: flex;
  align-items: flex-end;
}

.wwstud {
  font-weight: 700;
  font-size: 50px;
  color: #dbc742;
}

.wwstud1 {
  display: flex;
  align-items: flex-end;
  margin-left: 20px;
  font-size: 24px;
  padding-bottom: 8px;
}

.wwstud2 {
  width: 70%;
  font-size: 24px;
}

.page2p2 {
  margin-top: 100px;
  height: 200px;
  display: flex;
}

.circles {
  display: flex;
  align-items: center;
}

.circle1,
.circle2,
.circle3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden; 
  position: relative; 
  border: 2px solid gray; 
}

.circle2 {
  margin: 0 -5%;
  z-index: 10;
}

.circle1 img,
.circle2 img,
.circle3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c1 {
  width: 40%;
  font-size: 24px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
}

/* PAGE 3 */
.page3 {
  margin-top: 150px;
  padding: 0 40px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  background-repeat: no-repeat;
  background-position: center center;
}

.uslugi {
  display: flex;
  font-size: 40px;
  color: white;
  margin-bottom: 40px;
}

.uslugi img {
  padding-right: 10px;
  width: 50px;
  height: 50px;
}

.content {
  display: grid;
  grid-template-columns: 40% 30% 30%;
  grid-template-rows: auto auto;
  grid-template-areas:
    "blockA blockB blockB"
    "blockA blockD blockE"
    "blockC blockD blockE";
  min-height: 120vh;
}

.kat1,
.kat122,
.kat11,
.kat2 {
  margin: 5px;
  border-radius: 30px;
  padding-left: 10px;
  padding-top: 10px;
  border: solid 3px white;
  box-sizing: border-box; 
}

.kat12 {
  margin: 5px;
  border-radius: 30px;
  padding-left: 10px;
  padding-top: 10px;
  border: solid 3px white;
  box-sizing: border-box; 
}

.kat1 {
  grid-area: blockA;
  position: relative;
}

.kat12 {
  grid-area: blockB;
  position: relative;
}

.kat122 {
  grid-area: blockC;
  color: #000;
  background-color: white;
  position: relative;
}

.kat11 {
  grid-area: blockD;
  position: relative;
}

.kat2 {
  grid-area: blockE;
  position: relative;
}

.mainnn {
  position: absolute; 
  bottom: 0;
  margin-bottom: 10px;
}

.mainn {
  margin-bottom: 10px;
  font-size: 34px;
}

.mainn1 {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 22px;
}

/* PAGE 4 */
.page4 {
  margin-top: var(--section-spacing);
  font-family: "Onest", sans-serif;
  font-weight: 700;
}

.name {
  margin-top: 100px; 
  padding: 0 40px;
  display: flex;
  font-size: 40px;
}

.name img {
  padding-right: 10px;
  width: 50px;
  height: 50px;
}

.oborud {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  padding: 0 40px; 
  gap: 20px; 
}

.oborud1,
.oborud2,
.oborud3 {
  height: 400px;
  background-color: #bfbfbf;
  overflow: hidden;
  border-radius: 15px; 
}

.oborud1 {
  width: 30%;
}

.oborud2 {
  width: 20%;
}

.oborud3 {
  width: 48%;
}

.oborud1 img,
.oborud2 img,
.oborud3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; 
}

.oborud1:hover img,
.oborud2:hover img,
.oborud3:hover img {
  transform: scale(1.05);
}

.name1 img {
  padding-right: 10px;
  width: 50px;
  height: 50px;
}

.clients-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 20px 0;
  background-color: #f9f9f9;
  padding: 40px 0;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.carousel-container {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 25%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  max-width: 65%;
  height: auto;
  object-fit: contain;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.14);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding: 0 20px;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #bbb;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-dot.active {
  background: #dbc742;
  transform: scale(1.2);
}
@media (max-width: 1200px) {
  .carousel-slide {
    flex: 0 0 33.333%; 
  }
}

@media (max-width: 992px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 100%; 
    padding: 15px;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: auto; 
    bottom: 10px; 
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.7); 
  }

  .carousel-prev {
    left: 10px;
    right: auto;
  }

  .carousel-next {
    right: 10px;
    left: auto; 
  }

  .carousel-dots {
    margin-top: 20px;
    padding: 0 10px; 
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 18px;
    bottom: 5px;
  }

  .carousel-slide img {
    max-width: 95%;
  }
}

/* PAGE 5 */
.page5 {
  margin-top: var(--section-spacing);
  padding: 0 40px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  background-color: #0a0a0a;
  color: white;
  position: relative;
  overflow: hidden;
}

.page5::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(219, 199, 66, 0.2) 0%,
    rgba(219, 199, 66, 0) 70%
  );
  z-index: 0;
}

.page5::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(219, 199, 66, 0.2) 0%,
    rgba(219, 199, 66, 0) 70%
  );
  z-index: 0;
}

.name1 {
  font-size: 48px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.name1::after {
  content: none;
}

.contacts {
  display: flex;
  gap: 60px;
  position: relative;
  z-index: 1;
  align-items: flex-start;
  min-height: 500px;
}

.co1 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 60px;
  padding-left: 0;
}

.co2,
.co3 {
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 25px;
  padding-left: 0;
  color: white;
  text-decoration: none;
}

.co4 {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px; 
  padding-bottom: 0;
}

.con1 {
  width: 80%;
  font-weight: 300;
  color: #dbc742;
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  margin-top: 0;
}

.contacts1 {
  width: 50%;
  flex: 0 0 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  height: 100%;
  padding-bottom: 100px;
  padding-top: 0;
  height: 100%;
}

.contacts2 {
  margin-left: 40px;
  width: calc(50% - 40px);
  box-sizing: border-box;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(219, 199, 66, 0.1);
}

.co41,
.co42 {
  position: relative;
  color: white;
  text-decoration: none;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  width: fit-content;
  line-height: 1;
  font-size: 18px;
  padding-left: 25px;
}

.co41::before,
.co42::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #dbc742;
  transition: transform 0.3s ease;
}

.co41:hover,
.co42:hover {
  color: #dbc742;
  padding-left: 30px;
}

.co41:hover::before,
.co42:hover::before {
  transform: translateX(5px);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  font-size: 16px;
  transition: all 0.3s;
  box-sizing: border-box;
  background-color: transparent;
  color: black;
  background-color: white;
  border-radius: 5px;
}

.form-input:focus {
  outline: none;
  border-bottom-color: #dbc742;
  box-shadow: 0 0 0 2px rgba(219, 199, 66, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background-color: #dbc742;
  color: black;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.submit-btn:hover {
  background-color: #d4c140;
  box-shadow: 0 5px 15px rgba(219, 199, 66, 0.3);
  transform: translateY(-2px);
}

.submit-btn:hover::after {
  animation: ripple 1s ease-out;
}

.status-message {
  margin-top: 25px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  display: none;
  font-weight: 500;
}

.success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.error {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* PAGE 6 */
.page6 {
  margin-top: var(--section-spacing); 
  padding: 0 40px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.page6 .name1 {
  font-size: 40px;
  margin-bottom: 50px;
}

.page66 {
  display: flex;
  gap: 40px;
  margin-bottom: 80px;
  align-items: flex-start;
}

.case-container,
.case-container1 {
  display: flex;
  flex-direction: column;
  width: 50%;
  flex: 1;
}

.pa1 {
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.pa1 img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.pa2 {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  margin-top: 40px;
  width: calc(100% - 60px);
  margin-left: 60px;
  line-height: 1.6;
}

.hover-block {
  width: calc(100% - 60px);
  margin-top: 40px;
  margin-left: 60px;
}

.pa3 {
  width: 100%;
  height: 1px;
  background: white;
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.pa4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  cursor: pointer;
  position: relative;
  padding-right: 40px;
}

.pa4::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: calc(100% + 20px);
  background: #dbc742;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pa4-text {
  color: white;
  transition: color 0.3s ease;
  font-size: 18px;
  flex-grow: 1;
}

.pa4-arrow {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.pa4:hover .pa3 {
  background: #dbc742;
}

.pa4:hover::before {
  opacity: 1;
}

.pa4:hover .pa4-text {
  color: black;
}

.pa4:hover .pa4-arrow {
  transform: translateY(-50%) translateX(-5px);
  content: url("img/strela1.svg");
  width: 40px;
  height: 40px;
}

.photo,
.photo1 {
  width: 50%;
  flex: 1;
  background-color: gray;
  min-height: 500px;
  border-radius: 8px;
  object-fit: cover;
}

/* PAGE 7 */
.page7 {
  margin-top: 100px;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  width: 86%;
  border: solid white;
  background-color: white;
  border-radius: 30px;
  height: 200px;
  color: black;
}

.p71 {
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: auto;
  height: 100%;
}

.end1 {
  display: flex;
  flex-direction: column;
  color: #000;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.obs {
  padding: 10px;
  border-radius: 30px;
  background-color: #dbc742;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.obs:hover {
  background-color: #c5b235;
}

.socseti {
  display: flex;
  align-items: center;
}

.end12 {
  display: flex;
  flex-direction: column;
  color: #000;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.end1,
.end12 {
  flex-shrink: 0;
}

.page7 a {
  color: black;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.page7 .end12 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: #dbc742;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.page7 .end12 a:hover::after {
  width: 100%;
}

.page7 .end1 > a[href="#"]::after,
.page7 .end1 > a[href="#"]:hover::after {
  display: none;
}

.page7 .co411::after,
.page7 .co421::after,
.page7 .co411:hover::after,
.page7 .co421:hover::after {
  display: none;
}

.page7 .co411,
.page7 .co421 {
  display: inline-block;
  margin-right: 15px;
}

.page7 .co411 img,
.page7 .co421 img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.page7 .co411:hover img,
.page7 .co421:hover img {
  transform: scale(1.1);
}

.page7 .end1 > a[href="#Contacts"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: #dbc742;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.page7 .end1 > a[href="#Contacts"]:hover::after {
  width: 100%;
}

.to-top {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.to-top1, .text-link {
  margin-bottom: 15px;
}

/* BUTTON!! */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal {
  background: #ffee58;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  opacity: 0;
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  border: 3px solid #000;
}

@keyframes modalAppear {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  font-size: 24px;
  font-weight: 900;
  color: #000;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-btn {
  font-size: 28px;
  cursor: pointer;
  color: #000;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff5555;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input {
  padding: 15px;
  border: 3px solid #000;
  border-radius: 12px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

button[type="submit"] {
  padding: 16px;
  background: #000;
  color: #ffee58;
  font-weight: 900;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
}

button[type="submit"]:hover {
  background: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.obs,
.order-button,
.sovr121,
.pa4-text,
.sovr122,
.navbarRight {
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.obs:hover,
.order-button:hover,
.sovr121:hover,
.pa4-text:hover,
.sovr122:hover {
  filter: drop-shadow(0 2px 8px rgba(219, 199, 66, 0.7));
}

/* ======================================================= */
/* АДАПТИВНОСТЬ */
/* ======================================================= */
/* ========================================================================== */
/* АДАПТАЦИЯ ДЛЯ PAGE 1 */
/* ========================================================================== */

@media (max-width: 1024px) {
  .predl {
    width: 90%;
    margin-top: 70px;
  }
  .sovr {
    font-size: 70px;
  }
  .studia {
    font-size: 70px;
  }
  .studia1 {
    font-size: 40px;
  }
  .order-button,
  .sovr121 {
    font-size: 18px;
    padding: 8px 25px;
  }
  .sovr122 {
    width: 45px;
    height: 45px;
    padding: 12px;
  }
  .sovr122 img {
    transform: scale(0.8);
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .predl {
    width: 100%;
    padding: 0 15px;
    margin-top: 100px;
    box-sizing: border-box;
  }

  .sovr {
    font-size: 42px;
    flex-direction: column;
    text-align: center;
    padding: 0;
    margin-bottom: 10px;
  }

  .sovr img {
    height: 40px;
    margin: 10px 0 0 0;
  }

  .predl > div:last-child {
    flex-direction: column-reverse; 
    align-items: center;
  }

  .sovr1 {
    width: 100%;
    padding: 0;
    margin-top: 20px;
    text-align: center;
  }

  .studia {
    font-size: 42px;
    margin-top: 0;
    line-height: 1;
  }

  .sovr12 {
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
    width: 100%; /* Добавляем */
  }

  .sovr121 {
    width: auto;
    max-width: none;
    padding: 10px 20px;
    font-size: 18px;
    margin: 0; /* Убираем все margins */
    white-space: nowrap;
  }

  .sovr122 {
    width: 50px;
    height: 50px;
    margin-left: 0;
  }

  .sovr2 {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .sovr2 img {
    width: 100%;
    height: auto;
    transform: none;
    display: block;
  }
}

@media (max-width: 480px) {
  .predl {
    margin-top: 70px;
  }
  .order-button {
    font-size: 16px;
    padding: 6px 20px;
  }
  .sovr {
    font-size: 36px;
    padding: 0 5px;
  }
  .sovr img {
    height: 40px;
  }
  .studia {
    font-size: 36px;
  }
  .studia1 {
    display: none;
  }
  .sovr121 {
    font-size: 18px;
    padding: 8px 20px;
  }
  .sovr122 {
    width: 50px;
    height: 50px;
    padding: 8px;
  }
}

/* ========================================================================== */
/* АДАПТАЦИЯ ДЛЯ PAGE 2 */
/* ========================================================================== */

@media (max-width: 1440px) {
  .page2 {
    padding: 0 30px;
  }
  .wwstud {
    font-size: 44px;
    white-space: nowrap;
  }
  .wwstud1,
  .wwstud2,
  .p2p22 {
    font-size: 22px;
  }
  .circle1,
  .circle2,
  .circle3 {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 1280px) {
  .page2p1 {
    min-height: 450px;
  }
  .wwstud {
    font-size: 40px;
    white-space: nowrap; 
  }
  .p2p22 {
    width: 380px;
    height: 380px;
  }
  .c1 {
    font-size: 22px;
  }
}

@media (max-width: 1024px) {
  .page2 {
    padding: 0 25px;
  }
  .wwstud {
    font-size: 36px;
    white-space: nowrap; 
  }
  .wwstud1,
  .wwstud2 {
    font-size: 20px;
  }
  .p2p22 {
    width: 340px;
    height: 340px;
    font-size: 20px;
    padding: 1.8rem;
  }
  .circle1,
  .circle2,
  .circle3 {
    width: 130px;
    height: 130px;
  }
  .wwstud2 {
    line-height: 1.4;
    margin-top: 15px;
  }
}

@media (max-width: 900px) {
  .p2p22 {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .page2 {
    padding: 0 20px;
  }
  .page2p1 {
    flex-direction: column;
    min-height: auto;
    gap: 40px;
  }
  .p2p21,
  .p2p22 {
    width: 100%;
  }
  .p2p22 {
    width: min(80vw, 400px);
    height: min(80vw, 400px);
    margin: 0 auto;
  }
  .ww {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .wwstud {
    font-size: clamp(32px, 6vw, 36px);
    line-height: 1.2;
    white-space: nowrap; 
  }
  .wwstud1 {
    font-size: clamp(18px, 3.5vw, 20px);
    margin-left: 0;
    padding-bottom: 0;
  }
  .wwstud2 {
    width: 100%;
    font-size: clamp(18px, 3.5vw, 20px);
    margin-top: 20px;
    line-height: 1.4;
  }
  .page2p2 {
    flex-direction: column;
    height: auto;
    margin-top: 50px;
    gap: 30px;
  }
  .circles {
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
  }
  .circle1,
  .circle2,
  .circle3 {
    width: clamp(100px, 22vw, 130px);
    height: clamp(100px, 22vw, 130px);
    margin: 0;
  }
  .c1 {
    width: 100%;
    margin-left: 0;
    font-size: clamp(18px, 3.5vw, 20px);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page2 {
    padding: 0 15px;
  }
  .p2p22 {
    font-size: clamp(16px, 4vw, 18px);
    padding: 1.5rem;
  }
  .wwstud {
    font-size: clamp(28px, 7vw, 32px);
    white-space: nowrap; 
  }
  .circle1,
  .circle2,
  .circle3 {
    width: clamp(80px, 25vw, 100px);
    height: clamp(80px, 25vw, 100px);
  }
  .wwstud2 {
    line-height: 1.3;
    margin-top: 0px;
  }
}

@media (max-width: 360px) {
  .p2p22 {
    width: 90vw;
    height: 90vw;
  }
  .wwstud1,
  .wwstud2 {
    font-size: 16px;
  }
  .wwstud2 {
    line-height: 1.3;
  }
}

/* ========================================================================== */
/* АДАПТАЦИЯ ДЛЯ PAGE 3 */
/* ========================================================================== */
@media (max-width: 1920px) {
  .page3 {
    max-width: 1600px;
    padding: 0 40px;
  }

  .content {
    gap: 15px;
  }

  .kat1,
  .kat12,
  .kat122,
  .kat11,
  .kat2 {
    min-height: 120px;
    padding: 15px;
  }
}

@media (max-width: 1280px) {
  .kat1,
  .kat12,
  .kat122,
  .kat11,
  .kat2 {
    min-height: 200px;
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .page3 {
    padding: 0 20px;
  }
  .uslugi {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .content {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "blockA blockB"
      "blockA blockC"
      "blockD blockE";
    gap: 20px;
    min-height: auto;
  }
  .kat1 {
    grid-area: blockA;
  }
  .kat12 {
    grid-area: blockB;
  }
  .kat122 {
    grid-area: blockC;
  }
  .kat11 {
    grid-area: blockD;
  }
  .kat2 {
    grid-area: blockE;
  }
  .kat1,
  .kat12,
  .kat122,
  .kat11,
  .kat2 {
    padding: 20px;
    min-height: 250px;
    font-size: 18px;
  }
  .mainn {
    font-size: 28px;
  }
  .mainn1 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page3 {
    padding: 0 15px;
  }
  .uslugi {
    font-size: 28px;
    margin-bottom: 25px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .uslugi img {
    margin-bottom: 10px;
    margin-right: 0;
  }
  .content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    grid-template-columns: unset;
    grid-template-rows: unset;
    grid-template-areas: unset;
    min-height: auto;
  }
  .kat1,
  .kat12,
  .kat122,
  .kat11,
  .kat2 {
    width: 100%;
    margin: 0;
    padding: 15px;
    border-radius: 15px;
    min-height: 180px;
    font-size: 16px;
    box-sizing: border-box;
  }
  .mainn {
    font-size: 24px;
  }
  .mainn1 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page3 {
    margin-top: 50px;
  }
  .uslugi {
    font-size: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .uslugi img {
    margin-bottom: 8px;
    margin-right: 0;
  }

  .kat1 img,
  .kat12 img,
  .kat122 img,
  .kat11 img,
  .kat2 img {
    width: 50px;
    height: 50px;
    top: 20px; 
  }
  .mainn {
    font-size: 20px;
  }
  .mainn1 {
    font-size: 14px;
  }
}

/* ========================================================================== */
/* АДАПТАЦИЯ ДЛЯ PAGE 4 */
/* ========================================================================== */

@media (max-width: 1024px) {
  .page4 .name,
  .page4 .oborud {
    padding-left: 20px;
    padding-right: 20px;
  }
  .oborud1,
  .oborud2,
  .oborud3 {
    height: 300px;
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page4 {
    padding: 0 15px;
  }
  .name {
    margin-top: 50px;
    font-size: 32px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
  }
  .name img {
    margin-bottom: 10px;
    padding-right: 0;
  }
  .oborud {
    flex-direction: column;
    gap: 15px;
    padding: 0;
  }
  .oborud1,
  .oborud2,
  .oborud3 {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 28px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .name img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    padding-right: 0;
  }
  .oborud1,
  .oborud2,
  .oborud3 {
    height: 200px;
  }
}

/* ========================================================================== */
/* АДАПТАЦИЯ ДЛЯ REVIEWS SECTION (Раздел отзывов) */
/* ========================================================================== */

@media (max-width: 1440px) {
  .review-carousel {
    padding: 0 60px;
  }
  .arrow {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 1280px) {
  .review-carousel {
    padding: 0 50px;
  }
  .review-content {
    padding: 40px;
  }
}

@media (max-width: 1024px) {
  .reviews-section {
    padding: 50px 30px;
  }
  .review-carousel {
    padding: 0 40px;
  }
  .review-photo {
    height: 250px;
  }
  .arrow {
    transform: translateY(-50%) scale(0.9);
  }
}

@media (max-width: 768px) {
  .reviews-section {
    padding: 40px 20px;
    position: relative;
    overflow: visible;
  }

  .review-carousel {
    padding: 0 50px;
    position: relative;
    min-height: 500px;
  }

  .reviews-container {
    position: relative;
    height: 100%;
  }

  .review {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    height: auto;
    transition: all 0.6s ease-out;
    opacity: 0;
    transform: translateX(30px);
  }

  .review.active {
    opacity: 1;
    transform: translateX(0);
    display: flex;
  }

  .review-photo {
    width: 100%;
    height: 250px;
    border-radius: 15px 15px 0 0;
  }

  .review-content {
    width: 100%;
    padding: 30px;
    border-radius: 0 0 15px 15px;
  }

  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(219, 199, 66, 0.2);
    border: 2px solid rgba(219, 199, 66, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .arrow.prev {
    left: 0;
  }

  .arrow.next {
    right: 0;
  }

  .dots-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
  }

  .oborud2 img {
    object-fit: cover;
    object-position: center 20%;
  }
}

@media (max-width: 480px) {
  .oborud2 img {
    object-fit: cover;
    object-position: center 30%;
  }

  .review-carousel {
    min-height: 450px;
    padding: 0 40px;
  }

  .review-photo {
    height: 200px;
  }

  .review-content {
    padding: 25px;
  }

  .arrow {
    width: 44px;
    height: 44px;
  }
}

/* ========================================================================== */
/* АДАПТАЦИЯ ДЛЯ PAGE 5 */
/* ========================================================================== */

@media (max-width: 1024px) {
  .page5 {
    padding: 0 25px;
  }

  .name1 {
    font-size: 36px;
  }
  .name1 img {
    width: 40px;
    height: 40px;
  }
  .con1 {
    font-size: 26px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
  }
  .co1 {
    font-size: 22px;
    margin-bottom: 30px;
  }
  .co2,
  .co3 {
    font-size: 18px;
  }

  .contacts {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .contacts1,
  .contacts2 {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .contacts2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
  }

  form {
    width: 100%;
    max-width: 400px;
  }

  .contacts1 {
    padding-bottom: 0;
    text-align: center;
  }

  .co4 {
    position: static;
    margin-top: 40px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .name1 {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    width: 100%;
  }

  .name1 img {
    width: 35px;
    height: 35px;
    margin: 0 0 10px 0; 
    display: block;
  }

  .name1::before,
  .name1::after {
    content: none !important;
  }
  .page5 {
    padding: 0 25px;
  }
  .name1 {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .con1 {
    font-size: 24px;
  }
  .co1 {
    font-size: 20px;
  }
  .co4 {
    margin-top: 30px;
  }

  .contacts1,
  .contacts2 {
    max-width: 90%;
  }

  .contacts2 {
    padding: 35px 25px;
  }
}

@media (max-width: 480px) {
  .name1 {
    font-size: 28px;
  }

  .name1 img {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }
  .con1 {
    font-size: 22px;
    margin-bottom: 25px;
  }
  .co1 {
    font-size: 18px;
    margin-bottom: 25px;
  }
  .co2,
  .co3 {
    font-size: 16px;
  }
  .co41,
  .co42 {
    font-size: 16px;
  }
  .form-label {
    font-size: 12px;
  }
  .form-input,
  .submit-btn {
    font-size: 14px;
  }

  .contacts2 {
    max-width: 100%;
    padding: 30px 20px;
    border-radius: 12px;
  }

  .submit-btn {
    width: 100%;
  }

  .co4 {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

/* ========================================================================== */
/* АДАПТАЦИЯ ДЛЯ PAGE 6 */
/* ========================================================================== */

@media (max-width: 1024px) {
  .page6 {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .page6 {
    padding: 0 15px;
  }
  .page6 .name1 {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .page66 {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
  }
  .case-container,
  .case-container1 {
    width: 100%;
  }
  .pa1 {
    font-size: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .pa1 img {
    width: 40px;
    height: 40px;
  }
  .pa2 {
    margin-top: 20px;
    width: 100%;
    margin-left: 0;
    font-size: 16px;
  }
  .hover-block {
    width: 100%;
    margin-top: 20px;
    margin-left: 0;
  }
  .pa4 {
    padding-right: 20px;
  }
  .pa4-text {
    font-size: 16px;
  }
  .pa4-arrow {
    width: 30px;
    height: 30px;
  }
  .photo,
  .photo1 {
    width: 100%;
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .page6 .name1 {
    font-size: 28px;
  }
  .pa1 {
    font-size: 20px;
  }
  .pa1 img {
    width: 30px;
    height: 30px;
  }
  .pa2 {
    font-size: 14px;
  }
  .pa4-text {
    font-size: 14px;
  }
  .pa4-arrow {
    width: 25px;
    height: 25px;
  }
  .photo,
  .photo1 {
    min-height: 200px;
  }
}

/* ========================================================================== */
/* АДАПТАЦИЯ ДЛЯ PAGE 7 (FOOTER) */
/* ========================================================================== */

@media (max-width: 868px) {
  .page7 {
    width: 95%;
    height: auto;
    padding: 20px;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .p71 {
    flex-direction: column;
    width: 100%;
    padding: 0;
    height: auto;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .p71 > * {
    margin-bottom: 0;
  }

  .end1,
  .end12 {
    flex-shrink: unset;
    width: 100%;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .text-link-contacts,
  .end1 a,
  .end12 a {
    margin-bottom: 0;
  }

  .obs {
    width: fit-content;
    font-size: 12px;
    padding: 8px 20px;
    margin-bottom: 0;
  }

  .socseti {
    justify-content: center;
    display: flex;
    gap: 0px;
    margin-bottom: 0;
  }

  .obs {
    font-size: 14px;
  }

  .to-top1 {
    margin-bottom: 0px;
  }
}

@media (max-width: 480px) {
  .page7 {
    padding: 15px;
    border-radius: 15px;
  }
  .end1,
  .end12 {
    gap: 18px;
  }

  .obs {
    font-size: 12px;
  }

  .to-top1 {
    margin-bottom: 0px;
  }
}

/* ========================================================================== */
/* ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ (которые не зависят от конкретной страницы) */
/* ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --section-spacing: 100px;
  }
  body {
    font-size: 18px;
    margin: 0 auto;
  }
  .navbar {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 80px;
  }
  body {
    font-size: 16px;
    margin: 0 auto;
  }
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 10px;
  }
  .navbarCenter {
    display: none;
  }
  .navbarRight {
    margin-left: auto;
  }
  .navbarCenter a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-spacing: 60px;
  }
  body {
    font-size: 16px;
    margin: 0 auto;
  }
  .navbar {
    padding: 10px 5px;
  }
  .logo {
    height: 40px;
  }
}
