/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'Woodstick';
  src: url('./fonts/Woodstick.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sangha';
  src: url('./fonts/Sangha.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --background-light: #ecf0f1;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #8fa4f3 0%, #9d7bb8 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  scroll-behavior: smooth;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Навигация */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--primary-color);
  text-decoration: none;
  font-family: 'Sangha', 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

.nav-logo {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
  z-index: 1001;
  position: relative;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}

.nav-toggle:hover {
  transform: scale(1.05);
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
  position: relative;
}

/* Главная секция */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 10;
  position: relative;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  margin-bottom: 2rem;
  animation: logoFloat 3s ease-in-out infinite;
}

.animated-logo {
  width: 133px;
  height: 133px;
  filter: brightness(0) invert(1);
  animation: logoPulse 2s ease-in-out infinite alternate;
  transition: var(--transition);
}

.animated-logo:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

/* Modern fade-up animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Additional hero content animations */
.hero-content > * {
  animation-fill-mode: both;
}

.hero-buttons .btn {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Typewriter effect */
@keyframes typewriterReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes blinkCursor {
  from,
  to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes removeCursor {
  to {
    opacity: 0;
  }
}

.typewriter {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  animation: typewriterReveal 2s steps(20, end) 1.5s forwards;
  clip-path: inset(0 100% 0 0);
}

.typewriter::after {
  content: '|';
  color: #ffffff;
  animation: blinkCursor 1s infinite 1.5s, removeCursor 0s 3.5s forwards;
  position: absolute;
  right: -2px;
}

.hero-title {
  margin-bottom: 2rem;
}

.brand-name {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.04em;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga' 1, 'kern' 1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.brand-furni {
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.brand-master {
  color: #ff867a;
  filter: drop-shadow(0 2px 4px rgba(255, 134, 122, 0.3));
}

.hero-tagline {
  margin-top: 2rem;
}

.tagline {
  display: block;
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.8;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.02em;
  font-style: italic;
  color: #ffffff;
}

.hero-description {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  line-height: 1.4;
  font-weight: 600;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

/* Секции */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Услуги */
.services {
  background: var(--background-light);
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  border: 1px solid transparent;
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #ff867a);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(231, 76, 60, 0.05),
    rgba(255, 134, 122, 0.03)
  );
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 0;
}

.service-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-photo {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.05);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 2rem 1rem;
  color: var(--primary-color);
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.service-card:hover h3 {
  color: var(--accent-color);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0 2rem 2rem;
}

/* Каталог */
.catalog-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.category-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 1.5rem 1rem;
  color: var(--primary-color);
}

.category-card p {
  color: var(--text-light);
  margin: 0 1.5rem 1rem;
  line-height: 1.6;
}

.category-stats {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--background-light);
}

.category-stats span {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* О нас */
.about {
  background: var(--background-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.about-description p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff867a;
  display: block;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

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

.about-workshop-photo {
  width: 600px;
  height: 600px;
  border-radius: var(--border-radius);
  object-fit: cover;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.about-workshop-photo:hover {
  transform: scale(1.02);
}

/* Контакты */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

.contact-item:hover {
  background: rgba(143, 164, 243, 0.05);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 0 -1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details {
  text-align: left;
  width: 100%;
  flex: 1;
}

.contact-details h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  overflow: visible;
  line-height: 1.8;
}

.contact-details h3 i {
  color: #ff867a;
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 2;
  width: 22px;
  margin-right: 0.3rem;
}

.contact-details p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.contact-details a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--background-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Футер */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: normal;
  margin-bottom: 1rem;
  font-family: 'Sangha', 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.01em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  filter: brightness(0) invert(1);
}

.footer-section p {
  margin-bottom: 1rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

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

.social-links a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.4rem;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.85rem;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes logoPulse {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

/* Адаптивность */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-text .section-header {
    text-align: center;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 249, 250, 0.98) 100%
    );
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: none;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--accent-color);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--accent-color);
  }

  .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-logo {
    width: 35px;
    height: 35px;
  }

  .animated-logo {
    width: 150px;
    height: 150px;
  }

  .brand-name {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-grid,
  .catalog-categories {
    grid-template-columns: 1fr;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    justify-content: center;
    gap: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    width: 30px;
    height: 30px;
  }

  .animated-logo {
    width: 120px;
    height: 120px;
  }

  .brand-name {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .about-stats {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .stat-item {
    min-width: 100px;
    flex: 1;
  }

  .about-text {
    text-align: center;
  }

  .about-text .section-header {
    text-align: center;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .about-workshop-photo {
    width: 100%;
    height: 250px;
  }

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

  .footer-section {
    align-items: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    gap: 1rem;
  }

  .contact-item {
    padding: 0.8rem 0;
  }

  .contact-item:hover {
    margin: 0 -0.5rem;
    padding: 0.8rem 0.5rem;
  }
}
