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

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f4f6f9;
  color: #222;
  line-height: 1.6;
}

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

header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header h1 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

nav a {
  color: #cfd8e3;
  text-decoration: none;
  margin: 0 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.25s ease;
  font-weight: 500;
  display: inline-block;
}

nav a:hover,
nav a.active {
  background: #e94560;
  color: #fff;
}

main {
  width: 100%;
  max-width: 950px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  color: #1a1a2e;
  margin-bottom: 18px;
  border-left: 5px solid #e94560;
  padding-left: 12px;
  font-size: 1.6rem;
}

section { margin-bottom: 32px; }

.hero p, section p { margin-bottom: 12px; }

ul { list-style: none; padding-left: 0; }

ul li {
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.profile {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  margin: 20px 0 30px;
  flex-wrap: wrap;
  overflow: hidden;
}

.profile-photo-wrap {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  border: 5px solid #e94560;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
}

.profile-text {
  flex: 1 1 280px;
  min-width: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  border-top: 4px solid #e94560;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.card h3 {
  color: #16213e;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card .fact {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #e94560;
  font-style: italic;
}

.car-photo-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #e9edf2;
}

.car-photo {
  width: 100%;
  height: 200px;
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.contact-info {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 30px;
}

.contact-info p { margin-bottom: 8px; }
.contact-info a { color: #e94560; }

form {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

form label {
  font-weight: 600;
  color: #16213e;
  font-size: 0.95rem;
}

form input,
form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #ccd4de;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #e94560;
}

form button {
  align-self: flex-start;
  background: #e94560;
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

form button:hover { background: #c72e48; }

footer {
  background: #1a1a2e;
  color: #a4b0be;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  header h1 { font-size: 1.4rem; }

  nav a {
    margin: 4px 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
  }

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

  .profile-photo-wrap {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .car-photo-wrap {
    height: 180px;
  }

  .car-photo {
    height: 180px;
    max-height: 180px;
  }
}
