:root {
  --cream: #f8f4ee;
  --gold: #c9963a;
  --gold-light: #e8c97a;
  --charcoal: #2d3142;
  --powder: #e8d5c4;
  --white: #ffffff;
  --text-muted: #5b5754;
  --border: rgba(45, 49, 66, 0.12);
  --border-bottom: #cfcdcd;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  font-family: "Jost", "Cormorant Garamond", sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  font-weight: 300;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/*btn*/

.btn {
  padding: 10px 20px;
  background-color: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s ease-in-out;
}

/*HEADER*/

.header {
  border-bottom: 1px solid var(--border);
}

.header_content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.header_icon {
  width: 80px;
  height: 80px;
}
.header_brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header_name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 20px;
  font-family: "Cormorant Garamond", serif;
}

.header_list {
  display: flex;
  gap: 13px;
  list-style: none;
}

.header_list li a {
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.header_list li a:hover {
  border-bottom-color: var(--gold);
}

.header_item {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--charcoal);
}

.header_phone a {
  display: flex;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--white);
  background-color: var(--gold);
  transition: 0.3s ease-in-out;
}

.header_phone a:hover {
  background-color: var(--charcoal);
  border: transparent;
  color: var(--white);
}

/*MAIN*/

.main {
  flex: 1 1 auto;
}

.hero_content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 15px 30px;
  align-items: stretch;
}

.hero_left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  height: 100%;
  padding: 15px;
}
.hero_left .spacer {
  flex: 1;
  min-height: 20px;
}

.hero_title {
  /* margin-bottom: 50px;*/
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
}

.hero_desc {
  font-family: "Cormorant Garamond", serif;
  font-size: 66px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
  /*  margin-bottom: 32px;*/
  letter-spacing: 1.4px;
}

em {
  color: var(--gold);
}

.hero_text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 420px;
  /*  margin-bottom: 32px;*/
  font-weight: 300;
}

.hero_link {
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--white);
  background-color: var(--gold);
  transition: 0.3s ease;
  margin-top: 0;
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
}

.hero_link:hover {
  background-color: var(--charcoal);
  border: transparent;
  color: var(--white);
}

.hero_right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.hero_right img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  /* position: center;*/
  border-radius: 10px;
  display: block;
}

.guide_box {
  padding: 20px 0 60px;
  background-color: var(--cream);
}
.guide_download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background-color: transparent;
  border: 2px solid var(--gold);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.guide_download:hover {
  background-color: var(--gold);
  color: var(--white);
}

.guide_download i {
  font-size: 18px;
}

.guide_content {
  display: flex;
  justify-content: center;
  align-items: center;
}
/*statistics*/

.statistics {
  margin-bottom: 60px;
}

.statistics_content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.statistics_card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  height: auto;
  padding: 48px 40px;
  background-color: var(--charcoal);
  color: var(--text-muted);
  text-align: center;
}

.statistics_bar {
  margin-bottom: 15px;
  font-size: 74px;
  font-weight: 500;
  font-family: "Cormorant Garamond", serif;
  color: #c9963a;
  letter-spacing: 1px;
}

.statistics_text {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 300;
  font-family: "Cormorant Garamond", sans-serif;
  color: var(--gold);
  line-height: 1.4;
  letter-spacing: 1.6px;
}

/*About mediator*/

.about {
  border-bottom: 1px solid var(--border-bottom);
}

.about_content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 15px 30px;
}

.about_title {
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
}

.about_left-block {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.about_text {
  font-family: "Cormorant Garamond", serif;
  font-size: 66px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 25px;
  letter-spacing: 1.4px;
}

.about_right-block {
  padding: 15px;
}

.about_desc {
  font-size: 28px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 300;
  width: 100%;
}

.about_list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

.about_item {
  font-size: 24px;
  font-family: "Cormorant Garamond", serif;
  color: var(--charcoal);
  letter-spacing: 1.2px;
  line-height: 1.2;
  font-weight: 500;
}

.about_item::before,
.services_item::before {
  content: "▪";
  color: var(--gold);
  padding-right: 10px;
  display: inline;
}
/*services*/

.services {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-bottom);
}

.services_title,
.principles_title,
.education_title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 40px;
  font-weight: 600;
  font-family: "Cormorant Garamond", sans-serif;
  color: var(--gold);
  padding: 15px 30px;
  text-align: center;
  margin-bottom: 30px;
}

.services_content {
  padding: 15px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.services_card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  height: 100%;
  padding: 30px 24px;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.services_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(45, 49, 66, 0.08);
}

.services_icon img {
  width: 55px;
  height: 55px;
  margin-top: 0;
  margin-bottom: 20px;
}

.services_list {
  list-style: none;
}

.services_subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.services_item {
  font-size: 18px;
  font-weight: 300;
}

.services_item:not(:last-child) {
  margin-bottom: 10px;
}

.principles {
  padding: 80px 0;
}

.principles_content {
  padding: 15px 30px;
  line-height: 1.6;
  font-size: 20px;
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-bottom);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  user-select: none;
}
summary:hover {
  background-color: rgba(201, 150, 58, 0.03);
}

summary::after {
  content: "+";
  font-size: 36px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
  transition: transform 0.35s ease, color 0.35s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
  color: var(--charcoal);
}

details[open] summary {
  background-color: rgba(201, 150, 58, 0.05);
}
details > .principles_content {
  animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
summary::-webkit-details-marker {
  display: none;
}

/*Education*/

.education_content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 15px 30px;
}

.diploma_link {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(201, 150, 58, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(45, 49, 66, 0.08);
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.diploma_link:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(45, 49, 66, 0.15);
  border-color: rgba(201, 150, 58, 0.6);
}

.diploma_link img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: #f8f4ee;
  padding: 10px;
  border-radius: 6px;
  transition: transform 0.4s ease;
}

.diploma_link:hover img {
  transform: scale(1.04);
}

.diploma_overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 18px;
  background: var(--gold);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.diploma_link:hover .diploma_overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.diploma_overlay i {
  margin-right: 6px;
}

/*footer*/

.footer {
  background-color: var(--charcoal);
  color: var(--powder);
}

.footer_content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 25px 30px;
}

.footer_contacts {
  font-size: 18px;
  font-weight: 500;
}
.footer_title {
  font-size: 25px;
  font-weight: 400;
  color: var(--powder);
  letter-spacing: 1.6px;
  margin-bottom: 30px;
}

.footer_info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  gap: 20px;
}

.footer_phone,
.footer_email {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 25px;
  opacity: 0.75;
}

address {
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 25px;
  opacity: 0.75;
}

.footer_social {
  display: flex;
  gap: 30px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0f2f5;
  color: #333;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  color: white;
}

.social-link.instagram:hover {
  background: radial-gradient(
    circle at 30% 30%,
    #feda75,
    #fa7e1e,
    #d62976,
    #962fbf,
    #4f5bd5
  );
  box-shadow: 0 5px 15px rgba(214, 41, 118, 0.4);
}

.social-link.telegram:hover {
  background: #0088cc;
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}
.footer_copy {
  border-top: 1px solid rgba(232, 213, 196, 0.15);
  padding: 20px 30px;
  text-align: center;
  font-size: 13px;
  color: var(--powder);
  opacity: 0.7;
}

.footer_copy-text {
  text-align: center;
}
.footer_schedule {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  color: var(--powder);
  opacity: 0.75;
  text-align: left;
}

.footer_schedule i {
  color: var(--gold);
  margin-right: 6px;
  width: 14px;
}
.footer_nav-list {
  list-style: none;
}

/*UP-Arrow*/

.up-arrow {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--gold);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.up-arrow:hover {
  background: var(--charcoal);
  transform: translateY(-3px) scale(1.05);
}
.up-arrow:active {
  transform: scale(0.95);
}

footer form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

footer input,
footer textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #2d3142;
  background-color: #ffffff;
  border: 1px solid #cfcdcd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
  min-height: 48px;
  box-shadow: none;
}

footer textarea {
  min-height: 130px;
  line-height: 1.5;
}

footer input::placeholder,
footer textarea::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

footer input:hover,
footer textarea:hover {
  border-color: #c9963a;
}

footer input:focus,
footer textarea:focus {
  border-color: #c9963a;
  box-shadow: 0 0 0 4px rgba(201, 150, 58, 0.18);
}

footer input:-webkit-autofill,
footer input:-webkit-autofill:hover,
footer input:-webkit-autofill:focus,
footer textarea:-webkit-autofill {
  -webkit-text-fill-color: #2d3142 !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  caret-color: #2d3142;
  transition: background-color 5000s ease-in-out 0s;
}

footer button.btn {
  width: 100%;
  padding: 14px 24px;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #c9963a;
  border: 1px solid #c9963a;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
}

footer button.btn:hover {
  background-color: transparent;
  color: #c9963a;
  box-shadow: 0 6px 20px rgba(201, 150, 58, 0.3);
}

footer button.btn:active {
  transform: scale(0.98);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1024px) {
  .header_content {
    gap: 20px;
  }

  .header_icon {
    width: 70px;
    height: 70px;
  }

  .header_name {
    font-size: 17px;
  }

  .header_list {
    gap: 10px;
  }

  .header_item {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .header_phone a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .hero_desc,
  .about_text {
    font-size: 48px;
  }

  .hero_text {
    font-size: 17px;
  }

  .services_content,
  .education_content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer_content {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .services_title,
  .principles_title,
  .education_title {
    font-size: 32px;
  }
}
.lang_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang_btn:hover {
  background: var(--gold);
  color: var(--white);
}

.lang_btn i {
  font-size: 14px;
}

@media (max-width: 768px) {
  .header_content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  .header_brand {
    flex-direction: row;
    gap: 10px;
  }

  .header_name {
    align-items: flex-start;
  }

  .header_name-text {
    font-size: 12px;
  }
  .header_name-profession {
    font-size: 10px;
  }

  .header_phone a {
    font-size: 13px;
    padding: 8px 12px;
  }
  .header_nav {
    width: 100%;
    order: 3;
  }
  .header_list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .header_item {
    font-size: 11px;
    letter-spacing: 1.2px;
  }
  .header_icon {
    width: 50px;
    height: 50px;
  }
  .hero_content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .hero_right {
    order: -1;
  }

  .hero_desc {
    font-size: 36px;
  }

  .hero_text {
    font-size: 16px;
    max-width: 100%;
  }
  .statistics_content,
  .about_content,
  .services_content,
  .education_content {
    grid-template-columns: 1fr;
  }
  .services_title,
  .principles_title,
  .education_title {
    font-size: 22px;
  }

  .about_text {
    font-size: 36px;
  }

  .about_desc {
    font-size: 20px;
  }

  .about_item {
    font-size: 18px;
  }

  .footer_title {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
    opacity: 0.9;
  }
  .footer_content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .footer_info {
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    gap: 15px;
    border-bottom: 1px solid rgba(232, 213, 196, 0.12);
  }
  .footer_info .header_brand {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    margin-bottom: 5px;
  }
  .footer_info .header_icon {
    width: 50px;
    height: 50px;
  }

  .footer_info .header_name {
    align-items: flex-start;
    text-align: left;
    display: flex;
  }
  .footer_info .header_name-text {
    font-size: 15px;
  }

  .footer_info .header_name-profession {
    font-size: 12px;
  }
  .footer_phone,
  .footer_email {
    font-size: 14px;
    margin-bottom: 0;
  }

  address {
    font-size: 14px;
    margin-bottom: 0;
  }
  .footer_social {
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .footer_info:last-child {
    border-bottom: none;
  }

  .footer_schedule {
    text-align: center;
    align-items: center;
    font-size: 14px;
    margin-top: 5px;
  }
  footer form {
    max-width: 100%;
    margin: 0 auto;
    gap: 12px;
  }

  footer input,
  footer textarea {
    font-size: 14px;
    padding: 12px 15px;
  }

  footer textarea {
    min-height: 100px;
  }

  footer button.btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .footer_copy {
    padding: 20px 15px;
    font-size: 11px;
    text-align: center;
  }

  .footer_copy-text {
    padding: 0;
    font-size: 11px;
    line-height: 1.4;
  }

  .up-arrow {
    width: 48px;
    height: 48px;
    font-size: 26px;
    bottom: 20px;
    right: 15px;
  }
}
.lang_btn {
  padding: 6px 10px;
  font-size: 11px;
  gap: 4px;
}

.lang_btn i {
  font-size: 12px;
}
