/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

header {
  background: #222;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

header p {
  font-size: 1.1rem;
  color: #ccc;
}

nav {
  margin: 15px 0;
}

nav a {
  text-decoration: none;
  color: #fff;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #aaa;
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.about, .contact {
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.product {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product img {
  width: 100%;
  display: block;
}

.product h3 {
  padding: 10px;
  font-size: 1.2rem;
}

.product p {
  padding: 0 10px 10px;
  font-size: 0.95rem;
  color: #555;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  background: #f4f4f4;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.philosophy {
  max-width: 700px;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.philosophy::before,
.philosophy::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #111;
  margin: 25px auto;
}

.philosophy article p {
  margin-bottom: 15px;
  color: #444;
}

.social-buttons {
  margin-top: 20px;
}

.btn {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  background: #222;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.btn:hover {
  background: #444;
}

.catalog {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: #111;
  border-bottom: 1px solid #e5e5e5;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo a {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

.nav a {
  text-decoration: none;
  margin-left: 30px;
  color: #ccc;
  font-weight: 500;
  transition: 0.2s;
}

.nav a:hover {
  color: #fff;
}

.catalog {
  padding: 80px 0;
}

.catalog-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 60px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
}

.catalog-card {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 30px;
  transition: 0.3s;
}

.catalog-card:hover {
  transform: translateY(-5px);
}

.catalog-image {
  width: 100%;
  height: 260px;
  background: #f2f2f2;
  margin-bottom: 20px;
}

.catalog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.catalog-content p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.catalog-btn {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  position: relative;
}

.catalog-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #111;
  transition: 0.3s;
}

.catalog-btn:hover::after {
  width: 50%;
}

.catalog-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
