* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1a2535;
  background: #dfe4ec;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #dfe4ec;
  z-index: 100;
}

.header-inner {
  max-width: 1580px;
  margin: 0 auto;
  padding: 10px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 28px;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left a,
.nav-right a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #1a2535;
  transition: opacity 0.2s;
}

.nav-left a:hover,
.nav-right a:hover {
  opacity: 0.5;
}

.logo {
  text-decoration: none;
  line-height: 0;
  justify-self: center;
}

.logo img {
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: 340px;
  display: block;
}

/* Hero */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-color: #6d82a0;
}

/* Carousel */
.carousel {
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 8px;
  transition: transform 0.5s ease;
  height: 75vh;
  align-items: stretch;
}

.carousel-photo {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Clickable side zones */
.carousel-zone {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 2;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}

.carousel-zone--left {
  left: 0;
  cursor: w-resize;
}

.carousel-zone--right {
  right: 0;
  cursor: e-resize;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 24px;
  color: #1a2535;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  user-select: none;
  line-height: 1;
}

.carousel-arrow--left {
  left: 24px;
}

.carousel-arrow--right {
  right: 24px;
}

.carousel:hover .carousel-arrow {
  opacity: 0.6;
}

/* Counter */
.carousel-counter {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3d5575;
}

/* Projects Page */
.projects {
  padding-top: 100px;
}

.projects-list {
  width: 80%;
  max-width: 1580px;
  margin: 0 auto;
}

.project-card {
  margin-bottom: 60px;
}

.project-info {
  margin-bottom: 16px;
}

.project-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.project-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3d5575;
}

/* Project gallery: main image + thumbs column */
.project-gallery {
  display: flex;
  gap: 10px;
}

.project-main {
  flex: 1;
  aspect-ratio: 16 / 10;
  transition: background-image 0.3s;
  position: relative;
  background-size: cover;
  background-position: center;
}

.main-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 12px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.project-main:hover .main-arrow {
  opacity: 0.7;
}

.main-arrow:hover {
  opacity: 1 !important;
}

.main-arrow--left {
  left: 12px;
}

.main-arrow--right {
  right: 12px;
}

.project-thumbs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 60px;
  flex-shrink: 0;
}

.thumb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 264px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
  background-size: cover;
  background-position: center;
}

.thumb:hover {
  opacity: 0.75;
}

.thumb.active {
  opacity: 1;
}

/* About Page */
.about {
  padding-top: 90px;
  background: #cdd5e0;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
}

.about-inner {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 60px 0;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-photo {
  width: 480px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  align-self: stretch;
}

.about-text {
  flex: 1;
}

.about-heading {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a2535;
  margin-bottom: 4px;
}

.about-subheading {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #3d5575;
  margin-bottom: 20px;
}

.about-divider {
  width: 100%;
  height: 1px;
  background: #6880a0;
  margin-bottom: 24px;
}

.about-body {
  font-size: 13px;
  line-height: 1.7;
  color: #2a3d55;
}

.about-body p {
  margin-bottom: 16px;
}

.about-body ul {
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}

.about-body li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 10px;
}

.about-body li::before {
  content: "\00b7";
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Contacts Page */
.contacts {
  padding-top: 90px;
  background: #cdd5e0;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts-inner {
  text-align: center;
}

.contacts-heading {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #1a2535;
  margin-bottom: 20px;
}

.contacts-divider {
  width: 60px;
  height: 1px;
  background: #6880a0;
  margin: 0 auto 32px;
}

.contacts-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts-line {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #2a3d55;
}

.contacts-line a {
  color: #2a3d55;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contacts-line a:hover {
  opacity: 0.5;
}

/* Footer */
footer {
  padding: 48px 20px;
  text-align: center;
  background: #dfe4ec;
}

footer p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 2;
  color: #3d5575;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
  }

  .logo {
    order: -1;
    flex-basis: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-left,
  .nav-right {
    gap: 16px;
  }

  .nav-left a,
  .nav-right a {
    font-size: 11px;
  }

  .about-inner {
    flex-direction: column;
    gap: 32px;
    padding: 40px 0;
  }

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

  /* Projects mobile */
  .projects-list {
    width: 92%;
  }

  .project-title {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .project-meta {
    font-size: 10px;
  }

  .project-info {
    margin-bottom: 10px;
  }

  .project-gallery {
    flex-direction: column;
    gap: 8px;
  }

  .project-main {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .project-thumbs {
    width: 100%;
    flex-direction: row;
  }

  .thumb-list {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    gap: 6px;
  }

  .thumb {
    width: 48px;
    height: 48px;
  }
}
