/* === Глобальні налаштування === */
:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-100: #f8f8fa;
  --gray-200: #e8e8ed;
  --gray-400: #9898a6;
  --gray-600: #525260;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --max-width: 1280px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Верхня панель === */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.top-bar .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.brand-icon {
  color: var(--primary);
}

.brand-name strong {
  font-weight: 900;
}

.menu-panel {
  display: flex;
  gap: 36px;
}

.menu-link {
  font-weight: 500;
  position: relative;
  transition: color 0.3s var(--ease);
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}

.menu-link:hover {
  color: var(--primary);
}

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

.menu-ctrl {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.menu-ctrl span,
.menu-ctrl span::before,
.menu-ctrl span::after {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: all 0.3s var(--ease);
}

.menu-ctrl span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-ctrl span::before {
  content: '';
  top: -10px;
}

.menu-ctrl span::after {
  content: '';
  top: 10px;
}

/* === Вступна секція === */
.intro-zone {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -1px;
}

.intro-headline em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-desc {
  font-size: 18px;
  color: var(--gray-600);
  margin: 0 0 32px;
}

.intro-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s var(--ease);
}

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

.action-btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.action-btn--outline {
  border: 2px solid var(--gray-200);
  background: var(--white);
}

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

.intro-img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* === Експертиза === */
.expertise-zone {
  padding: 80px 0;
  background: var(--white);
}

.zone-header {
  text-align: center;
  margin-bottom: 56px;
}

.zone-title {
  font-size: 40px;
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.zone-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  margin: 0;
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.expertise-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--gray-100);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
}

.expertise-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.expertise-icon {
  display: inline-flex;
  color: var(--primary);
  margin-bottom: 20px;
}

.expertise-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.expertise-info {
  color: var(--gray-600);
  margin: 0;
}

/* === Проекти === */
.projects-zone {
  padding: 80px 0;
  background: var(--gray-100);
}

.projects-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.project-tile {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.project-tile:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.project-preview img {
  width: 100%;
  aspect-ratio: 16/12;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.project-desc {
  color: var(--gray-600);
  font-size: 14px;
  margin: 0;
}

/* === Про нас === */
.about-zone {
  padding: 80px 0;
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-text {
  font-size: 17px;
  color: var(--gray-600);
  margin: 0 0 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.teammate {
  text-align: center;
  padding: 20px;
  background: var(--gray-100);
  border-radius: 12px;
}

.teammate-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  object-fit: cover;
}

.teammate-name {
  font-weight: 700;
  margin: 0 0 4px;
}

.teammate-role {
  font-size: 14px;
  color: var(--gray-400);
}

/* === Виділений проект === */
.highlight-zone {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 100%);
}

.highlight-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.highlight-label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.highlight-title {
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 16px;
}

.highlight-text {
  font-size: 17px;
  color: var(--gray-600);
  margin: 0 0 24px;
}

.highlight-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s var(--ease);
}

.highlight-link:hover {
  gap: 8px;
}

.highlight-visual img {
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* === Контакти === */
.connect-zone {
  padding: 80px 0;
  background: var(--white);
}

.connect-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.connect-text {
  font-size: 17px;
  color: var(--gray-600);
  margin: 16px 0 32px;
}

.connect-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel {
  display: flex;
  gap: 8px;
}

.channel a {
  color: var(--primary);
  text-decoration: underline;
}

.connect-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s var(--ease);
}

.form-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-submit {
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* === Нижня панель === */
.bottom-bar {
  padding: 32px 0;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
}

.bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.bottom-links {
  display: flex;
  gap: 32px;
}

.bottom-links a {
  color: var(--gray-600);
  transition: color 0.3s var(--ease);
}

.bottom-links a:hover {
  color: var(--primary);
}

/* === Адаптивність === */
@media (max-width: 768px) {
  .menu-panel {
    display: none;
  }
  
  .menu-ctrl {
    display: block;
  }
  
  .menu-ctrl.active span {
    background: transparent;
  }
  
  .menu-ctrl.active span::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .menu-ctrl.active span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  
  .menu-panel.active {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .intro-content,
  .highlight-content,
  .connect-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .bottom-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}