/* ============================================================
   RETOUCH LIANA — Figma Design v4
   San Solutions & Ark Solutions
   ============================================================ */

@font-face {
  font-family: 'Pricehigh';
  src: url('../fonts/PricehighBlack.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GAA Gayane';
  src: url('../fonts/GAAGayane-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GAA Gayane';
  src: url('../fonts/GAAGayane-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ── */
:root {
  --c-bg:        #DBDBDB;
  --c-white:     #FFFFFF;
  --c-black:     #000000;
  --c-dark:      #171717;
  --c-crimson:   #911520;
  --c-card-bg:   #F4F6F7;
  --c-border:    #000000;

  --f-display:   'Pricehigh', 'Arial Black', sans-serif;
  --f-armenian:  'GAA Gayane', Arial, sans-serif;
  --f-stats:     'Josefin Sans', Arial, sans-serif;
  --f-body:      'Montserrat', Arial, sans-serif;

  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-black);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
.rl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.rl-nav--overlay { background: transparent; }
.rl-nav--solid   { background: var(--c-dark); box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.rl-nav.scrolled { background: rgba(23,23,23,0.92); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.rl-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-h);
}

.rl-nav-brand {
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--c-white);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.rl-nav-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rl-pill {
  font-family: var(--f-armenian);
  font-size: 14px;
  font-weight: 400;
  color: var(--c-white);
  text-decoration: none;
  border: 1px solid var(--c-white);
  border-radius: 10px;
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.rl-pill:hover {
  background: var(--c-white);
  color: var(--c-dark);
}

.rl-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.rl-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ── Courses dropdown (desktop) ── */
.rl-dropdown {
  position: relative;
}
.rl-pill--has-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.rl-dropdown-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.rl-dropdown:hover .rl-dropdown-chevron { transform: rotate(180deg); }
.rl-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding: 10px 8px 8px;
  min-width: 240px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}
.rl-dropdown-menu-inner {
  background: var(--c-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.rl-dropdown:hover .rl-dropdown-menu { display: flex; }
.rl-dropdown-item {
  font-family: var(--f-armenian);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.rl-dropdown-item:hover {
  background: var(--c-crimson);
  color: var(--c-white);
}
.rl-dropdown-desc {
  font-family: var(--f-armenian);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding: 8px 14px 6px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
  white-space: normal;
  max-width: 260px;
}
/* dropdown trigger button — inherits .rl-pill look */
button.rl-pill, button.rl-pill--has-dropdown {
  background: none;
  font-family: var(--f-armenian);
  font-size: 14px;
  font-weight: 400;
  color: var(--c-white);
  border: 1px solid var(--c-white);
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
button.rl-pill:hover, button.rl-pill--has-dropdown:hover {
  background: var(--c-white);
  color: var(--c-dark);
}

/* ── Mobile menu ── */
.rl-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  background: var(--c-dark);
}
.rl-mobile-menu.open { display: flex; }
.rl-mobile-menu .rl-pill { align-self: flex-start; }

/* Courses dropdown (mobile) */
.rl-mobile-dropdown { width: 100%; }
.rl-mobile-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  cursor: pointer;
  font-family: var(--f-armenian);
  font-size: 14px;
  color: var(--c-white);
  border: 1px solid var(--c-white);
  border-radius: 10px;
  padding: 6px 14px;
}
.rl-mobile-dropdown-btn.open .rl-dropdown-chevron { transform: rotate(180deg); }
.rl-mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}
.rl-mobile-dropdown-menu.open { display: flex; }
.rl-mobile-dropdown-item {
  font-family: var(--f-armenian);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 7px;
  transition: background 0.15s;
}
.rl-mobile-dropdown-item:hover { background: var(--c-crimson); color: var(--c-white); }
.rl-mobile-dropdown-desc {
  font-family: var(--f-armenian);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding: 6px 12px 8px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2px;
}

/* ── Hero ── */
.rl-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.rl-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}
.rl-hero-bg.loaded { transform: scale(1); }

.rl-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 35%,
    rgba(0,0,0,0.1)  60%,
    rgba(0,0,0,0.3)  100%
  );
}

.rl-hero-brand-watermark {
  position: absolute;
  bottom: 120px;
  left: 0; right: 0;
  font-family: 'Arial', sans-serif;
  font-size: clamp(60px, 9.7vw, 139px);
  font-weight: 400;
  color: rgba(255,255,255,0.08);
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.01em;
}

.rl-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 40px 0;
}

.rl-hero-quote {
  max-width: 620px;
  margin-left: auto;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 32px 36px;
}
.rl-hero-quote p {
  font-family: var(--f-armenian);
  font-size: 18px;
  color: var(--c-white);
  line-height: 1.8;
}

/* ── Spinning badge ── */
.rl-spinning-badge {
  position: absolute;
  bottom: 48px;
  right: 60px;
  z-index: 2;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}
.rl-spinning-badge-inner {
  animation: rl-spin 10s linear infinite;
  transform-origin: center center;
  will-change: transform;
}
.rl-badge-text {
  font-size: 13px;
  font-family: var(--f-body);
  fill: white;
  letter-spacing: 8.5px;
  text-transform: uppercase;
  font-weight: 600;
}
@keyframes rl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .rl-spinning-badge { width: 120px; height: 120px; bottom: 24px; right: 20px; }
}

/* ── Experience / Stats ── */
.rl-experience {
  position: relative;
  background: var(--c-bg);
  padding: 50px 40px 50px;
  overflow: hidden;
}

.rl-watermark {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  font-family: 'Arial', sans-serif;
  font-size: clamp(60px, 9.7vw, 139px);
  font-weight: 400;
  color: rgba(0,0,0,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  text-align: center;
  overflow: hidden;
}

.rl-experience-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.rl-display-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 900;
  color: var(--c-black);
  text-align: center;
  margin-bottom: 70px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rl-display-title--white { color: var(--c-white); }

.rl-stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.rl-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 30px;
  gap: 14px;
}
.rl-stat-divider {
  width: 1px;
  height: 90px;
  background: rgba(0,0,0,0.12);
  align-self: center;
  flex-shrink: 0;
}

.rl-stat-num {
  font-family: var(--f-stats);
  font-size: clamp(52px, 5.6vw, 80px);
  font-weight: 400;
  color: var(--c-crimson);
  line-height: 1;
}
.rl-stat-label {
  font-family: var(--f-armenian);
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 400;
  color: var(--c-black);
  line-height: 1.4;
  max-width: 180px;
}

.rl-airplane {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}
.rl-airplane--white { opacity: 0.2; }

/* ── Portfolio ── */
.rl-portfolio {
  position: relative;
  background: var(--c-bg);
  padding: 100px 60px 120px;
  overflow: hidden;
}
.rl-portfolio .rl-display-title { margin-bottom: 60px; }

.rl-portfolio-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.rl-pitem {
  position: relative;
  aspect-ratio: 8/5;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: #c8c8c8;
}
.rl-pitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.rl-pitem:hover img { transform: scale(1.04); }
.rl-poverlay {
  position: absolute;
  inset: 0;
  background: rgba(145,21,32,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-armenian);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--c-white);
  opacity: 0;
  transition: opacity 0.3s;
}
.rl-pitem:hover .rl-poverlay { opacity: 1; }

.rl-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.rl-blob--1 {
  width: 600px; height: 300px;
  background: rgba(217,217,217,0.8);
  bottom: -100px; right: -100px;
  box-shadow: 0 4px 58px rgba(0,0,0,0.25);
}
.rl-blob--2 {
  width: 600px; height: 300px;
  background: rgba(217,217,217,0.8);
  bottom: -60px; left: -100px;
  box-shadow: 0 4px 58px rgba(0,0,0,0.25);
}

/* ── Testimonials ── */
.rl-testimonials {
  position: relative;
  min-height: 700px;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.rl-testimonials-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.rl-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.rl-testimonials-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.rl-ttrack-wrap {
  overflow: hidden;
  width: 100%;
}
.rl-ttrack {
  display: flex;
  gap: 28px;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.rl-tcard {
  flex: 0 0 calc(25% - 21px);
  background: var(--c-white);
  border: 1px solid var(--c-black);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 380px;
}
.rl-tcard--accent {
  border-color: var(--c-crimson);
}

.rl-tcard-body {
  flex: 1;
  background: var(--c-card-bg);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rl-tcard-avatar {
  width: 54px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
}
.rl-tcard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.rl-tcard-quote p {
  font-family: 'Arial Unicode MS', Arial, sans-serif;
  font-size: 15px;
  color: var(--c-black);
  line-height: 1.7;
}
.rl-tcard-heart {
  font-size: 18px;
  align-self: flex-end;
}

.rl-testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}
.rl-tarrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--c-crimson);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.rl-tarrow:hover { opacity: 1; }

/* ── FAQ ── */
.rl-faq {
  position: relative;
  min-height: 600px;
  padding: 80px 40px 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-bg);
}
.rl-faq-bg {
  display: none;
}
.rl-faq-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 0 0 auto;
  padding-right: 20px;
}
.rl-faq-inner .rl-display-title { margin-bottom: 50px; }

.rl-faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rl-faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.rl-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.rl-faq-q span {
  font-family: var(--f-armenian);
  font-size: 18px;
  color: var(--c-dark);
  font-weight: 400;
}
.rl-faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
}
.rl-faq-q[aria-expanded="true"] .rl-faq-chevron {
  transform: rotate(180deg);
}
.rl-faq-q[aria-expanded="true"] span {
  color: var(--c-crimson);
}
.rl-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.rl-faq-a.open {
  max-height: 2000px;
  padding-bottom: 16px;
}
.rl-faq-a p {
  font-family: var(--f-armenian);
  font-size: 15px;
  color: var(--c-dark);
  line-height: 1.7;
}
.rl-faq-chevron path { stroke: var(--c-crimson); }

/* ── Footer ── */
.rl-footer {
  position: relative;
  background: var(--c-dark);
  padding: 80px 60px 48px;
  overflow: hidden;
}

.rl-footer-glow {
  position: absolute;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(145,21,32,0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}
.rl-footer-glow--left  { bottom: -150px; left: -100px; }
.rl-footer-glow--right { top: -100px;    right: -100px; }

.rl-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Top: brand block */
.rl-footer-top {
  margin-bottom: 40px;
}
.rl-footer-brand {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.rl-footer-tagline {
  font-family: var(--f-armenian);
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* Divider */
.rl-footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 0 40px;
}

/* Columns */
.rl-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.rl-footer-col-label {
  font-family: var(--f-armenian);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Nav links */
.rl-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rl-footer-nav a {
  font-family: var(--f-armenian);
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.rl-footer-nav a:hover { transform: translateX(4px); }
.rl-footer-nav a:hover { color: var(--c-white); }

/* Social links */
.rl-footer-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rl-social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.2s;
}
.rl-social-link:hover { transform: translateX(4px); }
.rl-social-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.rl-social-link--ig   .rl-social-icon-wrap { background: transparent; padding: 0; }
.rl-social-link--ig   .rl-social-icon-wrap svg { width: 40px; height: 40px; border-radius: 10px; }
.rl-social-link--tg   .rl-social-icon-wrap { background: #0088CC; }
.rl-social-link--yt   .rl-social-icon-wrap { background: #CC0000; }
.rl-social-link:hover .rl-social-icon-wrap {
  opacity: 0.9;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.rl-social-link svg { display: block; }
.rl-social-link span {
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.rl-social-link:hover span { color: var(--c-white); }

/* Contact */
.rl-footer-email {
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  color: var(--c-white);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}
.rl-footer-email:hover { opacity: 0.75; }
.rl-footer-contact-note {
  font-family: var(--f-armenian);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  margin: 0;
}

/* Bottom bar */
.rl-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.rl-footer-bottom p {
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.rl-footer-credit a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.rl-footer-credit a:hover { color: var(--c-white); }
.rl-footer-legal {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 4px 0;
}
.rl-footer-legal a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.rl-footer-legal a:hover { color: var(--c-white); }
.rl-footer-legal-sep { margin: 0 8px; }

/* ── Lightbox ── */
#rl-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#rl-lightbox.open { display: flex; }
.rl-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}
.rl-lb-img {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: rl-lb-in 0.2s ease;
}
@keyframes rl-lb-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.rl-lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.rl-lb-close:hover { background: var(--c-crimson); }

/* ── Scroll to top ── */
.rl-scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--c-crimson);
  color: var(--c-white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
}
.rl-scroll-top.visible { opacity: 1; transform: translateY(0); }

/* ── Inner pages ── */
.rl-page-hero {
  background: var(--c-dark);
  padding: 100px 40px 60px;
  text-align: center;
}
.rl-page-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--c-white);
  font-weight: 900;
  line-height: 1;
}
.rl-page-content {
  padding: 80px 40px 120px;
  background: var(--c-bg);
}
.rl-page-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.rl-page-body p {
  font-family: var(--f-armenian);
  font-size: 19px;
  line-height: 1.8;
  color: var(--c-black);
  margin-bottom: 1.5rem;
}
.rl-page-body h1,
.rl-page-body h2,
.rl-page-body h3,
.rl-page-body h4 {
  font-family: var(--f-armenian);
  color: var(--c-crimson);
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}
.rl-page-body h1 { font-size: clamp(24px, 3vw, 32px); }
.rl-page-body h2 { font-size: clamp(20px, 2.5vw, 28px); }
.rl-page-body h3 { font-size: clamp(17px, 2vw, 22px); }
.rl-page-body h4 { font-size: clamp(15px, 1.8vw, 19px); }
.rl-page-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.rl-page-body ul li {
  font-family: var(--f-armenian);
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-black);
  padding-left: 28px;
  position: relative;
  margin-bottom: 0.5rem;
}
.rl-page-body ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-crimson);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

/* ── Gutenberg block columns (About Us) ── */
.wp-block-columns {
  display: flex !important;
  gap: 60px !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  margin-bottom: 40px;
}
.wp-block-column {
  flex: 1;
  min-width: 0;
}
.wp-block-column[style*="flex-basis:50%"],
.wp-block-column[style*="flex-basis: 50%"] {
  flex: 0 0 45%;
}

/* About Us photo */
.rl-about-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
  line-height: 0;
}
.rl-about-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Portfolio page ── */
.rl-pf-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}
.rl-pf-section-label {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--c-dark);
  margin: 80px 0 28px;
  line-height: 1;
}
.rl-pf-ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.rl-pf-ba-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  line-height: 0;
  cursor: zoom-in;
}
.rl-pf-ba-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.rl-pf-ba-item:hover img { transform: scale(1.05); }
.rl-pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .rl-pf-ba-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .rl-pf-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .rl-pf-wrap { padding: 40px 16px 60px; }
  .rl-pf-ba-grid { grid-template-columns: 1fr; }
  .rl-pf-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rl-pf-ba-item img { aspect-ratio: 3 / 2; height: auto; }
}

/* ── Gutenberg gallery (Portfolio page) ── */
.wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 32px !important;
  margin: 0 !important;
}
.wp-block-gallery .wp-block-image,
.wp-block-gallery figure {
  margin: 0 !important;
  border-radius: 16px;
  overflow: hidden;
}
.wp-block-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.wp-block-gallery .wp-block-image:hover img,
.wp-block-gallery figure:hover img {
  transform: scale(1.04);
}

/* ── Gutenberg single image ── */
.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.wp-block-image.alignright { float: right; margin-left: 32px; }

/* ── WP block group ── */
.wp-block-group { margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .rl-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .rl-tcard { flex: 0 0 calc(50% - 14px); }
  .rl-pf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Nav */
  .rl-nav-pills { display: none; }
  .rl-burger { display: flex; }

  /* Hero — stack image on top, text below */
  .rl-hero { height: auto; min-height: auto; flex-direction: column; align-items: stretch; }
  .rl-hero-bg {
    position: relative !important;
    transform: none !important;
    transition: none !important;
    width: 100%;
    height: 53vw;
    background-size: cover !important;
    background-position: left center !important;
    flex-shrink: 0;
  }
  .rl-hero-overlay { height: 53vw; bottom: auto; }
  .rl-hero-brand-watermark { display: none; }
  .rl-watermark { display: none; }
  .rl-spinning-badge { top: calc(53vw - 80px); bottom: auto; right: 24px; left: auto; width: 65px; height: 65px; overflow: hidden; }
  .rl-spinning-badge svg { width: 100% !important; height: 100% !important; }
  .rl-hero-content {
    position: relative !important;
    padding: 20px 16px !important;
    background: var(--c-bg);
  }
  .rl-hero-quote {
    max-width: 100% !important;
    margin-left: 0 !important;
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0,0,0,0.2) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  }
  .rl-hero-quote p { color: var(--c-dark) !important; font-size: 15px !important; line-height: 1.7 !important; font-style: italic !important; }

  /* Stats */
  .rl-experience { padding: 32px 20px 40px; }
  .rl-stats-row {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }
  .rl-stat-divider { width: 1px; height: 60px; align-self: center; }
  .rl-stat { padding: 0 16px; flex-direction: column; align-items: center; gap: 4px; text-align: center; flex: 1; }
  .rl-stat-num { font-size: 38px; }
  .rl-stat-label { font-size: 11px; max-width: 90px; line-height: 1.3; }
  .rl-display-title { font-size: clamp(32px, 8vw, 48px); margin-bottom: 40px; }

  /* Front-page portfolio */
  .rl-portfolio { padding: 48px 16px 60px; }
  .rl-portfolio-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Testimonials */
  .rl-testimonials { min-height: 500px; padding: 48px 16px; }
  .rl-testimonials-bg { background-position: center 30%; background-size: cover; }
  .rl-tcard { flex: 0 0 100%; }

  /* FAQ */
  .rl-faq { padding: 48px 16px 60px; min-height: 500px; }
  .rl-faq-inner { margin: 0 auto; padding-right: 0; max-width: 100%; }
  .rl-faq-bg { background-position: left bottom; background-size: cover; }
  .rl-faq-q { font-size: 15px; padding: 16px 20px; }

  /* Footer */
  .rl-footer { padding: 40px 24px 28px; }
  .rl-footer-brand { font-size: 24px; margin-bottom: 28px; }
  .rl-footer-cols { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .rl-footer-col-label { font-size: 11px; margin-bottom: 14px; }
  .rl-footer-socials { gap: 16px; }
  .rl-footer-email { font-size: 15px; }
  .rl-footer-bottom { padding-top: 18px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .rl-footer-bottom p { font-size: 12px; }
  .rl-footer-glow { display: none; }

  /* Misc */
  .rl-airplane { display: none; }
  .rl-blob { display: none; }
  .rl-scroll-top { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: 16px; }

  /* Inner pages */
  .rl-page-hero { padding: 70px 20px 32px; }
  .rl-page-title { font-size: clamp(28px, 7vw, 44px); }
  .rl-page-content { padding: 32px 0 60px; }
  .rl-page-inner { padding: 0 20px; }
  .rl-page-body p { font-size: 17px; }

  /* About Us columns — stack vertically */
  .wp-block-columns { flex-direction: column !important; gap: 28px !important; }
  .wp-block-column[style*="flex-basis:50%"] { flex: 1 1 auto !important; }
  .rl-about-photo img { height: 420px; object-position: center top; }

  /* Portfolio page */
  .rl-pf-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .rl-pf-item img { height: 210px; }
  .rl-pf-ba-grid { gap: 14px; }
  .rl-pf-ba-item { border-radius: 12px; }
  .rl-pf-section-label { font-size: 18px; margin: 32px 0 14px; }

  /* WP gallery */
  .wp-block-gallery { grid-template-columns: 1fr !important; gap: 14px !important; }
}

@media (max-width: 480px) {
  /* Stats */
  .rl-stat-num { font-size: 44px; }
  .rl-display-title { font-size: 32px; }

  /* Front-page portfolio */
  .rl-portfolio-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Footer */
  .rl-footer-email { font-size: 13px; word-break: break-all; }

  /* Portfolio page */
  .rl-pf-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .rl-pf-item img { height: 300px; }

  /* About Us */
  .rl-about-photo img { height: 360px; object-position: center top; }
}

/* ── Portfolio page custom layout ── */
.rl-pf-wrap { width: 100%; }

.rl-pf-section-label:first-child { margin-top: 0; }


/* Individual works — 3-column grid */
.rl-pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rl-pf-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  line-height: 0;
}
.rl-pf-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.rl-pf-item:hover img { transform: scale(1.05); }
