/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 11, 48, 0.1);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.header__logo img { height: 50px; width: auto; }
.header__nav { display: flex; gap: 24px; }
.header__nav a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  transition: color 0.2s;
}
.header__nav a:hover { color: #eb633d; }

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}
.header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: url('../img/cover.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(64, 26, 0, 0.75), rgba(6, 17, 31, 0.75));
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero__divider {
  width: 60px;
  height: 2px;
  background: #fff;
  margin: 0 auto 24px;
}
.hero p {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.95;
}

/* === Section Title === */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 48px;
}

/* === Projects === */
.projects {
  padding: 64px 0 80px;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.card__img {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card__body p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
  flex: 1;
}

/* Featured card (Avtarium) */
.card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  background: #0a0f1a;
  color: #fff;
  border: 1px solid rgba(56, 230, 180, 0.2);
}
.card--featured .card__img {
  flex: 0 0 55%;
  aspect-ratio: auto;
  max-height: 360px;
}
.card--featured .card__img img {
  object-fit: cover;
  object-position: top center;
}
.card--featured .card__body {
  padding: 32px;
  justify-content: center;
}
.card--featured .card__body h3 {
  font-size: 26px;
  margin-bottom: 12px;
  color: #fff;
}
.card--featured .card__body p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.card--featured:hover {
  border-color: rgba(56, 230, 180, 0.5);
  box-shadow: 0 8px 32px rgba(56, 230, 180, 0.1);
}

/* === Button === */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #eb633d;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.btn:hover { background: #d4522e; }
.btn--accent {
  background: #38e6b4;
  color: #0a0f1a;
}
.btn--accent:hover { background: #2ecda0; }
.btn--soon {
  background: #aaa;
  cursor: default;
}
.btn--soon:hover { background: #aaa; }

/* === Contacts === */
.contacts {
  padding: 48px 0 64px;
  background: #e9e9e9;
}
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contacts__line {
  font-size: 20px;
  margin-bottom: 8px;
}
.contacts__line a { color: #eb633d; }
.contacts__line a:hover { text-decoration: underline; }
.contacts__address {
  font-size: 16px;
  color: #555;
  margin-top: 12px;
  margin-bottom: 20px;
}
.contacts__social {
  display: flex;
  gap: 12px;
}
.contacts__social a { opacity: 0.7; transition: opacity 0.2s; }
.contacts__social a:hover { opacity: 1; }

/* Form */
.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contacts__form input,
.contacts__form textarea {
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: none;
  border-radius: 4px;
  background: #f2f2f2;
  color: #222;
  outline: none;
  transition: box-shadow 0.2s;
}
.contacts__form input:focus,
.contacts__form textarea:focus {
  box-shadow: 0 0 0 2px #eb633d;
}
.contacts__form textarea { resize: vertical; }
.contacts__form .btn { align-self: flex-start; }
.contacts__form-note {
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}

/* === Footer === */
.footer {
  background: #111;
  color: #fff;
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__inner p {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.5;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a { opacity: 0.7; transition: opacity 0.2s; }
.footer__social a:hover { opacity: 1; }

/* === Responsive === */
@media (max-width: 960px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .card--featured { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  .header__nav.open { display: flex; }
  .header__burger { display: flex; }

  .hero { min-height: 400px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }

  .projects__grid { grid-template-columns: 1fr; }
  .card--featured { flex-direction: column; }
  .card--featured .card__img {
    flex: none;
    aspect-ratio: 16 / 9;
    max-height: none;
  }
  .card--featured .card__body { padding: 24px; }
  .card--featured .card__body h3 { font-size: 22px; }

  .contacts__grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; text-align: center; }
}
