:root {
  --cc-purple: #2e2751;
  --cc-purple-dark: #211b40;
  --cc-purple-soft: #44386f;
  --cc-gold: #f3a712;
  --cc-gold-dark: #d98f00;
  --cc-cream: #fff8e8;
  --cc-white: #ffffff;
  --cc-text: #2e2751;
  --cc-muted: #666274;
  --cc-border: #ece9f2;
  --cc-shadow: 0 18px 45px rgba(46, 39, 81, 0.12);
}

.cc-site-header,
.cc-site-header *,
.cc-site-footer,
.cc-site-footer * {
  box-sizing: border-box;
}

.cc-site-header a,
.cc-site-footer a {
  text-decoration: none;
}

.cc-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.cc-topbar {
  position: relative;
  z-index: 1002;
  color: #f5f2fb;
  background: var(--cc-purple-dark);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
}

.cc-topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cc-topbar__contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 24px;
}

.cc-topbar a {
  color: #f5f2fb;
}

.cc-topbar a:hover,
.cc-topbar a:focus-visible {
  color: var(--cc-gold);
}

.cc-topbar__hours {
  color: #d8d2e8;
}

.cc-mainbar {
  position: relative;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--cc-border);
  box-shadow: 0 4px 18px rgba(46, 39, 81, 0.04);
}

.cc-site-header.is-sticky .cc-mainbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  box-shadow: 0 8px 30px rgba(46, 39, 81, 0.12);
}

.cc-mainbar__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cc-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.cc-brand img {
  width: 173px;
  max-width: 100%;
  height: auto;
  display: block;
}

.cc-nav {
  margin-left: auto;
}

.cc-nav__list,
.cc-nav__submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cc-nav__item {
  position: relative;
}

.cc-nav__link {
  min-height: 44px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cc-purple);
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.cc-nav__link:hover,
.cc-nav__link:focus-visible,
.cc-nav__link.is-active {
  color: var(--cc-gold-dark);
  background: var(--cc-cream);
}

.cc-nav__caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.cc-nav__submenu {
  width: 250px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  overflow: hidden;
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  box-shadow: var(--cc-shadow);
  transition: 0.2s ease;
}

.cc-nav__item:hover > .cc-nav__submenu,
.cc-nav__item:focus-within > .cc-nav__submenu,
.cc-nav__item.is-open > .cc-nav__submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.cc-nav__submenu a {
  padding: 12px 16px;
  display: block;
  color: var(--cc-purple);
  border-bottom: 1px solid #f3f1f7;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.cc-nav__submenu li:last-child a {
  border-bottom: 0;
}

.cc-nav__submenu a:hover,
.cc-nav__submenu a:focus-visible {
  color: var(--cc-gold-dark);
  background: var(--cc-cream);
}

.cc-header-cta {
  min-height: 44px;
  padding: 0 19px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cc-purple);
  background: var(--cc-gold);
  border: 1px solid var(--cc-gold);
  border-radius: 7px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cc-header-cta:hover,
.cc-header-cta:focus-visible {
  color: var(--cc-purple);
  background: #ffbd32;
  transform: translateY(-2px);
}

.cc-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 10px;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--cc-purple);
  background: var(--cc-cream);
  border: 1px solid #f4dfaa;
  border-radius: 7px;
  cursor: pointer;
}

.cc-menu-toggle__lines,
.cc-menu-toggle__lines::before,
.cc-menu-toggle__lines::after {
  width: 21px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 2px;
  transition: 0.2s ease;
}

.cc-menu-toggle__lines {
  position: relative;
}

.cc-menu-toggle__lines::before,
.cc-menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.cc-menu-toggle__lines::before {
  top: -7px;
}

.cc-menu-toggle__lines::after {
  top: 7px;
}

.cc-site-header.menu-open .cc-menu-toggle__lines {
  background: transparent;
}

.cc-site-header.menu-open .cc-menu-toggle__lines::before {
  top: 0;
  transform: rotate(45deg);
}

.cc-site-header.menu-open .cc-menu-toggle__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.cc-site-footer {
  position: relative;
  color: #e9e5f3;
  background:
    linear-gradient(rgba(33, 27, 64, 0.96), rgba(33, 27, 64, 0.98)),
    url("../img/map.png") center/cover no-repeat;
  font-family: "Poppins", sans-serif;
}

.cc-footer__main {
  padding: 70px 0 42px;
}

.cc-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr 1.1fr;
  gap: 38px;
}

.cc-footer__logo {
  width: 173px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.cc-footer__about {
  max-width: 330px;
  color: #c9c3d8;
  font-size: 14px;
  line-height: 1.85;
}

.cc-footer__title {
  margin: 0 0 20px;
  color: var(--cc-white);
  font-size: 17px;
  font-weight: 700;
}

.cc-footer__links,
.cc-footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-footer__links li,
.cc-footer__contact li {
  margin-bottom: 11px;
}

.cc-footer__links a,
.cc-footer__contact a {
  color: #c9c3d8;
  font-size: 13px;
  line-height: 1.65;
}

.cc-footer__links a:hover,
.cc-footer__links a:focus-visible,
.cc-footer__contact a:hover,
.cc-footer__contact a:focus-visible {
  color: var(--cc-gold);
}

.cc-footer__address {
  color: #c9c3d8;
  font-size: 13px;
  line-height: 1.65;
}

.cc-footer__social {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.cc-footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--cc-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.cc-footer__social a:hover,
.cc-footer__social a:focus-visible {
  color: var(--cc-purple);
  background: var(--cc-gold);
}

.cc-footer__bottom {
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #aaa3be;
  font-size: 12px;
}

.cc-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.cc-footer__legal a {
  color: #c9c3d8;
}

.cc-footer__legal a:hover,
.cc-footer__legal a:focus-visible {
  color: var(--cc-gold);
}

@media (max-width: 1100px) {
  .cc-nav__link {
    padding-inline: 8px;
    font-size: 12px;
  }

  .cc-header-cta {
    padding-inline: 14px;
  }
}

@media (max-width: 991px) {
  .cc-topbar__hours {
    display: none;
  }

  .cc-mainbar__inner {
    min-height: 76px;
  }

  .cc-menu-toggle {
    display: inline-flex;
  }

  .cc-header-cta {
    margin-left: auto;
  }

  .cc-nav {
    max-height: 0;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    overflow: hidden;
    background: var(--cc-white);
    border-top: 1px solid var(--cc-border);
    box-shadow: 0 16px 32px rgba(46, 39, 81, 0.12);
    transition: max-height 0.3s ease;
  }

  .cc-site-header.menu-open .cc-nav {
    max-height: calc(100vh - 116px);
    overflow-y: auto;
  }

  .cc-nav__list {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 12px 0 20px;
    display: block;
  }

  .cc-nav__link {
    width: 100%;
    min-height: 46px;
    padding: 0 8px;
    justify-content: space-between;
    font-size: 14px;
  }

  .cc-nav__submenu {
    width: 100%;
    max-height: 0;
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: max-height 0.25s ease;
  }

  .cc-nav__item.is-open > .cc-nav__submenu {
    max-height: 500px;
  }

  .cc-nav__submenu a {
    padding-left: 24px;
  }

  .cc-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cc-container {
    width: min(100% - 28px, 1160px);
  }

  .cc-topbar__inner {
    min-height: 44px;
    justify-content: center;
  }

  .cc-topbar__contacts {
    justify-content: center;
    gap: 5px 15px;
  }

  .cc-topbar__email {
    display: none;
  }

  .cc-brand img {
    width: 148px;
  }

  .cc-header-cta {
    display: none;
  }

  .cc-mainbar__inner {
    min-height: 70px;
  }

  .cc-footer__main {
    padding: 54px 0 30px;
  }

  .cc-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cc-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cc-footer__legal {
    justify-content: flex-start;
  }
}
