* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    padding: 20px
}

.container {
    max-width: 1200px;
    margin: 0 auto
}

.config-bar {
    background: #fff;
    border-radius: 15px;
    padding: 15px 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px
}

.config-group {
    display: flex;
    align-items: center;
    gap: 10px
}

.config-group label {
    font-weight: 600;
    color: #5c3d2e;
    font-size: .9rem
}

.config-select {
    padding: 8px 15px;
    border: 2px solid #e8d5c4;
    border-radius: 8px;
    background: #fff;
    color: #5c3d2e;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    font-size: .9rem
}

.config-select:hover {
    border-color: #d97f4b
}

.config-select:focus {
    outline: none;
    border-color: #d97f4b;
    box-shadow: 0 0 0 3px rgba(217, 127, 75, .1)
}

.nav-links {
    display: flex;
    gap: 15px
}

.nav-links a {
    text-decoration: none;
    color: #5c3d2e;
    font-weight: 600;
    font-size: .95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all .3s ease
}

.nav-links a:hover {
    background: #fff5f0;
    color: #d97f4b
}

.nav-links a.active {
    background: linear-gradient(135deg, #d97f4b 0%, #ff9a6c 100%);
    color: #fff
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: #5c3d2e
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .1)
}

header p {
    font-size: 1.1rem;
    opacity: .9
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    animation: fadeIn .5s ease-in
}

.card h2 {
    color: #d97f4b;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid #ffecd2;
    padding-bottom: 10px
}

.input-group {
    margin-bottom: 20px
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #5c3d2e;
    font-weight: 600;
    font-size: .95rem
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8d5c4;
    border-radius: 10px;
    font-size: 1rem;
    transition: all .3s ease;
    background: #fafafa
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #d97f4b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(217, 127, 75, .1)
}

.input-suffix {
    position: absolute;
    right: 15px;
    color: #999;
    font-weight: 600;
    pointer-events: none
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e8d5c4;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s ease;
    background: #fafafa
}

.radio-option:hover {
    border-color: #d97f4b;
    background: #fff
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #d97f4b
}

.radio-option label {
    cursor: pointer;
    margin: 0;
    font-weight: 600;
    color: #5c3d2e;
    flex: 1
}

.radio-option.selected {
    border-color: #d97f4b;
    background: #fff5f0
}

.dynamic-field {
    display: none;
    animation: fadeIn .3s ease-in
}

.dynamic-field.active {
    display: block
}

.result-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #d97f4b
}

.result-item label {
    display: block;
    color: #5c3d2e;
    font-size: .9rem;
    margin-bottom: 5px;
    font-weight: 600
}

.result-item .value {
    font-size: 1.5rem;
    color: #d97f4b;
    font-weight: bold
}

.result-item.highlight {
    background: linear-gradient(135deg, #d97f4b 0%, #ff9a6c 100%);
    border: none;
    box-shadow: 0 5px 15px rgba(217, 127, 75, .3)
}

.result-item.highlight label {
    color: #fff
}

.result-item.highlight .value {
    color: #fff;
    font-size: 2rem
}

.info-box {
    background: #e8f4f8;
    border-left: 4px solid #4a90e2;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: .9rem;
    color: #2c5282;
    line-height: 1.6
}

.info-box strong {
    display: block;
    margin-bottom: 5px
}

.seo-content {
    background: #fff;
    border-radius: 20px;
    padding: 35px 40px;
    margin-top: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    color: #5c3d2e;
    line-height: 1.8
}

.seo-content h2 {
    color: #d97f4b;
    font-size: 1.6rem;
    margin-bottom: 18px;
    border-bottom: 3px solid #ffecd2;
    padding-bottom: 10px
}

.seo-content h3 {
    color: #d97f4b;
    font-size: 1.15rem;
    margin-top: 22px;
    margin-bottom: 10px
}

.seo-content p {
    margin-bottom: 14px;
    font-size: .97rem
}

.seo-content ul {
    margin: 10px 0 16px 22px;
    list-style: disc
}

.seo-content li {
    margin-bottom: 6px;
    font-size: .95rem
}

.seo-content strong {
    color: #b5582a
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #5c3d2e;
    font-size: .9rem
}

.ad-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .6);
    border: 2px dashed #d97f4b;
    border-radius: 10px;
    color: #b06030;
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    letter-spacing: .03em;
    opacity: .8;
    transition: opacity .2s
}

.ad-placeholder:hover {
    opacity: 1
}

.ad-top {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto 28px
}

.ad-sidebar {
    width: 300px;
    height: 250px;
    position: sticky;
    top: 20px
}

.ad-bottom {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 28px auto 0
}

@media(max-width:1024px) {
    .page-layout {
        grid-template-columns: 1fr
    }

    .ad-sidebar {
        width: 100%;
        height: 90px;
        position: static
    }
}

@media(max-width:768px) {
    .config-bar {
        flex-direction: column;
        align-items: stretch
    }

    .config-group {
        justify-content: space-between
    }

    header h1 {
        font-size: 1.8rem
    }

    header p {
        font-size: 1rem
    }

    .main-content {
        grid-template-columns: 1fr
    }

    .card {
        padding: 20px
    }

    .card h2 {
        font-size: 1.5rem
    }

    .result-item .value {
        font-size: 1.3rem
    }

    .result-item.highlight .value {
        font-size: 1.6rem
    }

    .ad-top,
    .ad-bottom {
        height: 60px
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.fade-transition {
    transition: opacity .2s ease-in-out
}