/* ============================================================
   Apple-inspired theme — clean, quiet, generous whitespace.
   Loaded last so it wins the cascade over the vendor stylesheets.
   ============================================================ */

:root {
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Roboto, Arial, sans-serif;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-active: #006edb;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --gray: #6e6e73;
  --gray-light: #86868b;
  --hairline: rgba(0, 0, 0, 0.08);
  --page-bg: #f5f5f7;
  --card-bg: #ffffff;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
}

body,
html {
  background-color: var(--page-bg);
  font-family: var(--sf);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

img, video {
  max-width: 100%;
  height: auto;
}

.imgSlider,
.imgSlider.swiper {
  overflow: hidden;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--sf);
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 20px;
}

h2 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-top: 2rem;
}

h1, h2, h3, li, p {
  overflow-wrap: break-word;
  word-break: break-word;
}

li, p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

@media screen and (min-width: 768px) {
  li, p {
    font-size: 1.1rem;
    line-height: 1.65;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.15rem;
  }
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

/* ---------- Layout / article card ---------- */

.sectionContainer {
  max-width: 1200px;
}

.articleContent {
  background-color: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-top: 28px;
  margin-bottom: 40px;
  padding: 44px 48px 40px;
}

@media (max-width: 767px) {
  .articleContent {
    border-radius: var(--radius-md);
    padding: 28px 22px 24px;
    margin-top: 12px;
  }
  body, html {
    background-color: var(--page-bg);
  }
}

.contentContainer > p[style*="text-align: center"] {
  display: inline-block;
  margin: 20px auto 0;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--gray);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}

.articleInfo {
  color: var(--gray-light);
  font-size: 0.92rem;
  margin-bottom: 28px;
  line-height: 42px;
}

.photoAuthor {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  vertical-align: middle;
  display: inline-block;
}

.articleAuthor {
  color: var(--ink);
  font-weight: 600;
}

.articleImageContainer {
  margin: 0 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.articleImageContainer video,
.articleImageContainer img {
  display: block;
  border-radius: var(--radius-md);
}

/* ---------- Image slider ---------- */

.imgSlider {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.imgSlider .swiper-button-next,
.imgSlider .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.imgSlider .swiper-button-next:hover,
.imgSlider .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.95);
}

.imgSlider .swiper-button-next::after,
.imgSlider .swiper-button-prev::after {
  font-size: 15px;
  font-weight: 700;
}

.imgSlider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
}

.imgSlider .swiper-pagination-bullet-active {
  background: #ffffff;
}

/* ---------- Registration form card ---------- */

#custom-regbox,
#form {
  margin-top: 8px;
}

#main-container {
  max-width: 460px !important;
}

.form-container {
  background: var(--page-bg);
  border: 1px solid var(--hairline) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  overflow: hidden;
}

#custom-regbox .formHeader,
#form .formHeader {
  background: var(--ink) !important;
  color: #ffffff !important;
  font-family: var(--sf) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  padding: 28px 32px !important;
  text-align: center;
}

.formwrap-outer .intgrtn-form-signup {
  background: var(--card-bg);
  padding: 32px !important;
}

.intgrtn-form-signup .reg-form__input {
  background-color: var(--page-bg) !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  color: var(--ink) !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.intgrtn-form-signup .reg-form__input::placeholder {
  color: var(--gray-light) !important;
}

.intgrtn-form-signup .reg-form__input[type="tel"] {
  padding-left: 96px !important;
}

.intgrtn-form-signup .iti__selected-flag {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
}

.intgrtn-form-signup .reg-form__input:focus,
#custom-regbox input:focus,
#form input:focus {
  outline: none;
  background-color: var(--card-bg) !important;
  border: 1px solid var(--blue) !important;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12) !important;
}

input.reg-form__input.error {
  border: 1px solid #ff3b30 !important;
}

.intgrtn-form-signup .reg-form__error,
.reg-form__error {
  color: #ff3b30 !important;
}

.intgrtn-form-signup .iti .iti__selected-flag {
  background: transparent;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.intgrtn-form-signup .reg-form__button,
.intgrtn-form-signup .reg-form__button_submit {
  background: var(--blue) !important;
  border: none !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 17px !important;
  padding: 15px 24px !important;
  box-shadow: none !important;
  transition: background 0.15s ease, transform 0.1s ease;
}

.intgrtn-form-signup .reg-form__button:hover {
  background: var(--blue-hover) !important;
}

.intgrtn-form-signup .reg-form__button:active {
  background: var(--blue-active) !important;
  transform: scale(0.99);
}

/* ---------- Comments ---------- */

.mainComments {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}

.mainComments h2 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 24px;
}

.mainComment {
  width: 100%;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--page-bg);
  border: none;
  border-radius: var(--radius-md);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mainComment:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.comAvatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.comAvatar.c1 { background: linear-gradient(135deg, #0071e3, #34aadc); }
.comAvatar.c2 { background: linear-gradient(135deg, #ff9500, #ff5e3a); }
.comAvatar.c3 { background: linear-gradient(135deg, #34c759, #30b0c7); }
.comAvatar.c4 { background: linear-gradient(135deg, #af52de, #5856d6); }
.comAvatar.c5 { background: linear-gradient(135deg, #ff2d55, #ff9500); }
.comAvatar.c6 { background: linear-gradient(135deg, #5ac8fa, #007aff); }
.comAvatar.c7 { background: linear-gradient(135deg, #30b0c7, #34c759); }
.comAvatar.c8 { background: linear-gradient(135deg, #ffcc00, #ff9500); }

.comBody {
  flex: 1 1 auto;
  min-width: 0;
}

.comHead {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.headLeft {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.userInfo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.userInfo p,
.userInfo a {
  font-family: var(--sf);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  text-decoration: none;
  cursor: default;
}

.userInfo span {
  font-size: 0.8rem;
  font-family: var(--sf);
  color: var(--gray-light);
  line-height: 1.3;
}

.headRight {
  font-family: var(--sf);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-light);
  flex: 0 0 auto;
}

.comContent {
  font-size: 0.98rem;
  line-height: 1.5;
  font-family: var(--sf);
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 480px) {
  .mainComment {
    padding: 14px 14px;
  }
  .comAvatar {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

/* ---------- Risk warning box ---------- */

.riskWarningBox {
  margin-top: 32px;
  padding: 18px 20px;
  background: var(--page-bg);
  border-radius: var(--radius-md);
}

.riskWarningBox p {
  font-size: 0.85rem !important;
  color: var(--gray) !important;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */

footer {
  background-color: transparent;
  border-top: 1px solid var(--hairline);
  padding: 40px 0 60px;
  text-align: center;
}

footer .sectionContainer {
  max-width: 900px;
}

footer a {
  color: var(--gray) !important;
  font-size: 0.8rem !important;
  text-decoration: none;
}

footer a:hover {
  color: var(--ink) !important;
  text-decoration: underline;
}

footer .disclaimer-ctr p {
  font-size: 0.78rem !important;
  color: var(--gray-light);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
  text-align: center !important;
}

footer .disclaimer-ctr b {
  color: var(--gray);
}
