:root {
  --white: #ffffff;
  --primary: #0060d7;
  --secondary: #00a685;
  --accent: #007b14;
  --text-dark: #212121;
  --background-light: #f4f7f6;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* General styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
}

html, body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  color: var(--accent);
  margin-top: 0;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* Header */
.site-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo span {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-dark);
}

.site-header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.site-header nav li {
    margin-left: 30px;
}

.site-header nav a {
    font-weight: bold;
    font-size: 1.1em;
}

.header-contacts a {
    font-weight: bold;
    font-size: 1.2em;
}

/* Hero Section */
#hero {
    background-color: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

#hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.btn {
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* Services Section */
#services {
    padding: 80px 0;
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow);
    border-image: linear-gradient(45deg, var(--primary), var(--secondary)) 1;
}

.service-icon {
    margin-bottom: 20px;
    height: 64px; /* Фиксированная высота для иконок */
}

.service-icon svg {
    width: 64px;
    height: 64px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #666;
}

/* About Section */
#about {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    background-color: var(--background-light);
    padding: 40px 30px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: #e9ecef;
}

.feature-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto 30px auto;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: #666;
    font-size: 0.95em;
}

/* Customers Page */
#customers {
    padding: 80px 0;
}

.text-container {
    background-color: var(--background-light);
    border-left: 5px solid var(--primary);
    padding: 30px 40px;
    margin-bottom: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.text-container h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.text-container p {
    line-height: 1.7;
    margin-bottom: 1em;
}

.subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-top: -30px;
    margin-bottom: 50px;
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.customer-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 150px;
}

.customer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow);
}

.customer-card img {
    max-width: 100%;
    max-height: 100px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.customer-card:hover img {
    filter: grayscale(0%);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.4s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    text-align: left;
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#contactForm .btn {
    width: 100%;
    margin-top: 10px;
}

/* Keyframe animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideIn {
  from {transform: translateY(-60px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}


/* Footer */
.site-footer {
    background: var(--text-dark);
    color: #a9a9a9;
    padding: 40px 0 0;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.site-footer h3 {
    color: var(--white);
}

.site-footer a {
    color: var(--white);
}

.site-footer a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container, .site-header nav ul {
        flex-direction: column;
        align-items: center;
    }
    .site-header nav ul {
        margin-top: 15px;
    }
    .site-header nav li {
        margin: 0 10px;
    }
    .header-contacts {
        margin-top: 15px;
    }
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
} 

/* Главная страница — текстовый контейнер */
.main-text-container {
    background-color: var(--background-light);
    border-left: 5px solid var(--secondary);
    padding: 35px 60px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    margin-top: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.main-text-container h2 {
    margin-top: 0;
    color: var(--accent);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.main-text-container p {
    color: #444;
    font-size: 1.08em;
    line-height: 1.7;
    margin-bottom: 1.1em;
} 

@media (max-width: 700px) {
    .main-text-container {
        padding: 20px 10px;
    }
} 

/* --- Адаптивность: мобильные устройства (до 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 6px;
  }
  .site-header .container {
    flex-direction: column;
    align-items: stretch;
  }
  .logo img {
    height: 36px;
    margin-right: 8px;
  }
  .logo span {
    font-size: 1.1em;
  }
  .site-header nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    width: 100%;
    display: none;
    background: var(--white);
    position: absolute;
    left: 0;
    top: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    z-index: 1001;
  }
  .site-header nav ul.active {
    display: flex;
  }
  .site-header nav li {
    margin: 0 0 12px 0;
    width: 100%;
  }
  .header-contacts {
    margin-top: 10px;
    font-size: 1em;
    text-align: left;
  }
  .burger {
    display: block;
    position: absolute;
    right: 20px;
    top: 18px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1100;
  }
  .burger span, .burger span:before, .burger span:after {
    display: block;
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
    content: '';
  }
  .burger span {
    top: 14px;
  }
  .burger span:before {
    top: 0;
  }
  .burger span:after {
    bottom: 0;
  }
  #hero {
    padding: 50px 0 30px 0;
  }
  #hero h1 {
    font-size: 1.3em;
  }
  #hero p {
    font-size: 1em;
  }
  .btn {
    padding: 10px 18px;
    font-size: 1em;
  }
  .services-grid, .features-grid, .customers-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-card, .feature-card, .customer-card {
    padding: 18px 8px;
  }
  .service-icon, .feature-icon {
    height: 48px;
    width: 48px;
  }
  .service-icon svg, .feature-icon svg {
    width: 32px;
    height: 32px;
  }
  .modal-content {
    padding: 16px 6px;
    max-width: 98vw;
  }
  .main-text-container {
    padding: 10px 2px;
    font-size: 0.98em;
  }
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
  }
  .site-footer h3 {
    font-size: 1.1em;
  }
}

/* --- Планшеты (481px–767px) --- */
@media (min-width: 481px) and (max-width: 767px) {
  .container {
    padding: 0 10px;
  }
  .site-header .container {
    flex-direction: column;
    align-items: stretch;
  }
  .logo img {
    height: 40px;
  }
  .site-header nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    width: 100%;
    display: none;
    background: var(--white);
    position: absolute;
    left: 0;
    top: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    z-index: 1001;
  }
  .site-header nav ul.active {
    display: flex;
  }
  .site-header nav li {
    margin: 0 0 12px 0;
    width: 100%;
  }
  .burger {
    display: block;
    position: absolute;
    right: 20px;
    top: 18px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1100;
  }
  #hero {
    padding: 60px 0 30px 0;
  }
  .services-grid, .features-grid, .customers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .service-card, .feature-card, .customer-card {
    padding: 22px 10px;
  }
  .main-text-container {
    padding: 16px 6px;
    font-size: 1em;
  }
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
  }
}

/* --- Небольшие ноутбуки (768px–1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 18px;
  }
  .site-header .container {
    flex-direction: row;
    align-items: center;
  }
  .logo img {
    height: 44px;
  }
  .site-header nav ul {
    flex-direction: row;
    align-items: center;
    position: static;
    background: none;
    box-shadow: none;
    display: flex;
  }
  .site-header nav li {
    margin: 0 12px;
  }
  .burger {
    display: none;
  }
  .services-grid, .features-grid, .customers-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
  .service-card, .feature-card, .customer-card {
    padding: 28px 14px;
  }
  .main-text-container {
    padding: 24px 18px;
    font-size: 1.05em;
  }
  .site-footer .container {
    flex-direction: row;
    align-items: flex-start;
    padding-bottom: 30px;
  }
}

/* --- Большие экраны (от 1200px) --- */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
    padding: 0 32px;
  }
  .services-grid, .features-grid, .customers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
  }
  .main-text-container {
    padding: 40px 120px;
    font-size: 1.15em;
  }
}

/* --- Бургер-иконка и подпись --- */
.burger {
  display: none;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1100;
  align-items: center;
  background: none;
  border: none;
}
.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}
.burger span:before, .burger span:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}
.burger span {
  top: 18px;
}
.burger span:before {
  top: -12px;
}
.burger span:after {
  top: 12px;
}
.burger-label {
  display: none;
  font-size: 1em;
  color: var(--primary);
  margin-left: 48px;
  font-weight: 600;
  letter-spacing: 0.03em;
  user-select: none;
}

@media (max-width: 1024px) {
  .burger {
    display: flex;
  }
  .burger-label {
    display: inline-block;
  }
}

@media (min-width: 1025px) {
  .burger {
    display: none !important;
  }
  #mainNav {
    display: flex !important;
  }
}

/* --- Меню: всегда видно на десктопе, на мобильных/планшетах — по бургеру --- */
@media (max-width: 1024px) {
  .site-header {
    position: relative;
    z-index: 1002;
  }
  #mainNav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border-radius: 0 0 12px 12px;
    padding: 18px 0 12px 0;
    margin: 0;
    z-index: 1003;
    display: none;
  }
  #mainNav.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  #mainNav li {
    width: 100%;
    padding: 0 24px;
    margin: 0 0 10px 0;
  }
  #mainNav li:last-child {
    margin-bottom: 0;
  }
}
@media (min-width: 1025px) {
  #mainNav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    box-shadow: none;
    width: auto;
  }
} 

/* --- Корректировка расположения и размера бургер-меню и подписи --- */
@media (max-width: 1024px) {
  .site-header .container {
    padding-right: 44px;
    position: relative;
    overflow: visible;
  }
  .burger {
    right: 8px;
    top: 18px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 40px;
    max-height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1101;
  }
  .burger-label {
    margin-left: 30px;
    font-size: 0.93em;
    line-height: 28px;
    left: 28px;
    height: 28px;
    max-width: 60px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  #mainNav {
    width: 100%;
    left: 0;
    right: 0;
    max-width: 100vw;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    padding-right: 44px;
  }
  .burger {
    right: 6px;
    top: 18px;
    width: 28px;
    height: 28px;
  }
  .burger-label {
    margin-left: 28px;
    font-size: 0.93em;
    line-height: 28px;
    left: 28px;
    height: 28px;
  }
} 