/* ===================================================================
   Марат хазрат — лендинг-визитка
   Стиль: премиум / минимализм, исламская эстетика
   Палитра: слоновая кость + графит + изумруд + золото
=================================================================== */

:root {
  --ivory: #f7f3ea;
  --cream: #fcf9f2;
  --paper: #ffffff;
  --ink: #1f2a26;
  --ink-soft: #4a554f;
  --muted: #76817b;
  --emerald: #0e5347;
  --emerald-deep: #0a3e35;
  --emerald-soft: #e7efe9;
  --gold: #b8924a;
  --gold-soft: #e8d9b6;
  --line: #e7e0d2;

  --shadow-sm: 0 2px 10px rgba(31, 42, 38, 0.05);
  --shadow-md: 0 18px 50px rgba(14, 83, 71, 0.10);
  --shadow-lg: 0 30px 80px rgba(10, 62, 53, 0.18);

  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-weight: 400;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 500; }
h1 em { font-style: italic; color: var(--emerald); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 500; }
h3 { font-size: 1.32rem; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--gold-soft); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 660px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--sans); font-weight: 600; font-size: 0.97rem;
  letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 10px 26px rgba(14, 83, 71, 0.28); }
.btn-primary:hover { background: var(--emerald-deep); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14, 83, 71, 0.34); }
.btn-ghost { background: transparent; color: var(--emerald); border-color: rgba(14, 83, 71, 0.28); }
.btn-ghost:hover { border-color: var(--emerald); background: rgba(14, 83, 71, 0.05); transform: translateY(-3px); }
.btn-ghost.light { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost.light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: block; flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand-role { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }

.nav { display: flex; gap: 30px; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--gold); transition: width .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column;
  padding: 6px 24px 16px; gap: 2px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - 74px); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 13px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (min-width: 941px) { .mobile-menu { display: none !important; } }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(48px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); background:
  radial-gradient(1100px 540px at 78% -8%, rgba(14,83,71,0.08), transparent 60%),
  linear-gradient(180deg, var(--cream), var(--ivory)); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; list-style: none; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--emerald); }
.hero-facts span { font-size: 0.85rem; color: var(--muted); }

/* Портрет в арочной рамке (mihrab) */
.hero-visual { display: flex; justify-content: center; }
.hero-portrait {
  position: relative; width: min(360px, 82vw); aspect-ratio: 4 / 5;
  border-radius: 180px 180px 26px 26px;
  padding: 12px;
  background: linear-gradient(160deg, var(--emerald), var(--emerald-deep));
  box-shadow: var(--shadow-lg);
  margin: 0;
}
.hero-portrait::before {
  content: ""; position: absolute; inset: 6px; z-index: 2; pointer-events: none;
  border: 1.5px solid rgba(184, 146, 74, 0.7);
  border-radius: 176px 176px 22px 22px;
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  border-radius: 170px 170px 16px 16px; display: block;
}
.hero-portrait-quote {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  padding: 22px 20px 18px; border-radius: 0 0 16px 16px;
  background: linear-gradient(transparent, rgba(10, 62, 53, 0.92));
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.4;
  color: var(--gold-soft); text-align: center;
}

.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(transparent, var(--ivory)); }

/* ===== About ===== */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  overflow: hidden; margin: 0;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.portrait-frame::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(184, 146, 74, 0.55); border-radius: 20px;
}
.about-text p { color: var(--ink-soft); margin-top: 18px; max-width: 600px; }
.pull-quote {
  font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4;
  color: var(--emerald); margin-top: 30px; padding-left: 24px; border-left: 3px solid var(--gold);
}

/* ===== Work / tags ===== */
.work { background: var(--cream); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 880px; margin: 0 auto clamp(48px, 6vw, 72px); }
.tags li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 22px; font-size: 0.97rem; font-weight: 500; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), color .3s, border-color .3s;
}
.tags li:hover { transform: translateY(-3px); color: var(--emerald); border-color: var(--gold-soft); }

.directions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dir-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.dir-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dir-num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-weight: 600; }
.dir-card h3 { margin: 12px 0 10px; }
.dir-card p { color: var(--muted); font-size: 0.97rem; }

/* ===== Approach ===== */
.approach { background: var(--ivory); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.approach-text p { color: var(--ink-soft); margin-top: 18px; }
.approach-list { list-style: none; display: grid; gap: 14px; }
.approach-list li { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--emerald); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.approach-list h3 { font-size: 1.18rem; }
.approach-list p { color: var(--muted); font-size: 0.96rem; margin-top: 6px; }

/* ===== Results ===== */
.results { background: var(--emerald); color: var(--cream); }
.results .eyebrow { color: var(--gold-soft); }
.results h2 { color: #fff; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.result-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(184,146,74,0.35);
  border-radius: var(--radius); padding: 36px 26px; backdrop-filter: blur(4px);
}
.result-from { font-size: 0.98rem; color: rgba(255,255,255,0.7); }
.result-arrow { font-size: 1.6rem; color: var(--gold-soft); }
.result-to { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #fff; }

/* ===== Process ===== */
.process { background: var(--cream); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.steps li { position: relative; padding: 30px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--emerald-soft); color: var(--emerald); font-family: var(--serif);
  font-size: 1.4rem; font-weight: 600; margin-bottom: 16px;
}
.steps h3 { font-size: 1.18rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.95rem; }
.formats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.format-pill { background: var(--emerald-soft); color: var(--emerald); border-radius: 100px; padding: 9px 20px; font-size: 0.9rem; font-weight: 600; }

/* ===== Credentials ===== */
.credentials { background: var(--ivory); }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cred-card { text-align: center; padding: 34px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.cred-card::before { content: "۞"; display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin-bottom: 14px; }
.cred-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.cred-card p { color: var(--muted); font-size: 0.92rem; }

/* ===== Reviews ===== */
.reviews { background: var(--cream); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.review-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.review-badge { display: inline-block; background: var(--emerald-soft); color: var(--emerald); font-weight: 600; font-size: 0.9rem; border-radius: 100px; padding: 7px 16px; margin-bottom: 18px; }
.review-card blockquote { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.review-card figcaption { margin-top: 20px; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; padding-top: 16px; border-top: 1px solid var(--line); }

/* ===== Follow ===== */
.follow { background: var(--ivory); }
.follow-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.follow-text p { color: var(--ink-soft); margin-top: 16px; }
.follow-cards { display: grid; gap: 18px; }
.social-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px;
  align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.social-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--emerald); color: var(--gold-soft); font-size: 1.5rem; }
.social-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; align-self: end; }
.social-handle { color: var(--muted); font-size: 0.92rem; align-self: start; }

/* ===== Contact ===== */
.contact { background: linear-gradient(160deg, var(--emerald), var(--emerald-deep)); color: var(--cream); text-align: center; }
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact h2 { color: #fff; }
.contact-lead { color: rgba(255,255,255,0.82); margin: 18px auto 34px; max-width: 560px; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-links { margin-top: 28px; display: flex; gap: 14px; justify-content: center; align-items: center; color: rgba(255,255,255,0.75); }
.contact-links a { font-weight: 600; border-bottom: 1px solid rgba(184,146,74,0.6); padding-bottom: 2px; }
.contact-links a:hover { color: #fff; }

/* ===== Footer ===== */
.site-footer { background: var(--emerald-deep); color: rgba(255,255,255,0.78); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.footer-role { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-note { font-size: 0.92rem; max-width: 280px; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner, .about-grid, .approach-grid, .follow-inner { grid-template-columns: 1fr; }
  .about-portrait { max-width: 340px; margin: 0 auto; order: -1; }
  .hero-visual { order: -1; }
  .directions, .cred-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .results-grid, .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .directions, .cred-grid, .steps { grid-template-columns: 1fr; }
  .hero-facts { gap: 18px 28px; }
  .btn { width: 100%; }
  .hero-actions, .contact-actions { width: 100%; }
  .brand-role { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .dir-card:hover, .review-card:hover, .social-card:hover { transform: none; }
}
