* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f5;
}

header {
  background-color: #231c1a;
  height: 80px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
  color: white;
  position: absolute;
  left: 120px;
  top: 0;
  line-height: 80px;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  letter-spacing: 1px;
}

header li {
  display: inline;
  margin-right: 4vw;
  position: relative;
}

header ul {
  position: absolute;
  right: 5vw;
  top: 0;
  line-height: 80px;
}

header a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
}

header a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

main {
  flex: 1;
  margin-top: 80px;
}

.news {
  color: white;
  height: calc(100vh - 80px); 
  min-height: calc(100vh - 80px);
  background-image: url("rest.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-bottom: 60px; 
}

.news::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

.news h2,
.news p {
  position: relative;
  z-index: 1;
  text-align: center;
}

.news h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 auto 1.5rem;
  max-width: 800px;
  background: linear-gradient(to right, #f5d393, #f8f8f8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textGlow 2s ease-in-out infinite alternate;
  padding: 0 20px;
}

.news p {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border-left: 3px solid #f5d393;
  max-width: 90%;
  margin: 0 auto;
}

footer {
  background-color: #1a1a1a;
  color: white;
  padding: 1rem 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.footer-content {
  text-align: center;
  width: 100%;
}

footer p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

footer a {
  color: #f5d393;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 5px rgba(245, 211, 147, 0.5);
  }
  to {
    text-shadow: 0 0 15px rgba(245, 211, 147, 0.8),
                 0 0 20px rgba(245, 211, 147, 0.6);
  }
}

@media (max-width: 992px) {
  h1 {
    left: 60px;
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  h1 {
    left: 30px;
    font-size: 1.5rem;
  }

  .news {
    height: calc(100vh - 120px);
    min-height: calc(100vh - 120px);
  }

  .news h2 {
    white-space: normal;
    padding: 0 15px;
  }

  .news p {
    white-space: normal;
    padding: 0.8rem 1.5rem;
  }

  header ul {
    right: 3vw;
  }

  header li {
    margin-right: 3vw;
  }

  footer {
    height: 70px;
    padding: 0.5rem 0;
  }
}

@media (max-width: 576px) {
  h1 {
    left: 20px;
    font-size: 1.3rem;
  }

  header ul {
    right: 2vw;
  }

  header li {
    margin-right: 2vw;
    font-size: 0.9rem;
  }

  .news {
    padding: 1rem;
  }

  .news p {
    border-left-width: 2px;
  }
}

.recipe-page .recipe-container {
  max-width: 900px;
  margin: 100px auto 80px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.recipe-page .recipe-images {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.recipe-page .recipe-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.recipe-page .recipe-img:hover {
  transform: scale(1.03);
}

.recipe-page .method-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin: 15px auto;
  display: block;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  border: 3px solid white;
  transition: all 0.3s ease;
}

.recipe-page .method-img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.recipe-page .recipe-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #231c1a;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f5d393;
  padding-bottom: 10px;
}

.recipe-page .recipe-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

.recipe-page .recipe-details {
  background: rgba(245, 211, 147, 0.15);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.recipe-page .recipe-details p {
  margin: 8px 0;
  display: flex;
}

.recipe-page .recipe-details strong {
  width: 100px;
  color: #d4a849;
}

.recipe-page .ingredient-list {
  columns: 2;
  column-gap: 30px;
  margin: 20px 0;
}

.recipe-page .ingredient-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  break-inside: avoid;
}

.recipe-page .ingredient-list span {
  display: inline-block;
  width: 80px;
  color: #d4a849;
  font-weight: 600;
}

.recipe-page .method-step {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.recipe-page .method-step h3 {
  color: #231c1a;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.recipe-page .method-step h3::before {
  content: "•";
  color: #f5d393;
  margin-right: 10px;
  font-size: 1.8rem;
}

.recipe-page .method-step p {
  line-height: 1.7;
  color: #444;
}

.recipe-page .print-btn {
  display: block;
  margin: 40px auto 20px;
  padding: 12px 25px;
  background: #f5d393;
  color: #231c1a;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.recipe-page .print-btn:hover {
  background: #e5c383;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .recipe-page .recipe-container {
    margin: 80px 15px 70px;
    padding: 20px;
  }
  
  .recipe-page .ingredient-list {
    columns: 1;
  }
  
  .recipe-page .recipe-img,
  .recipe-page .method-img {
    width: 140px;
    height: 140px;
  }
  
  .recipe-page .recipe-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .recipe-page .recipe-images {
    flex-direction: column;
  }
  
  .recipe-page .recipe-img {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
}

.form-page main {
  max-width: 800px;
  margin: 100px auto 80px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-page h2 {
  font-family: 'Playfair Display', serif;
  color: #231c1a;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f5d393;
  padding-bottom: 0.5rem;
}

.recipe-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #231c1a;
}

.form-input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #f5d393;
  box-shadow: 0 0 0 3px rgba(245, 211, 147, 0.2);
  outline: none;
}

.ingredients-group {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  gap: 10px;
}

.method-steps {
  counter-reset: step-counter;
}

.method-step {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 35px;
}

.method-step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  background: #f5d393;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 25px;
  font-weight: bold;
}

.submit-btn {
  background: #f5d393;
  color: #231c1a;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background: #e5c383;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .form-page main {
    margin: 80px 15px 70px;
    padding: 20px;
  }

  .ingredients-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .form-input {
    padding: 0.6rem;
  }
  
  .submit-btn {
    width: 100%;
    padding: 0.8rem;
  }
}

.qa-page {
  padding: 100px 20px 80px;
  background-color: #f5f5f5;
}

.qa-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.qa-container h2 {
  font-family: 'Playfair Display', serif;
  color: #231c1a;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f5d393;
  padding-bottom: 0.5rem;
  font-size: 2rem;
}

.qa-item {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.qa-item:last-child {
  border-bottom: none;
}

.qa-item h3 {
  color: #231c1a;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.qa-answer {
  line-height: 1.6;
  color: #555;
}

.qa-answer h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #d4a849;
  margin: 1.5rem 0 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

table, th, td {
  border: 1px solid #e0e0e0;
}

th, td {
  padding: 12px;
  text-align: left;
}

th {
  background-color: rgba(245, 211, 147, 0.2);
}

ul, ol {
  margin: 1rem 0 1rem 2rem;
}

li {
  margin-bottom: 0.5rem;
}

pre {
  background-color: #f8f8f8;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
  border-left: 3px solid #f5d393;
}

.ide-evaluation {
  background-color: rgba(245, 211, 147, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.ide-evaluation h4 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .qa-page {
    padding: 80px 15px 70px;
  }
  
  .qa-container {
    padding: 25px;
  }
  
  .qa-container h2 {
    font-size: 1.8rem;
  }
  
  table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .qa-item h3 {
    font-size: 1.2rem;
  }
}

.news-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.news-heading h2 {
  margin: 0;
  line-height: 1.2;
}

@media print {
  body {
    font-size: 10pt !important;
    line-height: 1.2 !important;
    color: #000 !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header, nav, footer, 
  .recipe-images, 
  .print-btn {
    display: none !important;
  }

  .recipe-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 5mm !important;
    box-shadow: none !important;
    border: none !important;
  }

  .ingredient-list {
    columns: 2 !important;
    column-gap: 5mm !important;
    font-size: 9pt !important;
    margin: 0 0 5mm 0 !important;
  }

  .ingredient-list li {
    padding: 1px 0 !important;
    break-inside: avoid;
    border-bottom: none !important;
  }

  .ingredient-list span {
    width: 20mm !important;
  }

  .method-step {
    margin-bottom: 4mm !important;
    padding-bottom: 2mm !important;
    page-break-inside: avoid;
  }

  .method-step h3 {
    font-size: 10pt !important;
    margin-bottom: 2mm !important;
  }

  .method-step p {
    font-size: 9pt !important;
    line-height: 1.15 !important;
    margin-bottom: 2mm !important;
  }

  .method-img {
    max-width: 60mm !important;
    height: auto !important;
    margin: 2mm auto !important;
  }

  .recipe-meta {
    margin-bottom: 5mm !important;
  }

  .recipe-title {
    font-size: 14pt !important;
    margin-bottom: 3mm !important;
  }

  .recipe-description {
    font-size: 9pt !important;
    margin-bottom: 4mm !important;
  }

  .recipe-details {
    padding: 3mm !important;
    margin-bottom: 5mm !important;
    border: 0.5pt solid #ddd !important;
    background: none !important;
  }

  @page {
    size: A4;
    margin: 10mm 15mm;
  }

  .method {
    padding-top: 5mm;
  }
}