:root {
  --accent: #d24b3a;
  --accent-dark: #b63b2c;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --white: #fff;
  --header: #111;
  --card-radius: 28px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Armenian", sans-serif;
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: var(--header);
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-icon {
  transform: rotate(-12deg) scale(1.08);
}

.logo-mark {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

.logo-mark em {
  color: #e5715f;
  font-style: italic;
}

@media (max-width: 420px) {
  .logo-mark {
    font-size: 1.15rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }
}

.logo-wave {
  display: block;
  width: 78px;
  height: 8px;
  margin-top: 2px;
  background: radial-gradient(circle at 8px 4px, var(--accent) 3px, transparent 4px) 0 0 / 12px 8px repeat-x;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pill-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.lang-btn .caret {
  font-size: 0.6rem;
  opacity: 0.6;
}

.menu-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-content: center;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.side-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.side-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 86vw);
  background: var(--white);
  padding: 64px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-weight: 700;
  transform: translateX(20px);
  transition: transform 0.2s ease;
}

.side-menu.open .side-menu-panel {
  transform: none;
}

.close-menu {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eee;
  font-size: 1.6rem;
  line-height: 1;
}

.hero {
  padding: 48px 16px 36px;
  text-align: center;
}

.hero-title {
  margin: 0 auto 28px;
  max-width: 720px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 340px;
  margin-bottom: 28px;
}

.landmark {
  width: 90px;
  opacity: 0.85;
}

.landmark svg {
  width: 100%;
  height: 180px;
  fill: #8aa0b8;
}

.landmark.right svg {
  fill: #6f8aa3;
}

.phone {
  width: 170px;
  height: 340px;
  border-radius: 32px;
  background: #111;
  padding: 10px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-phone {
  z-index: 2;
  margin: 0 -18px;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 58px;
  height: 8px;
  transform: translateX(-50%);
  background: #222;
  border-radius: 8px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  text-align: center;
}

.envelope-screen {
  background:
    linear-gradient(180deg, #f7f4ee 0 42%, transparent 42%),
    linear-gradient(135deg, #e9e2d4 50%, transparent 50%) 0 42% / 100% 58% no-repeat,
    linear-gradient(-135deg, #ddd4c4 50%, transparent 50%) 100% 42% / 100% 58% no-repeat,
    #f3eee6;
}

.wax-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8c56b, #b8862a);
  color: #5a3a0a;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(150, 100, 20, 0.35);
}

.wax-seal.gold {
  background: radial-gradient(circle at 30% 30%, #f0d78a, #c9a227);
}

.invite-script {
  margin: 8px 0 0;
  color: #7a6a52;
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.search-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  padding: 12px 46px;
  font-size: 1.05rem;
  font-weight: 700;
}

.search-btn:hover {
  background: var(--accent-dark);
}

.categories {
  display: grid;
  gap: 28px;
  padding: 12px 16px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.category-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  min-height: 520px;
  padding: 36px 20px 48px;
  text-align: center;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.55)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1400&q=80")
      center / cover;
}

.category-card.baptism {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6)),
    url("https://images.unsplash.com/photo-1534088568591-a2fd9d7fc2a5?auto=format&fit=crop&w=1400&q=80")
      center / cover;
}

.category-card.birthday {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.55)),
    url("https://images.unsplash.com/photo-1530103862676-de8c9debad1d?auto=format&fit=crop&w=1400&q=80")
      center / cover;
}

.category-card.corporate {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1400&q=80")
      center / cover;
}

.category-card.is-hidden {
  display: none;
}

.category-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
}

.category-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.ghost-btn {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.75);
}

.ghost-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin-top: 28px;
}

.tilt-left {
  transform: rotate(-6deg) translateY(8px);
}

.tilt-right {
  transform: rotate(6deg) translateY(8px);
}

.names {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
}

.date,
.big-num {
  font-weight: 700;
}

.big-num {
  font-size: 3rem;
}

.wedding-a {
  background:
    linear-gradient(180deg, rgba(20, 12, 10, 0.25), rgba(20, 12, 10, 0.55)),
    url("https://images.unsplash.com/photo-1522673607200-164d1b6ce486?auto=format&fit=crop&w=600&q=80")
      center / cover;
}

.wedding-b {
  background:
    linear-gradient(180deg, rgba(20, 12, 10, 0.2), rgba(20, 12, 10, 0.5)),
    url("https://images.unsplash.com/photo-1511285560929-80b456fe9cf4?auto=format&fit=crop&w=600&q=80")
      center / cover;
}

.baptism-a {
  background: linear-gradient(180deg, #f6f1ea, #e8ddd0);
  color: #5a4634;
}

.cross {
  font-size: 1.8rem;
  color: #c9a227;
}

.birthday-a {
  background: linear-gradient(180deg, #2b211c, #111);
}

.corp-a {
  background: linear-gradient(180deg, #1d2430, #111);
}

.corp-b {
  background: linear-gradient(180deg, #3a2a24, #1a1410);
}

.partners {
  text-align: center;
  padding: 48px 16px 40px;
}

.partners h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.partner-link {
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
}

.partner-phones {
  margin-top: 24px;
}

.partner-screen {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)),
    url("https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&w=600&q=80")
      center / cover;
}

.partner-screen.alt {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1470337458703-46ad1756a187?auto=format&fit=crop&w=600&q=80")
      center / cover;
}

.site-footer {
  background: #111;
  color: #ddd;
  text-align: center;
  padding: 48px 16px 32px;
}

.footer-email {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 20px;
  font-size: clamp(1rem, 4.2vw, 1.3rem);
  font-weight: 700;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-email:hover {
  color: #e5715f;
}

.footer-link {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 8px 18px;
  border: 1px solid #444;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #ddd;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-link:hover {
  border-color: var(--accent);
  color: #fff;
}

.copy {
  opacity: 0.6;
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(460px, 94vw);
  background: var(--white);
  border-radius: 20px;
  padding: 40px 24px 28px;
  text-align: center;
}

@media (max-width: 960px) {
  .pill-btn span[data-i18n="phone"] {
    display: none;
  }
}

@media (max-width: 720px) {
  .pill-btn span[data-i18n="lang"] {
    display: none;
  }

  .landmark {
    display: none;
  }

  .logout-btn span[data-i18n] {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .pill-btn {
    padding: 8px 11px;
  }
}

@media (max-width: 480px) {
  .phone {
    width: 140px;
    height: 280px;
  }
}

.logout-btn[hidden] {
  display: none !important;
}
