/* Base layout & theme */

html {
  scroll-behavior: smooth;
}

body {
  font: 12px/18px "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--body-bg);
  margin: 0;
}

body,
html.theme_dark body.bg_light {
  --text-color: #000;
  --second-text-color: #7d7f81;
  --accent-btn-color: #2481cc;
  --accent-color-hover: #1a8ad5;
  --body-bg: #fff;
  --box-bg: #fff;
  --box-bg-blured: rgba(255, 255, 255, .84);
  --desc-color: #808080;
  --accent-link-color: #2481cc;
}

html.theme_dark body,
html body.bg_dark {
  --text-color: #fff;
  --second-text-color: #84888C;
  --accent-btn-color: #1c93e3;
  --accent-color-hover: #1781cc;
  --body-bg: #000;
  --box-bg: #1e1e1e;
  --box-bg-blured: rgba(34, 34, 34, .84);
  --desc-color: #84888C;
  --accent-link-color: #3ca1eb;
}

/* Background */
.site_background_wrap {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: var(--body-bg);
}
.site_background_pattern {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: overlay;
  background: center repeat;
  background-size: 420px auto;
  opacity: 0.3;
}

/* Navigation */
.site_nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  background: var(--box-bg-blured);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.site_nav_inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  position: relative;
}
.site_nav_brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.site_nav_brand:hover {
  color: var(--accent-link-color);
  text-decoration: none;
}
.site_nav_toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 2;
}
.site_nav_toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.site_nav_toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site_nav_toggle.active span:nth-child(2) {
  opacity: 0;
}
.site_nav_toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.site_nav_menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--box-bg);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.site_nav_menu.open {
  display: block;
}
.site_nav_menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site_nav_menu li:last-child {
  border-bottom: none;
}
.site_nav_link {
  display: block;
  padding: 14px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.site_nav_link:hover {
  background: rgba(28, 147, 227, 0.1);
  color: var(--accent-link-color);
  text-decoration: none;
}

@media (min-width: 600px) {
  .site_nav_toggle {
    display: none;
  }
  .site_nav_menu {
    display: flex;
    position: static;
    background: none;
    box-shadow: none;
    border-radius: 0;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .site_nav_menu li {
    border-bottom: none;
  }
  .site_nav_link {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
  }
}

/* Page layout */
.site_page_wrap {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
}
.site_body_wrap {
  padding: 70px 16px 40px;
}
.site_page {
  position: relative;
  margin: 16px auto;
  padding: 32px 16px;
  max-width: 400px;
  background: var(--box-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}
.page_section {
  scroll-margin-top: 70px;
}
.page_section + .page_section {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* About section */
.site_page_photo {
  text-align: center;
  padding-bottom: 16px;
}
.site_page_photo_image {
  width: 122px;
  height: 122px;
  border-radius: 61px;
  object-fit: cover;
}
.site_page_title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: bold;
  text-align: center;
  max-width: 340px;
  padding: 0 10px;
  margin: 0 auto 12px;
  color: var(--text-color);
}
.site_page_description {
  font-size: 16px;
  line-height: 25px;
  text-align: center;
  margin: 0 8px;
  color: var(--text-color);
  word-break: break-word;
}
.site_page_action {
  text-align: center;
  margin-top: 24px;
}
.site_action_button {
  font-size: 14px;
  line-height: 17px;
  font-weight: bold;
  color: #FFF;
  background-color: var(--accent-btn-color);
  border-radius: 22px;
  display: inline-block;
  padding: 13px 24px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.site_action_button:hover,
.site_action_button:active {
  color: #FFF;
  background-color: var(--accent-color-hover);
  text-decoration: none;
}
.site_action_button.shine {
  background-image: linear-gradient(270deg, rgba(100, 181, 239, 0) 48.44%, #64b5ef 75.52%, rgba(100, 181, 239, 0) 100%);
  background-repeat: no-repeat;
  animation: bg-move linear 5s infinite;
}
@keyframes bg-move {
  0%   { background-position: -500px 0; }
  100% { background-position: 1000px 0; }
}

/* Section titles */
.section_title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* Carousel */
.carousel_container {
  position: relative;
  width: 100%;
}
.carousel_wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.reviews_carousel .carousel_wrapper {
  height: 420px;
}
.carousel_track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.carousel_slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: zoom-in;
  background: #000;
}
.carousel_img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.carousel_arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
  padding: 0;
}
.carousel_arrow:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.1);
}
.carousel_arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.arrow_left { left: 10px; }
.arrow_right { right: 10px; }
.carousel_dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.carousel_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.carousel_dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}
.carousel_dot.active {
  background: var(--accent-btn-color);
  transform: scale(1.2);
}

@media (max-width: 400px) {
  .carousel_wrapper {
    height: 320px;
  }
  .reviews_carousel .carousel_wrapper {
    height: 360px;
  }
}

/* Service cards */
.services_grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service_card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--box-bg-blured);
  border: 1px solid rgba(128, 128, 128, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service_card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  border-color: rgba(28, 147, 227, 0.4);
}
.service_card_head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.service_card_icon {
  font-size: 22px;
  line-height: 1.2;
  flex-shrink: 0;
}
.service_card_title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-color);
}
.service_card_desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--second-text-color);
}
.service_card_price {
  margin-top: auto;
  padding-top: 6px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-link-color);
}
.services_gift_note {
  text-align: center;
  font-size: 14px;
  color: var(--second-text-color);
  margin: 16px 0 0;
}

/* FAQ */
.faq_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq_item {
  border-radius: 14px;
  background: var(--box-bg-blured);
  border: 1px solid rgba(128, 128, 128, 0.22);
  overflow: hidden;
}
.faq_q {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  position: relative;
}
.faq_q::-webkit-details-marker {
  display: none;
}
.faq_q::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-link-color);
  transition: transform 0.2s;
}
.faq_item[open] .faq_q::after {
  content: "−";
}
.faq_a {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--second-text-color);
}

@media (min-width: 768px) {
  .services_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .services_gift_note {
    font-size: 15px;
  }
}

/* Contacts */
.contacts_block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
  margin: 0 auto;
}
.instagram_widget {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.10), rgba(131, 58, 180, 0.10));
  border: 1px solid rgba(225, 48, 108, 0.28);
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.2s, box-shadow 0.2s;
}
.instagram_widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.22);
  text-decoration: none;
  color: var(--text-color);
}
.instagram_icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.instagram_body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.instagram_username {
  font-size: 16px;
  font-weight: 700;
}
.instagram_stats {
  font-size: 14px;
  color: var(--second-text-color);
}
.instagram_stats strong {
  color: var(--text-color);
  font-weight: 700;
}
.instagram_follow_btn {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  white-space: nowrap;
}
.contact_tg_button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--accent-btn-color);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.contact_tg_button:hover {
  background: var(--accent-color-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.contact_tg_button svg {
  flex-shrink: 0;
}

/* Action note under button */
.site_action_note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--second-text-color);
  margin: 10px auto 0;
  max-width: 260px;
}

/* Language switch */
.lang_switch {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 20px;
  overflow: hidden;
}
.lang_switch a {
  background: none;
  border: none;
  color: var(--second-text-color);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.lang_switch a.active {
  background: var(--accent-btn-color);
  color: #fff;
}

/* Rules section */
.rules_content {
  text-align: left;
}
.rules_list {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--second-text-color);
}
.rules_list li {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.rules_link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-link-color);
  text-decoration: none;
}
.rules_link:hover {
  text-decoration: underline;
}

/* Lightbox */
.lightbox_modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}
.lightbox_content_wrap {
  position: relative;
  width: 90%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox_content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
  user-select: none;
}
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox_close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10002;
  transition: color 0.3s, transform 0.2s;
  line-height: 1;
}
.lightbox_close:hover {
  color: #bbb;
  transform: scale(1.1);
}
.lightbox_arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.3s, transform 0.2s;
  padding: 0;
}
.lightbox_arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) scale(1.05);
}
.lightbox_arrow.arrow_left { left: 20px; }
.lightbox_arrow.arrow_right { right: 20px; }

/* Footer */
.site_footer {
  margin-top: 30px;
  text-align: center;
  color: var(--desc-color);
  font-size: 13px;
  line-height: 1.6;
}
.site_footer_links {
  margin-bottom: 8px;
}
.site_footer_links a {
  color: var(--accent-link-color);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  margin: 0 5px;
}
.site_footer_links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.footer_divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}
.site_footer_name {
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
  opacity: 0.85;
}
.site_footer_text {
  opacity: 0.7;
}

/* Legal pages (terms, privacy) */
.legal_head {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  background: var(--box-bg-blured);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.legal_head_inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 16px;
}
.legal_head .site_nav_brand {
  margin-right: auto;
}
.legal_page {
  text-align: left;
}
.tgme_page.legal_page {
  max-width: 650px;
  padding: 40px 32px;
  text-align: left;
}
.legal_page h1 {
  font-size: 26px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
}
.legal_page h2 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}
.legal_page p {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #c9ccd0;
}
.legal_page ul {
  margin-bottom: 16px;
  padding-left: 20px;
  color: #c9ccd0;
}
.legal_page li {
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.6;
}
.last_updated {
  font-size: 13.5px;
  color: var(--desc-color);
  margin-bottom: 24px;
  font-style: italic;
}
.back_btn_wrap {
  margin-top: 35px;
  text-align: center;
}
.back_btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 20px;
  background: var(--accent-btn-color);
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(28, 147, 227, 0.3);
}
.back_btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ---- Desktop / tablet landing layout ---- */
@media (min-width: 768px) {
  .site_body_wrap {
    padding: 90px 24px 60px;
  }
  .site_page {
    max-width: 880px;
    padding: 48px 56px;
  }
  .page_section + .page_section {
    margin-top: 48px;
    padding-top: 24px;
  }

  /* About becomes two columns */
  #about {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-areas:
      "photo title"
      "photo desc"
      "photo action";
    column-gap: 40px;
    align-items: start;
    text-align: left;
  }
  #about .site_page_photo {
    grid-area: photo;
    padding-bottom: 0;
    align-self: center;
  }
  #about .site_page_photo_image {
    width: 200px;
    height: 200px;
    border-radius: 100px;
  }
  #about .site_page_title {
    grid-area: title;
    text-align: left;
    max-width: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 32px;
  }
  #about .site_page_description {
    grid-area: desc;
    text-align: left;
    margin: 0;
    font-size: 17px;
    line-height: 27px;
  }
  #about .site_page_action {
    grid-area: action;
    text-align: left;
    margin-top: 22px;
  }
  #about .site_action_note {
    margin-left: 0;
    max-width: 320px;
  }
  .site_action_button {
    font-size: 15px;
    padding: 15px 30px;
  }

  .section_title {
    font-size: 22px;
    margin-bottom: 22px;
  }
  .carousel_wrapper {
    height: 540px;
  }
  .reviews_carousel .carousel_wrapper {
    height: 580px;
  }
  .contacts_block {
    max-width: 460px;
  }
}

@media (min-width: 1024px) {
  .site_page {
    max-width: 940px;
  }
}

/* Contacts on small phones */
@media (max-width: 400px) {
  .instagram_widget {
    padding: 12px;
    gap: 10px;
  }
  .instagram_icon {
    width: 42px;
    height: 42px;
  }
  .instagram_username {
    font-size: 15px;
  }
  .instagram_stats {
    font-size: 13px;
  }
  .instagram_follow_btn {
    font-size: 12px;
    padding: 7px 11px;
  }
  .contact_tg_button {
    font-size: 14px;
    padding: 13px 16px;
  }
}
