*{
    box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  --color-bg: white;
  --color-box: white;
  --color-text: black;
}
body.theme-dark {
  --color-bg: #0b0b0b;
  --color-fg: #f5f5f5;
  --color-muted: #aaa;
  --color-primary: #6aa2ff;
  --color-box: #0c0c29;
  --color-text: white;
}
.bg-video {
  width: 100%;
  height: auto;
  z-index: -1;
  position:  fixed;
  left:0;
  right: 0;
  top:0;
  bottom:0;
}
.page-container {
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-bg);
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "header"
    "nav"
    "main"
    "footer";
}
.logo {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  text-align: center;
  padding: 30px;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  grid-area: header;
}
.nav {
  background: #0869ca;
  padding: 20px 0;
  grid-area: nav;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
}
.nav-item {
  margin: 0;
}
.nav-link {
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
main.content {
  padding: 40px;
  min-width: 800px;
  max-width: 900px;
  margin: 0 auto;
  grid-area: main;
}
.about {
  text-align: center;
  margin-bottom: 40px;
}
.profile-title {
  font-size: 32px;
  color: var(--color-text);
  margin-bottom: 10px;
  font-weight: 300;
}
.profile-photo {
  width: 220px;
  height: 280px;
  border-radius: 15px;
  object-fit: cover;
  margin: 20px auto;
  border: 4px solid #667eea;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.profile-name {
  font-size: 24px;
  color: var(--color-text);
  margin: 10px 0;
  font-weight: 500;
}
.profile-group {
  font-size: 18px;
  color: var(--color-text);
  margin: 5px 0;
}
.about-me {
  background: linear-gradient(135deg, var(--color-box) 0%, #007af3 100%);
  padding: 25px;
  border-radius: 15px;
  margin: 30px 0;
  color: var(--color-text);
  border-left: 5px solid #667eea;
  font-size: 16px;
  line-height: 1.8;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px;
}
.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
}
.skill-tag {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
  transition: all 0.3s ease;
}
.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}
.experience-section {
  margin-top: 50px;
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.section-title {
  font-size: 28px;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 300;
}
.experience-card {
  background: linear-gradient(135deg, var(--color-box) 0%, #007af3 100%);
  padding: 25px;
  margin: 20px 0;
  color: var(--color-text);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #667eea;
  transition: transform 0.3s ease;
}
.experience-card:hover {
  transform: translateX(5px);
}
.experience-title {
  font-size: 20px;
  color: var(--color-text);
  margin: 0 0 10px 0;
  font-weight: 600;
}
.experience-desc {
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  text-align: center;
  padding: 30px;
  margin-top: 50px;
  grid-area: footer;
}
.nav-link-secret {
  color: transparent;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.nav-link-secret :visited {
  color: transparent;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.nav-link-secret :hover {
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.dairy-card {
  background: linear-gradient(135deg, var(--color-box) 0%, #007af3 100%);
  padding: 25px;
  border-radius: 15px;
  color: var(--color-text);
  margin: 30px;
  border: 5px solid #667eea;
  font-size: 16px;
  line-height: 1.8;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:20px;
  margin-top: auto;
}
.project-photo {
  width: 300px;
  height: 220px;
  border-radius: 15px;
  object-fit: cover;
  border: 4px solid #667eea;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.project-card {
display: flex;
flex-direction: column;
align-items: center;
width: 350px;
 box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.6);
 background: linear-gradient(0deg,var(--color-box) 0%, #007af3 100%);
 border-radius: 10px; 
}
.project-name {
  color: rgb(29, 0, 136);
  margin:10px;
}
.proj-title{
    background: #005ac2;
    color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.badge{
text-decoration: none;
  padding: 12px 25px;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.pochta {
  background: linear-gradient(135deg, var(--color-box) 0%, #007af3 100%);
  padding: 25px;
  border-radius: 15px;
  margin: 30px;
  border-left: 5px solid #667eea;
  font-size: 16px;
  line-height: 1.8;
}
.telephone {
  background: linear-gradient(135deg, var(--color-box) 0%, #007af3 100%);
  padding: 25px;
  border-radius: 15px;
  margin: 30px;
  border-left: 5px solid #667eea;
  font-size: 16px;
  line-height: 1.8;
}
.contact-title {
  font-size: 20px;
  color:var(--color-text);
  margin: 0 0 10px 0;
  font-weight: 600;
}
.contacts-title {
  font-size: 30px;
  color: var(--color-text);
  margin: 0 0 10px 0;
  font-weight: 600;
}
.contacts-data {
  font-size: 20px;
  color: var(--color-text);
  margin: 0 0 10px 0;
  font-weight: 600;
}
.main-title {
  font-size: 20px;
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-weight: 600;
}
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    gap: 10px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  main.content {
    padding: 20px;
  }
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}
dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  max-width: 500px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px 12px 0 0;
  margin: 0;
}
.modal-header h2 {
  margin: 0;
  color: white;
  font-size: 1.5rem;
}
.modal-content {
  padding: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}
.troll {
  margin: auto;
  max-width: 100%;
}
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
  background: #f8f9fa;
  color: #2c3e50;
  border: 2px solid #e9ecef;
}
.btn-secondary:hover {
  background: #e9ecef;
}
.required {
  color: #e74c3c;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Адаптивность */
@media (max-width: 600px) {
  dialog {
    margin: 1rem;
    width: calc(100vw - 2rem);
  }

  .modal-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
.toPage {
  color: var(--color-text);
}
.mail{
    color:var(--color-text);
}
.telephone{
    color:var(--color-text);
}
.sales{
    color:var(--color-text);
    font-size: 70px;
}
.project-info{
    width: 90%;
    height: 30px;
    color:#000000;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(135deg, #005ac2 0%, #007af3 100%);
    border:none;
    border-radius:5px;
    margin: 5px;
}
.project-card:hover{
   transform: translateX(5px);
}
.theme-toggle{
    width: 20%;
    height: 35px;
    color:#000000;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(135deg, #005ac2 0%, #007af3 100%);
    border:none;
    border-radius:5px;
    margin: 5px;
}
.theme-toggle .light{
    display: none;
}
.theme-dark .theme-toggle .dark{
    display: none;
}
.theme-dark .theme-toggle .light{
    display: inline-block;
}
.contact-button{
    width: 20%;
    height: 35px;
    color:#000000;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(135deg, #005ac2 0%, #007af3 100%);
    border:none;
    border-radius:5px;
    margin: 5px;
}
.dairy-title{
    text-align: center;
    background: #005ac2;
    color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.progress-bar{
    width: 100%;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, #172ead, #1979a5);
  border-radius: 10px;
  transition: width 0.3s ease;
}
.progress-bar-text{
    color: white;
    text-align: center;
}