/* =========================================================
   AleXan — стили лендинга
   ========================================================= */

:root {
  --gold: #c8960c;
  --gold-light: #f8c441;
  --brown: #b0895f;
  --brown-dark: #aa7134;
  --brown-text: #a0784e;
  --cream: #f2ebd9;
  --cream-light: #faf6ee;
  --header-bg: #fff1e4;
  --text-dark: #2d3748;
  --text-grey: #4a5568;
  --footer-bg: #1f2a36;
  --header-h: 72px;

  --font-body: "Merriweather", Georgia, "Times New Roman", serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-hero: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-grey);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.i { width: 20px; height: 20px; flex-shrink: 0; }

/* =========================================================
   ШАПКА
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(160, 120, 78, 0.12);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img { height: 60px; width: auto; }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brown-text);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--gold); }

.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brown-text);
}
.header-social a { display: inline-flex; transition: color 0.2s ease, transform 0.2s ease; }
.header-social a:hover { color: var(--gold); transform: translateY(-1px); }
.header-social .i { width: 19px; height: 19px; }

/* Гамбургер (виден только на узких экранах) */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.burger span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--brown);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .logo img { height: 52px; }
  .burger { display: flex; }

  .nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--header-bg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .nav-wrap.is-open { display: flex; }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav a {
    padding: 14px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(160, 120, 78, 0.18);
  }
  .header-social { padding-top: 16px; gap: 22px; }
  .header-social .i { width: 24px; height: 24px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 650px;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  text-align: center;
  color: #fff;
  background-image: url("images/cover.webp");
  background-size: cover;
  background-position: 50% 50%;
  background-attachment: fixed;
  background-color: #525047;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(82, 80, 71, 0.8);
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 300px;
  width: 100%;
  padding: 6px 12px;
  border: 1px solid rgba(253, 188, 4, 0.69);
  border-radius: 30px;
  background: rgba(200, 150, 12, 0.12);
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge .i { width: 14px; height: 14px; }

.hero h1 {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 90px;   /* ← размер слова AleXan в Hero на компьютере */
  line-height: 1.05;
  color: #fff;
}

.hero-sub {
  max-width: 560px;
  margin-top: 0;
  padding-bottom: 6px;
  font-family: var(--font-hero);
  font-style: italic;
  font-weight: 400;
  font-size: 58px;   /* ← размер «Экосистема отдыха и инвестиций на Пхукете» на компьютере */
  line-height: 1.1;
  background: linear-gradient(329deg, #f6b81a 0%, #ffd000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffbd01;
}

.hero-text {
  max-width: 570px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 8px 0;
}

/* ---------- Кнопки hero ---------- */
@keyframes borderShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.axn-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 240px;
  max-width: 340px;
  padding: 0;
  border: none;
  border-radius: 100px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.axn-btn-primary {
  background: #c8900a;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.axn-btn-primary::before,
.axn-btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 3px;
  background: linear-gradient(90deg, #7a4f00, #c8900a, #f5c842, #fff8c0, #f5c842, #c8900a, #7a4f00);
  background-size: 300% 100%;
  animation: borderShimmer 6s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.axn-btn-outline::before { padding: 2px; animation-delay: -3s; }

.axn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 18px 24px;
  border-radius: 100px;
}
.axn-btn-primary .axn-inner {
  background: linear-gradient(135deg, #c8900a 0%, #d4a017 50%, #b87c08 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.axn-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(180, 130, 10, 0.5);
}

.axn-btn-outline {
  background: transparent;
  color: #fcd544;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.axn-btn-outline:hover {
  background: rgba(212, 160, 23, 0.07);
  color: #d4a017;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 160, 23, 0.25);
}

.axn-consult-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
}
.axn-consult-wrap .axn-btn { width: 100%; max-width: 100%; }

/* Выпадающий блок WhatsApp / Telegram */
.axn-contacts {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}
.axn-contacts.is-open {
  display: flex;
  animation: axnFadeIn 0.22s ease;
}
@keyframes axnFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.axn-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 100px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.axn-contact-btn:hover { transform: translateY(-2px); }
.axn-contact-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.axn-btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.axn-btn-wa:hover { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }

.axn-btn-tg {
  background: linear-gradient(135deg, #54a9eb, #2a7fba);
  box-shadow: 0 4px 14px rgba(42, 127, 186, 0.35);
}
.axn-btn-tg:hover { box-shadow: 0 6px 20px rgba(42, 127, 186, 0.5); }

/* =========================================================
   ЭКОСИСТЕМА
   ========================================================= */
.ecosystem {
  padding: 48px 20px 40px;
  background: #fff;
  text-align: center;
}

.eco-head h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  color: var(--brown);
}
.eco-head p {
  padding-top: 8px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--brown);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 32px;
}

.eco-card {
  overflow: hidden;
  border: 1px solid var(--brown);
  border-radius: 30px;
  background: #fff;
}
.eco-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 30px;
}
.eco-title {
  margin-top: -7%;
  position: relative;
  padding: 0 8px 14px;
  min-height: 35px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  color: var(--brown-dark);
}

/* Цепочка Отдых → Покупка → Доход */
.path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px 20px;
}
.path-step {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  border: 1px solid #c8b093;
  border-radius: 12px;
  background: #fff;
  color: #9c7853;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}
.path-step:hover {
  transform: translateY(-3px);
  border-color: #9c7853;
  box-shadow: 0 8px 25px rgba(156, 120, 83, 0.15);
}
.path-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c8b093;
  animation: pulse-arrow-right 2s infinite;
}
.path-arrow svg { width: 32px; height: 32px; }
@keyframes pulse-arrow-right {
  0%   { transform: translateX(0);   opacity: 0.6; }
  50%  { transform: translateX(6px); opacity: 1; }
  100% { transform: translateX(0);   opacity: 0.6; }
}

.eco-note {
  max-width: 600px;
  margin: 0 auto;
  padding-top: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--brown-text);
}

/* =========================================================
   ТОЧКИ ВХОДА
   ========================================================= */
.entry {
  padding: 48px 20px 70px;
  background: var(--cream);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.kicker .i { width: 16px; height: 16px; }

.entry-head {
  text-align: center;
  padding-bottom: 36px;
}
.entry-head h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  color: var(--brown);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.entry-card {
  display: flex;
  flex-direction: column;
}
.entry-photo {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
}
.entry-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  margin: -120px 20px 0;
  padding: 24px 24px 30px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
}
.entry-body h3 {
  padding-bottom: 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-dark);
}
.entry-lead {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-grey);
}
.entry-body hr {
  width: 100%;
  height: 1px;
  margin: 20px 0;
  border: 0;
  background: rgba(144, 113, 63, 0.4);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
  margin-bottom: 18px;
  padding: 0 12px;
  text-align: left;
}
.checklist li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-grey);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3748' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='M22 4 12 14.01l-3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn-gold {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 197px;
  padding: 12px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffd400 0%, #f5a524 100%);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}
.btn-gold:hover {
  background: linear-gradient(302deg, #ffd400 0%, #f5a524 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 165, 36, 0.35);
}

/* =========================================================
   СООБЩЕСТВО
   ========================================================= */
.community {
  padding: 48px 20px 70px;
  background: var(--cream-light);
}
.community-head {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.community-head h2 {
  padding-top: 5px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.2;
  color: var(--brown);
}
.community-head p {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--brown);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 32px;
  max-width: 1100px;
  margin: 48px auto 0;
}

.soc-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 80px -10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.soc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 80px -10px rgba(0, 0, 0, 0.2);
}
.soc-wide { grid-column: 1 / -1; }

.soc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: var(--brown);
  color: #fff;
  transition: background 0.25s ease;
}
.soc-icon svg { width: 24px; height: 24px; }
.soc-card:hover .soc-icon { background: #f5b024; }

.soc-text { display: flex; flex-direction: column; min-width: 0; }
.soc-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--brown);
  transition: color 0.25s ease;
}
.soc-card:hover .soc-title { color: #f5b024; }
.soc-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-grey);
}

/* =========================================================
   ФУТЕР
   ========================================================= */
.site-footer {
  padding: 40px 20px 36px;
  background: var(--footer-bg);
  color: #fff;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }

.footer-title {
  margin-bottom: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-icons { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #fff;
  color: #1f2a36;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-icons a:hover { background: #f5b024; transform: translateY(-2px); }
.footer-icons svg { width: 20px; height: 20px; }

/* =========================================================
   ПЛАНШЕТ
   ========================================================= */
@media (max-width: 1024px) {
  .hero { background-attachment: scroll; }

  .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   ТЕЛЕФОН
   ========================================================= */
@media (max-width: 767px) {
  .hero {
    min-height: 600px;
    padding: 40px 16px 56px;
    gap: 24px;
  }
  .hero h1 { font-size: 80px; line-height: 1; }  /* ← размер слова AleXan в Hero на телефоне */
  .hero-sub { font-size: 30px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .axn-btn { width: 100%; max-width: 380px; font-size: 16px; }
  .axn-consult-wrap { max-width: 380px; }

  .ecosystem { padding: 36px 16px 28px; }
  .eco-head h2 { font-size: 28px; }
  .eco-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 420px;
    padding-top: 24px;
  }
  .eco-title { font-size: 13px; letter-spacing: 0.5px; }

  /* Цепочка в одну линию, со свайпом при нехватке места */
  .path {
    justify-content: flex-start;
    gap: 6px;
    padding: 24px 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .path::-webkit-scrollbar { display: none; }
  /* центрируем цепочку; если не влезает — она листается свайпом */
  .path > :first-child { margin-left: auto; }
  .path > :last-child { margin-right: auto; }
  .path-step { padding: 10px 12px; font-size: 0.8rem; letter-spacing: 0.5px; border-radius: 8px; }
  .path-arrow svg { width: 18px; height: 18px; }
  .eco-note { font-size: 17px; padding-top: 16px; }

  .entry { padding: 40px 0 48px; }
  .entry-head { padding: 0 16px 28px; }
  .entry-head h2 { font-size: 30px; }

  /* Карточки листаются свайпом */
  .entry-grid {
    display: flex;
    gap: 16px;
    padding: 0 38px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 38px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .entry-grid::-webkit-scrollbar { display: none; }
  .entry-card {
    flex: 0 0 min(84%, 340px);
    scroll-snap-align: start;
  }

  .community { padding: 40px 16px 48px; }
  .community-head h2 { font-size: 30px; }
  .community-head p { font-size: 17px; }
  .community-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }
  .soc-card { padding: 16px 12px; }
  .soc-desc { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
