/* ==========================================================================
   CORE DESIGN SYSTEM & GLOBAL STYLES — soktea.ru
   ========================================================================== */

:root {
  /* Brand color palette */
  --ek-rooibos-light: #F5E3D2;
  --ek-rooibos: #E8C5A5;
  --ek-mocha: #A47864;
  --ek-mocha-deep: #2A211B;
  --ek-deep-tea: #1E1814;
  --ek-terracotta: #C66B4A;
  --ek-terracotta-deep: #A0543A;
  --ek-peach-fuzz: #FFBE98;
  --ek-matcha: #5F7A3E;
  --ek-gold: #B8954A;
  --ek-porcelain: #2A4870;

  /* Semantics */
  --text: #2A211B;
  --text-muted: #6B5D4F;
  --border: rgba(42, 33, 27, 0.12);
  --border-strong: rgba(42, 33, 27, 0.2);

  /* Typography */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  background:
    radial-gradient(ellipse 1200px 800px at 20% 10%, rgba(255, 190, 152, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 900px 600px at 80% 60%, rgba(232, 197, 165, 0.3) 0%, transparent 65%),
    var(--ek-rooibos-light);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* === NAVIGATION === */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  background: rgba(245, 227, 210, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

nav.top .brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

nav.top .brand em { 
  font-style: italic; 
  color: var(--ek-porcelain); 
}

nav.top .menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav.top .menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 200ms var(--ease);
}

nav.top .menu a:hover { 
  opacity: 1; 
  color: var(--ek-terracotta); 
}

nav.top .telega {
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--ek-terracotta);
  color: #F4EBE0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  transition: all 200ms var(--ease);
}

nav.top .telega:hover {
  background: var(--ek-terracotta-deep);
}

/* Бургер-кнопка (видна только на мобиле) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  nav.top .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(245, 227, 210, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease);
  }
  nav.top .menu.open {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
  }
  nav.top .menu li { width: 100%; }
  nav.top .menu a {
    display: block;
    padding: 14px 32px;
    font-size: 16px;
  }
  nav.top .menu .telega {
    display: block;
    margin: 8px 32px;
    text-align: center;
  }
}

/* === BUTTONS === */
.btn-primary {
  padding: 16px 32px;
  border-radius: 14px;
  background: var(--ek-terracotta);
  color: #F4EBE0 !important;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 240ms var(--ease);
  display: inline-block;
  cursor: pointer;
  border: none;
  text-align: center;
  line-height: 1.2;
}

.btn-primary:hover {
  background: var(--ek-terracotta-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -8px rgba(198, 107, 74, 0.4);
}

.btn-secondary {
  padding: 16px 32px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 240ms var(--ease);
  display: inline-block;
  backdrop-filter: blur(4px);
  text-align: center;
  line-height: 1.2;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--text);
  transform: translateY(-2px);
}

/* === CONTACT & BOOKING FORM === */
.form-container {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(164, 120, 100, 0.18);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 
    0 30px 60px -20px rgba(42, 33, 27, 0.15),
    0 4px 20px -5px rgba(42, 33, 27, 0.05);
}

@media (max-width: 600px) {
  .form-container {
    padding: 32px 20px;
  }
}

/* Dark sections need a warm-dark glass, not the light white panel
   (white 0.45 over mocha-deep reads as muddy grey) */
.section-dark .form-container {
  background: rgba(30, 24, 20, 0.55);
  border: 1px solid rgba(255, 190, 152, 0.18);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 190, 152, 0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ek-mocha);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background-color: rgba(255, 248, 238, 0.7);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  transition: all 240ms var(--ease);
}

/* Native select: prevent long option labels from being clipped on iOS */
.form-group select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23A47864' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.section-dark .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23FFBE98' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.section-dark .form-group input::placeholder,
.section-dark .form-group textarea::placeholder {
  color: rgba(255, 248, 238, 0.5);
}

.section-dark .form-group label {
  color: var(--ek-peach-fuzz);
}

/* Honeypot — невидимое поле-ловушка для ботов */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Dark theme overrides for inputs inside dark sections */
.section-dark .form-group input[type="text"],
.section-dark .form-group input[type="tel"],
.section-dark .form-group input[type="email"],
.section-dark .form-group textarea,
.section-dark .form-group select {
  background-color: rgba(42, 33, 27, 0.6);
  border-color: rgba(255, 248, 238, 0.15);
  color: #FFF8EE;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ek-terracotta);
  background-color: #FFF;
  box-shadow: 0 0 0 4px rgba(198, 107, 74, 0.12);
}

.section-dark .form-group input:focus,
.section-dark .form-group textarea:focus,
.section-dark .form-group select:focus {
  background-color: rgba(42, 33, 27, 0.95);
  border-color: var(--ek-peach-fuzz);
  box-shadow: 0 0 0 4px rgba(255, 190, 152, 0.15);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-submit {
  margin-top: 8px;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.section-dark .form-note {
  color: rgba(255, 248, 238, 0.5);
}

.form-note a {
  color: var(--ek-terracotta);
  text-decoration: none;
}

.section-dark .form-note a {
  color: var(--ek-peach-fuzz);
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 400ms var(--ease);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(95, 122, 62, 0.1);
  color: var(--ek-matcha);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}

.form-success h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.form-success p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
}

/* === MAIN FOOTER === */
footer.main {
  background: var(--ek-deep-tea);
  color: #FFF8EE;
  padding: 80px 0 40px;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 248, 238, 0.08);
  font-family: var(--sans);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .f-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: #FFF8EE;
  text-decoration: none;
}

.footer-brand .f-title em {
  font-style: italic;
  color: var(--ek-peach-fuzz);
}

.footer-brand .f-descr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(255, 248, 238, 0.65);
  max-width: 320px;
  line-height: 1.4;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ek-peach-fuzz);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: rgba(255, 248, 238, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 200ms var(--ease);
}

.footer-col ul a:hover {
  color: #FFF8EE;
  padding-left: 4px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contacts .phone,
.footer-contacts .email {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: #FFF8EE;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 200ms var(--ease);
}

.footer-contacts .phone:hover,
.footer-contacts .email:hover {
  color: var(--ek-peach-fuzz);
}

.footer-contacts .telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--ek-terracotta);
  color: #FFF8EE;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  align-self: flex-start;
  transition: all 200ms var(--ease);
}

.footer-contacts .telegram-btn:hover {
  background: var(--ek-terracotta-deep);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 248, 238, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 248, 238, 0.4);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.footer-bottom a {
  color: rgba(255, 248, 238, 0.4);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.footer-bottom a:hover {
  color: var(--ek-peach-fuzz);
}

/* === SUB-PAGE LAYOUTS (Lover-style premium headers and sections) === */
.subpage-hero {
  padding: 180px 0 100px;
  background: linear-gradient(to bottom, rgba(255, 190, 152, 0.12) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ek-matcha);
  font-weight: 600;
  margin-bottom: 24px;
}

.subpage-hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.subpage-hero h1 em {
  font-style: italic;
  color: var(--ek-porcelain);
}

.subpage-hero .sub-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.5;
  color: var(--ek-mocha-deep);
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Subpage content sections */
.section-premium {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--ek-mocha-deep);
  color: #FFF8EE;
}

.section-dark h2,
.section-dark h3 {
  color: #FFF8EE;
}

/* На тёмном фоне синий акцент em нечитаем — заменяем на тёплый персиковый */
.section-dark h2 em,
.section-dark h3 em,
.section-dark .content-block h2 em {
  color: var(--ek-peach-fuzz);
}

.section-dark p {
  color: rgba(255, 248, 238, 0.85);
}

/* Two-column layout */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.content-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-block h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  overflow-wrap: break-word;
}

.content-block h2 em {
  font-style: italic;
  color: var(--ek-porcelain);
}

.content-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.content-block p.accent-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ek-mocha-deep);
  border-left: 3px solid var(--ek-terracotta);
  padding-left: 24px;
}

.section-dark .content-block p.accent-text {
  color: var(--ek-peach-fuzz);
  border-left-color: var(--ek-peach-fuzz);
}

.image-block {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(42, 33, 27, 0.15);
  aspect-ratio: 4/5;
  width: 100%;
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Legal text formatting */
.legal-content {
  max-width: 800px;
  margin: 80px auto;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-content h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text);
  margin: 40px 0 20px;
}

.legal-content p {
  margin-bottom: 20px;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === FOOTER CONTACTS v2 — иконки + мессенджеры (Telegram/MAX/VK/email) === */
.footer-contacts .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  color: rgba(255, 248, 238, 0.82);
  text-decoration: none;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}
.footer-contacts .contact-link:hover { color: #FFF8EE; transform: translateX(2px); }
.footer-contacts .contact-link svg {
  width: 20px; height: 20px; flex: 0 0 20px;
  fill: var(--ek-peach-fuzz);
}
.footer-contacts .contact-link.is-phone { font-size: 18px; }

/* === DISCLAIMER строка в подвале (единый стиль шрифта) === */
.footer-disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 248, 238, 0.38);
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
  font-style: normal;
}
