:root {
  --gray-50: #ececf0;
  --gray-100: #e5e5ea;
  --gray-200: #d1d1d6;
  --gray-300: #c7c7cc;
  --gray-400: #aeaeb2;
  --gray-500: #8e8e93;
  --gray-600: #606060;
  --gray-700: #404040;
  --gray-800: #222;
  --gray-900: #121212;
  --gray-f: #fff;
  --yellow-500: #deda07;
  --red: #ff3b30;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
main {
  flex: 1;
}
p {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
  text-align: justify;
  vertical-align: middle;
}

.col-lg-6 {
  padding: 0 !important;
}

h1 {
  font-family: "Roboto Serif", serif;
  font-size: 70px;
  font-weight: 400;
}

h2 {
  font-family: "Roboto Serif", serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}
h4 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

h5 {
  font-family: "Montserrat", serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
  vertical-align: middle;
  margin: 0;
}

h6 {
  font-family: "Montserrat", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
  outline: none;
}
.gap-20 {
  gap: 20px;
}

/* ---- alert ---- */
.alert {
  top: 87px;
  position: absolute;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  z-index: 999;
  right: 10px;
}
/* ------- buttons  */
.btn-primary {
  background-color: var(--yellow-500);
  color: var(--gray-800);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--gray-800) !important;
  color: var(--gray-f) !important;
}

.btn-secondary {
  background-color: transparent;
  color: var(--gray-800);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--gray-800);
  border-radius: 4px;
  padding: 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s color 0.3s ease;
}
.btn-secondary:hover {
  background-color: var(--yellow-500) !important;
  color: var(--gray-800) !important;
  border: 2px solid var(--yellow-500) !important;
}

.link-underline {
  text-underline-mode: #1b4dff;
  color: #1b4dff;
  text-decoration: underline;
}

.text-gray-600 {
  color: var(--gray-600);
}

/* --- help-block ---- */
.help-block {
  font-size: 14px;
}
.help-block-error {
  color: red;
}

/* --- header ---*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
}

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

.header__logo {
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 48px;
  flex: 1;
}

.header__menu {
  display: flex;
  list-style: none;
  gap: 48px;
  margin: 0;
}

.header__menu-link {
  color: var(--gray-f);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.3s;
}

.header__menu-link:hover {
  color: var(--yellow-500);
}
.header__menu-link.active {
  background-color: var(--gray-f);
  color: var(--gray-800);
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__switcher {
  display: flex;
  height: 44px;
  padding: 2px;
  align-items: center;
  gap: 2px;
  border-radius: 4px;
  border: 2px solid var(--gray-f);
}

.header__switcher-btn {
  height: 36px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  border-radius: 2px;
  color: var(--gray-f);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.header__switcher-btn--active {
  background: var(--gray-f);
  color: var(--gray-800);
}
.header__switcher-btn:hover {
  background-color: var(--yellow-500);
  color: var(--gray-800);
}

.header__profile {
  display: flex;
  height: 44px;
  padding: 2px;
  align-items: center;
  border-radius: 4px;
  border: 2px solid var(--gray-f);
  text-decoration: none;
}
.header__profile--wrap {
  display: flex;
  align-items: center;
  gap: 2px;

  border-radius: 4px;
  height: 100%;
}
.header__profile--wrap__guest {
  padding: 8px;
}
.header__profile--wrap__user {
  background-color: var(--gray-f);
  height: 100%;
  border-radius: 2px;
  padding-right: 4px;
}
.header__profile--wrap__user span {
  color: var(--gray-800) !important;
  width: 75px;
  display: inline-block; /* або block */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header__profile--wrap__user .icon {
  padding-left: 8px;
  padding-right: 8px;
}
.header__profile--wrap svg {
  flex-shrink: 0;
  color: var(--gray-f);
}

.header__profile span {
  color: var(--gray-f);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.header__profile--wrap__user:hover,
.header__profile--wrap__guest:hover {
  background-color: var(--yellow-500);
}

.header__profile--wrap:hover svg,
.header__profile--wrap:hover span {
  color: var(--gray-800);
}
.nav-wrap {
    gap: 20px;
}

.toggle-menu {
  cursor: pointer;
  display: none;
}

.mobile-menu {
  position: absolute;
  right: -110%;
  display: none;
  width: 220px;
  pointer-events: auto;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  top: 66px;
}

.cabinet-btn-more {
  aspect-ratio: 1/1;
  padding: 6px;
  background-color: var(--gray-800);
  cursor: pointer;
}

.cabinet-button-submenu {
  background-color: var(--gray-800);
  border-radius: 4px;
  width: 100%;
  opacity: 0;
  overflow: hidden;
  right: -111%;
  pointer-events: none;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.cabinet-button-submenu.active {
  opacity: 1;
  right: 0;
  pointer-events: auto;
}

.cabinet-button-submenu a {
  padding: 8px;
  color: var(--gray-f);
}

.cabinet-button-submenu a {
  border-bottom: 1px solid var(--gray-700);
}

.cabinet-button-submenu a:hover {
  background-color: var(--gray-700);
  color: var(--gray-f);
}

/* --- header-black ---*/

.header-black {
  background-color: var(--gray-800);
}

main {
  margin-top: 80px;
}

/* --- breadcrumb_area --- */
.breadcrumb_area {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  margin-top: 8px;
}

.breadcrumb_area li a,
.breadcrumb_area li p {
  font-size: 12px;
  font-weight: 500;
}
.breadcrumb_area li {
  display: flex;
  align-items: center;
  justify-content: center;
}
.breadcrumb_area li a {
  color: var(--gray-500);
}
.breadcrumb_area li p {
  color: var(--gray-900);
  margin-left: 8px;
}
/* -------- */

.site-login,
.site-signup {
  padding: 80px 0;
}
.site-login .logo,
.site-signup .logo {
  height: 82px;
}

.login-wrap {
  max-width: 528px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.login-wrap #login-form,
.login-wrap #form-signup {
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.site-login .header__switcher,
.site-signup .header__switcher {
  background-color: var(--gray-f);
  height: 48px;
  padding: 2px;
  border: none;
}
.site-login .header__switcher-btn,
.site-signup .header__switcher-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  height: 100%;
}
.site-login .header__switcher-btn--active,
.site-signup .header__switcher-btn--active {
  background-color: var(--yellow-500);
}
.site-login .form-group,
.site-signup .form-group {
  margin: 0;
}
.site-login .form-group label,
.site-signup .form-group label {
  margin-bottom: 0;
}

.site-request-password-reset {
  max-width: 528px;
  margin-top: 100px;
}
.site-request-password-reset .logo {
  height: 82px;
  width: 160px;
}
#request-password-reset-form {
  width: 100%;
  margin-top: 60px;
  margin-bottom: 100px;
}
.form-group.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.site-request-password-reset .buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}
/* wait-for-email-validation*/
.wait-for-email-validation {
  margin-top: 100px;
}

/* ---  ---  */

.hero {
  position: relative;
  height: 823px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.about-hero,
.hero {
  margin-top: -80px;
}

.hero__slider {
  position: relative;
  height: 823px;
  width: 100%;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.1) 52.19%
  );
}

.hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 5;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero__content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 160px;
}

.hero__title {
  color: rgba(255, 255, 255, 0.85);
  font-family: "Roboto Serif", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0;
}

.hero__controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 112px;
  right: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__arrow {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s;
}

.hero__arrow:hover {
  opacity: 0.8;
}

.hero__pagination {
  position: absolute;
  bottom: -62px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 30px;
  background: var(--gray-500);
  cursor: pointer;
  transition: background 0.3s;
}

.hero__dot--active {
  background: var(--gray-200);
}

.stats {
  padding: 30px 0 0;
  background: var(--gray-50);
}

.stats__item {
  text-align: center;
}

.stats__number {
  color: #000;
  font-family: "Roboto Serif", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
}

.stats__label {
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.about {
  padding: 80px 0 0;
  background: var(--gray-50);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-right: 125px;
}
.about__btn {
  width: fit-content;
}

.cabinet__text {
  padding-right: 125px;
}
.about__title {
  color: var(--gray-800);
  font-family: "Roboto Serif", -apple-system, Roboto, Helvetica, sans-serif;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about__text {
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.about__image {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.btn-secondary {
  display: inline-flex;
  padding: 15px 48px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  border: 2px solid var(--gray-800);
  background: transparent;
  color: var(--gray-800);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--gray-800);
  color: var(--gray-f);
}

.services {
  padding: 0 0 80px;
  background: var(--gray-50);
}

.services__image {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.services__content {
  padding: 56px 0 56px 125px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.services__title {
  color: var(--gray-800);
  font-family: "Roboto Serif", -apple-system, Roboto, Helvetica, sans-serif;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.services__text {
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}
.cabinet__row,
.services__row {
  display: flex;
  flex-direction: row;
}
.cabinet__row div,
.services__row div {
  flex: 1;
}
.site-services-images-brovary {
  display: flex;
  flex-direction: row;
}
.site-services-images-brovary img {
  width: 50%;
}

.cabinet {
  padding: 0;
  background: var(--gray-50);
}

.cabinet__content {
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cabinet__title {
  color: var(--gray-800);
  font-family: "Roboto Serif", -apple-system, Roboto, Helvetica, sans-serif;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cabinet__text {
  color: var(--gray-800);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 633px;
  margin: 0;
}

.cabinet__image {
  width: 100%;
  height: 597px;
  object-fit: contain;
}

.btn-primary {
  display: inline-flex;
  padding: 15px 48px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: var(--yellow-500);
  border: none;
  color: var(--gray-800);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #ccc900;
}

.contact {
  padding: 80px 0 0;
  background: var(--gray-50);
}

.contact__header {
  text-align: center;
  margin-bottom: 48px;
}

.contact__title {
  color: var(--gray-900);
  font-family: "Roboto Serif", -apple-system, Roboto, Helvetica, sans-serif;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact__subtitle {
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 1122px;
  margin: 0 auto 16px;
}

.contact__description {
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 1122px;
  margin: 0 auto;
}

.contact__card {
  display: flex;
  padding: 64px 56px;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  border-radius: 4px;
  background: var(--gray-f);
  height: 100%;
  justify-content: space-between;
}

.contact__icon {
  flex-shrink: 0;
}

.contact__card-title {
  color: var(--gray-800);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 16px;
}

.contact__card-text {
  color: var(--gray-800);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

.btn-dark {
  display: flex;
  padding: 15px 48px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: var(--gray-800);
  border: none;
  color: var(--gray-f);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  text-wrap: nowrap;
}

.btn-dark:hover {
  background: #000;
}

.news {
  padding: 64px 0;
  background: var(--gray-50);
}

.news__title {
  color: var(--gray-800);
  font-family: "Roboto Serif", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 48px;
}

.news__slider {
  position: relative;
  margin-bottom: 40px;
}

.news__card {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
}

.news__card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.news__card-content {
  display: flex;
  padding: 32px;
  flex-direction: column;
  gap: 20px;
  background: var(--gray-f);
  flex: 1;
}

.news__card-text {
  color: var(--gray-800);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.news__card-date {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.news__controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -48px;
  right: -48px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.news__arrow {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  pointer-events: all;
  transition: opacity 0.3s;
}

.news__arrow:hover {
  opacity: 0.7;
}

.news__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.news__dot {
  width: 10px;
  height: 10px;
  border-radius: 30px;
  background: var(--gray-300);
  cursor: pointer;
  transition: background 0.3s;
}

.news__dot--active {
  background: var(--gray-500);
}

.news__btn {
  display: block;
  margin: 0 auto;
}

.blog_details_area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 80px;
  align-items: center;
}
.blog_details_inner {
  background-color: var(--gray-f);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog_details_area .btn-secondary {
  width: fit-content;
}
.single_blog_img {
  max-height: 751px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.single_blog_img img {
  width: 100%;
}
.blog_d_bottom_text img {
  width: 100%;
  overflow: hidden;
  padding: 6px;
}

.footer {
  padding: 48px 0 32px;
  background: var(--gray-800);
  position: relative;
}
.footer-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.footer-row div {
  flex: 1;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: space-between;
}

.footer__copyright {
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: var(--gray-500);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--gray-f);
}

.footer__contacts-title {
  color: var(--gray-500);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer__contacts-text {
  color: var(--gray-500);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer__contacts-text span {
  margin-left: 8px;
}

.footer__social {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  right: 15px;
  bottom: 0;
}

.footer__social-link {
  display: flex;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--gray-f);
  transition: all 0.3s;
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

#go_top {
  position: fixed;
  right: 3%;
  bottom: 13%;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--yellow-500);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 999;
  visibility: hidden;
}
#go_top.show {
  visibility: visible;
}

#go_top:hover {
  background: #ccc900;
}

.chat-bot {
  position: fixed;
  right: 154px;
  bottom: 225px;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: rgba(222, 218, 7, 0.5);
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.chat-bot:hover {
  background: var(--yellow-500);
}

.chat-bot svg {
  width: 24px;
  height: 24px;
}

.container {
  max-width: 1630px; /* або будь-яке твоє значення */
}

.about-hero__image {
  width: 100%;
  object-fit: cover;
}

/* Desktop/Mobile images for slider */
.about-hero__image--desktop {
  display: block;
}

.about-hero__image--mobile {
  display: none;
}
.about-hero__wave {
  width: 100%;
  overflow: hidden;
  line-height: 0; /* щоб не було відступу від inline SVG */
  font-size: 0; /* ще один захід для усунення gap */
}

.about-hero__wave svg {
  width: 100%;
  height: auto;
  display: block;
  preserveaspectratio: none; /* важливо для розтягування */
}

.about-hero__wave {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
}

.about-info {
  padding-top: 70px;
  margin: 0 auto;
}
.about-info__wrapper {
  max-width: 1098px;
  text-align: justify;
  gap: 16px;
}

.home-about__row {
  display: flex;
  flex-direction: row;
}
.benefits {
  padding-top: 80px;
  padding-bottom: 80px;
}
.benefits__header {
  max-width: 686px;
}
.benefits .container {
  background-color: var(--gray-f);
  padding: 56px 100px;
  gap: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits__card-wrap {
  max-width: 346px;
}
.benefits__icon {
  margin-bottom: 24px;
}
.principles {
  background-color: var(--gray-f);
  padding: 48px 0;
  margin: 0 auto;
}
.principles-row {
  max-height: 540px;
  flex-direction: row;
}
.principles-row div {
  flex: 1;
}
.principles__item-title {
  margin-bottom: 10px;
}
.principles__item-text {
    font-size: 16px;
}

.principles .container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.principles-left {
  display: flex;
  flex-direction: column;
  background-color: var(--gray-50);
}

.principles-left .principles__content {
  padding: 48px !important;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-news {
  padding: 64px 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
.about-news__card {
  height: 454px;
}
.about-news__card-content {
  padding: 32px;
  background-color: var(--gray-f);
  height: 100%;
}
.about-news__card-image {
  height: 280px;
}
.about-news__card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 20px;
}

.benefits__card-title {
  margin-bottom: 12px;
}

/* services-page */

.services-page {
  padding-top: 40px;
  padding-bottom: 40px;
  gap: 48px;
}
.services-page-title {
  gap: 12px;
}
.services-page-list {
  gap: 4px;
}
.services-page-list-item {
  background-color: var(--gray-f);
  padding: 20px;
  gap: 10px;
  border-radius: 4px;
}
.services-images {
  flex-direction: row;
  height: 546px;
  overflow: hidden;
  gap: 20px;
}
.services-images-kyiv {
  height: 546px;
  gap: 20px;
  overflow: hidden;
}
.services-images-kyiv img {
  border-radius: 4px;
}
.services-page .text-bottom {
  color: var(--gray-500);
}
.services-images img {
  height: auto;
  width: 100%;
  object-fit: contain;
  object-position: bottom !important;
  display: block;
  border-radius: 4px;
}
.services-page-list-item-svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* contacts page */

.contacts-page {
  padding: 0 0 80px 0;
}
.contacts-page h2 {
  margin-bottom: 32px;
}
.contacts-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 20px;
}
.contacts-row div {
  flex: 1;
}
.contacts-block {
  background-color: var(--gray-f);
  padding: 64px !important;
  gap: 31px !important;
}

/*  section-cabinet  */
.section-cabinet {
  padding-top: 20px;
  padding-bottom: 80px;
}

.user-card-wrapper {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}
.user-card-wrapper .card {
  max-height: 254px;
  max-width: 789px;
  padding: 40px;
  background-color: var(--gray-f);
}
.account-1s {
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  padding: 4px 8px;
}
.user-card-full {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.card-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card svg {
  bottom: 0;
  right: 0;
}
.gradient {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.2) 25.6%,
    rgba(0, 0, 0, 0.12) 40.94%
  );
  inset: 0;
  z-index: 2;
}

.flat {
  color: var(--gray-200);
}
.user-card-full p,
.user-card-full h5,
.user-card-full h6,
.user-card-full h4 {
  z-index: 9;
}

/*---  ---*/
hr {
  margin: 0;
}

.gap-16 {
  gap: 16px;
}
.mb-8 {
  margin-bottom: 32px;
}

/* -----  SWIPER ----- */
.swiper {
  width: 100%;
  height: 823px;
}
.swiper-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 99 !important;
}
.swiper-pagination-bullet {
  background: var(--gray-500) !important;
}
.full-width-swiper .swiper-pagination {
  bottom: 50px !important;
}

.swiper-slide {
  width: 100vh;
}
.swiper-pagination-bullet-active {
  background: var(--gray-200) !important;
}
.swiper-button-prev,
.swiper-button-next {
  color: var(--gray-200) !important;
}
.full-width-swiper .swiper-button-prev,
.full-width-swiper .swiper-button-next {
  height: 48px;
  width: 48px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff33 !important;
  color: var(--gray-400) !important;
  border-radius: 50%;
}

.full-width-swiper {
  width: 100vw;
}

.slider-wrapper {
  position: relative;
  margin: 0 auto;
}
.swiper-container-title {
  position: absolute;
  bottom: 210px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-30%);
  pointer-events: none;
  z-index: 999;
}
.swiper-title {
  color: var(--gray-f);
  font-size: 40px;
  font-family: "Roboto Serif", -apple-system, Roboto, Helvetica, sans-serif;
}
.swiper-container-title-home {
  position: absolute;
  top: 55%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 999;
  padding-left: 58px;
}



.swiper-container-btn {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 999;
}

.swiper-container-btn .swiper-button-prev,
.swiper-container-btn .swiper-button-next {
  pointer-events: auto;
}

.about-news .slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: visible;
}
.swiper-about-news {
  height: 536px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}
.swiper-about-news .swiper-slide {
  display: flex;
  justify-content: center;
}

.swiper-about-news .swiper-slide {
  display: flex;
  justify-content: center;
}

.swiper-about-news .about-news__card {
  width: 100%;
}

/* Кнопки поза контейнером */
.slider-wrapper .swiper-button-prev,
.slider-wrapper .swiper-button-next {
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--gray-400) !important;
  z-index: 99 !important;
}

/* blog_list_area  swiper */
.blog_list_area .slider-wrapper {
  margin-top: 48px;
  margin-bottom: 48px;
}
.blog_list_area .slider-wrapper .swiper-button-prev {
  left: -60px !important;
}

.blog_list_area .slider-wrapper .swiper-button-next {
  right: -60px !important;
}

.swiper-news .slider-wrapper {
  min-height: 803px;
}
.swiper-pagination-news {
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.swiper-pagination-custom {
  position: relative !important;
  width: fit-content !important;
}
.swiper-news .swiper-button-next,
.swiper-news .swiper-button-prev {
  position: relative !important;
  color: var(--gray-800) !important;
  height: 32px !important;
}
.swiper-pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  line-height: 32px;
  margin: 0 4px;
  border-radius: 50%;
  color: var(--gray-500);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swiper-news .swiper-pagination-number.active {
  background: var(--gray-200);
  color: var(--gray-800);
}

.swiper-news .swiper-pagination-number:hover {
  background: #444;
  color: #fff;
}

/* Mobile Grid for News */
.news-slider-desktop {
  display: block;
}

.news-grid-mobile {
  display: none;
}

.news-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.news-grid-item {
  display: block;
  text-decoration: none;
}

.news-grid-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.news-grid-prev,
.news-grid-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  color: var(--gray-800);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-grid-prev:hover:not(:disabled),
.news-grid-next:hover:not(:disabled) {
  background: var(--gray-800);
  color: #fff;
}

.news-grid-prev:disabled,
.news-grid-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.news-grid-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-grid-page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--gray-500);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-grid-page-number.active {
  background: var(--gray-200);
  color: var(--gray-800);
}

.news-grid-page-number:hover {
  background: #444;
  color: #fff;
}

.news-grid-pages .dots {
  color: var(--gray-500);
  padding: 0 4px;
}

/* .hero__wave {
    background-image: url('/img/smile.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 125px;
    background-position-y: bottom;
} */

.col-lg-6 .about__content .btn-secondary,
.services .btn-secondary,
.cabinet .btn-primary {
  width: fit-content;
}

.cabinet-menu {
  max-height: 76px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cabinet-menu a {
  padding: 16px;
  width: 194px;
  margin: 0;
}
.cabinet-menu svg {
  height: 24px;
  width: 24px;
}
.cabinet-menu p {
  font-size: 16px;
}
.accordion .btn {
  color: var(--gray-800);
}
.accordion .btn .arrow {
  transition: transform 0.3s;
}
.accordion .card-header {
  background-color: var(--gray-f);
}
.accordion .card-header span {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.card-body {
  font-size: 16px;
}

.accordion .btn:not(.collapsed) .arrow {
  transform: rotate(-180deg);
}
#secondFrom .button-group {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
#secondFrom .button-group .faq-info {
  padding-top: 40px;
  padding-bottom: 100px;
}

.faq-info p {
  font-size: 16px;
  color: var(--gray-800);
}
.faq-info {
    margin-bottom: 100px;
}
.cabinet-news {
  margin-top: 20px;
}
.cabinet-news-item {
  padding: 40px;
  background-color: var(--gray-f);
}
.cabinet-news-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cabinet-news .content-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-sizing: border-box;
  margin-bottom: 20px;
}
.cabinet-news .pagination_area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.cabinet-news .pagination_area ul {
  display: flex;
  gap: 16px;
}
.cabinet-news .pagination_area li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
}
.cabinet-news .pagination_area li a {
  height: 100%;
  width: 100%;
  font-size: 16px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cabinet-news .pagination_area .active {
  background-color: var(--gray-200);
  color: var(--gray-800);
  border-radius: 50%;
  font-weight: 700;
}

.btn-group-os {
  background-color: var(--gray-f) !important;
  display: flex;
  flex-direction: row;
  padding: 2px;
  border-radius: 4px;
}
.btn-group-os a.btn {
  flex: 1;
  text-align: center;
  height: 100%;
}
.btn-group-os .active {
  background-color: var(--yellow-500) !important;
}
.section-profile-menu {
  gap: 16px;
}
.section-profile-left div,
.section-profile-right {
  height: 48px;
}

.btn,
.btn-group .btn {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
div.form-group {
  margin-bottom: 0;
}
.btn,
.btn-group .btn,
.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  height: 100%;
  padding: 0 37px;
  border-radius: 4px;
}
.menu-title-to-object {
  height: 54px;
  width: 54px;
  padding: 0 !important;
}

.pay-btn:hover {
  background: var(--yellow-500);
  border: 2px solid var(--yellow-500);
}
.btn-outline-secondary {
  border: 2px solid var(--gray-800);
}

.btn-archive {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--gray-f);
  height: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
}
.btn-archive:hover {
  background: var(--yellow-500);
}

.switch-toggle {
  width: 2.5em;
  height: 1.4em;
  appearance: none;
  background-color: var(--gray-300);
  border-radius: 1.4em;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  outline: none;
}

.switch-toggle::before {
  content: "";
  position: absolute;
  width: 1.2em;
  height: 1.2em;
  top: 0.1em;
  left: 0.1em;
  background-color: var(--gray-f);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.switch-toggle:checked {
  background-color: var(--yellow-500);
}

.switch-toggle:checked::before {
  transform: translateX(1.1em);
}
.form-check-label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.abs-view-wrap {
  background-color: var(--gray-f);
  padding: 40px;
  margin-bottom: 170px;
}
.user-wrapper {
  height: 54px;
}

.bid-apply {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.bid-apply-left,
.bid-apply-right {
  display: flex;
  flex-direction: column;
  background-color: var(--gray-f);
  padding: 32px 64px;
  flex: 1;
}
.bid-apply-left,
.bid-apply-right {
  gap: 40px;
}
#newBid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-bid-content {
  margin-top: 30px !important;
}

.field-feedback-verifycode {
  margin-top: 32px;
}
.feedback-form .btn-primary {
  margin-top: 24px;
}

/* --- popover ---*/
.popover {
  background-color: var(--gray-800);
  color: var(--gray-f);
  border: none;
}

.popover-header {
  font-weight: bold;
}

.popover-body {
  padding: 6px 8px;
  font-size: 12px;
  color: var(--gray-f);
}
.popover .arrow::before {
  color: var(--gray-800);
}

.menu-tile {
  text-align: center;
  padding: 20px;
  margin: 2px;
  border-radius: 4px;
  background-color: var(--gray-f);
  transition: transform 0.2s, background-color 0.2s;
  cursor: pointer;
}

.menu-tile:hover {
  background-color: var(--yellow-500);
}

body
  > main
  > div:nth-child(4)
  > div
  > div.flex-grow-1
  > span
  > span.selection
  > span {
  /*background-color: #ececf0;*/
  /*margin: 5px;*/
}

body
  > main
  > div:nth-child(4)
  > div
  > div.flex-grow-1
  > span
  > span.selection
  > span
  > span.select2-selection__arrow {
  border-left: none !important;
  right: 10px;
}
.w-100 > a.active {
  background-color: var(--yellow-500);
}

/* --- SELECT IN CABINET --- */

.select2-container--krajee-bs4 {
  height: 100% !important;
  margin: 0;
}

/* Основна видима частина */
.select2-container--krajee-bs4 .select2-selection--single {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 16px;
  padding-right: 20px;
  margin: 0 !important;
  background-color: transparent !important;
}
.select2-results__option {
  padding-left: 16px;
}

/* Текст усередині */
.select2-container--krajee-bs4 .select2-selection__rendered {
  line-height: normal !important;
  white-space: normal !important;
  padding: 8px;
  color: var(--gray-800) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

/*arrow*/
.select2-container--krajee-bs4 .select2-selection__arrow {
  height: 100% !important;
  display: block !important;
  aspect-ratio: 1/1 !important;
  align-items: center !important;
}

.select2-selection__arrow b {
  display: none !important;
}

.select2-selection__arrow {
  position: relative;
  width: 16px !important;
  height: 16px;
  border-left: none !important;
  margin-right: 20px;
}

.select2-selection__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gray-800);
  border-bottom: 2px solid var(--gray-800);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.select2-container--open .select2-selection__arrow::after {
  transform: translate(-50%, -50%) rotate(225deg);
  border-color: var(--gray-800);
}

/* ---- ----- */

.bid-apply {
  margin-bottom: 100px;
}
.bid-apply-left {
  height: fit-content;
}
.list-bids {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list-bids p {
  font-size: 16px;
}

.list-bid-item {
  background-color: var(--gray-50);
  padding: 20px;
  border-radius: 4px;
  gap: 16px;
  display: flex;
  flex-direction: column;
}
.list-bid-item-title {
  color: var(--gray-500);
  width: 80px;
}
.list-bid-item-desc {
  color: var(--gray-800);
  padding-left: 16px;
}
.list-bid-item-status {
  gap: 8px;
}
.list-bid-item-status-title {
  color: var(--gray-500);
}
.list-bid-item-status-date {
  color: var(--gray-700);
}

.debtend-suma {
  color: var(--red);
  font-weight: 500;
}
.debtend-table td {
  font-weight: 500;
}
table {
  border-collapse: separate !important;
  background-color: var(--gray-f) !important;
}
.calculation thead tr th {
  background-color: var(--gray-700);
  color: var(--gray-f) !important;
  font-size: 16px;
  font-weight: 700;
}
table tbody tr:nth-child(odd) {
  background-color: var(--gray-50) !important;
}
.table.calculation {
  border-spacing: 2px !important;
}
.visits-wrap {
  background-color: var(--gray-200);
  padding: 16px;
}

.visits-header {
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.my-visits-btn {
  background-color: var(--gray-f);
  padding: 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.my-visits-btn:hover {
  background-color: var(--yellow-500);
  color: var(--gray-800);
}
.my-visits-btn div {
  gap: 8px;
}
.my-visits-btn p {
  font-weight: 700;
  font-size: 14px;
}
.department-list {
  width: 80%;
  background-color: var(--gray-f);
  padding: 2px;
  border-radius: 4px;
}
.department-list-btn {
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  border: none;
  font-weight: 700;
  color: var(--gray-800);
  font-size: 14px;
}
.button-active {
  background-color: var(--yellow-500);
  color: var(--gray-800);
}

.visits-container {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.chose-specialist-text-wrapper {
  order: -1;
  width: 100%;
}

.chose-specialist-text {
  font-size: 12px;
  font-weight: 500;
}

.my-records-text {
  display: none;
}

@media screen and (min-width: 992px) {
    .visits-wrap {
    padding: 40px;
  }

    .visits-header {
    flex-wrap: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 40px;
  } 

    .my-visits-btn {
    height: 48px;
    padding: 0 12px;
  }

    .my-visits-btn p {
    font-size: 16x;
  }

    .department-list {
    width: 50%;
  }

    .department-list-btn {
    font-size: 16px;
  }  
  
    .department-list-btn {
    font-size: 16px;
  }
  
    .chose-specialist-text-wrapper {
    width: auto;
    order: 0; 
  }

  .chose-specialist-text {
    font-size: 20px;
    font-weight: 700;
  }

    .my-records-text {
    display: block;
  }
}

/* --- VISITS CALENDAR --- */
.visits .fc-toolbar-chunk .fc-toolbar-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 500;
}

.visits .fc-header-toolbar {
  flex-direction: column;
}

.visits .fc-header-toolbar .fc-toolbar-chunk:first-child {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.visits .fc-header-toolbar .fc-toolbar-chunk:first-child .fc-today-button {
  margin-left: 0;
  margin-bottom: 8px;
}

.visits .fc-toolbar-chunk:first-child {
  margin-bottom: 12px;
}

.visits .fc-header-toolbar .fc-toolbar-chunk:first-child .fc-today-button:disabled {
  background-color: #81848a;
  border-color: #81848a;
  opacity: 1 !important;
}

.visits .fc-toolbar-chunk:first-child button {
  font-size: 14px;
}

.visits .fc-toolbar-chunk:last-child button {
  font-size: 14px;
}

.visits .fc-scrollgrid-sync-inner a {
  font-size: 12px;
  font-weight: 500;
}

.visits .fc-timegrid-slot-label-cushion {
  font-size: 12px;
  font-weight: 500;
}

.visits .fc-event-main-frame .fc-event-time {
  font-size: 10px;
}

.visits .fc-daygrid-day-frame div {
  font-size: 10px;
}

@media screen and (min-width: 992px) {
    .visits .fc-daygrid-day-frame div {
    font-size: 14px;
  }

    .visits .fc-event-main-frame .fc-event-time {
    font-size: 14px;
  }

    .visits .fc-scrollgrid-sync-inner a {
    font-size: 16px;
    font-weight: 700;
  }

    .visits .fc-toolbar-chunk:last-child button{
    font-size: 16px;
  }
    .visits .fc-toolbar-chunk:first-child button {
    font-size: 16px;
  }

    .visits .fc-toolbar-chunk:first-child {
    margin-bottom: 0;
  }

    .visits .fc-header-toolbar .fc-toolbar-chunk:first-child .fc-today-button {
    margin-left: 12px;
    margin-bottom: 0;
  }

    .visits .fc-header-toolbar .fc-toolbar-chunk:first-child {
    flex-direction: row;
  }

    .visits .fc-header-toolbar {
    flex-direction: row;
  }

    .visits .fc-toolbar-chunk .fc-toolbar-title {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 700;
  }
}

.fc-today-button {
  height: 48px !important;
  background-color: transparent !important;
  color: var(--gray-800) !important;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-f) !important;
  transition: background-color 0.3s ease;
  font-weight: 700 !important;
}

.fc-today-button:hover {
  background-color: var(--yellow-500) !important;
}

.fc-button-group {
  height: 48px !important;
  background-color: transparent !important;
}

.fc-button {
  height: 48px !important;
  background-color: var(--gray-f) !important;
  color: var(--gray-800) !important;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-f) !important;
  transition: background-color 0.3s ease;
  font-weight: 700 !important;
}

.fc-button-active {
  background-color: var(--yellow-500) !important;
  border-radius: 4px !important;
}

.fc .fc-button-group {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
}

.fc-timeGridDay-button,
.fc-dayGridMonth-button {
  border-radius: 4px !important;
}

.fc-toolbar-chunk .fc-prev-button,
.fc-toolbar-chunk .fc-next-button {
  background-color: var(--gray-50) !important;
  color: var(--gray-800) !important;
  border-radius: 50% !important;
  border: none !important;
  height: 48px;
  width: 48px;
  margin-right: 6px !important;
}

.fc-prev-button:hover,
.fc-next-button:hover {
  background-color: var(--gray-500) !important;
  color: #fff !important;
}

.fc table {
  background-color: var(--gray-f) !important;
  border-radius: 4px;
}

.fc-timegrid-slot {
  height: 40px !important;
}

/* Вирівнюємо усі підписи слотів */
.fc-timegrid-slot-label {
  display: flex !important;
  width: 60px !important;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 4px !important;
  font-size: 0.875rem;
}

.fc-timegrid-slot-label-frame,
.fc-timegrid-slot-label-cushion {
  width: 100% !important;
  text-align: center !important;
}

.fc-event-time {
  align-items: center !important;
  white-space: normal !important;
  word-wrap: break-word !important;      
  overflow-wrap: break-word !important;   
  text-align: center !important;
}
.fc-toolbar-title {
  font-size: 24px;
  font-weight: 700;
  font-family: "Montserrat", "sans-serif";
}
.fc-scrollgrid-sync-inner,
.fc-timegrid-axis {
  background-color: var(--gray-200) !important;
}
.fc-col-header-cell-cushion {
  color: var(--gray-800);
}

/* --- SELECT IN CABINET END --- */
.cards-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; /* відстань між картками */
}

.card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.card-text {
  width: 100%;
}

.card-body .card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 40px;
}
.card-body .card-title {
  margin-bottom: 24px;
}
.visit-inactive .time-visit {
  border: 1px solid var(--gray-400);
  padding: 32px 16px;
  border-radius: 4px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.visit-active .time-visit {
  border: 1px solid var(--gray-400);
  padding: 40px;
  border-radius: 4px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.my-visits {
  background-color: var(--gray-200);
  border-radius: 4px;
  padding: 40px;
  margin-bottom: 100px;
  gap: 40px;
}
.visit-inactive {
  background-color: var(--gray-100);
}
.my-visits-list-section h5 {
  margin-bottom: 12px;
}

.back-visits-btn {
  background-color: var(--gray-f);
  border: none;
}
.back-visits-btn svg path {
  transition: stroke 0.3s ease;
}
.back-visits-btn:hover svg path {
  stroke: #ffffff;
}
/* --- modal --- */
.modal-content {
  background-color: var(--gray-50);
  border: none;
  padding: 80px 120px;
  border-radius: 16px;
}
.modal-header,
.modal-body {
  padding: 0;
}
div.modal-header {
  border-bottom: none;
}
.modal-visit-info-block {
  background-color: var(--gray-f);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 20px;
  border-radius: 4px;
}

.modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  max-width: 768px;
}
@media (max-width: 768px) {
  .visits .modal-dialog {
    width: 95%;
    margin: 0;
  }

  .visits .visit-form .leave-details-text {
  text-align: center; 
  }

  .visits .visit-form .confirm-visit-button {
    display: flex;
    justify-content: center;
  }
}
.modal-archive {
  inset: 0;
  background: #222222b2;
  display: none;
}
.modal-archive-content {
  gap: 32px;
}

.modal-content .close {
  position: absolute;
  right: 0;
  top: 0;
  height: 48px;
  width: 48px;
}

.modal-archive {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}

.modal-archive.active {
  display: flex;
}

.modal-archive-wrap {
  position: relative;
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  min-width: 300px;
  max-width: 400px;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

#firstForm {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
#modalDeleteUser .button-group,
#firstForm .button-group {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.modal-text-info {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.modal-visit-info p {
  font-size: 16px;
}
.visit-form .control-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
}
.hint-icon {
  color: var(--red);
}
.plus {
  font-size: 24px;
  font-weight: 500;
}

/* Стили для барабанів */
.picker-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  width: 300px;
  height: 180px;
  margin: 30px auto;
  overflow: hidden;

  border-radius: 12px;
}

.picker {
  width: 140px;
  height: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  text-align: center;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
  scroll-snap-type: y mandatory;
}

.picker div {
  height: 40px;
  font-size: 16px;
  color: #555;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.2s, opacity 0.2s;
  z-index: 1;
}

.picker div.selected {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
}
.wheel div:empty {
  height: 40px; /* те саме, що у реального елемента */
  opacity: 0;
}

.picker-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 40px;
  transform: translateY(-50%);
  border-radius: 4px;
  pointer-events: none;
  background-color: var(--gray-100);
  z-index: 0;
}

@media (max-width: 1200px) {
  .header__container,
  .stats .container,
  .about .container,
  .services .container,
  .cabinet .container-fluid,
  .contact .container,
  .news .container,
  .footer .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero__content {
    left: 40px;
  }

  .hero__controls {
    left: 40px;
    right: 40px;
  }

  .footer__scroll-top {
    right: 40px;
  }

  .chat-bot {
    right: 40px;
  }
}

/* @media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    gap: 20px;
  }

  .header__nav {
    width: 100%;
    flex-direction: column;
    gap: 20px;
  }

  .header__menu {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero {
    height: auto;
  }

  .hero__slider {
    height: 600px;
  }

  .hero__title {
    font-size: 40px;
  }

  .services__content {
    padding: 40px 0;
  }

  .cabinet__content {
    padding: 40px 0;
  }

  .contact__card {
    padding: 40px 30px;
  }

  .menu-tile {
    padding: 15px;
  }
} */
