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

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(217, 4, 41, 0.07), transparent 34%),
        radial-gradient(circle at top left, rgba(0, 0, 0, 0.035), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
    color: #151515;
    min-height: 100vh;
}

.page {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 68px 0 42px;
}

.hero {
    text-align: center;
    padding-bottom: 45px;
}

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

.logo-text {
    font-size: clamp(3.4rem, 8vw, 5.6rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    color: #111;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.logo-text span {
    color: #d90429;
}

.logo-text::after {
    content: '';
    position: absolute;
    left: 8%;
    bottom: -14px;
    width: 84%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d90429, transparent);
    border-radius: 999px;
}

.logo-subtitle {
    margin-top: 30px;
    color: #888;
    font-size: 0.74rem;
    letter-spacing: 0.32em;
    font-weight: 700;
}

.tag,
.section-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f0f0f1;
    color: #666;
    font-size: 0.84rem;
    font-weight: 700;
}

h1 {
    max-width: 850px;
    margin: 0 auto;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
    font-weight: 850;
}

h1 span {
    color: #d90429;
}

.lead {
    max-width: 720px;
    margin: 28px auto 0;
    font-size: 1.15rem;
    color: #5f5f5f;
}

.intro-panel {
    margin-top: 35px;
    padding: 42px;
    border-radius: 30px;
    background: #151515;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}

.intro-text h2,
.about-simple h2,
.contact-text h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.intro-text p {
    margin-top: 18px;
    color: #c9c9c9;
    font-size: 1.04rem;
}

.intro-panel .section-label,
.dark-label {
    background: rgba(255,255,255,0.08);
    color: #ddd;
}

.intro-list {
    display: grid;
    gap: 14px;
}

.intro-list div {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 20px;
}

.intro-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.intro-list span {
    color: #c9c9c9;
    font-size: 0.95rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.service-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid #e8e8ea;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.04);
}

.service-card span {
    display: inline-block;
    margin-bottom: 28px;
    color: #d90429;
    font-weight: 900;
    font-size: 0.9rem;
}

.service-card h3 {
    font-size: 1.18rem;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: 0.98rem;
}

.about-simple {
    margin-top: 70px;
    padding: 42px;
    border-radius: 30px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #e8e8ea;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.035);
}

.about-simple p {
    color: #5f5f5f;
    font-size: 1.05rem;
}

.contact-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 42px;
    margin-top: 70px;
    padding: 42px;
    border-radius: 30px;
    background: #151515;
    color: #fff;
}

.contact-text p {
    color: #c9c9c9;
    margin-top: 16px;
}

.contact-form {
    background: #fff;
    color: #151515;
    border-radius: 24px;
    padding: 30px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 7px;
    color: #333;
}

input,
textarea {
    width: 100%;
    border: 1px solid #dedee2;
    border-radius: 13px;
    padding: 14px 15px;
    font-family: inherit;
    font-size: 1rem;
    background: #fafafa;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #d90429;
    background: #fff;
}

textarea {
    resize: vertical;
}

button {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: #d90429;
    color: #fff;
    padding: 15px 24px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: #b80324;
}

.success,
.error {
    padding: 13px 15px;
    border-radius: 13px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.success {
    background: #e9f8ef;
    color: #17723b;
}

.error {
    background: #fff0f0;
    color: #a30016;
}

.hidden-field {
    display: none;
}

.references {
    margin-top: 70px;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.section-header p {
    max-width: 620px;
    margin: 14px auto 0;
    color: #666;
    font-size: 1.05rem;
}

.reference-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 10px 4px 22px;
    scroll-snap-type: x mandatory;
}

.reference-scroll::-webkit-scrollbar {
    height: 10px;
}

.reference-scroll::-webkit-scrollbar-track {
    background: #ededee;
    border-radius: 999px;
}

.reference-scroll::-webkit-scrollbar-thumb {
    background: #c9c9cc;
    border-radius: 999px;
}

.reference-card {
    flex: 0 0 360px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8e8ea;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reference-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.08);
}

.reference-image {
    height: 220px;
    background: #f1f1f2;
    overflow: hidden;
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reference-info {
    padding: 20px;
}

.reference-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.reference-info span {
    color: #777;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 25px 20px 35px;
    color: #b8b8b8;
    font-size: 0.9rem;
}

@media (max-width: 850px) {
    .intro-panel,
    .services,
    .about-simple,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .intro-panel,
    .about-simple,
    .contact-section {
        padding: 28px;
    }
}

@media (max-width: 520px) {
    .page {
        width: min(100% - 24px, 1100px);
        padding-top: 45px;
    }

    .logo-subtitle {
        letter-spacing: 0.18em;
        font-size: 0.64rem;
    }

    .intro-panel,
    .service-card,
    .about-simple,
    .contact-section,
    .contact-form {
        border-radius: 18px;
    }
}