:root {
    --teal-primary: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #ccfbf1;
    --cyan-accent: #06b6d4;
    --cyan-dark: #0891b2;
    --slate-dark: #0f172a;
    --slate-gray: #334155;
    --slate-light: #64748b;
    --bg-light: #ffffff;
    --bg-subtle: #f8fafc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--slate-dark);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.65;
    color: var(--slate-gray);
    background-color: var(--bg-light);
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.25;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

input,
textarea,
select,
button {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--teal-primary);
    outline-offset: 2px;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--slate-dark);
    color: #ffffff;
    padding: 1.25rem 1rem;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.15);
}

.cookie-consent-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #cbd5e1;
    text-align: center;
}

.cookie-consent-link {
    color: var(--teal-light);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

.cookie-consent-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.cookie-consent-btn-accept {
    background-color: var(--teal-primary);
    color: #ffffff;
}

.cookie-consent-btn-accept:hover {
    background-color: var(--teal-dark);
}

.cookie-consent-btn-reject {
    background-color: transparent;
    color: #e2e8f0;
    border: 1px solid #475569;
}

.cookie-consent-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .cookie-consent-actions {
        flex-direction: row;
        width: auto;
    }

    .cookie-consent-btn {
        width: auto;
    }
}

@media (min-width: 768px) {
    .cookie-consent-container {
        flex-direction: row;
    }

    .cookie-consent-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
        line-height: 1.2;
        word-break: keep-all;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.25;
        word-break: keep-all;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
        word-break: keep-all;
    }

    a,
    p,
    span {
        overflow-wrap: break-word;
        word-break: keep-all;
    }
}

/* ===== header ===== */
html {
    scroll-behavior: smooth;
}

/* ===== hero ===== */
#hero {
    overflow: hidden;
    hyphens: auto;
}

#hero .break-keep {
    word-break: keep-all;
}

/* ===== about ===== */
#about {
    overflow: hidden;
    hyphens: auto;
}

#about ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===== services ===== */
#services {
    overflow: hidden;
    width: 100%;
}

.js-service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.js-service-card:hover {
    transform: translateY(-4px);
}

/* ===== advantages ===== */
#advantages {
    overflow: hidden;
    hyphens: auto;
}

#advantages .js-advantage-card {
    border-color: rgba(226, 232, 240, 0.8);
}

/* ===== steps ===== */
#steps {
    overflow: hidden;
}

#steps h2,
#steps h3,
#steps p {
    hyphens: auto;
}

/* ===== tariffs ===== */
#tariffs {
    overflow: hidden;
    hyphens: auto;
    line-height: 1.3;
}

#tariffs .js-select-tariff {
    transition: all 0.2s ease-in-out;
}

/* ===== faq ===== */
#faq {
    overflow: hidden;
    width: 100%;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* ===== contact ===== */
#contact {
    overflow: hidden;
    hyphens: auto;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #94a3b8;
}

#contact input:focus,
#contact textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ===== footer ===== */
#footer {
    overflow: hidden;
}

#footer a {
    text-decoration: none;
}