/* Load local Manrope fonts from the Manrope_complete folder */
@font-face {
  font-family: 'Manrope';
  src: url('Manrope_Complete/Fonts/WEB/fonts/Manrope-ExtraLight.woff2') format('woff2'),
       url('Manrope_Complete/Fonts/WEB/fonts/Manrope-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('Manrope_Complete/Fonts/WEB/fonts/Manrope-Bold.woff2') format('woff2'),
       url('Manrope_Complete/Fonts/WEB/fonts/Manrope-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  scroll-behavior: smooth;
  min-height: 100vh;        /* Ensures the full viewport height */
  display: flex;            /* Set body as flex container */
  flex-direction: column;   /* Vertical layout */
}

/* Main content will take all available space */
main {
  flex: 1;
  padding-bottom: 60px; /* Отступ снизу для предотвращения наложения футера */
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container for consistent layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Service Link: Ensures the entire service card is clickable */
.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Header Styling */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #000;
  padding: 20px 0;
  z-index: 100;
  border-bottom: 1px solid #fff;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5em;
  font-weight: 700;
}

.logo img {
  max-height: 50px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
  padding-top: 80px; /* Account for fixed header */
}

.hero-content h1 {
  font-size: 4em;
  margin: 0;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.2em;
  margin: 20px 0;
}

.cta {
  background: #000;
  color: #fff;
  padding: 15px 30px;
  font-weight: 700;
  border-radius: 0;
  transition: background 0.3s ease;
  border: 1px solid #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cta:hover {
  background: #000;
}

/* Section Styling */
.section {
  padding: 100px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  letter-spacing: 1px;
}

.section p {
  text-align: center;
  line-height: 1.6;
}

/* Services Grid: Contains detailed descriptions for our services:
   - Web Development
   - Web Design
   - DevOps
   - Project Management
   - Audit Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: center;
  justify-content: center;
}

.service {
  background-color: #000;
  padding: 30px;
  border: 2px solid #fff;
  border-radius: 0;
  transition: transform 0.3s ease;
  height: 350px;               /* Fixed height for uniform service cards */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service:hover {
  transform: translateY(-5px);
}

/* Styling for the "More" text within each service card */
.service .more {
  font-weight: bold;
  margin-top: 10px;
  text-align: right;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  background: #000;
  width: 100%;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

/* Standard Contact Form layout */
.contact-wrapper {
  display: block;
}

.contact-form {
  max-width: 600px;
  margin: auto;
}

/* Добавляем правило для вертикального расположения полей формы */
.contact-form input,
.contact-form textarea,
.contact-form button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.contact-details {
  max-width: 600px;
  margin: 20px auto 0;
  padding: 20px;
  background: #111;
  border: 1px solid #fff;
  border-radius: 4px;
}

.contact-form input,
.contact-form textarea {
  background: #000;
  padding: 15px;
  border: 1px solid #fff;
  border-radius: 0;
  color: #fff;
  font-size: 1em;
  font-family: inherit;
  resize: none;
}

.contact-form button {
  background: #000;
  color: #fff;
  padding: 15px;
  border: 1px solid #fff;
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100% !important;
}

.contact-form button:hover {
  background: #000;
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  background: #000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5em;
  }
  
  .hero-content p {
    font-size: 1.2em;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex !important;
    z-index: 101;
  }
  .contact-wrapper {
    flex-direction: column;
  }
  .contact-form,
  .contact-details {
    max-width: 100%;
  }
}

/* Divide menu items with vertical white lines (PC version) */
@media (min-width: 769px) {
  .nav-links li {
    position: relative;
    padding: 0 10px;
  }
  .nav-links li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: -10%;
    height: 120%;
    width: 1px;
    background: #fff;
  }
}

/* Font Resources: The Manrope font files are provided in the archive "Manrope_Complete.zip" located in the project root. */

/* New style for portfolio description */
.portfolio-description {
  text-align: center;
  font-size: 1.2em;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin-top: 20px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
}

/* Headings: Force all heading elements to use Manrope-Bold from the local Manrope files in WEB folder */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope-Bold', sans-serif;
  src: url('Manrope_Complete/Fonts/WEB/fonts/Manrope-Bold.woff2') format('woff2'),
  url('Manrope_Complete/Fonts/WEB/fonts/Manrope-Bold.woff') format('woff');
}

/* Techniques and Technologies Section */
.section.techniques {
  padding: 60px 0;
  background: #111;
}
.section.techniques table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}
.section.techniques table,
.section.techniques th,
.section.techniques td {
  border: 1px solid #fff;
}
.section.techniques th,
.section.techniques td {
  padding: 10px;
  text-align: center;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #000;
  border: 2px solid #fff;
  padding: 20px;
  text-align: center;
}
.card h3 {
  margin-top: 0;
}

/* Center the "Back to Services" button on service detail pages */
.service-detail .cta {
  display: block;
  margin: 20px auto;
  text-align: center;
}

/* Service Detail Section: Flex container for service content and alignment for buttons */
.service-detail .service-content {
  display: flex;
  flex-direction: column;
  /* Убрано свойство min-height для устранения большого отступа */
}

.service-detail-buttons {
  margin-top: 20px; /* Уменьшённый отступ, чтобы кнопка располагалась ближе к содержимому */
  text-align: center;
}

/* Contact Button Section on service subpages */
.contact-button {
    padding: 40px 0;
    text-align: center;
}

/* Scroll Arrow Section */
.scroll-arrow {
  text-align: center;
  padding: 10px 0; /* уменьшенный отступ для сокращения пустоты */
}
.down-arrow {
  font-size: 6em; /* увеличенный размер стрелки */
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}
.down-arrow:hover {
  transform: translateY(5px);
}

/* Contact Form */
.contact-form {
   max-width: 600px;
   margin: auto;
} 