@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --bg: #0f141a;
    --panel: #151b22;
    --panel-2: #11161c;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e6edf3;
    --muted: #c9d4dd;
    --accent: #f59e0b;
    --accent-hover: #ffb020;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.banner-header {
    background: #000000;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-img {
    width: min(100%, 980px);
    height: auto;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 20px;
}

#intro {
    background: var(--panel);
    border: 1px solid rgba(245, 158, 11, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-top: 24px;
    text-align: center;
}

.top-nav {
    margin-bottom: 24px;
}

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.top-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s ease;
}

.top-nav a:hover {
    color: var(--accent);
}

.intro-content {
    max-width: 760px;
    margin: 0 auto;
}

#intro h2,
section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 20px;
}

#intro h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 16px;
}

#intro p,
.about-text {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0 auto 24px;
}

.cta-button {
    background: var(--accent);
    color: #11161c;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.service-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    color: var(--accent);
    font-size: 1.35rem;
    margin: 0 0 14px;
}

.service-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
}

.service-card li {
    margin-bottom: 10px;
}

.works-title {
    margin-top: 24px;
    margin-bottom: 18px;
    font-size: 1.6rem;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.work-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.work-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.work-item p {
    margin: 0;
    padding: 14px 16px 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

form {
    max-width: 720px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

form input,
form textarea {
    width: 100%;
    padding: 14px;
    margin: 0 0 18px;
    border: 1px solid #2a3440;
    border-radius: 12px;
    background: #0f141a;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

form button {
    background: var(--accent);
    color: #11161c;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

form button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.hidden-field {
    display: none;
}

footer {
    background: #0c1116;
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 24px 20px;
    text-align: center;
}

footer p {
    margin: 6px 0;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

button.back-to-top {
    display: none;
    background: var(--accent);
    color: #11161c;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    border-radius: 12px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 50;
}

button.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .banner-header {
        padding: 12px 14px;
    }

    .container {
        padding: 42px 14px;
    }

    #intro {
        margin-top: 16px;
        padding: 42px 18px;
    }

    .top-nav ul {
        gap: 14px;
    }

    .service-card,
    form {
        padding: 18px;
    }

    button.back-to-top {
        padding: 12px 16px;
        font-size: 0.9rem;
        right: 14px;
        bottom: 14px;
    }
}        padding: 0;
    }
}

header h1 {
    display: none; /* Скрыть текст Pacific Tech Repair */
}

/* Стили для навигации */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0; /* Отступ снизу для разделения от контента */
    text-align: center;
}

nav ul li {
    display: inline;
    margin-right: 25px;
}

nav ul li a {
    color: #dfe6e9;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
}

nav ul li a:hover {
    color: #fcb309; /* Мягкий оранжево-красный для акцента */
}

/* Стили для главного раздела */
#intro {
    background: var(--panel);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin: 10px auto 0;
    max-width: 1100px;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

#intro nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#intro nav ul {
    display: flex;
    justify-content: center;
    width: 100%;
}

#intro nav ul li {
    margin: 0 10px;
}

.intro-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

#intro h2 {
    font-size: 2.3em;
    font-weight: 600;
    text-shadow: none;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

#intro p {
    font-size: 1.05em;
    margin: 0 auto 20px;
    line-height: 1.6;
    max-width: 650px;
    color: #c9d4dd;
    text-shadow: none;
}

.cta-button {
    background-color: #fc8a00; /* Мягкий оранжево-красный */
    color: white;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #ff6f40; /* Более яркий оранжево-красный */
    transform: translateY(-5px);
}

/* Стили для секций */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.8em;
    color: #dfe6e9;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Стиль для списка услуг */
.service {
    background: linear-gradient(45deg, #0d1b26, #737373);
    margin: 30px 0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.service h3 {
    font-size: 2em;
    color: #fc8a00; /* Оранжево-красный для выделения */
    margin-bottom: 15px;
}

.service ul {
    list-style-type: none;
    padding: 0;
}

.service ul li {
    font-size: 1.2em;
    color: #dfe6e9;
    margin-bottom: 10px;
}

/* Стили для формы */
form {
     background: var(--panel);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 50px;
}

form label {
    font-size: 1.3em;
    color: #dfe6e9;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #7f8c8d;
    border-radius: 6px;
    font-size: 1.2em;
    font-weight: 400;
    box-sizing: border-box;
}

form input:focus,
form textarea:focus {
    border-color: #fc8a00; /* Оранжево-красный при фокусе */
    outline: none;
}

/* Кнопка отправки формы */
form button {
    background-color: #fc8a00;
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
}

form button:hover {
    background-color: #ff6f40;
    transform: translateY(-5px);
}

/* Подвал */
footer {
    background-color: #212f36;
    color: white;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #fc8a00;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}
/* existing styles in your CSS file */

.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.work-item {
  text-align: center;
}

.work-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.work-item p {
  margin-top: 10px;
  font-size: 14px;
  color: #dfe6e9;
}

/* Кнопка "Back to Top" */
button.back-to-top {
    display: none; /* Изначально скрыта */
    background-color: #fc8a00;
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 10px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 1.5em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

button.back-to-top:hover {
    background-color: #ff4d4d;
    transform: translateY(-5px);
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    header {
        padding: 20px 10px;
        min-height: 200px;
    }

    nav ul {
        display: block;
        text-align: center;
    }

    nav ul li {
        display: inline-block; /* Изменяем на inline-block для горизонтального отображения */
        margin: 0 10px; /* Добавляем отступы между элементами */
    }

    #intro {
        padding: 40px 10px;
    }

    #intro h2 {
        font-size: 2.2em;
    }

    #intro p {
        font-size: 1.1em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1.1em;
    }

    section {
        padding: 40px 10px;
    }

    section h2 {
        font-size: 2.2em;
    }

    .service {
        padding: 20px;
        margin: 20px 0;
    }

    .service h3 {
        font-size: 1.8em;
    }

    .service ul li {
        font-size: 1em;
    }

    form {
        padding: 20px;
    }

    form label {
        font-size: 1.1em;
    }

    form input,
    form textarea {
        padding: 10px;
        font-size: 1em;
    }

    form button {
        padding: 10px 20px;
        font-size: 1em;
    }

    footer {
        padding: 10px;
    }

    footer a {
        font-size: 0.9em;
    }

    button.back-to-top {
        padding: 10px 20px;
        font-size: 1.2em;
    }
}
