/* ====== БАЗА ====== */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --accent: #2B5FE0;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.35s;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  font-size: 16px;
  position: relative;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(43, 95, 224, 0.01) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 500; }

p {
  margin: 0 0 1rem 0;
}

/* ====== LINKS & BUTTONS ====== */
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

a:hover {
  border-color: currentColor;
}

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), 
              background var(--dur) var(--ease), 
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--gray-50);
  border-color: var(--gray-400);
  border-bottom: 1px solid var(--gray-400);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  border-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.button-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.button-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-color: #1d4ed8;
  color: white;
  box-shadow: var(--shadow-lg);
}

.button-primary:hover::before {
  left: 100%;
}

/* ====== HEADER ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  margin-top: 0.5rem;
  list-style: none;
  z-index: 1001;
}

.nav-menu.active {
  display: block;
}

.nav-menu li {
  margin: 0;
}

.nav-menu li + li {
  margin-top: 0.5rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: block;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--gray-50);
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--dur) var(--ease);
}

.mobile-menu-toggle:hover {
  background: var(--gray-50);
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: all var(--dur) var(--ease);
  border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.lang-toggle {
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.lang-toggle:hover {
  background: var(--gray-50);
  border-color: var(--accent);
  color: var(--accent);
}

/* ====== SECTIONS ====== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
}

.subsection-title {
  margin-bottom: 2rem;
  color: var(--gray-700);
}

/* ====== HERO SECTION ====== */
.hero-section {
  padding: 8rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.hero-text {
  opacity: 0;
  transform: translateY(20px);
}

.hero-photo {
  opacity: 0;
  transform: translateY(20px);
  order: -1;
}

.hero.is-mounted .hero-text {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease) 0.1s, 
              transform 0.6s var(--ease) 0.1s;
}

.hero.is-mounted .hero-photo {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease) 0.3s, 
              transform 0.6s var(--ease) 0.3s;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-descriptor {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-photo {
  position: relative;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.hero-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

/* ====== DIVIDERS ====== */
.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-200) 20%, var(--gray-300) 50%, var(--gray-200) 80%, transparent 100%);
  margin: 0;
  border: none;
  position: relative;
}

.hr::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.2;
}

/* ====== ANIMATIONS ====== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-20px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(20px);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ====== CARDS ====== */
.card {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.5rem;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  opacity: 1;
}

/* ====== PROJECTS GRID ====== */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

/* Interactive Project Cards */
.interactive-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.interactive-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(43, 95, 224, 0.15);
  transform: translateY(-4px);
}

/* Project Header - Always Visible */
.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  transition: padding 0.4s ease;
}

.project-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  transition: color 0.3s ease;
}

.interactive-card:hover .project-title {
  color: var(--accent);
}

/* Project Details - Hidden by Default, Shown on Hover */
.project-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.4s ease;
  padding: 0 1.5rem;
}

.interactive-card:hover .project-details {
  max-height: 160px;
  opacity: 1;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.project-description {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.project-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.project-link svg {
  transition: transform 0.2s ease;
}

.project-link:hover svg {
  transform: translateX(2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .projects-grid {
    gap: 0.75rem;
  }
  
  .project-header {
    padding: 1.25rem;
  }
  
  .interactive-card:hover .project-details {
    padding: 0 1.25rem 1rem 1.25rem;
  }
  
  .project-logo {
    width: 40px;
    height: 40px;
  }
  
  .project-title {
    font-size: 1rem;
  }
  
  .project-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .project-link {
    justify-content: center;
  }
}

/* ====== IDENTITY GRID ====== */
.identity-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.identity-card {
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.identity-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
}

.identity-card:hover .identity-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--accent), #60a5fa);
}

.identity-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.identity-content p {
  margin: 0;
  color: var(--gray-600);
}

/* ====== WORK TOGETHER ====== */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.work-cta {
  text-align: center;
}

/* ====== ACCORDION ====== */
.accordion {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-summary {
  padding: 1rem;
  background: var(--gray-50);
  cursor: pointer;
  font-weight: 500;
  border: none;
  outline: none;
}

.accordion-summary:hover {
  background: var(--gray-100);
}

.accordion-content {
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
}

.accordion-content ul {
  margin: 0;
  padding-left: 1.5rem;
}

.accordion-content li {
  margin-bottom: 0.5rem;
}

/* ====== MATERIALS ====== */
.materials-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.material-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  position: relative;
}

.material-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height var(--dur) var(--ease);
  border-radius: 0 2px 2px 0;
}

.material-item:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.material-item:hover::after {
  height: 100%;
}

.material-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.material-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.material-title a {
  border: none;
}

.material-title a:hover {
  color: var(--accent);
}

.material-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  flex-shrink: 0;
}

.material-description {
  color: var(--gray-600);
  margin: 0;
}

.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.material-tag {
  padding: 0.25rem 0.5rem;
  background: var(--gray-100);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ====== MATERIALS BLOCKS ====== */
.featured-block {
  margin-bottom: 3rem;
}

.block-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  color: var(--gray-700);
}

.important-block-title {
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 0 1.5rem 0;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: lowercase;
}

.important-block-title::before {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12l-7 7-7-7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* Important Materials List */
.important-materials-grid {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
}

.important-material-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--dur) var(--ease);
}

.important-material-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.important-material-item:hover .material-title {
  color: var(--accent);
}

/* Recent Materials List */
.recent-block {
  margin-bottom: 3rem;
}

.recent-materials-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-material-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--dur) var(--ease);
}

.recent-material-item:last-child {
  border-bottom: none;
}

.recent-material-item:hover {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 1rem;
  margin: 0 -1rem;
}

/* Simple material styles for both blocks */
.simple-material-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.simple-material-title a {
  color: inherit;
  border: none;
  text-decoration: none;
}

.simple-material-title a:hover {
  color: var(--accent);
}

.simple-material-date {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

/* ====== CAROUSEL ====== */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.carousel-item {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.carousel-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 768px) {
  .carousel-item img {
    height: 400px;
  }
}

/* Remove carousel section padding - no arrows needed */

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 20px 1.5rem 1.5rem; /* 20mm from top, sides and bottom padding */
}

.carousel-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.carousel-description {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

.carousel-btn {
  display: none; /* Hide arrow buttons completely */
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border: none;
  padding: 0;
  display: block;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: var(--gray-500);
  transform: scale(1.1);
}

/* Modal for carousel content */
.carousel-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.carousel-modal.active {
  display: flex;
}

.carousel-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
}

.carousel-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--dur) var(--ease);
}

.carousel-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.carousel-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-article-content {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.materials-cta {
  text-align: center;
}

/* ====== CONTACTS ====== */
.contacts-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  border: none;
}

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

.contact-icon {
  font-size: 1.25rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-disclaimer {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

/* ====== LIBRARY PAGE ====== */
.library-main {
  padding-top: 6rem;
  min-height: calc(100vh - 6rem);
}

.library-header {
  text-align: center;
  margin-bottom: 3rem;
}

.library-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.library-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
}

/* ====== FILTERS ====== */
.filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.preset-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 25px;
  background: white;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.preset-btn:hover,
.preset-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--gray-200);
  padding: 2rem 0;
  background: var(--gray-50);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.3;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-600);
  border: none;
}

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

.footer-copyright {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 6rem 0 3rem;
  }
  
  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .contact-actions .button {
    width: 100%;
  }
  
  .filter-presets {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-descriptor {
    font-size: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .library-title {
    font-size: 2rem;
  }
  
  .material-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .reveal,
  .hero-text,
  .hero-photo {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ====== PRINT STYLES ====== */
@media print {
  .header,
  .footer,
  .hero-buttons,
  .contact-actions,
  .filters,
  .filter-presets {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero-section {
    padding: 0;
    min-height: auto;
  }
  
  .section {
    padding: 1rem 0;
  }
}
