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

:root {
    --dark-bg: #0a0a0a;
    --accent: #280404;
    --text: #e0e0e0;
    --light-text: #b0b0b0;
    --light-accent: #a52a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    background-image: url('../assets/studio.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 15px 0;
    border-bottom: 1px solid var(--accent);
    position: relative;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    font-family: 'Old Standard TT', serif;
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 10px;
    color: var(--light-text);
}

.tattoo-machine {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    opacity: 0.2;
    width: 150px;
    height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M30,10 L70,10 L80,20 L80,40 L70,50 L70,70 L80,80 L80,90 L70,90 L60,80 L40,80 L30,90 L20,90 L20,80 L30,70 L30,50 L20,40 L20,20 Z" fill="%238b0000"/><circle cx="50" cy="50" r="15" fill="%230a0a0a"/><circle cx="50" cy="50" r="5" fill="%238b0000"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px 0;
    gap: 40px;
}

.services, .contacts {
    flex: 1;
    min-width: 300px;
}

h2 {
    font-family: 'Old Standard TT', serif;
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

ul {
    list-style-type: none;
}

li {
    margin-bottom: 10px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--light-text);
}

li::before {
    content: unset !important;
    color: var(--accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--light-text);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    margin-top: 5px;
    border: none;
    cursor: pointer;
}


.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.social-btn:hover {
    background-color: var(--light-accent);
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

.vk-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12.65 17.39c-7.33 0-11.65-5.08-11.65-5.08l4.24-1.39s3.27 3.81 7.41 3.81c2.28 0 3.65-1.22 3.65-1.22s-1.22-.81-2.44-1.62c-2.85-1.93-6.5-4.06-6.5-7.41 0-3.65 3.65-4.47 3.65-4.47h8.11s.41 2.44-1.62 5.69c0 0 1.22 2.03 4.06 7.32 2.44 4.47 5.28 6.1 5.28 6.1s-4.47 1.63-7.72-5.69c-2.03-4.47-3.65-4.06-5.69-1.22-1.63 2.24-1.93 3.65-2.85 4.47-.91.81-2.03.41-2.03.41l-5.69-1.63s-2.85-.81-3.25-2.44c-.2-.71.2-1.42.61-1.83 2.03-2.03 7.72-6.91 10.15-8.94.41-.41.81-.41.81-.41s.2-.41-.2-.41c-.41 0-1.22.2-2.44 1.22-1.22 1.02-4.67 4.67-6.1 6.5-1.22 1.62-1.83 2.03-2.44 1.62-.61-.41-.41-3.65-.41-3.65s.2-4.67 2.44-5.69c1.42-.61 3.25 1.22 4.06 1.83.61.41 1.02.61 1.02.61s.41.2.81-1.22c.2-.71.41-1.83.41-2.44 0-1.22-.2-1.83-.41-2.03-.2-.2-.61-.41-1.22-.41-.41 0-1.02.2-1.42.2-.41 0-.81-.2-1.22-.41-.61-.41-.41-.81-.41-.81s3.05-.41 6.5-.41c2.44 0 3.86.2 4.67.61.81.41 1.22 1.42 1.02 2.44-.2 1.22-1.22 4.06-2.03 5.69-.41.81-.81 1.22-.81 1.22s-.2.41.2.81c.41.41 1.42 1.22 2.44 2.24 2.03 2.03 3.65 4.06 4.06 4.47.41.41.81.81.81 1.22 0 .41-.41.41-.41.41l-4.47.2s-.41-.2-.81-.61c-.41-.41-1.02-1.22-2.03-2.44-1.22-1.42-2.44-2.44-2.85-2.85-.41-.41-.81-.41-.81-.41s-.2 0 0 .41c.2.41.61 1.42 1.22 2.85 1.22 2.85 2.44 5.28 2.85 5.69.41.41.81.81.81 1.22 0 .41-.41.41-.41.41l-4.67.2z"/></svg>');
}

.tg-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.446 1.394c-.14.14-.26.26-.429.26-.193 0-.193-.072-.193-.193v-7.498c0-.193.048-.289.241-.289.072 0 .145.024.241.048l5.033 3.126c.241.145.482.072.554-.241l.966-4.5c.048-.241-.048-.337-.265-.241z"/></svg>');
}

.map-container {
    margin: 40px auto 0;
    height: 400px;
    background-color: #222;
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    grid-column: 1 / -1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 10px;
}

.map-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    width: 100%;
}

footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--accent);
    margin-top: 50px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.footer-social-icon:hover {
    background-color: var(--light-accent);
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }

    .tattoo-machine {
        display: none;
    }

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

    .map-container {
        height: 300px;
    }
}

/* Стили для страницы "Наши работы" */
.works-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pinterest-grid {
    display: flex;
    gap: 15px;
    margin: 40px 0;
}

.grid-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.03);
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-link .btn:hover {
    background-color: #0ff;
    color: #000;
}