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

body {
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
  background: #f8f4ef;
  color: #2e241f;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #3a2c26;
  color: #efe6dc;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  color: #efe6dc;
  text-decoration: none;
}

.logo span {
  font-size: 2.2rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

nav a {
  color: #d6cbc1;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: 0.25s ease;
  letter-spacing: 0.3px;
}

nav a:hover {
  color: #fff3e6;
  border-bottom-color: #b58a6b;
}

nav a.active {
  color: #fff3e6;
  border-bottom-color: #d9b08c;
  font-weight: 600;
}

.container {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem 3rem;
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 1.8rem;
}

.card {
  background: white;
  border-radius: 28px;
  padding: 1.8rem 1.5rem 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #eee5dd;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(80, 50, 30, 0.08);
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #3a2c26;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #3a2c26;
}

.card .sub {
  font-size: 0.9rem;
  color: #8b7a6e;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card p {
  color: #3f332c;
  margin-bottom: 0.4rem;
}

.badge {
  display: inline-block;
  background: #e6dbd1;
  padding: 0.2rem 0.9rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #3f2c20;
  margin-top: 0.5rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: #d9b08c;
  margin: 0.7rem 0 1.2rem;
  border-radius: 10px;
}

.lead {
  font-size: 1.2rem;
  max-width: 700px;
  color: #4f3d33;
}

.history-block {
  background: #fffcf9;
  border-radius: 40px;
  padding: 2rem 2.5rem;
  margin: 2rem 0 1rem;
  border-left: 8px solid #b58a6b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.history-block p {
  margin-bottom: 1rem;
}

.history-block strong {
  color: #3a2c26;
}

.master-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.master-item {
  background: white;
  border-radius: 60px;
  padding: 0.8rem 1.8rem 0.8rem 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e4d7cd;
  transition: 0.15s;
}

.master-item:hover {
  background: #fcf6f0;
  border-color: #cbb3a2;
}

.master-name {
  font-weight: 600;
  font-size: 1.2rem;
}

.master-years {
  color: #7b685a;
  font-size: 0.95rem;
}

.master-city {
  background: #ede5dc;
  padding: 0.2rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  color: #3f2e22;
}

footer {
  background: #e7ddd3;
  color: #3f322a;
  text-align: center;
  padding: 1.8rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid #d6c5b8;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

footer span {
  opacity: 0.7;
}

.quote-box {
  margin-top: 3rem;
  background: #f0e7df;
  border-radius: 60px;
  padding: 1.8rem 2.2rem;
  border: 1px solid #dccfc3;
}

.quote-box p {
  font-size: 1.2rem;
  font-style: italic;
  color: #2e241f;
}

.quote-box .author {
  margin-top: 0.5rem;
  color: #5c473a;
  font-style: normal;
}

.info-box {
  margin-top: 2.5rem;
  background: #e2d5ca;
  border-radius: 50px;
  padding: 1.2rem 2rem;
  color: #2a1f1a;
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 1rem 2rem;
  }

  .history-block {
    padding: 1.5rem;
  }

  .master-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    border-radius: 30px;
    padding: 1.2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 1rem;
    padding: 0.3rem 0.4rem;
  }
}