/* ========================================
   Анна Додохова — Фуд-фотограф
   Modern Static HTML/CSS/JS
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --sidebar-width: 280px;
  --color-bg-primary: #e6e6e6;
  --color-bg-white: #ffffff;
  --color-bg-light: #f8f8f8;
  --color-accent: #1473bc;
  --color-accent-hover: #0d5a96;
  --color-dark: #1a1a1a;
  --color-text-primary: rgba(0,0,0,0.85);
  --color-text-secondary: rgba(0,0,0,0.5);
  --color-text-muted: rgba(0,0,0,0.35);
  --color-border: rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { color: #fff; background: var(--color-accent); }

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-bg-primary);
  z-index: 999;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  transition: transform 0.5s ease;
}

.sidebar-logo { margin-bottom: 40px; }
.sidebar-logo a { text-decoration: none; color: var(--color-dark); display: block; }
.sidebar-logo h1 {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-dark);
}
.sidebar-logo span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: block;
}

.sidebar-nav { flex: 1; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav > ul > li { margin-bottom: 2px; position: relative; }

.nav-link {
  display: inline-block;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover { color: var(--color-dark); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--color-accent); }
.nav-link.active::after { width: 100%; }

.nav-link.with-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-link .arrow {
  transition: transform 0.3s ease;
  font-size: 10px;
}
.nav-link.open .arrow { transform: rotate(180deg); }

/* Dropdown menus */
.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding-left: 16px;
}

.dropdown-menu.open {
  max-height: none;
  opacity: 1;
}

.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.dropdown-menu a:hover { color: var(--color-accent); }

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.sidebar-footer a:hover { color: var(--color-accent); }
.sidebar-footer a svg { width: 14px; height: 14px; }

.sidebar-footer .copyright {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* ---- Main Content ---- */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* ---- Mobile Toggle ---- */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  transition: all 0.3s ease;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 200;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-content .subtitle {
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-content .description {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-cta {
  margin-top: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.5s ease;
}

.hero-cta a:hover {
  background: white;
  color: var(--color-dark);
}

.hero-cta a svg { width: 16px; height: 16px; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator .dot {
  width: 4px;
  height: 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: pulse 1.5s infinite;
}

/* ---- Sections ---- */
.section { padding: 96px 32px; }
.section-light { background: var(--color-bg-light); }
.section-white { background: var(--color-bg-white); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 14px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-portrait {
  display: flex;
  justify-content: center;
}

.about-portrait img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-text h3 {
  font-size: 32px;
  font-weight: 300;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.about-text .role {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text strong { color: var(--color-dark); }

.about-text .education {
  margin-bottom: 8px;
}

.about-bottom {
  max-width: 700px;
  margin: 48px auto 0;
  text-align: center;
  line-height: 1.7;
}

.about-bottom strong { color: var(--color-dark); }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  padding: 40px 32px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.5s ease, transform 0.4s ease;
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20,115,188,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.3s;
}

.service-card:hover .service-icon { background: rgba(20,115,188,0.2); }

.service-icon svg { width: 24px; height: 24px; color: var(--color-accent); }

.service-card h3 {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
}

/* ---- Masonry Gallery ---- */
.masonry {
  display: flex;
  gap: 12px;
}

.masonry-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.5); }

.gallery-overlay-content {
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay-content {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay-content h4 {
  color: white;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.gallery-overlay-content span {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
}

/* ---- Clients Grid ---- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.client-card {
  background: white;
  padding: 20px 12px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.client-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.client-card svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin: 0 auto 8px;
  display: block;
}

.client-card span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
}

/* ---- Directions Grid ---- */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.direction-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  display: block;
  text-decoration: none;
}

.direction-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.direction-card:hover img { transform: scale(1.1); }

.direction-card .dir-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  transition: background 0.3s;
}

.direction-card:hover .dir-overlay { background: rgba(0,0,0,0.6); }

.direction-card h4 {
  color: white;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.direction-card p {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-item {
  text-align: center;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20,115,188,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-icon svg { width: 24px; height: 24px; color: var(--color-accent); }

.contact-item h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.contact-item a, .contact-item p {
  font-size: 15px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.contact-note {
  max-width: 700px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

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

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 8px;
  z-index: 10;
  transition: color 0.3s;
}

.lightbox-close:hover { color: white; }

.lightbox-close svg { width: 28px; height: 28px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 16px;
  z-index: 10;
  transition: color 0.3s;
}

.lightbox-nav:hover { color: white; }
.lightbox-nav svg { width: 36px; height: 36px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.lightbox-info {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
}

.lightbox-info h4 {
  font-size: 16px;
  font-weight: 300;
}

.lightbox-info span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- Page Header (for client/direction pages) ---- */
.page-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--color-border);
}

.page-header a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.page-header a:hover { color: var(--color-accent); }

.page-header a svg { width: 16px; height: 16px; }

.page-title {
  padding: 64px 32px 32px;
  text-align: center;
}

.page-title h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  color: var(--color-dark);
}

.page-title p {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ---- Footer ---- */
.site-footer {
  padding: 24px;
  background: var(--color-bg-primary);
  text-align: center;
}

.site-footer p {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Keyframes ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-toggle { display: flex; }
  .mobile-overlay.active { display: block; }
  .main-content { margin-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait img { width: 220px; height: 220px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 64px 24px; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .directions-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .masonry { flex-direction: column; }
  .hero-content h1 { font-size: 36px; }
  .about-portrait img { width: 180px; height: 180px; }
  .section { padding: 48px 16px; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
