/* Daiquiri Group — стили (PHP/jQuery версия) */

:root {
  --background: #0A0A0A;
  --foreground: #F5F0EB;
  --card: #111111;
  --primary: #8B1A2B;
  --primary-foreground: #F5F0EB;
  --secondary: #1A1A1A;
  --border: #262220;
  --muted: #8A8580;
  --radius: 0.375rem;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Container */
.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.container-narrow { max-width: 56rem; }
.container-medium { max-width: 64rem; }

/* Section common */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1rem;
  font-family: var(--font-sans);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  margin: 0;
}

@media (min-width: 640px) { .section-title { font-size: 3rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3.75rem; } }

.section-line {
  width: 4rem;
  height: 1px;
  background: var(--border);
  margin: 2rem auto 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.5s, border-color 0.5s;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .header-inner { padding-left: 2rem; padding-right: 2rem; }
}

.site-header .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.7);
  transition: color 0.3s;
}

.nav-desktop a:hover { color: var(--foreground); }

.nav-desktop .btn-login {
  border: 1px solid var(--primary);
  background: rgba(139, 26, 43, 0.15);
  color: var(--primary-foreground);
  padding: 0.5rem 1.25rem;
  transition: background 0.3s, color 0.3s;
}

.nav-desktop .btn-login:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

.icon-menu::before { content: '\2630'; font-size: 1.5rem; }
.icon-close::before { content: '\2715'; font-size: 1.5rem; }

.nav-mobile {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s, opacity 0.5s;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
}

.nav-mobile.open {
  max-height: 24rem;
  opacity: 1;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 1.5rem;
}

.nav-mobile a {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.7);
  border-bottom: 1px solid rgba(38, 34, 32, 0.3);
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--foreground); }

.nav-mobile .btn-login {
  margin-top: 1rem;
  border: 1px solid var(--primary);
  background: rgba(139, 26, 43, 0.15);
  color: var(--primary-foreground);
  padding: 0.75rem;
  text-align: center;
}

.nav-mobile .btn-login:hover { background: var(--primary); }

@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--background);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), transparent 40%, transparent 60%, var(--background));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.5);
  margin: 0 0 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.025em;
  margin: 0;
}

@media (min-width: 640px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 5rem; } }

.hero-line {
  width: 6rem;
  height: 1px;
  background: var(--primary);
  margin: 2rem auto 0;
}

.hero-desc {
  max-width: 36rem;
  margin: 2rem auto 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(245, 240, 235, 0.6);
}

@media (min-width: 1024px) { .hero-desc { font-size: 1.125rem; } }

.hero-buttons {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; justify-content: center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-outline {
  border-color: rgba(245, 240, 235, 0.2);
  background: transparent;
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-foreground);
  background: var(--primary);
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover { background: rgba(139, 26, 43, 0.8); }

.btn-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover { border-color: rgba(245, 240, 235, 0.3); color: var(--foreground); }

.btn-sm { padding: 0.75rem 1.5rem; font-size: 0.75rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.3);
}

.hero-scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(245, 240, 235, 0.3), transparent);
}

/* About */
.about {
  padding: 8rem 0;
}

@media (min-width: 1024px) { .about { padding: 10rem 0; } }

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-text {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(245, 240, 235, 0.6);
}

@media (min-width: 1024px) { .about-text { font-size: 1.125rem; } }

.about-quote {
  max-width: 36rem;
  margin: 2rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: rgba(245, 240, 235, 0.4);
}

@media (min-width: 1024px) { .about-quote { font-size: 1.25rem; } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  transition: color 0.3s;
}

.link-arrow:hover { color: var(--foreground); }

.link-arrow::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s, background 0.3s;
}

.link-arrow:hover::after {
  width: 3rem;
  background: var(--foreground);
}

/* Bars */
.bars {
  padding: 8rem 0;
}

@media (min-width: 1024px) { .bars { padding: 10rem 0; } }

.bars-head {
  text-align: center;
  margin-bottom: 5rem;
}

.bars-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-bottom: 8rem;
}

.bars-row:last-child { margin-bottom: 0; }

@media (min-width: 1024px) {
  .bars-row {
    flex-direction: row;
    gap: 5rem;
  }
  .bars-row.reverse { flex-direction: row-reverse; }
  .bars-image-wrap { width: 50%; }
  .bars-content { width: 50%; }
}

.bars-image-wrap {
  width: 100%;
  overflow: hidden;
}

.bars-image-aspect {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.bars-image-aspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.bars-image-wrap:hover .bars-image-aspect img {
  transform: scale(1.05);
}

.bars-content { width: 100%; }

.bars-name {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  margin: 0.75rem 0 0;
}

@media (min-width: 640px) { .bars-name { font-size: 2.25rem; } }
@media (min-width: 1024px) { .bars-name { font-size: 3rem; } }

.bars-line {
  width: 3rem;
  height: 1px;
  background: rgba(139, 26, 43, 0.5);
  margin-top: 1.5rem;
}

.bars-desc, .bars-extended {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(245, 240, 235, 0.6);
}

.bars-extended { color: rgba(245, 240, 235, 0.4); margin-top: 1rem; }

.bars-links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.icon-external::after {
  content: ' \2197';
  font-size: 0.875em;
}

/* Gallery */
.gallery {
  padding: 8rem 0;
  background: var(--secondary);
}

@media (min-width: 1024px) { .gallery { padding: 10rem 0; } }

.gallery-head {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-desc {
  max-width: 32rem;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  color: rgba(245, 240, 235, 0.5);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.gallery-filter {
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  background: none;
  border: 1px solid var(--border);
  color: rgba(245, 240, 235, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-filter:hover {
  border-color: rgba(245, 240, 235, 0.3);
  color: var(--foreground);
}

.gallery-filter.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.gallery-grid {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) { .gallery-grid { column-count: 2; } }
@media (min-width: 1024px) { .gallery-grid { column-count: 3; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  display: none;
}

.gallery-item.visible { display: block; }

.gallery-item-inner {
  position: relative;
  overflow: hidden;
}

.gallery-item.tall .gallery-item-inner { aspect-ratio: 3 / 4; }
.gallery-item:not(.tall) .gallery-item-inner { aspect-ratio: 4 / 3; }

.gallery-item-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.gallery-item:hover .gallery-item-inner img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: background 0.5s, opacity 0.5s;
  opacity: 0;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(10, 10, 10, 0.3);
  opacity: 1;
}

.gallery-item-overlay p {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(245, 240, 235, 0.5);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.2s;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  color: var(--foreground);
}

.lightbox-close { right: 1.5rem; top: 1.5rem; font-size: 2.5rem; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-content {
  max-height: 85vh;
  max-width: 85vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-height: 85vh;
  width: auto;
  object-fit: contain;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.4);
}

/* Contacts */
.contacts {
  padding: 8rem 0;
}

@media (min-width: 1024px) { .contacts { padding: 10rem 0; } }

.contacts-head {
  text-align: center;
  margin-bottom: 5rem;
}

.contacts-desc {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  color: rgba(245, 240, 235, 0.5);
}

.contacts-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}

.contact-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  transition: border-color 0.5s;
}

@media (min-width: 1024px) {
  .contact-card { padding: 2.5rem; }
}

.contact-card:hover { border-color: rgba(139, 26, 43, 0.3); }

.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  margin: 0;
}

@media (min-width: 1024px) { .contact-card h3 { font-size: 1.875rem; } }

.contact-line {
  width: 2.5rem;
  height: 1px;
  background: rgba(139, 26, 43, 0.4);
  margin-top: 1.5rem;
}

.contact-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(245, 240, 235, 0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.contact-item:hover { color: var(--foreground); }

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  opacity: 0.6;
}

.icon-pin::before { content: '\25AE'; }
.icon-phone::before { content: '\260E'; }
.icon-globe::before { content: '\2691'; }
.icon-instagram::before { content: '@'; font-weight: 700; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--secondary);
  padding: 4rem 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand { text-align: center; }
@media (min-width: 768px) { .footer-brand { text-align: left; } }

.footer .logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--foreground);
}

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.3);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.4);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--foreground); }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.3);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--foreground); }

.footer-divider {
  margin-top: 3rem;
  height: 1px;
  width: 100%;
  background: rgba(38, 34, 32, 0.5);
}

.footer-copy {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(245, 240, 235, 0.2);
}

/* Login page */
.login-page { min-height: 100vh; background: var(--background); }

.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

@media (min-width: 1024px) { .login-wrap { padding: 0 2rem; } }

.login-back { padding-bottom: 0.5rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.4);
  transition: color 0.2s;
}

.back-link:hover { color: var(--foreground); }

.login-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.login-header { text-align: center; }

.login-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--foreground);
}

.login-line {
  width: 3rem;
  height: 1px;
  background: var(--primary);
  margin: 1.5rem auto 0;
}

.login-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  margin: 2rem 0 0;
}

@media (min-width: 640px) { .login-title { font-size: 2.25rem; } }

.login-desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(245, 240, 235, 0.4);
  line-height: 1.5;
}

.login-form-wrap { margin-top: 3rem; width: 100%; }

.login-form.hidden { display: none; }

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.5);
}

.login-form input {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s;
}

.login-form input::placeholder {
  color: rgba(245, 240, 235, 0.2);
}

.login-form input:focus {
  border-bottom-color: var(--primary);
}

.login-form #code {
  text-align: center;
  letter-spacing: 0.5em;
  font-size: 1.5rem;
}

.login-form .btn-block { margin-top: 1rem; }

.login-code-sent {
  font-size: 0.875rem;
  color: rgba(245, 240, 235, 0.4);
  margin-bottom: 1rem;
}

.login-change-number {
  display: block;
  margin-top: 1rem;
  width: 100%;
  background: none;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.3);
  cursor: pointer;
  transition: color 0.2s;
}

.login-change-number:hover { color: var(--foreground); }

.login-note {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(245, 240, 235, 0.2);
  line-height: 1.5;
}
