* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #111;
  background: #e5e7eb;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* контейнер */
.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

/* header */
.header {
  background: #111827;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

nav a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 10px 8px;
}

nav a:hover {
  opacity: 0.8;
}

.contacts {
  text-align: right;
  font-size: 14px;
}

.hero {
  text-align: center;
  padding: 80px 20px 20px;
  background: linear-gradient(
    to bottom,
    #111827,
    #1e3a8a
  );
  color: white;
   display: flex;
  flex-direction: column;
  justify-content: space-between; 
    min-height: 180px;
  height: auto;
}



.hero h1 {
  font-size: 42px;
  font-weight: bold;
  color: white;
  text-align: center;
}

.hero nav {
  margin-top: 30px;
  text-align: center;
}

.hero p {
  margin-top: 10px; 
  font-size: 20px;
  opacity: 0.9;
}

/* услуги */
.services {
  padding: 30px 20px;
  text-align: center;
}

.services h2 {
  margin-bottom: 40px;
  font-size: 32px;
  color: #0f172a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* карточка */
.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
  will-change: transform;
}

.card h3 {
  color: #1e3a8a;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;

  margin: 0;
  padding: 22px 20px 26px;

  background: white;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-inner {
position: relative;
  aspect-ratio: 800 / 470;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    rgba(0,0,0,0.85),
    rgba(30,58,138,0.85)
  );
  color: white;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 20px;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-inner:hover .card-overlay {
  opacity: 1;
}

/* CTA */
.cta {
  background: #2563eb;
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.cta p {
  font-size: 20px;
  margin-bottom: 20px;
}

.cta a {
  display: inline-block;
  padding: 12px 30px;
  font-size: 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  background: #1d4ed8;
  transition: background 0.3s;
}

.cta a:hover {
  background: #1e40af;
}

/* footer */
.footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

/* Форма обратной связи */

.contact-form {
  background: white;
  color: #111;
  padding: 35px 40px 40px 40px;
  border-radius: 16px;
  margin: 40px auto 10px; 
  width: 90%;        
  max-width: 650px;  
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px; 
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 35px;
}

/* поля */
.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-family: Arial, sans-serif;
  font-size: 16px;
  width: 100%;
  transition: all 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1e3a8a;
  outline: none;
  box-shadow: 0 0 0 2px rgba(30,58,138,0.15);
}

/* кнопка */
.contact-form button {
  padding: 14px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 50%;
  margin: 10px auto 0;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30,58,138,0.3);
}

/* Блок "О разработчике" */
.about-developer {
  background: #f3f4f6;
  padding: 50px 0px;
  text-align: center;
}


.about-container {
  max-width: 800px;
  margin: auto;
}

/* текст */
.about-text h2 {
  color: #111;
  margin-bottom: 25px; 
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 0px 0 10px;
}

/* список */
.about-text ul {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.about-text ul li {
  margin: 8px 0;
}

.about-text ul:not(.contacts-list) li::before {
  content: "✔";
  color: #2563eb;
  margin-right: 8px;
}

.price-table {
  width: 100%;
  max-width: 800px;           
  margin: 40px auto;         
  border-collapse: collapse;
  font-size: 16px;            
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.price-table th {
  background: linear-gradient(180deg, #1e3a8a, #2563eb);
  color: white;
  text-align: center;   
  vertical-align: middle;
  padding: 25px 20px;       
  font-size: 18px;            
}

.price-table td {
  padding: 15px 15px;         
  border-bottom: 1px solid #e5e7eb;
  text-align: center;   
  vertical-align: middle; 
  font-size: 16px;            
  line-height: 1.8;          
}

.price-table tr:hover td {
  background: #f3f4f6;
}

/* эффект при наведении */
.price-table tr:hover td {
  background: #f3f4f6;
}

main {
  flex: 1;
}

.section-title {
  text-align: center;
  margin: 20px 0 40px;
}


.about-image {
  text-align: center;
  margin: 20px 0 15px; 
}

.about-image img {
  max-width: 750px;
  width: 100%;
  height: auto;
  border-radius: 16px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.contacts-list {
  list-style: none;  
  padding: 0;        
  margin: 0;
}

.about-text {
  text-align: center;
}

.about-page .contacts-list {
  margin-bottom: 20px;
}

.about-text p {
  margin: 15px 0;
  line-height: 1.6;
}

.about-image-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* серый фон поверх картинки */
.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* тёмно-серый оверлей */
  color: #bdbdbd;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 20px;
  text-align: center;

  border-radius: 16px;
}

.about-overlay h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.about-overlay .contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-overlay .contacts-list li {
  margin: 6px 0;
  font-size: 18px;
}

.disclaimer-wrapper {
  max-width: 780px;      
  margin: 5px auto 30px;  
}

.disclaimer {
  text-align: right;      
  font-size: 14px;
  font-family: FF Kava, Arial, sans-serif;
  color: #556;
  margin: 0;              
}

h1 {
  line-height: 1.4;
}

h1 span {
  display: block;
  font-size: 0.7em;
  font-weight: 700;
  opacity: 0.9;
}

#formStatus {
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
}

#formStatus.success {
  color: #16a34a; /* зелёный */
}

#formStatus.error {
  color: #dc2626; /* красный */
}




@media (max-width: 768px) {

  .hero {
    height: auto;
    padding: 60px 15px 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
    margin: 25px 0 15px;
  }


 .price-table,
  .price-table tbody,
  .price-table th,
  .price-table td,
  .price-table tr {
    display: block;
    width: 100%;
  }
  
  .price-table thead {
  display: none;
}

  .price-table thead {
    display: none; 
  }

  .price-table tr {
    margin-bottom: 15px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  }

  .price-table td {
    text-align: left;
    padding: 8px 0;
    border: none;
    font-size: 14px;
  }

  /* подписи к ячейкам */
  .price-table td:nth-child(1)::before {
    content: "Услуга: ";
    font-weight: bold;
    color: #1e3a8a;
  }

  .price-table td:nth-child(2)::before {
    content: "Цена: ";
    font-weight: bold;
    color: #1e3a8a;
  }

  .disclaimer-wrapper {
    padding: 0 15px;
  }

  .disclaimer {
    text-align: center;
    font-size: 12px;
  }
  .contact-form button {
    width: 100%;
  }
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}



.contact-form input[type="file"] {
  border: none;
}

.file-upload input[type="file"] {
  display: none;
}


.file-btn {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30,58,138,0.3);
}


#fileName {
  display: inline;
  margin-top: 0;
  font-size: 14px;
  color: #556;

}

.form-extra {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
}

.captcha-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: auto;
  margin: 0 auto;
  cursor: pointer;
}

.captcha-label span {
  white-space: nowrap;
}

.breadcrumbs {
  max-width: 1200px;
  margin: 15px auto;
  padding: 0 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.faq {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #111827;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1e3a8a;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}